@skedulo/breeze-ui 0.8.4 → 0.8.5
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/cjs/breeze-ui.js +158 -155
- package/lib/es/breeze-ui.js +7576 -7576
- package/package.json +1 -1
- package/types/components/buttons.d.ts.map +1 -1
package/lib/cjs/breeze-ui.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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 C3(s,o){for(var l=0;l<o.length;l++){const d=o[l];if(typeof d!="string"&&!Array.isArray(d)){for(const c in d)if(c!=="default"&&!(c in s)){const g=Object.getOwnPropertyDescriptor(d,c);g&&Object.defineProperty(s,c,g.get?g:{enumerable:!0,get:()=>d[c]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const y0=window,
|
|
5
|
+
*/const y0=window,wd=y0.ShadowRoot&&(y0.ShadyCSS===void 0||y0.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xd=Symbol(),kf=new WeakMap;class uh{constructor(o,l,d){if(this._$cssResult$=!0,d!==xd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=l}get styleSheet(){let o=this.o;const l=this.t;if(wd&&o===void 0){const d=l!==void 0&&l.length===1;d&&(o=kf.get(l)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),d&&kf.set(l,o))}return o}toString(){return this.cssText}}const ga=s=>new uh(typeof s=="string"?s:s+"",void 0,xd),ce=(s,...o)=>{const l=s.length===1?s[0]:o.reduce((d,c,g)=>d+(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)+s[g+1],s[0]);return new uh(l,s,xd)},w3=(s,o)=>{wd?s.adoptedStyleSheets=o.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet):o.forEach(l=>{const d=document.createElement("style"),c=y0.litNonce;c!==void 0&&d.setAttribute("nonce",c),d.textContent=l.cssText,s.appendChild(d)})},Of=wd?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let l="";for(const d of o.cssRules)l+=d.cssText;return ga(l)})(s):s;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var nd;const z0=window,
|
|
9
|
+
*/var nd;const z0=window,Tf=z0.trustedTypes,x3=Tf?Tf.emptyScript:"",Pf=z0.reactiveElementPolyfillSupport,hd={toAttribute(s,o){switch(o){case Boolean:s=s?x3:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let l=s;switch(o){case Boolean:l=s!==null;break;case Number:l=s===null?null:Number(s);break;case Object:case Array:try{l=JSON.parse(s)}catch{l=null}}return l}},ch=(s,o)=>o!==s&&(o==o||s==s),id={attribute:!0,type:String,converter:hd,reflect:!1,hasChanged:ch};class vs extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(o){var l;this.finalize(),((l=this.h)!==null&&l!==void 0?l:this.h=[]).push(o)}static get observedAttributes(){this.finalize();const o=[];return this.elementProperties.forEach((l,d)=>{const c=this._$Ep(d,l);c!==void 0&&(this._$Ev.set(c,d),o.push(c))}),o}static createProperty(o,l=id){if(l.state&&(l.attribute=!1),this.finalize(),this.elementProperties.set(o,l),!l.noAccessor&&!this.prototype.hasOwnProperty(o)){const d=typeof o=="symbol"?Symbol():"__"+o,c=this.getPropertyDescriptor(o,d,l);c!==void 0&&Object.defineProperty(this.prototype,o,c)}}static getPropertyDescriptor(o,l,d){return{get(){return this[l]},set(c){const g=this[o];this[l]=c,this.requestUpdate(o,g,d)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)||id}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const o=Object.getPrototypeOf(this);if(o.finalize(),o.h!==void 0&&(this.h=[...o.h]),this.elementProperties=new Map(o.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const l=this.properties,d=[...Object.getOwnPropertyNames(l),...Object.getOwnPropertySymbols(l)];for(const c of d)this.createProperty(c,l[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(o){const l=[];if(Array.isArray(o)){const d=new Set(o.flat(1/0).reverse());for(const c of d)l.unshift(Of(c))}else o!==void 0&&l.push(Of(o));return l}static _$Ep(o,l){const d=l.attribute;return d===!1?void 0:typeof d=="string"?d:typeof o=="string"?o.toLowerCase():void 0}u(){var o;this._$E_=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(o=this.constructor.h)===null||o===void 0||o.forEach(l=>l(this))}addController(o){var l,d;((l=this._$ES)!==null&&l!==void 0?l:this._$ES=[]).push(o),this.renderRoot!==void 0&&this.isConnected&&((d=o.hostConnected)===null||d===void 0||d.call(o))}removeController(o){var l;(l=this._$ES)===null||l===void 0||l.splice(this._$ES.indexOf(o)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((o,l)=>{this.hasOwnProperty(l)&&(this._$Ei.set(l,this[l]),delete this[l])})}createRenderRoot(){var o;const l=(o=this.shadowRoot)!==null&&o!==void 0?o:this.attachShadow(this.constructor.shadowRootOptions);return w3(l,this.constructor.elementStyles),l}connectedCallback(){var o;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(o=this._$ES)===null||o===void 0||o.forEach(l=>{var d;return(d=l.hostConnected)===null||d===void 0?void 0:d.call(l)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$ES)===null||o===void 0||o.forEach(l=>{var d;return(d=l.hostDisconnected)===null||d===void 0?void 0:d.call(l)})}attributeChangedCallback(o,l,d){this._$AK(o,d)}_$EO(o,l,d=id){var c;const g=this.constructor._$Ep(o,d);if(g!==void 0&&d.reflect===!0){const m=(((c=d.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?d.converter:hd).toAttribute(l,d.type);this._$El=o,m==null?this.removeAttribute(g):this.setAttribute(g,m),this._$El=null}}_$AK(o,l){var d;const c=this.constructor,g=c._$Ev.get(o);if(g!==void 0&&this._$El!==g){const m=c.getPropertyOptions(g),I=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)===null||d===void 0?void 0:d.fromAttribute)!==void 0?m.converter:hd;this._$El=g,this[g]=I.fromAttribute(l,m.type),this._$El=null}}requestUpdate(o,l,d){let c=!0;o!==void 0&&(((d=d||this.constructor.getPropertyOptions(o)).hasChanged||ch)(this[o],l)?(this._$AL.has(o)||this._$AL.set(o,l),d.reflect===!0&&this._$El!==o&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(o,d))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(l){Promise.reject(l)}const o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let l=!1;const d=this._$AL;try{l=this.shouldUpdate(d),l?(this.willUpdate(d),(o=this._$ES)===null||o===void 0||o.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(d)):this._$Ek()}catch(c){throw l=!1,this._$Ek(),c}l&&this._$AE(d)}willUpdate(o){}_$AE(o){var l;(l=this._$ES)===null||l===void 0||l.forEach(d=>{var c;return(c=d.hostUpdated)===null||c===void 0?void 0:c.call(d)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(o){return!0}update(o){this._$EC!==void 0&&(this._$EC.forEach((l,d)=>this._$EO(d,this[d],l)),this._$EC=void 0),this._$Ek()}updated(o){}firstUpdated(o){}}vs.finalized=!0,vs.elementProperties=new Map,vs.elementStyles=[],vs.shadowRootOptions={mode:"open"},Pf==null||Pf({ReactiveElement:vs}),((nd=z0.reactiveElementVersions)!==null&&nd!==void 0?nd:z0.reactiveElementVersions=[]).push("1.4.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var od;const L0=window,ys=L0.trustedTypes,
|
|
13
|
+
*/var od;const L0=window,ys=L0.trustedTypes,Ef=ys?ys.createPolicy("lit-html",{createHTML:s=>s}):void 0,To=`lit$${(Math.random()+"").slice(9)}$`,zd="?"+To,z3=`<${zd}>`,Cs=document,Au=(s="")=>Cs.createComment(s),Du=s=>s===null||typeof s!="object"&&typeof s!="function",dh=Array.isArray,fh=s=>dh(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Su=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,If=/-->/g,Af=/>/g,ol=RegExp(`>|[
|
|
14
14
|
\f\r](?:([^\\s"'>=/]+)([
|
|
15
15
|
\f\r]*=[
|
|
16
16
|
\f\r]*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g")
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Df=/'/g,$f=/"/g,hh=/^(?:script|style|textarea|title)$/i,ph=s=>(o,...l)=>({_$litType$:s,strings:o,values:l}),Y=ph(1),j=ph(2),Ki=Symbol.for("lit-noChange"),Jt=Symbol.for("lit-nothing"),Nf=new WeakMap,ms=Cs.createTreeWalker(Cs,129,null,!1),gh=(s,o)=>{const l=s.length-1,d=[];let c,g=o===2?"<svg>":"",m=Su;for(let T=0;T<l;T++){const k=s[T];let A,B,U=-1,Z=0;for(;Z<k.length&&(m.lastIndex=Z,B=m.exec(k),B!==null);)Z=m.lastIndex,m===Su?B[1]==="!--"?m=If:B[1]!==void 0?m=Af:B[2]!==void 0?(hh.test(B[2])&&(c=RegExp("</"+B[2],"g")),m=ol):B[3]!==void 0&&(m=ol):m===ol?B[0]===">"?(m=c!=null?c:Su,U=-1):B[1]===void 0?U=-2:(U=m.lastIndex-B[2].length,A=B[1],m=B[3]===void 0?ol:B[3]==='"'?$f:Df):m===$f||m===Df?m=ol:m===If||m===Af?m=Su:(m=ol,c=void 0);const re=m===ol&&s[T+1].startsWith("/>")?" ":"";g+=m===Su?k+z3:U>=0?(d.push(A),k.slice(0,U)+"$lit$"+k.slice(U)+To+re):k+To+(U===-2?(d.push(void 0),T):re)}const I=g+(s[l]||"<?>")+(o===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Ef!==void 0?Ef.createHTML(I):I,d]};class $u{constructor({strings:o,_$litType$:l},d){let c;this.parts=[];let g=0,m=0;const I=o.length-1,T=this.parts,[k,A]=gh(o,l);if(this.el=$u.createElement(k,d),ms.currentNode=this.el.content,l===2){const B=this.el.content,U=B.firstChild;U.remove(),B.append(...U.childNodes)}for(;(c=ms.nextNode())!==null&&T.length<I;){if(c.nodeType===1){if(c.hasAttributes()){const B=[];for(const U of c.getAttributeNames())if(U.endsWith("$lit$")||U.startsWith(To)){const Z=A[m++];if(B.push(U),Z!==void 0){const re=c.getAttribute(Z.toLowerCase()+"$lit$").split(To),ve=/([.?@])?(.*)/.exec(Z);T.push({type:1,index:g,name:ve[2],strings:re,ctor:ve[1]==="."?bh:ve[1]==="?"?mh:ve[1]==="@"?yh:Fu})}else T.push({type:6,index:g})}for(const U of B)c.removeAttribute(U)}if(hh.test(c.tagName)){const B=c.textContent.split(To),U=B.length-1;if(U>0){c.textContent=ys?ys.emptyScript:"";for(let Z=0;Z<U;Z++)c.append(B[Z],Au()),ms.nextNode(),T.push({type:2,index:++g});c.append(B[U],Au())}}}else if(c.nodeType===8)if(c.data===zd)T.push({type:2,index:g});else{let B=-1;for(;(B=c.data.indexOf(To,B+1))!==-1;)T.push({type:7,index:g}),B+=To.length-1}g++}}static createElement(o,l){const d=Cs.createElement("template");return d.innerHTML=o,d}}function dl(s,o,l=s,d){var c,g,m,I;if(o===Ki)return o;let T=d!==void 0?(c=l._$Co)===null||c===void 0?void 0:c[d]:l._$Cl;const k=Du(o)?void 0:o._$litDirective$;return(T==null?void 0:T.constructor)!==k&&((g=T==null?void 0:T._$AO)===null||g===void 0||g.call(T,!1),k===void 0?T=void 0:(T=new k(s),T._$AT(s,l,d)),d!==void 0?((m=(I=l)._$Co)!==null&&m!==void 0?m:I._$Co=[])[d]=T:l._$Cl=T),T!==void 0&&(o=dl(s,T._$AS(s,o.values),T,d)),o}class vh{constructor(o,l){this.u=[],this._$AN=void 0,this._$AD=o,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(o){var l;const{el:{content:d},parts:c}=this._$AD,g=((l=o==null?void 0:o.creationScope)!==null&&l!==void 0?l:Cs).importNode(d,!0);ms.currentNode=g;let m=ms.nextNode(),I=0,T=0,k=c[0];for(;k!==void 0;){if(I===k.index){let A;k.type===2?A=new _s(m,m.nextSibling,this,o):k.type===1?A=new k.ctor(m,k.name,k.strings,this,o):k.type===6&&(A=new Ch(m,this,o)),this.u.push(A),k=c[++T]}I!==(k==null?void 0:k.index)&&(m=ms.nextNode(),I++)}return g}p(o){let l=0;for(const d of this.u)d!==void 0&&(d.strings!==void 0?(d._$AI(o,d,l),l+=d.strings.length-2):d._$AI(o[l])),l++}}class _s{constructor(o,l,d,c){var g;this.type=2,this._$AH=Jt,this._$AN=void 0,this._$AA=o,this._$AB=l,this._$AM=d,this.options=c,this._$Cm=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var o,l;return(l=(o=this._$AM)===null||o===void 0?void 0:o._$AU)!==null&&l!==void 0?l:this._$Cm}get parentNode(){let o=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&o.nodeType===11&&(o=l.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,l=this){o=dl(this,o,l),Du(o)?o===Jt||o==null||o===""?(this._$AH!==Jt&&this._$AR(),this._$AH=Jt):o!==this._$AH&&o!==Ki&&this.g(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):fh(o)?this.k(o):this.g(o)}O(o,l=this._$AB){return this._$AA.parentNode.insertBefore(o,l)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}g(o){this._$AH!==Jt&&Du(this._$AH)?this._$AA.nextSibling.data=o:this.T(Cs.createTextNode(o)),this._$AH=o}$(o){var l;const{values:d,_$litType$:c}=o,g=typeof c=="number"?this._$AC(o):(c.el===void 0&&(c.el=$u.createElement(c.h,this.options)),c);if(((l=this._$AH)===null||l===void 0?void 0:l._$AD)===g)this._$AH.p(d);else{const m=new vh(g,this),I=m.v(this.options);m.p(d),this.T(I),this._$AH=m}}_$AC(o){let l=Nf.get(o.strings);return l===void 0&&Nf.set(o.strings,l=new $u(o)),l}k(o){dh(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let d,c=0;for(const g of o)c===l.length?l.push(d=new _s(this.O(Au()),this.O(Au()),this,this.options)):d=l[c],d._$AI(g),c++;c<l.length&&(this._$AR(d&&d._$AB.nextSibling,c),l.length=c)}_$AR(o=this._$AA.nextSibling,l){var d;for((d=this._$AP)===null||d===void 0||d.call(this,!1,!0,l);o&&o!==this._$AB;){const c=o.nextSibling;o.remove(),o=c}}setConnected(o){var l;this._$AM===void 0&&(this._$Cm=o,(l=this._$AP)===null||l===void 0||l.call(this,o))}}class Fu{constructor(o,l,d,c,g){this.type=1,this._$AH=Jt,this._$AN=void 0,this.element=o,this.name=l,this._$AM=c,this.options=g,d.length>2||d[0]!==""||d[1]!==""?(this._$AH=Array(d.length-1).fill(new String),this.strings=d):this._$AH=Jt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(o,l=this,d,c){const g=this.strings;let m=!1;if(g===void 0)o=dl(this,o,l,0),m=!Du(o)||o!==this._$AH&&o!==Ki,m&&(this._$AH=o);else{const I=o;let T,k;for(o=g[0],T=0;T<g.length-1;T++)k=dl(this,I[d+T],l,T),k===Ki&&(k=this._$AH[T]),m||(m=!Du(k)||k!==this._$AH[T]),k===Jt?o=Jt:o!==Jt&&(o+=(k!=null?k:"")+g[T+1]),this._$AH[T]=k}m&&!c&&this.j(o)}j(o){o===Jt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}}class bh extends Fu{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Jt?void 0:o}}const L3=ys?ys.emptyScript:"";class mh extends Fu{constructor(){super(...arguments),this.type=4}j(o){o&&o!==Jt?this.element.setAttribute(this.name,L3):this.element.removeAttribute(this.name)}}class yh extends Fu{constructor(o,l,d,c,g){super(o,l,d,c,g),this.type=5}_$AI(o,l=this){var d;if((o=(d=dl(this,o,l,0))!==null&&d!==void 0?d:Jt)===Ki)return;const c=this._$AH,g=o===Jt&&c!==Jt||o.capture!==c.capture||o.once!==c.once||o.passive!==c.passive,m=o!==Jt&&(c===Jt||g);g&&this.element.removeEventListener(this.name,this,c),m&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var l,d;typeof this._$AH=="function"?this._$AH.call((d=(l=this.options)===null||l===void 0?void 0:l.host)!==null&&d!==void 0?d:this.element,o):this._$AH.handleEvent(o)}}class Ch{constructor(o,l,d){this.element=o,this.type=6,this._$AN=void 0,this._$AM=l,this.options=d}get _$AU(){return this._$AM._$AU}_$AI(o){dl(this,o)}}const _3={P:"$lit$",A:To,M:zd,C:1,L:gh,R:vh,D:fh,V:dl,I:_s,H:Fu,N:mh,U:yh,B:bh,F:Ch},Rf=L0.litHtmlPolyfillSupport;Rf==null||Rf($u,_s),((od=L0.litHtmlVersions)!==null&&od!==void 0?od:L0.litHtmlVersions=[]).push("2.4.0");const wh=(s,o,l)=>{var d,c;const g=(d=l==null?void 0:l.renderBefore)!==null&&d!==void 0?d:o;let m=g._$litPart$;if(m===void 0){const I=(c=l==null?void 0:l.renderBefore)!==null&&c!==void 0?c:null;g._$litPart$=m=new _s(o.insertBefore(Au(),I),I,void 0,l!=null?l:{})}return m._$AI(s),m};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var ad,ld;class Fe extends vs{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o,l;const d=super.createRenderRoot();return(o=(l=this.renderOptions).renderBefore)!==null&&o!==void 0||(l.renderBefore=d.firstChild),d}update(o){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=
|
|
21
|
+
*/var ad,ld;class Fe extends vs{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o,l;const d=super.createRenderRoot();return(o=(l=this.renderOptions).renderBefore)!==null&&o!==void 0||(l.renderBefore=d.firstChild),d}update(o){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=wh(l,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this._$Do)===null||o===void 0||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this._$Do)===null||o===void 0||o.setConnected(!1)}render(){return Ki}}Fe.finalized=!0,Fe._$litElement$=!0,(ad=globalThis.litElementHydrateSupport)===null||ad===void 0||ad.call(globalThis,{LitElement:Fe});const Hf=globalThis.litElementPolyfillSupport;Hf==null||Hf({LitElement:Fe});((ld=globalThis.litElementVersions)!==null&&ld!==void 0?ld:globalThis.litElementVersions=[]).push("3.2.2");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/const
|
|
29
|
+
*/const S3=(s,o)=>o.kind==="method"&&o.descriptor&&!("value"in o.descriptor)?{...o,finisher(l){l.createProperty(o.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:o.key,initializer(){typeof o.initializer=="function"&&(this[o.key]=o.initializer.call(this))},finisher(l){l.createProperty(o.key,s)}};function H(s){return(o,l)=>l!==void 0?((d,c,g)=>{c.constructor.createProperty(g,d)})(s,o,l):S3(s,o)}/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2017 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
*/function
|
|
45
|
+
*/function M3(s){return D0({descriptor:o=>({async get(){var l;return await this.updateComplete,(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(s)},enumerable:!0,configurable:!0})})}/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2021 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/var sd;const
|
|
49
|
+
*/var sd;const k3=((sd=window.HTMLSlotElement)===null||sd===void 0?void 0:sd.prototype.assignedElements)!=null?(s,o)=>s.assignedElements(o):(s,o)=>s.assignedNodes(o).filter(l=>l.nodeType===Node.ELEMENT_NODE);function $0(s){const{slot:o,selector:l}=s!=null?s:{};return D0({descriptor:d=>({get(){var c;const g="slot"+(o?`[name=${o}]`:":not([name])"),m=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(g),I=m!=null?k3(m,s):[];return l?I.filter(T=>T.matches(l)):I},enumerable:!0,configurable:!0})})}/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/function
|
|
53
|
+
*/function Ld(s,o,l){let d,c=s;return typeof s=="object"?(c=s.slot,d=s):d={flatten:o},l?$0({slot:c,flatten:o,selector:l}):D0({descriptor:g=>({get(){var m,I;const T="slot"+(c?`[name=${c}]`:":not([name])"),k=(m=this.renderRoot)===null||m===void 0?void 0:m.querySelector(T);return(I=k==null?void 0:k.assignedNodes(d))!==null&&I!==void 0?I:[]},enumerable:!0,configurable:!0})})}const Se=s=>`brz-${s.toLowerCase()}`,J=s=>customElements.get(s)?(console.warn(`Breeze UI \u{1F4A8} :: ${s} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...o)=>{}):Wu(s);var O3=Object.defineProperty,T3=Object.getOwnPropertyDescriptor,_d=(s,o,l,d)=>{for(var c=d>1?void 0:d?T3(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&O3(o,l,c),c};const xh=Se("fade-in-out");exports.FadeInOut=class extends Fe{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(s){s.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?Y``:Y`<slot></slot>`}};exports.FadeInOut.styles=ce`
|
|
54
54
|
:host {
|
|
55
55
|
opacity: 0;
|
|
56
56
|
animation: fade-in 0.3s ease;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
opacity: 1;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`;
|
|
70
|
+
`;_d([H({type:Boolean})],exports.FadeInOut.prototype,"shown",2);_d([H({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=_d([J(xh)],exports.FadeInOut);/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
${l};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`},
|
|
102
|
+
`},zh=ce`
|
|
103
103
|
background: none;
|
|
104
104
|
border: 0;
|
|
105
105
|
border-radius: var(--brz-border-radius-default);
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
font: inherit;
|
|
110
110
|
margin: 0;
|
|
111
111
|
padding: 0;
|
|
112
|
-
`,
|
|
112
|
+
`,Lh=(s,o=ce``)=>ce`
|
|
113
113
|
:host ${ga(s)} {
|
|
114
|
-
${
|
|
114
|
+
${zh};
|
|
115
115
|
${o};
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -120,11 +120,11 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
${fl(s)}
|
|
123
|
-
`;var Cn="top",Xn="bottom",Qn="right",wn="left",B0="auto",Uu=[Cn,Xn,Qn,wn],ws="start",Nu="end",
|
|
123
|
+
`;var Cn="top",Xn="bottom",Qn="right",wn="left",B0="auto",Uu=[Cn,Xn,Qn,wn],ws="start",Nu="end",P3="clippingParents",_h="viewport",Mu="popper",E3="reference",Bf=Uu.reduce(function(s,o){return s.concat([o+"-"+ws,o+"-"+Nu])},[]),Sh=[].concat(Uu,[B0]).reduce(function(s,o){return s.concat([o,o+"-"+ws,o+"-"+Nu])},[]),I3="beforeRead",A3="read",D3="afterRead",$3="beforeMain",N3="main",R3="afterMain",H3="beforeWrite",B3="write",F3="afterWrite",pd=[I3,A3,D3,$3,N3,R3,H3,B3,F3];function Yi(s){return s?(s.nodeName||"").toLowerCase():null}function Jn(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var o=s.ownerDocument;return o&&o.defaultView||window}return s}function hl(s){var o=Jn(s).Element;return s instanceof o||s instanceof Element}function Nn(s){var o=Jn(s).HTMLElement;return s instanceof o||s instanceof HTMLElement}function Sd(s){if(typeof ShadowRoot=="undefined")return!1;var o=Jn(s).ShadowRoot;return s instanceof o||s instanceof ShadowRoot}function W3(s){var o=s.state;Object.keys(o.elements).forEach(function(l){var d=o.styles[l]||{},c=o.attributes[l]||{},g=o.elements[l];!Nn(g)||!Yi(g)||(Object.assign(g.style,d),Object.keys(c).forEach(function(m){var I=c[m];I===!1?g.removeAttribute(m):g.setAttribute(m,I===!0?"":I)}))})}function U3(s){var o=s.state,l={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,l.popper),o.styles=l,o.elements.arrow&&Object.assign(o.elements.arrow.style,l.arrow),function(){Object.keys(o.elements).forEach(function(d){var c=o.elements[d],g=o.attributes[d]||{},m=Object.keys(o.styles.hasOwnProperty(d)?o.styles[d]:l[d]),I=m.reduce(function(T,k){return T[k]="",T},{});!Nn(c)||!Yi(c)||(Object.assign(c.style,I),Object.keys(g).forEach(function(T){c.removeAttribute(T)}))})}}const Z3={name:"applyStyles",enabled:!0,phase:"write",fn:W3,effect:U3,requires:["computeStyles"]};function gi(s){return s.split("-")[0]}var cl=Math.max,_0=Math.min,xs=Math.round;function gd(){var s=navigator.userAgentData;return s!=null&&s.brands?s.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function Mh(){return!/^((?!chrome|android).)*safari/i.test(gd())}function zs(s,o,l){o===void 0&&(o=!1),l===void 0&&(l=!1);var d=s.getBoundingClientRect(),c=1,g=1;o&&Nn(s)&&(c=s.offsetWidth>0&&xs(d.width)/s.offsetWidth||1,g=s.offsetHeight>0&&xs(d.height)/s.offsetHeight||1);var m=hl(s)?Jn(s):window,I=m.visualViewport,T=!Mh()&&l,k=(d.left+(T&&I?I.offsetLeft:0))/c,A=(d.top+(T&&I?I.offsetTop:0))/g,B=d.width/c,U=d.height/g;return{width:B,height:U,top:A,right:k+B,bottom:A+U,left:k,x:k,y:A}}function Md(s){var o=zs(s),l=s.offsetWidth,d=s.offsetHeight;return Math.abs(o.width-l)<=1&&(l=o.width),Math.abs(o.height-d)<=1&&(d=o.height),{x:s.offsetLeft,y:s.offsetTop,width:l,height:d}}function kh(s,o){var l=o.getRootNode&&o.getRootNode();if(s.contains(o))return!0;if(l&&Sd(l)){var d=o;do{if(d&&s.isSameNode(d))return!0;d=d.parentNode||d.host}while(d)}return!1}function vi(s){return Jn(s).getComputedStyle(s)}function G3(s){return["table","td","th"].indexOf(Yi(s))>=0}function ma(s){return((hl(s)?s.ownerDocument:s.document)||window.document).documentElement}function F0(s){return Yi(s)==="html"?s:s.assignedSlot||s.parentNode||(Sd(s)?s.host:null)||ma(s)}function Ff(s){return!Nn(s)||vi(s).position==="fixed"?null:s.offsetParent}function V3(s){var o=/firefox/i.test(gd()),l=/Trident/i.test(gd());if(l&&Nn(s)){var d=vi(s);if(d.position==="fixed")return null}var c=F0(s);for(Sd(c)&&(c=c.host);Nn(c)&&["html","body"].indexOf(Yi(c))<0;){var g=vi(c);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||o&&g.willChange==="filter"||o&&g.filter&&g.filter!=="none")return c;c=c.parentNode}return null}function Zu(s){for(var o=Jn(s),l=Ff(s);l&&G3(l)&&vi(l).position==="static";)l=Ff(l);return l&&(Yi(l)==="html"||Yi(l)==="body"&&vi(l).position==="static")?o:l||V3(s)||o}function kd(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Eu(s,o,l){return cl(s,_0(o,l))}function q3(s,o,l){var d=Eu(s,o,l);return d>l?l:d}function Oh(){return{top:0,right:0,bottom:0,left:0}}function Th(s){return Object.assign({},Oh(),s)}function Ph(s,o){return o.reduce(function(l,d){return l[d]=s,l},{})}var K3=function(o,l){return o=typeof o=="function"?o(Object.assign({},l.rects,{placement:l.placement})):o,Th(typeof o!="number"?o:Ph(o,Uu))};function j3(s){var o,l=s.state,d=s.name,c=s.options,g=l.elements.arrow,m=l.modifiersData.popperOffsets,I=gi(l.placement),T=kd(I),k=[wn,Qn].indexOf(I)>=0,A=k?"height":"width";if(!(!g||!m)){var B=K3(c.padding,l),U=Md(g),Z=T==="y"?Cn:wn,re=T==="y"?Xn:Qn,ve=l.rects.reference[A]+l.rects.reference[T]-m[T]-l.rects.popper[A],ge=m[T]-l.rects.reference[T],Me=Zu(g),Te=Me?T==="y"?Me.clientHeight||0:Me.clientWidth||0:0,pe=ve/2-ge/2,de=B[Z],ke=Te-U[A]-B[re],Pe=Te/2-U[A]/2+pe,Ie=Eu(de,Pe,ke),qe=T;l.modifiersData[d]=(o={},o[qe]=Ie,o.centerOffset=Ie-Pe,o)}}function Y3(s){var o=s.state,l=s.options,d=l.element,c=d===void 0?"[data-popper-arrow]":d;if(c!=null&&!(typeof c=="string"&&(c=o.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&(Nn(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(" "))),!kh(o.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}o.elements.arrow=c}}const X3={name:"arrow",enabled:!0,phase:"main",fn:j3,effect:Y3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ls(s){return s.split("-")[1]}var Q3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J3(s){var o=s.x,l=s.y,d=window,c=d.devicePixelRatio||1;return{x:xs(o*c)/c||0,y:xs(l*c)/c||0}}function Wf(s){var o,l=s.popper,d=s.popperRect,c=s.placement,g=s.variation,m=s.offsets,I=s.position,T=s.gpuAcceleration,k=s.adaptive,A=s.roundOffsets,B=s.isFixed,U=m.x,Z=U===void 0?0:U,re=m.y,ve=re===void 0?0:re,ge=typeof A=="function"?A({x:Z,y:ve}):{x:Z,y:ve};Z=ge.x,ve=ge.y;var Me=m.hasOwnProperty("x"),Te=m.hasOwnProperty("y"),pe=wn,de=Cn,ke=window;if(k){var Pe=Zu(l),Ie="clientHeight",qe="clientWidth";if(Pe===Jn(l)&&(Pe=ma(l),vi(Pe).position!=="static"&&I==="absolute"&&(Ie="scrollHeight",qe="scrollWidth")),Pe=Pe,c===Cn||(c===wn||c===Qn)&&g===Nu){de=Xn;var je=B&&Pe===ke&&ke.visualViewport?ke.visualViewport.height:Pe[Ie];ve-=je-d.height,ve*=T?1:-1}if(c===wn||(c===Cn||c===Xn)&&g===Nu){pe=Qn;var be=B&&Pe===ke&&ke.visualViewport?ke.visualViewport.width:Pe[qe];Z-=be-d.width,Z*=T?1:-1}}var ye=Object.assign({position:I},k&&Q3),Qe=A===!0?J3({x:Z,y:ve}):{x:Z,y:ve};if(Z=Qe.x,ve=Qe.y,T){var G;return Object.assign({},ye,(G={},G[de]=Te?"0":"",G[pe]=Me?"0":"",G.transform=(ke.devicePixelRatio||1)<=1?"translate("+Z+"px, "+ve+"px)":"translate3d("+Z+"px, "+ve+"px, 0)",G))}return Object.assign({},ye,(o={},o[de]=Te?ve+"px":"",o[pe]=Me?Z+"px":"",o.transform="",o))}function eg(s){var o=s.state,l=s.options,d=l.gpuAcceleration,c=d===void 0?!0:d,g=l.adaptive,m=g===void 0?!0:g,I=l.roundOffsets,T=I===void 0?!0:I;if({}.NODE_ENV!=="production"){var k=vi(o.elements.popper).transitionProperty||"";m&&["transform","top","right","bottom","left"].some(function(B){return k.indexOf(B)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
124
124
|
|
|
125
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.",`
|
|
126
126
|
|
|
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 A={placement:gi(o.placement),variation:Ls(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:c,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,Uf(Object.assign({},A,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:m,roundOffsets:T})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,Uf(Object.assign({},A,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:T})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const ng={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rg,data:{}};var m0={passive:!0};function ig(s){var o=s.state,l=s.instance,d=s.options,c=d.scroll,g=c===void 0?!0:c,m=d.resize,I=m===void 0?!0:m,T=Jn(o.elements.popper),k=[].concat(o.scrollParents.reference,o.scrollParents.popper);return g&&k.forEach(function(A){A.addEventListener("scroll",l.update,m0)}),I&&T.addEventListener("resize",l.update,m0),function(){g&&k.forEach(function(A){A.removeEventListener("scroll",l.update,m0)}),I&&T.removeEventListener("resize",l.update,m0)}}const og={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ig,data:{}};var ag={left:"right",right:"left",bottom:"top",top:"bottom"};function C0(s){return s.replace(/left|right|bottom|top/g,function(o){return ag[o]})}var lg={start:"end",end:"start"};function Zf(s){return s.replace(/start|end/g,function(o){return lg[o]})}function Td(s){var o=Jn(s),l=o.pageXOffset,d=o.pageYOffset;return{scrollLeft:l,scrollTop:d}}function Pd(s){return zs(ma(s)).left+Td(s).scrollLeft}function sg(s,o){var l=Jn(s),d=ma(s),c=l.visualViewport,g=d.clientWidth,m=d.clientHeight,I=0,T=0;if(c){g=c.width,m=c.height;var k=Oh();(k||!k&&o==="fixed")&&(I=c.offsetLeft,T=c.offsetTop)}return{width:g,height:m,x:I+Pd(s),y:T}}function ug(s){var o,l=ma(s),d=Td(s),c=(o=s.ownerDocument)==null?void 0:o.body,g=cl(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),m=cl(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),I=-d.scrollLeft+Pd(s),T=-d.scrollTop;return vi(c||l).direction==="rtl"&&(I+=cl(l.clientWidth,c?c.clientWidth:0)-g),{width:g,height:m,x:I,y:T}}function Ed(s){var o=vi(s),l=o.overflow,d=o.overflowX,c=o.overflowY;return/auto|scroll|overlay|hidden/.test(l+c+d)}function Ah(s){return["html","body","#document"].indexOf(Yi(s))>=0?s.ownerDocument.body:Nn(s)&&Ed(s)?s:Ah(F0(s))}function Iu(s,o){var l;o===void 0&&(o=[]);var d=Ah(s),c=d===((l=s.ownerDocument)==null?void 0:l.body),g=Jn(d),m=c?[g].concat(g.visualViewport||[],Ed(d)?d:[]):d,I=o.concat(m);return c?I:I.concat(Iu(F0(m)))}function bd(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function cg(s,o){var l=zs(s,!1,o==="fixed");return l.top=l.top+s.clientTop,l.left=l.left+s.clientLeft,l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,l.width=s.clientWidth,l.height=s.clientHeight,l.x=l.left,l.y=l.top,l}function Gf(s,o,l){return o===Mh?bd(sg(s,l)):hl(o)?cg(o,l):bd(ug(ma(s)))}function dg(s){var o=Iu(F0(s)),l=["absolute","fixed"].indexOf(vi(s).position)>=0,d=l&&Nn(s)?Zu(s):s;return hl(d)?o.filter(function(c){return hl(c)&&Th(c,d)&&Yi(c)!=="body"}):[]}function fg(s,o,l,d){var c=o==="clippingParents"?dg(s):[].concat(o),g=[].concat(c,[l]),m=g[0],I=g.reduce(function(T,k){var A=Gf(s,k,d);return T.top=cl(A.top,T.top),T.right=_0(A.right,T.right),T.bottom=_0(A.bottom,T.bottom),T.left=cl(A.left,T.left),T},Gf(s,m,d));return I.width=I.right-I.left,I.height=I.bottom-I.top,I.x=I.left,I.y=I.top,I}function Dh(s){var o=s.reference,l=s.element,d=s.placement,c=d?gi(d):null,g=d?Ls(d):null,m=o.x+o.width/2-l.width/2,I=o.y+o.height/2-l.height/2,T;switch(c){case Cn:T={x:m,y:o.y-l.height};break;case Xn:T={x:m,y:o.y+o.height};break;case Qn:T={x:o.x+o.width,y:I};break;case wn:T={x:o.x-l.width,y:I};break;default:T={x:o.x,y:o.y}}var k=c?Od(c):null;if(k!=null){var A=k==="y"?"height":"width";switch(g){case ws:T[k]=T[k]-(o[A]/2-l[A]/2);break;case Nu:T[k]=T[k]+(o[A]/2-l[A]/2);break}}return T}function Ru(s,o){o===void 0&&(o={});var l=o,d=l.placement,c=d===void 0?s.placement:d,g=l.strategy,m=g===void 0?s.strategy:g,I=l.boundary,T=I===void 0?I3:I,k=l.rootBoundary,A=k===void 0?Mh:k,B=l.elementContext,U=B===void 0?Mu:B,Z=l.altBoundary,re=Z===void 0?!1:Z,ve=l.padding,ge=ve===void 0?0:ve,Me=Eh(typeof ge!="number"?ge:Ih(ge,Uu)),Te=U===Mu?A3:Mu,pe=s.rects.popper,de=s.elements[re?Te:U],ke=fg(hl(de)?de:de.contextElement||ma(s.elements.popper),T,A,m),Pe=zs(s.elements.reference),Ie=Dh({reference:Pe,element:pe,strategy:"absolute",placement:c}),qe=bd(Object.assign({},pe,Ie)),je=U===Mu?qe:Pe,be={top:ke.top-je.top+Me.top,bottom:je.bottom-ke.bottom+Me.bottom,left:ke.left-je.left+Me.left,right:je.right-ke.right+Me.right},ye=s.modifiersData.offset;if(U===Mu&&ye){var Qe=ye[c];Object.keys(be).forEach(function(G){var E=[Qn,Xn].indexOf(G)>=0?1:-1,S=[Cn,Xn].indexOf(G)>=0?"y":"x";be[G]+=Qe[S]*E})}return be}function hg(s,o){o===void 0&&(o={});var l=o,d=l.placement,c=l.boundary,g=l.rootBoundary,m=l.padding,I=l.flipVariations,T=l.allowedAutoPlacements,k=T===void 0?kh:T,A=Ls(d),B=A?I?Ff:Ff.filter(function(re){return Ls(re)===A}):Uu,U=B.filter(function(re){return k.indexOf(re)>=0});U.length===0&&(U=B,{}.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,ve){return re[ve]=Ru(s,{placement:ve,boundary:c,rootBoundary:g,padding:m})[gi(ve)],re},{});return Object.keys(Z).sort(function(re,ve){return Z[re]-Z[ve]})}function pg(s){if(gi(s)===B0)return[];var o=C0(s);return[Zf(s),o,Zf(o)]}function gg(s){var o=s.state,l=s.options,d=s.name;if(!o.modifiersData[d]._skip){for(var c=l.mainAxis,g=c===void 0?!0:c,m=l.altAxis,I=m===void 0?!0:m,T=l.fallbackPlacements,k=l.padding,A=l.boundary,B=l.rootBoundary,U=l.altBoundary,Z=l.flipVariations,re=Z===void 0?!0:Z,ve=l.allowedAutoPlacements,ge=o.options.placement,Me=gi(ge),Te=Me===ge,pe=T||(Te||!re?[C0(ge)]:pg(ge)),de=[ge].concat(pe).reduce(function(At,at){return At.concat(gi(at)===B0?hg(o,{placement:at,boundary:A,rootBoundary:B,padding:k,flipVariations:re,allowedAutoPlacements:ve}):at)},[]),ke=o.rects.reference,Pe=o.rects.popper,Ie=new Map,qe=!0,je=de[0],be=0;be<de.length;be++){var ye=de[be],Qe=gi(ye),G=Ls(ye)===ws,E=[Cn,Xn].indexOf(Qe)>=0,S=E?"width":"height",ee=Ru(o,{placement:ye,boundary:A,rootBoundary:B,altBoundary:U,padding:k}),me=E?G?Qn:wn:G?Xn:Cn;ke[S]>Pe[S]&&(me=C0(me));var rt=C0(me),Lt=[];if(g&&Lt.push(ee[Qe]<=0),I&&Lt.push(ee[me]<=0,ee[rt]<=0),Lt.every(function(At){return At})){je=ye,qe=!1;break}Ie.set(ye,Lt)}if(qe)for(var jt=re?3:1,It=function(at){var Le=de.find(function(He){var We=Ie.get(He);if(We)return We.slice(0,at).every(function(nt){return nt})});if(Le)return je=Le,"break"},Xr=jt;Xr>0;Xr--){var Ut=It(Xr);if(Ut==="break")break}o.placement!==je&&(o.modifiersData[d]._skip=!0,o.placement=je,o.reset=!0)}}const vg={name:"flip",enabled:!0,phase:"main",fn:gg,requiresIfExists:["offset"],data:{_skip:!1}};function Vf(s,o,l){return l===void 0&&(l={x:0,y:0}),{top:s.top-o.height-l.y,right:s.right-o.width+l.x,bottom:s.bottom-o.height+l.y,left:s.left-o.width-l.x}}function qf(s){return[Cn,Qn,Xn,wn].some(function(o){return s[o]>=0})}function bg(s){var o=s.state,l=s.name,d=o.rects.reference,c=o.rects.popper,g=o.modifiersData.preventOverflow,m=Ru(o,{elementContext:"reference"}),I=Ru(o,{altBoundary:!0}),T=Vf(m,d),k=Vf(I,c,g),A=qf(T),B=qf(k);o.modifiersData[l]={referenceClippingOffsets:T,popperEscapeOffsets:k,isReferenceHidden:A,hasPopperEscaped:B},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":B})}const mg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bg};function yg(s,o,l){var d=gi(s),c=[wn,Cn].indexOf(d)>=0?-1:1,g=typeof l=="function"?l(Object.assign({},o,{placement:s})):l,m=g[0],I=g[1];return m=m||0,I=(I||0)*c,[wn,Qn].indexOf(d)>=0?{x:I,y:m}:{x:m,y:I}}function Cg(s){var o=s.state,l=s.options,d=s.name,c=l.offset,g=c===void 0?[0,0]:c,m=kh.reduce(function(A,B){return A[B]=yg(B,o.rects,g),A},{}),I=m[o.placement],T=I.x,k=I.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=T,o.modifiersData.popperOffsets.y+=k),o.modifiersData[d]=m}const wg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cg};function xg(s){var o=s.state,l=s.name;o.modifiersData[l]=Dh({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const zg={name:"popperOffsets",enabled:!0,phase:"read",fn:xg,data:{}};function Lg(s){return s==="x"?"y":"x"}function _g(s){var o=s.state,l=s.options,d=s.name,c=l.mainAxis,g=c===void 0?!0:c,m=l.altAxis,I=m===void 0?!1:m,T=l.boundary,k=l.rootBoundary,A=l.altBoundary,B=l.padding,U=l.tether,Z=U===void 0?!0:U,re=l.tetherOffset,ve=re===void 0?0:re,ge=Ru(o,{boundary:T,rootBoundary:k,padding:B,altBoundary:A}),Me=gi(o.placement),Te=Ls(o.placement),pe=!Te,de=Od(Me),ke=Lg(de),Pe=o.modifiersData.popperOffsets,Ie=o.rects.reference,qe=o.rects.popper,je=typeof ve=="function"?ve(Object.assign({},o.rects,{placement:o.placement})):ve,be=typeof je=="number"?{mainAxis:je,altAxis:je}:Object.assign({mainAxis:0,altAxis:0},je),ye=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,Qe={x:0,y:0};if(!!Pe){if(g){var G,E=de==="y"?Cn:wn,S=de==="y"?Xn:Qn,ee=de==="y"?"height":"width",me=Pe[de],rt=me+ge[E],Lt=me-ge[S],jt=Z?-qe[ee]/2:0,It=Te===ws?Ie[ee]:qe[ee],Xr=Te===ws?-qe[ee]:-Ie[ee],Ut=o.elements.arrow,At=Z&&Ut?kd(Ut):{width:0,height:0},at=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:Ph(),Le=at[E],He=at[S],We=Eu(0,Ie[ee],At[ee]),nt=pe?Ie[ee]/2-jt-We-Le-be.mainAxis:It-We-Le-be.mainAxis,it=pe?-Ie[ee]/2+jt+We+He+be.mainAxis:Xr+We+He+be.mainAxis,Be=o.elements.arrow&&Zu(o.elements.arrow),Rt=Be?de==="y"?Be.clientTop||0:Be.clientLeft||0:0,Ar=(G=ye==null?void 0:ye[de])!=null?G:0,Yt=me+nt-Ar-Rt,Ke=me+it-Ar,ht=Eu(Z?_0(rt,Yt):rt,me,Z?cl(Lt,Ke):Lt);Pe[de]=ht,Qe[de]=ht-me}if(I){var wt,Lr=de==="x"?Cn:wn,Gr=de==="x"?Xn:Qn,er=Pe[ke],et=ke==="y"?"height":"width",W=er+ge[Lr],ae=er-ge[Gr],K=[Cn,wn].indexOf(Me)!==-1,Ye=(wt=ye==null?void 0:ye[ke])!=null?wt:0,tr=K?W:er-Ie[et]-qe[et]-Ye+be.altAxis,pr=K?er+Ie[et]+qe[et]-Ye-be.altAxis:ae,zn=Z&&K?j3(tr,er,pr):Eu(Z?tr:W,er,Z?pr:ae);Pe[ke]=zn,Qe[ke]=zn-er}o.modifiersData[d]=Qe}}const Sg={name:"preventOverflow",enabled:!0,phase:"main",fn:_g,requiresIfExists:["offset"]};function Mg(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function kg(s){return s===Jn(s)||!Nn(s)?Td(s):Mg(s)}function Og(s){var o=s.getBoundingClientRect(),l=xs(o.width)/s.offsetWidth||1,d=xs(o.height)/s.offsetHeight||1;return l!==1||d!==1}function Tg(s,o,l){l===void 0&&(l=!1);var d=Nn(o),c=Nn(o)&&Og(o),g=ma(o),m=zs(s,c,l),I={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(d||!d&&!l)&&((Yi(o)!=="body"||Ed(g))&&(I=kg(o)),Nn(o)?(T=zs(o,!0),T.x+=o.clientLeft,T.y+=o.clientTop):g&&(T.x=Pd(g))),{x:m.left+I.scrollLeft-T.x,y:m.top+I.scrollTop-T.y,width:m.width,height:m.height}}function Pg(s){var o=new Map,l=new Set,d=[];s.forEach(function(g){o.set(g.name,g)});function c(g){l.add(g.name);var m=[].concat(g.requires||[],g.requiresIfExists||[]);m.forEach(function(I){if(!l.has(I)){var T=o.get(I);T&&c(T)}}),d.push(g)}return s.forEach(function(g){l.has(g.name)||c(g)}),d}function Eg(s){var o=Pg(s);return gd.reduce(function(l,d){return l.concat(o.filter(function(c){return c.phase===d}))},[])}function Ig(s){var o;return function(){return o||(o=new Promise(function(l){Promise.resolve().then(function(){o=void 0,l(s())})})),o}}function ha(s){for(var o=arguments.length,l=new Array(o>1?o-1:0),d=1;d<o;d++)l[d-1]=arguments[d];return[].concat(l).reduce(function(c,g){return c.replace(/%s/,g)},s)}var al='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ag='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Kf=["name","enabled","phase","fn","effect","requires","options"];function Dg(s){s.forEach(function(o){[].concat(Object.keys(o),Kf).filter(function(l,d,c){return c.indexOf(l)===d}).forEach(function(l){switch(l){case"name":typeof o.name!="string"&&console.error(ha(al,String(o.name),'"name"','"string"','"'+String(o.name)+'"'));break;case"enabled":typeof o.enabled!="boolean"&&console.error(ha(al,o.name,'"enabled"','"boolean"','"'+String(o.enabled)+'"'));break;case"phase":gd.indexOf(o.phase)<0&&console.error(ha(al,o.name,'"phase"',"either "+gd.join(", "),'"'+String(o.phase)+'"'));break;case"fn":typeof o.fn!="function"&&console.error(ha(al,o.name,'"fn"','"function"','"'+String(o.fn)+'"'));break;case"effect":o.effect!=null&&typeof o.effect!="function"&&console.error(ha(al,o.name,'"effect"','"function"','"'+String(o.fn)+'"'));break;case"requires":o.requires!=null&&!Array.isArray(o.requires)&&console.error(ha(al,o.name,'"requires"','"array"','"'+String(o.requires)+'"'));break;case"requiresIfExists":Array.isArray(o.requiresIfExists)||console.error(ha(al,o.name,'"requiresIfExists"','"array"','"'+String(o.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+o.name+'" modifier, valid properties are '+Kf.map(function(d){return'"'+d+'"'}).join(", ")+'; but "'+l+'" was provided.')}o.requires&&o.requires.forEach(function(d){s.find(function(c){return c.name===d})==null&&console.error(ha(Ag,String(o.name),d,d))})})})}function $g(s,o){var l=new Set;return s.filter(function(d){var c=o(d);if(!l.has(c))return l.add(c),!0})}function Ng(s){var o=s.reduce(function(l,d){var c=l[d.name];return l[d.name]=c?Object.assign({},c,d,{options:Object.assign({},c.options,d.options),data:Object.assign({},c.data,d.data)}):d,l},{});return Object.keys(o).map(function(l){return o[l]})}var jf="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Rg="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Yf={placement:"bottom",modifiers:[],strategy:"absolute"};function Xf(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return!o.some(function(d){return!(d&&typeof d.getBoundingClientRect=="function")})}function Hg(s){s===void 0&&(s={});var o=s,l=o.defaultModifiers,d=l===void 0?[]:l,c=o.defaultOptions,g=c===void 0?Yf:c;return function(I,T,k){k===void 0&&(k=g);var A={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yf,g),modifiersData:{},elements:{reference:I,popper:T},attributes:{},styles:{}},B=[],U=!1,Z={state:A,setOptions:function(Me){var Te=typeof Me=="function"?Me(A.options):Me;ve(),A.options=Object.assign({},g,A.options,Te),A.scrollParents={reference:hl(I)?Iu(I):I.contextElement?Iu(I.contextElement):[],popper:Iu(T)};var pe=Eg(Ng([].concat(d,A.options.modifiers)));if(A.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var de=$g([].concat(pe,A.options.modifiers),function(ye){var Qe=ye.name;return Qe});if(Dg(de),gi(A.options.placement)===B0){var ke=A.orderedModifiers.find(function(ye){var Qe=ye.name;return Qe==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Pe=vi(T),Ie=Pe.marginTop,qe=Pe.marginRight,je=Pe.marginBottom,be=Pe.marginLeft;[Ie,qe,je,be].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 Me=A.elements,Te=Me.reference,pe=Me.popper;if(!Xf(Te,pe)){({}).NODE_ENV!=="production"&&console.error(jf);return}A.rects={reference:Tg(Te,Zu(pe),A.options.strategy==="fixed"),popper:kd(pe)},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(ye){return A.modifiersData[ye.name]=Object.assign({},ye.data)});for(var de=0,ke=0;ke<A.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(de+=1,de>100)){console.error(Rg);break}if(A.reset===!0){A.reset=!1,ke=-1;continue}var Pe=A.orderedModifiers[ke],Ie=Pe.fn,qe=Pe.options,je=qe===void 0?{}:qe,be=Pe.name;typeof Ie=="function"&&(A=Ie({state:A,options:je,name:be,instance:Z})||A)}}},update:Ig(function(){return new Promise(function(ge){Z.forceUpdate(),ge(A)})}),destroy:function(){ve(),U=!0}};if(!Xf(I,T))return{}.NODE_ENV!=="production"&&console.error(jf),Z;Z.setOptions(k).then(function(ge){!U&&k.onFirstUpdate&&k.onFirstUpdate(ge)});function re(){A.orderedModifiers.forEach(function(ge){var Me=ge.name,Te=ge.options,pe=Te===void 0?{}:Te,de=ge.effect;if(typeof de=="function"){var ke=de({state:A,name:Me,instance:Z,options:pe}),Pe=function(){};B.push(ke||Pe)}})}function ve(){B.forEach(function(ge){return ge()}),B=[]}return Z}}var Bg=[og,zg,ng,V3,wg,vg,Sg,J3,mg],Fg=Hg({defaultModifiers:Bg}),Wg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,Fr=(s,o,l,d)=>{for(var c=d>1?void 0:d?Ug(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Wg(o,l,c),c};let Zg=0;const Id=Se("popover"),$h=Se("pure-popover"),Nh=["click","hover","focus"],[S0,md,ul]=Nh,Ad=["dialog","tooltip","menu"],[Gg]=Ad;class Vg extends CustomEvent{constructor(o){super(`${Id}-${o}`,{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=Gg,this.disabled=!1,this.popoverId=`popover-${++Zg}`,this.delayTimeout=0}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.popperInstance)==null||s.destroy()}updatePosition(){var s;(s=this.popperInstance)==null||s.update()}async updated(s){super.updated(s),this.popperInstance=this.popperInstance||Fg(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 o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");return s==null?void 0:s.assignedElements({flatten:!0})[0]}get contentElement(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("slot[name=content]");return s==null?void 0:s.assignedNodes({flatten:!0})[0]}get popoverElement(){var s;return(s=this.shadowRoot)==null?void 0:s.querySelector(".popover-container")}emit(s){this.dispatchEvent(new Vg(s))}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 Y`
|
|
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 A={placement:gi(o.placement),variation:Ls(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:c,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,Wf(Object.assign({},A,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:m,roundOffsets:T})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,Wf(Object.assign({},A,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:T})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const tg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eg,data:{}};var m0={passive:!0};function rg(s){var o=s.state,l=s.instance,d=s.options,c=d.scroll,g=c===void 0?!0:c,m=d.resize,I=m===void 0?!0:m,T=Jn(o.elements.popper),k=[].concat(o.scrollParents.reference,o.scrollParents.popper);return g&&k.forEach(function(A){A.addEventListener("scroll",l.update,m0)}),I&&T.addEventListener("resize",l.update,m0),function(){g&&k.forEach(function(A){A.removeEventListener("scroll",l.update,m0)}),I&&T.removeEventListener("resize",l.update,m0)}}const ng={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rg,data:{}};var ig={left:"right",right:"left",bottom:"top",top:"bottom"};function C0(s){return s.replace(/left|right|bottom|top/g,function(o){return ig[o]})}var og={start:"end",end:"start"};function Uf(s){return s.replace(/start|end/g,function(o){return og[o]})}function Od(s){var o=Jn(s),l=o.pageXOffset,d=o.pageYOffset;return{scrollLeft:l,scrollTop:d}}function Td(s){return zs(ma(s)).left+Od(s).scrollLeft}function ag(s,o){var l=Jn(s),d=ma(s),c=l.visualViewport,g=d.clientWidth,m=d.clientHeight,I=0,T=0;if(c){g=c.width,m=c.height;var k=Mh();(k||!k&&o==="fixed")&&(I=c.offsetLeft,T=c.offsetTop)}return{width:g,height:m,x:I+Td(s),y:T}}function lg(s){var o,l=ma(s),d=Od(s),c=(o=s.ownerDocument)==null?void 0:o.body,g=cl(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),m=cl(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),I=-d.scrollLeft+Td(s),T=-d.scrollTop;return vi(c||l).direction==="rtl"&&(I+=cl(l.clientWidth,c?c.clientWidth:0)-g),{width:g,height:m,x:I,y:T}}function Pd(s){var o=vi(s),l=o.overflow,d=o.overflowX,c=o.overflowY;return/auto|scroll|overlay|hidden/.test(l+c+d)}function Eh(s){return["html","body","#document"].indexOf(Yi(s))>=0?s.ownerDocument.body:Nn(s)&&Pd(s)?s:Eh(F0(s))}function Iu(s,o){var l;o===void 0&&(o=[]);var d=Eh(s),c=d===((l=s.ownerDocument)==null?void 0:l.body),g=Jn(d),m=c?[g].concat(g.visualViewport||[],Pd(d)?d:[]):d,I=o.concat(m);return c?I:I.concat(Iu(F0(m)))}function vd(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function sg(s,o){var l=zs(s,!1,o==="fixed");return l.top=l.top+s.clientTop,l.left=l.left+s.clientLeft,l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,l.width=s.clientWidth,l.height=s.clientHeight,l.x=l.left,l.y=l.top,l}function Zf(s,o,l){return o===_h?vd(ag(s,l)):hl(o)?sg(o,l):vd(lg(ma(s)))}function ug(s){var o=Iu(F0(s)),l=["absolute","fixed"].indexOf(vi(s).position)>=0,d=l&&Nn(s)?Zu(s):s;return hl(d)?o.filter(function(c){return hl(c)&&kh(c,d)&&Yi(c)!=="body"}):[]}function cg(s,o,l,d){var c=o==="clippingParents"?ug(s):[].concat(o),g=[].concat(c,[l]),m=g[0],I=g.reduce(function(T,k){var A=Zf(s,k,d);return T.top=cl(A.top,T.top),T.right=_0(A.right,T.right),T.bottom=_0(A.bottom,T.bottom),T.left=cl(A.left,T.left),T},Zf(s,m,d));return I.width=I.right-I.left,I.height=I.bottom-I.top,I.x=I.left,I.y=I.top,I}function Ih(s){var o=s.reference,l=s.element,d=s.placement,c=d?gi(d):null,g=d?Ls(d):null,m=o.x+o.width/2-l.width/2,I=o.y+o.height/2-l.height/2,T;switch(c){case Cn:T={x:m,y:o.y-l.height};break;case Xn:T={x:m,y:o.y+o.height};break;case Qn:T={x:o.x+o.width,y:I};break;case wn:T={x:o.x-l.width,y:I};break;default:T={x:o.x,y:o.y}}var k=c?kd(c):null;if(k!=null){var A=k==="y"?"height":"width";switch(g){case ws:T[k]=T[k]-(o[A]/2-l[A]/2);break;case Nu:T[k]=T[k]+(o[A]/2-l[A]/2);break}}return T}function Ru(s,o){o===void 0&&(o={});var l=o,d=l.placement,c=d===void 0?s.placement:d,g=l.strategy,m=g===void 0?s.strategy:g,I=l.boundary,T=I===void 0?P3:I,k=l.rootBoundary,A=k===void 0?_h:k,B=l.elementContext,U=B===void 0?Mu:B,Z=l.altBoundary,re=Z===void 0?!1:Z,ve=l.padding,ge=ve===void 0?0:ve,Me=Th(typeof ge!="number"?ge:Ph(ge,Uu)),Te=U===Mu?E3:Mu,pe=s.rects.popper,de=s.elements[re?Te:U],ke=cg(hl(de)?de:de.contextElement||ma(s.elements.popper),T,A,m),Pe=zs(s.elements.reference),Ie=Ih({reference:Pe,element:pe,strategy:"absolute",placement:c}),qe=vd(Object.assign({},pe,Ie)),je=U===Mu?qe:Pe,be={top:ke.top-je.top+Me.top,bottom:je.bottom-ke.bottom+Me.bottom,left:ke.left-je.left+Me.left,right:je.right-ke.right+Me.right},ye=s.modifiersData.offset;if(U===Mu&&ye){var Qe=ye[c];Object.keys(be).forEach(function(G){var E=[Qn,Xn].indexOf(G)>=0?1:-1,S=[Cn,Xn].indexOf(G)>=0?"y":"x";be[G]+=Qe[S]*E})}return be}function dg(s,o){o===void 0&&(o={});var l=o,d=l.placement,c=l.boundary,g=l.rootBoundary,m=l.padding,I=l.flipVariations,T=l.allowedAutoPlacements,k=T===void 0?Sh:T,A=Ls(d),B=A?I?Bf:Bf.filter(function(re){return Ls(re)===A}):Uu,U=B.filter(function(re){return k.indexOf(re)>=0});U.length===0&&(U=B,{}.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,ve){return re[ve]=Ru(s,{placement:ve,boundary:c,rootBoundary:g,padding:m})[gi(ve)],re},{});return Object.keys(Z).sort(function(re,ve){return Z[re]-Z[ve]})}function fg(s){if(gi(s)===B0)return[];var o=C0(s);return[Uf(s),o,Uf(o)]}function hg(s){var o=s.state,l=s.options,d=s.name;if(!o.modifiersData[d]._skip){for(var c=l.mainAxis,g=c===void 0?!0:c,m=l.altAxis,I=m===void 0?!0:m,T=l.fallbackPlacements,k=l.padding,A=l.boundary,B=l.rootBoundary,U=l.altBoundary,Z=l.flipVariations,re=Z===void 0?!0:Z,ve=l.allowedAutoPlacements,ge=o.options.placement,Me=gi(ge),Te=Me===ge,pe=T||(Te||!re?[C0(ge)]:fg(ge)),de=[ge].concat(pe).reduce(function(At,at){return At.concat(gi(at)===B0?dg(o,{placement:at,boundary:A,rootBoundary:B,padding:k,flipVariations:re,allowedAutoPlacements:ve}):at)},[]),ke=o.rects.reference,Pe=o.rects.popper,Ie=new Map,qe=!0,je=de[0],be=0;be<de.length;be++){var ye=de[be],Qe=gi(ye),G=Ls(ye)===ws,E=[Cn,Xn].indexOf(Qe)>=0,S=E?"width":"height",ee=Ru(o,{placement:ye,boundary:A,rootBoundary:B,altBoundary:U,padding:k}),me=E?G?Qn:wn:G?Xn:Cn;ke[S]>Pe[S]&&(me=C0(me));var rt=C0(me),Lt=[];if(g&&Lt.push(ee[Qe]<=0),I&&Lt.push(ee[me]<=0,ee[rt]<=0),Lt.every(function(At){return At})){je=ye,qe=!1;break}Ie.set(ye,Lt)}if(qe)for(var jt=re?3:1,It=function(at){var Le=de.find(function(He){var We=Ie.get(He);if(We)return We.slice(0,at).every(function(nt){return nt})});if(Le)return je=Le,"break"},Xr=jt;Xr>0;Xr--){var Ut=It(Xr);if(Ut==="break")break}o.placement!==je&&(o.modifiersData[d]._skip=!0,o.placement=je,o.reset=!0)}}const pg={name:"flip",enabled:!0,phase:"main",fn:hg,requiresIfExists:["offset"],data:{_skip:!1}};function Gf(s,o,l){return l===void 0&&(l={x:0,y:0}),{top:s.top-o.height-l.y,right:s.right-o.width+l.x,bottom:s.bottom-o.height+l.y,left:s.left-o.width-l.x}}function Vf(s){return[Cn,Qn,Xn,wn].some(function(o){return s[o]>=0})}function gg(s){var o=s.state,l=s.name,d=o.rects.reference,c=o.rects.popper,g=o.modifiersData.preventOverflow,m=Ru(o,{elementContext:"reference"}),I=Ru(o,{altBoundary:!0}),T=Gf(m,d),k=Gf(I,c,g),A=Vf(T),B=Vf(k);o.modifiersData[l]={referenceClippingOffsets:T,popperEscapeOffsets:k,isReferenceHidden:A,hasPopperEscaped:B},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":B})}const vg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gg};function bg(s,o,l){var d=gi(s),c=[wn,Cn].indexOf(d)>=0?-1:1,g=typeof l=="function"?l(Object.assign({},o,{placement:s})):l,m=g[0],I=g[1];return m=m||0,I=(I||0)*c,[wn,Qn].indexOf(d)>=0?{x:I,y:m}:{x:m,y:I}}function mg(s){var o=s.state,l=s.options,d=s.name,c=l.offset,g=c===void 0?[0,0]:c,m=Sh.reduce(function(A,B){return A[B]=bg(B,o.rects,g),A},{}),I=m[o.placement],T=I.x,k=I.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=T,o.modifiersData.popperOffsets.y+=k),o.modifiersData[d]=m}const yg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mg};function Cg(s){var o=s.state,l=s.name;o.modifiersData[l]=Ih({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const wg={name:"popperOffsets",enabled:!0,phase:"read",fn:Cg,data:{}};function xg(s){return s==="x"?"y":"x"}function zg(s){var o=s.state,l=s.options,d=s.name,c=l.mainAxis,g=c===void 0?!0:c,m=l.altAxis,I=m===void 0?!1:m,T=l.boundary,k=l.rootBoundary,A=l.altBoundary,B=l.padding,U=l.tether,Z=U===void 0?!0:U,re=l.tetherOffset,ve=re===void 0?0:re,ge=Ru(o,{boundary:T,rootBoundary:k,padding:B,altBoundary:A}),Me=gi(o.placement),Te=Ls(o.placement),pe=!Te,de=kd(Me),ke=xg(de),Pe=o.modifiersData.popperOffsets,Ie=o.rects.reference,qe=o.rects.popper,je=typeof ve=="function"?ve(Object.assign({},o.rects,{placement:o.placement})):ve,be=typeof je=="number"?{mainAxis:je,altAxis:je}:Object.assign({mainAxis:0,altAxis:0},je),ye=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,Qe={x:0,y:0};if(!!Pe){if(g){var G,E=de==="y"?Cn:wn,S=de==="y"?Xn:Qn,ee=de==="y"?"height":"width",me=Pe[de],rt=me+ge[E],Lt=me-ge[S],jt=Z?-qe[ee]/2:0,It=Te===ws?Ie[ee]:qe[ee],Xr=Te===ws?-qe[ee]:-Ie[ee],Ut=o.elements.arrow,At=Z&&Ut?Md(Ut):{width:0,height:0},at=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:Oh(),Le=at[E],He=at[S],We=Eu(0,Ie[ee],At[ee]),nt=pe?Ie[ee]/2-jt-We-Le-be.mainAxis:It-We-Le-be.mainAxis,it=pe?-Ie[ee]/2+jt+We+He+be.mainAxis:Xr+We+He+be.mainAxis,Be=o.elements.arrow&&Zu(o.elements.arrow),Rt=Be?de==="y"?Be.clientTop||0:Be.clientLeft||0:0,Ar=(G=ye==null?void 0:ye[de])!=null?G:0,Yt=me+nt-Ar-Rt,Ke=me+it-Ar,ht=Eu(Z?_0(rt,Yt):rt,me,Z?cl(Lt,Ke):Lt);Pe[de]=ht,Qe[de]=ht-me}if(I){var wt,Lr=de==="x"?Cn:wn,Gr=de==="x"?Xn:Qn,er=Pe[ke],et=ke==="y"?"height":"width",W=er+ge[Lr],ae=er-ge[Gr],K=[Cn,wn].indexOf(Me)!==-1,Ye=(wt=ye==null?void 0:ye[ke])!=null?wt:0,tr=K?W:er-Ie[et]-qe[et]-Ye+be.altAxis,pr=K?er+Ie[et]+qe[et]-Ye-be.altAxis:ae,zn=Z&&K?q3(tr,er,pr):Eu(Z?tr:W,er,Z?pr:ae);Pe[ke]=zn,Qe[ke]=zn-er}o.modifiersData[d]=Qe}}const Lg={name:"preventOverflow",enabled:!0,phase:"main",fn:zg,requiresIfExists:["offset"]};function _g(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Sg(s){return s===Jn(s)||!Nn(s)?Od(s):_g(s)}function Mg(s){var o=s.getBoundingClientRect(),l=xs(o.width)/s.offsetWidth||1,d=xs(o.height)/s.offsetHeight||1;return l!==1||d!==1}function kg(s,o,l){l===void 0&&(l=!1);var d=Nn(o),c=Nn(o)&&Mg(o),g=ma(o),m=zs(s,c,l),I={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(d||!d&&!l)&&((Yi(o)!=="body"||Pd(g))&&(I=Sg(o)),Nn(o)?(T=zs(o,!0),T.x+=o.clientLeft,T.y+=o.clientTop):g&&(T.x=Td(g))),{x:m.left+I.scrollLeft-T.x,y:m.top+I.scrollTop-T.y,width:m.width,height:m.height}}function Og(s){var o=new Map,l=new Set,d=[];s.forEach(function(g){o.set(g.name,g)});function c(g){l.add(g.name);var m=[].concat(g.requires||[],g.requiresIfExists||[]);m.forEach(function(I){if(!l.has(I)){var T=o.get(I);T&&c(T)}}),d.push(g)}return s.forEach(function(g){l.has(g.name)||c(g)}),d}function Tg(s){var o=Og(s);return pd.reduce(function(l,d){return l.concat(o.filter(function(c){return c.phase===d}))},[])}function Pg(s){var o;return function(){return o||(o=new Promise(function(l){Promise.resolve().then(function(){o=void 0,l(s())})})),o}}function ha(s){for(var o=arguments.length,l=new Array(o>1?o-1:0),d=1;d<o;d++)l[d-1]=arguments[d];return[].concat(l).reduce(function(c,g){return c.replace(/%s/,g)},s)}var al='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Eg='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',qf=["name","enabled","phase","fn","effect","requires","options"];function Ig(s){s.forEach(function(o){[].concat(Object.keys(o),qf).filter(function(l,d,c){return c.indexOf(l)===d}).forEach(function(l){switch(l){case"name":typeof o.name!="string"&&console.error(ha(al,String(o.name),'"name"','"string"','"'+String(o.name)+'"'));break;case"enabled":typeof o.enabled!="boolean"&&console.error(ha(al,o.name,'"enabled"','"boolean"','"'+String(o.enabled)+'"'));break;case"phase":pd.indexOf(o.phase)<0&&console.error(ha(al,o.name,'"phase"',"either "+pd.join(", "),'"'+String(o.phase)+'"'));break;case"fn":typeof o.fn!="function"&&console.error(ha(al,o.name,'"fn"','"function"','"'+String(o.fn)+'"'));break;case"effect":o.effect!=null&&typeof o.effect!="function"&&console.error(ha(al,o.name,'"effect"','"function"','"'+String(o.fn)+'"'));break;case"requires":o.requires!=null&&!Array.isArray(o.requires)&&console.error(ha(al,o.name,'"requires"','"array"','"'+String(o.requires)+'"'));break;case"requiresIfExists":Array.isArray(o.requiresIfExists)||console.error(ha(al,o.name,'"requiresIfExists"','"array"','"'+String(o.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+o.name+'" modifier, valid properties are '+qf.map(function(d){return'"'+d+'"'}).join(", ")+'; but "'+l+'" was provided.')}o.requires&&o.requires.forEach(function(d){s.find(function(c){return c.name===d})==null&&console.error(ha(Eg,String(o.name),d,d))})})})}function Ag(s,o){var l=new Set;return s.filter(function(d){var c=o(d);if(!l.has(c))return l.add(c),!0})}function Dg(s){var o=s.reduce(function(l,d){var c=l[d.name];return l[d.name]=c?Object.assign({},c,d,{options:Object.assign({},c.options,d.options),data:Object.assign({},c.data,d.data)}):d,l},{});return Object.keys(o).map(function(l){return o[l]})}var Kf="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",$g="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",jf={placement:"bottom",modifiers:[],strategy:"absolute"};function Yf(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return!o.some(function(d){return!(d&&typeof d.getBoundingClientRect=="function")})}function Ng(s){s===void 0&&(s={});var o=s,l=o.defaultModifiers,d=l===void 0?[]:l,c=o.defaultOptions,g=c===void 0?jf:c;return function(I,T,k){k===void 0&&(k=g);var A={placement:"bottom",orderedModifiers:[],options:Object.assign({},jf,g),modifiersData:{},elements:{reference:I,popper:T},attributes:{},styles:{}},B=[],U=!1,Z={state:A,setOptions:function(Me){var Te=typeof Me=="function"?Me(A.options):Me;ve(),A.options=Object.assign({},g,A.options,Te),A.scrollParents={reference:hl(I)?Iu(I):I.contextElement?Iu(I.contextElement):[],popper:Iu(T)};var pe=Tg(Dg([].concat(d,A.options.modifiers)));if(A.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var de=Ag([].concat(pe,A.options.modifiers),function(ye){var Qe=ye.name;return Qe});if(Ig(de),gi(A.options.placement)===B0){var ke=A.orderedModifiers.find(function(ye){var Qe=ye.name;return Qe==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Pe=vi(T),Ie=Pe.marginTop,qe=Pe.marginRight,je=Pe.marginBottom,be=Pe.marginLeft;[Ie,qe,je,be].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 Me=A.elements,Te=Me.reference,pe=Me.popper;if(!Yf(Te,pe)){({}).NODE_ENV!=="production"&&console.error(Kf);return}A.rects={reference:kg(Te,Zu(pe),A.options.strategy==="fixed"),popper:Md(pe)},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(ye){return A.modifiersData[ye.name]=Object.assign({},ye.data)});for(var de=0,ke=0;ke<A.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(de+=1,de>100)){console.error($g);break}if(A.reset===!0){A.reset=!1,ke=-1;continue}var Pe=A.orderedModifiers[ke],Ie=Pe.fn,qe=Pe.options,je=qe===void 0?{}:qe,be=Pe.name;typeof Ie=="function"&&(A=Ie({state:A,options:je,name:be,instance:Z})||A)}}},update:Pg(function(){return new Promise(function(ge){Z.forceUpdate(),ge(A)})}),destroy:function(){ve(),U=!0}};if(!Yf(I,T))return{}.NODE_ENV!=="production"&&console.error(Kf),Z;Z.setOptions(k).then(function(ge){!U&&k.onFirstUpdate&&k.onFirstUpdate(ge)});function re(){A.orderedModifiers.forEach(function(ge){var Me=ge.name,Te=ge.options,pe=Te===void 0?{}:Te,de=ge.effect;if(typeof de=="function"){var ke=de({state:A,name:Me,instance:Z,options:pe}),Pe=function(){};B.push(ke||Pe)}})}function ve(){B.forEach(function(ge){return ge()}),B=[]}return Z}}var Rg=[ng,wg,tg,Z3,yg,pg,Lg,X3,vg],Hg=Ng({defaultModifiers:Rg}),Bg=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Fr=(s,o,l,d)=>{for(var c=d>1?void 0:d?Fg(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Bg(o,l,c),c};let Wg=0;const Ed=Se("popover"),Ah=Se("pure-popover"),Dh=["click","hover","focus"],[S0,bd,ul]=Dh,Id=["dialog","tooltip","menu"],[Ug]=Id;class Zg extends CustomEvent{constructor(o){super(`${Ed}-${o}`,{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=Ug,this.disabled=!1,this.popoverId=`popover-${++Wg}`,this.delayTimeout=0}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.popperInstance)==null||s.destroy()}updatePosition(){var s;(s=this.popperInstance)==null||s.update()}async updated(s){super.updated(s),this.popperInstance=this.popperInstance||Hg(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 o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");return s==null?void 0:s.assignedElements({flatten:!0})[0]}get contentElement(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("slot[name=content]");return s==null?void 0:s.assignedNodes({flatten:!0})[0]}get popoverElement(){var s;return(s=this.shadowRoot)==null?void 0:s.querySelector(".popover-container")}emit(s){this.dispatchEvent(new Zg(s))}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 Y`
|
|
128
128
|
<slot></slot>
|
|
129
129
|
|
|
130
130
|
<brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
.popover-container {
|
|
144
144
|
z-index: var(--brz-z-index-dialog);
|
|
145
145
|
}
|
|
146
|
-
`;Fr([H({type:Number})],exports.PurePopover.prototype,"distance",2);Fr([H({type:Number})],exports.PurePopover.prototype,"skidding",2);Fr([H({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Fr([H({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Fr([H({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Fr([H({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Fr([H({type:String})],exports.PurePopover.prototype,"placement",2);Fr([H({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Fr([H({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Fr([Xe()],exports.PurePopover.prototype,"popoverId",2);Fr([Xe()],exports.PurePopover.prototype,"popperInstance",2);Fr([Xe()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Fr([J(
|
|
146
|
+
`;Fr([H({type:Number})],exports.PurePopover.prototype,"distance",2);Fr([H({type:Number})],exports.PurePopover.prototype,"skidding",2);Fr([H({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Fr([H({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Fr([H({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Fr([H({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Fr([H({type:String})],exports.PurePopover.prototype,"placement",2);Fr([H({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Fr([H({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Fr([Xe()],exports.PurePopover.prototype,"popoverId",2);Fr([Xe()],exports.PurePopover.prototype,"popperInstance",2);Fr([Xe()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Fr([J(Ah)],exports.PurePopover);const M0=["blur","mouseenter","mouseleave","keydown",S0,ul],[ud,Gg,Vg,qg]=M0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[S0]:this.handleClick,[ul]:this.handleFocus,[ud]:this.handleBlur,[Gg]:this.handleMouseEnter,[Vg]:this.handleMouseLeave,[qg]: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(){M0.forEach(s=>this.addEventListener(s,this.listenableEventHandlers[s],{capture:[ul,ud].includes(s)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){M0.forEach(s=>this.removeEventListener(s,this.listenableEventHandlers[s],{capture:[ul,ud].includes(s)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(s){return this.triggers.includes(s)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(s){!this.isOpen||this.contains(s.target)||this.hasPointer||await this.close()}async handleClick(s){var o;if(!(this.isOpen&&((o=this.contentElement)==null?void 0:o.contains(s.target)))){if(!this.hasTrigger(S0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(ul)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(ul)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(bd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(bd)||this.hasFocus)&&await this.close()}async handleKeyDown(s){s.stopPropagation(),["Escape","Esc"].includes(s.key)&&await this.close()}};Fr([H({type:String})],exports.Popover.prototype,"trigger",2);Fr([Xe()],exports.Popover.prototype,"hasFocus",2);Fr([Xe()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Fr([J(Ed)],exports.Popover);var Kg=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,Po=(s,o,l,d)=>{for(var c=d>1?void 0:d?jg(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Kg(o,l,c),c};const $h=Se("tooltip"),[,Yg]=Id;var Nh=(s=>(s[s.dark=0]="dark",s[s.light=1]="light",s))(Nh||{});exports.Tooltip=class extends Fe{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 Y`
|
|
147
147
|
<brz-popover
|
|
148
|
-
.popoverRole=${
|
|
148
|
+
.popoverRole=${Yg}
|
|
149
149
|
.distance=${8}
|
|
150
150
|
.delayOnClose=${this.delayOnClose}
|
|
151
151
|
.delayOnOpen=${this.delayOnOpen}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
background-color: var(--brz-color-white);
|
|
178
178
|
color: var(--brz-color-text);
|
|
179
179
|
}
|
|
180
|
-
`;
|
|
180
|
+
`;Po([H({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Po([H({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Po([H({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Po([H({type:String})],exports.Tooltip.prototype,"placement",2);Po([H({type:String})],exports.Tooltip.prototype,"trigger",2);Po([H({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Po([H({type:String})],exports.Tooltip.prototype,"content",2);Po([H({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Po([J($h)],exports.Tooltip);var Xg=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,bi=(s,o,l,d)=>{for(var c=d>1?void 0:d?Qg(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Xg(o,l,c),c};const Rh=Se("avatar"),Hh=Se("avatar-group");var k0=(s=>(s[s.tiny=0]="tiny",s[s.small=1]="small",s[s.medium=2]="medium",s[s.large=3]="large",s))(k0||{}),Bh=(s=>(s[s.solid=0]="solid",s[s.subtle=1]="subtle",s[s.border=2]="border",s))(Bh||{});exports.Avatar=class extends Fe{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:s}){const o=s==null?void 0:s.assignedElements({flatten:!0});this.slottedElementsCount=o.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const o=k0[this.size]<2?1:2;return this.label.split(" ").slice(0,o).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const s=k0[this.size],o=()=>{switch(s){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return Y`
|
|
181
181
|
<span class="icon" aria-label=${this.label}>
|
|
182
182
|
<brz-icon size=${o()} icon=${zt(this.icon)}></brz-icon>
|
|
183
183
|
</span>
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
:host .hidden {
|
|
338
338
|
display: none;
|
|
339
339
|
}
|
|
340
|
-
`;bi([H({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);bi([H({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);bi([H({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);bi([H({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);bi([H({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);bi([H({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);bi([H({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);bi([H({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);bi([Xe()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=bi([J(
|
|
340
|
+
`;bi([H({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);bi([H({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);bi([H({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);bi([H({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);bi([H({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);bi([H({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);bi([H({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);bi([H({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);bi([Xe()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=bi([J(Rh)],exports.Avatar);exports.AvatarGroup=class extends Fe{render(){return Y` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=ce`
|
|
341
341
|
:host .container {
|
|
342
342
|
align-items: center;
|
|
343
343
|
display: inline-flex;
|
|
@@ -348,16 +348,16 @@
|
|
|
348
348
|
::slotted(sp-avatar:not(:first-child)) {
|
|
349
349
|
margin-left: -0.6em;
|
|
350
350
|
}
|
|
351
|
-
`;exports.AvatarGroup=bi([J(
|
|
352
|
-
--brz-spacing-${s}: ${s*
|
|
353
|
-
`),
|
|
351
|
+
`;exports.AvatarGroup=bi([J(Hh)],exports.AvatarGroup);const Ad=.25,Gu=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],Jg=Gu.map(s=>ce`
|
|
352
|
+
--brz-spacing-${s}: ${s*Ad}rem;
|
|
353
|
+
`),Fh=ce`
|
|
354
354
|
:host {
|
|
355
355
|
--brz-spacing-px: 1px;
|
|
356
|
-
--brz-spacing-half: ${.5*
|
|
356
|
+
--brz-spacing-half: ${.5*Ad}rem;
|
|
357
357
|
|
|
358
|
-
${ga(
|
|
358
|
+
${ga(Jg.join(""))};
|
|
359
359
|
}
|
|
360
|
-
`,
|
|
360
|
+
`,ev=["m","p"],tv=["x","y"],rv=["t","r","b","l"],nv=ev.flatMap(s=>[s,...tv.map(o=>`${s}${o}`),...rv.map(o=>`${s}${o}`)]),iv=nv.reduce((s,o)=>({...s,[o]:{type:Number,reflect:!0}}),{}),ov=s=>ce`
|
|
361
361
|
:host([m='${s}']),
|
|
362
362
|
:host([my='${s}']),
|
|
363
363
|
:host([mt='${s}']) {
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
:host([pr='${s}']) {
|
|
406
406
|
padding-right: var(--brz-spacing-${s});
|
|
407
407
|
}
|
|
408
|
-
`,
|
|
408
|
+
`,av=Gu.map(ov),lv=s=>{var l,d;class o extends s{}return o.styles=[(l=s.styles)!=null?l:[],...av],o.properties={...(d=s.properties)!=null?d:{},...iv},o},Ss=lv(Fe);function md(s,o){if(s){if(s instanceof o)return s;if(s instanceof ShadowRoot)return md(s.host,o);if("parentNode"in s)return md(s.parentElement||s.parentNode,o)}return null}const sv=s=>s.viewBox!==void 0,uv={arrowDown:{svg:j`
|
|
409
409
|
<title>Asset 36</title>
|
|
410
410
|
<g data-name="Layer 2">
|
|
411
411
|
<g data-name="Layer 1">
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
C7,14.1,7,14.1,7,14.1z"/>
|
|
680
680
|
<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
|
|
681
681
|
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
|
|
682
|
-
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)"/>`}},
|
|
682
|
+
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)"/>`}},cv="0 0 18 18",Wh=s=>sv(s)?s:{svg:s,viewBox:cv},Dd={actions:j`
|
|
683
683
|
<g stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
684
684
|
<g transform="translate(-0.002970, 0.000000)">
|
|
685
685
|
<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>
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
<circle class="st0" cx="9" cy="13" r="1"/>
|
|
1145
1145
|
<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"/>
|
|
1146
1146
|
</g>
|
|
1147
|
-
<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"/>`,...
|
|
1147
|
+
<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"/>`,...uv},dv=Object.keys(Dd);var fv=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,$d=(s,o,l,d)=>{for(var c=d>1?void 0:d?hv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&fv(o,l,c),c};const Uh=Se("icon");exports.Icon=class extends Fe{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:s,viewBox:o}=Wh(Dd[this.icon]);return Y`
|
|
1148
1148
|
<svg
|
|
1149
1149
|
role="presentation"
|
|
1150
1150
|
width=${this.size}
|
|
@@ -1162,7 +1162,7 @@
|
|
|
1162
1162
|
svg {
|
|
1163
1163
|
fill: currentColor;
|
|
1164
1164
|
}
|
|
1165
|
-
|
|
1165
|
+
`;$d([H({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);$d([H({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=$d([J(Uh)],exports.Icon);var pv=Object.defineProperty,gv=Object.getOwnPropertyDescriptor,Eo=(s,o,l,d)=>{for(var c=d>1?void 0:d?gv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&pv(o,l,c),c};const Zh=Se("link"),Gh=Se("link-button"),vv=["a","button"],bv=ce`
|
|
1166
1166
|
:host {
|
|
1167
1167
|
display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
|
|
1168
1168
|
align-items: center;
|
|
@@ -1196,12 +1196,12 @@
|
|
|
1196
1196
|
:host([link-type='secondary']:hover) {
|
|
1197
1197
|
text-decoration: none;
|
|
1198
1198
|
}
|
|
1199
|
-
`,
|
|
1199
|
+
`,Nd=ce`
|
|
1200
1200
|
a {
|
|
1201
1201
|
color: inherit;
|
|
1202
1202
|
text-decoration: inherit;
|
|
1203
1203
|
}
|
|
1204
|
-
`,
|
|
1204
|
+
`,mv=ce`
|
|
1205
1205
|
button {
|
|
1206
1206
|
font-family: inherit;
|
|
1207
1207
|
font-size: inherit;
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
color: inherit;
|
|
1214
1214
|
cursor: pointer;
|
|
1215
1215
|
}
|
|
1216
|
-
`,
|
|
1216
|
+
`,yv=["primary","secondary"];exports.Link=class extends Fe{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(s){this.virtual&&s.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?Y`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return Y`
|
|
1217
1217
|
<a
|
|
1218
1218
|
href=${zt(this.href)}
|
|
1219
1219
|
target=${zt(this.target)}
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
</button>
|
|
1231
1231
|
|
|
1232
1232
|
${this.externalIcon}
|
|
1233
|
-
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[
|
|
1233
|
+
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Nd,mv,bv];Eo([H()],exports.Link.prototype,"element",2);Eo([H({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);Eo([H({type:String,reflect:!0})],exports.Link.prototype,"href",2);Eo([H({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);Eo([H({type:String,reflect:!0})],exports.Link.prototype,"target",2);Eo([H({type:String,reflect:!0})],exports.Link.prototype,"rel",2);Eo([H({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=Eo([J(Zh)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=Eo([J(Gh)],exports.LinkButton);var Cv=Object.defineProperty,wv=Object.getOwnPropertyDescriptor,W0=(s,o,l,d)=>{for(var c=d>1?void 0:d?wv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Cv(o,l,c),c};const Vh=Se("row"),qh=Se("column");exports.Row=class extends Fe{constructor(){super(...arguments),this.verticalAlign="top"}render(){return Y`<slot></slot>`}};exports.Row.styles=ce`
|
|
1234
1234
|
:host {
|
|
1235
1235
|
display: flex;
|
|
1236
1236
|
flex-direction: row;
|
|
@@ -1250,7 +1250,7 @@
|
|
|
1250
1250
|
:host([vertical-align='bottom']) {
|
|
1251
1251
|
align-items: flex-end;
|
|
1252
1252
|
}
|
|
1253
|
-
`;W0([H({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=W0([J(
|
|
1253
|
+
`;W0([H({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=W0([J(Vh)],exports.Row);exports.Column=class extends Fe{constructor(){super(...arguments),this.align="left"}render(){return Y`<slot></slot>`}};exports.Column.styles=ce`
|
|
1254
1254
|
:host {
|
|
1255
1255
|
display: flex;
|
|
1256
1256
|
flex-direction: column;
|
|
@@ -1270,7 +1270,7 @@
|
|
|
1270
1270
|
:host([align='right']) {
|
|
1271
1271
|
align-items: flex-end;
|
|
1272
1272
|
}
|
|
1273
|
-
`;W0([H({type:String})],exports.Column.prototype,"align",2);exports.Column=W0([J(
|
|
1273
|
+
`;W0([H({type:String})],exports.Column.prototype,"align",2);exports.Column=W0([J(qh)],exports.Column);var xv=Object.defineProperty,zv=Object.getOwnPropertyDescriptor,Kh=(s,o,l,d)=>{for(var c=d>1?void 0:d?zv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&xv(o,l,c),c};const jh=Se("loading-spinner");exports.LoadingSpinner=class extends Fe{constructor(){super(...arguments),this.size=24}render(){return Y`
|
|
1274
1274
|
<div class="loading-spinner">
|
|
1275
1275
|
<svg
|
|
1276
1276
|
class="loading-spinner--circular"
|
|
@@ -1325,8 +1325,8 @@
|
|
|
1325
1325
|
stroke-dashoffset: -124px;
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
`;
|
|
1329
|
-
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(s){this.buttonElement.focus(s)}emit(s){this.dispatchEvent(new
|
|
1328
|
+
`;Kh([H({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=Kh([J(jh)],exports.LoadingSpinner);var Lv=Object.defineProperty,_v=Object.getOwnPropertyDescriptor,Wr=(s,o,l,d)=>{for(var c=d>1?void 0:d?_v(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Lv(o,l,c),c};const Rd=Se("button"),Yh=Se("button-group");class Sv extends CustomEvent{constructor(o){super(`${Rd}-${o}`,{bubbles:!0,composed:!0})}}const Mv=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ss{constructor(){super(...arguments),this.element="button",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(o=>{var l;return!!((l=o.textContent)!=null&&l.replace(`
|
|
1329
|
+
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(s){this.buttonElement.focus(s)}emit(s){this.dispatchEvent(new Sv(s))}get classes(){return ji({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return Y`
|
|
1330
1330
|
<a
|
|
1331
1331
|
role="button"
|
|
1332
1332
|
href=${zt(this.href)}
|
|
@@ -1364,13 +1364,20 @@
|
|
|
1364
1364
|
</div>
|
|
1365
1365
|
|
|
1366
1366
|
${this.loading?Y`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
|
|
1367
|
-
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var
|
|
1367
|
+
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var ah;exports.Button.styles=[(ah=Ss.styles)!=null?ah:[],Nd,ce`
|
|
1368
1368
|
:host {
|
|
1369
1369
|
--brz-button-border-width: var(--brz-spacing-px);
|
|
1370
1370
|
--brz-button-height: calc(var(--brz-spacing-8) + var(--brz-spacing-1));
|
|
1371
1371
|
--brz-button-height-compact: var(--brz-spacing-8);
|
|
1372
1372
|
--brz-button-padding-x: var(--brz-spacing-4);
|
|
1373
1373
|
--brz-button-flex-gap: var(--brz-spacing-1);
|
|
1374
|
+
|
|
1375
|
+
display: inline-block;
|
|
1376
|
+
position: relative;
|
|
1377
|
+
vertical-align: middle;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.button {
|
|
1374
1381
|
/* Have to account for 1px border to maintain designed button padding */
|
|
1375
1382
|
--brz-button-padding-x-calc: calc(
|
|
1376
1383
|
var(--brz-button-padding-x) - var(--brz-button-border-width)
|
|
@@ -1380,12 +1387,6 @@
|
|
|
1380
1387
|
var(--brz-button-border-width)
|
|
1381
1388
|
);
|
|
1382
1389
|
|
|
1383
|
-
display: inline-block;
|
|
1384
|
-
position: relative;
|
|
1385
|
-
vertical-align: middle;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
.button {
|
|
1389
1390
|
align-items: center;
|
|
1390
1391
|
cursor: pointer;
|
|
1391
1392
|
display: inline-flex;
|
|
@@ -1437,9 +1438,11 @@
|
|
|
1437
1438
|
width: var(--brz-button-height-compact);
|
|
1438
1439
|
}
|
|
1439
1440
|
|
|
1440
|
-
:host([compact]) .button {
|
|
1441
|
+
:host([compact]) .button:not(.transparent) {
|
|
1441
1442
|
--brz-button-padding-x: var(--brz-spacing-3);
|
|
1443
|
+
}
|
|
1442
1444
|
|
|
1445
|
+
:host([compact]) .button {
|
|
1443
1446
|
height: var(--brz-button-height-compact);
|
|
1444
1447
|
}
|
|
1445
1448
|
|
|
@@ -1545,7 +1548,7 @@
|
|
|
1545
1548
|
brz-icon {
|
|
1546
1549
|
padding: var(--brz-spacing-px);
|
|
1547
1550
|
}
|
|
1548
|
-
`];Wr([H()],exports.Button.prototype,"element",2);Wr([H({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Wr([H({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Wr([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Wr([H({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Wr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Wr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Wr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Wr([H()],exports.Button.prototype,"href",2);Wr([H()],exports.Button.prototype,"target",2);Wr([H()],exports.Button.prototype,"rel",2);Wr([H({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Wr([ba("button")],exports.Button.prototype,"buttonElement",2);Wr([
|
|
1551
|
+
`];Wr([H()],exports.Button.prototype,"element",2);Wr([H({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Wr([H({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Wr([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Wr([H({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Wr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Wr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Wr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Wr([H()],exports.Button.prototype,"href",2);Wr([H()],exports.Button.prototype,"target",2);Wr([H()],exports.Button.prototype,"rel",2);Wr([H({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Wr([ba("button")],exports.Button.prototype,"buttonElement",2);Wr([Ld()],exports.Button.prototype,"defaultSlot",2);exports.Button=Wr([J(Rd)],exports.Button);exports.ButtonGroup=class extends Fe{constructor(){super(...arguments),this.compact=!1}render(){return Y`<brz-row class=${ji({compact:this.compact})}
|
|
1549
1552
|
><slot></slot
|
|
1550
1553
|
></brz-row>`}};exports.ButtonGroup.styles=ce`
|
|
1551
1554
|
brz-row {
|
|
@@ -1564,16 +1567,16 @@
|
|
|
1564
1567
|
--brz-button-r-radius: 0;
|
|
1565
1568
|
--brz-border-r-width: 0;
|
|
1566
1569
|
}
|
|
1567
|
-
`;Wr([H({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Wr([J(
|
|
1570
|
+
`;Wr([H({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Wr([J(Yh)],exports.ButtonGroup);var bs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Hu={exports:{}};/**
|
|
1568
1571
|
* @license
|
|
1569
1572
|
* Lodash <https://lodash.com/>
|
|
1570
1573
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1571
1574
|
* Released under MIT license <https://lodash.com/license>
|
|
1572
1575
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1573
1576
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1574
|
-
*/(function(s,o){(function(){var l,d="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",I="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",k=500,A="__lodash_placeholder__",B=1,U=2,Z=4,re=1,ve=2,ge=1,Me=2,Te=4,pe=8,de=16,ke=32,Pe=64,Ie=128,qe=256,je=512,be=30,ye="...",Qe=800,G=16,E=1,S=2,ee=3,me=1/0,rt=9007199254740991,Lt=17976931348623157e292,jt=0/0,It=4294967295,Xr=It-1,Ut=It>>>1,At=[["ary",Ie],["bind",ge],["bindKey",Me],["curry",pe],["curryRight",de],["flip",je],["partial",ke],["partialRight",Pe],["rearg",qe]],at="[object Arguments]",Le="[object Array]",He="[object AsyncFunction]",We="[object Boolean]",nt="[object Date]",it="[object DOMException]",Be="[object Error]",Rt="[object Function]",Ar="[object GeneratorFunction]",Yt="[object Map]",Ke="[object Number]",ht="[object Null]",wt="[object Object]",Lr="[object Promise]",Gr="[object Proxy]",er="[object RegExp]",et="[object Set]",W="[object String]",ae="[object Symbol]",K="[object Undefined]",Ye="[object WeakMap]",tr="[object WeakSet]",pr="[object ArrayBuffer]",zn="[object DataView]",Dr="[object Float32Array]",Nt="[object Float64Array]",ei="[object Int8Array]",_r="[object Int16Array]",Ln="[object Int32Array]",Ne="[object Uint8Array]",wi="[object Uint8ClampedArray]",gr="[object Uint16Array]",Ue="[object Uint32Array]",Vt=/\b__p \+= '';/g,Io=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_n=/&(?:amp|lt|gt|quot|#39);/g,ur=/[&<>"']/g,Ao=RegExp(_n.source),Qr=RegExp(ur.source),to=/<%-([\s\S]+?)%>/g,xi=/<%([\s\S]+?)%>/g,xa=/<%=([\s\S]+?)%>/g,za=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$r=/^\w*$/,bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ro=/[\\^$.*+?()[\]{}|]/g,Rn=RegExp(ro.source),no=/^\s+/,ml=/\s/,yl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,La=/\{\n\/\* \[wrapped with (.+)\] \*/,zi=/,? & /,cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jr=/[()=,{}\[\]\/\s]/,Cl=/\\(\\)?/g,ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,io=/\w*$/,Do=/^[-+]0x[0-9a-f]+$/i,Sn=/^0b[01]+$/i,Mn=/^\[object .+?Constructor\]$/,en=/^0o[0-7]+$/i,_a=/^(?:0|[1-9]\d*)$/,Sa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dt=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Vr="\\ufe20-\\ufe2f",bt="\\u20d0-\\u20ff",kn=Ma+Vr+bt,Li="\\u2700-\\u27bf",$o="a-z\\xdf-\\xf6\\xf8-\\xff",oe="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O="\\u2000-\\u206f",X=" \\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",dt=oe+w+O+X,Ce="['\u2019]",vr="["+tn+"]",qr="["+dt+"]",ri="["+kn+"]",On="\\d+",Xu="["+Li+"]",Es="["+$o+"]",No="[^"+tn+dt+On+Li+$o+le+"]",ka="\\ud83c[\\udffb-\\udfff]",Qu="(?:"+ri+"|"+ka+")",wl="[^"+tn+"]",xl="(?:\\ud83c[\\udde6-\\uddff]){2}",zl="[\\ud800-\\udbff][\\udc00-\\udfff]",oo="["+le+"]",Is="\\u200d",Ju="(?:"+Es+"|"+No+")",n1="(?:"+oo+"|"+No+")",As="(?:"+Ce+"(?:d|ll|m|re|s|t|ve))?",Hn="(?:"+Ce+"(?:D|LL|M|RE|S|T|VE))?",ec=Qu+"?",tc="["+Ze+"]?",Ll="(?:"+Is+"(?:"+[wl,xl,zl].join("|")+")"+tc+ec+")*",Oa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rc=tc+ec+Ll,o1="(?:"+[Xu,xl,zl].join("|")+")"+rc,a1="(?:"+[wl+ri+"?",ri,xl,zl,vr].join("|")+")",Ds=RegExp(Ce,"g"),nc=RegExp(ri,"g"),$s=RegExp(ka+"(?="+ka+")|"+a1+rc,"g"),ic=RegExp([oo+"?"+Es+"+"+As+"(?="+[qr,oo,"$"].join("|")+")",n1+"+"+Hn+"(?="+[qr,oo+Ju,"$"].join("|")+")",oo+"?"+Ju+"+"+As,oo+"+"+Hn,i1,Oa,On,o1].join("|"),"g"),oc=RegExp("["+Is+tn+kn+Ze+"]"),_l=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ns=-1,$t={};$t[Dr]=$t[Nt]=$t[ei]=$t[_r]=$t[Ln]=$t[Ne]=$t[wi]=$t[gr]=$t[Ue]=!0,$t[at]=$t[Le]=$t[pr]=$t[We]=$t[zn]=$t[nt]=$t[Be]=$t[Rt]=$t[Yt]=$t[Ke]=$t[wt]=$t[er]=$t[et]=$t[W]=$t[Ye]=!1;var Tt={};Tt[at]=Tt[Le]=Tt[pr]=Tt[zn]=Tt[We]=Tt[nt]=Tt[Dr]=Tt[Nt]=Tt[ei]=Tt[_r]=Tt[Ln]=Tt[Yt]=Tt[Ke]=Tt[wt]=Tt[er]=Tt[et]=Tt[W]=Tt[ae]=Tt[Ne]=Tt[wi]=Tt[gr]=Tt[Ue]=!0,Tt[Be]=Tt[Rt]=Tt[Ye]=!1;var Ml={\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"},l1={"&":"&","<":"<",">":">",'"':""","'":"'"},ac={"&":"&","<":"<",">":">",""":'"',"'":"'"},Bn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},s1=parseFloat,u1=parseInt,kl=typeof bs=="object"&&bs&&bs.Object===Object&&bs,lc=typeof self=="object"&&self&&self.Object===Object&&self,Ht=kl||lc||Function("return this")(),Ta=o&&!o.nodeType&&o,Nr=Ta&&!0&&s&&!s.nodeType&&s,Pa=Nr&&Nr.exports===Ta,Ea=Pa&&kl.process,br=function(){try{var R=Nr&&Nr.require&&Nr.require("util").types;return R||Ea&&Ea.binding&&Ea.binding("util")}catch{}}(),sc=br&&br.isArrayBuffer,uc=br&&br.isDate,cc=br&&br.isMap,dc=br&&br.isRegExp,Rs=br&&br.isSet,Hs=br&&br.isTypedArray;function rn(R,Q,V){switch(V.length){case 0:return R.call(Q);case 1:return R.call(Q,V[0]);case 2:return R.call(Q,V[0],V[1]);case 3:return R.call(Q,V[0],V[1],V[2])}return R.apply(Q,V)}function c1(R,Q,V,_e){for(var Je=-1,Ct=R==null?0:R.length;++Je<Ct;){var nr=R[Je];Q(_e,nr,V(nr),R)}return _e}function dn(R,Q){for(var V=-1,_e=R==null?0:R.length;++V<_e&&Q(R[V],V,R)!==!1;);return R}function d1(R,Q){for(var V=R==null?0:R.length;V--&&Q(R[V],V,R)!==!1;);return R}function Bs(R,Q){for(var V=-1,_e=R==null?0:R.length;++V<_e;)if(!Q(R[V],V,R))return!1;return!0}function _i(R,Q){for(var V=-1,_e=R==null?0:R.length,Je=0,Ct=[];++V<_e;){var nr=R[V];Q(nr,V,R)&&(Ct[Je++]=nr)}return Ct}function Ia(R,Q){var V=R==null?0:R.length;return!!V&&lo(R,Q,0)>-1}function Ro(R,Q,V){for(var _e=-1,Je=R==null?0:R.length;++_e<Je;)if(V(Q,R[_e]))return!0;return!1}function _t(R,Q){for(var V=-1,_e=R==null?0:R.length,Je=Array(_e);++V<_e;)Je[V]=Q(R[V],V,R);return Je}function Si(R,Q){for(var V=-1,_e=Q.length,Je=R.length;++V<_e;)R[Je+V]=Q[V];return R}function Fs(R,Q,V,_e){var Je=-1,Ct=R==null?0:R.length;for(_e&&Ct&&(V=R[++Je]);++Je<Ct;)V=Q(V,R[Je],Je,R);return V}function f1(R,Q,V,_e){var Je=R==null?0:R.length;for(_e&&Je&&(V=R[--Je]);Je--;)V=Q(V,R[Je],Je,R);return V}function ao(R,Q){for(var V=-1,_e=R==null?0:R.length;++V<_e;)if(Q(R[V],V,R))return!0;return!1}var rr=Us("length");function h1(R){return R.split("")}function fc(R){return R.match(cn)||[]}function Ho(R,Q,V){var _e;return V(R,function(Je,Ct,nr){if(Q(Je,Ct,nr))return _e=Ct,!1}),_e}function Ol(R,Q,V,_e){for(var Je=R.length,Ct=V+(_e?1:-1);_e?Ct--:++Ct<Je;)if(Q(R[Ct],Ct,R))return Ct;return-1}function lo(R,Q,V){return Q===Q?yc(R,Q,V):Ol(R,Tl,V)}function p1(R,Q,V,_e){for(var Je=V-1,Ct=R.length;++Je<Ct;)if(_e(R[Je],Q))return Je;return-1}function Tl(R){return R!==R}function Ws(R,Q){var V=R==null?0:R.length;return V?Vs(R,Q)/V:jt}function Us(R){return function(Q){return Q==null?l:Q[R]}}function Zs(R){return function(Q){return R==null?l:R[Q]}}function Gs(R,Q,V,_e,Je){return Je(R,function(Ct,nr,gt){V=_e?(_e=!1,Ct):Q(V,Ct,nr,gt)}),V}function hc(R,Q){var V=R.length;for(R.sort(Q);V--;)R[V]=R[V].value;return R}function Vs(R,Q){for(var V,_e=-1,Je=R.length;++_e<Je;){var Ct=Q(R[_e]);Ct!==l&&(V=V===l?Ct:V+Ct)}return V}function so(R,Q){for(var V=-1,_e=Array(R);++V<R;)_e[V]=Q(V);return _e}function ni(R,Q){return _t(Q,function(V){return[V,R[V]]})}function Aa(R){return R&&R.slice(0,Dl(R)+1).replace(no,"")}function Rr(R){return function(Q){return R(Q)}}function Pl(R,Q){return _t(Q,function(V){return R[V]})}function Kr(R,Q){return R.has(Q)}function Mi(R,Q){for(var V=-1,_e=R.length;++V<_e&&lo(Q,R[V],0)>-1;);return V}function El(R,Q){for(var V=R.length;V--&&lo(Q,R[V],0)>-1;);return V}function g1(R,Q){for(var V=R.length,_e=0;V--;)R[V]===Q&&++_e;return _e}var pc=Zs(Ml),v1=Zs(l1);function gc(R){return"\\"+Bn[R]}function qs(R,Q){return R==null?l:R[Q]}function Tn(R){return oc.test(R)}function Fn(R){return _l.test(R)}function vc(R){for(var Q,V=[];!(Q=R.next()).done;)V.push(Q.value);return V}function Il(R){var Q=-1,V=Array(R.size);return R.forEach(function(_e,Je){V[++Q]=[Je,_e]}),V}function bc(R,Q){return function(V){return R(Q(V))}}function ki(R,Q){for(var V=-1,_e=R.length,Je=0,Ct=[];++V<_e;){var nr=R[V];(nr===Q||nr===A)&&(R[V]=A,Ct[Je++]=V)}return Ct}function Al(R){var Q=-1,V=Array(R.size);return R.forEach(function(_e){V[++Q]=_e}),V}function mc(R){var Q=-1,V=Array(R.size);return R.forEach(function(_e){V[++Q]=[_e,_e]}),V}function yc(R,Q,V){for(var _e=V-1,Je=R.length;++_e<Je;)if(R[_e]===Q)return _e;return-1}function Da(R,Q,V){for(var _e=V+1;_e--;)if(R[_e]===Q)return _e;return _e}function uo(R){return Tn(R)?Cc(R):rr(R)}function fn(R){return Tn(R)?Nl(R):h1(R)}function Dl(R){for(var Q=R.length;Q--&&ml.test(R.charAt(Q)););return Q}var $l=Zs(ac);function Cc(R){for(var Q=$s.lastIndex=0;$s.test(R);)++Q;return Q}function Nl(R){return R.match($s)||[]}function Pn(R){return R.match(ic)||[]}var wc=function R(Q){Q=Q==null?Ht:Oi.defaults(Ht.Object(),Q,Oi.pick(Ht,Sl));var V=Q.Array,_e=Q.Date,Je=Q.Error,Ct=Q.Function,nr=Q.Math,gt=Q.Object,Ti=Q.RegExp,Bo=Q.String,jr=Q.TypeError,Fo=V.prototype,xc=Ct.prototype,Pi=gt.prototype,Wn=Q["__core-js_shared__"],Un=xc.toString,tt=Pi.hasOwnProperty,Ei=0,ii=function(){var r=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),co=Pi.toString,b1=Un.call(gt),zc=Ht._,$a=Ti("^"+Un.call(tt).replace(ro,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Na=Pa?Q.Buffer:l,oi=Q.Symbol,fo=Q.Uint8Array,Lc=Na?Na.allocUnsafe:l,Wo=bc(gt.getPrototypeOf,gt),Ks=gt.create,Rl=Pi.propertyIsEnumerable,Uo=Fo.splice,ho=oi?oi.isConcatSpreadable:l,Ii=oi?oi.iterator:l,Ai=oi?oi.toStringTag:l,po=function(){try{var r=zo(gt,"defineProperty");return r({},"",{}),r}catch{}}(),m1=Q.clearTimeout!==Ht.clearTimeout&&Q.clearTimeout,y1=_e&&_e.now!==Ht.Date.now&&_e.now,C1=Q.setTimeout!==Ht.setTimeout&&Q.setTimeout,Zo=nr.ceil,Go=nr.floor,Di=gt.getOwnPropertySymbols,Ra=Na?Na.isBuffer:l,_c=Q.isFinite,Hl=Fo.join,Sc=bc(gt.keys,gt),Bt=nr.max,mr=nr.min,go=_e.now,Ha=Q.parseInt,$i=nr.random,Ba=Fo.reverse,Ni=zo(Q,"DataView"),Vo=zo(Q,"Map"),Bl=zo(Q,"Promise"),vo=zo(Q,"Set"),Fa=zo(Q,"WeakMap"),En=zo(gt,"create"),Zn=Fa&&new Fa,qo={},w1=Pt(Ni),x1=Pt(Vo),z1=Pt(Bl),L1=Pt(vo),_1=Pt(Fa),yr=oi?oi.prototype:l,Ft=yr?yr.valueOf:l,Cr=yr?yr.toString:l;function z(r){if(Qt(r)&&!lt(r)&&!(r instanceof ft)){if(r instanceof Hr)return r;if(tt.call(r,"__wrapped__"))return Pr(r)}return new Hr(r)}var Gn=function(){function r(){}return function(a){if(!Kt(a))return{};if(Ks)return Ks(a);r.prototype=a;var f=new r;return r.prototype=l,f}}();function Fl(){}function Hr(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=l}z.templateSettings={escape:to,evaluate:xi,interpolate:xa,variable:"",imports:{_:z}},z.prototype=Fl.prototype,z.prototype.constructor=z,Hr.prototype=Gn(Fl.prototype),Hr.prototype.constructor=Hr;function ft(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function S1(){var r=new ft(this.__wrapped__);return r.__actions__=fr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=fr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=fr(this.__views__),r}function M1(){if(this.__filtered__){var r=new ft(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function js(){var r=this.__wrapped__.value(),a=this.__dir__,f=lt(r),v=a<0,x=f?r.length:0,L=ds(0,x,this.__views__),P=L.start,D=L.end,F=D-P,ne=v?D:P-1,ie=this.__iteratees__,se=ie.length,ze=0,$e=mr(F,this.__takeCount__);if(!f||!v&&x==F&&$e==F)return qc(r,this.__actions__);var Ge=[];e:for(;F--&&ze<$e;){ne+=a;for(var ct=-1,Ve=r[ne];++ct<se;){var pt=ie[ct],vt=pt.iteratee,Dn=pt.type,sn=vt(Ve);if(Dn==S)Ve=sn;else if(!sn){if(Dn==E)continue e;break e}}Ge[ze++]=Ve}return Ge}ft.prototype=Gn(Fl.prototype),ft.prototype.constructor=ft;function Ri(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Ys(){this.__data__=En?En(null):{},this.size=0}function k1(r){var a=this.has(r)&&delete this.__data__[r];return this.size-=a?1:0,a}function Xs(r){var a=this.__data__;if(En){var f=a[r];return f===T?l:f}return tt.call(a,r)?a[r]:l}function Qs(r){var a=this.__data__;return En?a[r]!==l:tt.call(a,r)}function Mc(r,a){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=En&&a===l?T:a,this}Ri.prototype.clear=Ys,Ri.prototype.delete=k1,Ri.prototype.get=Xs,Ri.prototype.has=Qs,Ri.prototype.set=Mc;function Vn(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Js(){this.__data__=[],this.size=0}function kc(r){var a=this.__data__,f=bo(a,r);if(f<0)return!1;var v=a.length-1;return f==v?a.pop():Uo.call(a,f,1),--this.size,!0}function Wa(r){var a=this.__data__,f=bo(a,r);return f<0?l:a[f][1]}function O1(r){return bo(this.__data__,r)>-1}function Wl(r,a){var f=this.__data__,v=bo(f,r);return v<0?(++this.size,f.push([r,a])):f[v][1]=a,this}Vn.prototype.clear=Js,Vn.prototype.delete=kc,Vn.prototype.get=Wa,Vn.prototype.has=O1,Vn.prototype.set=Wl;function qt(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Oc(){this.size=0,this.__data__={hash:new Ri,map:new(Vo||Vn),string:new Ri}}function T1(r){var a=cs(this,r).delete(r);return this.size-=a?1:0,a}function Tc(r){return cs(this,r).get(r)}function nn(r){return cs(this,r).has(r)}function mt(r,a){var f=cs(this,r),v=f.size;return f.set(r,a),this.size+=f.size==v?0:1,this}qt.prototype.clear=Oc,qt.prototype.delete=T1,qt.prototype.get=Tc,qt.prototype.has=nn,qt.prototype.set=mt;function wr(r){var a=-1,f=r==null?0:r.length;for(this.__data__=new qt;++a<f;)this.add(r[a])}function Hi(r){return this.__data__.set(r,T),this}function Bi(r){return this.__data__.has(r)}wr.prototype.add=wr.prototype.push=Hi,wr.prototype.has=Bi;function hn(r){var a=this.__data__=new Vn(r);this.size=a.size}function eu(){this.__data__=new Vn,this.size=0}function Pc(r){var a=this.__data__,f=a.delete(r);return this.size=a.size,f}function P1(r){return this.__data__.get(r)}function tu(r){return this.__data__.has(r)}function Ua(r,a){var f=this.__data__;if(f instanceof Vn){var v=f.__data__;if(!Vo||v.length<c-1)return v.push([r,a]),this.size=++f.size,this;f=this.__data__=new qt(v)}return f.set(r,a),this.size=f.size,this}hn.prototype.clear=eu,hn.prototype.delete=Pc,hn.prototype.get=P1,hn.prototype.has=tu,hn.prototype.set=Ua;function ru(r,a){var f=lt(r),v=!f&&il(r),x=!f&&!v&&fa(r),L=!f&&!v&&!x&&hs(r),P=f||v||x||L,D=P?so(r.length,Bo):[],F=D.length;for(var ne in r)(a||tt.call(r,ne))&&!(P&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||L&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||b(ne,F)))&&D.push(ne);return D}function Ul(r){var a=r.length;return a?r[es(0,a-1)]:l}function Fi(r,a){return hr(fr(r),mo(a,0,r.length))}function Ec(r){return hr(fr(r))}function Zl(r,a,f){(f!==l&&!di(r[a],f)||f===l&&!(a in r))&&qn(r,a,f)}function Za(r,a,f){var v=r[a];(!(tt.call(r,a)&&di(v,f))||f===l&&!(a in r))&&qn(r,a,f)}function bo(r,a){for(var f=r.length;f--;)if(di(r[f][0],a))return f;return-1}function nu(r,a,f,v){return on(r,function(x,L,P){a(v,x,f(x),P)}),v}function iu(r,a){return r&&Yr(a,Ir(a),r)}function E1(r,a){return r&&Yr(a,mn(a),r)}function qn(r,a,f){a=="__proto__"&&po?po(r,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[a]=f}function ou(r,a){for(var f=-1,v=a.length,x=V(v),L=r==null;++f<v;)x[f]=L?l:K1(r,a[f]);return x}function mo(r,a,f){return r===r&&(f!==l&&(r=r<=f?r:f),a!==l&&(r=r>=a?r:a)),r}function Br(r,a,f,v,x,L){var P,D=a&B,F=a&U,ne=a&Z;if(f&&(P=x?f(r,v,x,L):f(r)),P!==l)return P;if(!Kt(r))return r;var ie=lt(r);if(ie){if(P=i(r),!D)return fr(r,P)}else{var se=kr(r),ze=se==Rt||se==Ar;if(fa(r))return vu(r,D);if(se==wt||se==at||ze&&!x){if(P=F||ze?{}:n(r),!D)return F?Qc(r,E1(P,r)):B1(r,iu(P,r))}else{if(!Tt[se])return x?r:{};P=u(r,se,D)}}L||(L=new hn);var $e=L.get(r);if($e)return $e;L.set(r,P),pf(r)?r.forEach(function(Ve){P.add(Br(Ve,a,f,Ve,r,L))}):ff(r)&&r.forEach(function(Ve,pt){P.set(pt,Br(Ve,a,f,pt,r,L))});var Ge=ne?F?us:rl:F?mn:Ir,ct=ie?l:Ge(r);return dn(ct||r,function(Ve,pt){ct&&(pt=Ve,Ve=r[pt]),Za(P,pt,Br(Ve,a,f,pt,r,L))}),P}function Ic(r){var a=Ir(r);return function(f){return Ac(f,r,a)}}function Ac(r,a,f){var v=f.length;if(r==null)return!v;for(r=gt(r);v--;){var x=f[v],L=a[x],P=r[x];if(P===l&&!(x in r)||!L(P))return!1}return!0}function Dc(r,a,f){if(typeof r!="function")throw new jr(m);return kt(function(){r.apply(l,f)},a)}function Ko(r,a,f,v){var x=-1,L=Ia,P=!0,D=r.length,F=[],ne=a.length;if(!D)return F;f&&(a=_t(a,Rr(f))),v?(L=Ro,P=!1):a.length>=c&&(L=Kr,P=!1,a=new wr(a));e:for(;++x<D;){var ie=r[x],se=f==null?ie:f(ie);if(ie=v||ie!==0?ie:0,P&&se===se){for(var ze=ne;ze--;)if(a[ze]===se)continue e;F.push(ie)}else L(a,se,v)||F.push(ie)}return F}var on=Jc(an),Gl=Jc(Kl,!0);function Vl(r,a){var f=!0;return on(r,function(v,x,L){return f=!!a(v,x,L),f}),f}function Ga(r,a,f){for(var v=-1,x=r.length;++v<x;){var L=r[v],P=a(L);if(P!=null&&(D===l?P===P&&!An(P):f(P,D)))var D=P,F=L}return F}function au(r,a,f,v){var x=r.length;for(f=ut(f),f<0&&(f=-f>x?0:x+f),v=v===l||v>x?x:ut(v),v<0&&(v+=x),v=f>v?0:vf(v);f<v;)r[f++]=a;return r}function lu(r,a){var f=[];return on(r,function(v,x,L){a(v,x,L)&&f.push(v)}),f}function xr(r,a,f,v,x){var L=-1,P=r.length;for(f||(f=p),x||(x=[]);++L<P;){var D=r[L];a>0&&f(D)?a>1?xr(D,a-1,f,v,x):Si(x,D):v||(x[x.length]=D)}return x}var ql=e0(),cr=e0(!0);function an(r,a){return r&&ql(r,a,Ir)}function Kl(r,a){return r&&cr(r,a,Ir)}function Va(r,a){return _i(a,function(f){return So(r[f])})}function Wi(r,a){a=In(a,r);for(var f=0,v=a.length;r!=null&&f<v;)r=r[St(a[f++])];return f&&f==v?r:l}function yo(r,a,f){var v=a(r);return lt(r)?v:Si(v,f(r))}function dr(r){return r==null?r===l?K:ht:Ai&&Ai in gt(r)?Zt(r):xe(r)}function jl(r,a){return r>a}function $c(r,a){return r!=null&&tt.call(r,a)}function Nc(r,a){return r!=null&&a in gt(r)}function jo(r,a,f){return r>=mr(a,f)&&r<Bt(a,f)}function Yl(r,a,f){for(var v=f?Ro:Ia,x=r[0].length,L=r.length,P=L,D=V(L),F=1/0,ne=[];P--;){var ie=r[P];P&&a&&(ie=_t(ie,Rr(a))),F=mr(ie.length,F),D[P]=!f&&(a||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<F;){var $e=ie[se],Ge=a?a($e):$e;if($e=f||$e!==0?$e:0,!(ze?Kr(ze,Ge):v(ne,Ge,f))){for(P=L;--P;){var ct=D[P];if(!(ct?Kr(ct,Ge):v(r[P],Ge,f)))continue e}ze&&ze.push(Ge),ne.push($e)}}return ne}function Xl(r,a,f,v){return an(r,function(x,L,P){a(v,f(x),L,P)}),v}function Yo(r,a,f){a=In(a,r),r=Ee(r,a);var v=r==null?r:r[St(jn(a))];return v==null?l:rn(v,r,f)}function Xo(r){return Qt(r)&&dr(r)==at}function I1(r){return Qt(r)&&dr(r)==pr}function Qo(r){return Qt(r)&&dr(r)==nt}function Jo(r,a,f,v,x){return r===a?!0:r==null||a==null||!Qt(r)&&!Qt(a)?r!==r&&a!==a:Rc(r,a,f,v,Jo,x)}function Rc(r,a,f,v,x,L){var P=lt(r),D=lt(a),F=P?Le:kr(r),ne=D?Le:kr(a);F=F==at?wt:F,ne=ne==at?wt:ne;var ie=F==wt,se=ne==wt,ze=F==ne;if(ze&&fa(r)){if(!fa(a))return!1;P=!0,ie=!1}if(ze&&!ie)return L||(L=new hn),P||hs(r)?xu(r,a,f,v,x,L):l0(r,a,F,f,v,x,L);if(!(f&re)){var $e=ie&&tt.call(r,"__wrapped__"),Ge=se&&tt.call(a,"__wrapped__");if($e||Ge){var ct=$e?r.value():r,Ve=Ge?a.value():a;return L||(L=new hn),x(ct,Ve,f,v,L)}}return ze?(L||(L=new hn),s0(r,a,f,v,x,L)):!1}function Hc(r){return Qt(r)&&kr(r)==Yt}function Co(r,a,f,v){var x=f.length,L=x,P=!v;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 F=D[0],ne=r[F],ie=D[1];if(P&&D[2]){if(ne===l&&!(F in r))return!1}else{var se=new hn;if(v)var ze=v(ne,ie,F,r,a,se);if(!(ze===l?Jo(ie,ne,re|ve,v,se):ze))return!1}}return!0}function ea(r){if(!Kt(r)||N(r))return!1;var a=So(r)?$a:Mn;return a.test(Pt(r))}function qa(r){return Qt(r)&&dr(r)==er}function Ka(r){return Qt(r)&&kr(r)==et}function Bc(r){return Qt(r)&&g0(r.length)&&!!$t[dr(r)]}function Fc(r){return typeof r=="function"?r:r==null?yn:typeof r=="object"?lt(r)?su(r[0],r[1]):Wc(r):Mf(r)}function Ql(r){if(!q(r))return Sc(r);var a=[];for(var f in gt(r))tt.call(r,f)&&f!="constructor"&&a.push(f);return a}function Ui(r){if(!Kt(r))return he(r);var a=q(r),f=[];for(var v in r)v=="constructor"&&(a||!tt.call(r,v))||f.push(v);return f}function Zi(r,a){return r<a}function ta(r,a){var f=-1,v=bn(r)?V(r.length):[];return on(r,function(x,L,P){v[++f]=a(x,L,P)}),v}function Wc(r){var a=ua(r);return a.length==1&&a[0][2]?ue(a[0][0],a[0][1]):function(f){return f===r||Co(f,r,a)}}function su(r,a){return C(r)&&te(a)?ue(St(r),a):function(f){var v=K1(f,r);return v===l&&v===a?j1(f,r):Jo(a,v,re|ve)}}function Jl(r,a,f,v,x){r!==a&&ql(a,function(L,P){if(x||(x=new hn),Kt(L))A1(r,a,P,f,Jl,v,x);else{var D=v?v(xt(r,P),L,P+"",r,a,x):l;D===l&&(D=L),Zl(r,P,D)}},mn)}function A1(r,a,f,v,x,L,P){var D=xt(r,f),F=xt(a,f),ne=P.get(F);if(ne){Zl(r,f,ne);return}var ie=L?L(D,F,f+"",r,a,P):l,se=ie===l;if(se){var ze=lt(F),$e=!ze&&fa(F),Ge=!ze&&!$e&&hs(F);ie=F,ze||$e||Ge?lt(D)?ie=D:ar(D)?ie=fr(D):$e?(se=!1,ie=vu(F,!0)):Ge?(se=!1,ie=jc(F,!0)):ie=[]:_u(F)||il(F)?(ie=D,il(D)?ie=bf(D):(!Kt(D)||So(D))&&(ie=n(F))):se=!1}se&&(P.set(F,ie),x(ie,F,v,L,P),P.delete(F)),Zl(r,f,ie)}function Uc(r,a){var f=r.length;if(!!f)return a+=a<0?f:0,b(a,f)?r[a]:l}function Sr(r,a,f){a.length?a=_t(a,function(L){return lt(L)?function(P){return Wi(P,L.length===1?L[0]:L)}:L}):a=[yn];var v=-1;a=_t(a,Rr(Re()));var x=ta(r,function(L,P,D){var F=_t(a,function(ne){return ne(L)});return{criteria:F,index:++v,value:L}});return hc(x,function(L,P){return Yc(L,P,f)})}function Zc(r,a){return Gc(r,a,function(f,v){return j1(r,v)})}function Gc(r,a,f){for(var v=-1,x=a.length,L={};++v<x;){var P=a[v],D=Wi(r,P);f(D,P)&&ai(L,In(P,r),D)}return L}function D1(r){return function(a){return Wi(a,r)}}function uu(r,a,f,v){var x=v?p1:lo,L=-1,P=a.length,D=r;for(r===a&&(a=fr(a)),f&&(D=_t(r,Rr(f)));++L<P;)for(var F=0,ne=a[L],ie=f?f(ne):ne;(F=x(D,ie,F,v))>-1;)D!==r&&Uo.call(D,F,1),Uo.call(r,F,1);return r}function cu(r,a){for(var f=r?a.length:0,v=f-1;f--;){var x=a[f];if(f==v||x!==L){var L=x;b(x)?Uo.call(r,x,1):Xa(r,x)}}return r}function es(r,a){return r+Go($i()*(a-r+1))}function Vc(r,a,f,v){for(var x=-1,L=Bt(Zo((a-r)/(f||1)),0),P=V(L);L--;)P[v?L:++x]=r,r+=f;return P}function du(r,a){var f="";if(!r||a<1||a>rt)return f;do a%2&&(f+=r),a=Go(a/2),a&&(r+=r);while(a);return f}function st(r,a){return Or(De(r,a,yn),r+"")}function $1(r){return Ul(ps(r))}function Gi(r,a){var f=ps(r);return hr(f,mo(a,0,f.length))}function ai(r,a,f,v){if(!Kt(r))return r;a=In(a,r);for(var x=-1,L=a.length,P=L-1,D=r;D!=null&&++x<L;){var F=St(a[x]),ne=f;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(x!=P){var ie=D[F];ne=v?v(ie,F,D):l,ne===l&&(ne=Kt(ie)?ie:b(a[x+1])?[]:{})}Za(D,F,ne),D=D[F]}return r}var ja=Zn?function(r,a){return Zn.set(r,a),r}:yn,Ya=po?function(r,a){return po(r,"toString",{configurable:!0,enumerable:!1,value:X1(a),writable:!0})}:yn;function li(r){return hr(ps(r))}function pn(r,a,f){var v=-1,x=r.length;a<0&&(a=-a>x?0:x+a),f=f>x?x:f,f<0&&(f+=x),x=a>f?0:f-a>>>0,a>>>=0;for(var L=V(x);++v<x;)L[v]=r[v+a];return L}function N1(r,a){var f;return on(r,function(v,x,L){return f=a(v,x,L),!f}),!!f}function si(r,a,f){var v=0,x=r==null?v:r.length;if(typeof a=="number"&&a===a&&x<=Ut){for(;v<x;){var L=v+x>>>1,P=r[L];P!==null&&!An(P)&&(f?P<=a:P<a)?v=L+1:x=L}return x}return ts(r,a,yn,f)}function ts(r,a,f,v){var x=0,L=r==null?0:r.length;if(L===0)return 0;a=f(a);for(var P=a!==a,D=a===null,F=An(a),ne=a===l;x<L;){var ie=Go((x+L)/2),se=f(r[ie]),ze=se!==l,$e=se===null,Ge=se===se,ct=An(se);if(P)var Ve=v||Ge;else ne?Ve=Ge&&(v||ze):D?Ve=Ge&&ze&&(v||!$e):F?Ve=Ge&&ze&&!$e&&(v||!ct):$e||ct?Ve=!1:Ve=v?se<=a:se<a;Ve?x=ie+1:L=ie}return mr(L,Xr)}function fu(r,a){for(var f=-1,v=r.length,x=0,L=[];++f<v;){var P=r[f],D=a?a(P):P;if(!f||!di(D,F)){var F=D;L[x++]=P===0?0:P}}return L}function hu(r){return typeof r=="number"?r:An(r)?jt:+r}function Mr(r){if(typeof r=="string")return r;if(lt(r))return _t(r,Mr)+"";if(An(r))return Cr?Cr.call(r):"";var a=r+"";return a=="0"&&1/r==-me?"-0":a}function ln(r,a,f){var v=-1,x=Ia,L=r.length,P=!0,D=[],F=D;if(f)P=!1,x=Ro;else if(L>=c){var ne=a?null:tl(r);if(ne)return Al(ne);P=!1,x=Kr,F=new wr}else F=a?[]:D;e:for(;++v<L;){var ie=r[v],se=a?a(ie):ie;if(ie=f||ie!==0?ie:0,P&&se===se){for(var ze=F.length;ze--;)if(F[ze]===se)continue e;a&&F.push(se),D.push(ie)}else x(F,se,f)||(F!==D&&F.push(se),D.push(ie))}return D}function Xa(r,a){return a=In(a,r),r=Ee(r,a),r==null||delete r[St(jn(a))]}function rs(r,a,f,v){return ai(r,a,f(Wi(r,a)),v)}function ra(r,a,f,v){for(var x=r.length,L=v?x:-1;(v?L--:++L<x)&&a(r[L],L,r););return f?pn(r,v?0:L,v?L+1:x):pn(r,v?L+1:0,v?x:L)}function qc(r,a){var f=r;return f instanceof ft&&(f=f.value()),Fs(a,function(v,x){return x.func.apply(x.thisArg,Si([v],x.args))},f)}function wo(r,a,f){var v=r.length;if(v<2)return v?ln(r[0]):[];for(var x=-1,L=V(v);++x<v;)for(var P=r[x],D=-1;++D<v;)D!=x&&(L[x]=Ko(L[x]||P,r[D],a,f));return ln(xr(L,1),a,f)}function pu(r,a,f){for(var v=-1,x=r.length,L=a.length,P={};++v<x;){var D=v<L?a[v]:l;f(P,r[v],D)}return P}function gu(r){return ar(r)?r:[]}function ns(r){return typeof r=="function"?r:yn}function In(r,a){return lt(r)?r:C(r,a)?[r]:ir(Ot(r))}var R1=st;function Vi(r,a,f){var v=r.length;return f=f===l?v:f,!a&&f>=v?r:pn(r,a,f)}var na=m1||function(r){return Ht.clearTimeout(r)};function vu(r,a){if(a)return r.slice();var f=r.length,v=Lc?Lc(f):new r.constructor(f);return r.copy(v),v}function is(r){var a=new r.constructor(r.byteLength);return new fo(a).set(new fo(r)),a}function H1(r,a){var f=a?is(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function bu(r){var a=new r.constructor(r.source,io.exec(r));return a.lastIndex=r.lastIndex,a}function Kc(r){return Ft?gt(Ft.call(r)):{}}function jc(r,a){var f=a?is(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function mu(r,a){if(r!==a){var f=r!==l,v=r===null,x=r===r,L=An(r),P=a!==l,D=a===null,F=a===a,ne=An(a);if(!D&&!ne&&!L&&r>a||L&&P&&F&&!D&&!ne||v&&P&&F||!f&&F||!x)return 1;if(!v&&!L&&!ne&&r<a||ne&&f&&x&&!v&&!L||D&&f&&x||!P&&x||!F)return-1}return 0}function Yc(r,a,f){for(var v=-1,x=r.criteria,L=a.criteria,P=x.length,D=f.length;++v<P;){var F=mu(x[v],L[v]);if(F){if(v>=D)return F;var ne=f[v];return F*(ne=="desc"?-1:1)}}return r.index-a.index}function Xc(r,a,f,v){for(var x=-1,L=r.length,P=f.length,D=-1,F=a.length,ne=Bt(L-P,0),ie=V(F+ne),se=!v;++D<F;)ie[D]=a[D];for(;++x<P;)(se||x<L)&&(ie[f[x]]=r[x]);for(;ne--;)ie[D++]=r[x++];return ie}function os(r,a,f,v){for(var x=-1,L=r.length,P=-1,D=f.length,F=-1,ne=a.length,ie=Bt(L-D,0),se=V(ie+ne),ze=!v;++x<ie;)se[x]=r[x];for(var $e=x;++F<ne;)se[$e+F]=a[F];for(;++P<D;)(ze||x<L)&&(se[$e+f[P]]=r[x++]);return se}function fr(r,a){var f=-1,v=r.length;for(a||(a=V(v));++f<v;)a[f]=r[f];return a}function Yr(r,a,f,v){var x=!f;f||(f={});for(var L=-1,P=a.length;++L<P;){var D=a[L],F=v?v(f[D],r[D],D,f,r):l;F===l&&(F=r[D]),x?qn(f,D,F):Za(f,D,F)}return f}function B1(r,a){return Yr(r,zu(r),a)}function Qc(r,a){return Yr(r,u0(r),a)}function as(r,a){return function(f,v){var x=lt(f)?c1:nu,L=a?a():{};return x(f,r,Re(v,2),L)}}function ia(r){return st(function(a,f){var v=-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),a=gt(a);++v<x;){var D=f[v];D&&r(a,D,v,L)}return a})}function Jc(r,a){return function(f,v){if(f==null)return f;if(!bn(f))return r(f,v);for(var x=f.length,L=a?x:-1,P=gt(f);(a?L--:++L<x)&&v(P[L],L,P)!==!1;);return f}}function e0(r){return function(a,f,v){for(var x=-1,L=gt(a),P=v(a),D=P.length;D--;){var F=P[r?D:++x];if(f(L[F],F,L)===!1)break}return a}}function t0(r,a,f){var v=a&ge,x=aa(r);function L(){var P=this&&this!==Ht&&this instanceof L?x:r;return P.apply(v?f:this,arguments)}return L}function r0(r){return function(a){a=Ot(a);var f=Tn(a)?fn(a):l,v=f?f[0]:a.charAt(0),x=f?Vi(f,1).join(""):a.slice(1);return v[r]()+x}}function oa(r){return function(a){return Fs(_f(Lf(a).replace(Ds,"")),r,"")}}function aa(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Gn(r.prototype),v=r.apply(f,a);return Kt(v)?v:f}}function yu(r,a,f){var v=aa(r);function x(){for(var L=arguments.length,P=V(L),D=L,F=sa(x);D--;)P[D]=arguments[D];var ne=L<3&&P[0]!==F&&P[L-1]!==F?[]:ki(P,F);if(L-=ne.length,L<f)return o0(r,a,Qa,x.placeholder,l,P,ne,l,l,f-L);var ie=this&&this!==Ht&&this instanceof x?v:r;return rn(ie,this,P)}return x}function Cu(r){return function(a,f,v){var x=gt(a);if(!bn(a)){var L=Re(f,3);a=Ir(a),f=function(D){return L(x[D],D,x)}}var P=r(a,f,v);return P>-1?x[L?a[P]:P]:l}}function n0(r){return ui(function(a){var f=a.length,v=f,x=Hr.prototype.thru;for(r&&a.reverse();v--;){var L=a[v];if(typeof L!="function")throw new jr(m);if(x&&!P&&nl(L)=="wrapper")var P=new Hr([],!0)}for(v=P?v:f;++v<f;){L=a[v];var D=nl(L),F=D=="wrapper"?yt(L):l;F&&M(F[0])&&F[1]==(Ie|pe|ke|qe)&&!F[4].length&&F[9]==1?P=P[nl(F[0])].apply(P,F[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&<(ie))return P.plant(ie).value();for(var se=0,ze=f?a[se].apply(this,ne):ie;++se<f;)ze=a[se].call(this,ze);return ze}})}function Qa(r,a,f,v,x,L,P,D,F,ne){var ie=a&Ie,se=a&ge,ze=a&Me,$e=a&(pe|de),Ge=a&je,ct=ze?l:aa(r);function Ve(){for(var pt=arguments.length,vt=V(pt),Dn=pt;Dn--;)vt[Dn]=arguments[Dn];if($e)var sn=sa(Ve),$n=g1(vt,sn);if(v&&(vt=Xc(vt,v,x,$e)),L&&(vt=os(vt,L,P,$e)),pt-=$n,$e&&pt<ne){var lr=ki(vt,sn);return o0(r,a,Qa,Ve.placeholder,f,vt,lr,D,F,ne-pt)}var fi=se?f:this,ko=ze?fi[r]:r;return pt=vt.length,D?vt=ot(vt,D):Ge&&pt>1&&vt.reverse(),ie&&F<pt&&(vt.length=F),this&&this!==Ht&&this instanceof Ve&&(ko=ct||aa(ko)),ko.apply(fi,vt)}return Ve}function xo(r,a){return function(f,v){return Xl(f,r,a(v),{})}}function Ja(r,a){return function(f,v){var x;if(f===l&&v===l)return a;if(f!==l&&(x=f),v!==l){if(x===l)return v;typeof f=="string"||typeof v=="string"?(f=Mr(f),v=Mr(v)):(f=hu(f),v=hu(v)),x=r(f,v)}return x}}function la(r){return ui(function(a){return a=_t(a,Rr(Re())),st(function(f){var v=this;return r(a,function(x){return rn(x,v,f)})})})}function ls(r,a){a=a===l?" ":Mr(a);var f=a.length;if(f<2)return f?du(a,r):a;var v=du(a,Zo(r/uo(a)));return Tn(a)?Vi(fn(v),0,r).join(""):v.slice(0,r)}function F1(r,a,f,v){var x=a&ge,L=aa(r);function P(){for(var D=-1,F=arguments.length,ne=-1,ie=v.length,se=V(ie+F),ze=this&&this!==Ht&&this instanceof P?L:r;++ne<ie;)se[ne]=v[ne];for(;F--;)se[ne++]=arguments[++D];return rn(ze,x?f:this,se)}return P}function i0(r){return function(a,f,v){return v&&typeof v!="number"&&y(a,f,v)&&(f=v=l),a=Mo(a),f===l?(f=a,a=0):f=Mo(f),v=v===l?a<f?1:-1:Mo(v),Vc(a,f,v,r)}}function Mt(r){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Yn(a),f=Yn(f)),r(a,f)}}function o0(r,a,f,v,x,L,P,D,F,ne){var ie=a&pe,se=ie?P:l,ze=ie?l:P,$e=ie?L:l,Ge=ie?l:L;a|=ie?ke:Pe,a&=~(ie?Pe:ke),a&Te||(a&=~(ge|Me));var ct=[r,a,x,$e,se,Ge,ze,D,F,ne],Ve=f.apply(l,ct);return M(r)&&Xt(Ve,ct),Ve.placeholder=v,Tr(Ve,r,a)}function el(r){var a=nr[r];return function(f,v){if(f=Yn(f),v=v==null?0:mr(ut(v),292),v&&_c(f)){var x=(Ot(f)+"e").split("e"),L=a(x[0]+"e"+(+x[1]+v));return x=(Ot(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return a(f)}}var tl=vo&&1/Al(new vo([,-0]))[1]==me?function(r){return new vo(r)}:ed;function gn(r){return function(a){var f=kr(a);return f==Yt?Il(a):f==et?mc(a):ni(a,r(a))}}function vn(r,a,f,v,x,L,P,D){var F=a&Me;if(!F&&typeof r!="function")throw new jr(m);var ne=v?v.length:0;if(ne||(a&=~(ke|Pe),v=x=l),P=P===l?P:Bt(ut(P),0),D=D===l?D:ut(D),ne-=x?x.length:0,a&Pe){var ie=v,se=x;v=x=l}var ze=F?l:yt(r),$e=[r,a,f,v,x,ie,se,L,P,D];if(ze&&we($e,ze),r=$e[0],a=$e[1],f=$e[2],v=$e[3],x=$e[4],D=$e[9]=$e[9]===l?F?0:r.length:Bt($e[9]-ne,0),!D&&a&(pe|de)&&(a&=~(pe|de)),!a||a==ge)var Ge=t0(r,a,f);else a==pe||a==de?Ge=yu(r,a,D):(a==ke||a==(ge|ke))&&!x.length?Ge=F1(r,a,f,v):Ge=Qa.apply(l,$e);var ct=ze?ja:Xt;return Tr(ct(Ge,$e),r,a)}function ss(r,a,f,v){return r===l||di(r,Pi[f])&&!tt.call(v,f)?a:r}function wu(r,a,f,v,x,L){return Kt(r)&&Kt(a)&&(L.set(a,r),Jl(r,a,l,wu,L),L.delete(a)),r}function a0(r){return _u(r)?l:r}function xu(r,a,f,v,x,L){var P=f&re,D=r.length,F=a.length;if(D!=F&&!(P&&F>D))return!1;var ne=L.get(r),ie=L.get(a);if(ne&&ie)return ne==a&&ie==r;var se=-1,ze=!0,$e=f&ve?new wr:l;for(L.set(r,a),L.set(a,r);++se<D;){var Ge=r[se],ct=a[se];if(v)var Ve=P?v(ct,Ge,se,a,r,L):v(Ge,ct,se,r,a,L);if(Ve!==l){if(Ve)continue;ze=!1;break}if($e){if(!ao(a,function(pt,vt){if(!Kr($e,vt)&&(Ge===pt||x(Ge,pt,f,v,L)))return $e.push(vt)})){ze=!1;break}}else if(!(Ge===ct||x(Ge,ct,f,v,L))){ze=!1;break}}return L.delete(r),L.delete(a),ze}function l0(r,a,f,v,x,L,P){switch(f){case zn:if(r.byteLength!=a.byteLength||r.byteOffset!=a.byteOffset)return!1;r=r.buffer,a=a.buffer;case pr:return!(r.byteLength!=a.byteLength||!L(new fo(r),new fo(a)));case We:case nt:case Ke:return di(+r,+a);case Be:return r.name==a.name&&r.message==a.message;case er:case W:return r==a+"";case Yt:var D=Il;case et:var F=v&re;if(D||(D=Al),r.size!=a.size&&!F)return!1;var ne=P.get(r);if(ne)return ne==a;v|=ve,P.set(r,a);var ie=xu(D(r),D(a),v,x,L,P);return P.delete(r),ie;case ae:if(Ft)return Ft.call(r)==Ft.call(a)}return!1}function s0(r,a,f,v,x,L){var P=f&re,D=rl(r),F=D.length,ne=rl(a),ie=ne.length;if(F!=ie&&!P)return!1;for(var se=F;se--;){var ze=D[se];if(!(P?ze in a:tt.call(a,ze)))return!1}var $e=L.get(r),Ge=L.get(a);if($e&&Ge)return $e==a&&Ge==r;var ct=!0;L.set(r,a),L.set(a,r);for(var Ve=P;++se<F;){ze=D[se];var pt=r[ze],vt=a[ze];if(v)var Dn=P?v(vt,pt,ze,a,r,L):v(pt,vt,ze,r,a,L);if(!(Dn===l?pt===vt||x(pt,vt,f,v,L):Dn)){ct=!1;break}Ve||(Ve=ze=="constructor")}if(ct&&!Ve){var sn=r.constructor,$n=a.constructor;sn!=$n&&"constructor"in r&&"constructor"in a&&!(typeof sn=="function"&&sn instanceof sn&&typeof $n=="function"&&$n instanceof $n)&&(ct=!1)}return L.delete(r),L.delete(a),ct}function ui(r){return Or(De(r,l,Yd),r+"")}function rl(r){return yo(r,Ir,zu)}function us(r){return yo(r,mn,u0)}var yt=Zn?function(r){return Zn.get(r)}:ed;function nl(r){for(var a=r.name+"",f=qo[a],v=tt.call(qo,a)?f.length:0;v--;){var x=f[v],L=x.func;if(L==null||L==r)return x.name}return a}function sa(r){var a=tt.call(z,"placeholder")?z:r;return a.placeholder}function Re(){var r=z.iteratee||Q1;return r=r===Q1?Fc:r,arguments.length?r(arguments[0],arguments[1]):r}function cs(r,a){var f=r.__data__;return _(a)?f[typeof a=="string"?"string":"hash"]:f.map}function ua(r){for(var a=Ir(r),f=a.length;f--;){var v=a[f],x=r[v];a[f]=[v,x,te(x)]}return a}function zo(r,a){var f=qs(r,a);return ea(f)?f:l}function Zt(r){var a=tt.call(r,Ai),f=r[Ai];try{r[Ai]=l;var v=!0}catch{}var x=co.call(r);return v&&(a?r[Ai]=f:delete r[Ai]),x}var zu=Di?function(r){return r==null?[]:(r=gt(r),_i(Di(r),function(a){return Rl.call(r,a)}))}:td,u0=Di?function(r){for(var a=[];r;)Si(a,zu(r)),r=Wo(r);return a}:td,kr=dr;(Ni&&kr(new Ni(new ArrayBuffer(1)))!=zn||Vo&&kr(new Vo)!=Yt||Bl&&kr(Bl.resolve())!=Lr||vo&&kr(new vo)!=et||Fa&&kr(new Fa)!=Ye)&&(kr=function(r){var a=dr(r),f=a==wt?r.constructor:l,v=f?Pt(f):"";if(v)switch(v){case w1:return zn;case x1:return Yt;case z1:return Lr;case L1:return et;case _1:return Ye}return a});function ds(r,a,f){for(var v=-1,x=f.length;++v<x;){var L=f[v],P=L.size;switch(L.type){case"drop":r+=P;break;case"dropRight":a-=P;break;case"take":a=mr(a,r+P);break;case"takeRight":r=Bt(r,a-P);break}}return{start:r,end:a}}function e(r){var a=r.match(La);return a?a[1].split(zi):[]}function t(r,a,f){a=In(a,r);for(var v=-1,x=a.length,L=!1;++v<x;){var P=St(a[v]);if(!(L=r!=null&&f(r,P)))break;r=r[P]}return L||++v!=x?L:(x=r==null?0:r.length,!!x&&g0(x)&&b(P,x)&&(lt(r)||il(r)))}function i(r){var a=r.length,f=new r.constructor(a);return a&&typeof r[0]=="string"&&tt.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function n(r){return typeof r.constructor=="function"&&!q(r)?Gn(Wo(r)):{}}function u(r,a,f){var v=r.constructor;switch(a){case pr:return is(r);case We:case nt:return new v(+r);case zn:return H1(r,f);case Dr:case Nt:case ei:case _r:case Ln:case Ne:case wi:case gr:case Ue:return jc(r,f);case Yt:return new v;case Ke:case W:return new v(r);case er:return bu(r);case et:return new v;case ae:return Kc(r)}}function h(r,a){var f=a.length;if(!f)return r;var v=f-1;return a[v]=(f>1?"& ":"")+a[v],a=a.join(f>2?", ":" "),r.replace(yl,`{
|
|
1577
|
+
*/(function(s,o){(function(){var l,d="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",I="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",k=500,A="__lodash_placeholder__",B=1,U=2,Z=4,re=1,ve=2,ge=1,Me=2,Te=4,pe=8,de=16,ke=32,Pe=64,Ie=128,qe=256,je=512,be=30,ye="...",Qe=800,G=16,E=1,S=2,ee=3,me=1/0,rt=9007199254740991,Lt=17976931348623157e292,jt=0/0,It=4294967295,Xr=It-1,Ut=It>>>1,At=[["ary",Ie],["bind",ge],["bindKey",Me],["curry",pe],["curryRight",de],["flip",je],["partial",ke],["partialRight",Pe],["rearg",qe]],at="[object Arguments]",Le="[object Array]",He="[object AsyncFunction]",We="[object Boolean]",nt="[object Date]",it="[object DOMException]",Be="[object Error]",Rt="[object Function]",Ar="[object GeneratorFunction]",Yt="[object Map]",Ke="[object Number]",ht="[object Null]",wt="[object Object]",Lr="[object Promise]",Gr="[object Proxy]",er="[object RegExp]",et="[object Set]",W="[object String]",ae="[object Symbol]",K="[object Undefined]",Ye="[object WeakMap]",tr="[object WeakSet]",pr="[object ArrayBuffer]",zn="[object DataView]",Dr="[object Float32Array]",Nt="[object Float64Array]",ei="[object Int8Array]",_r="[object Int16Array]",Ln="[object Int32Array]",Ne="[object Uint8Array]",wi="[object Uint8ClampedArray]",gr="[object Uint16Array]",Ue="[object Uint32Array]",Vt=/\b__p \+= '';/g,Io=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_n=/&(?:amp|lt|gt|quot|#39);/g,ur=/[&<>"']/g,Ao=RegExp(_n.source),Qr=RegExp(ur.source),ro=/<%-([\s\S]+?)%>/g,xi=/<%([\s\S]+?)%>/g,xa=/<%=([\s\S]+?)%>/g,za=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$r=/^\w*$/,bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,no=/[\\^$.*+?()[\]{}|]/g,Rn=RegExp(no.source),io=/^\s+/,ml=/\s/,yl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,La=/\{\n\/\* \[wrapped with (.+)\] \*/,zi=/,? & /,cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jr=/[()=,{}\[\]\/\s]/,Cl=/\\(\\)?/g,ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oo=/\w*$/,Do=/^[-+]0x[0-9a-f]+$/i,Sn=/^0b[01]+$/i,Mn=/^\[object .+?Constructor\]$/,en=/^0o[0-7]+$/i,_a=/^(?:0|[1-9]\d*)$/,Sa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dt=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Vr="\\ufe20-\\ufe2f",bt="\\u20d0-\\u20ff",kn=Ma+Vr+bt,Li="\\u2700-\\u27bf",$o="a-z\\xdf-\\xf6\\xf8-\\xff",oe="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O="\\u2000-\\u206f",X=" \\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",dt=oe+w+O+X,Ce="['\u2019]",vr="["+tn+"]",qr="["+dt+"]",ri="["+kn+"]",On="\\d+",Xu="["+Li+"]",Es="["+$o+"]",No="[^"+tn+dt+On+Li+$o+le+"]",ka="\\ud83c[\\udffb-\\udfff]",Qu="(?:"+ri+"|"+ka+")",wl="[^"+tn+"]",xl="(?:\\ud83c[\\udde6-\\uddff]){2}",zl="[\\ud800-\\udbff][\\udc00-\\udfff]",ao="["+le+"]",Is="\\u200d",Ju="(?:"+Es+"|"+No+")",n1="(?:"+ao+"|"+No+")",As="(?:"+Ce+"(?:d|ll|m|re|s|t|ve))?",Hn="(?:"+Ce+"(?:D|LL|M|RE|S|T|VE))?",ec=Qu+"?",tc="["+Ze+"]?",Ll="(?:"+Is+"(?:"+[wl,xl,zl].join("|")+")"+tc+ec+")*",Oa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rc=tc+ec+Ll,o1="(?:"+[Xu,xl,zl].join("|")+")"+rc,a1="(?:"+[wl+ri+"?",ri,xl,zl,vr].join("|")+")",Ds=RegExp(Ce,"g"),nc=RegExp(ri,"g"),$s=RegExp(ka+"(?="+ka+")|"+a1+rc,"g"),ic=RegExp([ao+"?"+Es+"+"+As+"(?="+[qr,ao,"$"].join("|")+")",n1+"+"+Hn+"(?="+[qr,ao+Ju,"$"].join("|")+")",ao+"?"+Ju+"+"+As,ao+"+"+Hn,i1,Oa,On,o1].join("|"),"g"),oc=RegExp("["+Is+tn+kn+Ze+"]"),_l=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ns=-1,$t={};$t[Dr]=$t[Nt]=$t[ei]=$t[_r]=$t[Ln]=$t[Ne]=$t[wi]=$t[gr]=$t[Ue]=!0,$t[at]=$t[Le]=$t[pr]=$t[We]=$t[zn]=$t[nt]=$t[Be]=$t[Rt]=$t[Yt]=$t[Ke]=$t[wt]=$t[er]=$t[et]=$t[W]=$t[Ye]=!1;var Tt={};Tt[at]=Tt[Le]=Tt[pr]=Tt[zn]=Tt[We]=Tt[nt]=Tt[Dr]=Tt[Nt]=Tt[ei]=Tt[_r]=Tt[Ln]=Tt[Yt]=Tt[Ke]=Tt[wt]=Tt[er]=Tt[et]=Tt[W]=Tt[ae]=Tt[Ne]=Tt[wi]=Tt[gr]=Tt[Ue]=!0,Tt[Be]=Tt[Rt]=Tt[Ye]=!1;var Ml={\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"},l1={"&":"&","<":"<",">":">",'"':""","'":"'"},ac={"&":"&","<":"<",">":">",""":'"',"'":"'"},Bn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},s1=parseFloat,u1=parseInt,kl=typeof bs=="object"&&bs&&bs.Object===Object&&bs,lc=typeof self=="object"&&self&&self.Object===Object&&self,Ht=kl||lc||Function("return this")(),Ta=o&&!o.nodeType&&o,Nr=Ta&&!0&&s&&!s.nodeType&&s,Pa=Nr&&Nr.exports===Ta,Ea=Pa&&kl.process,br=function(){try{var R=Nr&&Nr.require&&Nr.require("util").types;return R||Ea&&Ea.binding&&Ea.binding("util")}catch{}}(),sc=br&&br.isArrayBuffer,uc=br&&br.isDate,cc=br&&br.isMap,dc=br&&br.isRegExp,Rs=br&&br.isSet,Hs=br&&br.isTypedArray;function rn(R,Q,V){switch(V.length){case 0:return R.call(Q);case 1:return R.call(Q,V[0]);case 2:return R.call(Q,V[0],V[1]);case 3:return R.call(Q,V[0],V[1],V[2])}return R.apply(Q,V)}function c1(R,Q,V,_e){for(var Je=-1,Ct=R==null?0:R.length;++Je<Ct;){var nr=R[Je];Q(_e,nr,V(nr),R)}return _e}function dn(R,Q){for(var V=-1,_e=R==null?0:R.length;++V<_e&&Q(R[V],V,R)!==!1;);return R}function d1(R,Q){for(var V=R==null?0:R.length;V--&&Q(R[V],V,R)!==!1;);return R}function Bs(R,Q){for(var V=-1,_e=R==null?0:R.length;++V<_e;)if(!Q(R[V],V,R))return!1;return!0}function _i(R,Q){for(var V=-1,_e=R==null?0:R.length,Je=0,Ct=[];++V<_e;){var nr=R[V];Q(nr,V,R)&&(Ct[Je++]=nr)}return Ct}function Ia(R,Q){var V=R==null?0:R.length;return!!V&&so(R,Q,0)>-1}function Ro(R,Q,V){for(var _e=-1,Je=R==null?0:R.length;++_e<Je;)if(V(Q,R[_e]))return!0;return!1}function _t(R,Q){for(var V=-1,_e=R==null?0:R.length,Je=Array(_e);++V<_e;)Je[V]=Q(R[V],V,R);return Je}function Si(R,Q){for(var V=-1,_e=Q.length,Je=R.length;++V<_e;)R[Je+V]=Q[V];return R}function Fs(R,Q,V,_e){var Je=-1,Ct=R==null?0:R.length;for(_e&&Ct&&(V=R[++Je]);++Je<Ct;)V=Q(V,R[Je],Je,R);return V}function f1(R,Q,V,_e){var Je=R==null?0:R.length;for(_e&&Je&&(V=R[--Je]);Je--;)V=Q(V,R[Je],Je,R);return V}function lo(R,Q){for(var V=-1,_e=R==null?0:R.length;++V<_e;)if(Q(R[V],V,R))return!0;return!1}var rr=Us("length");function h1(R){return R.split("")}function fc(R){return R.match(cn)||[]}function Ho(R,Q,V){var _e;return V(R,function(Je,Ct,nr){if(Q(Je,Ct,nr))return _e=Ct,!1}),_e}function Ol(R,Q,V,_e){for(var Je=R.length,Ct=V+(_e?1:-1);_e?Ct--:++Ct<Je;)if(Q(R[Ct],Ct,R))return Ct;return-1}function so(R,Q,V){return Q===Q?yc(R,Q,V):Ol(R,Tl,V)}function p1(R,Q,V,_e){for(var Je=V-1,Ct=R.length;++Je<Ct;)if(_e(R[Je],Q))return Je;return-1}function Tl(R){return R!==R}function Ws(R,Q){var V=R==null?0:R.length;return V?Vs(R,Q)/V:jt}function Us(R){return function(Q){return Q==null?l:Q[R]}}function Zs(R){return function(Q){return R==null?l:R[Q]}}function Gs(R,Q,V,_e,Je){return Je(R,function(Ct,nr,gt){V=_e?(_e=!1,Ct):Q(V,Ct,nr,gt)}),V}function hc(R,Q){var V=R.length;for(R.sort(Q);V--;)R[V]=R[V].value;return R}function Vs(R,Q){for(var V,_e=-1,Je=R.length;++_e<Je;){var Ct=Q(R[_e]);Ct!==l&&(V=V===l?Ct:V+Ct)}return V}function uo(R,Q){for(var V=-1,_e=Array(R);++V<R;)_e[V]=Q(V);return _e}function ni(R,Q){return _t(Q,function(V){return[V,R[V]]})}function Aa(R){return R&&R.slice(0,Dl(R)+1).replace(io,"")}function Rr(R){return function(Q){return R(Q)}}function Pl(R,Q){return _t(Q,function(V){return R[V]})}function Kr(R,Q){return R.has(Q)}function Mi(R,Q){for(var V=-1,_e=R.length;++V<_e&&so(Q,R[V],0)>-1;);return V}function El(R,Q){for(var V=R.length;V--&&so(Q,R[V],0)>-1;);return V}function g1(R,Q){for(var V=R.length,_e=0;V--;)R[V]===Q&&++_e;return _e}var pc=Zs(Ml),v1=Zs(l1);function gc(R){return"\\"+Bn[R]}function qs(R,Q){return R==null?l:R[Q]}function Tn(R){return oc.test(R)}function Fn(R){return _l.test(R)}function vc(R){for(var Q,V=[];!(Q=R.next()).done;)V.push(Q.value);return V}function Il(R){var Q=-1,V=Array(R.size);return R.forEach(function(_e,Je){V[++Q]=[Je,_e]}),V}function bc(R,Q){return function(V){return R(Q(V))}}function ki(R,Q){for(var V=-1,_e=R.length,Je=0,Ct=[];++V<_e;){var nr=R[V];(nr===Q||nr===A)&&(R[V]=A,Ct[Je++]=V)}return Ct}function Al(R){var Q=-1,V=Array(R.size);return R.forEach(function(_e){V[++Q]=_e}),V}function mc(R){var Q=-1,V=Array(R.size);return R.forEach(function(_e){V[++Q]=[_e,_e]}),V}function yc(R,Q,V){for(var _e=V-1,Je=R.length;++_e<Je;)if(R[_e]===Q)return _e;return-1}function Da(R,Q,V){for(var _e=V+1;_e--;)if(R[_e]===Q)return _e;return _e}function co(R){return Tn(R)?Cc(R):rr(R)}function fn(R){return Tn(R)?Nl(R):h1(R)}function Dl(R){for(var Q=R.length;Q--&&ml.test(R.charAt(Q)););return Q}var $l=Zs(ac);function Cc(R){for(var Q=$s.lastIndex=0;$s.test(R);)++Q;return Q}function Nl(R){return R.match($s)||[]}function Pn(R){return R.match(ic)||[]}var wc=function R(Q){Q=Q==null?Ht:Oi.defaults(Ht.Object(),Q,Oi.pick(Ht,Sl));var V=Q.Array,_e=Q.Date,Je=Q.Error,Ct=Q.Function,nr=Q.Math,gt=Q.Object,Ti=Q.RegExp,Bo=Q.String,jr=Q.TypeError,Fo=V.prototype,xc=Ct.prototype,Pi=gt.prototype,Wn=Q["__core-js_shared__"],Un=xc.toString,tt=Pi.hasOwnProperty,Ei=0,ii=function(){var r=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),fo=Pi.toString,b1=Un.call(gt),zc=Ht._,$a=Ti("^"+Un.call(tt).replace(no,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Na=Pa?Q.Buffer:l,oi=Q.Symbol,ho=Q.Uint8Array,Lc=Na?Na.allocUnsafe:l,Wo=bc(gt.getPrototypeOf,gt),Ks=gt.create,Rl=Pi.propertyIsEnumerable,Uo=Fo.splice,po=oi?oi.isConcatSpreadable:l,Ii=oi?oi.iterator:l,Ai=oi?oi.toStringTag:l,go=function(){try{var r=Lo(gt,"defineProperty");return r({},"",{}),r}catch{}}(),m1=Q.clearTimeout!==Ht.clearTimeout&&Q.clearTimeout,y1=_e&&_e.now!==Ht.Date.now&&_e.now,C1=Q.setTimeout!==Ht.setTimeout&&Q.setTimeout,Zo=nr.ceil,Go=nr.floor,Di=gt.getOwnPropertySymbols,Ra=Na?Na.isBuffer:l,_c=Q.isFinite,Hl=Fo.join,Sc=bc(gt.keys,gt),Bt=nr.max,mr=nr.min,vo=_e.now,Ha=Q.parseInt,$i=nr.random,Ba=Fo.reverse,Ni=Lo(Q,"DataView"),Vo=Lo(Q,"Map"),Bl=Lo(Q,"Promise"),bo=Lo(Q,"Set"),Fa=Lo(Q,"WeakMap"),En=Lo(gt,"create"),Zn=Fa&&new Fa,qo={},w1=Pt(Ni),x1=Pt(Vo),z1=Pt(Bl),L1=Pt(bo),_1=Pt(Fa),yr=oi?oi.prototype:l,Ft=yr?yr.valueOf:l,Cr=yr?yr.toString:l;function z(r){if(Qt(r)&&!lt(r)&&!(r instanceof ft)){if(r instanceof Hr)return r;if(tt.call(r,"__wrapped__"))return Pr(r)}return new Hr(r)}var Gn=function(){function r(){}return function(a){if(!Kt(a))return{};if(Ks)return Ks(a);r.prototype=a;var f=new r;return r.prototype=l,f}}();function Fl(){}function Hr(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=l}z.templateSettings={escape:ro,evaluate:xi,interpolate:xa,variable:"",imports:{_:z}},z.prototype=Fl.prototype,z.prototype.constructor=z,Hr.prototype=Gn(Fl.prototype),Hr.prototype.constructor=Hr;function ft(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function S1(){var r=new ft(this.__wrapped__);return r.__actions__=fr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=fr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=fr(this.__views__),r}function M1(){if(this.__filtered__){var r=new ft(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function js(){var r=this.__wrapped__.value(),a=this.__dir__,f=lt(r),v=a<0,x=f?r.length:0,L=ds(0,x,this.__views__),P=L.start,D=L.end,F=D-P,ne=v?D:P-1,ie=this.__iteratees__,se=ie.length,ze=0,$e=mr(F,this.__takeCount__);if(!f||!v&&x==F&&$e==F)return qc(r,this.__actions__);var Ge=[];e:for(;F--&&ze<$e;){ne+=a;for(var ct=-1,Ve=r[ne];++ct<se;){var pt=ie[ct],vt=pt.iteratee,Dn=pt.type,sn=vt(Ve);if(Dn==S)Ve=sn;else if(!sn){if(Dn==E)continue e;break e}}Ge[ze++]=Ve}return Ge}ft.prototype=Gn(Fl.prototype),ft.prototype.constructor=ft;function Ri(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Ys(){this.__data__=En?En(null):{},this.size=0}function k1(r){var a=this.has(r)&&delete this.__data__[r];return this.size-=a?1:0,a}function Xs(r){var a=this.__data__;if(En){var f=a[r];return f===T?l:f}return tt.call(a,r)?a[r]:l}function Qs(r){var a=this.__data__;return En?a[r]!==l:tt.call(a,r)}function Mc(r,a){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=En&&a===l?T:a,this}Ri.prototype.clear=Ys,Ri.prototype.delete=k1,Ri.prototype.get=Xs,Ri.prototype.has=Qs,Ri.prototype.set=Mc;function Vn(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Js(){this.__data__=[],this.size=0}function kc(r){var a=this.__data__,f=mo(a,r);if(f<0)return!1;var v=a.length-1;return f==v?a.pop():Uo.call(a,f,1),--this.size,!0}function Wa(r){var a=this.__data__,f=mo(a,r);return f<0?l:a[f][1]}function O1(r){return mo(this.__data__,r)>-1}function Wl(r,a){var f=this.__data__,v=mo(f,r);return v<0?(++this.size,f.push([r,a])):f[v][1]=a,this}Vn.prototype.clear=Js,Vn.prototype.delete=kc,Vn.prototype.get=Wa,Vn.prototype.has=O1,Vn.prototype.set=Wl;function qt(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Oc(){this.size=0,this.__data__={hash:new Ri,map:new(Vo||Vn),string:new Ri}}function T1(r){var a=cs(this,r).delete(r);return this.size-=a?1:0,a}function Tc(r){return cs(this,r).get(r)}function nn(r){return cs(this,r).has(r)}function mt(r,a){var f=cs(this,r),v=f.size;return f.set(r,a),this.size+=f.size==v?0:1,this}qt.prototype.clear=Oc,qt.prototype.delete=T1,qt.prototype.get=Tc,qt.prototype.has=nn,qt.prototype.set=mt;function wr(r){var a=-1,f=r==null?0:r.length;for(this.__data__=new qt;++a<f;)this.add(r[a])}function Hi(r){return this.__data__.set(r,T),this}function Bi(r){return this.__data__.has(r)}wr.prototype.add=wr.prototype.push=Hi,wr.prototype.has=Bi;function hn(r){var a=this.__data__=new Vn(r);this.size=a.size}function eu(){this.__data__=new Vn,this.size=0}function Pc(r){var a=this.__data__,f=a.delete(r);return this.size=a.size,f}function P1(r){return this.__data__.get(r)}function tu(r){return this.__data__.has(r)}function Ua(r,a){var f=this.__data__;if(f instanceof Vn){var v=f.__data__;if(!Vo||v.length<c-1)return v.push([r,a]),this.size=++f.size,this;f=this.__data__=new qt(v)}return f.set(r,a),this.size=f.size,this}hn.prototype.clear=eu,hn.prototype.delete=Pc,hn.prototype.get=P1,hn.prototype.has=tu,hn.prototype.set=Ua;function ru(r,a){var f=lt(r),v=!f&&il(r),x=!f&&!v&&fa(r),L=!f&&!v&&!x&&hs(r),P=f||v||x||L,D=P?uo(r.length,Bo):[],F=D.length;for(var ne in r)(a||tt.call(r,ne))&&!(P&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||L&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||b(ne,F)))&&D.push(ne);return D}function Ul(r){var a=r.length;return a?r[es(0,a-1)]:l}function Fi(r,a){return hr(fr(r),yo(a,0,r.length))}function Ec(r){return hr(fr(r))}function Zl(r,a,f){(f!==l&&!di(r[a],f)||f===l&&!(a in r))&&qn(r,a,f)}function Za(r,a,f){var v=r[a];(!(tt.call(r,a)&&di(v,f))||f===l&&!(a in r))&&qn(r,a,f)}function mo(r,a){for(var f=r.length;f--;)if(di(r[f][0],a))return f;return-1}function nu(r,a,f,v){return on(r,function(x,L,P){a(v,x,f(x),P)}),v}function iu(r,a){return r&&Yr(a,Ir(a),r)}function E1(r,a){return r&&Yr(a,mn(a),r)}function qn(r,a,f){a=="__proto__"&&go?go(r,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[a]=f}function ou(r,a){for(var f=-1,v=a.length,x=V(v),L=r==null;++f<v;)x[f]=L?l:K1(r,a[f]);return x}function yo(r,a,f){return r===r&&(f!==l&&(r=r<=f?r:f),a!==l&&(r=r>=a?r:a)),r}function Br(r,a,f,v,x,L){var P,D=a&B,F=a&U,ne=a&Z;if(f&&(P=x?f(r,v,x,L):f(r)),P!==l)return P;if(!Kt(r))return r;var ie=lt(r);if(ie){if(P=i(r),!D)return fr(r,P)}else{var se=kr(r),ze=se==Rt||se==Ar;if(fa(r))return vu(r,D);if(se==wt||se==at||ze&&!x){if(P=F||ze?{}:n(r),!D)return F?Qc(r,E1(P,r)):B1(r,iu(P,r))}else{if(!Tt[se])return x?r:{};P=u(r,se,D)}}L||(L=new hn);var $e=L.get(r);if($e)return $e;L.set(r,P),hf(r)?r.forEach(function(Ve){P.add(Br(Ve,a,f,Ve,r,L))}):df(r)&&r.forEach(function(Ve,pt){P.set(pt,Br(Ve,a,f,pt,r,L))});var Ge=ne?F?us:rl:F?mn:Ir,ct=ie?l:Ge(r);return dn(ct||r,function(Ve,pt){ct&&(pt=Ve,Ve=r[pt]),Za(P,pt,Br(Ve,a,f,pt,r,L))}),P}function Ic(r){var a=Ir(r);return function(f){return Ac(f,r,a)}}function Ac(r,a,f){var v=f.length;if(r==null)return!v;for(r=gt(r);v--;){var x=f[v],L=a[x],P=r[x];if(P===l&&!(x in r)||!L(P))return!1}return!0}function Dc(r,a,f){if(typeof r!="function")throw new jr(m);return kt(function(){r.apply(l,f)},a)}function Ko(r,a,f,v){var x=-1,L=Ia,P=!0,D=r.length,F=[],ne=a.length;if(!D)return F;f&&(a=_t(a,Rr(f))),v?(L=Ro,P=!1):a.length>=c&&(L=Kr,P=!1,a=new wr(a));e:for(;++x<D;){var ie=r[x],se=f==null?ie:f(ie);if(ie=v||ie!==0?ie:0,P&&se===se){for(var ze=ne;ze--;)if(a[ze]===se)continue e;F.push(ie)}else L(a,se,v)||F.push(ie)}return F}var on=Jc(an),Gl=Jc(Kl,!0);function Vl(r,a){var f=!0;return on(r,function(v,x,L){return f=!!a(v,x,L),f}),f}function Ga(r,a,f){for(var v=-1,x=r.length;++v<x;){var L=r[v],P=a(L);if(P!=null&&(D===l?P===P&&!An(P):f(P,D)))var D=P,F=L}return F}function au(r,a,f,v){var x=r.length;for(f=ut(f),f<0&&(f=-f>x?0:x+f),v=v===l||v>x?x:ut(v),v<0&&(v+=x),v=f>v?0:gf(v);f<v;)r[f++]=a;return r}function lu(r,a){var f=[];return on(r,function(v,x,L){a(v,x,L)&&f.push(v)}),f}function xr(r,a,f,v,x){var L=-1,P=r.length;for(f||(f=p),x||(x=[]);++L<P;){var D=r[L];a>0&&f(D)?a>1?xr(D,a-1,f,v,x):Si(x,D):v||(x[x.length]=D)}return x}var ql=e0(),cr=e0(!0);function an(r,a){return r&&ql(r,a,Ir)}function Kl(r,a){return r&&cr(r,a,Ir)}function Va(r,a){return _i(a,function(f){return Mo(r[f])})}function Wi(r,a){a=In(a,r);for(var f=0,v=a.length;r!=null&&f<v;)r=r[St(a[f++])];return f&&f==v?r:l}function Co(r,a,f){var v=a(r);return lt(r)?v:Si(v,f(r))}function dr(r){return r==null?r===l?K:ht:Ai&&Ai in gt(r)?Zt(r):xe(r)}function jl(r,a){return r>a}function $c(r,a){return r!=null&&tt.call(r,a)}function Nc(r,a){return r!=null&&a in gt(r)}function jo(r,a,f){return r>=mr(a,f)&&r<Bt(a,f)}function Yl(r,a,f){for(var v=f?Ro:Ia,x=r[0].length,L=r.length,P=L,D=V(L),F=1/0,ne=[];P--;){var ie=r[P];P&&a&&(ie=_t(ie,Rr(a))),F=mr(ie.length,F),D[P]=!f&&(a||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<F;){var $e=ie[se],Ge=a?a($e):$e;if($e=f||$e!==0?$e:0,!(ze?Kr(ze,Ge):v(ne,Ge,f))){for(P=L;--P;){var ct=D[P];if(!(ct?Kr(ct,Ge):v(r[P],Ge,f)))continue e}ze&&ze.push(Ge),ne.push($e)}}return ne}function Xl(r,a,f,v){return an(r,function(x,L,P){a(v,f(x),L,P)}),v}function Yo(r,a,f){a=In(a,r),r=Ee(r,a);var v=r==null?r:r[St(jn(a))];return v==null?l:rn(v,r,f)}function Xo(r){return Qt(r)&&dr(r)==at}function I1(r){return Qt(r)&&dr(r)==pr}function Qo(r){return Qt(r)&&dr(r)==nt}function Jo(r,a,f,v,x){return r===a?!0:r==null||a==null||!Qt(r)&&!Qt(a)?r!==r&&a!==a:Rc(r,a,f,v,Jo,x)}function Rc(r,a,f,v,x,L){var P=lt(r),D=lt(a),F=P?Le:kr(r),ne=D?Le:kr(a);F=F==at?wt:F,ne=ne==at?wt:ne;var ie=F==wt,se=ne==wt,ze=F==ne;if(ze&&fa(r)){if(!fa(a))return!1;P=!0,ie=!1}if(ze&&!ie)return L||(L=new hn),P||hs(r)?xu(r,a,f,v,x,L):l0(r,a,F,f,v,x,L);if(!(f&re)){var $e=ie&&tt.call(r,"__wrapped__"),Ge=se&&tt.call(a,"__wrapped__");if($e||Ge){var ct=$e?r.value():r,Ve=Ge?a.value():a;return L||(L=new hn),x(ct,Ve,f,v,L)}}return ze?(L||(L=new hn),s0(r,a,f,v,x,L)):!1}function Hc(r){return Qt(r)&&kr(r)==Yt}function wo(r,a,f,v){var x=f.length,L=x,P=!v;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 F=D[0],ne=r[F],ie=D[1];if(P&&D[2]){if(ne===l&&!(F in r))return!1}else{var se=new hn;if(v)var ze=v(ne,ie,F,r,a,se);if(!(ze===l?Jo(ie,ne,re|ve,v,se):ze))return!1}}return!0}function ea(r){if(!Kt(r)||N(r))return!1;var a=Mo(r)?$a:Mn;return a.test(Pt(r))}function qa(r){return Qt(r)&&dr(r)==er}function Ka(r){return Qt(r)&&kr(r)==et}function Bc(r){return Qt(r)&&g0(r.length)&&!!$t[dr(r)]}function Fc(r){return typeof r=="function"?r:r==null?yn:typeof r=="object"?lt(r)?su(r[0],r[1]):Wc(r):Sf(r)}function Ql(r){if(!q(r))return Sc(r);var a=[];for(var f in gt(r))tt.call(r,f)&&f!="constructor"&&a.push(f);return a}function Ui(r){if(!Kt(r))return he(r);var a=q(r),f=[];for(var v in r)v=="constructor"&&(a||!tt.call(r,v))||f.push(v);return f}function Zi(r,a){return r<a}function ta(r,a){var f=-1,v=bn(r)?V(r.length):[];return on(r,function(x,L,P){v[++f]=a(x,L,P)}),v}function Wc(r){var a=ua(r);return a.length==1&&a[0][2]?ue(a[0][0],a[0][1]):function(f){return f===r||wo(f,r,a)}}function su(r,a){return C(r)&&te(a)?ue(St(r),a):function(f){var v=K1(f,r);return v===l&&v===a?j1(f,r):Jo(a,v,re|ve)}}function Jl(r,a,f,v,x){r!==a&&ql(a,function(L,P){if(x||(x=new hn),Kt(L))A1(r,a,P,f,Jl,v,x);else{var D=v?v(xt(r,P),L,P+"",r,a,x):l;D===l&&(D=L),Zl(r,P,D)}},mn)}function A1(r,a,f,v,x,L,P){var D=xt(r,f),F=xt(a,f),ne=P.get(F);if(ne){Zl(r,f,ne);return}var ie=L?L(D,F,f+"",r,a,P):l,se=ie===l;if(se){var ze=lt(F),$e=!ze&&fa(F),Ge=!ze&&!$e&&hs(F);ie=F,ze||$e||Ge?lt(D)?ie=D:ar(D)?ie=fr(D):$e?(se=!1,ie=vu(F,!0)):Ge?(se=!1,ie=jc(F,!0)):ie=[]:_u(F)||il(F)?(ie=D,il(D)?ie=vf(D):(!Kt(D)||Mo(D))&&(ie=n(F))):se=!1}se&&(P.set(F,ie),x(ie,F,v,L,P),P.delete(F)),Zl(r,f,ie)}function Uc(r,a){var f=r.length;if(!!f)return a+=a<0?f:0,b(a,f)?r[a]:l}function Sr(r,a,f){a.length?a=_t(a,function(L){return lt(L)?function(P){return Wi(P,L.length===1?L[0]:L)}:L}):a=[yn];var v=-1;a=_t(a,Rr(Re()));var x=ta(r,function(L,P,D){var F=_t(a,function(ne){return ne(L)});return{criteria:F,index:++v,value:L}});return hc(x,function(L,P){return Yc(L,P,f)})}function Zc(r,a){return Gc(r,a,function(f,v){return j1(r,v)})}function Gc(r,a,f){for(var v=-1,x=a.length,L={};++v<x;){var P=a[v],D=Wi(r,P);f(D,P)&&ai(L,In(P,r),D)}return L}function D1(r){return function(a){return Wi(a,r)}}function uu(r,a,f,v){var x=v?p1:so,L=-1,P=a.length,D=r;for(r===a&&(a=fr(a)),f&&(D=_t(r,Rr(f)));++L<P;)for(var F=0,ne=a[L],ie=f?f(ne):ne;(F=x(D,ie,F,v))>-1;)D!==r&&Uo.call(D,F,1),Uo.call(r,F,1);return r}function cu(r,a){for(var f=r?a.length:0,v=f-1;f--;){var x=a[f];if(f==v||x!==L){var L=x;b(x)?Uo.call(r,x,1):Xa(r,x)}}return r}function es(r,a){return r+Go($i()*(a-r+1))}function Vc(r,a,f,v){for(var x=-1,L=Bt(Zo((a-r)/(f||1)),0),P=V(L);L--;)P[v?L:++x]=r,r+=f;return P}function du(r,a){var f="";if(!r||a<1||a>rt)return f;do a%2&&(f+=r),a=Go(a/2),a&&(r+=r);while(a);return f}function st(r,a){return Or(De(r,a,yn),r+"")}function $1(r){return Ul(ps(r))}function Gi(r,a){var f=ps(r);return hr(f,yo(a,0,f.length))}function ai(r,a,f,v){if(!Kt(r))return r;a=In(a,r);for(var x=-1,L=a.length,P=L-1,D=r;D!=null&&++x<L;){var F=St(a[x]),ne=f;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(x!=P){var ie=D[F];ne=v?v(ie,F,D):l,ne===l&&(ne=Kt(ie)?ie:b(a[x+1])?[]:{})}Za(D,F,ne),D=D[F]}return r}var ja=Zn?function(r,a){return Zn.set(r,a),r}:yn,Ya=go?function(r,a){return go(r,"toString",{configurable:!0,enumerable:!1,value:X1(a),writable:!0})}:yn;function li(r){return hr(ps(r))}function pn(r,a,f){var v=-1,x=r.length;a<0&&(a=-a>x?0:x+a),f=f>x?x:f,f<0&&(f+=x),x=a>f?0:f-a>>>0,a>>>=0;for(var L=V(x);++v<x;)L[v]=r[v+a];return L}function N1(r,a){var f;return on(r,function(v,x,L){return f=a(v,x,L),!f}),!!f}function si(r,a,f){var v=0,x=r==null?v:r.length;if(typeof a=="number"&&a===a&&x<=Ut){for(;v<x;){var L=v+x>>>1,P=r[L];P!==null&&!An(P)&&(f?P<=a:P<a)?v=L+1:x=L}return x}return ts(r,a,yn,f)}function ts(r,a,f,v){var x=0,L=r==null?0:r.length;if(L===0)return 0;a=f(a);for(var P=a!==a,D=a===null,F=An(a),ne=a===l;x<L;){var ie=Go((x+L)/2),se=f(r[ie]),ze=se!==l,$e=se===null,Ge=se===se,ct=An(se);if(P)var Ve=v||Ge;else ne?Ve=Ge&&(v||ze):D?Ve=Ge&&ze&&(v||!$e):F?Ve=Ge&&ze&&!$e&&(v||!ct):$e||ct?Ve=!1:Ve=v?se<=a:se<a;Ve?x=ie+1:L=ie}return mr(L,Xr)}function fu(r,a){for(var f=-1,v=r.length,x=0,L=[];++f<v;){var P=r[f],D=a?a(P):P;if(!f||!di(D,F)){var F=D;L[x++]=P===0?0:P}}return L}function hu(r){return typeof r=="number"?r:An(r)?jt:+r}function Mr(r){if(typeof r=="string")return r;if(lt(r))return _t(r,Mr)+"";if(An(r))return Cr?Cr.call(r):"";var a=r+"";return a=="0"&&1/r==-me?"-0":a}function ln(r,a,f){var v=-1,x=Ia,L=r.length,P=!0,D=[],F=D;if(f)P=!1,x=Ro;else if(L>=c){var ne=a?null:tl(r);if(ne)return Al(ne);P=!1,x=Kr,F=new wr}else F=a?[]:D;e:for(;++v<L;){var ie=r[v],se=a?a(ie):ie;if(ie=f||ie!==0?ie:0,P&&se===se){for(var ze=F.length;ze--;)if(F[ze]===se)continue e;a&&F.push(se),D.push(ie)}else x(F,se,f)||(F!==D&&F.push(se),D.push(ie))}return D}function Xa(r,a){return a=In(a,r),r=Ee(r,a),r==null||delete r[St(jn(a))]}function rs(r,a,f,v){return ai(r,a,f(Wi(r,a)),v)}function ra(r,a,f,v){for(var x=r.length,L=v?x:-1;(v?L--:++L<x)&&a(r[L],L,r););return f?pn(r,v?0:L,v?L+1:x):pn(r,v?L+1:0,v?x:L)}function qc(r,a){var f=r;return f instanceof ft&&(f=f.value()),Fs(a,function(v,x){return x.func.apply(x.thisArg,Si([v],x.args))},f)}function xo(r,a,f){var v=r.length;if(v<2)return v?ln(r[0]):[];for(var x=-1,L=V(v);++x<v;)for(var P=r[x],D=-1;++D<v;)D!=x&&(L[x]=Ko(L[x]||P,r[D],a,f));return ln(xr(L,1),a,f)}function pu(r,a,f){for(var v=-1,x=r.length,L=a.length,P={};++v<x;){var D=v<L?a[v]:l;f(P,r[v],D)}return P}function gu(r){return ar(r)?r:[]}function ns(r){return typeof r=="function"?r:yn}function In(r,a){return lt(r)?r:C(r,a)?[r]:ir(Ot(r))}var R1=st;function Vi(r,a,f){var v=r.length;return f=f===l?v:f,!a&&f>=v?r:pn(r,a,f)}var na=m1||function(r){return Ht.clearTimeout(r)};function vu(r,a){if(a)return r.slice();var f=r.length,v=Lc?Lc(f):new r.constructor(f);return r.copy(v),v}function is(r){var a=new r.constructor(r.byteLength);return new ho(a).set(new ho(r)),a}function H1(r,a){var f=a?is(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function bu(r){var a=new r.constructor(r.source,oo.exec(r));return a.lastIndex=r.lastIndex,a}function Kc(r){return Ft?gt(Ft.call(r)):{}}function jc(r,a){var f=a?is(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function mu(r,a){if(r!==a){var f=r!==l,v=r===null,x=r===r,L=An(r),P=a!==l,D=a===null,F=a===a,ne=An(a);if(!D&&!ne&&!L&&r>a||L&&P&&F&&!D&&!ne||v&&P&&F||!f&&F||!x)return 1;if(!v&&!L&&!ne&&r<a||ne&&f&&x&&!v&&!L||D&&f&&x||!P&&x||!F)return-1}return 0}function Yc(r,a,f){for(var v=-1,x=r.criteria,L=a.criteria,P=x.length,D=f.length;++v<P;){var F=mu(x[v],L[v]);if(F){if(v>=D)return F;var ne=f[v];return F*(ne=="desc"?-1:1)}}return r.index-a.index}function Xc(r,a,f,v){for(var x=-1,L=r.length,P=f.length,D=-1,F=a.length,ne=Bt(L-P,0),ie=V(F+ne),se=!v;++D<F;)ie[D]=a[D];for(;++x<P;)(se||x<L)&&(ie[f[x]]=r[x]);for(;ne--;)ie[D++]=r[x++];return ie}function os(r,a,f,v){for(var x=-1,L=r.length,P=-1,D=f.length,F=-1,ne=a.length,ie=Bt(L-D,0),se=V(ie+ne),ze=!v;++x<ie;)se[x]=r[x];for(var $e=x;++F<ne;)se[$e+F]=a[F];for(;++P<D;)(ze||x<L)&&(se[$e+f[P]]=r[x++]);return se}function fr(r,a){var f=-1,v=r.length;for(a||(a=V(v));++f<v;)a[f]=r[f];return a}function Yr(r,a,f,v){var x=!f;f||(f={});for(var L=-1,P=a.length;++L<P;){var D=a[L],F=v?v(f[D],r[D],D,f,r):l;F===l&&(F=r[D]),x?qn(f,D,F):Za(f,D,F)}return f}function B1(r,a){return Yr(r,zu(r),a)}function Qc(r,a){return Yr(r,u0(r),a)}function as(r,a){return function(f,v){var x=lt(f)?c1:nu,L=a?a():{};return x(f,r,Re(v,2),L)}}function ia(r){return st(function(a,f){var v=-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),a=gt(a);++v<x;){var D=f[v];D&&r(a,D,v,L)}return a})}function Jc(r,a){return function(f,v){if(f==null)return f;if(!bn(f))return r(f,v);for(var x=f.length,L=a?x:-1,P=gt(f);(a?L--:++L<x)&&v(P[L],L,P)!==!1;);return f}}function e0(r){return function(a,f,v){for(var x=-1,L=gt(a),P=v(a),D=P.length;D--;){var F=P[r?D:++x];if(f(L[F],F,L)===!1)break}return a}}function t0(r,a,f){var v=a&ge,x=aa(r);function L(){var P=this&&this!==Ht&&this instanceof L?x:r;return P.apply(v?f:this,arguments)}return L}function r0(r){return function(a){a=Ot(a);var f=Tn(a)?fn(a):l,v=f?f[0]:a.charAt(0),x=f?Vi(f,1).join(""):a.slice(1);return v[r]()+x}}function oa(r){return function(a){return Fs(Lf(zf(a).replace(Ds,"")),r,"")}}function aa(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Gn(r.prototype),v=r.apply(f,a);return Kt(v)?v:f}}function yu(r,a,f){var v=aa(r);function x(){for(var L=arguments.length,P=V(L),D=L,F=sa(x);D--;)P[D]=arguments[D];var ne=L<3&&P[0]!==F&&P[L-1]!==F?[]:ki(P,F);if(L-=ne.length,L<f)return o0(r,a,Qa,x.placeholder,l,P,ne,l,l,f-L);var ie=this&&this!==Ht&&this instanceof x?v:r;return rn(ie,this,P)}return x}function Cu(r){return function(a,f,v){var x=gt(a);if(!bn(a)){var L=Re(f,3);a=Ir(a),f=function(D){return L(x[D],D,x)}}var P=r(a,f,v);return P>-1?x[L?a[P]:P]:l}}function n0(r){return ui(function(a){var f=a.length,v=f,x=Hr.prototype.thru;for(r&&a.reverse();v--;){var L=a[v];if(typeof L!="function")throw new jr(m);if(x&&!P&&nl(L)=="wrapper")var P=new Hr([],!0)}for(v=P?v:f;++v<f;){L=a[v];var D=nl(L),F=D=="wrapper"?yt(L):l;F&&M(F[0])&&F[1]==(Ie|pe|ke|qe)&&!F[4].length&&F[9]==1?P=P[nl(F[0])].apply(P,F[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&<(ie))return P.plant(ie).value();for(var se=0,ze=f?a[se].apply(this,ne):ie;++se<f;)ze=a[se].call(this,ze);return ze}})}function Qa(r,a,f,v,x,L,P,D,F,ne){var ie=a&Ie,se=a&ge,ze=a&Me,$e=a&(pe|de),Ge=a&je,ct=ze?l:aa(r);function Ve(){for(var pt=arguments.length,vt=V(pt),Dn=pt;Dn--;)vt[Dn]=arguments[Dn];if($e)var sn=sa(Ve),$n=g1(vt,sn);if(v&&(vt=Xc(vt,v,x,$e)),L&&(vt=os(vt,L,P,$e)),pt-=$n,$e&&pt<ne){var lr=ki(vt,sn);return o0(r,a,Qa,Ve.placeholder,f,vt,lr,D,F,ne-pt)}var fi=se?f:this,Oo=ze?fi[r]:r;return pt=vt.length,D?vt=ot(vt,D):Ge&&pt>1&&vt.reverse(),ie&&F<pt&&(vt.length=F),this&&this!==Ht&&this instanceof Ve&&(Oo=ct||aa(Oo)),Oo.apply(fi,vt)}return Ve}function zo(r,a){return function(f,v){return Xl(f,r,a(v),{})}}function Ja(r,a){return function(f,v){var x;if(f===l&&v===l)return a;if(f!==l&&(x=f),v!==l){if(x===l)return v;typeof f=="string"||typeof v=="string"?(f=Mr(f),v=Mr(v)):(f=hu(f),v=hu(v)),x=r(f,v)}return x}}function la(r){return ui(function(a){return a=_t(a,Rr(Re())),st(function(f){var v=this;return r(a,function(x){return rn(x,v,f)})})})}function ls(r,a){a=a===l?" ":Mr(a);var f=a.length;if(f<2)return f?du(a,r):a;var v=du(a,Zo(r/co(a)));return Tn(a)?Vi(fn(v),0,r).join(""):v.slice(0,r)}function F1(r,a,f,v){var x=a&ge,L=aa(r);function P(){for(var D=-1,F=arguments.length,ne=-1,ie=v.length,se=V(ie+F),ze=this&&this!==Ht&&this instanceof P?L:r;++ne<ie;)se[ne]=v[ne];for(;F--;)se[ne++]=arguments[++D];return rn(ze,x?f:this,se)}return P}function i0(r){return function(a,f,v){return v&&typeof v!="number"&&y(a,f,v)&&(f=v=l),a=ko(a),f===l?(f=a,a=0):f=ko(f),v=v===l?a<f?1:-1:ko(v),Vc(a,f,v,r)}}function Mt(r){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Yn(a),f=Yn(f)),r(a,f)}}function o0(r,a,f,v,x,L,P,D,F,ne){var ie=a&pe,se=ie?P:l,ze=ie?l:P,$e=ie?L:l,Ge=ie?l:L;a|=ie?ke:Pe,a&=~(ie?Pe:ke),a&Te||(a&=~(ge|Me));var ct=[r,a,x,$e,se,Ge,ze,D,F,ne],Ve=f.apply(l,ct);return M(r)&&Xt(Ve,ct),Ve.placeholder=v,Tr(Ve,r,a)}function el(r){var a=nr[r];return function(f,v){if(f=Yn(f),v=v==null?0:mr(ut(v),292),v&&_c(f)){var x=(Ot(f)+"e").split("e"),L=a(x[0]+"e"+(+x[1]+v));return x=(Ot(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return a(f)}}var tl=bo&&1/Al(new bo([,-0]))[1]==me?function(r){return new bo(r)}:ed;function gn(r){return function(a){var f=kr(a);return f==Yt?Il(a):f==et?mc(a):ni(a,r(a))}}function vn(r,a,f,v,x,L,P,D){var F=a&Me;if(!F&&typeof r!="function")throw new jr(m);var ne=v?v.length:0;if(ne||(a&=~(ke|Pe),v=x=l),P=P===l?P:Bt(ut(P),0),D=D===l?D:ut(D),ne-=x?x.length:0,a&Pe){var ie=v,se=x;v=x=l}var ze=F?l:yt(r),$e=[r,a,f,v,x,ie,se,L,P,D];if(ze&&we($e,ze),r=$e[0],a=$e[1],f=$e[2],v=$e[3],x=$e[4],D=$e[9]=$e[9]===l?F?0:r.length:Bt($e[9]-ne,0),!D&&a&(pe|de)&&(a&=~(pe|de)),!a||a==ge)var Ge=t0(r,a,f);else a==pe||a==de?Ge=yu(r,a,D):(a==ke||a==(ge|ke))&&!x.length?Ge=F1(r,a,f,v):Ge=Qa.apply(l,$e);var ct=ze?ja:Xt;return Tr(ct(Ge,$e),r,a)}function ss(r,a,f,v){return r===l||di(r,Pi[f])&&!tt.call(v,f)?a:r}function wu(r,a,f,v,x,L){return Kt(r)&&Kt(a)&&(L.set(a,r),Jl(r,a,l,wu,L),L.delete(a)),r}function a0(r){return _u(r)?l:r}function xu(r,a,f,v,x,L){var P=f&re,D=r.length,F=a.length;if(D!=F&&!(P&&F>D))return!1;var ne=L.get(r),ie=L.get(a);if(ne&&ie)return ne==a&&ie==r;var se=-1,ze=!0,$e=f&ve?new wr:l;for(L.set(r,a),L.set(a,r);++se<D;){var Ge=r[se],ct=a[se];if(v)var Ve=P?v(ct,Ge,se,a,r,L):v(Ge,ct,se,r,a,L);if(Ve!==l){if(Ve)continue;ze=!1;break}if($e){if(!lo(a,function(pt,vt){if(!Kr($e,vt)&&(Ge===pt||x(Ge,pt,f,v,L)))return $e.push(vt)})){ze=!1;break}}else if(!(Ge===ct||x(Ge,ct,f,v,L))){ze=!1;break}}return L.delete(r),L.delete(a),ze}function l0(r,a,f,v,x,L,P){switch(f){case zn:if(r.byteLength!=a.byteLength||r.byteOffset!=a.byteOffset)return!1;r=r.buffer,a=a.buffer;case pr:return!(r.byteLength!=a.byteLength||!L(new ho(r),new ho(a)));case We:case nt:case Ke:return di(+r,+a);case Be:return r.name==a.name&&r.message==a.message;case er:case W:return r==a+"";case Yt:var D=Il;case et:var F=v&re;if(D||(D=Al),r.size!=a.size&&!F)return!1;var ne=P.get(r);if(ne)return ne==a;v|=ve,P.set(r,a);var ie=xu(D(r),D(a),v,x,L,P);return P.delete(r),ie;case ae:if(Ft)return Ft.call(r)==Ft.call(a)}return!1}function s0(r,a,f,v,x,L){var P=f&re,D=rl(r),F=D.length,ne=rl(a),ie=ne.length;if(F!=ie&&!P)return!1;for(var se=F;se--;){var ze=D[se];if(!(P?ze in a:tt.call(a,ze)))return!1}var $e=L.get(r),Ge=L.get(a);if($e&&Ge)return $e==a&&Ge==r;var ct=!0;L.set(r,a),L.set(a,r);for(var Ve=P;++se<F;){ze=D[se];var pt=r[ze],vt=a[ze];if(v)var Dn=P?v(vt,pt,ze,a,r,L):v(pt,vt,ze,r,a,L);if(!(Dn===l?pt===vt||x(pt,vt,f,v,L):Dn)){ct=!1;break}Ve||(Ve=ze=="constructor")}if(ct&&!Ve){var sn=r.constructor,$n=a.constructor;sn!=$n&&"constructor"in r&&"constructor"in a&&!(typeof sn=="function"&&sn instanceof sn&&typeof $n=="function"&&$n instanceof $n)&&(ct=!1)}return L.delete(r),L.delete(a),ct}function ui(r){return Or(De(r,l,jd),r+"")}function rl(r){return Co(r,Ir,zu)}function us(r){return Co(r,mn,u0)}var yt=Zn?function(r){return Zn.get(r)}:ed;function nl(r){for(var a=r.name+"",f=qo[a],v=tt.call(qo,a)?f.length:0;v--;){var x=f[v],L=x.func;if(L==null||L==r)return x.name}return a}function sa(r){var a=tt.call(z,"placeholder")?z:r;return a.placeholder}function Re(){var r=z.iteratee||Q1;return r=r===Q1?Fc:r,arguments.length?r(arguments[0],arguments[1]):r}function cs(r,a){var f=r.__data__;return _(a)?f[typeof a=="string"?"string":"hash"]:f.map}function ua(r){for(var a=Ir(r),f=a.length;f--;){var v=a[f],x=r[v];a[f]=[v,x,te(x)]}return a}function Lo(r,a){var f=qs(r,a);return ea(f)?f:l}function Zt(r){var a=tt.call(r,Ai),f=r[Ai];try{r[Ai]=l;var v=!0}catch{}var x=fo.call(r);return v&&(a?r[Ai]=f:delete r[Ai]),x}var zu=Di?function(r){return r==null?[]:(r=gt(r),_i(Di(r),function(a){return Rl.call(r,a)}))}:td,u0=Di?function(r){for(var a=[];r;)Si(a,zu(r)),r=Wo(r);return a}:td,kr=dr;(Ni&&kr(new Ni(new ArrayBuffer(1)))!=zn||Vo&&kr(new Vo)!=Yt||Bl&&kr(Bl.resolve())!=Lr||bo&&kr(new bo)!=et||Fa&&kr(new Fa)!=Ye)&&(kr=function(r){var a=dr(r),f=a==wt?r.constructor:l,v=f?Pt(f):"";if(v)switch(v){case w1:return zn;case x1:return Yt;case z1:return Lr;case L1:return et;case _1:return Ye}return a});function ds(r,a,f){for(var v=-1,x=f.length;++v<x;){var L=f[v],P=L.size;switch(L.type){case"drop":r+=P;break;case"dropRight":a-=P;break;case"take":a=mr(a,r+P);break;case"takeRight":r=Bt(r,a-P);break}}return{start:r,end:a}}function e(r){var a=r.match(La);return a?a[1].split(zi):[]}function t(r,a,f){a=In(a,r);for(var v=-1,x=a.length,L=!1;++v<x;){var P=St(a[v]);if(!(L=r!=null&&f(r,P)))break;r=r[P]}return L||++v!=x?L:(x=r==null?0:r.length,!!x&&g0(x)&&b(P,x)&&(lt(r)||il(r)))}function i(r){var a=r.length,f=new r.constructor(a);return a&&typeof r[0]=="string"&&tt.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function n(r){return typeof r.constructor=="function"&&!q(r)?Gn(Wo(r)):{}}function u(r,a,f){var v=r.constructor;switch(a){case pr:return is(r);case We:case nt:return new v(+r);case zn:return H1(r,f);case Dr:case Nt:case ei:case _r:case Ln:case Ne:case wi:case gr:case Ue:return jc(r,f);case Yt:return new v;case Ke:case W:return new v(r);case er:return bu(r);case et:return new v;case ae:return Kc(r)}}function h(r,a){var f=a.length;if(!f)return r;var v=f-1;return a[v]=(f>1?"& ":"")+a[v],a=a.join(f>2?", ":" "),r.replace(yl,`{
|
|
1575
1578
|
/* [wrapped with `+a+`] */
|
|
1576
|
-
`)}function p(r){return lt(r)||il(r)||!!(ho&&r&&r[ho])}function b(r,a){var f=typeof r;return a=a==null?rt:a,!!a&&(f=="number"||f!="symbol"&&_a.test(r))&&r>-1&&r%1==0&&r<a}function y(r,a,f){if(!Kt(f))return!1;var v=typeof a;return(v=="number"?bn(f)&&b(a,f.length):v=="string"&&a in f)?di(f[a],r):!1}function C(r,a){if(lt(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||An(r)?!0:$r.test(r)||!za.test(r)||a!=null&&r in gt(a)}function _(r){var a=typeof r;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?r!=="__proto__":r===null}function M(r){var a=nl(r),f=z[a];if(typeof f!="function"||!(a in ft.prototype))return!1;if(r===f)return!0;var v=yt(f);return!!v&&r===v[0]}function N(r){return!!ii&&ii in r}var $=Wn?So:rd;function q(r){var a=r&&r.constructor,f=typeof a=="function"&&a.prototype||Pi;return r===f}function te(r){return r===r&&!Kt(r)}function ue(r,a){return function(f){return f==null?!1:f[r]===a&&(a!==l||r in gt(f))}}function fe(r){var a=h0(r,function(v){return f.size===k&&f.clear(),v}),f=a.cache;return a}function we(r,a){var f=r[1],v=a[1],x=f|v,L=x<(ge|Me|Ie),P=v==Ie&&f==pe||v==Ie&&f==qe&&r[7].length<=a[8]||v==(Ie|qe)&&a[7].length<=a[8]&&f==pe;if(!(L||P))return r;v&ge&&(r[2]=a[2],x|=f&ge?0:Te);var D=a[3];if(D){var F=r[3];r[3]=F?Xc(F,D,a[4]):D,r[4]=F?ki(r[3],A):a[4]}return D=a[5],D&&(F=r[5],r[5]=F?os(F,D,a[6]):D,r[6]=F?ki(r[5],A):a[6]),D=a[7],D&&(r[7]=D),v&Ie&&(r[8]=r[8]==null?a[8]:mr(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=x,r}function he(r){var a=[];if(r!=null)for(var f in gt(r))a.push(f);return a}function xe(r){return co.call(r)}function De(r,a,f){return a=Bt(a===l?r.length-1:a,0),function(){for(var v=arguments,x=-1,L=Bt(v.length-a,0),P=V(L);++x<L;)P[x]=v[a+x];x=-1;for(var D=V(a+1);++x<a;)D[x]=v[x];return D[a]=f(P),rn(r,this,D)}}function Ee(r,a){return a.length<2?r:Wi(r,pn(a,0,-1))}function ot(r,a){for(var f=r.length,v=mr(a.length,f),x=fr(r);v--;){var L=a[v];r[v]=b(L,f)?x[L]:l}return r}function xt(r,a){if(!(a==="constructor"&&typeof r[a]=="function")&&a!="__proto__")return r[a]}var Xt=Gt(ja),kt=C1||function(r,a){return Ht.setTimeout(r,a)},Or=Gt(Ya);function Tr(r,a,f){var v=a+"";return Or(r,h(v,Wt(e(v),f)))}function Gt(r){var a=0,f=0;return function(){var v=go(),x=G-(v-f);if(f=v,x>0){if(++a>=Qe)return arguments[0]}else a=0;return r.apply(l,arguments)}}function hr(r,a){var f=-1,v=r.length,x=v-1;for(a=a===l?v:a;++f<a;){var L=es(f,x),P=r[L];r[L]=r[f],r[f]=P}return r.length=a,r}var ir=fe(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(bl,function(f,v,x,L){a.push(x?L.replace(Cl,"$1"):v||f)}),a});function St(r){if(typeof r=="string"||An(r))return r;var a=r+"";return a=="0"&&1/r==-me?"-0":a}function Pt(r){if(r!=null){try{return Un.call(r)}catch{}try{return r+""}catch{}}return""}function Wt(r,a){return dn(At,function(f){var v="_."+f[0];a&f[1]&&!Ia(r,v)&&r.push(v)}),r.sort()}function Pr(r){if(r instanceof ft)return r.clone();var a=new Hr(r.__wrapped__,r.__chain__);return a.__actions__=fr(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}function ca(r,a,f){(f?y(r,a,f):a===l)?a=1:a=Bt(ut(a),0);var v=r==null?0:r.length;if(!v||a<1)return[];for(var x=0,L=0,P=V(Zo(v/a));x<v;)P[L++]=pn(r,x,x+=a);return P}function qi(r){for(var a=-1,f=r==null?0:r.length,v=0,x=[];++a<f;){var L=r[a];L&&(x[v++]=L)}return x}function zr(){var r=arguments.length;if(!r)return[];for(var a=V(r-1),f=arguments[0],v=r;v--;)a[v-1]=arguments[v];return Si(lt(f)?fr(f):[f],xr(a,1))}var Kn=st(function(r,a){return ar(r)?Ko(r,xr(a,1,ar,!0)):[]}),or=st(function(r,a){var f=jn(a);return ar(f)&&(f=l),ar(r)?Ko(r,xr(a,1,ar,!0),Re(f,2)):[]}),Lu=st(function(r,a){var f=jn(a);return ar(f)&&(f=l),ar(r)?Ko(r,xr(a,1,ar,!0),l,f):[]});function ci(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),pn(r,a<0?0:a,v)):[]}function Lo(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,pn(r,0,a<0?0:a)):[]}function _o(r,a){return r&&r.length?ra(r,Re(a,3),!0,!0):[]}function Er(r,a){return r&&r.length?ra(r,Re(a,3),!0):[]}function da(r,a,f,v){var x=r==null?0:r.length;return x?(f&&typeof f!="number"&&y(r,a,f)&&(f=0,v=x),au(r,a,f,v)):[]}function fs(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),Ol(r,Re(a,3),x)}function jd(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v-1;return f!==l&&(x=ut(f),x=f<0?Bt(v+x,0):mr(x,v-1)),Ol(r,Re(a,3),x,!0)}function Yd(r){var a=r==null?0:r.length;return a?xr(r,1):[]}function w2(r){var a=r==null?0:r.length;return a?xr(r,me):[]}function x2(r,a){var f=r==null?0:r.length;return f?(a=a===l?1:ut(a),xr(r,a)):[]}function z2(r){for(var a=-1,f=r==null?0:r.length,v={};++a<f;){var x=r[a];v[x[0]]=x[1]}return v}function Xd(r){return r&&r.length?r[0]:l}function L2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),lo(r,a,x)}function _2(r){var a=r==null?0:r.length;return a?pn(r,0,-1):[]}var S2=st(function(r){var a=_t(r,gu);return a.length&&a[0]===r[0]?Yl(a):[]}),M2=st(function(r){var a=jn(r),f=_t(r,gu);return a===jn(f)?a=l:f.pop(),f.length&&f[0]===r[0]?Yl(f,Re(a,2)):[]}),k2=st(function(r){var a=jn(r),f=_t(r,gu);return a=typeof a=="function"?a:l,a&&f.pop(),f.length&&f[0]===r[0]?Yl(f,l,a):[]});function O2(r,a){return r==null?"":Hl.call(r,a)}function jn(r){var a=r==null?0:r.length;return a?r[a-1]:l}function T2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v;return f!==l&&(x=ut(f),x=x<0?Bt(v+x,0):mr(x,v-1)),a===a?Da(r,a,x):Ol(r,Tl,x,!0)}function P2(r,a){return r&&r.length?Uc(r,ut(a)):l}var E2=st(Qd);function Qd(r,a){return r&&r.length&&a&&a.length?uu(r,a):r}function I2(r,a,f){return r&&r.length&&a&&a.length?uu(r,a,Re(f,2)):r}function A2(r,a,f){return r&&r.length&&a&&a.length?uu(r,a,l,f):r}var D2=ui(function(r,a){var f=r==null?0:r.length,v=ou(r,a);return cu(r,_t(a,function(x){return b(x,f)?+x:x}).sort(mu)),v});function $2(r,a){var f=[];if(!(r&&r.length))return f;var v=-1,x=[],L=r.length;for(a=Re(a,3);++v<L;){var P=r[v];a(P,v,r)&&(f.push(P),x.push(v))}return cu(r,x),f}function W1(r){return r==null?r:Ba.call(r)}function N2(r,a,f){var v=r==null?0:r.length;return v?(f&&typeof f!="number"&&y(r,a,f)?(a=0,f=v):(a=a==null?0:ut(a),f=f===l?v:ut(f)),pn(r,a,f)):[]}function R2(r,a){return si(r,a)}function H2(r,a,f){return ts(r,a,Re(f,2))}function B2(r,a){var f=r==null?0:r.length;if(f){var v=si(r,a);if(v<f&&di(r[v],a))return v}return-1}function F2(r,a){return si(r,a,!0)}function W2(r,a,f){return ts(r,a,Re(f,2),!0)}function U2(r,a){var f=r==null?0:r.length;if(f){var v=si(r,a,!0)-1;if(di(r[v],a))return v}return-1}function Z2(r){return r&&r.length?fu(r):[]}function G2(r,a){return r&&r.length?fu(r,Re(a,2)):[]}function V2(r){var a=r==null?0:r.length;return a?pn(r,1,a):[]}function q2(r,a,f){return r&&r.length?(a=f||a===l?1:ut(a),pn(r,0,a<0?0:a)):[]}function K2(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,pn(r,a<0?0:a,v)):[]}function j2(r,a){return r&&r.length?ra(r,Re(a,3),!1,!0):[]}function Y2(r,a){return r&&r.length?ra(r,Re(a,3)):[]}var X2=st(function(r){return ln(xr(r,1,ar,!0))}),Q2=st(function(r){var a=jn(r);return ar(a)&&(a=l),ln(xr(r,1,ar,!0),Re(a,2))}),J2=st(function(r){var a=jn(r);return a=typeof a=="function"?a:l,ln(xr(r,1,ar,!0),l,a)});function e4(r){return r&&r.length?ln(r):[]}function t4(r,a){return r&&r.length?ln(r,Re(a,2)):[]}function r4(r,a){return a=typeof a=="function"?a:l,r&&r.length?ln(r,l,a):[]}function U1(r){if(!(r&&r.length))return[];var a=0;return r=_i(r,function(f){if(ar(f))return a=Bt(f.length,a),!0}),so(a,function(f){return _t(r,Us(f))})}function Jd(r,a){if(!(r&&r.length))return[];var f=U1(r);return a==null?f:_t(f,function(v){return rn(a,l,v)})}var n4=st(function(r,a){return ar(r)?Ko(r,a):[]}),i4=st(function(r){return wo(_i(r,ar))}),o4=st(function(r){var a=jn(r);return ar(a)&&(a=l),wo(_i(r,ar),Re(a,2))}),a4=st(function(r){var a=jn(r);return a=typeof a=="function"?a:l,wo(_i(r,ar),l,a)}),l4=st(U1);function s4(r,a){return pu(r||[],a||[],Za)}function u4(r,a){return pu(r||[],a||[],ai)}var c4=st(function(r){var a=r.length,f=a>1?r[a-1]:l;return f=typeof f=="function"?(r.pop(),f):l,Jd(r,f)});function ef(r){var a=z(r);return a.__chain__=!0,a}function d4(r,a){return a(r),r}function c0(r,a){return a(r)}var f4=ui(function(r){var a=r.length,f=a?r[0]:0,v=this.__wrapped__,x=function(L){return ou(L,r)};return a>1||this.__actions__.length||!(v instanceof ft)||!b(f)?this.thru(x):(v=v.slice(f,+f+(a?1:0)),v.__actions__.push({func:c0,args:[x],thisArg:l}),new Hr(v,this.__chain__).thru(function(L){return a&&!L.length&&L.push(l),L}))});function h4(){return ef(this)}function p4(){return new Hr(this.value(),this.__chain__)}function g4(){this.__values__===l&&(this.__values__=gf(this.value()));var r=this.__index__>=this.__values__.length,a=r?l:this.__values__[this.__index__++];return{done:r,value:a}}function v4(){return this}function b4(r){for(var a,f=this;f instanceof Fl;){var v=Pr(f);v.__index__=0,v.__values__=l,a?x.__wrapped__=v:a=v;var x=v;f=f.__wrapped__}return x.__wrapped__=r,a}function m4(){var r=this.__wrapped__;if(r instanceof ft){var a=r;return this.__actions__.length&&(a=new ft(this)),a=a.reverse(),a.__actions__.push({func:c0,args:[W1],thisArg:l}),new Hr(a,this.__chain__)}return this.thru(W1)}function y4(){return qc(this.__wrapped__,this.__actions__)}var C4=as(function(r,a,f){tt.call(r,f)?++r[f]:qn(r,f,1)});function w4(r,a,f){var v=lt(r)?Bs:Vl;return f&&y(r,a,f)&&(a=l),v(r,Re(a,3))}function x4(r,a){var f=lt(r)?_i:lu;return f(r,Re(a,3))}var z4=Cu(fs),L4=Cu(jd);function _4(r,a){return xr(d0(r,a),1)}function S4(r,a){return xr(d0(r,a),me)}function M4(r,a,f){return f=f===l?1:ut(f),xr(d0(r,a),f)}function tf(r,a){var f=lt(r)?dn:on;return f(r,Re(a,3))}function rf(r,a){var f=lt(r)?d1:Gl;return f(r,Re(a,3))}var k4=as(function(r,a,f){tt.call(r,f)?r[f].push(a):qn(r,f,[a])});function O4(r,a,f,v){r=bn(r)?r:ps(r),f=f&&!v?ut(f):0;var x=r.length;return f<0&&(f=Bt(x+f,0)),v0(r)?f<=x&&r.indexOf(a,f)>-1:!!x&&lo(r,a,f)>-1}var T4=st(function(r,a,f){var v=-1,x=typeof a=="function",L=bn(r)?V(r.length):[];return on(r,function(P){L[++v]=x?rn(a,P,f):Yo(P,a,f)}),L}),P4=as(function(r,a,f){qn(r,f,a)});function d0(r,a){var f=lt(r)?_t:ta;return f(r,Re(a,3))}function E4(r,a,f,v){return r==null?[]:(lt(a)||(a=a==null?[]:[a]),f=v?l:f,lt(f)||(f=f==null?[]:[f]),Sr(r,a,f))}var I4=as(function(r,a,f){r[f?0:1].push(a)},function(){return[[],[]]});function A4(r,a,f){var v=lt(r)?Fs:Gs,x=arguments.length<3;return v(r,Re(a,4),f,x,on)}function D4(r,a,f){var v=lt(r)?f1:Gs,x=arguments.length<3;return v(r,Re(a,4),f,x,Gl)}function $4(r,a){var f=lt(r)?_i:lu;return f(r,p0(Re(a,3)))}function N4(r){var a=lt(r)?Ul:$1;return a(r)}function R4(r,a,f){(f?y(r,a,f):a===l)?a=1:a=ut(a);var v=lt(r)?Fi:Gi;return v(r,a)}function H4(r){var a=lt(r)?Ec:li;return a(r)}function B4(r){if(r==null)return 0;if(bn(r))return v0(r)?uo(r):r.length;var a=kr(r);return a==Yt||a==et?r.size:Ql(r).length}function F4(r,a,f){var v=lt(r)?ao:N1;return f&&y(r,a,f)&&(a=l),v(r,Re(a,3))}var W4=st(function(r,a){if(r==null)return[];var f=a.length;return f>1&&y(r,a[0],a[1])?a=[]:f>2&&y(a[0],a[1],a[2])&&(a=[a[0]]),Sr(r,xr(a,1),[])}),f0=y1||function(){return Ht.Date.now()};function U4(r,a){if(typeof a!="function")throw new jr(m);return r=ut(r),function(){if(--r<1)return a.apply(this,arguments)}}function nf(r,a,f){return a=f?l:a,a=r&&a==null?r.length:a,vn(r,Ie,l,l,l,l,a)}function of(r,a){var f;if(typeof a!="function")throw new jr(m);return r=ut(r),function(){return--r>0&&(f=a.apply(this,arguments)),r<=1&&(a=l),f}}var Z1=st(function(r,a,f){var v=ge;if(f.length){var x=ki(f,sa(Z1));v|=ke}return vn(r,v,a,f,x)}),af=st(function(r,a,f){var v=ge|Me;if(f.length){var x=ki(f,sa(af));v|=ke}return vn(a,v,r,f,x)});function lf(r,a,f){a=f?l:a;var v=vn(r,pe,l,l,l,l,l,a);return v.placeholder=lf.placeholder,v}function sf(r,a,f){a=f?l:a;var v=vn(r,de,l,l,l,l,l,a);return v.placeholder=sf.placeholder,v}function uf(r,a,f){var v,x,L,P,D,F,ne=0,ie=!1,se=!1,ze=!0;if(typeof r!="function")throw new jr(m);a=Yn(a)||0,Kt(f)&&(ie=!!f.leading,se="maxWait"in f,L=se?Bt(Yn(f.maxWait)||0,a):L,ze="trailing"in f?!!f.trailing:ze);function $e(lr){var fi=v,ko=x;return v=x=l,ne=lr,P=r.apply(ko,fi),P}function Ge(lr){return ne=lr,D=kt(pt,a),ie?$e(lr):P}function ct(lr){var fi=lr-F,ko=lr-ne,kf=a-fi;return se?mr(kf,L-ko):kf}function Ve(lr){var fi=lr-F,ko=lr-ne;return F===l||fi>=a||fi<0||se&&ko>=L}function pt(){var lr=f0();if(Ve(lr))return vt(lr);D=kt(pt,ct(lr))}function vt(lr){return D=l,ze&&v?$e(lr):(v=x=l,P)}function Dn(){D!==l&&na(D),ne=0,v=F=x=D=l}function sn(){return D===l?P:vt(f0())}function $n(){var lr=f0(),fi=Ve(lr);if(v=arguments,x=this,F=lr,fi){if(D===l)return Ge(F);if(se)return na(D),D=kt(pt,a),$e(F)}return D===l&&(D=kt(pt,a)),P}return $n.cancel=Dn,$n.flush=sn,$n}var Z4=st(function(r,a){return Dc(r,1,a)}),G4=st(function(r,a,f){return Dc(r,Yn(a)||0,f)});function V4(r){return vn(r,je)}function h0(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new jr(m);var f=function(){var v=arguments,x=a?a.apply(this,v):v[0],L=f.cache;if(L.has(x))return L.get(x);var P=r.apply(this,v);return f.cache=L.set(x,P)||L,P};return f.cache=new(h0.Cache||qt),f}h0.Cache=qt;function p0(r){if(typeof r!="function")throw new jr(m);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function q4(r){return of(2,r)}var K4=R1(function(r,a){a=a.length==1&<(a[0])?_t(a[0],Rr(Re())):_t(xr(a,1),Rr(Re()));var f=a.length;return st(function(v){for(var x=-1,L=mr(v.length,f);++x<L;)v[x]=a[x].call(this,v[x]);return rn(r,this,v)})}),G1=st(function(r,a){var f=ki(a,sa(G1));return vn(r,ke,l,a,f)}),cf=st(function(r,a){var f=ki(a,sa(cf));return vn(r,Pe,l,a,f)}),j4=ui(function(r,a){return vn(r,qe,l,l,l,a)});function Y4(r,a){if(typeof r!="function")throw new jr(m);return a=a===l?a:ut(a),st(r,a)}function X4(r,a){if(typeof r!="function")throw new jr(m);return a=a==null?0:Bt(ut(a),0),st(function(f){var v=f[a],x=Vi(f,0,a);return v&&Si(x,v),rn(r,this,x)})}function Q4(r,a,f){var v=!0,x=!0;if(typeof r!="function")throw new jr(m);return Kt(f)&&(v="leading"in f?!!f.leading:v,x="trailing"in f?!!f.trailing:x),uf(r,a,{leading:v,maxWait:a,trailing:x})}function J4(r){return nf(r,1)}function e5(r,a){return G1(ns(a),r)}function t5(){if(!arguments.length)return[];var r=arguments[0];return lt(r)?r:[r]}function r5(r){return Br(r,Z)}function n5(r,a){return a=typeof a=="function"?a:l,Br(r,Z,a)}function i5(r){return Br(r,B|Z)}function o5(r,a){return a=typeof a=="function"?a:l,Br(r,B|Z,a)}function a5(r,a){return a==null||Ac(r,a,Ir(a))}function di(r,a){return r===a||r!==r&&a!==a}var l5=Mt(jl),s5=Mt(function(r,a){return r>=a}),il=Xo(function(){return arguments}())?Xo:function(r){return Qt(r)&&tt.call(r,"callee")&&!Rl.call(r,"callee")},lt=V.isArray,u5=sc?Rr(sc):I1;function bn(r){return r!=null&&g0(r.length)&&!So(r)}function ar(r){return Qt(r)&&bn(r)}function c5(r){return r===!0||r===!1||Qt(r)&&dr(r)==We}var fa=Ra||rd,d5=uc?Rr(uc):Qo;function f5(r){return Qt(r)&&r.nodeType===1&&!_u(r)}function h5(r){if(r==null)return!0;if(bn(r)&&(lt(r)||typeof r=="string"||typeof r.splice=="function"||fa(r)||hs(r)||il(r)))return!r.length;var a=kr(r);if(a==Yt||a==et)return!r.size;if(q(r))return!Ql(r).length;for(var f in r)if(tt.call(r,f))return!1;return!0}function p5(r,a){return Jo(r,a)}function g5(r,a,f){f=typeof f=="function"?f:l;var v=f?f(r,a):l;return v===l?Jo(r,a,l,f):!!v}function V1(r){if(!Qt(r))return!1;var a=dr(r);return a==Be||a==it||typeof r.message=="string"&&typeof r.name=="string"&&!_u(r)}function v5(r){return typeof r=="number"&&_c(r)}function So(r){if(!Kt(r))return!1;var a=dr(r);return a==Rt||a==Ar||a==He||a==Gr}function df(r){return typeof r=="number"&&r==ut(r)}function g0(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function Kt(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function Qt(r){return r!=null&&typeof r=="object"}var ff=cc?Rr(cc):Hc;function b5(r,a){return r===a||Co(r,a,ua(a))}function m5(r,a,f){return f=typeof f=="function"?f:l,Co(r,a,ua(a),f)}function y5(r){return hf(r)&&r!=+r}function C5(r){if($(r))throw new Je(g);return ea(r)}function w5(r){return r===null}function x5(r){return r==null}function hf(r){return typeof r=="number"||Qt(r)&&dr(r)==Ke}function _u(r){if(!Qt(r)||dr(r)!=wt)return!1;var a=Wo(r);if(a===null)return!0;var f=tt.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Un.call(f)==b1}var q1=dc?Rr(dc):qa;function z5(r){return df(r)&&r>=-rt&&r<=rt}var pf=Rs?Rr(Rs):Ka;function v0(r){return typeof r=="string"||!lt(r)&&Qt(r)&&dr(r)==W}function An(r){return typeof r=="symbol"||Qt(r)&&dr(r)==ae}var hs=Hs?Rr(Hs):Bc;function L5(r){return r===l}function _5(r){return Qt(r)&&kr(r)==Ye}function S5(r){return Qt(r)&&dr(r)==tr}var M5=Mt(Zi),k5=Mt(function(r,a){return r<=a});function gf(r){if(!r)return[];if(bn(r))return v0(r)?fn(r):fr(r);if(Ii&&r[Ii])return vc(r[Ii]());var a=kr(r),f=a==Yt?Il:a==et?Al:ps;return f(r)}function Mo(r){if(!r)return r===0?r:0;if(r=Yn(r),r===me||r===-me){var a=r<0?-1:1;return a*Lt}return r===r?r:0}function ut(r){var a=Mo(r),f=a%1;return a===a?f?a-f:a:0}function vf(r){return r?mo(ut(r),0,It):0}function Yn(r){if(typeof r=="number")return r;if(An(r))return jt;if(Kt(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=Kt(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=Aa(r);var f=Sn.test(r);return f||en.test(r)?u1(r.slice(2),f?2:8):Do.test(r)?jt:+r}function bf(r){return Yr(r,mn(r))}function O5(r){return r?mo(ut(r),-rt,rt):r===0?r:0}function Ot(r){return r==null?"":Mr(r)}var T5=ia(function(r,a){if(q(a)||bn(a)){Yr(a,Ir(a),r);return}for(var f in a)tt.call(a,f)&&Za(r,f,a[f])}),mf=ia(function(r,a){Yr(a,mn(a),r)}),b0=ia(function(r,a,f,v){Yr(a,mn(a),r,v)}),P5=ia(function(r,a,f,v){Yr(a,Ir(a),r,v)}),E5=ui(ou);function I5(r,a){var f=Gn(r);return a==null?f:iu(f,a)}var A5=st(function(r,a){r=gt(r);var f=-1,v=a.length,x=v>2?a[2]:l;for(x&&y(a[0],a[1],x)&&(v=1);++f<v;)for(var L=a[f],P=mn(L),D=-1,F=P.length;++D<F;){var ne=P[D],ie=r[ne];(ie===l||di(ie,Pi[ne])&&!tt.call(r,ne))&&(r[ne]=L[ne])}return r}),D5=st(function(r){return r.push(l,wu),rn(yf,l,r)});function $5(r,a){return Ho(r,Re(a,3),an)}function N5(r,a){return Ho(r,Re(a,3),Kl)}function R5(r,a){return r==null?r:ql(r,Re(a,3),mn)}function H5(r,a){return r==null?r:cr(r,Re(a,3),mn)}function B5(r,a){return r&&an(r,Re(a,3))}function F5(r,a){return r&&Kl(r,Re(a,3))}function W5(r){return r==null?[]:Va(r,Ir(r))}function U5(r){return r==null?[]:Va(r,mn(r))}function K1(r,a,f){var v=r==null?l:Wi(r,a);return v===l?f:v}function Z5(r,a){return r!=null&&t(r,a,$c)}function j1(r,a){return r!=null&&t(r,a,Nc)}var G5=xo(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=co.call(a)),r[a]=f},X1(yn)),V5=xo(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=co.call(a)),tt.call(r,a)?r[a].push(f):r[a]=[f]},Re),q5=st(Yo);function Ir(r){return bn(r)?ru(r):Ql(r)}function mn(r){return bn(r)?ru(r,!0):Ui(r)}function K5(r,a){var f={};return a=Re(a,3),an(r,function(v,x,L){qn(f,a(v,x,L),v)}),f}function j5(r,a){var f={};return a=Re(a,3),an(r,function(v,x,L){qn(f,x,a(v,x,L))}),f}var Y5=ia(function(r,a,f){Jl(r,a,f)}),yf=ia(function(r,a,f,v){Jl(r,a,f,v)}),X5=ui(function(r,a){var f={};if(r==null)return f;var v=!1;a=_t(a,function(L){return L=In(L,r),v||(v=L.length>1),L}),Yr(r,us(r),f),v&&(f=Br(f,B|U|Z,a0));for(var x=a.length;x--;)Xa(f,a[x]);return f});function Q5(r,a){return Cf(r,p0(Re(a)))}var J5=ui(function(r,a){return r==null?{}:Zc(r,a)});function Cf(r,a){if(r==null)return{};var f=_t(us(r),function(v){return[v]});return a=Re(a),Gc(r,f,function(v,x){return a(v,x[0])})}function e6(r,a,f){a=In(a,r);var v=-1,x=a.length;for(x||(x=1,r=l);++v<x;){var L=r==null?l:r[St(a[v])];L===l&&(v=x,L=f),r=So(L)?L.call(r):L}return r}function t6(r,a,f){return r==null?r:ai(r,a,f)}function r6(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:ai(r,a,f,v)}var wf=gn(Ir),xf=gn(mn);function n6(r,a,f){var v=lt(r),x=v||fa(r)||hs(r);if(a=Re(a,4),f==null){var L=r&&r.constructor;x?f=v?new L:[]:Kt(r)?f=So(L)?Gn(Wo(r)):{}:f={}}return(x?dn:an)(r,function(P,D,F){return a(f,P,D,F)}),f}function i6(r,a){return r==null?!0:Xa(r,a)}function o6(r,a,f){return r==null?r:rs(r,a,ns(f))}function a6(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:rs(r,a,ns(f),v)}function ps(r){return r==null?[]:Pl(r,Ir(r))}function l6(r){return r==null?[]:Pl(r,mn(r))}function s6(r,a,f){return f===l&&(f=a,a=l),f!==l&&(f=Yn(f),f=f===f?f:0),a!==l&&(a=Yn(a),a=a===a?a:0),mo(Yn(r),a,f)}function u6(r,a,f){return a=Mo(a),f===l?(f=a,a=0):f=Mo(f),r=Yn(r),jo(r,a,f)}function c6(r,a,f){if(f&&typeof f!="boolean"&&y(r,a,f)&&(a=f=l),f===l&&(typeof a=="boolean"?(f=a,a=l):typeof r=="boolean"&&(f=r,r=l)),r===l&&a===l?(r=0,a=1):(r=Mo(r),a===l?(a=r,r=0):a=Mo(a)),r>a){var v=r;r=a,a=v}if(f||r%1||a%1){var x=$i();return mr(r+x*(a-r+s1("1e-"+((x+"").length-1))),a)}return es(r,a)}var d6=oa(function(r,a,f){return a=a.toLowerCase(),r+(f?zf(a):a)});function zf(r){return Y1(Ot(r).toLowerCase())}function Lf(r){return r=Ot(r),r&&r.replace(Sa,pc).replace(nc,"")}function f6(r,a,f){r=Ot(r),a=Mr(a);var v=r.length;f=f===l?v:mo(ut(f),0,v);var x=f;return f-=a.length,f>=0&&r.slice(f,x)==a}function h6(r){return r=Ot(r),r&&Qr.test(r)?r.replace(ur,v1):r}function p6(r){return r=Ot(r),r&&Rn.test(r)?r.replace(ro,"\\$&"):r}var g6=oa(function(r,a,f){return r+(f?"-":"")+a.toLowerCase()}),v6=oa(function(r,a,f){return r+(f?" ":"")+a.toLowerCase()}),b6=r0("toLowerCase");function m6(r,a,f){r=Ot(r),a=ut(a);var v=a?uo(r):0;if(!a||v>=a)return r;var x=(a-v)/2;return ls(Go(x),f)+r+ls(Zo(x),f)}function y6(r,a,f){r=Ot(r),a=ut(a);var v=a?uo(r):0;return a&&v<a?r+ls(a-v,f):r}function C6(r,a,f){r=Ot(r),a=ut(a);var v=a?uo(r):0;return a&&v<a?ls(a-v,f)+r:r}function w6(r,a,f){return f||a==null?a=0:a&&(a=+a),Ha(Ot(r).replace(no,""),a||0)}function x6(r,a,f){return(f?y(r,a,f):a===l)?a=1:a=ut(a),du(Ot(r),a)}function z6(){var r=arguments,a=Ot(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var L6=oa(function(r,a,f){return r+(f?"_":"")+a.toLowerCase()});function _6(r,a,f){return f&&typeof f!="number"&&y(r,a,f)&&(a=f=l),f=f===l?It:f>>>0,f?(r=Ot(r),r&&(typeof a=="string"||a!=null&&!q1(a))&&(a=Mr(a),!a&&Tn(r))?Vi(fn(r),0,f):r.split(a,f)):[]}var S6=oa(function(r,a,f){return r+(f?" ":"")+Y1(a)});function M6(r,a,f){return r=Ot(r),f=f==null?0:mo(ut(f),0,r.length),a=Mr(a),r.slice(f,f+a.length)==a}function k6(r,a,f){var v=z.templateSettings;f&&y(r,a,f)&&(a=l),r=Ot(r),a=b0({},a,v,ss);var x=b0({},a.imports,v.imports,ss),L=Ir(x),P=Pl(x,L),D,F,ne=0,ie=a.interpolate||Dt,se="__p += '",ze=Ti((a.escape||Dt).source+"|"+ie.source+"|"+(ie===xa?ti:Dt).source+"|"+(a.evaluate||Dt).source+"|$","g"),$e="//# sourceURL="+(tt.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ns+"]")+`
|
|
1579
|
+
`)}function p(r){return lt(r)||il(r)||!!(po&&r&&r[po])}function b(r,a){var f=typeof r;return a=a==null?rt:a,!!a&&(f=="number"||f!="symbol"&&_a.test(r))&&r>-1&&r%1==0&&r<a}function y(r,a,f){if(!Kt(f))return!1;var v=typeof a;return(v=="number"?bn(f)&&b(a,f.length):v=="string"&&a in f)?di(f[a],r):!1}function C(r,a){if(lt(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||An(r)?!0:$r.test(r)||!za.test(r)||a!=null&&r in gt(a)}function _(r){var a=typeof r;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?r!=="__proto__":r===null}function M(r){var a=nl(r),f=z[a];if(typeof f!="function"||!(a in ft.prototype))return!1;if(r===f)return!0;var v=yt(f);return!!v&&r===v[0]}function N(r){return!!ii&&ii in r}var $=Wn?Mo:rd;function q(r){var a=r&&r.constructor,f=typeof a=="function"&&a.prototype||Pi;return r===f}function te(r){return r===r&&!Kt(r)}function ue(r,a){return function(f){return f==null?!1:f[r]===a&&(a!==l||r in gt(f))}}function fe(r){var a=h0(r,function(v){return f.size===k&&f.clear(),v}),f=a.cache;return a}function we(r,a){var f=r[1],v=a[1],x=f|v,L=x<(ge|Me|Ie),P=v==Ie&&f==pe||v==Ie&&f==qe&&r[7].length<=a[8]||v==(Ie|qe)&&a[7].length<=a[8]&&f==pe;if(!(L||P))return r;v&ge&&(r[2]=a[2],x|=f&ge?0:Te);var D=a[3];if(D){var F=r[3];r[3]=F?Xc(F,D,a[4]):D,r[4]=F?ki(r[3],A):a[4]}return D=a[5],D&&(F=r[5],r[5]=F?os(F,D,a[6]):D,r[6]=F?ki(r[5],A):a[6]),D=a[7],D&&(r[7]=D),v&Ie&&(r[8]=r[8]==null?a[8]:mr(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=x,r}function he(r){var a=[];if(r!=null)for(var f in gt(r))a.push(f);return a}function xe(r){return fo.call(r)}function De(r,a,f){return a=Bt(a===l?r.length-1:a,0),function(){for(var v=arguments,x=-1,L=Bt(v.length-a,0),P=V(L);++x<L;)P[x]=v[a+x];x=-1;for(var D=V(a+1);++x<a;)D[x]=v[x];return D[a]=f(P),rn(r,this,D)}}function Ee(r,a){return a.length<2?r:Wi(r,pn(a,0,-1))}function ot(r,a){for(var f=r.length,v=mr(a.length,f),x=fr(r);v--;){var L=a[v];r[v]=b(L,f)?x[L]:l}return r}function xt(r,a){if(!(a==="constructor"&&typeof r[a]=="function")&&a!="__proto__")return r[a]}var Xt=Gt(ja),kt=C1||function(r,a){return Ht.setTimeout(r,a)},Or=Gt(Ya);function Tr(r,a,f){var v=a+"";return Or(r,h(v,Wt(e(v),f)))}function Gt(r){var a=0,f=0;return function(){var v=vo(),x=G-(v-f);if(f=v,x>0){if(++a>=Qe)return arguments[0]}else a=0;return r.apply(l,arguments)}}function hr(r,a){var f=-1,v=r.length,x=v-1;for(a=a===l?v:a;++f<a;){var L=es(f,x),P=r[L];r[L]=r[f],r[f]=P}return r.length=a,r}var ir=fe(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(bl,function(f,v,x,L){a.push(x?L.replace(Cl,"$1"):v||f)}),a});function St(r){if(typeof r=="string"||An(r))return r;var a=r+"";return a=="0"&&1/r==-me?"-0":a}function Pt(r){if(r!=null){try{return Un.call(r)}catch{}try{return r+""}catch{}}return""}function Wt(r,a){return dn(At,function(f){var v="_."+f[0];a&f[1]&&!Ia(r,v)&&r.push(v)}),r.sort()}function Pr(r){if(r instanceof ft)return r.clone();var a=new Hr(r.__wrapped__,r.__chain__);return a.__actions__=fr(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}function ca(r,a,f){(f?y(r,a,f):a===l)?a=1:a=Bt(ut(a),0);var v=r==null?0:r.length;if(!v||a<1)return[];for(var x=0,L=0,P=V(Zo(v/a));x<v;)P[L++]=pn(r,x,x+=a);return P}function qi(r){for(var a=-1,f=r==null?0:r.length,v=0,x=[];++a<f;){var L=r[a];L&&(x[v++]=L)}return x}function zr(){var r=arguments.length;if(!r)return[];for(var a=V(r-1),f=arguments[0],v=r;v--;)a[v-1]=arguments[v];return Si(lt(f)?fr(f):[f],xr(a,1))}var Kn=st(function(r,a){return ar(r)?Ko(r,xr(a,1,ar,!0)):[]}),or=st(function(r,a){var f=jn(a);return ar(f)&&(f=l),ar(r)?Ko(r,xr(a,1,ar,!0),Re(f,2)):[]}),Lu=st(function(r,a){var f=jn(a);return ar(f)&&(f=l),ar(r)?Ko(r,xr(a,1,ar,!0),l,f):[]});function ci(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),pn(r,a<0?0:a,v)):[]}function _o(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,pn(r,0,a<0?0:a)):[]}function So(r,a){return r&&r.length?ra(r,Re(a,3),!0,!0):[]}function Er(r,a){return r&&r.length?ra(r,Re(a,3),!0):[]}function da(r,a,f,v){var x=r==null?0:r.length;return x?(f&&typeof f!="number"&&y(r,a,f)&&(f=0,v=x),au(r,a,f,v)):[]}function fs(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),Ol(r,Re(a,3),x)}function Kd(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v-1;return f!==l&&(x=ut(f),x=f<0?Bt(v+x,0):mr(x,v-1)),Ol(r,Re(a,3),x,!0)}function jd(r){var a=r==null?0:r.length;return a?xr(r,1):[]}function y2(r){var a=r==null?0:r.length;return a?xr(r,me):[]}function C2(r,a){var f=r==null?0:r.length;return f?(a=a===l?1:ut(a),xr(r,a)):[]}function w2(r){for(var a=-1,f=r==null?0:r.length,v={};++a<f;){var x=r[a];v[x[0]]=x[1]}return v}function Yd(r){return r&&r.length?r[0]:l}function x2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),so(r,a,x)}function z2(r){var a=r==null?0:r.length;return a?pn(r,0,-1):[]}var L2=st(function(r){var a=_t(r,gu);return a.length&&a[0]===r[0]?Yl(a):[]}),_2=st(function(r){var a=jn(r),f=_t(r,gu);return a===jn(f)?a=l:f.pop(),f.length&&f[0]===r[0]?Yl(f,Re(a,2)):[]}),S2=st(function(r){var a=jn(r),f=_t(r,gu);return a=typeof a=="function"?a:l,a&&f.pop(),f.length&&f[0]===r[0]?Yl(f,l,a):[]});function M2(r,a){return r==null?"":Hl.call(r,a)}function jn(r){var a=r==null?0:r.length;return a?r[a-1]:l}function k2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v;return f!==l&&(x=ut(f),x=x<0?Bt(v+x,0):mr(x,v-1)),a===a?Da(r,a,x):Ol(r,Tl,x,!0)}function O2(r,a){return r&&r.length?Uc(r,ut(a)):l}var T2=st(Xd);function Xd(r,a){return r&&r.length&&a&&a.length?uu(r,a):r}function P2(r,a,f){return r&&r.length&&a&&a.length?uu(r,a,Re(f,2)):r}function E2(r,a,f){return r&&r.length&&a&&a.length?uu(r,a,l,f):r}var I2=ui(function(r,a){var f=r==null?0:r.length,v=ou(r,a);return cu(r,_t(a,function(x){return b(x,f)?+x:x}).sort(mu)),v});function A2(r,a){var f=[];if(!(r&&r.length))return f;var v=-1,x=[],L=r.length;for(a=Re(a,3);++v<L;){var P=r[v];a(P,v,r)&&(f.push(P),x.push(v))}return cu(r,x),f}function W1(r){return r==null?r:Ba.call(r)}function D2(r,a,f){var v=r==null?0:r.length;return v?(f&&typeof f!="number"&&y(r,a,f)?(a=0,f=v):(a=a==null?0:ut(a),f=f===l?v:ut(f)),pn(r,a,f)):[]}function $2(r,a){return si(r,a)}function N2(r,a,f){return ts(r,a,Re(f,2))}function R2(r,a){var f=r==null?0:r.length;if(f){var v=si(r,a);if(v<f&&di(r[v],a))return v}return-1}function H2(r,a){return si(r,a,!0)}function B2(r,a,f){return ts(r,a,Re(f,2),!0)}function F2(r,a){var f=r==null?0:r.length;if(f){var v=si(r,a,!0)-1;if(di(r[v],a))return v}return-1}function W2(r){return r&&r.length?fu(r):[]}function U2(r,a){return r&&r.length?fu(r,Re(a,2)):[]}function Z2(r){var a=r==null?0:r.length;return a?pn(r,1,a):[]}function G2(r,a,f){return r&&r.length?(a=f||a===l?1:ut(a),pn(r,0,a<0?0:a)):[]}function V2(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,pn(r,a<0?0:a,v)):[]}function q2(r,a){return r&&r.length?ra(r,Re(a,3),!1,!0):[]}function K2(r,a){return r&&r.length?ra(r,Re(a,3)):[]}var j2=st(function(r){return ln(xr(r,1,ar,!0))}),Y2=st(function(r){var a=jn(r);return ar(a)&&(a=l),ln(xr(r,1,ar,!0),Re(a,2))}),X2=st(function(r){var a=jn(r);return a=typeof a=="function"?a:l,ln(xr(r,1,ar,!0),l,a)});function Q2(r){return r&&r.length?ln(r):[]}function J2(r,a){return r&&r.length?ln(r,Re(a,2)):[]}function e4(r,a){return a=typeof a=="function"?a:l,r&&r.length?ln(r,l,a):[]}function U1(r){if(!(r&&r.length))return[];var a=0;return r=_i(r,function(f){if(ar(f))return a=Bt(f.length,a),!0}),uo(a,function(f){return _t(r,Us(f))})}function Qd(r,a){if(!(r&&r.length))return[];var f=U1(r);return a==null?f:_t(f,function(v){return rn(a,l,v)})}var t4=st(function(r,a){return ar(r)?Ko(r,a):[]}),r4=st(function(r){return xo(_i(r,ar))}),n4=st(function(r){var a=jn(r);return ar(a)&&(a=l),xo(_i(r,ar),Re(a,2))}),i4=st(function(r){var a=jn(r);return a=typeof a=="function"?a:l,xo(_i(r,ar),l,a)}),o4=st(U1);function a4(r,a){return pu(r||[],a||[],Za)}function l4(r,a){return pu(r||[],a||[],ai)}var s4=st(function(r){var a=r.length,f=a>1?r[a-1]:l;return f=typeof f=="function"?(r.pop(),f):l,Qd(r,f)});function Jd(r){var a=z(r);return a.__chain__=!0,a}function u4(r,a){return a(r),r}function c0(r,a){return a(r)}var c4=ui(function(r){var a=r.length,f=a?r[0]:0,v=this.__wrapped__,x=function(L){return ou(L,r)};return a>1||this.__actions__.length||!(v instanceof ft)||!b(f)?this.thru(x):(v=v.slice(f,+f+(a?1:0)),v.__actions__.push({func:c0,args:[x],thisArg:l}),new Hr(v,this.__chain__).thru(function(L){return a&&!L.length&&L.push(l),L}))});function d4(){return Jd(this)}function f4(){return new Hr(this.value(),this.__chain__)}function h4(){this.__values__===l&&(this.__values__=pf(this.value()));var r=this.__index__>=this.__values__.length,a=r?l:this.__values__[this.__index__++];return{done:r,value:a}}function p4(){return this}function g4(r){for(var a,f=this;f instanceof Fl;){var v=Pr(f);v.__index__=0,v.__values__=l,a?x.__wrapped__=v:a=v;var x=v;f=f.__wrapped__}return x.__wrapped__=r,a}function v4(){var r=this.__wrapped__;if(r instanceof ft){var a=r;return this.__actions__.length&&(a=new ft(this)),a=a.reverse(),a.__actions__.push({func:c0,args:[W1],thisArg:l}),new Hr(a,this.__chain__)}return this.thru(W1)}function b4(){return qc(this.__wrapped__,this.__actions__)}var m4=as(function(r,a,f){tt.call(r,f)?++r[f]:qn(r,f,1)});function y4(r,a,f){var v=lt(r)?Bs:Vl;return f&&y(r,a,f)&&(a=l),v(r,Re(a,3))}function C4(r,a){var f=lt(r)?_i:lu;return f(r,Re(a,3))}var w4=Cu(fs),x4=Cu(Kd);function z4(r,a){return xr(d0(r,a),1)}function L4(r,a){return xr(d0(r,a),me)}function _4(r,a,f){return f=f===l?1:ut(f),xr(d0(r,a),f)}function ef(r,a){var f=lt(r)?dn:on;return f(r,Re(a,3))}function tf(r,a){var f=lt(r)?d1:Gl;return f(r,Re(a,3))}var S4=as(function(r,a,f){tt.call(r,f)?r[f].push(a):qn(r,f,[a])});function M4(r,a,f,v){r=bn(r)?r:ps(r),f=f&&!v?ut(f):0;var x=r.length;return f<0&&(f=Bt(x+f,0)),v0(r)?f<=x&&r.indexOf(a,f)>-1:!!x&&so(r,a,f)>-1}var k4=st(function(r,a,f){var v=-1,x=typeof a=="function",L=bn(r)?V(r.length):[];return on(r,function(P){L[++v]=x?rn(a,P,f):Yo(P,a,f)}),L}),O4=as(function(r,a,f){qn(r,f,a)});function d0(r,a){var f=lt(r)?_t:ta;return f(r,Re(a,3))}function T4(r,a,f,v){return r==null?[]:(lt(a)||(a=a==null?[]:[a]),f=v?l:f,lt(f)||(f=f==null?[]:[f]),Sr(r,a,f))}var P4=as(function(r,a,f){r[f?0:1].push(a)},function(){return[[],[]]});function E4(r,a,f){var v=lt(r)?Fs:Gs,x=arguments.length<3;return v(r,Re(a,4),f,x,on)}function I4(r,a,f){var v=lt(r)?f1:Gs,x=arguments.length<3;return v(r,Re(a,4),f,x,Gl)}function A4(r,a){var f=lt(r)?_i:lu;return f(r,p0(Re(a,3)))}function D4(r){var a=lt(r)?Ul:$1;return a(r)}function $4(r,a,f){(f?y(r,a,f):a===l)?a=1:a=ut(a);var v=lt(r)?Fi:Gi;return v(r,a)}function N4(r){var a=lt(r)?Ec:li;return a(r)}function R4(r){if(r==null)return 0;if(bn(r))return v0(r)?co(r):r.length;var a=kr(r);return a==Yt||a==et?r.size:Ql(r).length}function H4(r,a,f){var v=lt(r)?lo:N1;return f&&y(r,a,f)&&(a=l),v(r,Re(a,3))}var B4=st(function(r,a){if(r==null)return[];var f=a.length;return f>1&&y(r,a[0],a[1])?a=[]:f>2&&y(a[0],a[1],a[2])&&(a=[a[0]]),Sr(r,xr(a,1),[])}),f0=y1||function(){return Ht.Date.now()};function F4(r,a){if(typeof a!="function")throw new jr(m);return r=ut(r),function(){if(--r<1)return a.apply(this,arguments)}}function rf(r,a,f){return a=f?l:a,a=r&&a==null?r.length:a,vn(r,Ie,l,l,l,l,a)}function nf(r,a){var f;if(typeof a!="function")throw new jr(m);return r=ut(r),function(){return--r>0&&(f=a.apply(this,arguments)),r<=1&&(a=l),f}}var Z1=st(function(r,a,f){var v=ge;if(f.length){var x=ki(f,sa(Z1));v|=ke}return vn(r,v,a,f,x)}),of=st(function(r,a,f){var v=ge|Me;if(f.length){var x=ki(f,sa(of));v|=ke}return vn(a,v,r,f,x)});function af(r,a,f){a=f?l:a;var v=vn(r,pe,l,l,l,l,l,a);return v.placeholder=af.placeholder,v}function lf(r,a,f){a=f?l:a;var v=vn(r,de,l,l,l,l,l,a);return v.placeholder=lf.placeholder,v}function sf(r,a,f){var v,x,L,P,D,F,ne=0,ie=!1,se=!1,ze=!0;if(typeof r!="function")throw new jr(m);a=Yn(a)||0,Kt(f)&&(ie=!!f.leading,se="maxWait"in f,L=se?Bt(Yn(f.maxWait)||0,a):L,ze="trailing"in f?!!f.trailing:ze);function $e(lr){var fi=v,Oo=x;return v=x=l,ne=lr,P=r.apply(Oo,fi),P}function Ge(lr){return ne=lr,D=kt(pt,a),ie?$e(lr):P}function ct(lr){var fi=lr-F,Oo=lr-ne,Mf=a-fi;return se?mr(Mf,L-Oo):Mf}function Ve(lr){var fi=lr-F,Oo=lr-ne;return F===l||fi>=a||fi<0||se&&Oo>=L}function pt(){var lr=f0();if(Ve(lr))return vt(lr);D=kt(pt,ct(lr))}function vt(lr){return D=l,ze&&v?$e(lr):(v=x=l,P)}function Dn(){D!==l&&na(D),ne=0,v=F=x=D=l}function sn(){return D===l?P:vt(f0())}function $n(){var lr=f0(),fi=Ve(lr);if(v=arguments,x=this,F=lr,fi){if(D===l)return Ge(F);if(se)return na(D),D=kt(pt,a),$e(F)}return D===l&&(D=kt(pt,a)),P}return $n.cancel=Dn,$n.flush=sn,$n}var W4=st(function(r,a){return Dc(r,1,a)}),U4=st(function(r,a,f){return Dc(r,Yn(a)||0,f)});function Z4(r){return vn(r,je)}function h0(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new jr(m);var f=function(){var v=arguments,x=a?a.apply(this,v):v[0],L=f.cache;if(L.has(x))return L.get(x);var P=r.apply(this,v);return f.cache=L.set(x,P)||L,P};return f.cache=new(h0.Cache||qt),f}h0.Cache=qt;function p0(r){if(typeof r!="function")throw new jr(m);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function G4(r){return nf(2,r)}var V4=R1(function(r,a){a=a.length==1&<(a[0])?_t(a[0],Rr(Re())):_t(xr(a,1),Rr(Re()));var f=a.length;return st(function(v){for(var x=-1,L=mr(v.length,f);++x<L;)v[x]=a[x].call(this,v[x]);return rn(r,this,v)})}),G1=st(function(r,a){var f=ki(a,sa(G1));return vn(r,ke,l,a,f)}),uf=st(function(r,a){var f=ki(a,sa(uf));return vn(r,Pe,l,a,f)}),q4=ui(function(r,a){return vn(r,qe,l,l,l,a)});function K4(r,a){if(typeof r!="function")throw new jr(m);return a=a===l?a:ut(a),st(r,a)}function j4(r,a){if(typeof r!="function")throw new jr(m);return a=a==null?0:Bt(ut(a),0),st(function(f){var v=f[a],x=Vi(f,0,a);return v&&Si(x,v),rn(r,this,x)})}function Y4(r,a,f){var v=!0,x=!0;if(typeof r!="function")throw new jr(m);return Kt(f)&&(v="leading"in f?!!f.leading:v,x="trailing"in f?!!f.trailing:x),sf(r,a,{leading:v,maxWait:a,trailing:x})}function X4(r){return rf(r,1)}function Q4(r,a){return G1(ns(a),r)}function J4(){if(!arguments.length)return[];var r=arguments[0];return lt(r)?r:[r]}function e5(r){return Br(r,Z)}function t5(r,a){return a=typeof a=="function"?a:l,Br(r,Z,a)}function r5(r){return Br(r,B|Z)}function n5(r,a){return a=typeof a=="function"?a:l,Br(r,B|Z,a)}function i5(r,a){return a==null||Ac(r,a,Ir(a))}function di(r,a){return r===a||r!==r&&a!==a}var o5=Mt(jl),a5=Mt(function(r,a){return r>=a}),il=Xo(function(){return arguments}())?Xo:function(r){return Qt(r)&&tt.call(r,"callee")&&!Rl.call(r,"callee")},lt=V.isArray,l5=sc?Rr(sc):I1;function bn(r){return r!=null&&g0(r.length)&&!Mo(r)}function ar(r){return Qt(r)&&bn(r)}function s5(r){return r===!0||r===!1||Qt(r)&&dr(r)==We}var fa=Ra||rd,u5=uc?Rr(uc):Qo;function c5(r){return Qt(r)&&r.nodeType===1&&!_u(r)}function d5(r){if(r==null)return!0;if(bn(r)&&(lt(r)||typeof r=="string"||typeof r.splice=="function"||fa(r)||hs(r)||il(r)))return!r.length;var a=kr(r);if(a==Yt||a==et)return!r.size;if(q(r))return!Ql(r).length;for(var f in r)if(tt.call(r,f))return!1;return!0}function f5(r,a){return Jo(r,a)}function h5(r,a,f){f=typeof f=="function"?f:l;var v=f?f(r,a):l;return v===l?Jo(r,a,l,f):!!v}function V1(r){if(!Qt(r))return!1;var a=dr(r);return a==Be||a==it||typeof r.message=="string"&&typeof r.name=="string"&&!_u(r)}function p5(r){return typeof r=="number"&&_c(r)}function Mo(r){if(!Kt(r))return!1;var a=dr(r);return a==Rt||a==Ar||a==He||a==Gr}function cf(r){return typeof r=="number"&&r==ut(r)}function g0(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function Kt(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function Qt(r){return r!=null&&typeof r=="object"}var df=cc?Rr(cc):Hc;function g5(r,a){return r===a||wo(r,a,ua(a))}function v5(r,a,f){return f=typeof f=="function"?f:l,wo(r,a,ua(a),f)}function b5(r){return ff(r)&&r!=+r}function m5(r){if($(r))throw new Je(g);return ea(r)}function y5(r){return r===null}function C5(r){return r==null}function ff(r){return typeof r=="number"||Qt(r)&&dr(r)==Ke}function _u(r){if(!Qt(r)||dr(r)!=wt)return!1;var a=Wo(r);if(a===null)return!0;var f=tt.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Un.call(f)==b1}var q1=dc?Rr(dc):qa;function w5(r){return cf(r)&&r>=-rt&&r<=rt}var hf=Rs?Rr(Rs):Ka;function v0(r){return typeof r=="string"||!lt(r)&&Qt(r)&&dr(r)==W}function An(r){return typeof r=="symbol"||Qt(r)&&dr(r)==ae}var hs=Hs?Rr(Hs):Bc;function x5(r){return r===l}function z5(r){return Qt(r)&&kr(r)==Ye}function L5(r){return Qt(r)&&dr(r)==tr}var _5=Mt(Zi),S5=Mt(function(r,a){return r<=a});function pf(r){if(!r)return[];if(bn(r))return v0(r)?fn(r):fr(r);if(Ii&&r[Ii])return vc(r[Ii]());var a=kr(r),f=a==Yt?Il:a==et?Al:ps;return f(r)}function ko(r){if(!r)return r===0?r:0;if(r=Yn(r),r===me||r===-me){var a=r<0?-1:1;return a*Lt}return r===r?r:0}function ut(r){var a=ko(r),f=a%1;return a===a?f?a-f:a:0}function gf(r){return r?yo(ut(r),0,It):0}function Yn(r){if(typeof r=="number")return r;if(An(r))return jt;if(Kt(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=Kt(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=Aa(r);var f=Sn.test(r);return f||en.test(r)?u1(r.slice(2),f?2:8):Do.test(r)?jt:+r}function vf(r){return Yr(r,mn(r))}function M5(r){return r?yo(ut(r),-rt,rt):r===0?r:0}function Ot(r){return r==null?"":Mr(r)}var k5=ia(function(r,a){if(q(a)||bn(a)){Yr(a,Ir(a),r);return}for(var f in a)tt.call(a,f)&&Za(r,f,a[f])}),bf=ia(function(r,a){Yr(a,mn(a),r)}),b0=ia(function(r,a,f,v){Yr(a,mn(a),r,v)}),O5=ia(function(r,a,f,v){Yr(a,Ir(a),r,v)}),T5=ui(ou);function P5(r,a){var f=Gn(r);return a==null?f:iu(f,a)}var E5=st(function(r,a){r=gt(r);var f=-1,v=a.length,x=v>2?a[2]:l;for(x&&y(a[0],a[1],x)&&(v=1);++f<v;)for(var L=a[f],P=mn(L),D=-1,F=P.length;++D<F;){var ne=P[D],ie=r[ne];(ie===l||di(ie,Pi[ne])&&!tt.call(r,ne))&&(r[ne]=L[ne])}return r}),I5=st(function(r){return r.push(l,wu),rn(mf,l,r)});function A5(r,a){return Ho(r,Re(a,3),an)}function D5(r,a){return Ho(r,Re(a,3),Kl)}function $5(r,a){return r==null?r:ql(r,Re(a,3),mn)}function N5(r,a){return r==null?r:cr(r,Re(a,3),mn)}function R5(r,a){return r&&an(r,Re(a,3))}function H5(r,a){return r&&Kl(r,Re(a,3))}function B5(r){return r==null?[]:Va(r,Ir(r))}function F5(r){return r==null?[]:Va(r,mn(r))}function K1(r,a,f){var v=r==null?l:Wi(r,a);return v===l?f:v}function W5(r,a){return r!=null&&t(r,a,$c)}function j1(r,a){return r!=null&&t(r,a,Nc)}var U5=zo(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=fo.call(a)),r[a]=f},X1(yn)),Z5=zo(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=fo.call(a)),tt.call(r,a)?r[a].push(f):r[a]=[f]},Re),G5=st(Yo);function Ir(r){return bn(r)?ru(r):Ql(r)}function mn(r){return bn(r)?ru(r,!0):Ui(r)}function V5(r,a){var f={};return a=Re(a,3),an(r,function(v,x,L){qn(f,a(v,x,L),v)}),f}function q5(r,a){var f={};return a=Re(a,3),an(r,function(v,x,L){qn(f,x,a(v,x,L))}),f}var K5=ia(function(r,a,f){Jl(r,a,f)}),mf=ia(function(r,a,f,v){Jl(r,a,f,v)}),j5=ui(function(r,a){var f={};if(r==null)return f;var v=!1;a=_t(a,function(L){return L=In(L,r),v||(v=L.length>1),L}),Yr(r,us(r),f),v&&(f=Br(f,B|U|Z,a0));for(var x=a.length;x--;)Xa(f,a[x]);return f});function Y5(r,a){return yf(r,p0(Re(a)))}var X5=ui(function(r,a){return r==null?{}:Zc(r,a)});function yf(r,a){if(r==null)return{};var f=_t(us(r),function(v){return[v]});return a=Re(a),Gc(r,f,function(v,x){return a(v,x[0])})}function Q5(r,a,f){a=In(a,r);var v=-1,x=a.length;for(x||(x=1,r=l);++v<x;){var L=r==null?l:r[St(a[v])];L===l&&(v=x,L=f),r=Mo(L)?L.call(r):L}return r}function J5(r,a,f){return r==null?r:ai(r,a,f)}function e6(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:ai(r,a,f,v)}var Cf=gn(Ir),wf=gn(mn);function t6(r,a,f){var v=lt(r),x=v||fa(r)||hs(r);if(a=Re(a,4),f==null){var L=r&&r.constructor;x?f=v?new L:[]:Kt(r)?f=Mo(L)?Gn(Wo(r)):{}:f={}}return(x?dn:an)(r,function(P,D,F){return a(f,P,D,F)}),f}function r6(r,a){return r==null?!0:Xa(r,a)}function n6(r,a,f){return r==null?r:rs(r,a,ns(f))}function i6(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:rs(r,a,ns(f),v)}function ps(r){return r==null?[]:Pl(r,Ir(r))}function o6(r){return r==null?[]:Pl(r,mn(r))}function a6(r,a,f){return f===l&&(f=a,a=l),f!==l&&(f=Yn(f),f=f===f?f:0),a!==l&&(a=Yn(a),a=a===a?a:0),yo(Yn(r),a,f)}function l6(r,a,f){return a=ko(a),f===l?(f=a,a=0):f=ko(f),r=Yn(r),jo(r,a,f)}function s6(r,a,f){if(f&&typeof f!="boolean"&&y(r,a,f)&&(a=f=l),f===l&&(typeof a=="boolean"?(f=a,a=l):typeof r=="boolean"&&(f=r,r=l)),r===l&&a===l?(r=0,a=1):(r=ko(r),a===l?(a=r,r=0):a=ko(a)),r>a){var v=r;r=a,a=v}if(f||r%1||a%1){var x=$i();return mr(r+x*(a-r+s1("1e-"+((x+"").length-1))),a)}return es(r,a)}var u6=oa(function(r,a,f){return a=a.toLowerCase(),r+(f?xf(a):a)});function xf(r){return Y1(Ot(r).toLowerCase())}function zf(r){return r=Ot(r),r&&r.replace(Sa,pc).replace(nc,"")}function c6(r,a,f){r=Ot(r),a=Mr(a);var v=r.length;f=f===l?v:yo(ut(f),0,v);var x=f;return f-=a.length,f>=0&&r.slice(f,x)==a}function d6(r){return r=Ot(r),r&&Qr.test(r)?r.replace(ur,v1):r}function f6(r){return r=Ot(r),r&&Rn.test(r)?r.replace(no,"\\$&"):r}var h6=oa(function(r,a,f){return r+(f?"-":"")+a.toLowerCase()}),p6=oa(function(r,a,f){return r+(f?" ":"")+a.toLowerCase()}),g6=r0("toLowerCase");function v6(r,a,f){r=Ot(r),a=ut(a);var v=a?co(r):0;if(!a||v>=a)return r;var x=(a-v)/2;return ls(Go(x),f)+r+ls(Zo(x),f)}function b6(r,a,f){r=Ot(r),a=ut(a);var v=a?co(r):0;return a&&v<a?r+ls(a-v,f):r}function m6(r,a,f){r=Ot(r),a=ut(a);var v=a?co(r):0;return a&&v<a?ls(a-v,f)+r:r}function y6(r,a,f){return f||a==null?a=0:a&&(a=+a),Ha(Ot(r).replace(io,""),a||0)}function C6(r,a,f){return(f?y(r,a,f):a===l)?a=1:a=ut(a),du(Ot(r),a)}function w6(){var r=arguments,a=Ot(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var x6=oa(function(r,a,f){return r+(f?"_":"")+a.toLowerCase()});function z6(r,a,f){return f&&typeof f!="number"&&y(r,a,f)&&(a=f=l),f=f===l?It:f>>>0,f?(r=Ot(r),r&&(typeof a=="string"||a!=null&&!q1(a))&&(a=Mr(a),!a&&Tn(r))?Vi(fn(r),0,f):r.split(a,f)):[]}var L6=oa(function(r,a,f){return r+(f?" ":"")+Y1(a)});function _6(r,a,f){return r=Ot(r),f=f==null?0:yo(ut(f),0,r.length),a=Mr(a),r.slice(f,f+a.length)==a}function S6(r,a,f){var v=z.templateSettings;f&&y(r,a,f)&&(a=l),r=Ot(r),a=b0({},a,v,ss);var x=b0({},a.imports,v.imports,ss),L=Ir(x),P=Pl(x,L),D,F,ne=0,ie=a.interpolate||Dt,se="__p += '",ze=Ti((a.escape||Dt).source+"|"+ie.source+"|"+(ie===xa?ti:Dt).source+"|"+(a.evaluate||Dt).source+"|$","g"),$e="//# sourceURL="+(tt.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ns+"]")+`
|
|
1577
1580
|
`;r.replace(ze,function(Ve,pt,vt,Dn,sn,$n){return vt||(vt=Dn),se+=r.slice(ne,$n).replace(Oe,gc),pt&&(D=!0,se+=`' +
|
|
1578
1581
|
__e(`+pt+`) +
|
|
1579
1582
|
'`),sn&&(F=!0,se+=`';
|
|
@@ -1590,7 +1593,7 @@ __p += '`),vt&&(se+=`' +
|
|
|
1590
1593
|
function print() { __p += __j.call(arguments, '') }
|
|
1591
1594
|
`:`;
|
|
1592
1595
|
`)+se+`return __p
|
|
1593
|
-
}`;var ct=Sf(function(){return Ct(L,$e+"return "+se).apply(l,P)});if(ct.source=se,V1(ct))throw ct;return ct}function O6(r){return Ot(r).toLowerCase()}function T6(r){return Ot(r).toUpperCase()}function P6(r,a,f){if(r=Ot(r),r&&(f||a===l))return Aa(r);if(!r||!(a=Mr(a)))return r;var v=fn(r),x=fn(a),L=Mi(v,x),P=El(v,x)+1;return Vi(v,L,P).join("")}function E6(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.slice(0,Dl(r)+1);if(!r||!(a=Mr(a)))return r;var v=fn(r),x=El(v,fn(a))+1;return Vi(v,0,x).join("")}function I6(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.replace(no,"");if(!r||!(a=Mr(a)))return r;var v=fn(r),x=Mi(v,fn(a));return Vi(v,x).join("")}function A6(r,a){var f=be,v=ye;if(Kt(a)){var x="separator"in a?a.separator:x;f="length"in a?ut(a.length):f,v="omission"in a?Mr(a.omission):v}r=Ot(r);var L=r.length;if(Tn(r)){var P=fn(r);L=P.length}if(f>=L)return r;var D=f-uo(v);if(D<1)return v;var F=P?Vi(P,0,D).join(""):r.slice(0,D);if(x===l)return F+v;if(P&&(D+=F.length-D),q1(x)){if(r.slice(D).search(x)){var ne,ie=F;for(x.global||(x=Ti(x.source,Ot(io.exec(x))+"g")),x.lastIndex=0;ne=x.exec(ie);)var se=ne.index;F=F.slice(0,se===l?D:se)}}else if(r.indexOf(Mr(x),D)!=D){var ze=F.lastIndexOf(x);ze>-1&&(F=F.slice(0,ze))}return F+v}function D6(r){return r=Ot(r),r&&Ao.test(r)?r.replace(_n,$l):r}var $6=oa(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),Y1=r0("toUpperCase");function _f(r,a,f){return r=Ot(r),a=f?l:a,a===l?Fn(r)?Pn(r):fc(r):r.match(a)||[]}var Sf=st(function(r,a){try{return rn(r,l,a)}catch(f){return V1(f)?f:new Je(f)}}),N6=ui(function(r,a){return dn(a,function(f){f=St(f),qn(r,f,Z1(r[f],r))}),r});function R6(r){var a=r==null?0:r.length,f=Re();return r=a?_t(r,function(v){if(typeof v[1]!="function")throw new jr(m);return[f(v[0]),v[1]]}):[],st(function(v){for(var x=-1;++x<a;){var L=r[x];if(rn(L[0],this,v))return rn(L[1],this,v)}})}function H6(r){return Ic(Br(r,B))}function X1(r){return function(){return r}}function B6(r,a){return r==null||r!==r?a:r}var F6=n0(),W6=n0(!0);function yn(r){return r}function Q1(r){return Fc(typeof r=="function"?r:Br(r,B))}function U6(r){return Wc(Br(r,B))}function Z6(r,a){return su(r,Br(a,B))}var G6=st(function(r,a){return function(f){return Yo(f,r,a)}}),V6=st(function(r,a){return function(f){return Yo(r,f,a)}});function J1(r,a,f){var v=Ir(a),x=Va(a,v);f==null&&!(Kt(a)&&(x.length||!v.length))&&(f=a,a=r,r=this,x=Va(a,Ir(a)));var L=!(Kt(f)&&"chain"in f)||!!f.chain,P=So(r);return dn(x,function(D){var F=a[D];r[D]=F,P&&(r.prototype[D]=function(){var ne=this.__chain__;if(L||ne){var ie=r(this.__wrapped__),se=ie.__actions__=fr(this.__actions__);return se.push({func:F,args:arguments,thisArg:r}),ie.__chain__=ne,ie}return F.apply(r,Si([this.value()],arguments))})}),r}function q6(){return Ht._===this&&(Ht._=zc),this}function ed(){}function K6(r){return r=ut(r),st(function(a){return Uc(a,r)})}var j6=la(_t),Y6=la(Bs),X6=la(ao);function Mf(r){return C(r)?Us(St(r)):D1(r)}function Q6(r){return function(a){return r==null?l:Wi(r,a)}}var J6=i0(),e3=i0(!0);function td(){return[]}function rd(){return!1}function t3(){return{}}function r3(){return""}function n3(){return!0}function i3(r,a){if(r=ut(r),r<1||r>rt)return[];var f=It,v=mr(r,It);a=Re(a),r-=It;for(var x=so(v,a);++f<r;)a(f);return x}function o3(r){return lt(r)?_t(r,St):An(r)?[r]:fr(ir(Ot(r)))}function a3(r){var a=++Ei;return Ot(r)+a}var l3=Ja(function(r,a){return r+a},0),s3=el("ceil"),u3=Ja(function(r,a){return r/a},1),c3=el("floor");function d3(r){return r&&r.length?Ga(r,yn,jl):l}function f3(r,a){return r&&r.length?Ga(r,Re(a,2),jl):l}function h3(r){return Ws(r,yn)}function p3(r,a){return Ws(r,Re(a,2))}function g3(r){return r&&r.length?Ga(r,yn,Zi):l}function v3(r,a){return r&&r.length?Ga(r,Re(a,2),Zi):l}var b3=Ja(function(r,a){return r*a},1),m3=el("round"),y3=Ja(function(r,a){return r-a},0);function C3(r){return r&&r.length?Vs(r,yn):0}function w3(r,a){return r&&r.length?Vs(r,Re(a,2)):0}return z.after=U4,z.ary=nf,z.assign=T5,z.assignIn=mf,z.assignInWith=b0,z.assignWith=P5,z.at=E5,z.before=of,z.bind=Z1,z.bindAll=N6,z.bindKey=af,z.castArray=t5,z.chain=ef,z.chunk=ca,z.compact=qi,z.concat=zr,z.cond=R6,z.conforms=H6,z.constant=X1,z.countBy=C4,z.create=I5,z.curry=lf,z.curryRight=sf,z.debounce=uf,z.defaults=A5,z.defaultsDeep=D5,z.defer=Z4,z.delay=G4,z.difference=Kn,z.differenceBy=or,z.differenceWith=Lu,z.drop=ci,z.dropRight=Lo,z.dropRightWhile=_o,z.dropWhile=Er,z.fill=da,z.filter=x4,z.flatMap=_4,z.flatMapDeep=S4,z.flatMapDepth=M4,z.flatten=Yd,z.flattenDeep=w2,z.flattenDepth=x2,z.flip=V4,z.flow=F6,z.flowRight=W6,z.fromPairs=z2,z.functions=W5,z.functionsIn=U5,z.groupBy=k4,z.initial=_2,z.intersection=S2,z.intersectionBy=M2,z.intersectionWith=k2,z.invert=G5,z.invertBy=V5,z.invokeMap=T4,z.iteratee=Q1,z.keyBy=P4,z.keys=Ir,z.keysIn=mn,z.map=d0,z.mapKeys=K5,z.mapValues=j5,z.matches=U6,z.matchesProperty=Z6,z.memoize=h0,z.merge=Y5,z.mergeWith=yf,z.method=G6,z.methodOf=V6,z.mixin=J1,z.negate=p0,z.nthArg=K6,z.omit=X5,z.omitBy=Q5,z.once=q4,z.orderBy=E4,z.over=j6,z.overArgs=K4,z.overEvery=Y6,z.overSome=X6,z.partial=G1,z.partialRight=cf,z.partition=I4,z.pick=J5,z.pickBy=Cf,z.property=Mf,z.propertyOf=Q6,z.pull=E2,z.pullAll=Qd,z.pullAllBy=I2,z.pullAllWith=A2,z.pullAt=D2,z.range=J6,z.rangeRight=e3,z.rearg=j4,z.reject=$4,z.remove=$2,z.rest=Y4,z.reverse=W1,z.sampleSize=R4,z.set=t6,z.setWith=r6,z.shuffle=H4,z.slice=N2,z.sortBy=W4,z.sortedUniq=Z2,z.sortedUniqBy=G2,z.split=_6,z.spread=X4,z.tail=V2,z.take=q2,z.takeRight=K2,z.takeRightWhile=j2,z.takeWhile=Y2,z.tap=d4,z.throttle=Q4,z.thru=c0,z.toArray=gf,z.toPairs=wf,z.toPairsIn=xf,z.toPath=o3,z.toPlainObject=bf,z.transform=n6,z.unary=J4,z.union=X2,z.unionBy=Q2,z.unionWith=J2,z.uniq=e4,z.uniqBy=t4,z.uniqWith=r4,z.unset=i6,z.unzip=U1,z.unzipWith=Jd,z.update=o6,z.updateWith=a6,z.values=ps,z.valuesIn=l6,z.without=n4,z.words=_f,z.wrap=e5,z.xor=i4,z.xorBy=o4,z.xorWith=a4,z.zip=l4,z.zipObject=s4,z.zipObjectDeep=u4,z.zipWith=c4,z.entries=wf,z.entriesIn=xf,z.extend=mf,z.extendWith=b0,J1(z,z),z.add=l3,z.attempt=Sf,z.camelCase=d6,z.capitalize=zf,z.ceil=s3,z.clamp=s6,z.clone=r5,z.cloneDeep=i5,z.cloneDeepWith=o5,z.cloneWith=n5,z.conformsTo=a5,z.deburr=Lf,z.defaultTo=B6,z.divide=u3,z.endsWith=f6,z.eq=di,z.escape=h6,z.escapeRegExp=p6,z.every=w4,z.find=z4,z.findIndex=fs,z.findKey=$5,z.findLast=L4,z.findLastIndex=jd,z.findLastKey=N5,z.floor=c3,z.forEach=tf,z.forEachRight=rf,z.forIn=R5,z.forInRight=H5,z.forOwn=B5,z.forOwnRight=F5,z.get=K1,z.gt=l5,z.gte=s5,z.has=Z5,z.hasIn=j1,z.head=Xd,z.identity=yn,z.includes=O4,z.indexOf=L2,z.inRange=u6,z.invoke=q5,z.isArguments=il,z.isArray=lt,z.isArrayBuffer=u5,z.isArrayLike=bn,z.isArrayLikeObject=ar,z.isBoolean=c5,z.isBuffer=fa,z.isDate=d5,z.isElement=f5,z.isEmpty=h5,z.isEqual=p5,z.isEqualWith=g5,z.isError=V1,z.isFinite=v5,z.isFunction=So,z.isInteger=df,z.isLength=g0,z.isMap=ff,z.isMatch=b5,z.isMatchWith=m5,z.isNaN=y5,z.isNative=C5,z.isNil=x5,z.isNull=w5,z.isNumber=hf,z.isObject=Kt,z.isObjectLike=Qt,z.isPlainObject=_u,z.isRegExp=q1,z.isSafeInteger=z5,z.isSet=pf,z.isString=v0,z.isSymbol=An,z.isTypedArray=hs,z.isUndefined=L5,z.isWeakMap=_5,z.isWeakSet=S5,z.join=O2,z.kebabCase=g6,z.last=jn,z.lastIndexOf=T2,z.lowerCase=v6,z.lowerFirst=b6,z.lt=M5,z.lte=k5,z.max=d3,z.maxBy=f3,z.mean=h3,z.meanBy=p3,z.min=g3,z.minBy=v3,z.stubArray=td,z.stubFalse=rd,z.stubObject=t3,z.stubString=r3,z.stubTrue=n3,z.multiply=b3,z.nth=P2,z.noConflict=q6,z.noop=ed,z.now=f0,z.pad=m6,z.padEnd=y6,z.padStart=C6,z.parseInt=w6,z.random=c6,z.reduce=A4,z.reduceRight=D4,z.repeat=x6,z.replace=z6,z.result=e6,z.round=m3,z.runInContext=R,z.sample=N4,z.size=B4,z.snakeCase=L6,z.some=F4,z.sortedIndex=R2,z.sortedIndexBy=H2,z.sortedIndexOf=B2,z.sortedLastIndex=F2,z.sortedLastIndexBy=W2,z.sortedLastIndexOf=U2,z.startCase=S6,z.startsWith=M6,z.subtract=y3,z.sum=C3,z.sumBy=w3,z.template=k6,z.times=i3,z.toFinite=Mo,z.toInteger=ut,z.toLength=vf,z.toLower=O6,z.toNumber=Yn,z.toSafeInteger=O5,z.toString=Ot,z.toUpper=T6,z.trim=P6,z.trimEnd=E6,z.trimStart=I6,z.truncate=A6,z.unescape=D6,z.uniqueId=a3,z.upperCase=$6,z.upperFirst=Y1,z.each=tf,z.eachRight=rf,z.first=Xd,J1(z,function(){var r={};return an(z,function(a,f){tt.call(z.prototype,f)||(r[f]=a)}),r}(),{chain:!1}),z.VERSION=d,dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),dn(["drop","take"],function(r,a){ft.prototype[r]=function(f){f=f===l?1:Bt(ut(f),0);var v=this.__filtered__&&!a?new ft(this):this.clone();return v.__filtered__?v.__takeCount__=mr(f,v.__takeCount__):v.__views__.push({size:mr(f,It),type:r+(v.__dir__<0?"Right":"")}),v},ft.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),dn(["filter","map","takeWhile"],function(r,a){var f=a+1,v=f==E||f==ee;ft.prototype[r]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Re(x,3),type:f}),L.__filtered__=L.__filtered__||v,L}}),dn(["head","last"],function(r,a){var f="take"+(a?"Right":"");ft.prototype[r]=function(){return this[f](1).value()[0]}}),dn(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");ft.prototype[r]=function(){return this.__filtered__?new ft(this):this[f](1)}}),ft.prototype.compact=function(){return this.filter(yn)},ft.prototype.find=function(r){return this.filter(r).head()},ft.prototype.findLast=function(r){return this.reverse().find(r)},ft.prototype.invokeMap=st(function(r,a){return typeof r=="function"?new ft(this):this.map(function(f){return Yo(f,r,a)})}),ft.prototype.reject=function(r){return this.filter(p0(Re(r)))},ft.prototype.slice=function(r,a){r=ut(r);var f=this;return f.__filtered__&&(r>0||a<0)?new ft(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==l&&(a=ut(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},ft.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ft.prototype.toArray=function(){return this.take(It)},an(ft.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),v=/^(?:head|last)$/.test(a),x=z[v?"take"+(a=="last"?"Right":""):a],L=v||/^find/.test(a);!x||(z.prototype[a]=function(){var P=this.__wrapped__,D=v?[1]:arguments,F=P instanceof ft,ne=D[0],ie=F||lt(P),se=function(pt){var vt=x.apply(z,Si([pt],D));return v&&ze?vt[0]:vt};ie&&f&&typeof ne=="function"&&ne.length!=1&&(F=ie=!1);var ze=this.__chain__,$e=!!this.__actions__.length,Ge=L&&!ze,ct=F&&!$e;if(!L&&ie){P=ct?P:new ft(this);var Ve=r.apply(P,D);return Ve.__actions__.push({func:c0,args:[se],thisArg:l}),new Hr(Ve,ze)}return Ge&&ct?r.apply(this,D):(Ve=this.thru(se),Ge?v?Ve.value()[0]:Ve.value():Ve)})}),dn(["pop","push","shift","sort","splice","unshift"],function(r){var a=Fo[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return a.apply(lt(L)?L:[],x)}return this[f](function(P){return a.apply(lt(P)?P:[],x)})}}),an(ft.prototype,function(r,a){var f=z[a];if(f){var v=f.name+"";tt.call(qo,v)||(qo[v]=[]),qo[v].push({name:a,func:f})}}),qo[Qa(l,Me).name]=[{name:"wrapper",func:l}],ft.prototype.clone=S1,ft.prototype.reverse=M1,ft.prototype.value=js,z.prototype.at=f4,z.prototype.chain=h4,z.prototype.commit=p4,z.prototype.next=g4,z.prototype.plant=b4,z.prototype.reverse=m4,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=y4,z.prototype.first=z.prototype.head,Ii&&(z.prototype[Ii]=v4),z},Oi=wc();Nr?((Nr.exports=Oi)._=Oi,Ta._=Oi):Ht._=Oi}).call(bs)})(Hu,Hu.exports);const Tv=Hu.exports,Pv=x3({__proto__:null,default:Tv},[Hu.exports]);var Ev=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,pl=(s,o,l,d)=>{for(var c=d>1?void 0:d?Iv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Ev(o,l,c),c};class Xi extends Fe{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(o){this.value=o.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(o){this.useProxy&&this.updateProxyInput()}}pl([H({type:Boolean,reflect:!0})],Xi.prototype,"disabled",2);pl([H({type:Boolean,reflect:!0})],Xi.prototype,"invalid",2);pl([H({type:String})],Xi.prototype,"name",2);pl([H({type:String})],Xi.prototype,"id",2);pl([H({type:String})],Xi.prototype,"value",2);pl([Xe()],Xi.prototype,"proxyInput",2);pl([Xe()],Xi.prototype,"useProxy",2);var Av=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,Ms=(s,o,l,d)=>{for(var c=d>1?void 0:d?Dv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Av(o,l,c),c};const Jh=Se("input-checkbox"),hi={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Xi{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(s){s.preventDefault(),s.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 Y`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case hi.Indeterminate:return Y`<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,Y`
|
|
1596
|
+
}`;var ct=_f(function(){return Ct(L,$e+"return "+se).apply(l,P)});if(ct.source=se,V1(ct))throw ct;return ct}function M6(r){return Ot(r).toLowerCase()}function k6(r){return Ot(r).toUpperCase()}function O6(r,a,f){if(r=Ot(r),r&&(f||a===l))return Aa(r);if(!r||!(a=Mr(a)))return r;var v=fn(r),x=fn(a),L=Mi(v,x),P=El(v,x)+1;return Vi(v,L,P).join("")}function T6(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.slice(0,Dl(r)+1);if(!r||!(a=Mr(a)))return r;var v=fn(r),x=El(v,fn(a))+1;return Vi(v,0,x).join("")}function P6(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.replace(io,"");if(!r||!(a=Mr(a)))return r;var v=fn(r),x=Mi(v,fn(a));return Vi(v,x).join("")}function E6(r,a){var f=be,v=ye;if(Kt(a)){var x="separator"in a?a.separator:x;f="length"in a?ut(a.length):f,v="omission"in a?Mr(a.omission):v}r=Ot(r);var L=r.length;if(Tn(r)){var P=fn(r);L=P.length}if(f>=L)return r;var D=f-co(v);if(D<1)return v;var F=P?Vi(P,0,D).join(""):r.slice(0,D);if(x===l)return F+v;if(P&&(D+=F.length-D),q1(x)){if(r.slice(D).search(x)){var ne,ie=F;for(x.global||(x=Ti(x.source,Ot(oo.exec(x))+"g")),x.lastIndex=0;ne=x.exec(ie);)var se=ne.index;F=F.slice(0,se===l?D:se)}}else if(r.indexOf(Mr(x),D)!=D){var ze=F.lastIndexOf(x);ze>-1&&(F=F.slice(0,ze))}return F+v}function I6(r){return r=Ot(r),r&&Ao.test(r)?r.replace(_n,$l):r}var A6=oa(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),Y1=r0("toUpperCase");function Lf(r,a,f){return r=Ot(r),a=f?l:a,a===l?Fn(r)?Pn(r):fc(r):r.match(a)||[]}var _f=st(function(r,a){try{return rn(r,l,a)}catch(f){return V1(f)?f:new Je(f)}}),D6=ui(function(r,a){return dn(a,function(f){f=St(f),qn(r,f,Z1(r[f],r))}),r});function $6(r){var a=r==null?0:r.length,f=Re();return r=a?_t(r,function(v){if(typeof v[1]!="function")throw new jr(m);return[f(v[0]),v[1]]}):[],st(function(v){for(var x=-1;++x<a;){var L=r[x];if(rn(L[0],this,v))return rn(L[1],this,v)}})}function N6(r){return Ic(Br(r,B))}function X1(r){return function(){return r}}function R6(r,a){return r==null||r!==r?a:r}var H6=n0(),B6=n0(!0);function yn(r){return r}function Q1(r){return Fc(typeof r=="function"?r:Br(r,B))}function F6(r){return Wc(Br(r,B))}function W6(r,a){return su(r,Br(a,B))}var U6=st(function(r,a){return function(f){return Yo(f,r,a)}}),Z6=st(function(r,a){return function(f){return Yo(r,f,a)}});function J1(r,a,f){var v=Ir(a),x=Va(a,v);f==null&&!(Kt(a)&&(x.length||!v.length))&&(f=a,a=r,r=this,x=Va(a,Ir(a)));var L=!(Kt(f)&&"chain"in f)||!!f.chain,P=Mo(r);return dn(x,function(D){var F=a[D];r[D]=F,P&&(r.prototype[D]=function(){var ne=this.__chain__;if(L||ne){var ie=r(this.__wrapped__),se=ie.__actions__=fr(this.__actions__);return se.push({func:F,args:arguments,thisArg:r}),ie.__chain__=ne,ie}return F.apply(r,Si([this.value()],arguments))})}),r}function G6(){return Ht._===this&&(Ht._=zc),this}function ed(){}function V6(r){return r=ut(r),st(function(a){return Uc(a,r)})}var q6=la(_t),K6=la(Bs),j6=la(lo);function Sf(r){return C(r)?Us(St(r)):D1(r)}function Y6(r){return function(a){return r==null?l:Wi(r,a)}}var X6=i0(),Q6=i0(!0);function td(){return[]}function rd(){return!1}function J6(){return{}}function e3(){return""}function t3(){return!0}function r3(r,a){if(r=ut(r),r<1||r>rt)return[];var f=It,v=mr(r,It);a=Re(a),r-=It;for(var x=uo(v,a);++f<r;)a(f);return x}function n3(r){return lt(r)?_t(r,St):An(r)?[r]:fr(ir(Ot(r)))}function i3(r){var a=++Ei;return Ot(r)+a}var o3=Ja(function(r,a){return r+a},0),a3=el("ceil"),l3=Ja(function(r,a){return r/a},1),s3=el("floor");function u3(r){return r&&r.length?Ga(r,yn,jl):l}function c3(r,a){return r&&r.length?Ga(r,Re(a,2),jl):l}function d3(r){return Ws(r,yn)}function f3(r,a){return Ws(r,Re(a,2))}function h3(r){return r&&r.length?Ga(r,yn,Zi):l}function p3(r,a){return r&&r.length?Ga(r,Re(a,2),Zi):l}var g3=Ja(function(r,a){return r*a},1),v3=el("round"),b3=Ja(function(r,a){return r-a},0);function m3(r){return r&&r.length?Vs(r,yn):0}function y3(r,a){return r&&r.length?Vs(r,Re(a,2)):0}return z.after=F4,z.ary=rf,z.assign=k5,z.assignIn=bf,z.assignInWith=b0,z.assignWith=O5,z.at=T5,z.before=nf,z.bind=Z1,z.bindAll=D6,z.bindKey=of,z.castArray=J4,z.chain=Jd,z.chunk=ca,z.compact=qi,z.concat=zr,z.cond=$6,z.conforms=N6,z.constant=X1,z.countBy=m4,z.create=P5,z.curry=af,z.curryRight=lf,z.debounce=sf,z.defaults=E5,z.defaultsDeep=I5,z.defer=W4,z.delay=U4,z.difference=Kn,z.differenceBy=or,z.differenceWith=Lu,z.drop=ci,z.dropRight=_o,z.dropRightWhile=So,z.dropWhile=Er,z.fill=da,z.filter=C4,z.flatMap=z4,z.flatMapDeep=L4,z.flatMapDepth=_4,z.flatten=jd,z.flattenDeep=y2,z.flattenDepth=C2,z.flip=Z4,z.flow=H6,z.flowRight=B6,z.fromPairs=w2,z.functions=B5,z.functionsIn=F5,z.groupBy=S4,z.initial=z2,z.intersection=L2,z.intersectionBy=_2,z.intersectionWith=S2,z.invert=U5,z.invertBy=Z5,z.invokeMap=k4,z.iteratee=Q1,z.keyBy=O4,z.keys=Ir,z.keysIn=mn,z.map=d0,z.mapKeys=V5,z.mapValues=q5,z.matches=F6,z.matchesProperty=W6,z.memoize=h0,z.merge=K5,z.mergeWith=mf,z.method=U6,z.methodOf=Z6,z.mixin=J1,z.negate=p0,z.nthArg=V6,z.omit=j5,z.omitBy=Y5,z.once=G4,z.orderBy=T4,z.over=q6,z.overArgs=V4,z.overEvery=K6,z.overSome=j6,z.partial=G1,z.partialRight=uf,z.partition=P4,z.pick=X5,z.pickBy=yf,z.property=Sf,z.propertyOf=Y6,z.pull=T2,z.pullAll=Xd,z.pullAllBy=P2,z.pullAllWith=E2,z.pullAt=I2,z.range=X6,z.rangeRight=Q6,z.rearg=q4,z.reject=A4,z.remove=A2,z.rest=K4,z.reverse=W1,z.sampleSize=$4,z.set=J5,z.setWith=e6,z.shuffle=N4,z.slice=D2,z.sortBy=B4,z.sortedUniq=W2,z.sortedUniqBy=U2,z.split=z6,z.spread=j4,z.tail=Z2,z.take=G2,z.takeRight=V2,z.takeRightWhile=q2,z.takeWhile=K2,z.tap=u4,z.throttle=Y4,z.thru=c0,z.toArray=pf,z.toPairs=Cf,z.toPairsIn=wf,z.toPath=n3,z.toPlainObject=vf,z.transform=t6,z.unary=X4,z.union=j2,z.unionBy=Y2,z.unionWith=X2,z.uniq=Q2,z.uniqBy=J2,z.uniqWith=e4,z.unset=r6,z.unzip=U1,z.unzipWith=Qd,z.update=n6,z.updateWith=i6,z.values=ps,z.valuesIn=o6,z.without=t4,z.words=Lf,z.wrap=Q4,z.xor=r4,z.xorBy=n4,z.xorWith=i4,z.zip=o4,z.zipObject=a4,z.zipObjectDeep=l4,z.zipWith=s4,z.entries=Cf,z.entriesIn=wf,z.extend=bf,z.extendWith=b0,J1(z,z),z.add=o3,z.attempt=_f,z.camelCase=u6,z.capitalize=xf,z.ceil=a3,z.clamp=a6,z.clone=e5,z.cloneDeep=r5,z.cloneDeepWith=n5,z.cloneWith=t5,z.conformsTo=i5,z.deburr=zf,z.defaultTo=R6,z.divide=l3,z.endsWith=c6,z.eq=di,z.escape=d6,z.escapeRegExp=f6,z.every=y4,z.find=w4,z.findIndex=fs,z.findKey=A5,z.findLast=x4,z.findLastIndex=Kd,z.findLastKey=D5,z.floor=s3,z.forEach=ef,z.forEachRight=tf,z.forIn=$5,z.forInRight=N5,z.forOwn=R5,z.forOwnRight=H5,z.get=K1,z.gt=o5,z.gte=a5,z.has=W5,z.hasIn=j1,z.head=Yd,z.identity=yn,z.includes=M4,z.indexOf=x2,z.inRange=l6,z.invoke=G5,z.isArguments=il,z.isArray=lt,z.isArrayBuffer=l5,z.isArrayLike=bn,z.isArrayLikeObject=ar,z.isBoolean=s5,z.isBuffer=fa,z.isDate=u5,z.isElement=c5,z.isEmpty=d5,z.isEqual=f5,z.isEqualWith=h5,z.isError=V1,z.isFinite=p5,z.isFunction=Mo,z.isInteger=cf,z.isLength=g0,z.isMap=df,z.isMatch=g5,z.isMatchWith=v5,z.isNaN=b5,z.isNative=m5,z.isNil=C5,z.isNull=y5,z.isNumber=ff,z.isObject=Kt,z.isObjectLike=Qt,z.isPlainObject=_u,z.isRegExp=q1,z.isSafeInteger=w5,z.isSet=hf,z.isString=v0,z.isSymbol=An,z.isTypedArray=hs,z.isUndefined=x5,z.isWeakMap=z5,z.isWeakSet=L5,z.join=M2,z.kebabCase=h6,z.last=jn,z.lastIndexOf=k2,z.lowerCase=p6,z.lowerFirst=g6,z.lt=_5,z.lte=S5,z.max=u3,z.maxBy=c3,z.mean=d3,z.meanBy=f3,z.min=h3,z.minBy=p3,z.stubArray=td,z.stubFalse=rd,z.stubObject=J6,z.stubString=e3,z.stubTrue=t3,z.multiply=g3,z.nth=O2,z.noConflict=G6,z.noop=ed,z.now=f0,z.pad=v6,z.padEnd=b6,z.padStart=m6,z.parseInt=y6,z.random=s6,z.reduce=E4,z.reduceRight=I4,z.repeat=C6,z.replace=w6,z.result=Q5,z.round=v3,z.runInContext=R,z.sample=D4,z.size=R4,z.snakeCase=x6,z.some=H4,z.sortedIndex=$2,z.sortedIndexBy=N2,z.sortedIndexOf=R2,z.sortedLastIndex=H2,z.sortedLastIndexBy=B2,z.sortedLastIndexOf=F2,z.startCase=L6,z.startsWith=_6,z.subtract=b3,z.sum=m3,z.sumBy=y3,z.template=S6,z.times=r3,z.toFinite=ko,z.toInteger=ut,z.toLength=gf,z.toLower=M6,z.toNumber=Yn,z.toSafeInteger=M5,z.toString=Ot,z.toUpper=k6,z.trim=O6,z.trimEnd=T6,z.trimStart=P6,z.truncate=E6,z.unescape=I6,z.uniqueId=i3,z.upperCase=A6,z.upperFirst=Y1,z.each=ef,z.eachRight=tf,z.first=Yd,J1(z,function(){var r={};return an(z,function(a,f){tt.call(z.prototype,f)||(r[f]=a)}),r}(),{chain:!1}),z.VERSION=d,dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),dn(["drop","take"],function(r,a){ft.prototype[r]=function(f){f=f===l?1:Bt(ut(f),0);var v=this.__filtered__&&!a?new ft(this):this.clone();return v.__filtered__?v.__takeCount__=mr(f,v.__takeCount__):v.__views__.push({size:mr(f,It),type:r+(v.__dir__<0?"Right":"")}),v},ft.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),dn(["filter","map","takeWhile"],function(r,a){var f=a+1,v=f==E||f==ee;ft.prototype[r]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Re(x,3),type:f}),L.__filtered__=L.__filtered__||v,L}}),dn(["head","last"],function(r,a){var f="take"+(a?"Right":"");ft.prototype[r]=function(){return this[f](1).value()[0]}}),dn(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");ft.prototype[r]=function(){return this.__filtered__?new ft(this):this[f](1)}}),ft.prototype.compact=function(){return this.filter(yn)},ft.prototype.find=function(r){return this.filter(r).head()},ft.prototype.findLast=function(r){return this.reverse().find(r)},ft.prototype.invokeMap=st(function(r,a){return typeof r=="function"?new ft(this):this.map(function(f){return Yo(f,r,a)})}),ft.prototype.reject=function(r){return this.filter(p0(Re(r)))},ft.prototype.slice=function(r,a){r=ut(r);var f=this;return f.__filtered__&&(r>0||a<0)?new ft(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==l&&(a=ut(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},ft.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ft.prototype.toArray=function(){return this.take(It)},an(ft.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),v=/^(?:head|last)$/.test(a),x=z[v?"take"+(a=="last"?"Right":""):a],L=v||/^find/.test(a);!x||(z.prototype[a]=function(){var P=this.__wrapped__,D=v?[1]:arguments,F=P instanceof ft,ne=D[0],ie=F||lt(P),se=function(pt){var vt=x.apply(z,Si([pt],D));return v&&ze?vt[0]:vt};ie&&f&&typeof ne=="function"&&ne.length!=1&&(F=ie=!1);var ze=this.__chain__,$e=!!this.__actions__.length,Ge=L&&!ze,ct=F&&!$e;if(!L&&ie){P=ct?P:new ft(this);var Ve=r.apply(P,D);return Ve.__actions__.push({func:c0,args:[se],thisArg:l}),new Hr(Ve,ze)}return Ge&&ct?r.apply(this,D):(Ve=this.thru(se),Ge?v?Ve.value()[0]:Ve.value():Ve)})}),dn(["pop","push","shift","sort","splice","unshift"],function(r){var a=Fo[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return a.apply(lt(L)?L:[],x)}return this[f](function(P){return a.apply(lt(P)?P:[],x)})}}),an(ft.prototype,function(r,a){var f=z[a];if(f){var v=f.name+"";tt.call(qo,v)||(qo[v]=[]),qo[v].push({name:a,func:f})}}),qo[Qa(l,Me).name]=[{name:"wrapper",func:l}],ft.prototype.clone=S1,ft.prototype.reverse=M1,ft.prototype.value=js,z.prototype.at=c4,z.prototype.chain=d4,z.prototype.commit=f4,z.prototype.next=h4,z.prototype.plant=g4,z.prototype.reverse=v4,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=b4,z.prototype.first=z.prototype.head,Ii&&(z.prototype[Ii]=p4),z},Oi=wc();Nr?((Nr.exports=Oi)._=Oi,Ta._=Oi):Ht._=Oi}).call(bs)})(Hu,Hu.exports);const kv=Hu.exports,Ov=C3({__proto__:null,default:kv},[Hu.exports]);var Tv=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,pl=(s,o,l,d)=>{for(var c=d>1?void 0:d?Pv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Tv(o,l,c),c};class Xi extends Fe{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(o){this.value=o.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(o){this.useProxy&&this.updateProxyInput()}}pl([H({type:Boolean,reflect:!0})],Xi.prototype,"disabled",2);pl([H({type:Boolean,reflect:!0})],Xi.prototype,"invalid",2);pl([H({type:String})],Xi.prototype,"name",2);pl([H({type:String})],Xi.prototype,"id",2);pl([H({type:String})],Xi.prototype,"value",2);pl([Xe()],Xi.prototype,"proxyInput",2);pl([Xe()],Xi.prototype,"useProxy",2);var Ev=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,Ms=(s,o,l,d)=>{for(var c=d>1?void 0:d?Iv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Ev(o,l,c),c};const Xh=Se("input-checkbox"),hi={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Xi{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(s){s.preventDefault(),s.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 Y`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case hi.Indeterminate:return Y`<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,Y`
|
|
1594
1597
|
<label>
|
|
1595
1598
|
<div class="checkbox-left">
|
|
1596
1599
|
<div
|
|
@@ -1694,16 +1697,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1694
1697
|
position: absolute;
|
|
1695
1698
|
left: 0;
|
|
1696
1699
|
}
|
|
1697
|
-
`];Ms([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Ms([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Ms([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Ms([Xe()],exports.InputCheckbox.prototype,"checkboxState",2);Ms([Xe()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Ms([J(
|
|
1700
|
+
`];Ms([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Ms([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Ms([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Ms([Xe()],exports.InputCheckbox.prototype,"checkboxState",2);Ms([Xe()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Ms([J(Xh)],exports.InputCheckbox);var Av=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,$v=(s,o,l,d)=>{for(var c=d>1?void 0:d?Dv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Av(o,l,c),c};const Nv=Se("input-guide");let O0=class extends Fe{render(){return Y` <slot></slot> `}};O0.styles=ce`
|
|
1698
1701
|
:host {
|
|
1699
1702
|
font-size: var(--brz-font-size-xs);
|
|
1700
1703
|
}
|
|
1701
|
-
`;O0
|
|
1704
|
+
`;O0=$v([J(Nv)],O0);var Rv=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,Bv=(s,o,l,d)=>{for(var c=d>1?void 0:d?Hv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Rv(o,l,c),c};const Qh=Se("input-error");exports.InputError=class extends Fe{render(){return Y` <slot></slot> `}};exports.InputError.styles=ce`
|
|
1702
1705
|
:host {
|
|
1703
1706
|
font-size: var(--brz-font-size-sm);
|
|
1704
1707
|
color: var(--brz-color-error);
|
|
1705
1708
|
}
|
|
1706
|
-
`;exports.InputError=
|
|
1709
|
+
`;exports.InputError=Bv([J(Qh)],exports.InputError);var Fv=Object.defineProperty,Wv=Object.getOwnPropertyDescriptor,ya=(s,o,l,d)=>{for(var c=d>1?void 0:d?Wv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Fv(o,l,c),c};const Jh=Se("labeled-input"),ep=Se("input-label"),Uv=["x-small","small","medium","large","x-large","auto","full"],Zv=ce`
|
|
1707
1710
|
.size-x-small {
|
|
1708
1711
|
width: 80px;
|
|
1709
1712
|
}
|
|
@@ -1727,7 +1730,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1727
1730
|
.size-full {
|
|
1728
1731
|
width: 100%;
|
|
1729
1732
|
}
|
|
1730
|
-
`,
|
|
1733
|
+
`,Gv=ce`
|
|
1731
1734
|
.container {
|
|
1732
1735
|
display: flex;
|
|
1733
1736
|
}
|
|
@@ -1772,7 +1775,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1772
1775
|
brz-split-row {
|
|
1773
1776
|
text-align: right;
|
|
1774
1777
|
}
|
|
1775
|
-
`,
|
|
1778
|
+
`,Vv=ce`
|
|
1776
1779
|
.guide {
|
|
1777
1780
|
display: flex;
|
|
1778
1781
|
}
|
|
@@ -1781,7 +1784,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1781
1784
|
margin-left: auto;
|
|
1782
1785
|
white-space: nowrap;
|
|
1783
1786
|
}
|
|
1784
|
-
`,
|
|
1787
|
+
`,qv=["side","top"];exports.LabeledInput=class extends Xi{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="label"]');this.hasLabel=s.assignedNodes().length>0}handlePromptChange(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="prompt"]');this.hasPrompt=s.assignedNodes().length>0}handleErrorChange(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="error"]');this.hasError=s.assignedNodes().length>0}renderInput(){return Y`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const s=`size-${this.size}`;return Y`
|
|
1785
1788
|
${this.labelPosition==="side"?Y`<brz-split-row
|
|
1786
1789
|
class=${s}
|
|
1787
1790
|
style=${s==="size-full"?"":"margin-left: 180px"}
|
|
@@ -1816,7 +1819,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1816
1819
|
</div>
|
|
1817
1820
|
</div>
|
|
1818
1821
|
</div>
|
|
1819
|
-
`}};exports.LabeledInput.styles=[
|
|
1822
|
+
`}};exports.LabeledInput.styles=[Zv,Gv,Vv];ya([H({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);ya([H({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);ya([H({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);ya([Xe()],exports.LabeledInput.prototype,"hasLabel",2);ya([Xe()],exports.LabeledInput.prototype,"hasPrompt",2);ya([Xe()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=ya([J(Jh)],exports.LabeledInput);exports.InputLabel=class extends Fe{render(){return Y`<slot></slot>`}};exports.InputLabel.styles=ce`
|
|
1820
1823
|
:host {
|
|
1821
1824
|
display: inline-flex;
|
|
1822
1825
|
color: var(--brz-color-neutral-850);
|
|
@@ -1824,7 +1827,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1824
1827
|
line-height: var(--brz-line-height);
|
|
1825
1828
|
gap: var(--brz-spacing-1);
|
|
1826
1829
|
}
|
|
1827
|
-
`;exports.InputLabel=ya([J(
|
|
1830
|
+
`;exports.InputLabel=ya([J(ep)],exports.InputLabel);var Kv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,U0=(s,o,l,d)=>{for(var c=d>1?void 0:d?jv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Kv(o,l,c),c};const Yv=ce`
|
|
1828
1831
|
:host {
|
|
1829
1832
|
--input-text-color: var(--brz-color-neutral-850);
|
|
1830
1833
|
--input-font: var(--brz-font-family);
|
|
@@ -1928,7 +1931,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1928
1931
|
class="trailing"
|
|
1929
1932
|
></brz-icon>`:null}
|
|
1930
1933
|
</div>
|
|
1931
|
-
`}}un.styles=[...exports.LabeledInput.styles,
|
|
1934
|
+
`}}un.styles=[...exports.LabeledInput.styles,Yv];U0([H({type:Boolean,reflect:!0})],un.prototype,"readonly",2);U0([H({type:String,reflect:!0})],un.prototype,"placeholder",2);U0([H({type:String,reflect:!0,attribute:"leading-icon"})],un.prototype,"leadingIcon",2);U0([H({type:String,reflect:!0,attribute:"trailing-icon"})],un.prototype,"trailingIcon",2);var Xv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,Z0=(s,o,l,d)=>{for(var c=d>1?void 0:d?Qv(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Xv(o,l,c),c};const tp=Se("input-text");exports.InputText=class extends un{constructor(){super(...arguments),this.size="medium"}renderInput(){return Y`
|
|
1932
1935
|
<input
|
|
1933
1936
|
@input=${this.onInput}
|
|
1934
1937
|
.value=${zt(this.value)}
|
|
@@ -1944,7 +1947,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1944
1947
|
input {
|
|
1945
1948
|
height: 36px;
|
|
1946
1949
|
}
|
|
1947
|
-
`];Z0([H({type:String})],exports.InputText.prototype,"value",2);Z0([H({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Z0([H({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Z0([J(
|
|
1950
|
+
`];Z0([H({type:String})],exports.InputText.prototype,"value",2);Z0([H({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Z0([H({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Z0([J(tp)],exports.InputText);var Jv=Object.defineProperty,e7=Object.getOwnPropertyDescriptor,G0=(s,o,l,d)=>{for(var c=d>1?void 0:d?e7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Jv(o,l,c),c};const rp=Se("input-textarea");exports.InputTextarea=class extends un{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const s=((l=this.value)==null?void 0:l.length)||0,o=Y`${s} of ${this.maxlength}`;return s>=this.maxlength?Y`<brz-input-error>${o}</brz-input-error>`:Y`<brz-input-guide>${o}</brz-input-guide>`}renderInput(){var s;return Y`
|
|
1948
1951
|
<textarea
|
|
1949
1952
|
@input=${this.onInput}
|
|
1950
1953
|
.value=${(s=this.value)!=null?s:""}
|
|
@@ -1960,7 +1963,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1960
1963
|
height: 100px;
|
|
1961
1964
|
resize: none;
|
|
1962
1965
|
}
|
|
1963
|
-
`];G0([H({type:String})],exports.InputTextarea.prototype,"value",2);G0([H({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);G0([H({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=G0([J(
|
|
1966
|
+
`];G0([H({type:String})],exports.InputTextarea.prototype,"value",2);G0([H({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);G0([H({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=G0([J(rp)],exports.InputTextarea);var t7=Object.defineProperty,r7=Object.getOwnPropertyDescriptor,ks=(s,o,l,d)=>{for(var c=d>1?void 0:d?r7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&t7(o,l,c),c};const np=Se("input-number"),n7=ce`
|
|
1964
1967
|
/* Chrome, Safari, Edge, Opera */
|
|
1965
1968
|
input::-webkit-outer-spin-button,
|
|
1966
1969
|
input::-webkit-inner-spin-button {
|
|
@@ -1972,7 +1975,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1972
1975
|
input[type='number'] {
|
|
1973
1976
|
-moz-appearance: textfield;
|
|
1974
1977
|
}
|
|
1975
|
-
`,
|
|
1978
|
+
`,ip=["e","+"],op=s=>ip.includes(s.toLowerCase()),i7=s=>!!ip.find(o=>s.toLowerCase().includes(o)),o7=s=>{var l,d;op(s.key)&&s.preventDefault();const o=s.target;((l=o==null?void 0:o.value)==null?void 0:l.length)===0&&s.key==="-"&&(o.value=""),((d=o==null?void 0:o.value)==null?void 0:d.length)>0&&s.key==="-"&&s.preventDefault()},a7=s=>{var g;const o=/^-?\d+\.?\d*$/,{clipboardData:l}=s,d=(g=l==null?void 0:l.getData("text"))==null?void 0:g.toLowerCase();if(!d)return;const c=s.target;(!(c!=null&&c.value)||!o.test(c.value+d)&&o.test(d))&&(c.value=""),(op(d)||i7(d)||!o.test(d))&&(s.stopPropagation(),s.preventDefault())};exports.InputNumber=class extends un{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}handleIncrease(){var s;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((s=this.inputElement.value)!=null?s:"")}handleDecrease(){var s;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((s=this.inputElement.value)!=null?s:"")}handleSteppedChange(s){this.value=s,this.dispatchChange()}handleKeyDown(s){o7(s)}handlePaste(s){a7(s)}get stepperLayout(){return this.hasNoStepper?null:Y`
|
|
1976
1979
|
<div class="stepper-container">
|
|
1977
1980
|
<button
|
|
1978
1981
|
@click=${this.handleDecrease}
|
|
@@ -2010,7 +2013,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2010
2013
|
min=${zt(this.min)}
|
|
2011
2014
|
max=${zt(this.max)}
|
|
2012
2015
|
/>
|
|
2013
|
-
</div>`}};exports.InputNumber.styles=[...un.styles,
|
|
2016
|
+
</div>`}};exports.InputNumber.styles=[...un.styles,n7,ce`
|
|
2014
2017
|
:host(:not[has-no-stepper]) input {
|
|
2015
2018
|
padding-right: var(--brz-spacing-20);
|
|
2016
2019
|
}
|
|
@@ -2054,11 +2057,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2054
2057
|
cursor: unset;
|
|
2055
2058
|
background-color: var(--brz-color-neutral-250);
|
|
2056
2059
|
}
|
|
2057
|
-
`];ks([H({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);ks([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);ks([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);ks([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);ks([ba('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=ks([J(
|
|
2060
|
+
`];ks([H({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);ks([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);ks([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);ks([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);ks([ba('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=ks([J(np)],exports.InputNumber);/**
|
|
2058
2061
|
* @license
|
|
2059
2062
|
* Copyright 2017 Google LLC
|
|
2060
2063
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2061
|
-
*/class
|
|
2064
|
+
*/class yd extends H0{constructor(o){if(super(o),this.it=Jt,o.type!==N0.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(o){if(o===Jt||o==null)return this._t=void 0,this.it=o;if(o===Ki)return o;if(typeof o!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(o===this.it)return this._t;this.it=o;const l=[o];return l.raw=l,this._t={_$litType$:this.constructor.resultType,strings:l,values:[]}}}yd.directiveName="unsafeHTML",yd.resultType=1;const l7=R0(yd);var s7=Object.defineProperty,u7=Object.getOwnPropertyDescriptor,gl=(s,o,l,d)=>{for(var c=d>1?void 0:d?u7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&s7(o,l,c),c};const ap=Se("input-radio-group"),lp=Se("input-radio-option"),c7=["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 o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("#options");return Array.from(s.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(s){const o=s.target;this.value=o.value,this.dispatchChange()}renderInput(){return Y`
|
|
2062
2065
|
<slot
|
|
2063
2066
|
id="options"
|
|
2064
2067
|
style="display: none;"
|
|
@@ -2077,7 +2080,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2077
2080
|
?checked=${o}
|
|
2078
2081
|
?disabled=${s.disabled||this.disabled}
|
|
2079
2082
|
/>
|
|
2080
|
-
<label for=${s.value}>${
|
|
2083
|
+
<label for=${s.value}>${l7(s.innerHTML)}</label>
|
|
2081
2084
|
</div>
|
|
2082
2085
|
`})}
|
|
2083
2086
|
</fieldset>
|
|
@@ -2233,31 +2236,31 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2233
2236
|
input[type='radio'][aria-invalid='true'] + label {
|
|
2234
2237
|
color: var(--brz-input-radio-invalid-color);
|
|
2235
2238
|
}
|
|
2236
|
-
`];gl([H({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);gl([H({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);gl([Xe()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=gl([J(sp)],exports.InputRadio);exports.InputRadioOption=class extends Fe{render(){}};gl([H({type:String})],exports.InputRadioOption.prototype,"value",2);gl([H({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=gl([J(up)],exports.InputRadioOption);var cd={exports:{}},Qf;function Eo(){return Qf||(Qf=1,function(s,o){(function(l,d){s.exports=d()})(bs,function(){var l=navigator.userAgent,d=navigator.platform,c=/gecko\/\d/i.test(l),g=/MSIE \d/.test(l),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),I=/Edge\/(\d+)/.exec(l),T=g||m||I,k=T&&(g?document.documentMode||6:+(I||m)[1]),A=!I&&/WebKit\//.test(l),B=A&&/Qt\/\d+\.\d+/.test(l),U=!I&&/Chrome\//.test(l),Z=/Opera\//.test(l),re=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),ge=/PhantomJS/.test(l),Me=re&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),Te=/Android/.test(l),pe=Me||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),de=Me||/Mac/.test(d),ke=/\bCrOS\b/.test(l),Pe=/win/i.test(d),Ie=Z&&l.match(/Version\/(\d*\.\d*)/);Ie&&(Ie=Number(Ie[1])),Ie&&Ie>=15&&(Z=!1,A=!0);var qe=de&&(B||Z&&(Ie==null||Ie<12.11)),je=c||T&&k>=9;function be(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var i=e.className,n=be(t).exec(i);if(n){var u=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(u?n[1]+u:"")}};function Qe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return Qe(e).appendChild(t)}function E(e,t,i,n){var u=document.createElement(e);if(i&&(u.className=i),n&&(u.style.cssText=n),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function S(e,t,i,n){var u=E(e,t,i,n);return u.setAttribute("role","presentation"),u}var ee;document.createRange?ee=function(e,t,i,n){var u=document.createRange();return u.setEnd(n||e,i),u.setStart(e,t),u}: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 me(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 rt(){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 Lt(e,t){var i=e.className;be(t).test(i)||(e.className+=(i?" ":"")+t)}function jt(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!be(i[n]).test(t)&&(t+=" "+i[n]);return t}var It=function(e){e.select()};Me?It=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(It=function(e){try{e.select()}catch{}});function Xr(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,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=n||0,p=u||0;;){var b=e.indexOf(" ",h);if(b<0||b>=t)return p+(t-h);p+=b-h,p+=i-p%i,h=b+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=Xr(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.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"}},nt={scroll:!1},it={origin:"*mouse"},Be={origin:"+move"};function Rt(e,t,i){for(var n=0,u=0;;){var h=e.indexOf(" ",n);h==-1&&(h=e.length);var p=h-n;if(h==e.length||u+p>=t)return n+Math.min(p,t-u);if(u+=h-n,u+=i-u%i,n=h+1,u>=t)return n}}var Ar=[""];function Yt(e){for(;Ar.length<=e;)Ar.push(Ke(Ar)+" ");return Ar[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,u=i(t);n<e.length&&i(e[n])<=u;)n++;e.splice(n,0,t)}function Lr(){}function Gr(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 et(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||er.test(e))}function W(e,t){return t?t.source.indexOf("\\w")>-1&&et(e)?!0:t.test(e):et(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 u=(t+i)/2,h=n<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:i;e(h)?i=h:t=h+n}}function zn(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(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",h),u=!0)}u||n(t,i,"ltr")}var Dr=null;function Nt(e,t,i){var n;Dr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&i=="before"?n=u:Dr=u),h.from==t&&(h.from!=h.to&&i!="before"?n=u:Dr=u)}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]/,u=/[stwN]/,h=/[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,he=M;we<N;++we){var xe=$[we];xe=="1"&&he=="r"?$[we]="n":h.test(xe)&&(he=xe,xe=="r"&&($[we]="R"))}for(var De=1,Ee=$[0];De<N-1;++De){var ot=$[De];ot=="+"&&Ee=="1"&&$[De+1]=="1"?$[De]="1":ot==","&&Ee==$[De+1]&&(Ee=="1"||Ee=="n")&&($[De]=Ee),Ee=ot}for(var xt=0;xt<N;++xt){var Xt=$[xt];if(Xt==",")$[xt]="N";else if(Xt=="%"){var kt=void 0;for(kt=xt+1;kt<N&&$[kt]=="%";++kt);for(var Or=xt&&$[xt-1]=="!"||kt<N&&$[kt]=="1"?"1":"N",Tr=xt;Tr<kt;++Tr)$[Tr]=Or;xt=kt-1}}for(var Gt=0,hr=M;Gt<N;++Gt){var ir=$[Gt];hr=="L"&&ir=="1"?$[Gt]="L":h.test(ir)&&(hr=ir)}for(var St=0;St<N;++St)if(u.test($[St])){var Pt=void 0;for(Pt=St+1;Pt<N&&u.test($[Pt]);++Pt);for(var Wt=(St?$[St-1]:M)=="L",Pr=(Pt<N?$[Pt]:M)=="L",ca=Wt==Pr?Wt?"L":"R":M,qi=St;qi<Pt;++qi)$[qi]=ca;St=Pt-1}for(var zr=[],Kn,or=0;or<N;)if(p.test($[or])){var Lu=or;for(++or;or<N&&p.test($[or]);++or);zr.push(new y(0,Lu,or))}else{var ci=or,Lo=zr.length,_o=_=="rtl"?1:0;for(++or;or<N&&$[or]!="L";++or);for(var Er=ci;Er<or;)if(b.test($[Er])){ci<Er&&(zr.splice(Lo,0,new y(1,ci,Er)),Lo+=_o);var da=Er;for(++Er;Er<or&&b.test($[Er]);++Er);zr.splice(Lo,0,new y(2,da,Er)),Lo+=_o,ci=Er}else++Er;ci<or&&zr.splice(Lo,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 Ln=[],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]||Ln).concat(i)}};function wi(e,t){return e._handlers&&e._handlers[t]||Ln}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,u=n&&n[t];if(u){var h=Le(u,i);h>-1&&(n[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ue(e,t){var i=wi(e,t);if(!!i.length)for(var n=Array.prototype.slice.call(arguments,2),u=0;u<i.length;++u)i[u].apply(null,n)}function Vt(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ue(e,i||t.type,e,t),Qr(t)||t.codemirrorIgnore}function Io(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 wi(e,t).length>0}function _n(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 Qr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function to(e){ur(e),Ao(e)}function xi(e){return e.target||e.srcElement}function xa(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),de&&e.ctrlKey&&t==1&&(t=3),t}var za=function(){if(T&&k<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),$r;function bl(e){if($r==null){var t=E("span","\u200B");G(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 ro;function Rn(e){if(ro!=null)return ro;var t=G(e,document.createTextNode("A\u062EA")),i=ee(t,0,1).getBoundingClientRect(),n=ee(t,1,2).getBoundingClientRect();return Qe(e),!i||i.left==i.right?!1:ro=n.right-i.right<3}var no=`
|
|
2239
|
+
`];gl([H({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);gl([H({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);gl([Xe()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=gl([J(ap)],exports.InputRadio);exports.InputRadioOption=class extends Fe{render(){}};gl([H({type:String})],exports.InputRadioOption.prototype,"value",2);gl([H({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=gl([J(lp)],exports.InputRadioOption);var Qi={exports:{}};(function(s,o){(function(l,d){s.exports=d()})(bs,function(){var l=navigator.userAgent,d=navigator.platform,c=/gecko\/\d/i.test(l),g=/MSIE \d/.test(l),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),I=/Edge\/(\d+)/.exec(l),T=g||m||I,k=T&&(g?document.documentMode||6:+(I||m)[1]),A=!I&&/WebKit\//.test(l),B=A&&/Qt\/\d+\.\d+/.test(l),U=!I&&/Chrome\//.test(l),Z=/Opera\//.test(l),re=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),ge=/PhantomJS/.test(l),Me=re&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),Te=/Android/.test(l),pe=Me||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),de=Me||/Mac/.test(d),ke=/\bCrOS\b/.test(l),Pe=/win/i.test(d),Ie=Z&&l.match(/Version\/(\d*\.\d*)/);Ie&&(Ie=Number(Ie[1])),Ie&&Ie>=15&&(Z=!1,A=!0);var qe=de&&(B||Z&&(Ie==null||Ie<12.11)),je=c||T&&k>=9;function be(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var i=e.className,n=be(t).exec(i);if(n){var u=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(u?n[1]+u:"")}};function Qe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return Qe(e).appendChild(t)}function E(e,t,i,n){var u=document.createElement(e);if(i&&(u.className=i),n&&(u.style.cssText=n),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function S(e,t,i,n){var u=E(e,t,i,n);return u.setAttribute("role","presentation"),u}var ee;document.createRange?ee=function(e,t,i,n){var u=document.createRange();return u.setEnd(n||e,i),u.setStart(e,t),u}: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 me(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 rt(){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 Lt(e,t){var i=e.className;be(t).test(i)||(e.className+=(i?" ":"")+t)}function jt(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!be(i[n]).test(t)&&(t+=" "+i[n]);return t}var It=function(e){e.select()};Me?It=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(It=function(e){try{e.select()}catch{}});function Xr(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,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=n||0,p=u||0;;){var b=e.indexOf(" ",h);if(b<0||b>=t)return p+(t-h);p+=b-h,p+=i-p%i,h=b+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=Xr(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.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"}},nt={scroll:!1},it={origin:"*mouse"},Be={origin:"+move"};function Rt(e,t,i){for(var n=0,u=0;;){var h=e.indexOf(" ",n);h==-1&&(h=e.length);var p=h-n;if(h==e.length||u+p>=t)return n+Math.min(p,t-u);if(u+=h-n,u+=i-u%i,n=h+1,u>=t)return n}}var Ar=[""];function Yt(e){for(;Ar.length<=e;)Ar.push(Ke(Ar)+" ");return Ar[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,u=i(t);n<e.length&&i(e[n])<=u;)n++;e.splice(n,0,t)}function Lr(){}function Gr(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 et(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||er.test(e))}function W(e,t){return t?t.source.indexOf("\\w")>-1&&et(e)?!0:t.test(e):et(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 u=(t+i)/2,h=n<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:i;e(h)?i=h:t=h+n}}function zn(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(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",h),u=!0)}u||n(t,i,"ltr")}var Dr=null;function Nt(e,t,i){var n;Dr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&i=="before"?n=u:Dr=u),h.from==t&&(h.from!=h.to&&i!="before"?n=u:Dr=u)}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]/,u=/[stwN]/,h=/[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,he=M;we<N;++we){var xe=$[we];xe=="1"&&he=="r"?$[we]="n":h.test(xe)&&(he=xe,xe=="r"&&($[we]="R"))}for(var De=1,Ee=$[0];De<N-1;++De){var ot=$[De];ot=="+"&&Ee=="1"&&$[De+1]=="1"?$[De]="1":ot==","&&Ee==$[De+1]&&(Ee=="1"||Ee=="n")&&($[De]=Ee),Ee=ot}for(var xt=0;xt<N;++xt){var Xt=$[xt];if(Xt==",")$[xt]="N";else if(Xt=="%"){var kt=void 0;for(kt=xt+1;kt<N&&$[kt]=="%";++kt);for(var Or=xt&&$[xt-1]=="!"||kt<N&&$[kt]=="1"?"1":"N",Tr=xt;Tr<kt;++Tr)$[Tr]=Or;xt=kt-1}}for(var Gt=0,hr=M;Gt<N;++Gt){var ir=$[Gt];hr=="L"&&ir=="1"?$[Gt]="L":h.test(ir)&&(hr=ir)}for(var St=0;St<N;++St)if(u.test($[St])){var Pt=void 0;for(Pt=St+1;Pt<N&&u.test($[Pt]);++Pt);for(var Wt=(St?$[St-1]:M)=="L",Pr=(Pt<N?$[Pt]:M)=="L",ca=Wt==Pr?Wt?"L":"R":M,qi=St;qi<Pt;++qi)$[qi]=ca;St=Pt-1}for(var zr=[],Kn,or=0;or<N;)if(p.test($[or])){var Lu=or;for(++or;or<N&&p.test($[or]);++or);zr.push(new y(0,Lu,or))}else{var ci=or,_o=zr.length,So=_=="rtl"?1:0;for(++or;or<N&&$[or]!="L";++or);for(var Er=ci;Er<or;)if(b.test($[Er])){ci<Er&&(zr.splice(_o,0,new y(1,ci,Er)),_o+=So);var da=Er;for(++Er;Er<or&&b.test($[Er]);++Er);zr.splice(_o,0,new y(2,da,Er)),_o+=So,ci=Er}else++Er;ci<or&&zr.splice(_o,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 Ln=[],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]||Ln).concat(i)}};function wi(e,t){return e._handlers&&e._handlers[t]||Ln}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,u=n&&n[t];if(u){var h=Le(u,i);h>-1&&(n[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ue(e,t){var i=wi(e,t);if(!!i.length)for(var n=Array.prototype.slice.call(arguments,2),u=0;u<i.length;++u)i[u].apply(null,n)}function Vt(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ue(e,i||t.type,e,t),Qr(t)||t.codemirrorIgnore}function Io(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 wi(e,t).length>0}function _n(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 Qr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ro(e){ur(e),Ao(e)}function xi(e){return e.target||e.srcElement}function xa(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),de&&e.ctrlKey&&t==1&&(t=3),t}var za=function(){if(T&&k<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),$r;function bl(e){if($r==null){var t=E("span","\u200B");G(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 no;function Rn(e){if(no!=null)return no;var t=G(e,document.createTextNode("A\u062EA")),i=ee(t,0,1).getBoundingClientRect(),n=ee(t,1,2).getBoundingClientRect();return Qe(e),!i||i.left==i.right?!1:no=n.right-i.right<3}var io=`
|
|
2237
2240
|
|
|
2238
2241
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var u=e.indexOf(`
|
|
2239
|
-
`,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(i.push(h.slice(0,p)),t+=p+1):(i.push(h),t=u+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ml=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},yl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),La=null;function zi(e){if(La!=null)return La;var t=G(e,E("span","x")),i=t.getBoundingClientRect(),n=ee(t,0,1).getBoundingClientRect();return La=Math.abs(i.left-n.left)>1}var cn={},Jr={};function Cl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),cn[e]=t}function ti(e,t){Jr[e]=t}function io(e){if(typeof e=="string"&&Jr.hasOwnProperty(e))e=Jr[e];else if(e&&typeof e.name=="string"&&Jr.hasOwnProperty(e.name)){var t=Jr[e.name];typeof t=="string"&&(t={name:t}),e=Gr(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return io("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return io("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Do(e,t){t=io(t);var i=cn[t.name];if(!i)return Do(e,"text/plain");var n=i(e,t);if(Sn.hasOwnProperty(t.name)){var u=Sn[t.name];for(var h in u)!u.hasOwnProperty(h)||(n.hasOwnProperty(h)&&(n["_"+h]=n[h]),n[h]=u[h])}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 Sn={};function Mn(e,t){var i=Sn.hasOwnProperty(e)?Sn[e]:Sn[e]={};Ut(t,i)}function en(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var u=t[n];u instanceof Array&&(u=u.concat([])),i[n]=u}return i}function _a(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 Sa(e,t,i){return e.startState?e.startState(t,i):!0}var Dt=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};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.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},Dt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Dt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Dt.prototype.backUp=function(e){this.pos-=e},Dt.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)},Dt.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(p){return i?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(n(u)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Dt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Dt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Oe(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 u=i.children[n],h=u.chunkSize();if(t<h){i=u;break}t-=h}return i.lines[t]}function tn(e,t,i){var n=[],u=t.line;return e.iter(t.line,i.line+1,function(h){var p=h.text;u==i.line&&(p=p.slice(0,i.ch)),u==t.line&&(p=p.slice(t.ch)),n.push(p),++u}),n}function Ma(e,t,i){var n=[];return e.iter(t,i,function(u){n.push(u.text)}),n}function Vr(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 u=0;n.children[u]!=t;++u)i+=n.children[u].chunkSize();return i+t.first}function kn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var u=e.children[n],h=u.height;if(t<h){e=u;continue e}t-=h,i+=u.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 Li(e,t){return t>=e.first&&t<e.first+e.size}function $o(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 X(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 dt(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,Oe(e,i).text.length):vr(t,Oe(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 qr(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},On=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},On.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}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(e,t,i){return t instanceof ri?new On(e,en(e.mode,t.state),i,t.lookAhead):new On(e,en(e.mode,t),i)},On.prototype.save=function(e){var t=e!==!1?en(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ri(t,this.maxLookAhead):t};function Xu(e,t,i,n){var u=[e.state.modeGen],h={};Is(e,t.text,e.doc.mode,i,function(C,_){return u.push(C,_)},h,n);for(var p=i.state,b=function(C){i.baseTokens=u;var _=e.state.overlays[C],M=1,N=0;i.state=!0,Is(e,t.text,_.mode,i,function($,q){for(var te=M;N<$;){var ue=u[M];ue>$&&u.splice(M,1,$,u[M+1],ue),M+=2,N=Math.min($,ue)}if(!!q)if(_.opaque)u.splice(te,M-te,$,"overlay "+q),M=te+2;else for(;te<M;te+=2){var fe=u[te+1];u[te+1]=(fe?fe+" ":"")+"overlay "+q}},h),i.state=p,i.baseTokens=null,i.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)b(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function Es(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=No(e,bt(t)),u=t.text.length>e.options.maxHighlightLength&&en(e.doc.mode,n.state),h=Xu(e,t,n);u&&(n.state=u),t.stateAfter=n.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.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 No(e,t,i){var n=e.doc,u=e.display;if(!n.mode.startState)return new On(n,!0,t);var h=Ju(e,t,i),p=h>n.first&&Oe(n,h-1).stateAfter,b=p?On.fromSaved(n,p,h):new On(n,Sa(n.mode),h);return n.iter(h,t,function(y){ka(e,y.text,b);var C=b.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?b.save():null,b.nextLine()}),i&&(n.modeFrontier=b.line),b}function ka(e,t,i,n){var u=e.doc.mode,h=new Dt(t,e.options.tabSize,i);for(h.start=h.pos=n||0,t==""&&Qu(u,i.state);!h.eol();)wl(u,h,i.state),h.start=h.pos}function Qu(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var i=_a(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function wl(e,t,i,n){for(var u=0;u<10;u++){n&&(n[0]=_a(e,i).mode);var h=e.token(t,i);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var xl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function zl(e,t,i,n){var u=e.doc,h=u.mode,p;t=Ce(u,t);var b=Oe(u,t.line),y=No(e,t.line,i),C=new Dt(b.text,e.options.tabSize,y),_;for(n&&(_=[]);(n||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=wl(h,C,y.state),n&&_.push(new xl(C,p,en(u.mode,y.state)));return n?_:new xl(C,p,y.state)}function oo(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 Is(e,t,i,n,u,h,p){var b=i.flattenSpans;b==null&&(b=e.options.flattenSpans);var y=0,C=null,_=new Dt(t,e.options.tabSize,n),M,N=e.options.addModeClass&&[null];for(t==""&&oo(Qu(i,n.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(b=!1,p&&ka(e,t,n,_.pos),_.pos=t.length,M=null):M=oo(wl(i,_,n.state,N),h),N){var $=N[0].name;$&&(M="m-"+(M?$+" "+M:$))}if(!b||C!=M){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=M}_.start=_.pos}for(;y<_.pos;){var q=Math.min(_.pos,y+5e3);u(q,C),y=q}}function Ju(e,t,i){for(var n,u,h=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),b=t;b>p;--b){if(b<=h.first)return h.first;var y=Oe(h,b-1),C=y.stateAfter;if(C&&(!i||b+(C instanceof ri?C.lookAhead:0)<=h.modeFrontier))return b;var _=At(y.text,null,e.options.tabSize);(u==null||n>_)&&(u=b-1,n=_)}return u}function n1(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 u=Oe(e,n).stateAfter;if(u&&(!(u instanceof ri)||n+u.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var As=!1,Hn=!1;function ec(){As=!0}function tc(){Hn=!0}function Ll(e,t,i){this.marker=e,this.from=t,this.to=i}function Oa(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function i1(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function rc(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 o1(e,t,i){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,b=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(b||h.from==t&&p.type=="bookmark"&&(!i||!h.marker.insertLeft)){var y=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(n||(n=[])).push(new Ll(p,h.from,y?null:h.to))}}return n}function a1(e,t,i){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,b=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(b||h.from==t&&p.type=="bookmark"&&(!i||h.marker.insertLeft)){var y=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(n||(n=[])).push(new Ll(p,y?null:h.from-t,h.to==null?null:h.to-t))}}return n}function Ds(e,t){if(t.full)return null;var i=Li(e,t.from.line)&&Oe(e,t.from.line).markedSpans,n=Li(e,t.to.line)&&Oe(e,t.to.line).markedSpans;if(!i&&!n)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,b=o1(i,u,p),y=a1(n,h,p),C=t.text.length==1,_=Ke(t.text).length+(C?u:0);if(b)for(var M=0;M<b.length;++M){var N=b[M];if(N.to==null){var $=Oa(y,N.marker);$?C&&(N.to=$.to==null?null:$.to+_):N.to=u}}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=Oa(b,te.marker);ue||(te.from=_,C&&(b||(b=[])).push(te))}else te.from+=_,C&&(b||(b=[])).push(te)}b&&(b=nc(b)),y&&y!=b&&(y=nc(y));var fe=[b];if(!C){var we=t.text.length-2,he;if(we>0&&b)for(var xe=0;xe<b.length;++xe)b[xe].to==null&&(he||(he=[])).push(new Ll(b[xe].marker,null,null));for(var De=0;De<we;++De)fe.push(he);fe.push(y)}return fe}function nc(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 $s(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 u=[{from:t,to:i}],h=0;h<n.length;++h)for(var p=n[h],b=p.find(0),y=0;y<u.length;++y){var C=u[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}),u.splice.apply(u,_),y+=_.length-3}}return u}function ic(e){var t=e.markedSpans;if(!!t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function oc(e,t){if(!!t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function _l(e){return e.inclusiveLeft?-1:0}function Sl(e){return e.inclusiveRight?1:0}function Ns(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),u=t.find(),h=w(n.from,u.from)||_l(e)-_l(t);if(h)return-h;var p=w(n.to,u.to)||Sl(e)-Sl(t);return p||t.id-e.id}function $t(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var u=void 0,h=0;h<i.length;++h)u=i[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!n||Ns(n,u.marker)<0)&&(n=u.marker);return n}function Tt(e){return $t(e,!0)}function Ml(e){return $t(e,!1)}function l1(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var u=0;u<i.length;++u){var h=i[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!n||Ns(n,h.marker)<0)&&(n=h.marker)}return n}function ac(e,t,i,n,u){var h=Oe(e,t),p=Hn&&h.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)||_l(y.marker)-_l(u),M=w(C.to,n)||Sl(y.marker)-Sl(u);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,i)>=0:w(C.to,i)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,n)<=0:w(C.from,n)<0)))return!0}}}function Bn(e){for(var t;t=Tt(e);)e=t.find(-1,!0).line;return e}function s1(e){for(var t;t=Ml(e);)e=t.find(1,!0).line;return e}function u1(e){for(var t,i;t=Ml(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function kl(e,t){var i=Oe(e,t),n=Bn(i);return i==n?t:bt(n)}function lc(e,t){if(t>e.lastLine())return t;var i=Oe(e,t),n;if(!Ht(e,i))return t;for(;n=Ml(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,u=0;u<i.length;++u)if(n=i[u],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Ta(e,t,n))return!0}}}function Ta(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return Ta(e,n.line,Oa(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==i.to&&(u.to==null||u.to!=i.from)&&(u.marker.inclusiveLeft||i.marker.inclusiveRight)&&Ta(e,t,u))return!0}function Nr(e){e=Bn(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var u=i.lines[n];if(u==e)break;t+=u.height}for(var h=i.parent;h;i=h,h=i.parent)for(var p=0;p<h.children.length;++p){var b=h.children[p];if(b==i)break;t+=b.height}return t}function Pa(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Tt(n);){var u=i.find(0,!0);n=u.from.line,t+=u.from.ch-u.to.ch}for(n=e;i=Ml(n);){var h=i.find(0,!0);t-=n.text.length-h.from.ch,n=h.to.line,t+=n.text.length-h.to.ch}return t}function Ea(e){var t=e.display,i=e.doc;t.maxLine=Oe(i,i.first),t.maxLineLength=Pa(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var u=Pa(n);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=n)})}var br=function(e,t,i){this.text=e,oc(this,t),this.height=i?i(this):1};br.prototype.lineNo=function(){return bt(this)},_n(br);function sc(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ic(e),oc(e,i);var u=n?n(e):1;u!=e.height&&Vr(e,u)}function uc(e){e.parent=null,ic(e)}var cc={},dc={};function Rs(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?dc:cc;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Hs(e,t){var i=S("span",null,null,A?"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 u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;n.pos=0,n.addToken=c1,Rn(e.display.measure)&&(p=_r(h,e.doc.direction))&&(n.addToken=d1(n.addToken,p)),n.map=[];var b=t!=e.display.externalMeasured&&bt(h);_i(h,n,Es(e,h,b)),h.styleClasses&&(h.styleClasses.bgClass&&(n.bgClass=jt(h.styleClasses.bgClass,n.bgClass||"")),h.styleClasses.textClass&&(n.textClass=jt(h.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(bl(e.display.measure))),u==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(A){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 rn(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 c1(e,t,i,n,u,h,p){if(!!t){var b=e.splitSpaces?dn(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]==`
|
|
2240
|
-
`?(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||u||C||h||p){var we=i||"";n&&(we+=n),u&&(we+=u);var he=E("span",[_],we,h);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&he.setAttribute(xe,p[xe]);return e.content.appendChild(he)}e.content.appendChild(_)}}function dn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&i&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),n+=h,i=h==" "}return n}function d1(e,t){return function(i,n,u,h,p,b,y){u=u?u+" 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,u,h,p,b,y);e(i,n.slice(0,M.to-C),u,h,null,b,y),h=null,n=n.slice(M.to-C),C=M.to}}}function Bs(e,t,i,n){var u=!n&&i.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!n&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",i.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function _i(e,t,i){var n=e.markedSpans,u=e.text,h=0;if(!n){for(var p=1;p<i.length;p+=2)t.addToken(t,u.slice(h,h=i[p]),Rs(i[p+1],t.cm.options));return}for(var b=u.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 he=[],xe=void 0,De=0;De<n.length;++De){var Ee=n[De],ot=Ee.marker;if(ot.type=="bookmark"&&Ee.from==y&&ot.widgetNode)he.push(ot);else if(Ee.from<=y&&(Ee.to==null||Ee.to>y||ot.collapsed&&Ee.to==y&&Ee.from==y)){if(Ee.to!=null&&Ee.to!=y&&$>Ee.to&&($=Ee.to,te=""),ot.className&&(q+=" "+ot.className),ot.css&&(N=(N?N+";":"")+ot.css),ot.startStyle&&Ee.from==y&&(ue+=" "+ot.startStyle),ot.endStyle&&Ee.to==$&&(xe||(xe=[])).push(ot.endStyle,Ee.to),ot.title&&((we||(we={})).title=ot.title),ot.attributes)for(var xt in ot.attributes)(we||(we={}))[xt]=ot.attributes[xt];ot.collapsed&&(!fe||Ns(fe.marker,ot)<0)&&(fe=Ee)}else Ee.from>y&&$>Ee.from&&($=Ee.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 kt=0;kt<he.length;++kt)Bs(t,0,he[kt]);if(fe&&(fe.from||0)==y){if(Bs(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 Gt=Tr>Or?_.slice(0,Or-y):_;t.addToken(t,Gt,M?M+q:q,ue,y+Gt.length==$?te:"",N,we)}if(Tr>=Or){_=_.slice(Or-y),y=Or;break}y=Tr,ue=""}_=u.slice(h,h=i[C++]),M=Rs(i[C++],t.cm.options)}}}function Ia(e,t,i){this.line=t,this.rest=u1(t),this.size=this.rest?bt(Ke(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function Ro(e,t,i){for(var n=[],u,h=t;h<i;h=u){var p=new Ia(e.doc,Oe(e.doc,h),h);u=h+p.size,n.push(p)}return n}var _t=null;function Si(e){_t?_t.ops.push(e):e.ownsGroup=_t={ops:[e],delayedCallbacks:[]}}function Fs(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 u=e.ops[n];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(i<t.length)}function f1(e,t){var i=e.ownsGroup;if(!!i)try{Fs(i)}finally{_t=null,t(i)}}var ao=null;function rr(e,t){var i=wi(e,t);if(!!i.length){var n=Array.prototype.slice.call(arguments,2),u;_t?u=_t.delayedCallbacks:ao?u=ao:(u=ao=[],setTimeout(h1,0));for(var h=function(b){u.push(function(){return i[b].apply(null,n)})},p=0;p<i.length;++p)h(p)}}function h1(){var e=ao;ao=null;for(var t=0;t<e.length;++t)e[t]()}function fc(e,t,i,n){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?p1(e,t):h=="gutter"?Ws(e,t,i,n):h=="class"?Tl(e,t):h=="widget"&&Us(e,t,n)}t.changes=null}function Ho(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 Ol(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=Ho(t);t.background=n.insertBefore(E("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function lo(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Hs(e,t)}function p1(e,t){var i=t.text.className,n=lo(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,Tl(e,t)):i&&(t.text.className=i)}function Tl(e,t){Ol(e,t),t.line.wrapClass?Ho(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 Ws(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 u=Ho(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),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=Ho(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&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=b.appendChild(E("div",$o(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,_=h.hasOwnProperty(C)&&h[C];_&&b.appendChild(E("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[C]+"px; width: "+n.gutterWidth[C]+"px"))}}}function Us(e,t,i){t.alignable&&(t.alignable=null);for(var n=be("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,n.test(u.className)&&t.node.removeChild(u);Gs(e,t,i)}function Zs(e,t,i,n){var u=lo(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),Tl(e,t),Ws(e,t,i,n),Gs(e,t,n),t.node}function Gs(e,t,i){if(hc(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)hc(e,t.rest[n],t,i,!1)}function hc(e,t,i,n,u){if(!!t.widgets)for(var h=Ho(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"),Vs(y,C,i,n),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,i.gutter||i.text):h.appendChild(C),rr(y,"redraw")}}function Vs(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var u=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(u-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function so(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!me(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;"),G(t.display.measure,E("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function ni(e,t){for(var i=xi(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 Aa(e){return e.lineSpace.offsetTop}function Rr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Pl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=G(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 Kr(e){return He-e.display.nativeBarWidth}function Mi(e){return e.display.scroller.clientWidth-Kr(e)-e.display.barWidth}function El(e){return e.display.scroller.clientHeight-Kr(e)-e.display.barHeight}function g1(e,t,i){var n=e.options.lineWrapping,u=n&&Mi(e);if(!t.measure.heights||n&&t.measure.width!=u){var h=t.measure.heights=[];if(n){t.measure.width=u;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&&h.push((y.bottom+C.top)/2-i.top)}}h.push(i.bottom-i.top)}}function pc(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 u=0;u<e.rest.length;u++)if(bt(e.rest[u])>i)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function v1(e,t){t=Bn(t);var i=bt(t),n=e.display.externalMeasured=new Ia(e.doc,t,i);n.lineN=i;var u=n.built=Hs(e,n);return n.text=u.pre,G(e.display.lineMeasure,u.pre),n}function gc(e,t,i,n){return Fn(e,Tn(e,t),i,n)}function qs(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 Tn(e,t){var i=bt(t),n=qs(e,i);n&&!n.text?n=null:n&&n.changes&&(fc(e,n,i,jr(e)),e.curOp.forceUpdate=!0),n||(n=v1(e,t));var u=pc(n,t,i);return{line:t,view:n,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Fn(e,t,i,n,u){t.before&&(i=-1);var h=i+(n||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(g1(e,t.view,t.rect),t.hasHeights=!0),p=ki(e,t,i,n),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var vc={left:0,right:0,top:0,bottom:0};function Il(e,t,i){for(var n,u,h,p,b,y,C=0;C<e.length;C+=3)if(b=e[C],y=e[C+1],t<b?(u=0,h=1,p="left"):t<y?(u=t-b,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-b,u=h-1,t>=y&&(p="right")),u!=null){if(n=e[C+2],b==y&&i==(n.insertLeft?"left":"right")&&(p=i),i=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)n=e[(C-=3)+2],p="left";if(i=="right"&&u==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:u,end:h,collapse:p,coverStart:b,coverEnd:y}}function bc(e,t){var i=vc;if(t=="left")for(var n=0;n<e.length&&(i=e[n]).left==i.right;n++);else for(var u=e.length-1;u>=0&&(i=e[u]).left==i.right;u--);return i}function ki(e,t,i,n){var u=Il(t.map,i,n),h=u.node,p=u.start,b=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;p&&Ye(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+b<u.coverEnd&&Ye(t.line.text.charAt(u.coverStart+b));)++b;if(T&&k<9&&p==0&&b==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=bc(ee(h,p,b).getClientRects(),n),C.left||C.right||p==0)break;b=p,p=p-1,y="right"}T&&k<11&&(C=Al(e.display.measure,C))}else{p>0&&(y=n="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[n=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(T&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Bo(e.display),top:N.top,bottom:N.bottom}:C=vc}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,he=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:he};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=$,xe.rbottom=q),xe}function Al(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!zi(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 mc(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 yc(e){e.display.externalMeasure=null,Qe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)mc(e.display.view[t])}function Da(e){yc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function uo(){return U&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fn(){return U&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Dl(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=so(e.widgets[i]));return t}function $l(e,t,i,n,u){if(!u){var h=Dl(t);i.top+=h,i.bottom+=h}if(n=="line")return i;n||(n="local");var p=Nr(t);if(n=="local"?p+=Aa(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:uo());i.left+=y,i.right+=y}return i.top+=p,i.bottom+=p,i}function Cc(e,t,i){if(i=="div")return t;var n=t.left,u=t.top;if(i=="page")n-=uo(),u-=fn();else if(i=="local"||!i){var h=e.display.sizer.getBoundingClientRect();n+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:n-p.left,top:u-p.top}}function Nl(e,t,i,n,u){return n||(n=Oe(e.doc,t.line)),$l(e,n,gc(e,n,t.ch,u),i)}function Pn(e,t,i,n,u,h){n=n||Oe(e.doc,t.line),u||(u=Tn(e,n));function p(q,te){var ue=Fn(e,u,q,te?"right":"left",h);return te?ue.left=ue.right:ue.right=ue.left,$l(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 wc(e,t){var i=0;t=Ce(e.doc,t),e.options.lineWrapping||(i=Bo(e.display)*t.ch);var n=Oe(e.doc,t.line),u=Nr(n)+Aa(e.display);return{left:i,right:i,top:u,bottom:u+n.height}}function Oi(e,t,i,n,u){var h=oe(e,t,i);return h.xRel=u,n&&(h.outside=n),h}function R(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Oi(n.first,0,null,-1,-1);var u=kn(n,i),h=n.first+n.size-1;if(u>h)return Oi(n.first+n.size-1,Oe(n,h).text.length,null,1,1);t<0&&(t=0);for(var p=Oe(n,u);;){var b=Je(e,p,u,t,i),y=l1(p,b.ch+(b.xRel>0||b.outside>0?1:0));if(!y)return b;var C=y.find(1);if(C.line==u)return C;p=Oe(n,u=C.line)}}function Q(e,t,i,n){n-=Dl(t);var u=t.text.length,h=pr(function(p){return Fn(e,i,p-1).bottom<=n},u,0);return u=pr(function(p){return Fn(e,i,p).top>n},h,u),{begin:h,end:u}}function V(e,t,i,n){i||(i=Tn(e,t));var u=$l(e,t,Fn(e,i,n),"line").top;return Q(e,t,i,u)}function _e(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Je(e,t,i,n,u){u-=Nr(t);var h=Tn(e,t),p=Dl(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,h,_,n,u);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 Ee=Fn(e,h,De);return Ee.top+=p,Ee.bottom+=p,_e(Ee,n,u,!1)?(Ee.top<=u&&Ee.left<=n&&(N=De,$=Ee),!0):!1},b,y),te,ue,fe=!1;if($){var we=n-$.left<$.right-n,he=we==C;q=N+(he?0:1),ue=he?"after":"before",te=we?$.left:$.right}else{!C&&(q==y||q==b)&&q++,ue=q==0?"after":q==t.text.length?"before":Fn(e,h,q-(C?1:0)).bottom+p<=u==C?"after":"before";var xe=Pn(e,oe(i,q,ue),"line",t,h);te=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return q=tr(t.text,q,1),Oi(i,q,ue,fe,n-te)}function Ct(e,t,i,n,u,h,p){var b=pr(function(M){var N=u[M],$=N.level!=1;return _e(Pn(e,oe(i,$?N.to:N.from,$?"before":"after"),"line",t,n),h,p,!0)},0,u.length-1),y=u[b];if(b>0){var C=y.level!=1,_=Pn(e,oe(i,C?y.from:y.to,C?"after":"before"),"line",t,n);_e(_,h,p,!0)&&_.top>p&&(y=u[b-1])}return y}function nr(e,t,i,n,u,h,p){var b=Q(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<u.length;N++){var $=u[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<h?h-te+1e9:te-h;(!_||M>ue)&&(_=$,M=ue)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var gt;function Ti(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"))}G(e.measure,gt);var i=gt.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Qe(e.measure),i||1}function Bo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),i=E("pre",[t],"CodeMirror-line-like");G(e.measure,i);var n=t.getBoundingClientRect(),u=(n.right-n.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function jr(e){for(var t=e.display,i={},n={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var b=e.display.gutterSpecs[p].className;i[b]=h.offsetLeft+h.clientLeft+u,n[b]=h.clientWidth}return{fixedPos:Fo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Fo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xc(e){var t=Ti(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Bo(e.display)-3);return function(u){if(Ht(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return i?h+(Math.ceil(u.text.length/n)||1)*t:h+t}}function Pi(e){var t=e.doc,i=xc(e);t.iter(function(n){var u=i(n);u!=n.height&&Vr(n,u)})}function Wn(e,t,i,n){var u=e.display;if(!i&&xi(t).getAttribute("cm-not-content")=="true")return null;var h,p,b=u.lineSpace.getBoundingClientRect();try{h=t.clientX-b.left,p=t.clientY-b.top}catch{return null}var y=R(e,h,p),C;if(n&&y.xRel>0&&(C=Oe(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((h-Pl(e.display).left)/Bo(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 tt(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var u=e.display;if(n&&i<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)Hn&&kl(e.doc,t)<u.viewTo&&ii(e);else if(i<=u.viewFrom)Hn&&lc(e.doc,i+n)>u.viewFrom?ii(e):(u.viewFrom+=n,u.viewTo+=n);else if(t<=u.viewFrom&&i>=u.viewTo)ii(e);else if(t<=u.viewFrom){var h=co(e,i,i+n,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=n):ii(e)}else if(i>=u.viewTo){var p=co(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):ii(e)}else{var b=co(e,t,t,-1),y=co(e,i,i+n,1);b&&y?(u.view=u.view.slice(0,b.index).concat(Ro(e,b.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=n):ii(e)}var C=u.externalMeasured;C&&(i<C.lineN?C.lineN+=n:t<C.lineN+C.size&&(u.externalMeasured=null))}function Ei(e,t,i){e.curOp.viewChanged=!0;var n=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var h=n.view[Un(e,t)];if(h.node!=null){var p=h.changes||(h.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 co(e,t,i,n){var u=Un(e,t),h,p=e.display.view;if(!Hn||i==e.doc.first+e.doc.size)return{index:u,lineN:i};for(var b=e.display.viewFrom,y=0;y<u;y++)b+=p[y].size;if(b!=t){if(n>0){if(u==p.length-1)return null;h=b+p[u].size-t,u++}else h=b-t;t+=h,i+=h}for(;kl(e.doc,i)!=i;){if(u==(n<0?0:p.length-1))return null;i+=n*p[u-(n<0?1:0)].size,u+=n}return{index:u,lineN:i}}function b1(e,t,i){var n=e.display,u=n.view;u.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=Ro(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=Ro(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(Ro(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function zc(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var u=t[n];!u.hidden&&(!u.node||u.changes)&&++i}return i}function $a(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Na(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},u=n.cursors=document.createDocumentFragment(),h=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,u),y||Lc(e,b,h)}}return n}function oi(e,t,i){var n=Pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=i.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=n.left+"px",u.style.top=n.top+"px",u.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=Nl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.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 fo(e,t){return e.top-t.top||e.left-t.left}function Lc(e,t,i){var n=e.display,u=e.doc,h=document.createDocumentFragment(),p=Pl(e.display),b=p.left,y=Math.max(n.sizerWidth,Mi(e)-n.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function _(he,xe,De,Ee){xe<0&&(xe=0),xe=Math.round(xe),Ee=Math.round(Ee),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+he+`px;
|
|
2242
|
+
`,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(i.push(h.slice(0,p)),t+=p+1):(i.push(h),t=u+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ml=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},yl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),La=null;function zi(e){if(La!=null)return La;var t=G(e,E("span","x")),i=t.getBoundingClientRect(),n=ee(t,0,1).getBoundingClientRect();return La=Math.abs(i.left-n.left)>1}var cn={},Jr={};function Cl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),cn[e]=t}function ti(e,t){Jr[e]=t}function oo(e){if(typeof e=="string"&&Jr.hasOwnProperty(e))e=Jr[e];else if(e&&typeof e.name=="string"&&Jr.hasOwnProperty(e.name)){var t=Jr[e.name];typeof t=="string"&&(t={name:t}),e=Gr(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return oo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return oo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Do(e,t){t=oo(t);var i=cn[t.name];if(!i)return Do(e,"text/plain");var n=i(e,t);if(Sn.hasOwnProperty(t.name)){var u=Sn[t.name];for(var h in u)!u.hasOwnProperty(h)||(n.hasOwnProperty(h)&&(n["_"+h]=n[h]),n[h]=u[h])}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 Sn={};function Mn(e,t){var i=Sn.hasOwnProperty(e)?Sn[e]:Sn[e]={};Ut(t,i)}function en(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var u=t[n];u instanceof Array&&(u=u.concat([])),i[n]=u}return i}function _a(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 Sa(e,t,i){return e.startState?e.startState(t,i):!0}var Dt=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};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.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},Dt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Dt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Dt.prototype.backUp=function(e){this.pos-=e},Dt.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)},Dt.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(p){return i?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(n(u)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Dt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Dt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Oe(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 u=i.children[n],h=u.chunkSize();if(t<h){i=u;break}t-=h}return i.lines[t]}function tn(e,t,i){var n=[],u=t.line;return e.iter(t.line,i.line+1,function(h){var p=h.text;u==i.line&&(p=p.slice(0,i.ch)),u==t.line&&(p=p.slice(t.ch)),n.push(p),++u}),n}function Ma(e,t,i){var n=[];return e.iter(t,i,function(u){n.push(u.text)}),n}function Vr(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 u=0;n.children[u]!=t;++u)i+=n.children[u].chunkSize();return i+t.first}function kn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var u=e.children[n],h=u.height;if(t<h){e=u;continue e}t-=h,i+=u.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 Li(e,t){return t>=e.first&&t<e.first+e.size}function $o(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 X(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 dt(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,Oe(e,i).text.length):vr(t,Oe(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 qr(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},On=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},On.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}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(e,t,i){return t instanceof ri?new On(e,en(e.mode,t.state),i,t.lookAhead):new On(e,en(e.mode,t),i)},On.prototype.save=function(e){var t=e!==!1?en(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ri(t,this.maxLookAhead):t};function Xu(e,t,i,n){var u=[e.state.modeGen],h={};Is(e,t.text,e.doc.mode,i,function(C,_){return u.push(C,_)},h,n);for(var p=i.state,b=function(C){i.baseTokens=u;var _=e.state.overlays[C],M=1,N=0;i.state=!0,Is(e,t.text,_.mode,i,function($,q){for(var te=M;N<$;){var ue=u[M];ue>$&&u.splice(M,1,$,u[M+1],ue),M+=2,N=Math.min($,ue)}if(!!q)if(_.opaque)u.splice(te,M-te,$,"overlay "+q),M=te+2;else for(;te<M;te+=2){var fe=u[te+1];u[te+1]=(fe?fe+" ":"")+"overlay "+q}},h),i.state=p,i.baseTokens=null,i.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)b(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function Es(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=No(e,bt(t)),u=t.text.length>e.options.maxHighlightLength&&en(e.doc.mode,n.state),h=Xu(e,t,n);u&&(n.state=u),t.stateAfter=n.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.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 No(e,t,i){var n=e.doc,u=e.display;if(!n.mode.startState)return new On(n,!0,t);var h=Ju(e,t,i),p=h>n.first&&Oe(n,h-1).stateAfter,b=p?On.fromSaved(n,p,h):new On(n,Sa(n.mode),h);return n.iter(h,t,function(y){ka(e,y.text,b);var C=b.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?b.save():null,b.nextLine()}),i&&(n.modeFrontier=b.line),b}function ka(e,t,i,n){var u=e.doc.mode,h=new Dt(t,e.options.tabSize,i);for(h.start=h.pos=n||0,t==""&&Qu(u,i.state);!h.eol();)wl(u,h,i.state),h.start=h.pos}function Qu(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var i=_a(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function wl(e,t,i,n){for(var u=0;u<10;u++){n&&(n[0]=_a(e,i).mode);var h=e.token(t,i);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var xl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function zl(e,t,i,n){var u=e.doc,h=u.mode,p;t=Ce(u,t);var b=Oe(u,t.line),y=No(e,t.line,i),C=new Dt(b.text,e.options.tabSize,y),_;for(n&&(_=[]);(n||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=wl(h,C,y.state),n&&_.push(new xl(C,p,en(u.mode,y.state)));return n?_:new xl(C,p,y.state)}function ao(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 Is(e,t,i,n,u,h,p){var b=i.flattenSpans;b==null&&(b=e.options.flattenSpans);var y=0,C=null,_=new Dt(t,e.options.tabSize,n),M,N=e.options.addModeClass&&[null];for(t==""&&ao(Qu(i,n.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(b=!1,p&&ka(e,t,n,_.pos),_.pos=t.length,M=null):M=ao(wl(i,_,n.state,N),h),N){var $=N[0].name;$&&(M="m-"+(M?$+" "+M:$))}if(!b||C!=M){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=M}_.start=_.pos}for(;y<_.pos;){var q=Math.min(_.pos,y+5e3);u(q,C),y=q}}function Ju(e,t,i){for(var n,u,h=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),b=t;b>p;--b){if(b<=h.first)return h.first;var y=Oe(h,b-1),C=y.stateAfter;if(C&&(!i||b+(C instanceof ri?C.lookAhead:0)<=h.modeFrontier))return b;var _=At(y.text,null,e.options.tabSize);(u==null||n>_)&&(u=b-1,n=_)}return u}function n1(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 u=Oe(e,n).stateAfter;if(u&&(!(u instanceof ri)||n+u.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var As=!1,Hn=!1;function ec(){As=!0}function tc(){Hn=!0}function Ll(e,t,i){this.marker=e,this.from=t,this.to=i}function Oa(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function i1(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function rc(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 o1(e,t,i){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,b=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(b||h.from==t&&p.type=="bookmark"&&(!i||!h.marker.insertLeft)){var y=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(n||(n=[])).push(new Ll(p,h.from,y?null:h.to))}}return n}function a1(e,t,i){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,b=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(b||h.from==t&&p.type=="bookmark"&&(!i||h.marker.insertLeft)){var y=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(n||(n=[])).push(new Ll(p,y?null:h.from-t,h.to==null?null:h.to-t))}}return n}function Ds(e,t){if(t.full)return null;var i=Li(e,t.from.line)&&Oe(e,t.from.line).markedSpans,n=Li(e,t.to.line)&&Oe(e,t.to.line).markedSpans;if(!i&&!n)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,b=o1(i,u,p),y=a1(n,h,p),C=t.text.length==1,_=Ke(t.text).length+(C?u:0);if(b)for(var M=0;M<b.length;++M){var N=b[M];if(N.to==null){var $=Oa(y,N.marker);$?C&&(N.to=$.to==null?null:$.to+_):N.to=u}}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=Oa(b,te.marker);ue||(te.from=_,C&&(b||(b=[])).push(te))}else te.from+=_,C&&(b||(b=[])).push(te)}b&&(b=nc(b)),y&&y!=b&&(y=nc(y));var fe=[b];if(!C){var we=t.text.length-2,he;if(we>0&&b)for(var xe=0;xe<b.length;++xe)b[xe].to==null&&(he||(he=[])).push(new Ll(b[xe].marker,null,null));for(var De=0;De<we;++De)fe.push(he);fe.push(y)}return fe}function nc(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 $s(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 u=[{from:t,to:i}],h=0;h<n.length;++h)for(var p=n[h],b=p.find(0),y=0;y<u.length;++y){var C=u[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}),u.splice.apply(u,_),y+=_.length-3}}return u}function ic(e){var t=e.markedSpans;if(!!t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function oc(e,t){if(!!t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function _l(e){return e.inclusiveLeft?-1:0}function Sl(e){return e.inclusiveRight?1:0}function Ns(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),u=t.find(),h=w(n.from,u.from)||_l(e)-_l(t);if(h)return-h;var p=w(n.to,u.to)||Sl(e)-Sl(t);return p||t.id-e.id}function $t(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var u=void 0,h=0;h<i.length;++h)u=i[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!n||Ns(n,u.marker)<0)&&(n=u.marker);return n}function Tt(e){return $t(e,!0)}function Ml(e){return $t(e,!1)}function l1(e,t){var i=Hn&&e.markedSpans,n;if(i)for(var u=0;u<i.length;++u){var h=i[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!n||Ns(n,h.marker)<0)&&(n=h.marker)}return n}function ac(e,t,i,n,u){var h=Oe(e,t),p=Hn&&h.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)||_l(y.marker)-_l(u),M=w(C.to,n)||Sl(y.marker)-Sl(u);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,i)>=0:w(C.to,i)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,n)<=0:w(C.from,n)<0)))return!0}}}function Bn(e){for(var t;t=Tt(e);)e=t.find(-1,!0).line;return e}function s1(e){for(var t;t=Ml(e);)e=t.find(1,!0).line;return e}function u1(e){for(var t,i;t=Ml(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function kl(e,t){var i=Oe(e,t),n=Bn(i);return i==n?t:bt(n)}function lc(e,t){if(t>e.lastLine())return t;var i=Oe(e,t),n;if(!Ht(e,i))return t;for(;n=Ml(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,u=0;u<i.length;++u)if(n=i[u],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Ta(e,t,n))return!0}}}function Ta(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return Ta(e,n.line,Oa(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==i.to&&(u.to==null||u.to!=i.from)&&(u.marker.inclusiveLeft||i.marker.inclusiveRight)&&Ta(e,t,u))return!0}function Nr(e){e=Bn(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var u=i.lines[n];if(u==e)break;t+=u.height}for(var h=i.parent;h;i=h,h=i.parent)for(var p=0;p<h.children.length;++p){var b=h.children[p];if(b==i)break;t+=b.height}return t}function Pa(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Tt(n);){var u=i.find(0,!0);n=u.from.line,t+=u.from.ch-u.to.ch}for(n=e;i=Ml(n);){var h=i.find(0,!0);t-=n.text.length-h.from.ch,n=h.to.line,t+=n.text.length-h.to.ch}return t}function Ea(e){var t=e.display,i=e.doc;t.maxLine=Oe(i,i.first),t.maxLineLength=Pa(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var u=Pa(n);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=n)})}var br=function(e,t,i){this.text=e,oc(this,t),this.height=i?i(this):1};br.prototype.lineNo=function(){return bt(this)},_n(br);function sc(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ic(e),oc(e,i);var u=n?n(e):1;u!=e.height&&Vr(e,u)}function uc(e){e.parent=null,ic(e)}var cc={},dc={};function Rs(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?dc:cc;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Hs(e,t){var i=S("span",null,null,A?"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 u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;n.pos=0,n.addToken=c1,Rn(e.display.measure)&&(p=_r(h,e.doc.direction))&&(n.addToken=d1(n.addToken,p)),n.map=[];var b=t!=e.display.externalMeasured&&bt(h);_i(h,n,Es(e,h,b)),h.styleClasses&&(h.styleClasses.bgClass&&(n.bgClass=jt(h.styleClasses.bgClass,n.bgClass||"")),h.styleClasses.textClass&&(n.textClass=jt(h.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(bl(e.display.measure))),u==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(A){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 rn(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 c1(e,t,i,n,u,h,p){if(!!t){var b=e.splitSpaces?dn(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]==`
|
|
2243
|
+
`?(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||u||C||h||p){var we=i||"";n&&(we+=n),u&&(we+=u);var he=E("span",[_],we,h);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&he.setAttribute(xe,p[xe]);return e.content.appendChild(he)}e.content.appendChild(_)}}function dn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&i&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),n+=h,i=h==" "}return n}function d1(e,t){return function(i,n,u,h,p,b,y){u=u?u+" 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,u,h,p,b,y);e(i,n.slice(0,M.to-C),u,h,null,b,y),h=null,n=n.slice(M.to-C),C=M.to}}}function Bs(e,t,i,n){var u=!n&&i.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!n&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",i.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function _i(e,t,i){var n=e.markedSpans,u=e.text,h=0;if(!n){for(var p=1;p<i.length;p+=2)t.addToken(t,u.slice(h,h=i[p]),Rs(i[p+1],t.cm.options));return}for(var b=u.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 he=[],xe=void 0,De=0;De<n.length;++De){var Ee=n[De],ot=Ee.marker;if(ot.type=="bookmark"&&Ee.from==y&&ot.widgetNode)he.push(ot);else if(Ee.from<=y&&(Ee.to==null||Ee.to>y||ot.collapsed&&Ee.to==y&&Ee.from==y)){if(Ee.to!=null&&Ee.to!=y&&$>Ee.to&&($=Ee.to,te=""),ot.className&&(q+=" "+ot.className),ot.css&&(N=(N?N+";":"")+ot.css),ot.startStyle&&Ee.from==y&&(ue+=" "+ot.startStyle),ot.endStyle&&Ee.to==$&&(xe||(xe=[])).push(ot.endStyle,Ee.to),ot.title&&((we||(we={})).title=ot.title),ot.attributes)for(var xt in ot.attributes)(we||(we={}))[xt]=ot.attributes[xt];ot.collapsed&&(!fe||Ns(fe.marker,ot)<0)&&(fe=Ee)}else Ee.from>y&&$>Ee.from&&($=Ee.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 kt=0;kt<he.length;++kt)Bs(t,0,he[kt]);if(fe&&(fe.from||0)==y){if(Bs(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 Gt=Tr>Or?_.slice(0,Or-y):_;t.addToken(t,Gt,M?M+q:q,ue,y+Gt.length==$?te:"",N,we)}if(Tr>=Or){_=_.slice(Or-y),y=Or;break}y=Tr,ue=""}_=u.slice(h,h=i[C++]),M=Rs(i[C++],t.cm.options)}}}function Ia(e,t,i){this.line=t,this.rest=u1(t),this.size=this.rest?bt(Ke(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function Ro(e,t,i){for(var n=[],u,h=t;h<i;h=u){var p=new Ia(e.doc,Oe(e.doc,h),h);u=h+p.size,n.push(p)}return n}var _t=null;function Si(e){_t?_t.ops.push(e):e.ownsGroup=_t={ops:[e],delayedCallbacks:[]}}function Fs(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 u=e.ops[n];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(i<t.length)}function f1(e,t){var i=e.ownsGroup;if(!!i)try{Fs(i)}finally{_t=null,t(i)}}var lo=null;function rr(e,t){var i=wi(e,t);if(!!i.length){var n=Array.prototype.slice.call(arguments,2),u;_t?u=_t.delayedCallbacks:lo?u=lo:(u=lo=[],setTimeout(h1,0));for(var h=function(b){u.push(function(){return i[b].apply(null,n)})},p=0;p<i.length;++p)h(p)}}function h1(){var e=lo;lo=null;for(var t=0;t<e.length;++t)e[t]()}function fc(e,t,i,n){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?p1(e,t):h=="gutter"?Ws(e,t,i,n):h=="class"?Tl(e,t):h=="widget"&&Us(e,t,n)}t.changes=null}function Ho(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 Ol(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=Ho(t);t.background=n.insertBefore(E("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function so(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Hs(e,t)}function p1(e,t){var i=t.text.className,n=so(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,Tl(e,t)):i&&(t.text.className=i)}function Tl(e,t){Ol(e,t),t.line.wrapClass?Ho(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 Ws(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 u=Ho(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),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=Ho(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&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=b.appendChild(E("div",$o(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,_=h.hasOwnProperty(C)&&h[C];_&&b.appendChild(E("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[C]+"px; width: "+n.gutterWidth[C]+"px"))}}}function Us(e,t,i){t.alignable&&(t.alignable=null);for(var n=be("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,n.test(u.className)&&t.node.removeChild(u);Gs(e,t,i)}function Zs(e,t,i,n){var u=so(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),Tl(e,t),Ws(e,t,i,n),Gs(e,t,n),t.node}function Gs(e,t,i){if(hc(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)hc(e,t.rest[n],t,i,!1)}function hc(e,t,i,n,u){if(!!t.widgets)for(var h=Ho(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"),Vs(y,C,i,n),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,i.gutter||i.text):h.appendChild(C),rr(y,"redraw")}}function Vs(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var u=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(u-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function uo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!me(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;"),G(t.display.measure,E("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function ni(e,t){for(var i=xi(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 Aa(e){return e.lineSpace.offsetTop}function Rr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Pl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=G(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 Kr(e){return He-e.display.nativeBarWidth}function Mi(e){return e.display.scroller.clientWidth-Kr(e)-e.display.barWidth}function El(e){return e.display.scroller.clientHeight-Kr(e)-e.display.barHeight}function g1(e,t,i){var n=e.options.lineWrapping,u=n&&Mi(e);if(!t.measure.heights||n&&t.measure.width!=u){var h=t.measure.heights=[];if(n){t.measure.width=u;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&&h.push((y.bottom+C.top)/2-i.top)}}h.push(i.bottom-i.top)}}function pc(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 u=0;u<e.rest.length;u++)if(bt(e.rest[u])>i)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function v1(e,t){t=Bn(t);var i=bt(t),n=e.display.externalMeasured=new Ia(e.doc,t,i);n.lineN=i;var u=n.built=Hs(e,n);return n.text=u.pre,G(e.display.lineMeasure,u.pre),n}function gc(e,t,i,n){return Fn(e,Tn(e,t),i,n)}function qs(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 Tn(e,t){var i=bt(t),n=qs(e,i);n&&!n.text?n=null:n&&n.changes&&(fc(e,n,i,jr(e)),e.curOp.forceUpdate=!0),n||(n=v1(e,t));var u=pc(n,t,i);return{line:t,view:n,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Fn(e,t,i,n,u){t.before&&(i=-1);var h=i+(n||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(g1(e,t.view,t.rect),t.hasHeights=!0),p=ki(e,t,i,n),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var vc={left:0,right:0,top:0,bottom:0};function Il(e,t,i){for(var n,u,h,p,b,y,C=0;C<e.length;C+=3)if(b=e[C],y=e[C+1],t<b?(u=0,h=1,p="left"):t<y?(u=t-b,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-b,u=h-1,t>=y&&(p="right")),u!=null){if(n=e[C+2],b==y&&i==(n.insertLeft?"left":"right")&&(p=i),i=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)n=e[(C-=3)+2],p="left";if(i=="right"&&u==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:u,end:h,collapse:p,coverStart:b,coverEnd:y}}function bc(e,t){var i=vc;if(t=="left")for(var n=0;n<e.length&&(i=e[n]).left==i.right;n++);else for(var u=e.length-1;u>=0&&(i=e[u]).left==i.right;u--);return i}function ki(e,t,i,n){var u=Il(t.map,i,n),h=u.node,p=u.start,b=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;p&&Ye(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+b<u.coverEnd&&Ye(t.line.text.charAt(u.coverStart+b));)++b;if(T&&k<9&&p==0&&b==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=bc(ee(h,p,b).getClientRects(),n),C.left||C.right||p==0)break;b=p,p=p-1,y="right"}T&&k<11&&(C=Al(e.display.measure,C))}else{p>0&&(y=n="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[n=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(T&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Bo(e.display),top:N.top,bottom:N.bottom}:C=vc}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,he=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:he};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=$,xe.rbottom=q),xe}function Al(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!zi(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 mc(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 yc(e){e.display.externalMeasure=null,Qe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)mc(e.display.view[t])}function Da(e){yc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function co(){return U&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fn(){return U&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Dl(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=uo(e.widgets[i]));return t}function $l(e,t,i,n,u){if(!u){var h=Dl(t);i.top+=h,i.bottom+=h}if(n=="line")return i;n||(n="local");var p=Nr(t);if(n=="local"?p+=Aa(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:co());i.left+=y,i.right+=y}return i.top+=p,i.bottom+=p,i}function Cc(e,t,i){if(i=="div")return t;var n=t.left,u=t.top;if(i=="page")n-=co(),u-=fn();else if(i=="local"||!i){var h=e.display.sizer.getBoundingClientRect();n+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:n-p.left,top:u-p.top}}function Nl(e,t,i,n,u){return n||(n=Oe(e.doc,t.line)),$l(e,n,gc(e,n,t.ch,u),i)}function Pn(e,t,i,n,u,h){n=n||Oe(e.doc,t.line),u||(u=Tn(e,n));function p(q,te){var ue=Fn(e,u,q,te?"right":"left",h);return te?ue.left=ue.right:ue.right=ue.left,$l(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 wc(e,t){var i=0;t=Ce(e.doc,t),e.options.lineWrapping||(i=Bo(e.display)*t.ch);var n=Oe(e.doc,t.line),u=Nr(n)+Aa(e.display);return{left:i,right:i,top:u,bottom:u+n.height}}function Oi(e,t,i,n,u){var h=oe(e,t,i);return h.xRel=u,n&&(h.outside=n),h}function R(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Oi(n.first,0,null,-1,-1);var u=kn(n,i),h=n.first+n.size-1;if(u>h)return Oi(n.first+n.size-1,Oe(n,h).text.length,null,1,1);t<0&&(t=0);for(var p=Oe(n,u);;){var b=Je(e,p,u,t,i),y=l1(p,b.ch+(b.xRel>0||b.outside>0?1:0));if(!y)return b;var C=y.find(1);if(C.line==u)return C;p=Oe(n,u=C.line)}}function Q(e,t,i,n){n-=Dl(t);var u=t.text.length,h=pr(function(p){return Fn(e,i,p-1).bottom<=n},u,0);return u=pr(function(p){return Fn(e,i,p).top>n},h,u),{begin:h,end:u}}function V(e,t,i,n){i||(i=Tn(e,t));var u=$l(e,t,Fn(e,i,n),"line").top;return Q(e,t,i,u)}function _e(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Je(e,t,i,n,u){u-=Nr(t);var h=Tn(e,t),p=Dl(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,h,_,n,u);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 Ee=Fn(e,h,De);return Ee.top+=p,Ee.bottom+=p,_e(Ee,n,u,!1)?(Ee.top<=u&&Ee.left<=n&&(N=De,$=Ee),!0):!1},b,y),te,ue,fe=!1;if($){var we=n-$.left<$.right-n,he=we==C;q=N+(he?0:1),ue=he?"after":"before",te=we?$.left:$.right}else{!C&&(q==y||q==b)&&q++,ue=q==0?"after":q==t.text.length?"before":Fn(e,h,q-(C?1:0)).bottom+p<=u==C?"after":"before";var xe=Pn(e,oe(i,q,ue),"line",t,h);te=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return q=tr(t.text,q,1),Oi(i,q,ue,fe,n-te)}function Ct(e,t,i,n,u,h,p){var b=pr(function(M){var N=u[M],$=N.level!=1;return _e(Pn(e,oe(i,$?N.to:N.from,$?"before":"after"),"line",t,n),h,p,!0)},0,u.length-1),y=u[b];if(b>0){var C=y.level!=1,_=Pn(e,oe(i,C?y.from:y.to,C?"after":"before"),"line",t,n);_e(_,h,p,!0)&&_.top>p&&(y=u[b-1])}return y}function nr(e,t,i,n,u,h,p){var b=Q(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<u.length;N++){var $=u[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<h?h-te+1e9:te-h;(!_||M>ue)&&(_=$,M=ue)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var gt;function Ti(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"))}G(e.measure,gt);var i=gt.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Qe(e.measure),i||1}function Bo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),i=E("pre",[t],"CodeMirror-line-like");G(e.measure,i);var n=t.getBoundingClientRect(),u=(n.right-n.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function jr(e){for(var t=e.display,i={},n={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var b=e.display.gutterSpecs[p].className;i[b]=h.offsetLeft+h.clientLeft+u,n[b]=h.clientWidth}return{fixedPos:Fo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Fo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xc(e){var t=Ti(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Bo(e.display)-3);return function(u){if(Ht(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return i?h+(Math.ceil(u.text.length/n)||1)*t:h+t}}function Pi(e){var t=e.doc,i=xc(e);t.iter(function(n){var u=i(n);u!=n.height&&Vr(n,u)})}function Wn(e,t,i,n){var u=e.display;if(!i&&xi(t).getAttribute("cm-not-content")=="true")return null;var h,p,b=u.lineSpace.getBoundingClientRect();try{h=t.clientX-b.left,p=t.clientY-b.top}catch{return null}var y=R(e,h,p),C;if(n&&y.xRel>0&&(C=Oe(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((h-Pl(e.display).left)/Bo(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 tt(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var u=e.display;if(n&&i<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)Hn&&kl(e.doc,t)<u.viewTo&&ii(e);else if(i<=u.viewFrom)Hn&&lc(e.doc,i+n)>u.viewFrom?ii(e):(u.viewFrom+=n,u.viewTo+=n);else if(t<=u.viewFrom&&i>=u.viewTo)ii(e);else if(t<=u.viewFrom){var h=fo(e,i,i+n,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=n):ii(e)}else if(i>=u.viewTo){var p=fo(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):ii(e)}else{var b=fo(e,t,t,-1),y=fo(e,i,i+n,1);b&&y?(u.view=u.view.slice(0,b.index).concat(Ro(e,b.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=n):ii(e)}var C=u.externalMeasured;C&&(i<C.lineN?C.lineN+=n:t<C.lineN+C.size&&(u.externalMeasured=null))}function Ei(e,t,i){e.curOp.viewChanged=!0;var n=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var h=n.view[Un(e,t)];if(h.node!=null){var p=h.changes||(h.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 fo(e,t,i,n){var u=Un(e,t),h,p=e.display.view;if(!Hn||i==e.doc.first+e.doc.size)return{index:u,lineN:i};for(var b=e.display.viewFrom,y=0;y<u;y++)b+=p[y].size;if(b!=t){if(n>0){if(u==p.length-1)return null;h=b+p[u].size-t,u++}else h=b-t;t+=h,i+=h}for(;kl(e.doc,i)!=i;){if(u==(n<0?0:p.length-1))return null;i+=n*p[u-(n<0?1:0)].size,u+=n}return{index:u,lineN:i}}function b1(e,t,i){var n=e.display,u=n.view;u.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=Ro(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=Ro(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(Ro(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function zc(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var u=t[n];!u.hidden&&(!u.node||u.changes)&&++i}return i}function $a(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Na(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},u=n.cursors=document.createDocumentFragment(),h=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,u),y||Lc(e,b,h)}}return n}function oi(e,t,i){var n=Pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=i.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=n.left+"px",u.style.top=n.top+"px",u.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=Nl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.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 ho(e,t){return e.top-t.top||e.left-t.left}function Lc(e,t,i){var n=e.display,u=e.doc,h=document.createDocumentFragment(),p=Pl(e.display),b=p.left,y=Math.max(n.sizerWidth,Mi(e)-n.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function _(he,xe,De,Ee){xe<0&&(xe=0),xe=Math.round(xe),Ee=Math.round(Ee),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+he+`px;
|
|
2241
2244
|
top: `+xe+"px; width: "+(De==null?y-he:De)+`px;
|
|
2242
|
-
height: `+(Ee-xe)+"px"))}function M(he,xe,De){var Ee=Oe(u,he),ot=Ee.text.length,xt,Xt;function kt(Gt,hr){return Nl(e,oe(he,Gt),"div",Ee,hr)}function Or(Gt,hr,ir){var St=V(e,Ee,null,Gt),Pt=hr=="ltr"==(ir=="after")?"left":"right",Wt=ir=="after"?St.begin:St.end-(/\s/.test(Ee.text.charAt(St.end-1))?2:1);return kt(Wt,Pt)[Pt]}var Tr=_r(Ee,u.direction);return zn(Tr,xe||0,De==null?ot:De,function(Gt,hr,ir,St){var Pt=ir=="ltr",Wt=kt(Gt,Pt?"left":"right"),Pr=kt(hr-1,Pt?"right":"left"),ca=xe==null&&Gt==0,qi=De==null&&hr==ot,zr=St==0,Kn=!Tr||St==Tr.length-1;if(Pr.top-Wt.top<=3){var or=(C?ca:qi)&&zr,Lu=(C?qi:ca)&&Kn,ci=or?b:(Pt?Wt:Pr).left,
|
|
2245
|
+
height: `+(Ee-xe)+"px"))}function M(he,xe,De){var Ee=Oe(u,he),ot=Ee.text.length,xt,Xt;function kt(Gt,hr){return Nl(e,oe(he,Gt),"div",Ee,hr)}function Or(Gt,hr,ir){var St=V(e,Ee,null,Gt),Pt=hr=="ltr"==(ir=="after")?"left":"right",Wt=ir=="after"?St.begin:St.end-(/\s/.test(Ee.text.charAt(St.end-1))?2:1);return kt(Wt,Pt)[Pt]}var Tr=_r(Ee,u.direction);return zn(Tr,xe||0,De==null?ot:De,function(Gt,hr,ir,St){var Pt=ir=="ltr",Wt=kt(Gt,Pt?"left":"right"),Pr=kt(hr-1,Pt?"right":"left"),ca=xe==null&&Gt==0,qi=De==null&&hr==ot,zr=St==0,Kn=!Tr||St==Tr.length-1;if(Pr.top-Wt.top<=3){var or=(C?ca:qi)&&zr,Lu=(C?qi:ca)&&Kn,ci=or?b:(Pt?Wt:Pr).left,_o=Lu?y:(Pt?Pr:Wt).right;_(ci,Wt.top,_o-ci,Wt.bottom)}else{var So,Er,da,fs;Pt?(So=C&&ca&&zr?b:Wt.left,Er=C?y:Or(Gt,ir,"before"),da=C?b:Or(hr,ir,"after"),fs=C&&qi&&Kn?y:Pr.right):(So=C?Or(Gt,ir,"before"):b,Er=!C&&ca&&zr?y:Wt.right,da=!C&&qi&&Kn?b:Pr.left,fs=C?Or(hr,ir,"after"):y),_(So,Wt.top,Er-So,Wt.bottom),Wt.bottom<Pr.top&&_(b,Wt.bottom,null,Pr.top),_(da,Pr.top,fs-da,Pr.bottom)}(!xt||ho(Wt,xt)<0)&&(xt=Wt),ho(Pr,xt)<0&&(xt=Pr),(!Xt||ho(Wt,Xt)<0)&&(Xt=Wt),ho(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=Oe(u,N.line),te=Oe(u,$.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(h)}function Wo(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()||po(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ks(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Uo(e))}function Rl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&po(e))},100)}function Uo(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,Lt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),A&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wo(e))}function po(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 Ii(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var u=t.view[n],h=e.options.lineWrapping,p=void 0,b=0;if(!u.hidden){if(T&&k<8){var y=u.node.offsetTop+u.node.offsetHeight;p=y-i,i=y}else{var C=u.node.getBoundingClientRect();p=C.bottom-C.top,!h&&u.text.firstChild&&(b=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=u.line.height-p;if((_>.005||_<-.005)&&(Vr(u.line,p),Ai(u.line),u.rest))for(var M=0;M<u.rest.length;M++)Ai(u.rest[M]);if(b>e.display.sizerWidth){var N=Math.ceil(b/Bo(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function Ai(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 go(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Aa(e));var u=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,h=kn(t,n),p=kn(t,u);if(i&&i.ensure){var b=i.ensure.from.line,y=i.ensure.to.line;b<h?(h=b,p=kn(t,Nr(Oe(t,b))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=p&&(h=kn(t,Nr(Oe(t,y))-e.wrapper.clientHeight),p=y)}return{from:h,to:Math.max(p,h+1)}}function m1(e,t){if(!Vt(e,"scrollCursorIntoView")){var i=e.display,n=i.sizer.getBoundingClientRect(),u=null;if(t.top+n.top<0?u=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!ge){var h=E("div","\u200B",null,`position: absolute;
|
|
2243
2246
|
top: `+(t.top-i.viewOffset-Aa(e.display))+`px;
|
|
2244
2247
|
height: `+(t.bottom-t.top+Kr(e)+i.barHeight)+`px;
|
|
2245
|
-
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function y1(e,t,i,n){n==null&&(n=0);var u;!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 h=0;h<5;h++){var p=!1,b=Pn(e,t),y=!i||i==t?b:Pn(e,i);u={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=Zo(e,u),_=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&&(go(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function C1(e,t){var i=Zo(e,t);i.scrollTop!=null&&Bt(e,i.scrollTop),i.scrollLeft!=null&&go(e,i.scrollLeft)}function Zo(e,t){var i=e.display,n=Ti(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,h=El(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var b=e.doc.height+Rr(i),y=t.top<n,C=t.bottom>b-n;if(t.top<u)p.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?b:t.bottom)-h);_!=u&&(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,$=Mi(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 Go(e,t){t!=null&&(Hl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Di(e){Hl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ra(e,t,i){(t!=null||i!=null)&&Hl(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function _c(e,t){Hl(e),e.curOp.scrollToPos=t}function Hl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=wc(e,t.from),n=wc(e,t.to);Sc(e,i,n,t.margin)}}function Sc(e,t,i,n){var u=Zo(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});Ra(e,u.scrollLeft,u.scrollTop)}function Bt(e,t){Math.abs(e.doc.scrollTop-t)<2||(c||Ys(e,{top:t}),mr(e,t,!0),c&&Ys(e),Gn(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 go(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,Mc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ha(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+Kr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var $i=function(e,t,i){this.cm=i;var n=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=u.tabIndex=-1,e(n),e(u),Ne(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ne(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$i.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 u=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},$i.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$i.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$i.prototype.zeroWidthHack=function(){var e=de&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},$i.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var u=e.getBoundingClientRect(),h=i=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},$i.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ba=function(){};Ba.prototype.update=function(){return{bottom:0,right:0}},Ba.prototype.setScrollLeft=function(){},Ba.prototype.setScrollTop=function(){},Ba.prototype.clear=function(){};function Ni(e,t){t||(t=Ha(e));var i=e.display.barWidth,n=e.display.barHeight;Vo(e,t);for(var u=0;u<4&&i!=e.display.barWidth||n!=e.display.barHeight;u++)i!=e.display.barWidth&&e.options.lineWrapping&&Ii(e),Vo(e,Ha(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 Bl={native:$i,null:Ba};function vo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Bl[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"?go(e,t):Bt(e,t)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var Fa=0;function En(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:++Fa,markArrays:null},Si(e.curOp)}function Zn(e){var t=e.curOp;t&&f1(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;qo(i)})}function qo(e){for(var t=e.ops,i=0;i<t.length;i++)w1(t[i]);for(var n=0;n<t.length;n++)x1(t[n]);for(var u=0;u<t.length;u++)z1(t[u]);for(var h=0;h<t.length;h++)L1(t[h]);for(var p=0;p<t.length;p++)_1(t[p])}function w1(e){var t=e.cm,i=t.display;ft(t),e.updateMaxLine&&Ea(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 x1(e){e.updatedDisplay=e.mustUpdate&&js(e.cm,e.update)}function z1(e){var t=e.cm,i=t.display;e.updatedDisplay&&Ii(t),e.barMeasure=Ha(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=gc(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+Kr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Mi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function L1(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&go(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==rt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ni(t,e.barMeasure),e.updatedDisplay&&Qs(t,e.barMeasure),e.selectionChanged&&Wo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&Ks(e.cm)}function _1(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Ri(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&&go(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=y1(t,Ce(n,e.scrollToPos.from),Ce(n,e.scrollToPos.to),e.scrollToPos.margin);m1(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var b=0;b<h.length;++b)h[b].lines.length||Ue(h[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();En(e);try{return t()}finally{Zn(e)}}function Ft(e,t){return function(){if(e.curOp)return t.apply(e,arguments);En(e);try{return t.apply(e,arguments)}finally{Zn(e)}}}function Cr(e){return function(){if(this.curOp)return e.apply(this,arguments);En(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);En(t);try{return e.apply(this,arguments)}finally{Zn(t)}}}function Gn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Xr(Fl,e))}function Fl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,n=No(e,t.highlightFrontier),u=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(n.line>=e.display.viewFrom){var p=h.styles,b=h.text.length>e.options.maxHighlightLength?en(t.mode,n.state):null,y=Xu(e,h,n,!0);b&&(n.state=b),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=h.styles[N];M&&u.push(n.line),h.stateAfter=n.save(),n.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ka(e,h.text,n),h.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Gn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),u.length&&yr(e,function(){for(var h=0;h<u.length;h++)Ei(e,u[h],"text")})}}var Hr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=po(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Mi(e),this.force=i,this.dims=jr(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 ft(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kr(e)+"px",t.scrollbarsClipped=!0)}function S1(e){if(e.hasFocus())return null;var t=rt();if(!t||!me(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&me(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function M1(e){if(!(!e||!e.activeElt||e.activeElt==rt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&me(document.body,e.anchorNode)&&me(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 js(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&&zc(e)==0)return!1;Vn(e)&&(ii(e),t.dims=jr(e));var u=n.first+n.size,h=Math.max(t.visible.from-e.options.viewportMargin,n.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);i.viewFrom<h&&h-i.viewFrom<20&&(h=Math.max(n.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(u,i.viewTo)),Hn&&(h=kl(e.doc,h),p=lc(e.doc,p));var b=h!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;b1(e,h,p),i.viewOffset=Nr(Oe(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var y=zc(e);if(!b&&y==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var C=S1(e);return y>4&&(i.lineDiv.style.display="none"),k1(e,i.updateLineNumbers,t.dims),y>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,M1(C),Qe(i.cursorDiv),Qe(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,b&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Gn(e,400)),i.updateLineNumbers=null,!0}function Ri(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Mi(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Rr(e.display)-El(e),i.top)}),t.visible=po(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=po(e.display,e.doc,i));if(!js(e,t))break;Ii(e);var u=Ha(e);$a(e),Ni(e,u),Qs(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ys(e,t){var i=new Hr(e,t);if(js(e,i)){Ii(e),Ri(e,i);var n=Ha(e);$a(e),Ni(e,n),Qs(e,n),i.finish()}}function k1(e,t,i){var n=e.display,u=e.options.lineNumbers,h=n.lineDiv,p=h.firstChild;function b(q){var te=q.nextSibling;return A&&de&&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!=h){var N=Zs(e,M,C,i);h.insertBefore(N,p)}else{for(;p!=M.node;)p=b(p);var $=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(Le(M.changes,"gutter")>-1&&($=!1),fc(e,M,C,i)),$&&(Qe(M.lineNumber),M.lineNumber.appendChild(document.createTextNode($o(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=b(p)}function Xs(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rr(e,"gutterChanged",e)}function Qs(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+Kr(e)+"px"}function Mc(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Fo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=n+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=h),i[p].gutterBackground&&(i[p].gutterBackground.style.left=h));var b=i[p].alignable;if(b)for(var y=0;y<b.length;y++)b[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=n+u+"px")}}function Vn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=$o(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var u=n.measure.appendChild(E("div",[E("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(h,n.lineGutter.offsetWidth-p)+1,n.lineNumWidth=n.lineNumInnerWidth+p,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Xs(e.display),!0}return!1}function Js(e,t){for(var i=[],n=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:h,style:p})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function kc(e){var t=e.gutters,i=e.gutterSpecs;Qe(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var u=i[n],h=u.className,p=u.style,b=t.appendChild(E("div",null,"CodeMirror-gutter "+h));p&&(b.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=b,b.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Xs(e)}function Wa(e){kc(e.display),tt(e),Mc(e)}function O1(e,t,i,n){var u=this;this.input=i,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=S("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=S("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=S("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+He+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),T&&k<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!A&&!(c&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Js(n.gutters,n.lineNumbers),kc(u),i.init(u)}var Wl=0,qt=null;T?qt=-.53:c?qt=15:U?qt=-.7:re&&(qt=-1/3);function Oc(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 T1(e){var t=Oc(e);return t.x*=qt,t.y*=qt,t}function Tc(e,t){var i=Oc(t),n=i.x,u=i.y,h=e.display,p=h.scroller,b=p.scrollWidth>p.clientWidth,y=p.scrollHeight>p.clientHeight;if(!!(n&&b||u&&y)){if(u&&de&&A){e:for(var C=t.target,_=h.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){u&&y&&Bt(e,Math.max(0,p.scrollTop+u*qt)),go(e,Math.max(0,p.scrollLeft+n*qt)),(!u||u&&y)&&ur(t),h.wheelStartX=null;return}if(u&&qt!=null){var N=u*qt,$=e.doc.scrollTop,q=$+h.wrapper.clientHeight;N<0?$=Math.max(0,$+N-50):q=Math.min(e.doc.height,q+N+50),Ys(e,{top:$,bottom:q})}Wl<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=n,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var te=p.scrollLeft-h.wheelStartX,ue=p.scrollTop-h.wheelStartY,fe=ue&&h.wheelDY&&ue/h.wheelDY||te&&h.wheelDX&&te/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(qt=(qt*Wl+fe)/(Wl+1),++Wl)}},200)):(h.wheelDX+=n,h.wheelDY+=u))}}var nn=function(e,t){this.ranges=e,this.primIndex=t};nn.prototype.primary=function(){return this.ranges[this.primIndex]},nn.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},nn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mt(X(this.ranges[t].anchor),X(this.ranges[t].head));return new nn(e,this.primIndex)},nn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},nn.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,u=t[i];t.sort(function(N,$){return w(N.from(),$.from())}),i=Le(t,u);for(var h=1;h<t.length;h++){var p=t[h],b=t[h-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;h<=i&&--i,t.splice(--h,2,new mt(M?_:C,M?C:_))}}return new nn(t,i)}function Hi(e,t){return new nn([new mt(e,t||e)],0)}function Bi(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 hn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return Bi(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+=Bi(t).ch-t.to.ch),oe(i,n)}function eu(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var u=e.sel.ranges[n];i.push(new mt(hn(u.anchor,t),hn(u.head,t)))}return wr(e.cm,i,e.sel.primIndex)}function Pc(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 P1(e,t,i){for(var n=[],u=oe(e.first,0),h=u,p=0;p<t.length;p++){var b=t[p],y=Pc(b.from,u,h),C=Pc(Bi(b),u,h);if(u=b.to,h=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 nn(n,e.sel.primIndex)}function tu(e){e.doc.mode=Do(e.options,e.doc.modeOption),Ua(e)}function Ua(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,Gn(e,100),e.state.modeGen++,e.curOp&&tt(e)}function ru(e,t){return t.from.ch==0&&t.to.ch==0&&Ke(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ul(e,t,i,n){function u(we){return i?i[we]:null}function h(we,he,xe){sc(we,he,xe,n),rr(we,"change",we,t)}function p(we,he){for(var xe=[],De=we;De<he;++De)xe.push(new br(C[De],u(De),n));return xe}var b=t.from,y=t.to,C=t.text,_=Oe(e,b.line),M=Oe(e,y.line),N=Ke(C),$=u(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(ru(e,t)){var te=p(0,C.length-1);h(M,M.text,$),q&&e.remove(b.line,q),te.length&&e.insert(b.line,te)}else if(_==M)if(C.length==1)h(_,_.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)),h(_,_.text.slice(0,b.ch)+C[0],u(0)),e.insert(b.line+1,ue)}else if(C.length==1)h(_,_.text.slice(0,b.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(b.line+1,q);else{h(_,_.text.slice(0,b.ch)+C[0],u(0)),h(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 Fi(e,t,i){function n(u,h,p){if(u.linked)for(var b=0;b<u.linked.length;++b){var y=u.linked[b];if(y.doc!=h){var C=p&&y.sharedHist;i&&!C||(t(y.doc,C),n(y.doc,u,C))}}}n(e,null,!0)}function Ec(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Pi(e),tu(e),Zl(e),e.options.direction=t.direction,e.options.lineWrapping||Ea(e),e.options.mode=t.modeOption,tt(e)}function Zl(e){(e.doc.direction=="rtl"?Lt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function Za(e){yr(e,function(){Zl(e),tt(e)})}function bo(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 nu(e,t){var i={from:X(t.from),to:Bi(t),text:tn(e,t.from,t.to)};return Ic(e,i,t.from.line,t.to.line+1),Fi(e,function(n){return Ic(n,i,t.from.line,t.to.line+1)},!0),i}function iu(e){for(;e.length;){var t=Ke(e);if(t.ranges)e.pop();else break}}function E1(e,t){if(t)return iu(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 u=e.history;u.undone.length=0;var h=+new Date,p,b;if((u.lastOp==n||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=E1(u,u.lastOp==n)))b=Ke(p.changes),w(t.from,t.to)==0&&w(t.from,b.to)==0?b.to=Bi(t):p.changes.push(nu(e,t));else{var y=Ke(u.done);for((!y||!y.ranges)&&Br(e.sel,u.done),p={changes:[nu(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(i),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=n,u.lastOrigin=u.lastSelOrigin=t.origin,b||Ue(e,"historyAdded")}function ou(e,t,i,n){var u=t.charAt(0);return u=="*"||u=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function mo(e,t,i,n){var u=e.history,h=n&&n.origin;i==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||ou(e,h,Ke(u.done),t))?u.done[u.done.length-1]=t:Br(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=i,n&&n.clearRedo!==!1&&iu(u.undone)}function Br(e,t){var i=Ke(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Ic(e,t,i,n){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function Ac(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 Dc(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],u=0;u<t.text.length;++u)n.push(Ac(i[u]));return n}function Ko(e,t){var i=Dc(e,t),n=Ds(e,t);if(!i)return n;if(!n)return i;for(var u=0;u<i.length;++u){var h=i[u],p=n[u];if(h&&p){e:for(var b=0;b<p.length;++b){for(var y=p[b],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else p&&(i[u]=p)}return i}function on(e,t,i){for(var n=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){n.push(i?nn.prototype.deepCopy.call(h):h);continue}var p=h.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 Gl(e,t,i,n){if(n){var u=e.anchor;if(i){var h=w(t,u)<0;h!=w(i,u)<0?(u=t,t=i):h!=w(t,i)<0&&(t=i)}return new mt(u,t)}else return new mt(i||t,t)}function Vl(e,t,i,n,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new nn([Gl(e.sel.primary(),t,i,u)],0),n)}function Ga(e,t,i){for(var n=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)n[h]=Gl(e.sel.ranges[h],t[h],null,u);var p=wr(e.cm,n,e.sel.primIndex);cr(e,p,i)}function au(e,t,i,n){var u=e.sel.ranges.slice(0);u[t]=i,cr(e,wr(e.cm,u,e.sel.primIndex),n)}function lu(e,t,i,n){cr(e,Hi(t,i),n)}function xr(e,t,i){var n={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new mt(Ce(e,u[h].anchor),Ce(e,u[h].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 ql(e,t,i){var n=e.history.done,u=Ke(n);u&&u.ranges?(n[n.length-1]=t,an(e,t,i)):cr(e,t,i)}function cr(e,t,i){an(e,t,i),mo(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function an(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);Kl(e,Wi(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Di(e.cm)}function Kl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Io(e.cm)),rr(e,"cursorActivity",e))}function Va(e){Kl(e,Wi(e,e.sel,null,!1))}function Wi(e,t,i,n){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],b=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=dr(e,p.anchor,b&&b.anchor,i,n),C=dr(e,p.head,b&&b.head,i,n);(u||y!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new mt(y,C))}return u?wr(e.cm,u,t.primIndex):t}function yo(e,t,i,n,u){var h=Oe(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var b=h.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(u&&(Ue(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.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=jl(e,M,-n,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,i))&&(n<0?N<0:N>0))return yo(e,M,t,n,u)}var $=y.find(n<0?-1:1);return(n<0?C:_)&&($=jl(e,$,n,$.line==t.line?h:null)),$?yo(e,$,t,n,u):null}}return t}function dr(e,t,i,n,u){var h=n||1,p=yo(e,t,i,h,u)||!u&&yo(e,t,i,h,!0)||yo(e,t,i,-h,u)||!u&&yo(e,t,i,-h,!0);return p||(e.cantEdit=!0,oe(e.first,0))}function jl(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||Oe(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 $c(e){e.setSelection(oe(e.firstLine(),0),oe(e.lastLine()),nt)}function Nc(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(u,h,p,b){u&&(n.from=Ce(e,u)),h&&(n.to=Ce(e,h)),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 jo(e,t,i){if(e.cm){if(!e.cm.curOp)return Ft(e.cm,jo)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"))&&(t=Nc(e,t,!0),!t))){var n=As&&!i&&$s(e,t.from,t.to);if(n)for(var u=n.length-1;u>=0;--u)Yl(e,{from:n[u].from,to:n[u].to,text:u?[""]:t.text,origin:t.origin});else Yl(e,t)}}function Yl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var i=eu(e,t);qn(e,t,i,e.cm?e.cm.curOp.id:NaN),Xo(e,t,i,Ds(e,t));var n=[];Fi(e,function(u,h){!h&&Le(n,u.history)==-1&&(Hc(u.history,t),n.push(u.history)),Xo(u,t,null,Ds(u,t))})}}function Xl(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!i)){for(var u=e.history,h,p=e.sel,b=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<b.length&&(h=b[C],!(i?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=b.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=b.pop(),h.ranges){if(Br(h,y),i&&!h.equals(e.sel)){cr(e,h,{clearRedo:!1});return}p=h}else if(n){b.push(h);return}else break;var _=[];Br(p,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"),N=function(te){var ue=h.changes[te];if(ue.origin=t,M&&!Nc(e,ue,!1))return b.length=0,{};_.push(nu(e,ue));var fe=te?eu(e,ue):Ke(b);Xo(e,ue,fe,Ko(e,ue)),!te&&e.cm&&e.cm.scrollIntoView({from:ue.from,to:Bi(ue)});var we=[];Fi(e,function(he,xe){!xe&&Le(we,he.history)==-1&&(Hc(he.history,ue),we.push(he.history)),Xo(he,ue,null,Ko(he,ue))})},$=h.changes.length-1;$>=0;--$){var q=N($);if(q)return q.v}}}}function Yo(e,t){if(t!=0&&(e.first+=t,e.sel=new nn(ht(e.sel.ranges,function(u){return new mt(oe(u.anchor.line+t,u.anchor.ch),oe(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){tt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Ei(e.cm,n,"gutter")}}function Xo(e,t,i,n){if(e.cm&&!e.cm.curOp)return Ft(e.cm,Xo)(e,t,i,n);if(t.to.line<e.first){Yo(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);Yo(e,u),t={from:oe(e.first,0),to:oe(t.to.line+u,t.to.ch),text:[Ke(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:oe(h,Oe(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tn(e,t.from,t.to),i||(i=eu(e,t)),e.cm?I1(e.cm,t,n):Ul(e,t,n),an(e,i,nt),e.cantEdit&&dr(e,oe(e.firstLine(),0))&&(e.cantEdit=!1)}}function I1(e,t,i){var n=e.doc,u=e.display,h=t.from,p=t.to,b=!1,y=h.line;e.options.lineWrapping||(y=bt(Bn(Oe(n,h.line))),n.iter(y,p.line+1,function($){if($==u.maxLine)return b=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Io(e),Ul(n,t,i,xc(e)),e.options.lineWrapping||(n.iter(y,h.line+t.text.length,function($){var q=Pa($);q>u.maxLineLength&&(u.maxLine=$,u.maxLineLength=q,u.maxLineChanged=!0,b=!1)}),b&&(e.curOp.updateMaxLine=!0)),n1(n,h.line),Gn(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?tt(e):h.line==p.line&&t.text.length==1&&!ru(e.doc,t)?Ei(e,h.line,"text"):tt(e,h.line,p.line+1,C);var _=sr(e,"changes"),M=sr(e,"change");if(M||_){var N={from:h,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 Qo(e,t,i,n,u){var h;n||(n=i),w(n,i)<0&&(h=[n,i],i=h[0],n=h[1]),typeof t=="string"&&(t=e.splitLines(t)),jo(e,{from:i,to:n,text:t,origin:u})}function Jo(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Rc(e,t,i,n){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var b=0;b<h.ranges.length;b++)Jo(h.ranges[b].anchor,t,i,n),Jo(h.ranges[b].head,t,i,n);continue}for(var y=0;y<h.changes.length;++y){var C=h.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,u+1),u=0)}}function Hc(e,t){var i=t.from.line,n=t.to.line,u=t.text.length-(n-i)-1;Rc(e.done,i,n,u),Rc(e.undone,i,n,u)}function Co(e,t,i,n){var u=t,h=t;return typeof t=="number"?h=Oe(e,dt(e,t)):u=bt(t),u==null?null:(n(h,u)&&e.cm&&Ei(e.cm,u,i),h)}function ea(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}ea.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var u=this.lines[i];this.height-=u.height,uc(u),rr(u,"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 qa(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var u=e[n];t+=u.chunkSize(),i+=u.height,u.parent=this}this.size=t,this.height=i,this.parent=null}qa.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],u=n.chunkSize();if(e<u){var h=Math.min(t,u-e),p=n.height;if(n.removeInner(e,h),this.height-=p-n.height,u==h&&(this.children.splice(i--,1),n.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ea))){var b=[];this.collapse(b),this.children=[new ea(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 u=this.children[n],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,i),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,b=p;b<u.lines.length;){var y=new ea(u.lines.slice(b,b+=25));u.height-=y.height,this.children.splice(++n,0,y),y.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new qa(t);if(e.parent){e.size-=i.size,e.height-=i.height;var u=Le(e.parent.children,e);e.parent.children.splice(u+1,0,i)}else{var n=new qa(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 u=this.children[n],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var Ka=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Ka.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=bt(i);if(!(n==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(i.widgets=null);var h=so(this);Vr(i,Math.max(0,i.height-h)),e&&(yr(e,function(){Bc(e,i,-h),Ei(e,n,"widget")}),rr(e,"lineWidgetCleared",e,this,n))}},Ka.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var u=so(this)-t;!u||(Ht(this.doc,n)||Vr(n,n.height+u),i&&yr(i,function(){i.curOp.forceUpdate=!0,Bc(i,n,u),rr(i,"lineWidgetChanged",i,e,bt(n))}))},_n(Ka);function Bc(e,t,i){Nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Go(e,i)}function Fc(e,t,i,n){var u=new Ka(e,i,n),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Co(e,t,"widget",function(p){var b=p.widgets||(p.widgets=[]);if(u.insertAt==null?b.push(u):b.splice(Math.min(b.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!Ht(e,p)){var y=Nr(p)<e.scrollTop;Vr(p,p.height+so(u)),y&&Go(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&rr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:bt(t)),u}var Ql=0,Ui=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ql};Ui.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&En(e),sr(this,"clear")){var i=this.find();i&&rr(this,"clear",i.from,i.to)}for(var n=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],b=Oa(p.markedSpans,this);e&&!this.collapsed?Ei(e,bt(p),"text"):e&&(b.to!=null&&(u=bt(p)),b.from!=null&&(n=bt(p))),p.markedSpans=i1(p.markedSpans,b),b.from==null&&this.collapsed&&!Ht(this.doc,p)&&e&&Vr(p,Ti(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Bn(this.lines[y]),_=Pa(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&tt(e,n,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Va(e.doc)),e&&rr(e,"markerCleared",e,this,n,u),t&&Zn(e),this.parent&&this.parent.clear()}},Ui.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,u=0;u<this.lines.length;++u){var h=this.lines[u],p=Oa(h.markedSpans,this);if(p.from!=null&&(i=oe(t?h:bt(h),p.from),e==-1))return i;if(p.to!=null&&(n=oe(t?h:bt(h),p.to),e==1))return n}return i&&{from:i,to:n}},Ui.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;!t||!n||yr(n,function(){var u=t.line,h=bt(t.line),p=qs(n,h);if(p&&(mc(p),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ht(i.doc,u)&&i.height!=null){var b=i.height;i.height=null;var y=so(i)-b;y&&Vr(u,u.height+y)}rr(n,"markerChanged",n,e)})},Ui.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)},Ui.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)}},_n(Ui);function Zi(e,t,i,n,u){if(n&&n.shared)return Wc(e,t,i,n,u);if(e.cm&&!e.cm.curOp)return Ft(e.cm,Zi)(e,t,i,n,u);var h=new Ui(e,u),p=w(t,i);if(n&&Ut(n,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=S("span",[h.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(ac(e,t.line,t,i,h)||t.line!=i.line&&ac(e,i.line,t,i,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");tc()}h.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&&h.collapsed&&!y.options.lineWrapping&&Bn(M)==y.display.maxLine&&(C=!0),h.collapsed&&b!=t.line&&Vr(M,0),rc(M,new Ll(h,b==t.line?t.ch:null,b==i.line?i.ch:null),e.cm&&e.cm.curOp),++b}),h.collapsed&&e.iter(t.line,i.line+1,function(M){Ht(e,M)&&Vr(M,0)}),h.clearOnEnter&&Ne(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(ec(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Ql,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)tt(y,t.line,i.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=i.line;_++)Ei(y,_,"text");h.atomic&&Va(y.doc),rr(y,"markerAdded",y,h)}return h}var ta=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};ta.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")}},ta.prototype.find=function(e,t){return this.primary.find(e,t)},_n(ta);function Wc(e,t,i,n,u){n=Ut(n),n.shared=!1;var h=[Zi(e,t,i,n,u)],p=h[0],b=n.widgetNode;return Fi(e,function(y){b&&(n.widgetNode=b.cloneNode(!0)),h.push(Zi(y,Ce(y,t),Ce(y,i),n,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;p=Ke(h)}),new ta(h,p)}function su(e){return e.findMarks(oe(e.first,0),e.clipPos(oe(e.lastLine())),function(t){return t.parent})}function Jl(e,t){for(var i=0;i<t.length;i++){var n=t[i],u=n.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var b=Zi(e,h,p,n.primary,n.primary.type);n.markers.push(b),b.parent=n}}}function A1(e){for(var t=function(n){var u=e[n],h=[u.primary.doc];Fi(u.primary.doc,function(y){return h.push(y)});for(var p=0;p<u.markers.length;p++){var b=u.markers[p];Le(h,b.doc)==-1&&(b.parent=null,u.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var Uc=0,Sr=function(e,t,i,n,u){if(!(this instanceof Sr))return new Sr(e,t,i,n,u);i==null&&(i=0),qa.call(this,[new ea([new br("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var h=oe(i,0);this.sel=Hi(h),this.history=new bo(null),this.id=++Uc,this.modeOption=t,this.lineSep=n,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ul(this,{from:h,to:h,text:e}),cr(this,Hi(h),nt)};Sr.prototype=Gr(qa.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=Ma(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;jo(this,{from:t,to:oe(i,Oe(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ra(this.cm,0,0),cr(this,Hi(t),nt)}),replaceRange:function(e,t,i,n){t=Ce(this,t),i=i?Ce(this,i):t,Qo(this,e,t,i,n)},getRange:function(e,t,i){var n=tn(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(Li(this,e))return Oe(this,e)},getLineNumber:function(e){return bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Oe(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){lu(this,Ce(this,typeof e=="number"?oe(e,t||0):e),null,i)}),setSelection:z(function(e,t,i){lu(this,Ce(this,e),Ce(this,t||e),i)}),extendSelection:z(function(e,t,i){Vl(this,Ce(this,e),t&&Ce(this,t),i)}),extendSelections:z(function(e,t){Ga(this,qr(this,e),t)}),extendSelectionsBy:z(function(e,t){var i=ht(this.sel.ranges,e);Ga(this,qr(this,i),t)}),setSelections:z(function(e,t,i){if(!!e.length){for(var n=[],u=0;u<e.length;u++)n[u]=new mt(Ce(this,e[u].anchor),Ce(this,e[u].head||e[u].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 u=tn(this,t[n].from(),t[n].to());i=i?i.concat(u):u}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 u=tn(this,i[n].from(),i[n].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[n]=u}return t},replaceSelection:function(e,t,i){for(var n=[],u=0;u<this.sel.ranges.length;u++)n[u]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:z(function(e,t,i){for(var n=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];n[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:i}}for(var b=t&&t!="end"&&P1(this,n,t),y=n.length-1;y>=0;y--)jo(this,n[y]);b?ql(this,b):this.cm&&Di(this.cm)}),undo:z(function(){Xl(this,"undo")}),redo:z(function(){Xl(this,"redo")}),undoSelection:z(function(){Xl(this,"undo",!0)}),redoSelection:z(function(){Xl(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 u=0;u<e.undone.length;u++)e.undone[u].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new bo(this.history),Fi(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:on(this.history.done),undone:on(this.history.undone)}},setHistory:function(e){var t=this.history=new bo(this.history);t.done=on(e.done.slice(0),null,!0),t.undone=on(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,i){return Co(this,e,"gutter",function(n){var u=n.gutterMarkers||(n.gutterMarkers={});return u[t]=i,!i&&ae(u)&&(n.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&Co(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(!Li(this,e)||(t=e,e=Oe(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 Co(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[u])n[u]=i;else{if(be(i).test(n[u]))return!1;n[u]+=" "+i}return!0})}),removeLineClass:z(function(e,t,i){return Co(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=n[u];if(h)if(i==null)n[u]=null;else{var p=h.match(be(i));if(!p)return!1;var b=p.index+p[0].length;n[u]=h.slice(0,p.index)+(!p.index||b==h.length?"":" ")+h.slice(b)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,i){return Fc(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Zi(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),Zi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],i=Oe(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var u=i[n];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,i){e=Ce(this,e),t=Ce(this,t);var n=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var b=0;b<p.length;b++){var y=p[b];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!i||i(y.marker))&&n.push(y.marker.parent||y.marker)}++u}),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(u){var h=u.text.length+n;if(h>e)return t=e,!0;e-=h,++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(Ma(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(Ma(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}],Jl(n,su(this)),n},unlinkDoc:function(e){if(e instanceof Mt&&(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),A1(su(this));break}}if(e.history==this.history){var n=[e.id];Fi(e,function(u){return n.push(u.id)},!0),e.history=new bo(null),e.history.done=on(this.history.done,n),e.history.undone=on(this.history.undone,n)}},iterLinkedDocs:function(e){Fi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):no(e)},lineSeparator:function(){return this.lineSep||`
|
|
2246
|
-
`},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Za(this.cm))})}),Sr.prototype.eachLine=Sr.prototype.iter;var Zc=0;function Gc(e){var t=this;if(cu(t),!(Vt(t,e)||ni(t.display,e))){ur(e),T&&(Zc=+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 u=n.length,h=Array(u),p=0,b=function(){++p==u&&Ft(t,function(){i=Ce(t.doc,i);var $={from:i,to:i,text:t.doc.splitLines(h.filter(function(q){return q!=null}).join(t.doc.lineSeparator())),origin:"paste"};jo(t.doc,$),ql(t.doc,Hi(Ce(t.doc,i),Ce(t.doc,Bi($))))})()},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}h[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()),an(t.doc,Hi(i,i)),M)for(var N=0;N<M.length;++N)Qo(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function D1(e,t){if(T&&(!e.state.draggingText||+new Date-Zc<100)){to(t);return}if(!(Vt(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 uu(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)),G(e.display.dragCursor,n)}}function cu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function es(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var u=t[n].CodeMirror;u&&i.push(u)}i.length&&i[0].operation(function(){for(var h=0;h<i.length;h++)e(i[h])})}}var Vc=!1;function du(){Vc||(st(),Vc=!0)}function st(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,es($1)},100))}),Ne(window,"blur",function(){return es(ho)})}function $1(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Gi={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++)Gi[ai+48]=Gi[ai+96]=String(ai);for(var ja=65;ja<=90;ja++)Gi[ja]=String.fromCharCode(ja);for(var Ya=1;Ya<=12;Ya++)Gi[Ya+111]=Gi[Ya+63235]="F"+Ya;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=de?li.macDefault:li.pcDefault;function pn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,u,h,p=0;p<t.length-1;p++){var b=t[p];if(/^(cmd|meta|m)$/i.test(b))h=!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))u=!0;else throw new Error("Unrecognized modifier name: "+b)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function N1(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 u=ht(i.split(" "),pn),h=0;h<u.length;h++){var p=void 0,b=void 0;h==u.length-1?(b=u.join(" "),p=n):(b=u.slice(0,h+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 u=t.call?t.call(e,n):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&i(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return si(e,t.fallthrough,i,n);for(var h=0;h<t.fallthrough.length;h++){var p=si(e,t.fallthrough[h],i,n);if(p)return p}}}function ts(e){var t=typeof e=="string"?e:Gi[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function fu(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 hu(e,t){if(Z&&e.keyCode==34&&e.char)return!1;var i=Gi[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),fu(i,e,t))}function Mr(e){return typeof e=="string"?li[e]:e}function ln(e,t){for(var i=e.doc.sel.ranges,n=[],u=0;u<i.length;u++){for(var h=t(i[u]);n.length&&w(h.from,Ke(n).to)<=0;){var p=n.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}n.push(h)}yr(e,function(){for(var b=n.length-1;b>=0;b--)Qo(e.doc,"",n[b].from,n[b].to,"+delete");Di(e)})}function Xa(e,t,i){var n=tr(e.text,t+i,i);return n<0||n>e.text.length?null:n}function rs(e,t,i){var n=Xa(e,t.ch,i);return n==null?null:new oe(t.line,n,i<0?"after":"before")}function ra(e,t,i,n,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=_r(i,t.doc.direction);if(h){var p=u<0?Ke(h):h[0],b=u<0==(p.level==1),y=b?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var _=Tn(t,i);C=u<0?i.text.length-1:0;var M=Fn(t,_,C).top;C=pr(function(N){return Fn(t,_,N).top==M},u<0==(p.level==1)?p.from:p.to-1,C),y=="before"&&(C=Xa(i,C,1))}else C=u<0?p.to:p.from;return new oe(n,C,y)}}return new oe(n,u<0?i.text.length:0,u<0?"before":"after")}function qc(e,t,i,n){var u=_r(t,e.doc.direction);if(!u)return rs(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 h=Nt(u,i.ch,i.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(n>0?p.to>i.ch:p.from<i.ch))return rs(t,i,n);var b=function(fe,we){return Xa(t,fe instanceof oe?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||Tn(e,t),V(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,he){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<u.length;fe+=we){var De=u[fe],Ee=we>0==(De.level!=1),ot=Ee?he.begin:b(he.end,-1);if(De.from<=ot&&ot<De.to||(ot=Ee?De.from:b(De.to,-1),he.begin<=ot&&ot<he.end))return xe(ot,Ee)}},te=q(h+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:u.length-1,n,C(ue)),te)?te:null}var wo={selectAll:$c,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),nt)},killLine:function(e){return ln(e,function(t){if(t.empty()){var i=Oe(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 ln(e,function(t){return{from:oe(t.from().line,0),to:Ce(e.doc,oe(t.to().line+1,0))}})},delLineLeft:function(e){return ln(e,function(t){return{from:oe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ln(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 ln(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 pu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ns(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return gu(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/)?ns(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,u=0;u<i.length;u++){var h=i[u].from(),p=At(e.getLine(h.line),h.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 u=t[n].head,h=Oe(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=Oe(e.doc,u.line-1).text;p&&(u=new oe(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),oe(u.line-1,p.length-1),u,"+transpose"))}}i.push(new mt(u,u))}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);Di(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2247
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function pu(e,t){var i=Oe(e.doc,t),n=Bn(i);return n!=i&&(t=bt(n)),ra(!0,e,n,t,1)}function gu(e,t){var i=Oe(e.doc,t),n=s1(i);return n!=i&&(t=bt(n)),ra(!0,e,i,t,-1)}function ns(e,t){var i=pu(e,t.line),n=Oe(e.doc,i.line),u=_r(n,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(i.ch,n.text.search(/\S/)),p=t.line==i.line&&t.ch<=h&&t.ch;return oe(i.line,p?0:h,i.sticky)}return i}function In(e,t,i){if(typeof t=="string"&&(t=wo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),u=t(e)!=We}finally{e.display.shift=n,e.state.suppressEdits=!1}return u}function R1(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var u=si(t,e.state.keyMaps[n],i,e);if(u)return u}return e.options.extraKeys&&si(t,e.options.extraKeys,i,e)||si(t,e.options.keyMap,i,e)}var Vi=new at;function na(e,t,i,n){var u=e.state.keySeq;if(u){if(ts(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Vi.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),vu(e,u+" "+t,i,n))return!0}return vu(e,t,i,n)}function vu(e,t,i,n){var u=R1(e,t,n);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&rr(e,"keyHandled",e,t,i),(u=="handled"||u=="multi")&&(ur(i),Wo(e)),!!u}function is(e,t){var i=hu(t,!0);return i?t.shiftKey&&!e.state.keySeq?na(e,"Shift-"+i,t,function(n){return In(e,n,!0)})||na(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return In(e,n)}):na(e,i,t,function(n){return In(e,n)}):!1}function H1(e,t,i){return na(e,"'"+i+"'",t,function(n){return In(e,n,!0)})}var bu=null;function Kc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=rt(),!Vt(t,e))){T&&k<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=is(t,e);Z&&(bu=n?i:null,!n&&i==88&&!yl&&(de?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),c&&!de&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&jc(t)}}function jc(e){var t=e.display.lineDiv;Lt(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 mu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Vt(this,e)}function Yc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ni(t.display,e)||Vt(t,e)||e.ctrlKey&&!e.altKey||de&&e.metaKey)){var i=e.keyCode,n=e.charCode;if(Z&&i==bu){bu=null,ur(e);return}if(!(Z&&(!e.which||e.which<10)&&is(t,e))){var u=String.fromCharCode(n==null?i:n);u!="\b"&&(H1(t,e,u)||t.display.input.onKeyPress(e))}}}var Xc=400,os=function(e,t,i){this.time=e,this.pos=t,this.button=i};os.prototype.compare=function(e,t,i){return this.time+Xc>e&&w(t,this.pos)==0&&i==this.button};var fr,Yr;function B1(e,t){var i=+new Date;return Yr&&Yr.compare(i,e,t)?(fr=Yr=null,"triple"):fr&&fr.compare(i,e,t)?(Yr=new os(i,e,t),fr=null,"double"):(fr=new os(i,e,t),Yr=null,"single")}function Qc(e){var t=this,i=t.display;if(!(Vt(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,ni(i,e)){A||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!yu(t,e)){var n=Wn(t,e),u=xa(e),h=n?B1(n,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&as(t,u,n,h,e))&&(u==1?n?Jc(t,n,h,e):xi(e)==i.scroller&&ur(e):u==2?(n&&Vl(t.doc,n),setTimeout(function(){return i.input.focus()},20)):u==3&&(je?t.display.input.onContextMenu(e):Rl(t)))}}}function as(e,t,i,n,u){var h="Click";return n=="double"?h="Double"+h:n=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,na(e,fu(h,u),u,function(p){if(typeof p=="string"&&(p=wo[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 ia(e,t,i){var n=e.getOption("configureMouse"),u=n?n(e,t,i):{};if(u.unit==null){var h=ke?i.shiftKey&&i.metaKey:i.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||i.shiftKey),u.addNew==null&&(u.addNew=de?i.metaKey:i.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(de?i.altKey:i.ctrlKey)),u}function Jc(e,t,i,n){T?setTimeout(Xr(Ks,e),0):e.curOp.focus=rt();var u=ia(e,i,n),h=e.doc.sel,p;e.options.dragDrop&&za&&!e.isReadOnly()&&i=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?e0(e,n,t,u):r0(e,n,t,u)}function e0(e,t,i,n){var u=e.display,h=!1,p=Ft(e,function(C){A&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Rl(e)),gr(u.wrapper.ownerDocument,"mouseup",p),gr(u.wrapper.ownerDocument,"mousemove",b),gr(u.scroller,"dragstart",y),gr(u.scroller,"drop",p),h||(ur(C),n.addNew||Vl(e.doc,i,null,null,n.extend),A&&!re||T&&k==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),b=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};A&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!n.moveOnDrag,Ne(u.wrapper.ownerDocument,"mouseup",p),Ne(u.wrapper.ownerDocument,"mousemove",b),Ne(u.scroller,"dragstart",y),Ne(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function t0(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 r0(e,t,i,n){T&&Rl(e);var u=e.display,h=e.doc;ur(t);var p,b,y=h.sel,C=y.ranges;if(n.addNew&&!n.extend?(b=h.sel.contains(i),b>-1?p=C[b]:p=new mt(i,i)):(p=h.sel.primary(),b=h.sel.primIndex),n.unit=="rectangle")n.addNew||(p=new mt(i,i)),i=Wn(e,t,!0,!0),b=-1;else{var _=t0(e,i,n.unit);n.extend?p=Gl(p,_.anchor,_.head,n.extend):p=_}n.addNew?b==-1?(b=C.length,cr(h,wr(e,C.concat([p]),b),{scroll:!1,origin:"*mouse"})):C.length>1&&C[b].empty()&&n.unit=="char"&&!n.extend?(cr(h,wr(e,C.slice(0,b).concat(C.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):au(h,b,p,it):(b=0,cr(h,new nn([p],0),it),y=h.sel);var M=i;function N(he){if(w(M,he)!=0)if(M=he,n.unit=="rectangle"){for(var xe=[],De=e.options.tabSize,Ee=At(Oe(h,i.line).text,i.ch,De),ot=At(Oe(h,he.line).text,he.ch,De),xt=Math.min(Ee,ot),Xt=Math.max(Ee,ot),kt=Math.min(i.line,he.line),Or=Math.min(e.lastLine(),Math.max(i.line,he.line));kt<=Or;kt++){var Tr=Oe(h,kt).text,Gt=Rt(Tr,xt,De);xt==Xt?xe.push(new mt(oe(kt,Gt),oe(kt,Gt))):Tr.length>Gt&&xe.push(new mt(oe(kt,Gt),oe(kt,Rt(Tr,Xt,De))))}xe.length||xe.push(new mt(i,i)),cr(h,wr(e,y.ranges.slice(0,b).concat(xe),b),{origin:"*mouse",scroll:!1}),e.scrollIntoView(he)}else{var hr=p,ir=t0(e,he,n.unit),St=hr.anchor,Pt;w(ir.anchor,St)>0?(Pt=ir.head,St=Ze(hr.from(),ir.anchor)):(Pt=ir.anchor,St=le(hr.to(),ir.head));var Wt=y.ranges.slice(0);Wt[b]=oa(e,new mt(Ce(h,St),Pt)),cr(h,wr(e,Wt,b),it)}}var $=u.wrapper.getBoundingClientRect(),q=0;function te(he){var xe=++q,De=Wn(e,he,!0,n.unit=="rectangle");if(!!De)if(w(De,M)!=0){e.curOp.focus=rt(),N(De);var Ee=po(u,h);(De.line>=Ee.to||De.line<Ee.from)&&setTimeout(Ft(e,function(){q==xe&&te(he)}),150)}else{var ot=he.clientY<$.top?-20:he.clientY>$.bottom?20:0;ot&&setTimeout(Ft(e,function(){q==xe&&(u.scroller.scrollTop+=ot,te(he))}),50)}}function ue(he){e.state.selectingText=!1,q=1/0,he&&(ur(he),u.input.focus()),gr(u.wrapper.ownerDocument,"mousemove",fe),gr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Ft(e,function(he){he.buttons===0||!xa(he)?ue(he):te(he)}),we=Ft(e,ue);e.state.selectingText=we,Ne(u.wrapper.ownerDocument,"mousemove",fe),Ne(u.wrapper.ownerDocument,"mouseup",we)}function oa(e,t){var i=t.anchor,n=t.head,u=Oe(e.doc,i.line);if(w(i,n)==0&&i.sticky==n.sticky)return t;var h=_r(u);if(!h)return t;var p=Nt(h,i.ch,i.sticky),b=h[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==h.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(h,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=h[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 aa(e,t,i,n){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ur(t);var p=e.display,b=p.lineDiv.getBoundingClientRect();if(h>b.bottom||!sr(e,i))return Qr(t);h-=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>=u){var _=kn(e.doc,h),M=e.display.gutterSpecs[y];return Ue(e,i,e,_,M.className,t),Qr(t)}}}function yu(e,t){return aa(e,t,"gutterClick",!0)}function Cu(e,t){ni(e.display,t)||n0(e,t)||Vt(e,t,"contextmenu")||je||e.display.input.onContextMenu(t)}function n0(e,t){return sr(e,"gutterContextMenu")?aa(e,t,"gutterContextMenu",!1):!1}function Qa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Da(e)}var xo={toString:function(){return"CodeMirror.Init"}},Ja={},la={};function ls(e){var t=e.optionHandlers;function i(n,u,h,p){e.defaults[n]=u,h&&(t[n]=p?function(b,y,C){C!=xo&&h(b,y,C)}:h)}e.defineOption=i,e.Init=xo,i("value","",function(n,u){return n.setValue(u)},!0),i("mode",null,function(n,u){n.doc.modeOption=u,tu(n)},!0),i("indentUnit",2,tu,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ua(n),Da(n),tt(n)},!0),i("lineSeparator",null,function(n,u){if(n.doc.lineSep=u,!!u){var h=[],p=n.doc.first;n.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(oe(p,_))}p++});for(var b=h.length-1;b>=0;b--)Qo(n.doc,u,h[b],oe(h[b].line,h[b].ch+u.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,u,h){n.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=xo&&n.refresh()}),i("specialCharPlaceholder",rn,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,u){return n.getInputField().spellcheck=u},!0),i("autocorrect",!1,function(n,u){return n.getInputField().autocorrect=u},!0),i("autocapitalize",!1,function(n,u){return n.getInputField().autocapitalize=u},!0),i("rtlMoveVisually",!Pe),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Qa(n),Wa(n)},!0),i("keyMap","default",function(n,u,h){var p=Mr(u),b=h!=xo&&Mr(h);b&&b.detach&&b.detach(n,p),p.attach&&p.attach(n,b||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,i0,!0),i("gutters",[],function(n,u){n.display.gutterSpecs=Js(u,n.options.lineNumbers),Wa(n)},!0),i("fixedGutter",!0,function(n,u){n.display.gutters.style.left=u?Fo(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return Ni(n)},!0),i("scrollbarStyle","native",function(n){vo(n),Ni(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,u){n.display.gutterSpecs=Js(n.options.gutters,u),Wa(n)},!0),i("firstLineNumber",1,Wa,!0),i("lineNumberFormatter",function(n){return n},Wa,!0),i("showCursorWhenSelecting",!1,$a,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,u){u=="nocursor"&&(ho(n),n.display.input.blur()),n.display.input.readOnlyChanged(u)}),i("screenReaderLabel",null,function(n,u){u=u===""?null:u,n.display.input.screenReaderLabelChanged(u)}),i("disableInput",!1,function(n,u){u||n.display.input.reset()},!0),i("dragDrop",!0,F1),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,$a,!0),i("singleCursorHeightPerLine",!0,$a,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ua,!0),i("addModeClass",!1,Ua,!0),i("pollInterval",100),i("undoDepth",200,function(n,u){return n.doc.history.undoDepth=u}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ua,!0),i("moveInputWithCursor",!0,function(n,u){u||n.display.input.resetPosition()}),i("tabindex",null,function(n,u){return n.display.input.getField().tabIndex=u||""}),i("autofocus",null),i("direction","ltr",function(n,u){return n.doc.setDirection(u)},!0),i("phrases",null)}function F1(e,t,i){var n=i&&i!=xo;if(!t!=!n){var u=e.display.dragFunctions,h=t?Ne:gr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function i0(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),Ea(e)),Pi(e),tt(e),Da(e),setTimeout(function(){return Ni(e)},100)}function Mt(e,t){var i=this;if(!(this instanceof Mt))return new Mt(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 u=new Mt.inputStyles[t.inputStyle](this),h=this.display=new O1(e,n,u,t);h.wrapper.CodeMirror=this,Qa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vo(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 at,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),T&&k<11&&setTimeout(function(){return i.display.input.reset(!0)},20),o0(this),du(),En(this),this.curOp.forceUpdate=!0,Ec(this,n),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Uo(i)},20):ho(this);for(var p in la)la.hasOwnProperty(p)&&la[p](this,t[p],xo);Vn(this),t.finishInit&&t.finishInit(this);for(var b=0;b<el.length;++b)el[b](this);Zn(this),A&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Mt.defaults=Ja,Mt.optionHandlers=la;function o0(e){var t=e.display;Ne(t.scroller,"mousedown",Ft(e,Qc)),T&&k<11?Ne(t.scroller,"dblclick",Ft(e,function(y){if(!Vt(e,y)){var C=Wn(e,y);if(!(!C||yu(e,y)||ni(e.display,y))){ur(y);var _=e.findWordAt(C);Vl(e.doc,_.anchor,_.head)}}})):Ne(t.scroller,"dblclick",function(y){return Vt(e,y)||ur(y)}),Ne(t.scroller,"contextmenu",function(y){return Cu(e,y)}),Ne(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||Cu(e,y)});var i,n={end:0};function u(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function 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(!Vt(e,y)&&!h(y)&&!yu(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)}u()}),Ne(t.scroller,"touchcancel",u),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Bt(e,t.scroller.scrollTop),go(e,t.scroller.scrollLeft,!0),Ue(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(y){return Tc(e,y)}),Ne(t.scroller,"DOMMouseScroll",function(y){return Tc(e,y)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){Vt(e,y)||to(y)},over:function(y){Vt(e,y)||(uu(e,y),to(y))},start:function(y){return D1(e,y)},drop:Ft(e,Gc),leave:function(y){Vt(e,y)||cu(e)}};var b=t.input.getField();Ne(b,"keyup",function(y){return mu.call(e,y)}),Ne(b,"keydown",Ft(e,Kc)),Ne(b,"keypress",Ft(e,Yc)),Ne(b,"focus",function(y){return Uo(e,y)}),Ne(b,"blur",function(y){return ho(e,y)})}var el=[];Mt.defineInitHook=function(e){return el.push(e)};function tl(e,t,i,n){var u=e.doc,h;i==null&&(i="add"),i=="smart"&&(u.mode.indent?h=No(e,t).state:i="prev");var p=e.options.tabSize,b=Oe(u,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"&&(_=u.mode.indent(h,b.text.slice(C.length),b.text),_==We||_>150)){if(!n)return;i="prev"}i=="prev"?t>u.first?_=At(Oe(u,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 Qo(u,M,oe(t,0),oe(t,C.length),"+input"),b.stateAfter=null,!0;for(var q=0;q<u.sel.ranges.length;q++){var te=u.sel.ranges[q];if(te.head.line==t&&te.head.ch<C.length){var ue=oe(t,C.length);au(u,q,new mt(ue,ue));break}}}var gn=null;function vn(e){gn=e}function ss(e,t,i,n,u){var h=e.doc;e.display.shift=!1,n||(n=h.sel);var p=+new Date-200,b=u=="paste"||e.state.pasteIncoming>p,y=no(t),C=null;if(b&&n.ranges.length>1)if(gn&&gn.text.join(`
|
|
2248
|
+
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function y1(e,t,i,n){n==null&&(n=0);var u;!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 h=0;h<5;h++){var p=!1,b=Pn(e,t),y=!i||i==t?b:Pn(e,i);u={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=Zo(e,u),_=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&&(vo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function C1(e,t){var i=Zo(e,t);i.scrollTop!=null&&Bt(e,i.scrollTop),i.scrollLeft!=null&&vo(e,i.scrollLeft)}function Zo(e,t){var i=e.display,n=Ti(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,h=El(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var b=e.doc.height+Rr(i),y=t.top<n,C=t.bottom>b-n;if(t.top<u)p.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?b:t.bottom)-h);_!=u&&(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,$=Mi(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 Go(e,t){t!=null&&(Hl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Di(e){Hl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ra(e,t,i){(t!=null||i!=null)&&Hl(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function _c(e,t){Hl(e),e.curOp.scrollToPos=t}function Hl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=wc(e,t.from),n=wc(e,t.to);Sc(e,i,n,t.margin)}}function Sc(e,t,i,n){var u=Zo(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});Ra(e,u.scrollLeft,u.scrollTop)}function Bt(e,t){Math.abs(e.doc.scrollTop-t)<2||(c||Ys(e,{top:t}),mr(e,t,!0),c&&Ys(e),Gn(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 vo(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,Mc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ha(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+Kr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var $i=function(e,t,i){this.cm=i;var n=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=u.tabIndex=-1,e(n),e(u),Ne(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ne(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$i.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 u=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},$i.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$i.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$i.prototype.zeroWidthHack=function(){var e=de&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},$i.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var u=e.getBoundingClientRect(),h=i=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},$i.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ba=function(){};Ba.prototype.update=function(){return{bottom:0,right:0}},Ba.prototype.setScrollLeft=function(){},Ba.prototype.setScrollTop=function(){},Ba.prototype.clear=function(){};function Ni(e,t){t||(t=Ha(e));var i=e.display.barWidth,n=e.display.barHeight;Vo(e,t);for(var u=0;u<4&&i!=e.display.barWidth||n!=e.display.barHeight;u++)i!=e.display.barWidth&&e.options.lineWrapping&&Ii(e),Vo(e,Ha(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 Bl={native:$i,null:Ba};function bo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Bl[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"?vo(e,t):Bt(e,t)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var Fa=0;function En(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:++Fa,markArrays:null},Si(e.curOp)}function Zn(e){var t=e.curOp;t&&f1(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;qo(i)})}function qo(e){for(var t=e.ops,i=0;i<t.length;i++)w1(t[i]);for(var n=0;n<t.length;n++)x1(t[n]);for(var u=0;u<t.length;u++)z1(t[u]);for(var h=0;h<t.length;h++)L1(t[h]);for(var p=0;p<t.length;p++)_1(t[p])}function w1(e){var t=e.cm,i=t.display;ft(t),e.updateMaxLine&&Ea(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 x1(e){e.updatedDisplay=e.mustUpdate&&js(e.cm,e.update)}function z1(e){var t=e.cm,i=t.display;e.updatedDisplay&&Ii(t),e.barMeasure=Ha(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=gc(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+Kr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Mi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function L1(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&vo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==rt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ni(t,e.barMeasure),e.updatedDisplay&&Qs(t,e.barMeasure),e.selectionChanged&&Wo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&Ks(e.cm)}function _1(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Ri(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&&vo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=y1(t,Ce(n,e.scrollToPos.from),Ce(n,e.scrollToPos.to),e.scrollToPos.margin);m1(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var b=0;b<h.length;++b)h[b].lines.length||Ue(h[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();En(e);try{return t()}finally{Zn(e)}}function Ft(e,t){return function(){if(e.curOp)return t.apply(e,arguments);En(e);try{return t.apply(e,arguments)}finally{Zn(e)}}}function Cr(e){return function(){if(this.curOp)return e.apply(this,arguments);En(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);En(t);try{return e.apply(this,arguments)}finally{Zn(t)}}}function Gn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Xr(Fl,e))}function Fl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,n=No(e,t.highlightFrontier),u=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(n.line>=e.display.viewFrom){var p=h.styles,b=h.text.length>e.options.maxHighlightLength?en(t.mode,n.state):null,y=Xu(e,h,n,!0);b&&(n.state=b),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=h.styles[N];M&&u.push(n.line),h.stateAfter=n.save(),n.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ka(e,h.text,n),h.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Gn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),u.length&&yr(e,function(){for(var h=0;h<u.length;h++)Ei(e,u[h],"text")})}}var Hr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=go(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Mi(e),this.force=i,this.dims=jr(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 ft(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kr(e)+"px",t.scrollbarsClipped=!0)}function S1(e){if(e.hasFocus())return null;var t=rt();if(!t||!me(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&me(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function M1(e){if(!(!e||!e.activeElt||e.activeElt==rt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&me(document.body,e.anchorNode)&&me(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 js(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&&zc(e)==0)return!1;Vn(e)&&(ii(e),t.dims=jr(e));var u=n.first+n.size,h=Math.max(t.visible.from-e.options.viewportMargin,n.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);i.viewFrom<h&&h-i.viewFrom<20&&(h=Math.max(n.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(u,i.viewTo)),Hn&&(h=kl(e.doc,h),p=lc(e.doc,p));var b=h!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;b1(e,h,p),i.viewOffset=Nr(Oe(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var y=zc(e);if(!b&&y==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var C=S1(e);return y>4&&(i.lineDiv.style.display="none"),k1(e,i.updateLineNumbers,t.dims),y>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,M1(C),Qe(i.cursorDiv),Qe(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,b&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Gn(e,400)),i.updateLineNumbers=null,!0}function Ri(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Mi(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Rr(e.display)-El(e),i.top)}),t.visible=go(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=go(e.display,e.doc,i));if(!js(e,t))break;Ii(e);var u=Ha(e);$a(e),Ni(e,u),Qs(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ys(e,t){var i=new Hr(e,t);if(js(e,i)){Ii(e),Ri(e,i);var n=Ha(e);$a(e),Ni(e,n),Qs(e,n),i.finish()}}function k1(e,t,i){var n=e.display,u=e.options.lineNumbers,h=n.lineDiv,p=h.firstChild;function b(q){var te=q.nextSibling;return A&&de&&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!=h){var N=Zs(e,M,C,i);h.insertBefore(N,p)}else{for(;p!=M.node;)p=b(p);var $=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(Le(M.changes,"gutter")>-1&&($=!1),fc(e,M,C,i)),$&&(Qe(M.lineNumber),M.lineNumber.appendChild(document.createTextNode($o(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=b(p)}function Xs(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rr(e,"gutterChanged",e)}function Qs(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+Kr(e)+"px"}function Mc(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Fo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=n+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=h),i[p].gutterBackground&&(i[p].gutterBackground.style.left=h));var b=i[p].alignable;if(b)for(var y=0;y<b.length;y++)b[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=n+u+"px")}}function Vn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=$o(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var u=n.measure.appendChild(E("div",[E("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(h,n.lineGutter.offsetWidth-p)+1,n.lineNumWidth=n.lineNumInnerWidth+p,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Xs(e.display),!0}return!1}function Js(e,t){for(var i=[],n=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:h,style:p})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function kc(e){var t=e.gutters,i=e.gutterSpecs;Qe(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var u=i[n],h=u.className,p=u.style,b=t.appendChild(E("div",null,"CodeMirror-gutter "+h));p&&(b.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=b,b.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Xs(e)}function Wa(e){kc(e.display),tt(e),Mc(e)}function O1(e,t,i,n){var u=this;this.input=i,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=S("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=S("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=S("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+He+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),T&&k<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!A&&!(c&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Js(n.gutters,n.lineNumbers),kc(u),i.init(u)}var Wl=0,qt=null;T?qt=-.53:c?qt=15:U?qt=-.7:re&&(qt=-1/3);function Oc(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 T1(e){var t=Oc(e);return t.x*=qt,t.y*=qt,t}function Tc(e,t){var i=Oc(t),n=i.x,u=i.y,h=e.display,p=h.scroller,b=p.scrollWidth>p.clientWidth,y=p.scrollHeight>p.clientHeight;if(!!(n&&b||u&&y)){if(u&&de&&A){e:for(var C=t.target,_=h.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){u&&y&&Bt(e,Math.max(0,p.scrollTop+u*qt)),vo(e,Math.max(0,p.scrollLeft+n*qt)),(!u||u&&y)&&ur(t),h.wheelStartX=null;return}if(u&&qt!=null){var N=u*qt,$=e.doc.scrollTop,q=$+h.wrapper.clientHeight;N<0?$=Math.max(0,$+N-50):q=Math.min(e.doc.height,q+N+50),Ys(e,{top:$,bottom:q})}Wl<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=n,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var te=p.scrollLeft-h.wheelStartX,ue=p.scrollTop-h.wheelStartY,fe=ue&&h.wheelDY&&ue/h.wheelDY||te&&h.wheelDX&&te/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(qt=(qt*Wl+fe)/(Wl+1),++Wl)}},200)):(h.wheelDX+=n,h.wheelDY+=u))}}var nn=function(e,t){this.ranges=e,this.primIndex=t};nn.prototype.primary=function(){return this.ranges[this.primIndex]},nn.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},nn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mt(X(this.ranges[t].anchor),X(this.ranges[t].head));return new nn(e,this.primIndex)},nn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},nn.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,u=t[i];t.sort(function(N,$){return w(N.from(),$.from())}),i=Le(t,u);for(var h=1;h<t.length;h++){var p=t[h],b=t[h-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;h<=i&&--i,t.splice(--h,2,new mt(M?_:C,M?C:_))}}return new nn(t,i)}function Hi(e,t){return new nn([new mt(e,t||e)],0)}function Bi(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 hn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return Bi(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+=Bi(t).ch-t.to.ch),oe(i,n)}function eu(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var u=e.sel.ranges[n];i.push(new mt(hn(u.anchor,t),hn(u.head,t)))}return wr(e.cm,i,e.sel.primIndex)}function Pc(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 P1(e,t,i){for(var n=[],u=oe(e.first,0),h=u,p=0;p<t.length;p++){var b=t[p],y=Pc(b.from,u,h),C=Pc(Bi(b),u,h);if(u=b.to,h=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 nn(n,e.sel.primIndex)}function tu(e){e.doc.mode=Do(e.options,e.doc.modeOption),Ua(e)}function Ua(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,Gn(e,100),e.state.modeGen++,e.curOp&&tt(e)}function ru(e,t){return t.from.ch==0&&t.to.ch==0&&Ke(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ul(e,t,i,n){function u(we){return i?i[we]:null}function h(we,he,xe){sc(we,he,xe,n),rr(we,"change",we,t)}function p(we,he){for(var xe=[],De=we;De<he;++De)xe.push(new br(C[De],u(De),n));return xe}var b=t.from,y=t.to,C=t.text,_=Oe(e,b.line),M=Oe(e,y.line),N=Ke(C),$=u(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(ru(e,t)){var te=p(0,C.length-1);h(M,M.text,$),q&&e.remove(b.line,q),te.length&&e.insert(b.line,te)}else if(_==M)if(C.length==1)h(_,_.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)),h(_,_.text.slice(0,b.ch)+C[0],u(0)),e.insert(b.line+1,ue)}else if(C.length==1)h(_,_.text.slice(0,b.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(b.line+1,q);else{h(_,_.text.slice(0,b.ch)+C[0],u(0)),h(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 Fi(e,t,i){function n(u,h,p){if(u.linked)for(var b=0;b<u.linked.length;++b){var y=u.linked[b];if(y.doc!=h){var C=p&&y.sharedHist;i&&!C||(t(y.doc,C),n(y.doc,u,C))}}}n(e,null,!0)}function Ec(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Pi(e),tu(e),Zl(e),e.options.direction=t.direction,e.options.lineWrapping||Ea(e),e.options.mode=t.modeOption,tt(e)}function Zl(e){(e.doc.direction=="rtl"?Lt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function Za(e){yr(e,function(){Zl(e),tt(e)})}function mo(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 nu(e,t){var i={from:X(t.from),to:Bi(t),text:tn(e,t.from,t.to)};return Ic(e,i,t.from.line,t.to.line+1),Fi(e,function(n){return Ic(n,i,t.from.line,t.to.line+1)},!0),i}function iu(e){for(;e.length;){var t=Ke(e);if(t.ranges)e.pop();else break}}function E1(e,t){if(t)return iu(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 u=e.history;u.undone.length=0;var h=+new Date,p,b;if((u.lastOp==n||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=E1(u,u.lastOp==n)))b=Ke(p.changes),w(t.from,t.to)==0&&w(t.from,b.to)==0?b.to=Bi(t):p.changes.push(nu(e,t));else{var y=Ke(u.done);for((!y||!y.ranges)&&Br(e.sel,u.done),p={changes:[nu(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(i),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=n,u.lastOrigin=u.lastSelOrigin=t.origin,b||Ue(e,"historyAdded")}function ou(e,t,i,n){var u=t.charAt(0);return u=="*"||u=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function yo(e,t,i,n){var u=e.history,h=n&&n.origin;i==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||ou(e,h,Ke(u.done),t))?u.done[u.done.length-1]=t:Br(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=i,n&&n.clearRedo!==!1&&iu(u.undone)}function Br(e,t){var i=Ke(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Ic(e,t,i,n){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function Ac(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 Dc(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],u=0;u<t.text.length;++u)n.push(Ac(i[u]));return n}function Ko(e,t){var i=Dc(e,t),n=Ds(e,t);if(!i)return n;if(!n)return i;for(var u=0;u<i.length;++u){var h=i[u],p=n[u];if(h&&p){e:for(var b=0;b<p.length;++b){for(var y=p[b],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else p&&(i[u]=p)}return i}function on(e,t,i){for(var n=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){n.push(i?nn.prototype.deepCopy.call(h):h);continue}var p=h.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 Gl(e,t,i,n){if(n){var u=e.anchor;if(i){var h=w(t,u)<0;h!=w(i,u)<0?(u=t,t=i):h!=w(t,i)<0&&(t=i)}return new mt(u,t)}else return new mt(i||t,t)}function Vl(e,t,i,n,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new nn([Gl(e.sel.primary(),t,i,u)],0),n)}function Ga(e,t,i){for(var n=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)n[h]=Gl(e.sel.ranges[h],t[h],null,u);var p=wr(e.cm,n,e.sel.primIndex);cr(e,p,i)}function au(e,t,i,n){var u=e.sel.ranges.slice(0);u[t]=i,cr(e,wr(e.cm,u,e.sel.primIndex),n)}function lu(e,t,i,n){cr(e,Hi(t,i),n)}function xr(e,t,i){var n={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new mt(Ce(e,u[h].anchor),Ce(e,u[h].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 ql(e,t,i){var n=e.history.done,u=Ke(n);u&&u.ranges?(n[n.length-1]=t,an(e,t,i)):cr(e,t,i)}function cr(e,t,i){an(e,t,i),yo(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function an(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);Kl(e,Wi(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Di(e.cm)}function Kl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Io(e.cm)),rr(e,"cursorActivity",e))}function Va(e){Kl(e,Wi(e,e.sel,null,!1))}function Wi(e,t,i,n){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],b=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=dr(e,p.anchor,b&&b.anchor,i,n),C=dr(e,p.head,b&&b.head,i,n);(u||y!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new mt(y,C))}return u?wr(e.cm,u,t.primIndex):t}function Co(e,t,i,n,u){var h=Oe(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var b=h.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(u&&(Ue(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.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=jl(e,M,-n,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,i))&&(n<0?N<0:N>0))return Co(e,M,t,n,u)}var $=y.find(n<0?-1:1);return(n<0?C:_)&&($=jl(e,$,n,$.line==t.line?h:null)),$?Co(e,$,t,n,u):null}}return t}function dr(e,t,i,n,u){var h=n||1,p=Co(e,t,i,h,u)||!u&&Co(e,t,i,h,!0)||Co(e,t,i,-h,u)||!u&&Co(e,t,i,-h,!0);return p||(e.cantEdit=!0,oe(e.first,0))}function jl(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||Oe(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 $c(e){e.setSelection(oe(e.firstLine(),0),oe(e.lastLine()),nt)}function Nc(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(u,h,p,b){u&&(n.from=Ce(e,u)),h&&(n.to=Ce(e,h)),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 jo(e,t,i){if(e.cm){if(!e.cm.curOp)return Ft(e.cm,jo)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"))&&(t=Nc(e,t,!0),!t))){var n=As&&!i&&$s(e,t.from,t.to);if(n)for(var u=n.length-1;u>=0;--u)Yl(e,{from:n[u].from,to:n[u].to,text:u?[""]:t.text,origin:t.origin});else Yl(e,t)}}function Yl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var i=eu(e,t);qn(e,t,i,e.cm?e.cm.curOp.id:NaN),Xo(e,t,i,Ds(e,t));var n=[];Fi(e,function(u,h){!h&&Le(n,u.history)==-1&&(Hc(u.history,t),n.push(u.history)),Xo(u,t,null,Ds(u,t))})}}function Xl(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!i)){for(var u=e.history,h,p=e.sel,b=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<b.length&&(h=b[C],!(i?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=b.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=b.pop(),h.ranges){if(Br(h,y),i&&!h.equals(e.sel)){cr(e,h,{clearRedo:!1});return}p=h}else if(n){b.push(h);return}else break;var _=[];Br(p,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"),N=function(te){var ue=h.changes[te];if(ue.origin=t,M&&!Nc(e,ue,!1))return b.length=0,{};_.push(nu(e,ue));var fe=te?eu(e,ue):Ke(b);Xo(e,ue,fe,Ko(e,ue)),!te&&e.cm&&e.cm.scrollIntoView({from:ue.from,to:Bi(ue)});var we=[];Fi(e,function(he,xe){!xe&&Le(we,he.history)==-1&&(Hc(he.history,ue),we.push(he.history)),Xo(he,ue,null,Ko(he,ue))})},$=h.changes.length-1;$>=0;--$){var q=N($);if(q)return q.v}}}}function Yo(e,t){if(t!=0&&(e.first+=t,e.sel=new nn(ht(e.sel.ranges,function(u){return new mt(oe(u.anchor.line+t,u.anchor.ch),oe(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){tt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Ei(e.cm,n,"gutter")}}function Xo(e,t,i,n){if(e.cm&&!e.cm.curOp)return Ft(e.cm,Xo)(e,t,i,n);if(t.to.line<e.first){Yo(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);Yo(e,u),t={from:oe(e.first,0),to:oe(t.to.line+u,t.to.ch),text:[Ke(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:oe(h,Oe(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tn(e,t.from,t.to),i||(i=eu(e,t)),e.cm?I1(e.cm,t,n):Ul(e,t,n),an(e,i,nt),e.cantEdit&&dr(e,oe(e.firstLine(),0))&&(e.cantEdit=!1)}}function I1(e,t,i){var n=e.doc,u=e.display,h=t.from,p=t.to,b=!1,y=h.line;e.options.lineWrapping||(y=bt(Bn(Oe(n,h.line))),n.iter(y,p.line+1,function($){if($==u.maxLine)return b=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Io(e),Ul(n,t,i,xc(e)),e.options.lineWrapping||(n.iter(y,h.line+t.text.length,function($){var q=Pa($);q>u.maxLineLength&&(u.maxLine=$,u.maxLineLength=q,u.maxLineChanged=!0,b=!1)}),b&&(e.curOp.updateMaxLine=!0)),n1(n,h.line),Gn(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?tt(e):h.line==p.line&&t.text.length==1&&!ru(e.doc,t)?Ei(e,h.line,"text"):tt(e,h.line,p.line+1,C);var _=sr(e,"changes"),M=sr(e,"change");if(M||_){var N={from:h,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 Qo(e,t,i,n,u){var h;n||(n=i),w(n,i)<0&&(h=[n,i],i=h[0],n=h[1]),typeof t=="string"&&(t=e.splitLines(t)),jo(e,{from:i,to:n,text:t,origin:u})}function Jo(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Rc(e,t,i,n){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var b=0;b<h.ranges.length;b++)Jo(h.ranges[b].anchor,t,i,n),Jo(h.ranges[b].head,t,i,n);continue}for(var y=0;y<h.changes.length;++y){var C=h.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,u+1),u=0)}}function Hc(e,t){var i=t.from.line,n=t.to.line,u=t.text.length-(n-i)-1;Rc(e.done,i,n,u),Rc(e.undone,i,n,u)}function wo(e,t,i,n){var u=t,h=t;return typeof t=="number"?h=Oe(e,dt(e,t)):u=bt(t),u==null?null:(n(h,u)&&e.cm&&Ei(e.cm,u,i),h)}function ea(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}ea.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var u=this.lines[i];this.height-=u.height,uc(u),rr(u,"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 qa(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var u=e[n];t+=u.chunkSize(),i+=u.height,u.parent=this}this.size=t,this.height=i,this.parent=null}qa.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],u=n.chunkSize();if(e<u){var h=Math.min(t,u-e),p=n.height;if(n.removeInner(e,h),this.height-=p-n.height,u==h&&(this.children.splice(i--,1),n.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ea))){var b=[];this.collapse(b),this.children=[new ea(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 u=this.children[n],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,i),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,b=p;b<u.lines.length;){var y=new ea(u.lines.slice(b,b+=25));u.height-=y.height,this.children.splice(++n,0,y),y.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new qa(t);if(e.parent){e.size-=i.size,e.height-=i.height;var u=Le(e.parent.children,e);e.parent.children.splice(u+1,0,i)}else{var n=new qa(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 u=this.children[n],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var Ka=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Ka.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=bt(i);if(!(n==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(i.widgets=null);var h=uo(this);Vr(i,Math.max(0,i.height-h)),e&&(yr(e,function(){Bc(e,i,-h),Ei(e,n,"widget")}),rr(e,"lineWidgetCleared",e,this,n))}},Ka.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var u=uo(this)-t;!u||(Ht(this.doc,n)||Vr(n,n.height+u),i&&yr(i,function(){i.curOp.forceUpdate=!0,Bc(i,n,u),rr(i,"lineWidgetChanged",i,e,bt(n))}))},_n(Ka);function Bc(e,t,i){Nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Go(e,i)}function Fc(e,t,i,n){var u=new Ka(e,i,n),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),wo(e,t,"widget",function(p){var b=p.widgets||(p.widgets=[]);if(u.insertAt==null?b.push(u):b.splice(Math.min(b.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!Ht(e,p)){var y=Nr(p)<e.scrollTop;Vr(p,p.height+uo(u)),y&&Go(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&rr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:bt(t)),u}var Ql=0,Ui=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ql};Ui.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&En(e),sr(this,"clear")){var i=this.find();i&&rr(this,"clear",i.from,i.to)}for(var n=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],b=Oa(p.markedSpans,this);e&&!this.collapsed?Ei(e,bt(p),"text"):e&&(b.to!=null&&(u=bt(p)),b.from!=null&&(n=bt(p))),p.markedSpans=i1(p.markedSpans,b),b.from==null&&this.collapsed&&!Ht(this.doc,p)&&e&&Vr(p,Ti(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Bn(this.lines[y]),_=Pa(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&tt(e,n,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Va(e.doc)),e&&rr(e,"markerCleared",e,this,n,u),t&&Zn(e),this.parent&&this.parent.clear()}},Ui.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,u=0;u<this.lines.length;++u){var h=this.lines[u],p=Oa(h.markedSpans,this);if(p.from!=null&&(i=oe(t?h:bt(h),p.from),e==-1))return i;if(p.to!=null&&(n=oe(t?h:bt(h),p.to),e==1))return n}return i&&{from:i,to:n}},Ui.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;!t||!n||yr(n,function(){var u=t.line,h=bt(t.line),p=qs(n,h);if(p&&(mc(p),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ht(i.doc,u)&&i.height!=null){var b=i.height;i.height=null;var y=uo(i)-b;y&&Vr(u,u.height+y)}rr(n,"markerChanged",n,e)})},Ui.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)},Ui.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)}},_n(Ui);function Zi(e,t,i,n,u){if(n&&n.shared)return Wc(e,t,i,n,u);if(e.cm&&!e.cm.curOp)return Ft(e.cm,Zi)(e,t,i,n,u);var h=new Ui(e,u),p=w(t,i);if(n&&Ut(n,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=S("span",[h.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(ac(e,t.line,t,i,h)||t.line!=i.line&&ac(e,i.line,t,i,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");tc()}h.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&&h.collapsed&&!y.options.lineWrapping&&Bn(M)==y.display.maxLine&&(C=!0),h.collapsed&&b!=t.line&&Vr(M,0),rc(M,new Ll(h,b==t.line?t.ch:null,b==i.line?i.ch:null),e.cm&&e.cm.curOp),++b}),h.collapsed&&e.iter(t.line,i.line+1,function(M){Ht(e,M)&&Vr(M,0)}),h.clearOnEnter&&Ne(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(ec(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Ql,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)tt(y,t.line,i.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=i.line;_++)Ei(y,_,"text");h.atomic&&Va(y.doc),rr(y,"markerAdded",y,h)}return h}var ta=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};ta.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")}},ta.prototype.find=function(e,t){return this.primary.find(e,t)},_n(ta);function Wc(e,t,i,n,u){n=Ut(n),n.shared=!1;var h=[Zi(e,t,i,n,u)],p=h[0],b=n.widgetNode;return Fi(e,function(y){b&&(n.widgetNode=b.cloneNode(!0)),h.push(Zi(y,Ce(y,t),Ce(y,i),n,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;p=Ke(h)}),new ta(h,p)}function su(e){return e.findMarks(oe(e.first,0),e.clipPos(oe(e.lastLine())),function(t){return t.parent})}function Jl(e,t){for(var i=0;i<t.length;i++){var n=t[i],u=n.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var b=Zi(e,h,p,n.primary,n.primary.type);n.markers.push(b),b.parent=n}}}function A1(e){for(var t=function(n){var u=e[n],h=[u.primary.doc];Fi(u.primary.doc,function(y){return h.push(y)});for(var p=0;p<u.markers.length;p++){var b=u.markers[p];Le(h,b.doc)==-1&&(b.parent=null,u.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var Uc=0,Sr=function(e,t,i,n,u){if(!(this instanceof Sr))return new Sr(e,t,i,n,u);i==null&&(i=0),qa.call(this,[new ea([new br("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var h=oe(i,0);this.sel=Hi(h),this.history=new mo(null),this.id=++Uc,this.modeOption=t,this.lineSep=n,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ul(this,{from:h,to:h,text:e}),cr(this,Hi(h),nt)};Sr.prototype=Gr(qa.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=Ma(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;jo(this,{from:t,to:oe(i,Oe(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ra(this.cm,0,0),cr(this,Hi(t),nt)}),replaceRange:function(e,t,i,n){t=Ce(this,t),i=i?Ce(this,i):t,Qo(this,e,t,i,n)},getRange:function(e,t,i){var n=tn(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(Li(this,e))return Oe(this,e)},getLineNumber:function(e){return bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Oe(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){lu(this,Ce(this,typeof e=="number"?oe(e,t||0):e),null,i)}),setSelection:z(function(e,t,i){lu(this,Ce(this,e),Ce(this,t||e),i)}),extendSelection:z(function(e,t,i){Vl(this,Ce(this,e),t&&Ce(this,t),i)}),extendSelections:z(function(e,t){Ga(this,qr(this,e),t)}),extendSelectionsBy:z(function(e,t){var i=ht(this.sel.ranges,e);Ga(this,qr(this,i),t)}),setSelections:z(function(e,t,i){if(!!e.length){for(var n=[],u=0;u<e.length;u++)n[u]=new mt(Ce(this,e[u].anchor),Ce(this,e[u].head||e[u].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 u=tn(this,t[n].from(),t[n].to());i=i?i.concat(u):u}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 u=tn(this,i[n].from(),i[n].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[n]=u}return t},replaceSelection:function(e,t,i){for(var n=[],u=0;u<this.sel.ranges.length;u++)n[u]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:z(function(e,t,i){for(var n=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];n[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:i}}for(var b=t&&t!="end"&&P1(this,n,t),y=n.length-1;y>=0;y--)jo(this,n[y]);b?ql(this,b):this.cm&&Di(this.cm)}),undo:z(function(){Xl(this,"undo")}),redo:z(function(){Xl(this,"redo")}),undoSelection:z(function(){Xl(this,"undo",!0)}),redoSelection:z(function(){Xl(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 u=0;u<e.undone.length;u++)e.undone[u].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new mo(this.history),Fi(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:on(this.history.done),undone:on(this.history.undone)}},setHistory:function(e){var t=this.history=new mo(this.history);t.done=on(e.done.slice(0),null,!0),t.undone=on(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,i){return wo(this,e,"gutter",function(n){var u=n.gutterMarkers||(n.gutterMarkers={});return u[t]=i,!i&&ae(u)&&(n.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&wo(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(!Li(this,e)||(t=e,e=Oe(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 wo(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[u])n[u]=i;else{if(be(i).test(n[u]))return!1;n[u]+=" "+i}return!0})}),removeLineClass:z(function(e,t,i){return wo(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=n[u];if(h)if(i==null)n[u]=null;else{var p=h.match(be(i));if(!p)return!1;var b=p.index+p[0].length;n[u]=h.slice(0,p.index)+(!p.index||b==h.length?"":" ")+h.slice(b)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,i){return Fc(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Zi(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),Zi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],i=Oe(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var u=i[n];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,i){e=Ce(this,e),t=Ce(this,t);var n=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var b=0;b<p.length;b++){var y=p[b];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!i||i(y.marker))&&n.push(y.marker.parent||y.marker)}++u}),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(u){var h=u.text.length+n;if(h>e)return t=e,!0;e-=h,++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(Ma(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(Ma(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}],Jl(n,su(this)),n},unlinkDoc:function(e){if(e instanceof Mt&&(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),A1(su(this));break}}if(e.history==this.history){var n=[e.id];Fi(e,function(u){return n.push(u.id)},!0),e.history=new mo(null),e.history.done=on(this.history.done,n),e.history.undone=on(this.history.undone,n)}},iterLinkedDocs:function(e){Fi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):io(e)},lineSeparator:function(){return this.lineSep||`
|
|
2249
|
+
`},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Za(this.cm))})}),Sr.prototype.eachLine=Sr.prototype.iter;var Zc=0;function Gc(e){var t=this;if(cu(t),!(Vt(t,e)||ni(t.display,e))){ur(e),T&&(Zc=+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 u=n.length,h=Array(u),p=0,b=function(){++p==u&&Ft(t,function(){i=Ce(t.doc,i);var $={from:i,to:i,text:t.doc.splitLines(h.filter(function(q){return q!=null}).join(t.doc.lineSeparator())),origin:"paste"};jo(t.doc,$),ql(t.doc,Hi(Ce(t.doc,i),Ce(t.doc,Bi($))))})()},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}h[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()),an(t.doc,Hi(i,i)),M)for(var N=0;N<M.length;++N)Qo(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function D1(e,t){if(T&&(!e.state.draggingText||+new Date-Zc<100)){ro(t);return}if(!(Vt(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 uu(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)),G(e.display.dragCursor,n)}}function cu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function es(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var u=t[n].CodeMirror;u&&i.push(u)}i.length&&i[0].operation(function(){for(var h=0;h<i.length;h++)e(i[h])})}}var Vc=!1;function du(){Vc||(st(),Vc=!0)}function st(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,es($1)},100))}),Ne(window,"blur",function(){return es(po)})}function $1(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Gi={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++)Gi[ai+48]=Gi[ai+96]=String(ai);for(var ja=65;ja<=90;ja++)Gi[ja]=String.fromCharCode(ja);for(var Ya=1;Ya<=12;Ya++)Gi[Ya+111]=Gi[Ya+63235]="F"+Ya;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=de?li.macDefault:li.pcDefault;function pn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,u,h,p=0;p<t.length-1;p++){var b=t[p];if(/^(cmd|meta|m)$/i.test(b))h=!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))u=!0;else throw new Error("Unrecognized modifier name: "+b)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function N1(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 u=ht(i.split(" "),pn),h=0;h<u.length;h++){var p=void 0,b=void 0;h==u.length-1?(b=u.join(" "),p=n):(b=u.slice(0,h+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 u=t.call?t.call(e,n):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&i(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return si(e,t.fallthrough,i,n);for(var h=0;h<t.fallthrough.length;h++){var p=si(e,t.fallthrough[h],i,n);if(p)return p}}}function ts(e){var t=typeof e=="string"?e:Gi[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function fu(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 hu(e,t){if(Z&&e.keyCode==34&&e.char)return!1;var i=Gi[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),fu(i,e,t))}function Mr(e){return typeof e=="string"?li[e]:e}function ln(e,t){for(var i=e.doc.sel.ranges,n=[],u=0;u<i.length;u++){for(var h=t(i[u]);n.length&&w(h.from,Ke(n).to)<=0;){var p=n.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}n.push(h)}yr(e,function(){for(var b=n.length-1;b>=0;b--)Qo(e.doc,"",n[b].from,n[b].to,"+delete");Di(e)})}function Xa(e,t,i){var n=tr(e.text,t+i,i);return n<0||n>e.text.length?null:n}function rs(e,t,i){var n=Xa(e,t.ch,i);return n==null?null:new oe(t.line,n,i<0?"after":"before")}function ra(e,t,i,n,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=_r(i,t.doc.direction);if(h){var p=u<0?Ke(h):h[0],b=u<0==(p.level==1),y=b?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var _=Tn(t,i);C=u<0?i.text.length-1:0;var M=Fn(t,_,C).top;C=pr(function(N){return Fn(t,_,N).top==M},u<0==(p.level==1)?p.from:p.to-1,C),y=="before"&&(C=Xa(i,C,1))}else C=u<0?p.to:p.from;return new oe(n,C,y)}}return new oe(n,u<0?i.text.length:0,u<0?"before":"after")}function qc(e,t,i,n){var u=_r(t,e.doc.direction);if(!u)return rs(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 h=Nt(u,i.ch,i.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(n>0?p.to>i.ch:p.from<i.ch))return rs(t,i,n);var b=function(fe,we){return Xa(t,fe instanceof oe?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||Tn(e,t),V(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,he){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<u.length;fe+=we){var De=u[fe],Ee=we>0==(De.level!=1),ot=Ee?he.begin:b(he.end,-1);if(De.from<=ot&&ot<De.to||(ot=Ee?De.from:b(De.to,-1),he.begin<=ot&&ot<he.end))return xe(ot,Ee)}},te=q(h+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:u.length-1,n,C(ue)),te)?te:null}var xo={selectAll:$c,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),nt)},killLine:function(e){return ln(e,function(t){if(t.empty()){var i=Oe(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 ln(e,function(t){return{from:oe(t.from().line,0),to:Ce(e.doc,oe(t.to().line+1,0))}})},delLineLeft:function(e){return ln(e,function(t){return{from:oe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ln(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 ln(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 pu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ns(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return gu(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/)?ns(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,u=0;u<i.length;u++){var h=i[u].from(),p=At(e.getLine(h.line),h.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 u=t[n].head,h=Oe(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=Oe(e.doc,u.line-1).text;p&&(u=new oe(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),oe(u.line-1,p.length-1),u,"+transpose"))}}i.push(new mt(u,u))}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);Di(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2250
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function pu(e,t){var i=Oe(e.doc,t),n=Bn(i);return n!=i&&(t=bt(n)),ra(!0,e,n,t,1)}function gu(e,t){var i=Oe(e.doc,t),n=s1(i);return n!=i&&(t=bt(n)),ra(!0,e,i,t,-1)}function ns(e,t){var i=pu(e,t.line),n=Oe(e.doc,i.line),u=_r(n,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(i.ch,n.text.search(/\S/)),p=t.line==i.line&&t.ch<=h&&t.ch;return oe(i.line,p?0:h,i.sticky)}return i}function In(e,t,i){if(typeof t=="string"&&(t=xo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),u=t(e)!=We}finally{e.display.shift=n,e.state.suppressEdits=!1}return u}function R1(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var u=si(t,e.state.keyMaps[n],i,e);if(u)return u}return e.options.extraKeys&&si(t,e.options.extraKeys,i,e)||si(t,e.options.keyMap,i,e)}var Vi=new at;function na(e,t,i,n){var u=e.state.keySeq;if(u){if(ts(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Vi.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),vu(e,u+" "+t,i,n))return!0}return vu(e,t,i,n)}function vu(e,t,i,n){var u=R1(e,t,n);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&rr(e,"keyHandled",e,t,i),(u=="handled"||u=="multi")&&(ur(i),Wo(e)),!!u}function is(e,t){var i=hu(t,!0);return i?t.shiftKey&&!e.state.keySeq?na(e,"Shift-"+i,t,function(n){return In(e,n,!0)})||na(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return In(e,n)}):na(e,i,t,function(n){return In(e,n)}):!1}function H1(e,t,i){return na(e,"'"+i+"'",t,function(n){return In(e,n,!0)})}var bu=null;function Kc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=rt(),!Vt(t,e))){T&&k<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=is(t,e);Z&&(bu=n?i:null,!n&&i==88&&!yl&&(de?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),c&&!de&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&jc(t)}}function jc(e){var t=e.display.lineDiv;Lt(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 mu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Vt(this,e)}function Yc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ni(t.display,e)||Vt(t,e)||e.ctrlKey&&!e.altKey||de&&e.metaKey)){var i=e.keyCode,n=e.charCode;if(Z&&i==bu){bu=null,ur(e);return}if(!(Z&&(!e.which||e.which<10)&&is(t,e))){var u=String.fromCharCode(n==null?i:n);u!="\b"&&(H1(t,e,u)||t.display.input.onKeyPress(e))}}}var Xc=400,os=function(e,t,i){this.time=e,this.pos=t,this.button=i};os.prototype.compare=function(e,t,i){return this.time+Xc>e&&w(t,this.pos)==0&&i==this.button};var fr,Yr;function B1(e,t){var i=+new Date;return Yr&&Yr.compare(i,e,t)?(fr=Yr=null,"triple"):fr&&fr.compare(i,e,t)?(Yr=new os(i,e,t),fr=null,"double"):(fr=new os(i,e,t),Yr=null,"single")}function Qc(e){var t=this,i=t.display;if(!(Vt(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,ni(i,e)){A||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!yu(t,e)){var n=Wn(t,e),u=xa(e),h=n?B1(n,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&as(t,u,n,h,e))&&(u==1?n?Jc(t,n,h,e):xi(e)==i.scroller&&ur(e):u==2?(n&&Vl(t.doc,n),setTimeout(function(){return i.input.focus()},20)):u==3&&(je?t.display.input.onContextMenu(e):Rl(t)))}}}function as(e,t,i,n,u){var h="Click";return n=="double"?h="Double"+h:n=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,na(e,fu(h,u),u,function(p){if(typeof p=="string"&&(p=xo[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 ia(e,t,i){var n=e.getOption("configureMouse"),u=n?n(e,t,i):{};if(u.unit==null){var h=ke?i.shiftKey&&i.metaKey:i.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||i.shiftKey),u.addNew==null&&(u.addNew=de?i.metaKey:i.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(de?i.altKey:i.ctrlKey)),u}function Jc(e,t,i,n){T?setTimeout(Xr(Ks,e),0):e.curOp.focus=rt();var u=ia(e,i,n),h=e.doc.sel,p;e.options.dragDrop&&za&&!e.isReadOnly()&&i=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?e0(e,n,t,u):r0(e,n,t,u)}function e0(e,t,i,n){var u=e.display,h=!1,p=Ft(e,function(C){A&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Rl(e)),gr(u.wrapper.ownerDocument,"mouseup",p),gr(u.wrapper.ownerDocument,"mousemove",b),gr(u.scroller,"dragstart",y),gr(u.scroller,"drop",p),h||(ur(C),n.addNew||Vl(e.doc,i,null,null,n.extend),A&&!re||T&&k==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),b=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};A&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!n.moveOnDrag,Ne(u.wrapper.ownerDocument,"mouseup",p),Ne(u.wrapper.ownerDocument,"mousemove",b),Ne(u.scroller,"dragstart",y),Ne(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function t0(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 r0(e,t,i,n){T&&Rl(e);var u=e.display,h=e.doc;ur(t);var p,b,y=h.sel,C=y.ranges;if(n.addNew&&!n.extend?(b=h.sel.contains(i),b>-1?p=C[b]:p=new mt(i,i)):(p=h.sel.primary(),b=h.sel.primIndex),n.unit=="rectangle")n.addNew||(p=new mt(i,i)),i=Wn(e,t,!0,!0),b=-1;else{var _=t0(e,i,n.unit);n.extend?p=Gl(p,_.anchor,_.head,n.extend):p=_}n.addNew?b==-1?(b=C.length,cr(h,wr(e,C.concat([p]),b),{scroll:!1,origin:"*mouse"})):C.length>1&&C[b].empty()&&n.unit=="char"&&!n.extend?(cr(h,wr(e,C.slice(0,b).concat(C.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):au(h,b,p,it):(b=0,cr(h,new nn([p],0),it),y=h.sel);var M=i;function N(he){if(w(M,he)!=0)if(M=he,n.unit=="rectangle"){for(var xe=[],De=e.options.tabSize,Ee=At(Oe(h,i.line).text,i.ch,De),ot=At(Oe(h,he.line).text,he.ch,De),xt=Math.min(Ee,ot),Xt=Math.max(Ee,ot),kt=Math.min(i.line,he.line),Or=Math.min(e.lastLine(),Math.max(i.line,he.line));kt<=Or;kt++){var Tr=Oe(h,kt).text,Gt=Rt(Tr,xt,De);xt==Xt?xe.push(new mt(oe(kt,Gt),oe(kt,Gt))):Tr.length>Gt&&xe.push(new mt(oe(kt,Gt),oe(kt,Rt(Tr,Xt,De))))}xe.length||xe.push(new mt(i,i)),cr(h,wr(e,y.ranges.slice(0,b).concat(xe),b),{origin:"*mouse",scroll:!1}),e.scrollIntoView(he)}else{var hr=p,ir=t0(e,he,n.unit),St=hr.anchor,Pt;w(ir.anchor,St)>0?(Pt=ir.head,St=Ze(hr.from(),ir.anchor)):(Pt=ir.anchor,St=le(hr.to(),ir.head));var Wt=y.ranges.slice(0);Wt[b]=oa(e,new mt(Ce(h,St),Pt)),cr(h,wr(e,Wt,b),it)}}var $=u.wrapper.getBoundingClientRect(),q=0;function te(he){var xe=++q,De=Wn(e,he,!0,n.unit=="rectangle");if(!!De)if(w(De,M)!=0){e.curOp.focus=rt(),N(De);var Ee=go(u,h);(De.line>=Ee.to||De.line<Ee.from)&&setTimeout(Ft(e,function(){q==xe&&te(he)}),150)}else{var ot=he.clientY<$.top?-20:he.clientY>$.bottom?20:0;ot&&setTimeout(Ft(e,function(){q==xe&&(u.scroller.scrollTop+=ot,te(he))}),50)}}function ue(he){e.state.selectingText=!1,q=1/0,he&&(ur(he),u.input.focus()),gr(u.wrapper.ownerDocument,"mousemove",fe),gr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Ft(e,function(he){he.buttons===0||!xa(he)?ue(he):te(he)}),we=Ft(e,ue);e.state.selectingText=we,Ne(u.wrapper.ownerDocument,"mousemove",fe),Ne(u.wrapper.ownerDocument,"mouseup",we)}function oa(e,t){var i=t.anchor,n=t.head,u=Oe(e.doc,i.line);if(w(i,n)==0&&i.sticky==n.sticky)return t;var h=_r(u);if(!h)return t;var p=Nt(h,i.ch,i.sticky),b=h[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==h.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(h,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=h[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 aa(e,t,i,n){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ur(t);var p=e.display,b=p.lineDiv.getBoundingClientRect();if(h>b.bottom||!sr(e,i))return Qr(t);h-=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>=u){var _=kn(e.doc,h),M=e.display.gutterSpecs[y];return Ue(e,i,e,_,M.className,t),Qr(t)}}}function yu(e,t){return aa(e,t,"gutterClick",!0)}function Cu(e,t){ni(e.display,t)||n0(e,t)||Vt(e,t,"contextmenu")||je||e.display.input.onContextMenu(t)}function n0(e,t){return sr(e,"gutterContextMenu")?aa(e,t,"gutterContextMenu",!1):!1}function Qa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Da(e)}var zo={toString:function(){return"CodeMirror.Init"}},Ja={},la={};function ls(e){var t=e.optionHandlers;function i(n,u,h,p){e.defaults[n]=u,h&&(t[n]=p?function(b,y,C){C!=zo&&h(b,y,C)}:h)}e.defineOption=i,e.Init=zo,i("value","",function(n,u){return n.setValue(u)},!0),i("mode",null,function(n,u){n.doc.modeOption=u,tu(n)},!0),i("indentUnit",2,tu,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ua(n),Da(n),tt(n)},!0),i("lineSeparator",null,function(n,u){if(n.doc.lineSep=u,!!u){var h=[],p=n.doc.first;n.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(oe(p,_))}p++});for(var b=h.length-1;b>=0;b--)Qo(n.doc,u,h[b],oe(h[b].line,h[b].ch+u.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,u,h){n.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=zo&&n.refresh()}),i("specialCharPlaceholder",rn,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,u){return n.getInputField().spellcheck=u},!0),i("autocorrect",!1,function(n,u){return n.getInputField().autocorrect=u},!0),i("autocapitalize",!1,function(n,u){return n.getInputField().autocapitalize=u},!0),i("rtlMoveVisually",!Pe),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Qa(n),Wa(n)},!0),i("keyMap","default",function(n,u,h){var p=Mr(u),b=h!=zo&&Mr(h);b&&b.detach&&b.detach(n,p),p.attach&&p.attach(n,b||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,i0,!0),i("gutters",[],function(n,u){n.display.gutterSpecs=Js(u,n.options.lineNumbers),Wa(n)},!0),i("fixedGutter",!0,function(n,u){n.display.gutters.style.left=u?Fo(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return Ni(n)},!0),i("scrollbarStyle","native",function(n){bo(n),Ni(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,u){n.display.gutterSpecs=Js(n.options.gutters,u),Wa(n)},!0),i("firstLineNumber",1,Wa,!0),i("lineNumberFormatter",function(n){return n},Wa,!0),i("showCursorWhenSelecting",!1,$a,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,u){u=="nocursor"&&(po(n),n.display.input.blur()),n.display.input.readOnlyChanged(u)}),i("screenReaderLabel",null,function(n,u){u=u===""?null:u,n.display.input.screenReaderLabelChanged(u)}),i("disableInput",!1,function(n,u){u||n.display.input.reset()},!0),i("dragDrop",!0,F1),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,$a,!0),i("singleCursorHeightPerLine",!0,$a,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ua,!0),i("addModeClass",!1,Ua,!0),i("pollInterval",100),i("undoDepth",200,function(n,u){return n.doc.history.undoDepth=u}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ua,!0),i("moveInputWithCursor",!0,function(n,u){u||n.display.input.resetPosition()}),i("tabindex",null,function(n,u){return n.display.input.getField().tabIndex=u||""}),i("autofocus",null),i("direction","ltr",function(n,u){return n.doc.setDirection(u)},!0),i("phrases",null)}function F1(e,t,i){var n=i&&i!=zo;if(!t!=!n){var u=e.display.dragFunctions,h=t?Ne:gr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function i0(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),Ea(e)),Pi(e),tt(e),Da(e),setTimeout(function(){return Ni(e)},100)}function Mt(e,t){var i=this;if(!(this instanceof Mt))return new Mt(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 u=new Mt.inputStyles[t.inputStyle](this),h=this.display=new O1(e,n,u,t);h.wrapper.CodeMirror=this,Qa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bo(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 at,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),T&&k<11&&setTimeout(function(){return i.display.input.reset(!0)},20),o0(this),du(),En(this),this.curOp.forceUpdate=!0,Ec(this,n),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Uo(i)},20):po(this);for(var p in la)la.hasOwnProperty(p)&&la[p](this,t[p],zo);Vn(this),t.finishInit&&t.finishInit(this);for(var b=0;b<el.length;++b)el[b](this);Zn(this),A&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Mt.defaults=Ja,Mt.optionHandlers=la;function o0(e){var t=e.display;Ne(t.scroller,"mousedown",Ft(e,Qc)),T&&k<11?Ne(t.scroller,"dblclick",Ft(e,function(y){if(!Vt(e,y)){var C=Wn(e,y);if(!(!C||yu(e,y)||ni(e.display,y))){ur(y);var _=e.findWordAt(C);Vl(e.doc,_.anchor,_.head)}}})):Ne(t.scroller,"dblclick",function(y){return Vt(e,y)||ur(y)}),Ne(t.scroller,"contextmenu",function(y){return Cu(e,y)}),Ne(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||Cu(e,y)});var i,n={end:0};function u(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function 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(!Vt(e,y)&&!h(y)&&!yu(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)}u()}),Ne(t.scroller,"touchcancel",u),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Bt(e,t.scroller.scrollTop),vo(e,t.scroller.scrollLeft,!0),Ue(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(y){return Tc(e,y)}),Ne(t.scroller,"DOMMouseScroll",function(y){return Tc(e,y)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){Vt(e,y)||ro(y)},over:function(y){Vt(e,y)||(uu(e,y),ro(y))},start:function(y){return D1(e,y)},drop:Ft(e,Gc),leave:function(y){Vt(e,y)||cu(e)}};var b=t.input.getField();Ne(b,"keyup",function(y){return mu.call(e,y)}),Ne(b,"keydown",Ft(e,Kc)),Ne(b,"keypress",Ft(e,Yc)),Ne(b,"focus",function(y){return Uo(e,y)}),Ne(b,"blur",function(y){return po(e,y)})}var el=[];Mt.defineInitHook=function(e){return el.push(e)};function tl(e,t,i,n){var u=e.doc,h;i==null&&(i="add"),i=="smart"&&(u.mode.indent?h=No(e,t).state:i="prev");var p=e.options.tabSize,b=Oe(u,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"&&(_=u.mode.indent(h,b.text.slice(C.length),b.text),_==We||_>150)){if(!n)return;i="prev"}i=="prev"?t>u.first?_=At(Oe(u,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 Qo(u,M,oe(t,0),oe(t,C.length),"+input"),b.stateAfter=null,!0;for(var q=0;q<u.sel.ranges.length;q++){var te=u.sel.ranges[q];if(te.head.line==t&&te.head.ch<C.length){var ue=oe(t,C.length);au(u,q,new mt(ue,ue));break}}}var gn=null;function vn(e){gn=e}function ss(e,t,i,n,u){var h=e.doc;e.display.shift=!1,n||(n=h.sel);var p=+new Date-200,b=u=="paste"||e.state.pasteIncoming>p,y=io(t),C=null;if(b&&n.ranges.length>1)if(gn&&gn.text.join(`
|
|
2248
2251
|
`)==t){if(n.ranges.length%gn.text.length==0){C=[];for(var _=0;_<gn.text.length;_++)C.push(h.splitLines(gn.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(Oe(h,te.line).text.length,te.ch+Ke(y).length)):b&&gn&&gn.lineWise&&gn.text.join(`
|
|
2249
2252
|
`)==y.join(`
|
|
2250
|
-
`)&&(q=te=oe(q.line,0)));var ue={from:q,to:te,text:C?C[N%C.length]:y,origin:u||(b?"paste":e.state.cutIncoming>p?"cut":"+input")};jo(e.doc,ue),rr(e,"inputRead",e,ue)}t&&!b&&a0(e,t),Di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function wu(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&yr(t,function(){return ss(t,i,0,null,"paste")}),!0}function a0(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var u=i.ranges[n];if(!(u.head.ch>100||n&&i.ranges[n-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var b=0;b<h.electricChars.length;b++)if(t.indexOf(h.electricChars.charAt(b))>-1){p=tl(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Oe(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=tl(e,u.head.line,"smart"));p&&rr(e,"electricInput",e,u.head.line)}}}function xu(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var u=e.doc.sel.ranges[n].head.line,h={anchor:oe(u,0),head:oe(u+1,0)};i.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:i}}function l0(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function s0(){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 A?e.style.width="1000px":e.setAttribute("wrap","off"),Me&&(e.style.border="1px solid black"),l0(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,u){var h=this.options,p=h[n];h[n]==u&&n!="mode"||(h[n]=u,t.hasOwnProperty(n)&&Ft(this,t[n])(this,u,p),Ue(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,u){this.state.keyMaps[u?"push":"unshift"](Mr(n))},removeKeyMap:function(n){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==n||u[h].name==n)return u.splice(h,1),!0},addOverlay:Cr(function(n,u){var h=n.token?n:e.getMode(this.options,n);if(h.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:h,modeSpec:n,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,tt(this)}),removeOverlay:Cr(function(n){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==n||typeof n=="string"&&p.name==n){u.splice(h,1),this.state.modeGen++,tt(this);return}}}),indentLine:Cr(function(n,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Li(this.doc,n)&&tl(this,n,u,h)}),indentSelection:Cr(function(n){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var b=u[p];if(b.empty())b.head.line>h&&(tl(this,b.head.line,n,!0),h=b.head.line,p==this.doc.sel.primIndex&&Di(this));else{var y=b.from(),C=b.to(),_=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=_;M<h;++M)tl(this,M,n);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[p].from().ch>0&&au(this.doc,p,new mt(y,N[p].to()),nt)}}}),getTokenAt:function(n,u){return zl(this,n,u)},getLineTokens:function(n,u){return zl(this,oe(n),u,!0)},getTokenTypeAt:function(n){n=Ce(this.doc,n);var u=Es(this,Oe(this.doc,n.line)),h=0,p=(u.length-1)/2,b=n.ch,y;if(b==0)y=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=b)p=C;else if(u[C*2+1]<b)h=C+1;else{y=u[C*2+2];break}}var _=y?y.indexOf("overlay "):-1;return _<0?y:_==0?null:y.slice(0,_-1)},getModeAt:function(n){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(n).state).mode:u},getHelper:function(n,u){return this.getHelpers(n,u)[0]},getHelpers:function(n,u){var h=[];if(!i.hasOwnProperty(u))return h;var p=i[u],b=this.getModeAt(n);if(typeof b[u]=="string")p[b[u]]&&h.push(p[b[u]]);else if(b[u])for(var y=0;y<b[u].length;y++){var C=p[b[u][y]];C&&h.push(C)}else b.helperType&&p[b.helperType]?h.push(p[b.helperType]):p[b.name]&&h.push(p[b.name]);for(var _=0;_<p._global.length;_++){var M=p._global[_];M.pred(b,this)&&Le(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(n,u){var h=this.doc;return n=dt(h,n==null?h.first+h.size-1:n),No(this,n+1,u).state},cursorCoords:function(n,u){var h,p=this.doc.sel.primary();return n==null?h=p.head:typeof n=="object"?h=Ce(this.doc,n):h=n?p.from():p.to(),Pn(this,h,u||"page")},charCoords:function(n,u){return Nl(this,Ce(this.doc,n),u||"page")},coordsChar:function(n,u){return n=Cc(this,n,u||"page"),R(this,n.left,n.top)},lineAtHeight:function(n,u){return n=Cc(this,{top:n,left:0},u||"page").top,kn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,u,h){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=Oe(this.doc,n)}else b=n;return $l(this,b,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Nr(b):0)},defaultTextHeight:function(){return Ti(this.display)},defaultCharWidth:function(){return Bo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,u,h,p,b){var y=this.display;n=Pn(this,Ce(this.doc,n));var C=n.bottom,_=n.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),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+u.offsetHeight>M)&&n.top>u.offsetHeight?C=n.top-u.offsetHeight:n.bottom+u.offsetHeight<=M&&(C=n.bottom),_+u.offsetWidth>N&&(_=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",b=="right"?(_=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(b=="left"?_=0:b=="middle"&&(_=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=_+"px"),h&&C1(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Cr(Kc),triggerOnKeyPress:Cr(Yc),triggerOnKeyUp:mu,triggerOnMouseDown:Cr(Qc),execCommand:function(n){if(wo.hasOwnProperty(n))return wo[n].call(null,this)},triggerElectric:Cr(function(n){a0(this,n)}),findPosH:function(n,u,h,p){var b=1;u<0&&(b=-1,u=-u);for(var y=Ce(this.doc,n),C=0;C<u&&(y=rl(this.doc,y,b,h,p),!y.hitSide);++C);return y},moveH:Cr(function(n,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?rl(h.doc,p.head,n,u,h.options.rtlMoveVisually):n<0?p.from():p.to()},Be)}),deleteH:Cr(function(n,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):ln(this,function(b){var y=rl(p,b.head,n,u,!1);return n<0?{from:y,to:b.head}:{from:b.head,to:y}})}),findPosV:function(n,u,h,p){var b=1,y=p;u<0&&(b=-1,u=-u);for(var C=Ce(this.doc,n),_=0;_<u;++_){var M=Pn(this,C,"div");if(y==null?y=M.left:M.left=y,C=us(this,M,b,h),C.hitSide)break}return C},moveV:Cr(function(n,u){var h=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=Pn(h,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),b.push(M.left);var N=us(h,M,n,u);return u=="page"&&_==p.sel.primary()&&Go(h,Nl(h,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 u=this.doc,h=Oe(u,n.line).text,p=n.ch,b=n.ch;if(h){var y=this.getHelper(n,"wordChars");(n.sticky=="before"||b==h.length)&&p?--p:++b;for(var C=h.charAt(p),_=W(C,y)?function(M){return W(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!W(M)};p>0&&_(h.charAt(p-1));)--p;for(;b<h.length&&_(h.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)?Lt(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()==rt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cr(function(n,u){Ra(this,n,u)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Kr(this)-this.display.barHeight,width:n.scrollWidth-Kr(this)-this.display.barWidth,clientHeight:El(this),clientWidth:Mi(this)}},scrollIntoView:Cr(function(n,u){n==null?(n={from:this.doc.sel.primary().head,to:null},u==null&&(u=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=u||0,n.from.line!=null?_c(this,n):Sc(this,n.from,n.to,n.margin)}),setSize:Cr(function(n,u){var h=this,p=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};n!=null&&(this.display.wrapper.style.width=p(n)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&yc(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){Ei(h,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,Ue(this,"refresh",this)}),operation:function(n){return yr(this,n)},startOperation:function(){return En(this)},endOperation:function(){return Zn(this)},refresh:Cr(function(){var n=this.display.cachedTextHeight;tt(this),this.curOp.forceUpdate=!0,Da(this),Ra(this,this.doc.scrollLeft,this.doc.scrollTop),Xs(this.display),(n==null||Math.abs(n-Ti(this.display))>.5||this.options.lineWrapping)&&Pi(this),Ue(this,"refresh",this)}),swapDoc:Cr(function(n){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Ec(this,n),Da(this),this.display.input.reset(),Ra(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,u),u}),phrase:function(n){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,n)?u[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}},_n(e),e.registerHelper=function(n,u,h){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][u]=h},e.registerGlobalHelper=function(n,u,h,p){e.registerHelper(n,u,p),i[n]._global.push({pred:h,val:p})}}function rl(e,t,i,n,u){var h=t,p=i,b=Oe(e,t.line),y=u&&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=Oe(e,we))}function _(we){var he;if(n=="codepoint"){var xe=b.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(xe))he=null;else{var De=i>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;he=new oe(t.line,Math.max(0,Math.min(b.text.length,t.ch+i*(De?2:1))),-i)}}else u?he=qc(e.cm,b,t,i):he=rs(b,t,i);if(he==null)if(!we&&C())t=ra(u,e.cm,b,t.line,y);else return!1;else t=he;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)||`
|
|
2253
|
+
`)&&(q=te=oe(q.line,0)));var ue={from:q,to:te,text:C?C[N%C.length]:y,origin:u||(b?"paste":e.state.cutIncoming>p?"cut":"+input")};jo(e.doc,ue),rr(e,"inputRead",e,ue)}t&&!b&&a0(e,t),Di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function wu(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&yr(t,function(){return ss(t,i,0,null,"paste")}),!0}function a0(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var u=i.ranges[n];if(!(u.head.ch>100||n&&i.ranges[n-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var b=0;b<h.electricChars.length;b++)if(t.indexOf(h.electricChars.charAt(b))>-1){p=tl(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Oe(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=tl(e,u.head.line,"smart"));p&&rr(e,"electricInput",e,u.head.line)}}}function xu(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var u=e.doc.sel.ranges[n].head.line,h={anchor:oe(u,0),head:oe(u+1,0)};i.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:i}}function l0(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function s0(){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 A?e.style.width="1000px":e.setAttribute("wrap","off"),Me&&(e.style.border="1px solid black"),l0(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,u){var h=this.options,p=h[n];h[n]==u&&n!="mode"||(h[n]=u,t.hasOwnProperty(n)&&Ft(this,t[n])(this,u,p),Ue(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,u){this.state.keyMaps[u?"push":"unshift"](Mr(n))},removeKeyMap:function(n){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==n||u[h].name==n)return u.splice(h,1),!0},addOverlay:Cr(function(n,u){var h=n.token?n:e.getMode(this.options,n);if(h.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:h,modeSpec:n,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,tt(this)}),removeOverlay:Cr(function(n){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==n||typeof n=="string"&&p.name==n){u.splice(h,1),this.state.modeGen++,tt(this);return}}}),indentLine:Cr(function(n,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Li(this.doc,n)&&tl(this,n,u,h)}),indentSelection:Cr(function(n){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var b=u[p];if(b.empty())b.head.line>h&&(tl(this,b.head.line,n,!0),h=b.head.line,p==this.doc.sel.primIndex&&Di(this));else{var y=b.from(),C=b.to(),_=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=_;M<h;++M)tl(this,M,n);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[p].from().ch>0&&au(this.doc,p,new mt(y,N[p].to()),nt)}}}),getTokenAt:function(n,u){return zl(this,n,u)},getLineTokens:function(n,u){return zl(this,oe(n),u,!0)},getTokenTypeAt:function(n){n=Ce(this.doc,n);var u=Es(this,Oe(this.doc,n.line)),h=0,p=(u.length-1)/2,b=n.ch,y;if(b==0)y=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=b)p=C;else if(u[C*2+1]<b)h=C+1;else{y=u[C*2+2];break}}var _=y?y.indexOf("overlay "):-1;return _<0?y:_==0?null:y.slice(0,_-1)},getModeAt:function(n){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(n).state).mode:u},getHelper:function(n,u){return this.getHelpers(n,u)[0]},getHelpers:function(n,u){var h=[];if(!i.hasOwnProperty(u))return h;var p=i[u],b=this.getModeAt(n);if(typeof b[u]=="string")p[b[u]]&&h.push(p[b[u]]);else if(b[u])for(var y=0;y<b[u].length;y++){var C=p[b[u][y]];C&&h.push(C)}else b.helperType&&p[b.helperType]?h.push(p[b.helperType]):p[b.name]&&h.push(p[b.name]);for(var _=0;_<p._global.length;_++){var M=p._global[_];M.pred(b,this)&&Le(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(n,u){var h=this.doc;return n=dt(h,n==null?h.first+h.size-1:n),No(this,n+1,u).state},cursorCoords:function(n,u){var h,p=this.doc.sel.primary();return n==null?h=p.head:typeof n=="object"?h=Ce(this.doc,n):h=n?p.from():p.to(),Pn(this,h,u||"page")},charCoords:function(n,u){return Nl(this,Ce(this.doc,n),u||"page")},coordsChar:function(n,u){return n=Cc(this,n,u||"page"),R(this,n.left,n.top)},lineAtHeight:function(n,u){return n=Cc(this,{top:n,left:0},u||"page").top,kn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,u,h){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=Oe(this.doc,n)}else b=n;return $l(this,b,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Nr(b):0)},defaultTextHeight:function(){return Ti(this.display)},defaultCharWidth:function(){return Bo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,u,h,p,b){var y=this.display;n=Pn(this,Ce(this.doc,n));var C=n.bottom,_=n.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),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+u.offsetHeight>M)&&n.top>u.offsetHeight?C=n.top-u.offsetHeight:n.bottom+u.offsetHeight<=M&&(C=n.bottom),_+u.offsetWidth>N&&(_=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",b=="right"?(_=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(b=="left"?_=0:b=="middle"&&(_=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=_+"px"),h&&C1(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Cr(Kc),triggerOnKeyPress:Cr(Yc),triggerOnKeyUp:mu,triggerOnMouseDown:Cr(Qc),execCommand:function(n){if(xo.hasOwnProperty(n))return xo[n].call(null,this)},triggerElectric:Cr(function(n){a0(this,n)}),findPosH:function(n,u,h,p){var b=1;u<0&&(b=-1,u=-u);for(var y=Ce(this.doc,n),C=0;C<u&&(y=rl(this.doc,y,b,h,p),!y.hitSide);++C);return y},moveH:Cr(function(n,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?rl(h.doc,p.head,n,u,h.options.rtlMoveVisually):n<0?p.from():p.to()},Be)}),deleteH:Cr(function(n,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):ln(this,function(b){var y=rl(p,b.head,n,u,!1);return n<0?{from:y,to:b.head}:{from:b.head,to:y}})}),findPosV:function(n,u,h,p){var b=1,y=p;u<0&&(b=-1,u=-u);for(var C=Ce(this.doc,n),_=0;_<u;++_){var M=Pn(this,C,"div");if(y==null?y=M.left:M.left=y,C=us(this,M,b,h),C.hitSide)break}return C},moveV:Cr(function(n,u){var h=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=Pn(h,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),b.push(M.left);var N=us(h,M,n,u);return u=="page"&&_==p.sel.primary()&&Go(h,Nl(h,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 u=this.doc,h=Oe(u,n.line).text,p=n.ch,b=n.ch;if(h){var y=this.getHelper(n,"wordChars");(n.sticky=="before"||b==h.length)&&p?--p:++b;for(var C=h.charAt(p),_=W(C,y)?function(M){return W(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!W(M)};p>0&&_(h.charAt(p-1));)--p;for(;b<h.length&&_(h.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)?Lt(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()==rt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cr(function(n,u){Ra(this,n,u)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Kr(this)-this.display.barHeight,width:n.scrollWidth-Kr(this)-this.display.barWidth,clientHeight:El(this),clientWidth:Mi(this)}},scrollIntoView:Cr(function(n,u){n==null?(n={from:this.doc.sel.primary().head,to:null},u==null&&(u=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=u||0,n.from.line!=null?_c(this,n):Sc(this,n.from,n.to,n.margin)}),setSize:Cr(function(n,u){var h=this,p=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};n!=null&&(this.display.wrapper.style.width=p(n)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&yc(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){Ei(h,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,Ue(this,"refresh",this)}),operation:function(n){return yr(this,n)},startOperation:function(){return En(this)},endOperation:function(){return Zn(this)},refresh:Cr(function(){var n=this.display.cachedTextHeight;tt(this),this.curOp.forceUpdate=!0,Da(this),Ra(this,this.doc.scrollLeft,this.doc.scrollTop),Xs(this.display),(n==null||Math.abs(n-Ti(this.display))>.5||this.options.lineWrapping)&&Pi(this),Ue(this,"refresh",this)}),swapDoc:Cr(function(n){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Ec(this,n),Da(this),this.display.input.reset(),Ra(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,u),u}),phrase:function(n){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,n)?u[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}},_n(e),e.registerHelper=function(n,u,h){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][u]=h},e.registerGlobalHelper=function(n,u,h,p){e.registerHelper(n,u,p),i[n]._global.push({pred:h,val:p})}}function rl(e,t,i,n,u){var h=t,p=i,b=Oe(e,t.line),y=u&&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=Oe(e,we))}function _(we){var he;if(n=="codepoint"){var xe=b.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(xe))he=null;else{var De=i>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;he=new oe(t.line,Math.max(0,Math.min(b.text.length,t.ch+i*(De?2:1))),-i)}}else u?he=qc(e.cm,b,t,i):he=rs(b,t,i);if(he==null)if(!we&&C())t=ra(u,e.cm,b,t.line,y);else return!1;else t=he;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)||`
|
|
2251
2254
|
`,ue=W(te,$)?"w":N&&te==`
|
|
2252
2255
|
`?"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=dr(e,t,h,p,!0);return O(h,fe)&&(fe.hitSide=!0),fe}function us(e,t,i,n){var u=e.doc,h=t.left,p;if(n=="page"){var b=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(b-.5*Ti(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,h,p),!!C.outside;){if(i<0?p<=0:p>=u.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 at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(e){var t=this,i=this,n=i.cm,u=i.div=e.lineDiv;u.contentEditable=!0,l0(u,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function h(b){for(var y=b.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Ne(u,"paste",function(b){!h(b)||Vt(n,b)||wu(b,n)||k<=11&&setTimeout(Ft(n,function(){return t.updateFromDOM()}),20)}),Ne(u,"compositionstart",function(b){t.composing={data:b.data,done:!1}}),Ne(u,"compositionupdate",function(b){t.composing||(t.composing={data:b.data,done:!1})}),Ne(u,"compositionend",function(b){t.composing&&(b.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ne(u,"touchstart",function(){return i.forceCompositionEnd()}),Ne(u,"input",function(){t.composing||t.readFromDOMSoon()});function p(b){if(!(!h(b)||Vt(n,b))){if(n.somethingSelected())vn({lineWise:!1,text:n.getSelections()}),b.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var y=xu(n);vn({lineWise:!0,text:y.text}),b.type=="cut"&&n.operation(function(){n.setSelections(y.ranges,0,nt),n.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var C=gn.text.join(`
|
|
2253
2256
|
`);if(b.clipboardData.setData("Text",C),b.clipboardData.getData("Text")==C){b.preventDefault();return}}var _=s0(),M=_.firstChild;n.display.lineSpace.insertBefore(_,n.display.lineSpace.firstChild),M.value=gn.text.join(`
|
|
2254
|
-
`);var N=rt();It(M),setTimeout(function(){n.display.lineSpace.removeChild(_),N.focus(),N==u&&i.showPrimarySelection()},50)}}Ne(u,"copy",p),Ne(u,"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=Na(this.cm,!1);return e.focus=rt()==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(),u=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=ua(t,e.anchorNode,e.anchorOffset),p=ua(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(Ze(h,p),n)==0&&w(le(h,p),u)==0)){var b=t.display.view,y=n.line>=t.display.viewFrom&&nl(t,n)||{node:b[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&nl(t,u);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){G(this.cm.display.cursorDiv,e.cursors),G(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 me(this.div,t)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||rt()!=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(Te&&U&&this.cm.display.gutterSpecs.length&&sa(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var i=ua(t,e.anchorNode,e.anchorOffset),n=ua(t,e.focusNode,e.focusOffset);i&&n&&yr(t,function(){cr(t.doc,Hi(i,n),nt),(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(),u=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=oe(n.line-1,Oe(e.doc,n.line-1).length)),u.ch==Oe(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=oe(u.line+1,0)),n.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,b;n.line==t.viewFrom||(h=Un(e,n.line))==0?(p=bt(t.view[0].line),b=t.view[0].node):(p=bt(t.view[h].line),b=t.view[h-1].node.nextSibling);var y=Un(e,u.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(cs(e,b,_,p,C)),N=tn(e.doc,oe(p,0),oe(C,Oe(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),he=Ke(N),xe=Math.min(we.length-(M.length==1?$:0),he.length-(N.length==1?$:0));q<xe&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.length-q-1);)++q;if(M.length==1&&N.length==1&&p==n.line)for(;$&&$>n.ch&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.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,$),Ee=oe(C,N.length?Ke(N).length-q:0);if(M.length>1||M[0]||w(De,Ee))return Qo(e.doc,M,De,Ee,"+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 tt(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,ss)(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 nl(e,t){var i=qs(e,t.line);if(!i||i.hidden)return null;var n=Oe(e.doc,t.line),u=pc(i,n,t.line),h=_r(n,e.doc.direction),p="left";if(h){var b=Nt(h,t.ch);p=b%2?"right":"left"}var y=Il(u.map,t.ch,p);return y.offset=y.collapse=="right"?y.end:y.start,y}function sa(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 cs(e,t,i,n,u){var h="",p=!1,b=e.doc.lineSeparator(),y=!1;function C($){return function(q){return q.id==$}}function _(){p&&(h+=b,y&&(h+=b),p=y=!1)}function M($){$&&(_(),h+=$)}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(u+1,0),C(+te));fe.length&&(ue=fe[0].find(0))&&M(tn(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 he=0;he<$.childNodes.length;he++)N($.childNodes[he]);/^(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 h}function ua(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 u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==n)return
|
|
2257
|
+
`);var N=rt();It(M),setTimeout(function(){n.display.lineSpace.removeChild(_),N.focus(),N==u&&i.showPrimarySelection()},50)}}Ne(u,"copy",p),Ne(u,"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=Na(this.cm,!1);return e.focus=rt()==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(),u=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=ua(t,e.anchorNode,e.anchorOffset),p=ua(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(Ze(h,p),n)==0&&w(le(h,p),u)==0)){var b=t.display.view,y=n.line>=t.display.viewFrom&&nl(t,n)||{node:b[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&nl(t,u);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){G(this.cm.display.cursorDiv,e.cursors),G(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 me(this.div,t)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||rt()!=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(Te&&U&&this.cm.display.gutterSpecs.length&&sa(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var i=ua(t,e.anchorNode,e.anchorOffset),n=ua(t,e.focusNode,e.focusOffset);i&&n&&yr(t,function(){cr(t.doc,Hi(i,n),nt),(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(),u=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=oe(n.line-1,Oe(e.doc,n.line-1).length)),u.ch==Oe(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=oe(u.line+1,0)),n.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,b;n.line==t.viewFrom||(h=Un(e,n.line))==0?(p=bt(t.view[0].line),b=t.view[0].node):(p=bt(t.view[h].line),b=t.view[h-1].node.nextSibling);var y=Un(e,u.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(cs(e,b,_,p,C)),N=tn(e.doc,oe(p,0),oe(C,Oe(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),he=Ke(N),xe=Math.min(we.length-(M.length==1?$:0),he.length-(N.length==1?$:0));q<xe&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.length-q-1);)++q;if(M.length==1&&N.length==1&&p==n.line)for(;$&&$>n.ch&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.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,$),Ee=oe(C,N.length?Ke(N).length-q:0);if(M.length>1||M[0]||w(De,Ee))return Qo(e.doc,M,De,Ee,"+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 tt(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,ss)(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 nl(e,t){var i=qs(e,t.line);if(!i||i.hidden)return null;var n=Oe(e.doc,t.line),u=pc(i,n,t.line),h=_r(n,e.doc.direction),p="left";if(h){var b=Nt(h,t.ch);p=b%2?"right":"left"}var y=Il(u.map,t.ch,p);return y.offset=y.collapse=="right"?y.end:y.start,y}function sa(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 cs(e,t,i,n,u){var h="",p=!1,b=e.doc.lineSeparator(),y=!1;function C($){return function(q){return q.id==$}}function _(){p&&(h+=b,y&&(h+=b),p=y=!1)}function M($){$&&(_(),h+=$)}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(u+1,0),C(+te));fe.length&&(ue=fe[0].find(0))&&M(tn(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 he=0;he<$.childNodes.length;he++)N($.childNodes[he]);/^(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 h}function ua(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 u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==n)return Lo(h,t,i)}}function Lo(e,t,i){var n=e.text.firstChild,u=!1;if(!t||!me(n,t))return Re(oe(bt(e.line),0),!0);if(t==n&&(u=!0,t=n.childNodes[i],i=0,!t)){var h=e.rest?Ke(e.rest):e.line;return Re(oe(bt(h),h.text.length),u)}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 he=-1;he<(C?C.length:0);he++)for(var xe=he<0?y.map:C[he],De=0;De<xe.length;De+=3){var Ee=xe[De+2];if(Ee==ue||Ee==fe){var ot=bt(he<0?e.line:e.rest[he]),xt=xe[De]+we;return(we<0||Ee!=ue)&&(xt=xe[De+(we?1:0)]),oe(ot,xt)}}}var M=_(p,b,i);if(M)return Re(M,u);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-$),u);$+=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),u);te+=q.textContent.length}}var Zt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};Zt.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Me&&(u.style.width="0px"),Ne(u,"input",function(){T&&k>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ne(u,"paste",function(p){Vt(n,p)||wu(p,n)||(n.state.pasteIncoming=+new Date,i.fastPoll())});function h(p){if(!Vt(n,p)){if(n.somethingSelected())vn({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var b=xu(n);vn({lineWise:!0,text:b.text}),p.type=="cut"?n.setSelections(b.ranges,null,nt):(i.prevInput="",u.value=b.text.join(`
|
|
2255
2258
|
`),It(u))}else return;p.type=="cut"&&(n.state.cutIncoming=+new Date)}}Ne(u,"cut",h),Ne(u,"copy",h),Ne(e.scroller,"paste",function(p){if(!(ni(e,p)||Vt(n,p))){if(!u.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var b=new Event("paste");b.clipboardData=p.clipboardData,u.dispatchEvent(b)}}),Ne(e.lineSpace,"selectstart",function(p){ni(e,p)||ur(p)}),Ne(u,"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(u,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Zt.prototype.createField=function(e){this.wrapper=s0(),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=Na(e);if(e.options.moveInputWithCursor){var u=Pn(e,i.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+p.top-h.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+p.left-h.left))}return n},Zt.prototype.showSelection=function(e){var t=this.cm,i=t.display;G(i.cursorDiv,e.cursors),G(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&&It(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"&&(!pe||rt()!=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||ml(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=i.value;if(u==n&&!t.somethingSelected())return!1;if(T&&k>=9&&this.hasSelection===u||de&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!n&&(n="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,b=Math.min(n.length,u.length);p<b&&n.charCodeAt(p)==u.charCodeAt(p);)++p;return yr(t,function(){ss(t,u.slice(p),n.length-p,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
2256
2259
|
`)>-1?i.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},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,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=Wn(i,e),p=n.scroller.scrollTop;if(!h||Z)return;var b=i.options.resetSelectionOnContextMenu;b&&i.doc.sel.contains(h)==-1&&Ft(i,cr)(i.doc,Hi(h),nt);var y=u.style.cssText,C=t.wrapper.style.cssText,_=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
2257
2260
|
top: `+(e.clientY-_.top-5)+"px; left: "+(e.clientX-_.left-5)+`px;
|
|
2258
2261
|
z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
2259
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;A&&(M=window.scrollY),n.input.focus(),A&&window.scrollTo(null,M),n.input.reset(),i.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=$,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(u.selectionStart!=null){var te=i.somethingSelected(),ue="\u200B"+(te?u.value:"");u.value="\u21DA",u.value=ue,t.prevInput=te?"":"\u200B",u.selectionStart=1,u.selectionEnd=ue.length,n.selForContextMenu=i.doc.sel}}function $(){if(t.contextMenuPending==$&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=p),u.selectionStart!=null)){(!T||T&&k<9)&&N();var te=0,ue=function(){n.selForContextMenu==i.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Ft(i,$c)(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){
|
|
2260
|
-
`,
|
|
2262
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;A&&(M=window.scrollY),n.input.focus(),A&&window.scrollTo(null,M),n.input.reset(),i.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=$,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(u.selectionStart!=null){var te=i.somethingSelected(),ue="\u200B"+(te?u.value:"");u.value="\u21DA",u.value=ue,t.prevInput=te?"":"\u200B",u.selectionStart=1,u.selectionEnd=ue.length,n.selForContextMenu=i.doc.sel}}function $(){if(t.contextMenuPending==$&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=p),u.selectionStart!=null)){(!T||T&&k<9)&&N();var te=0,ue=function(){n.selForContextMenu==i.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Ft(i,$c)(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){ro(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 zu(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=rt();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=b.getValue()}var u;if(e.form&&(Ne(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var p=h.submit=function(){n(),h.submit=u,h.submit(),h.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=u))}},e.style.display="none";var b=Mt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return b}function u0(e){e.off=gr,e.on=Ne,e.wheelEventPixels=T1,e.Doc=Sr,e.splitLines=io,e.countColumn=At,e.findColumn=Rt,e.isWordChar=et,e.Pass=We,e.signal=Ue,e.Line=br,e.changeEnd=Bi,e.scrollbarModel=Bl,e.Pos=oe,e.cmpPos=w,e.modes=cn,e.mimeModes=Jr,e.resolveMode=oo,e.getMode=Do,e.modeExtensions=Sn,e.extendMode=Mn,e.copyState=en,e.startState=Sa,e.innerMode=_a,e.commands=xo,e.keyMap=li,e.keyName=hu,e.isModifierKey=ts,e.lookupKey=si,e.normalizeKeyMap=N1,e.StringStream=Dt,e.SharedTextMarker=ta,e.TextMarker=Ui,e.LineWidget=Ka,e.e_preventDefault=ur,e.e_stopPropagation=Ao,e.e_stop=ro,e.addClass=Lt,e.contains=me,e.rmClass=ye,e.keyNames=Gi}ls(Mt),ui(Mt);var kr="iter insert remove copy getEditor constructor".split(" ");for(var ds in Sr.prototype)Sr.prototype.hasOwnProperty(ds)&&Le(kr,ds)<0&&(Mt.prototype[ds]=function(e){return function(){return e.apply(this.doc,arguments)}}(Sr.prototype[ds]));return _n(Sr),Mt.inputStyles={textarea:Zt,contenteditable:yt},Mt.defineMode=function(e){!Mt.defaults.mode&&e!="null"&&(Mt.defaults.mode=e),Cl.apply(this,arguments)},Mt.defineMIME=ti,Mt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Mt.defineMIME("text/plain","null"),Mt.defineExtension=function(e,t){Mt.prototype[e]=t},Mt.defineDocExtension=function(e,t){Sr.prototype[e]=t},Mt.fromTextArea=zu,u0(Mt),Mt.version="5.62.3",Mt})})(Qi);const Pu=Qi.exports,d7=`.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}
|
|
2263
|
+
`,f7=ce`
|
|
2261
2264
|
.cm-s-skedulo .cm-header {
|
|
2262
2265
|
color: blue;
|
|
2263
2266
|
}
|
|
@@ -2337,12 +2340,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var u=e.
|
|
|
2337
2340
|
.cm-invalidchar {
|
|
2338
2341
|
color: #f00;
|
|
2339
2342
|
}
|
|
2340
|
-
`;(function(s,o){(function(l){l(Eo())})(function(l){l.overlayMode=function(d,c,g){return{startState:function(){return{base:l.startState(d),overlay:l.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(m){return{base:l.copyState(d,m.base),overlay:l.copyState(c,m.overlay),basePos:m.basePos,baseCur:null,overlayPos:m.overlayPos,overlayCur:null}},token:function(m,I){return(m!=I.streamSeen||Math.min(I.basePos,I.overlayPos)<m.start)&&(I.streamSeen=m,I.basePos=I.overlayPos=m.start),m.start==I.basePos&&(I.baseCur=d.token(m,I.base),I.basePos=m.pos),m.start==I.overlayPos&&(m.pos=m.start,I.overlayCur=c.token(m,I.overlay),I.overlayPos=m.pos),m.pos=Math.min(I.basePos,I.overlayPos),I.overlayCur==null?I.baseCur:I.baseCur!=null&&I.overlay.combineTokens||g&&I.overlay.combineTokens==null?I.baseCur+" "+I.overlayCur:I.overlayCur},indent:d.indent&&function(m,I,T){return d.indent(m.base,I,T)},electricChars:d.electricChars,innerMode:function(m){return{state:m.base,mode:d}},blankLine:function(m){var I,T;return d.blankLine&&(I=d.blankLine(m.base)),c.blankLine&&(T=c.blankLine(m.overlay)),T==null?I:g&&I!=null?I+" "+T:T}}}})})();(function(s,o){(function(l){l(Eo())})(function(l){l.defineMode("jinja2",function(){var d=["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=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,m=["true","false"],I=/^(\d[+\-\*\/])?\d+(\.\d+)?/;d=new RegExp("(("+d.join(")|(")+"))\\b"),m=new RegExp("(("+m.join(")|(")+"))\\b");function T(k,A){var B=k.peek();if(A.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(A.intag){if(A.operator){if(A.operator=!1,k.match(m))return"atom";if(k.match(I))return"number"}if(A.sign){if(A.sign=!1,k.match(m))return"atom";if(k.match(I))return"number"}if(A.instring)return B==A.instring&&(A.instring=!1),k.next(),"string";if(B=="'"||B=='"')return A.instring=B,k.next(),"string";if(k.match(A.intag+"}")||k.eat("-")&&k.match(A.intag+"}"))return A.intag=!1,"tag";if(k.match(c))return A.operator=!0,"operator";if(k.match(g))A.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(d))return"keyword";if(k.match(m))return"atom";if(k.match(I))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return A.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(B=k.eat(/\{|%/))return A.intag=B,B=="{"&&(A.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:T}},token:function(k,A){return A.tokenize(k,A)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),l.defineMIME("text/jinja2","jinja2")})})();var g7={exports:{}};(function(s,o){(function(l){l(Eo())})(function(l){var d={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(g,m){var I=g.indentUnit,T={},k=m.htmlMode?d:c;for(var A in k)T[A]=k[A];for(var A in m)T[A]=m[A];var B,U;function Z(E,S){function ee(Lt){return S.tokenize=Lt,Lt(E,S)}var me=E.next();if(me=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ee(ge("atom","]]>")):null:E.match("--")?ee(ge("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ee(Me(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),S.tokenize=ge("meta","?>"),"meta"):(B=E.eat("/")?"closeTag":"openTag",S.tokenize=re,"tag bracket");if(me=="&"){var rt;return E.eat("#")?E.eat("x")?rt=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):rt=E.eatWhile(/[\d]/)&&E.eat(";"):rt=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),rt?"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,B=ee==">"?"endTag":"selfcloseTag","tag bracket";if(ee=="=")return B="equals",null;if(ee=="<"){S.tokenize=Z,S.state=ke,S.tagName=S.tagStart=null;var me=S.tokenize(E,S);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(ee)?(S.tokenize=ve(ee),S.stringStartCol=E.column(),S.tokenize(E,S)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ve(E){var S=function(ee,me){for(;!ee.eol();)if(ee.next()==E){me.tokenize=re;break}return"string"};return S.isInAttribute=!0,S}function ge(E,S){return function(ee,me){for(;!ee.eol();){if(ee.match(S)){me.tokenize=Z;break}ee.next()}return E}}function Me(E){return function(S,ee){for(var me;(me=S.next())!=null;){if(me=="<")return ee.tokenize=Me(E+1),ee.tokenize(S,ee);if(me==">")if(E==1){ee.tokenize=Z;break}else return ee.tokenize=Me(E-1),ee.tokenize(S,ee)}return"meta"}}function Te(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 pe(E){E.context&&(E.context=E.context.prev)}function de(E,S){for(var ee;;){if(!E.context||(ee=E.context.tagName,!T.contextGrabbers.hasOwnProperty(ee)||!T.contextGrabbers[ee].hasOwnProperty(S)))return;pe(E)}}function ke(E,S,ee){return E=="openTag"?(ee.tagStart=S.column(),Pe):E=="closeTag"?Ie:ke}function Pe(E,S,ee){return E=="word"?(ee.tagName=S.current(),U="tag",be):T.allowMissingTagName&&E=="endTag"?(U="tag bracket",be(E,S,ee)):(U="error",Pe)}function Ie(E,S,ee){if(E=="word"){var me=S.current();return ee.context&&ee.context.tagName!=me&&T.implicitlyClosed.hasOwnProperty(ee.context.tagName)&&pe(ee),ee.context&&ee.context.tagName==me||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):(pe(ee),ke)}function je(E,S,ee){return U="error",qe(E,S,ee)}function be(E,S,ee){if(E=="word")return U="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var me=ee.tagName,rt=ee.tagStart;return ee.tagName=ee.tagStart=null,E=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(me)?de(ee,me):(de(ee,me),ee.context=new Te(ee,me,rt==ee.indented)),ke}return U="error",be}function ye(E,S,ee){return E=="equals"?Qe:(T.allowMissing||(U="error"),be(E,S,ee))}function Qe(E,S,ee){return E=="string"?G:E=="word"&&T.allowUnquoted?(U="string",be):(U="error",be(E,S,ee))}function G(E,S,ee){return E=="string"?G:be(E,S,ee)}return{startState:function(E){var S={tokenize:Z,state:ke,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;B=null;var ee=S.tokenize(E,S);return(ee||B)&&ee!="comment"&&(U=null,S.state=S.state(B||ee,E,S),U&&(ee=U=="error"?ee+" error":U)),ee},indent:function(E,S,ee){var me=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+I;if(me&&me.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+I*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(S))return 0;var rt=S&&/^<(\/)?([\w_:\.-]*)/.exec(S);if(rt&&rt[1])for(;me;)if(me.tagName==rt[2]){me=me.prev;break}else if(T.implicitlyClosed.hasOwnProperty(me.tagName))me=me.prev;else break;else if(rt)for(;me;){var Lt=T.contextGrabbers[me.tagName];if(Lt&&Lt.hasOwnProperty(rt[2]))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+I:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(E){E.state==Qe&&(E.state=be)},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 v7={exports:{}};(function(s,o){(function(l){l(Eo())})(function(l){l.defineMode("javascript",function(d,c){var g=d.indentUnit,m=c.statementIndent,I=c.jsonld,T=c.json||I,k=c.trackScope!==!1,A=c.typescript,B=c.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function w(vr){return{type:vr,style:"keyword"}}var O=w("keyword a"),X=w("keyword b"),le=w("keyword c"),Ze=w("keyword d"),dt=w("operator"),Ce={type:"atom",style:"atom"};return{if:w("if"),while:O,with:O,else:X,do:X,try:X,finally:X,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:dt,typeof:dt,instanceof:dt,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 ve(w){for(var O=!1,X,le=!1;(X=w.next())!=null;){if(!O){if(X=="/"&&!le)return;X=="["?le=!0:le&&X=="]"&&(le=!1)}O=!O&&X=="\\"}}var ge,Me;function Te(w,O,X){return ge=w,Me=X,O}function pe(w,O){var X=w.next();if(X=='"'||X=="'")return O.tokenize=de(X),O.tokenize(w,O);if(X=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Te("number","number");if(X=="."&&w.match(".."))return Te("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(X))return Te(X);if(X=="="&&w.eat(">"))return Te("=>","operator");if(X=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Te("number","number");if(/\d/.test(X))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Te("number","number");if(X=="/")return w.eat("*")?(O.tokenize=ke,ke(w,O)):w.eat("/")?(w.skipToEnd(),Te("comment","comment")):oe(w,O,1)?(ve(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Te("regexp","string-2")):(w.eat("="),Te("operator","operator",w.current()));if(X=="`")return O.tokenize=Pe,Pe(w,O);if(X=="#"&&w.peek()=="!")return w.skipToEnd(),Te("meta","meta");if(X=="#"&&w.eatWhile(B))return Te("variable","property");if(X=="<"&&w.match("!--")||X=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Te("comment","comment");if(Z.test(X))return(X!=">"||!O.lexical||O.lexical.type!=">")&&(w.eat("=")?(X=="!"||X=="=")&&w.eat("="):/[<>*+\-|&?]/.test(X)&&(w.eat(X),X==">"&&w.eat(X))),X=="?"&&w.eat(".")?Te("."):Te("operator","operator",w.current());if(B.test(X)){w.eatWhile(B);var le=w.current();if(O.lastType!="."){if(U.propertyIsEnumerable(le)){var Ze=U[le];return Te(Ze.type,Ze.style,le)}if(le=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Te("async","keyword",le)}return Te("variable","variable",le)}}function de(w){return function(O,X){var le=!1,Ze;if(I&&O.peek()=="@"&&O.match(re))return X.tokenize=pe,Te("jsonld-keyword","meta");for(;(Ze=O.next())!=null&&!(Ze==w&&!le);)le=!le&&Ze=="\\";return le||(X.tokenize=pe),Te("string","string")}}function ke(w,O){for(var X=!1,le;le=w.next();){if(le=="/"&&X){O.tokenize=pe;break}X=le=="*"}return Te("comment","comment")}function Pe(w,O){for(var X=!1,le;(le=w.next())!=null;){if(!X&&(le=="`"||le=="$"&&w.eat("{"))){O.tokenize=pe;break}X=!X&&le=="\\"}return Te("quasi","string-2",w.current())}var Ie="([{}])";function qe(w,O){O.fatArrowAt&&(O.fatArrowAt=null);var X=w.string.indexOf("=>",w.start);if(!(X<0)){if(A){var le=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,X));le&&(X=le.index)}for(var Ze=0,dt=!1,Ce=X-1;Ce>=0;--Ce){var vr=w.string.charAt(Ce),qr=Ie.indexOf(vr);if(qr>=0&&qr<3){if(!Ze){++Ce;break}if(--Ze==0){vr=="("&&(dt=!0);break}}else if(qr>=3&&qr<6)++Ze;else if(B.test(vr))dt=!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(dt&&!Ze){++Ce;break}}dt&&!Ze&&(O.fatArrowAt=Ce)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function be(w,O,X,le,Ze,dt){this.indented=w,this.column=O,this.type=X,this.prev=Ze,this.info=dt,le!=null&&(this.align=le)}function ye(w,O){if(!k)return!1;for(var X=w.localVars;X;X=X.next)if(X.name==O)return!0;for(var le=w.context;le;le=le.prev)for(var X=le.vars;X;X=X.next)if(X.name==O)return!0}function Qe(w,O,X,le,Ze){var dt=w.cc;for(G.state=w,G.stream=Ze,G.marked=null,G.cc=dt,G.style=O,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var Ce=dt.length?dt.pop():T?Be:nt;if(Ce(X,le)){for(;dt.length&&dt[dt.length-1].lex;)dt.pop()();return G.marked?G.marked:X=="variable"&&ye(w,le)?"variable-2":O}}}var G={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)G.cc.push(arguments[w])}function S(){return E.apply(null,arguments),!0}function ee(w,O){for(var X=O;X;X=X.next)if(X.name==w)return!0;return!1}function me(w){var O=G.state;if(G.marked="def",!!k){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var X=rt(w,O.context);if(X!=null){O.context=X;return}}else if(!ee(w,O.localVars)){O.localVars=new It(w,O.localVars);return}}c.globalVars&&!ee(w,O.globalVars)&&(O.globalVars=new It(w,O.globalVars))}}function rt(w,O){if(O)if(O.block){var X=rt(w,O.prev);return X?X==O.prev?O:new jt(X,O.vars,!0):null}else return ee(w,O.vars)?O:new jt(O.prev,new It(w,O.vars),!1);else return null}function Lt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function jt(w,O,X){this.prev=w,this.vars=O,this.block=X}function It(w,O){this.name=w,this.next=O}var Xr=new It("this",new It("arguments",null));function Ut(){G.state.context=new jt(G.state.context,G.state.localVars,!1),G.state.localVars=Xr}function At(){G.state.context=new jt(G.state.context,G.state.localVars,!0),G.state.localVars=null}function at(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}at.lex=!0;function Le(w,O){var X=function(){var le=G.state,Ze=le.indented;if(le.lexical.type=="stat")Ze=le.lexical.indented;else for(var dt=le.lexical;dt&&dt.type==")"&&dt.align;dt=dt.prev)Ze=dt.indented;le.lexical=new be(Ze,G.stream.column(),w,null,le.lexical,O)};return X.lex=!0,X}function He(){var w=G.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(X){return X==w?S():w==";"||X=="}"||X==")"||X=="]"?E():S(O)}return O}function nt(w,O){return w=="var"?S(Le("vardef",O),za,We(";"),He):w=="keyword a"?S(Le("form"),Ar,nt,He):w=="keyword b"?S(Le("form"),nt,He):w=="keyword d"?G.stream.match(/^\s*$/,!1)?S():S(Le("stat"),Ke,We(";"),He):w=="debugger"?S(We(";")):w=="{"?S(Le("}"),At,_r,He,at):w==";"?S():w=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==He&&G.state.cc.pop()(),S(Le("form"),Ar,nt,He,ml)):w=="function"?S(cn):w=="for"?S(Le("form"),At,yl,nt,at,He):w=="class"||A&&O=="interface"?(G.marked="keyword",S(Le("form",w=="class"?w:O),Do,He)):w=="variable"?A&&O=="declare"?(G.marked="keyword",S(nt)):A&&(O=="module"||O=="enum"||O=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",O=="enum"?S(kn):O=="type"?S(Cl,We("operator"),Ue,We(";")):S(Le("form"),$r,We("{"),Le("}"),_r,He,He)):A&&O=="namespace"?(G.marked="keyword",S(Le("form"),Be,nt,He)):A&&O=="abstract"?(G.marked="keyword",S(nt)):S(Le("stat"),Ye):w=="switch"?S(Le("form"),Ar,We("{"),Le("}","switch"),At,_r,He,He,at):w=="case"?S(Be,We(":")):w=="default"?S(We(":")):w=="catch"?S(Le("form"),Ut,it,nt,He,at):w=="export"?S(Le("stat"),_a,He):w=="import"?S(Le("stat"),Dt,He):w=="async"?S(nt):O=="@"?S(Be,nt):E(Le("stat"),Be,We(";"),He)}function it(w){if(w=="(")return S(ti,We(")"))}function Be(w,O){return Yt(w,O,!1)}function Rt(w,O){return Yt(w,O,!0)}function Ar(w){return w!="("?E():S(Le(")"),Ke,We(")"),He)}function Yt(w,O,X){if(G.state.fatArrowAt==G.stream.start){var le=X?et:er;if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,We("=>"),le,at);if(w=="variable")return E(Ut,$r,We("=>"),le,at)}var Ze=X?wt:ht;return je.hasOwnProperty(w)?S(Ze):w=="function"?S(cn,Ze):w=="class"||A&&O=="interface"?(G.marked="keyword",S(Le("form"),io,He)):w=="keyword c"||w=="async"?S(X?Rt:Be):w=="("?S(Le(")"),Ke,We(")"),He,Ze):w=="operator"||w=="spread"?S(X?Rt:Be):w=="["?S(Le("]"),bt,He,Ze):w=="{"?ei(pr,"}",null,Ze):w=="quasi"?E(Lr,Ze):w=="new"?S(W(X)):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,X){var le=X==!1?ht:wt,Ze=X==!1?Be:Rt;if(w=="=>")return S(Ut,X?et:er,at);if(w=="operator")return/\+\+|--/.test(O)||A&&O=="!"?S(le):A&&O=="<"&&G.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 ei(Rt,")","call",le);if(w==".")return S(tr,le);if(w=="[")return S(Le("]"),Ke,We("]"),He,le);if(A&&O=="as")return G.marked="keyword",S(Ue,le);if(w=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),S(Ze)}}function Lr(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(Lr):S(Ke,Gr)}function Gr(w){if(w=="}")return G.marked="string-2",G.state.tokenize=Pe,S(Lr)}function er(w){return qe(G.stream,G.state),E(w=="{"?nt:Be)}function et(w){return qe(G.stream,G.state),E(w=="{"?nt:Rt)}function W(w){return function(O){return O=="."?S(w?K:ae):O=="variable"&&A?S(to,w?wt:ht):E(w?Rt:Be)}}function ae(w,O){if(O=="target")return G.marked="keyword",S(ht)}function K(w,O){if(O=="target")return G.marked="keyword",S(wt)}function Ye(w){return w==":"?S(He,nt):E(ht,We(";"),He)}function tr(w){if(w=="variable")return G.marked="property",S()}function pr(w,O){if(w=="async")return G.marked="property",S(pr);if(w=="variable"||G.style=="keyword"){if(G.marked="property",O=="get"||O=="set")return S(zn);var X;return A&&G.state.fatArrowAt==G.stream.start&&(X=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+X[0].length),S(Dr)}else{if(w=="number"||w=="string")return G.marked=I?"property":G.style+" property",S(Dr);if(w=="jsonld-keyword")return S(Dr);if(A&&Lt(O))return G.marked="keyword",S(pr);if(w=="[")return S(Be,Ln,We("]"),Dr);if(w=="spread")return S(Rt,Dr);if(O=="*")return G.marked="keyword",S(pr);if(w==":")return E(Dr)}}function zn(w){return w!="variable"?E(Dr):(G.marked="property",S(cn))}function Dr(w){if(w==":")return S(Rt);if(w=="(")return E(cn)}function Nt(w,O,X){function le(Ze,dt){if(X?X.indexOf(Ze)>-1:Ze==","){var Ce=G.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),S(function(vr,qr){return vr==O||qr==O?E():E(w)},le)}return Ze==O||dt==O?S():X&&X.indexOf(";")>-1?E(w):S(We(O))}return function(Ze,dt){return Ze==O||dt==O?S():E(w,le)}}function ei(w,O,X){for(var le=3;le<arguments.length;le++)G.cc.push(arguments[le]);return S(Le(O,X),Nt(w,O),He)}function _r(w){return w=="}"?S():E(nt,_r)}function Ln(w,O){if(A){if(w==":")return S(Ue);if(O=="?")return S(Ln)}}function Ne(w,O){if(A&&(w==":"||O=="in"))return S(Ue)}function wi(w){if(A&&w==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?S(Be,gr,Ue):S(Ue)}function gr(w,O){if(O=="is")return G.marked="keyword",S()}function Ue(w,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return G.marked="keyword",S(O=="typeof"?Rt:Ue);if(w=="variable"||O=="void")return G.marked="type",S(Qr);if(O=="|"||O=="&")return S(Ue);if(w=="string"||w=="number"||w=="atom")return S(Qr);if(w=="[")return S(Le("]"),Nt(Ue,"]",","),He,Qr);if(w=="{")return S(Le("}"),Io,He,Qr);if(w=="(")return S(Nt(Ao,")"),Vt,Qr);if(w=="<")return S(Nt(Ue,">"),Ue);if(w=="quasi")return E(_n,Qr)}function Vt(w){if(w=="=>")return S(Ue)}function Io(w){return w.match(/[\}\)\]]/)?S():w==","||w==";"?S(Io):E(sr,Io)}function sr(w,O){if(w=="variable"||G.style=="keyword")return G.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(Jr,sr);if(!w.match(/[;\}\)\],]/))return S()}function _n(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(_n):S(Ue,ur)}function ur(w){if(w=="}")return G.marked="string-2",G.state.tokenize=Pe,S(_n)}function Ao(w,O){return w=="variable"&&G.stream.match(/^\s*[?:]/,!1)||O=="?"?S(Ao):w==":"?S(Ue):w=="spread"?S(Ao):E(Ue)}function Qr(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Qr);if(O=="|"||w=="."||O=="&")return S(Ue);if(w=="[")return S(Ue,We("]"),Qr);if(O=="extends"||O=="implements")return G.marked="keyword",S(Ue);if(O=="?")return S(Ue,We(":"),Ue)}function to(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Qr)}function xi(){return E(Ue,xa)}function xa(w,O){if(O=="=")return S(Ue)}function za(w,O){return O=="enum"?(G.marked="keyword",S(kn)):E($r,Ln,Rn,no)}function $r(w,O){if(A&&Lt(O))return G.marked="keyword",S($r);if(w=="variable")return me(O),S();if(w=="spread")return S($r);if(w=="[")return ei(ro,"]");if(w=="{")return ei(bl,"}")}function bl(w,O){return w=="variable"&&!G.stream.match(/^\s*:/,!1)?(me(O),S(Rn)):(w=="variable"&&(G.marked="property"),w=="spread"?S($r):w=="}"?E():w=="["?S(Be,We("]"),We(":"),bl):S(We(":"),$r,Rn))}function ro(){return E($r,Rn)}function Rn(w,O){if(O=="=")return S(Rt)}function no(w){if(w==",")return S(za)}function ml(w,O){if(w=="keyword b"&&O=="else")return S(Le("form","else"),nt,He)}function yl(w,O){if(O=="await")return S(yl);if(w=="(")return S(Le(")"),La,He)}function La(w){return w=="var"?S(za,zi):w=="variable"?S(zi):E(zi)}function zi(w,O){return w==")"?S():w==";"?S(zi):O=="in"||O=="of"?(G.marked="keyword",S(Be,zi)):E(Be,zi)}function cn(w,O){if(O=="*")return G.marked="keyword",S(cn);if(w=="variable")return me(O),S(cn);if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,wi,nt,at);if(A&&O=="<")return S(Le(">"),Nt(xi,">"),He,cn)}function Jr(w,O){if(O=="*")return G.marked="keyword",S(Jr);if(w=="variable")return me(O),S(Jr);if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,wi,at);if(A&&O=="<")return S(Le(">"),Nt(xi,">"),He,Jr)}function Cl(w,O){if(w=="keyword"||w=="variable")return G.marked="type",S(Cl);if(O=="<")return S(Le(">"),Nt(xi,">"),He)}function ti(w,O){return O=="@"&&S(Be,ti),w=="spread"?S(ti):A&&Lt(O)?(G.marked="keyword",S(ti)):A&&w=="this"?S(Ln,Rn):E($r,Ln,Rn)}function io(w,O){return w=="variable"?Do(w,O):Sn(w,O)}function Do(w,O){if(w=="variable")return me(O),S(Sn)}function Sn(w,O){if(O=="<")return S(Le(">"),Nt(xi,">"),He,Sn);if(O=="extends"||O=="implements"||A&&w==",")return O=="implements"&&(G.marked="keyword"),S(A?Ue:Be,Sn);if(w=="{")return S(Le("}"),Mn,He)}function Mn(w,O){if(w=="async"||w=="variable"&&(O=="static"||O=="get"||O=="set"||A&&Lt(O))&&G.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return G.marked="keyword",S(Mn);if(w=="variable"||G.style=="keyword")return G.marked="property",S(en,Mn);if(w=="number"||w=="string")return S(en,Mn);if(w=="[")return S(Be,Ln,We("]"),en,Mn);if(O=="*")return G.marked="keyword",S(Mn);if(A&&w=="(")return E(Jr,Mn);if(w==";"||w==",")return S(Mn);if(w=="}")return S();if(O=="@")return S(Be,Mn)}function en(w,O){if(O=="!"||O=="?")return S(en);if(w==":")return S(Ue,Rn);if(O=="=")return S(Rt);var X=G.state.lexical.prev,le=X&&X.info=="interface";return E(le?Jr:cn)}function _a(w,O){return O=="*"?(G.marked="keyword",S(Vr,We(";"))):O=="default"?(G.marked="keyword",S(Be,We(";"))):w=="{"?S(Nt(Sa,"}"),Vr,We(";")):E(nt)}function Sa(w,O){if(O=="as")return G.marked="keyword",S(We("variable"));if(w=="variable")return E(Rt,Sa)}function Dt(w){return w=="string"?S():w=="("?E(Be):w=="."?E(ht):E(Oe,tn,Vr)}function Oe(w,O){return w=="{"?ei(Oe,"}"):(w=="variable"&&me(O),O=="*"&&(G.marked="keyword"),S(Ma))}function tn(w){if(w==",")return S(Oe,tn)}function Ma(w,O){if(O=="as")return G.marked="keyword",S(Oe)}function Vr(w,O){if(O=="from")return G.marked="keyword",S(Be)}function bt(w){return w=="]"?S():E(Nt(Rt,"]"))}function kn(){return E(Le("form"),$r,We("{"),Le("}"),Nt(Li,"}"),He,He)}function Li(){return E($r,Rn)}function $o(w,O){return w.lastType=="operator"||w.lastType==","||Z.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function oe(w,O,X){return O.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(X||0)))}return{startState:function(w){var O={tokenize:pe,lastType:"sof",cc:[],lexical:new be((w||0)-g,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!=ke&&w.eatSpace())return null;var X=O.tokenize(w,O);return ge=="comment"?X:(O.lastType=ge=="operator"&&(Me=="++"||Me=="--")?"incdec":ge,Qe(O,X,ge,Me,w))},indent:function(w,O){if(w.tokenize==ke||w.tokenize==Pe)return l.Pass;if(w.tokenize!=pe)return 0;var X=O&&O.charAt(0),le=w.lexical,Ze;if(!/^\s*else\b/.test(O))for(var dt=w.cc.length-1;dt>=0;--dt){var Ce=w.cc[dt];if(Ce==He)le=le.prev;else if(Ce!=ml&&Ce!=at)break}for(;(le.type=="stat"||le.type=="form")&&(X=="}"||(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,qr=X==vr;return vr=="vardef"?le.indented+(w.lastType=="operator"||w.lastType==","?le.info.length+1:0):vr=="form"&&X=="{"?le.indented:vr=="form"?le.indented+g:vr=="stat"?le.indented+($o(w,O)?m||g:0):le.info=="switch"&&!qr&&c.doubleIndentSwitch!=!1?le.indented+(/^(?:case|default)\b/.test(O)?g:2*g):le.align?le.column+(qr?0:1):le.indented+(qr?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:I,jsonMode:T,expressionAllowed:oe,skipExpression:function(w){Qe(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 Jf={exports:{}},eh;function b7(){return eh||(eh=1,function(s,o){(function(l){l(Eo())})(function(l){l.defineMode("css",function(be,ye){var Qe=ye.inline;ye.propertyKeywords||(ye=l.resolveMode("text/css"));var G=be.indentUnit,E=ye.tokenHooks,S=ye.documentTypes||{},ee=ye.mediaTypes||{},me=ye.mediaFeatures||{},rt=ye.mediaValueKeywords||{},Lt=ye.propertyKeywords||{},jt=ye.nonStandardPropertyKeywords||{},It=ye.fontProperties||{},Xr=ye.counterDescriptors||{},Ut=ye.colorKeywords||{},At=ye.valueKeywords||{},at=ye.allowNested,Le=ye.lineComment,He=ye.supportsAtComponent===!0,We=be.highlightNonStandardPropertyKeywords!==!1,nt,it;function Be(W,ae){return nt=ae,W}function Rt(W,ae){var K=W.next();if(E[K]){var Ye=E[K](W,ae);if(Ye!==!1)return Ye}if(K=="@")return W.eatWhile(/[\w\\\-]/),Be("def",W.current());if(K=="="||(K=="~"||K=="|")&&W.eat("="))return Be(null,"compare");if(K=='"'||K=="'")return ae.tokenize=Ar(K),ae.tokenize(W,ae);if(K=="#")return W.eatWhile(/[\w\\\-]/),Be("atom","hash");if(K=="!")return W.match(/^\s*\w*/),Be("keyword","important");if(/\d/.test(K)||K=="."&&W.eat(/\d/))return W.eatWhile(/[\w.%]/),Be("number","unit");if(K==="-"){if(/[\d.]/.test(W.peek()))return W.eatWhile(/[\w.%]/),Be("number","unit");if(W.match(/^-[\w\\\-]*/))return W.eatWhile(/[\w\\\-]/),W.match(/^\s*:/,!1)?Be("variable-2","variable-definition"):Be("variable-2","variable");if(W.match(/^\w+-/))return Be("meta","meta")}else return/[,+>*\/]/.test(K)?Be(null,"select-op"):K=="."&&W.match(/^-?[_a-z][_a-z0-9-]*/i)?Be("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?Be(null,K):W.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(W.current())&&(ae.tokenize=Yt),Be("variable callee","variable")):/[\w\\\-]/.test(K)?(W.eatWhile(/[\w\\\-]/),Be("property","word")):Be(null,null)}function Ar(W){return function(ae,K){for(var Ye=!1,tr;(tr=ae.next())!=null;){if(tr==W&&!Ye){W==")"&&ae.backUp(1);break}Ye=!Ye&&tr=="\\"}return(tr==W||!Ye&&W!=")")&&(K.tokenize=null),Be("string","string")}}function Yt(W,ae){return W.next(),W.match(/^\s*[\"\')]/,!1)?ae.tokenize=null:ae.tokenize=Ar(")"),Be(null,"(")}function Ke(W,ae,K){this.type=W,this.indent=ae,this.prev=K}function ht(W,ae,K,Ye){return W.context=new Ke(K,ae.indentation()+(Ye===!1?0:G),W.context),K}function wt(W){return W.context.prev&&(W.context=W.context.prev),W.context.type}function Lr(W,ae,K){return et[K.context.type](W,ae,K)}function Gr(W,ae,K,Ye){for(var tr=Ye||1;tr>0;tr--)K.context=K.context.prev;return Lr(W,ae,K)}function er(W){var ae=W.current().toLowerCase();At.hasOwnProperty(ae)?it="atom":Ut.hasOwnProperty(ae)?it="keyword":it="variable"}var et={};return et.top=function(W,ae,K){if(W=="{")return ht(K,ae,"block");if(W=="}"&&K.context.prev)return wt(K);if(He&&/@component/i.test(W))return ht(K,ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(W))return ht(K,ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(W))return ht(K,ae,"atBlock");if(/^@(font-face|counter-style)/i.test(W))return K.stateArg=W,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(W))return"keyframes";if(W&&W.charAt(0)=="@")return ht(K,ae,"at");if(W=="hash")it="builtin";else if(W=="word")it="tag";else{if(W=="variable-definition")return"maybeprop";if(W=="interpolation")return ht(K,ae,"interpolation");if(W==":")return"pseudo";if(at&&W=="(")return ht(K,ae,"parens")}return K.context.type},et.block=function(W,ae,K){if(W=="word"){var Ye=ae.current().toLowerCase();return Lt.hasOwnProperty(Ye)?(it="property","maybeprop"):jt.hasOwnProperty(Ye)?(it=We?"string-2":"property","maybeprop"):at?(it=ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(it+=" error","maybeprop")}else return W=="meta"?"block":!at&&(W=="hash"||W=="qualifier")?(it="error","block"):et.top(W,ae,K)},et.maybeprop=function(W,ae,K){return W==":"?ht(K,ae,"prop"):Lr(W,ae,K)},et.prop=function(W,ae,K){if(W==";")return wt(K);if(W=="{"&&at)return ht(K,ae,"propBlock");if(W=="}"||W=="{")return Gr(W,ae,K);if(W=="(")return ht(K,ae,"parens");if(W=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current()))it+=" error";else if(W=="word")er(ae);else if(W=="interpolation")return ht(K,ae,"interpolation");return"prop"},et.propBlock=function(W,ae,K){return W=="}"?wt(K):W=="word"?(it="property","maybeprop"):K.context.type},et.parens=function(W,ae,K){return W=="{"||W=="}"?Gr(W,ae,K):W==")"?wt(K):W=="("?ht(K,ae,"parens"):W=="interpolation"?ht(K,ae,"interpolation"):(W=="word"&&er(ae),"parens")},et.pseudo=function(W,ae,K){return W=="meta"?"pseudo":W=="word"?(it="variable-3",K.context.type):Lr(W,ae,K)},et.documentTypes=function(W,ae,K){return W=="word"&&S.hasOwnProperty(ae.current())?(it="tag",K.context.type):et.atBlock(W,ae,K)},et.atBlock=function(W,ae,K){if(W=="(")return ht(K,ae,"atBlock_parens");if(W=="}"||W==";")return Gr(W,ae,K);if(W=="{")return wt(K)&&ht(K,ae,at?"block":"top");if(W=="interpolation")return ht(K,ae,"interpolation");if(W=="word"){var Ye=ae.current().toLowerCase();Ye=="only"||Ye=="not"||Ye=="and"||Ye=="or"?it="keyword":ee.hasOwnProperty(Ye)?it="attribute":me.hasOwnProperty(Ye)?it="property":rt.hasOwnProperty(Ye)?it="keyword":Lt.hasOwnProperty(Ye)?it="property":jt.hasOwnProperty(Ye)?it=We?"string-2":"property":At.hasOwnProperty(Ye)?it="atom":Ut.hasOwnProperty(Ye)?it="keyword":it="error"}return K.context.type},et.atComponentBlock=function(W,ae,K){return W=="}"?Gr(W,ae,K):W=="{"?wt(K)&&ht(K,ae,at?"block":"top",!1):(W=="word"&&(it="error"),K.context.type)},et.atBlock_parens=function(W,ae,K){return W==")"?wt(K):W=="{"||W=="}"?Gr(W,ae,K,2):et.atBlock(W,ae,K)},et.restricted_atBlock_before=function(W,ae,K){return W=="{"?ht(K,ae,"restricted_atBlock"):W=="word"&&K.stateArg=="@counter-style"?(it="variable","restricted_atBlock_before"):Lr(W,ae,K)},et.restricted_atBlock=function(W,ae,K){return W=="}"?(K.stateArg=null,wt(K)):W=="word"?(K.stateArg=="@font-face"&&!It.hasOwnProperty(ae.current().toLowerCase())||K.stateArg=="@counter-style"&&!Xr.hasOwnProperty(ae.current().toLowerCase())?it="error":it="property","maybeprop"):"restricted_atBlock"},et.keyframes=function(W,ae,K){return W=="word"?(it="variable","keyframes"):W=="{"?ht(K,ae,"top"):Lr(W,ae,K)},et.at=function(W,ae,K){return W==";"?wt(K):W=="{"||W=="}"?Gr(W,ae,K):(W=="word"?it="tag":W=="hash"&&(it="builtin"),"at")},et.interpolation=function(W,ae,K){return W=="}"?wt(K):W=="{"||W==";"?Gr(W,ae,K):(W=="word"?it="variable":W!="variable"&&W!="("&&W!=")"&&(it="error"),"interpolation")},{startState:function(W){return{tokenize:null,state:Qe?"block":"top",stateArg:null,context:new Ke(Qe?"block":"top",W||0,null)}},token:function(W,ae){if(!ae.tokenize&&W.eatSpace())return null;var K=(ae.tokenize||Rt)(W,ae);return K&&typeof K=="object"&&(nt=K[1],K=K[0]),it=K,nt!="comment"&&(ae.state=et[ae.state](nt,W,ae)),it},indent:function(W,ae){var K=W.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-G))),tr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Le,fold:"brace"}});function d(be){for(var ye={},Qe=0;Qe<be.length;++Qe)ye[be[Qe].toLowerCase()]=!0;return ye}var c=["domain","regexp","url","url-prefix"],g=d(c),m=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],I=d(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=d(T),A=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],B=d(A),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=d(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"],ve=d(re),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Me=d(ge),Te=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=d(Te),de=["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"],ke=d(de),Pe=["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"],Ie=d(Pe),qe=c.concat(m).concat(T).concat(A).concat(U).concat(re).concat(de).concat(Pe);l.registerHelper("hintWords","css",qe);function je(be,ye){for(var Qe=!1,G;(G=be.next())!=null;){if(Qe&&G=="/"){ye.tokenize=null;break}Qe=G=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:g,mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=je,je(be,ye)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=je,je(be,ye)):["operator","operator"]},":":function(be){return be.match(/^\s*\{/,!1)?[null,null]:!1},$:function(be){return be.match(/^[\w-]+/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(be){return be.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=je,je(be,ye)):["operator","operator"]},"@":function(be){return be.eat("{")?[null,"interpolation"]:be.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(be.eatWhile(/[\w\\\-]/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:I,mediaFeatures:k,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,supportsAtComponent:!0,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=je,je(be,ye)):!1}},name:"css",helperType:"gss"})})}()),Jf.exports}(function(s,o){(function(l){l(Eo(),g7.exports,v7.exports,b7())})(function(l){var d={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(B,U,Z){var re=B.current(),ve=re.search(U);return ve>-1?B.backUp(re.length-ve):re.match(/<\/?$/)&&(B.backUp(re.length),B.match(U,!1)||B.match(re)),Z}var g={};function m(B){var U=g[B];return U||(g[B]=new RegExp("\\s+"+B+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function I(B,U){var Z=B.match(m(U));return Z?/^\s*(.*?)\s*$/.exec(Z[2])[1]:""}function T(B,U){return new RegExp((U?"^":"")+"</s*"+B+"s*>","i")}function k(B,U){for(var Z in B)for(var re=U[Z]||(U[Z]=[]),ve=B[Z],ge=ve.length-1;ge>=0;ge--)re.unshift(ve[ge])}function A(B,U){for(var Z=0;Z<B.length;Z++){var re=B[Z];if(!re[0]||re[1].test(I(U,re[0])))return re[2]}}l.defineMode("htmlmixed",function(B,U){var Z=l.getMode(B,{name:"xml",htmlMode:!0,multilineTagIndentFactor:U.multilineTagIndentFactor,multilineTagIndentPastTag:U.multilineTagIndentPastTag,allowMissingTagName:U.allowMissingTagName}),re={},ve=U&&U.tags,ge=U&&U.scriptTypes;if(k(d,re),ve&&k(ve,re),ge)for(var Me=ge.length-1;Me>=0;Me--)re.script.unshift(["type",ge[Me].matches,ge[Me].mode]);function Te(pe,de){var ke=Z.token(pe,de.htmlState),Pe=/\btag\b/.test(ke),Ie;if(Pe&&!/[<>\s\/]/.test(pe.current())&&(Ie=de.htmlState.tagName&&de.htmlState.tagName.toLowerCase())&&re.hasOwnProperty(Ie))de.inTag=Ie+" ";else if(de.inTag&&Pe&&/>$/.test(pe.current())){var qe=/^([\S]+) (.*)/.exec(de.inTag);de.inTag=null;var je=pe.current()==">"&&A(re[qe[1]],qe[2]),be=l.getMode(B,je),ye=T(qe[1],!0),Qe=T(qe[1],!1);de.token=function(G,E){return G.match(ye,!1)?(E.token=Te,E.localState=E.localMode=null,null):c(G,Qe,E.localMode.token(G,E.localState))},de.localMode=be,de.localState=l.startState(be,Z.indent(de.htmlState,"",""))}else de.inTag&&(de.inTag+=pe.current(),pe.eol()&&(de.inTag+=" "));return ke}return{startState:function(){var pe=l.startState(Z);return{token:Te,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var de;return pe.localState&&(de=l.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:de,htmlState:l.copyState(Z,pe.htmlState)}},token:function(pe,de){return de.token(pe,de)},indent:function(pe,de,ke){return!pe.localMode||/^\s*<\//.test(de)?Z.indent(pe.htmlState,de,ke):pe.localMode.indent?pe.localMode.indent(pe.localState,de,ke):l.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||Z}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(s,o){(function(l){l(Eo())})(function(l){l.defineMode("solr",function(){var d=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function m(B){return parseFloat(B).toString()===B}function I(B){return function(U,Z){for(var re=!1,ve;(ve=U.next())!=null&&!(ve==B&&!re);)re=!re&&ve=="\\";return re||(Z.tokenize=A),"string"}}function T(B){return function(U,Z){var re="operator";return B=="+"?re+=" positive":B=="-"?re+=" negative":B=="|"?U.eat(/\|/):B=="&"?U.eat(/\&/):B=="^"&&(re+=" boost"),Z.tokenize=A,re}}function k(B){return function(U,Z){for(var re=B;(B=U.peek())&&B.match(d)!=null;)re+=U.next();return Z.tokenize=A,g.test(re)?"operator":m(re)?"number":U.peek()==":"?"field":"string"}}function A(B,U){var Z=B.next();return Z=='"'?U.tokenize=I(Z):c.test(Z)?U.tokenize=T(Z):d.test(Z)&&(U.tokenize=k(Z)),U.tokenize!=A?U.tokenize(B,U):null}return{startState:function(){return{tokenize:A}},token:function(B,U){return B.eatSpace()?null:U.tokenize(B,U)}}}),l.defineMIME("text/x-solr","solr")})})();(function(s,o){(function(l){l(Eo())})(function(l){l.defineOption("placeholder","",function(k,A,B){var U=B&&B!=l.Init;if(A&&!U)k.on("blur",m),k.on("change",I),k.on("swapDoc",I),l.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){g(k)}),I(k);else if(!A&&U){k.off("blur",m),k.off("change",I),k.off("swapDoc",I),l.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),d(k);var Z=k.getWrapperElement();Z.className=Z.className.replace(" CodeMirror-empty","")}A&&!k.hasFocus()&&m(k)});function d(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function c(k){d(k);var A=k.state.placeholder=document.createElement("pre");A.style.cssText="height: 0; overflow: visible",A.style.direction=k.getOption("direction"),A.className="CodeMirror-placeholder CodeMirror-line-like";var B=k.getOption("placeholder");typeof B=="string"&&(B=document.createTextNode(B)),A.appendChild(B),k.display.lineSpace.insertBefore(A,k.display.lineSpace.firstChild)}function g(k){setTimeout(function(){var A=!1;if(k.lineCount()==1){var B=k.getInputField();A=B.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(B.querySelector(".CodeMirror-line").textContent)}A?c(k):d(k)},20)}function m(k){T(k)&&c(k)}function I(k){var A=k.getWrapperElement(),B=T(k);A.className=A.className.replace(" CodeMirror-empty","")+(B?" CodeMirror-empty":""),B?c(k):d(k)}function T(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var m7=Object.defineProperty,y7=Object.getOwnPropertyDescriptor,Os=(s,o,l,d)=>{for(var c=d>1?void 0:d?y7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&m7(o,l,c),c};Pu.defineMode("nunjucks",(s,o)=>Pu.overlayMode(Pu.getMode(s,o.backdrop||"text/html"),Pu.getMode(s,"jinja2")));const cp=Se("input-code"),C7=["json","nunjucks","javascript","solr"],w7={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends un{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(s){this.value=s.getValue(),this.dispatchChange()}updated(){var o,l;super.updated();const s=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),s!==((o=this.editor)==null?void 0:o.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var d;return(d=this.editor)==null?void 0:d.refresh()})}get editorValue(){var s;return((s=this.editor)==null?void 0:s.getDoc().getValue())||""}set editorValue(s){var o;(o=this.editor)==null||o.setValue(s)}firstUpdated(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector(".editor");s&&(this.editor=Pu.fromTextArea(s,{mode:w7[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 d=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(d)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.editor)==null||s.off("change",this.changeHandler)}renderInput(){return Y`
|
|
2343
|
+
`;(function(s,o){(function(l){l(Qi.exports)})(function(l){l.overlayMode=function(d,c,g){return{startState:function(){return{base:l.startState(d),overlay:l.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(m){return{base:l.copyState(d,m.base),overlay:l.copyState(c,m.overlay),basePos:m.basePos,baseCur:null,overlayPos:m.overlayPos,overlayCur:null}},token:function(m,I){return(m!=I.streamSeen||Math.min(I.basePos,I.overlayPos)<m.start)&&(I.streamSeen=m,I.basePos=I.overlayPos=m.start),m.start==I.basePos&&(I.baseCur=d.token(m,I.base),I.basePos=m.pos),m.start==I.overlayPos&&(m.pos=m.start,I.overlayCur=c.token(m,I.overlay),I.overlayPos=m.pos),m.pos=Math.min(I.basePos,I.overlayPos),I.overlayCur==null?I.baseCur:I.baseCur!=null&&I.overlay.combineTokens||g&&I.overlay.combineTokens==null?I.baseCur+" "+I.overlayCur:I.overlayCur},indent:d.indent&&function(m,I,T){return d.indent(m.base,I,T)},electricChars:d.electricChars,innerMode:function(m){return{state:m.base,mode:d}},blankLine:function(m){var I,T;return d.blankLine&&(I=d.blankLine(m.base)),c.blankLine&&(T=c.blankLine(m.overlay)),T==null?I:g&&I!=null?I+" "+T:T}}}})})();(function(s,o){(function(l){l(Qi.exports)})(function(l){l.defineMode("jinja2",function(){var d=["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=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,m=["true","false"],I=/^(\d[+\-\*\/])?\d+(\.\d+)?/;d=new RegExp("(("+d.join(")|(")+"))\\b"),m=new RegExp("(("+m.join(")|(")+"))\\b");function T(k,A){var B=k.peek();if(A.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(A.intag){if(A.operator){if(A.operator=!1,k.match(m))return"atom";if(k.match(I))return"number"}if(A.sign){if(A.sign=!1,k.match(m))return"atom";if(k.match(I))return"number"}if(A.instring)return B==A.instring&&(A.instring=!1),k.next(),"string";if(B=="'"||B=='"')return A.instring=B,k.next(),"string";if(k.match(A.intag+"}")||k.eat("-")&&k.match(A.intag+"}"))return A.intag=!1,"tag";if(k.match(c))return A.operator=!0,"operator";if(k.match(g))A.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(d))return"keyword";if(k.match(m))return"atom";if(k.match(I))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return A.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(B=k.eat(/\{|%/))return A.intag=B,B=="{"&&(A.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:T}},token:function(k,A){return A.tokenize(k,A)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),l.defineMIME("text/jinja2","jinja2")})})();var h7={exports:{}};(function(s,o){(function(l){l(Qi.exports)})(function(l){var d={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(g,m){var I=g.indentUnit,T={},k=m.htmlMode?d:c;for(var A in k)T[A]=k[A];for(var A in m)T[A]=m[A];var B,U;function Z(E,S){function ee(Lt){return S.tokenize=Lt,Lt(E,S)}var me=E.next();if(me=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ee(ge("atom","]]>")):null:E.match("--")?ee(ge("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ee(Me(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),S.tokenize=ge("meta","?>"),"meta"):(B=E.eat("/")?"closeTag":"openTag",S.tokenize=re,"tag bracket");if(me=="&"){var rt;return E.eat("#")?E.eat("x")?rt=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):rt=E.eatWhile(/[\d]/)&&E.eat(";"):rt=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),rt?"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,B=ee==">"?"endTag":"selfcloseTag","tag bracket";if(ee=="=")return B="equals",null;if(ee=="<"){S.tokenize=Z,S.state=ke,S.tagName=S.tagStart=null;var me=S.tokenize(E,S);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(ee)?(S.tokenize=ve(ee),S.stringStartCol=E.column(),S.tokenize(E,S)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ve(E){var S=function(ee,me){for(;!ee.eol();)if(ee.next()==E){me.tokenize=re;break}return"string"};return S.isInAttribute=!0,S}function ge(E,S){return function(ee,me){for(;!ee.eol();){if(ee.match(S)){me.tokenize=Z;break}ee.next()}return E}}function Me(E){return function(S,ee){for(var me;(me=S.next())!=null;){if(me=="<")return ee.tokenize=Me(E+1),ee.tokenize(S,ee);if(me==">")if(E==1){ee.tokenize=Z;break}else return ee.tokenize=Me(E-1),ee.tokenize(S,ee)}return"meta"}}function Te(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 pe(E){E.context&&(E.context=E.context.prev)}function de(E,S){for(var ee;;){if(!E.context||(ee=E.context.tagName,!T.contextGrabbers.hasOwnProperty(ee)||!T.contextGrabbers[ee].hasOwnProperty(S)))return;pe(E)}}function ke(E,S,ee){return E=="openTag"?(ee.tagStart=S.column(),Pe):E=="closeTag"?Ie:ke}function Pe(E,S,ee){return E=="word"?(ee.tagName=S.current(),U="tag",be):T.allowMissingTagName&&E=="endTag"?(U="tag bracket",be(E,S,ee)):(U="error",Pe)}function Ie(E,S,ee){if(E=="word"){var me=S.current();return ee.context&&ee.context.tagName!=me&&T.implicitlyClosed.hasOwnProperty(ee.context.tagName)&&pe(ee),ee.context&&ee.context.tagName==me||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):(pe(ee),ke)}function je(E,S,ee){return U="error",qe(E,S,ee)}function be(E,S,ee){if(E=="word")return U="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var me=ee.tagName,rt=ee.tagStart;return ee.tagName=ee.tagStart=null,E=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(me)?de(ee,me):(de(ee,me),ee.context=new Te(ee,me,rt==ee.indented)),ke}return U="error",be}function ye(E,S,ee){return E=="equals"?Qe:(T.allowMissing||(U="error"),be(E,S,ee))}function Qe(E,S,ee){return E=="string"?G:E=="word"&&T.allowUnquoted?(U="string",be):(U="error",be(E,S,ee))}function G(E,S,ee){return E=="string"?G:be(E,S,ee)}return{startState:function(E){var S={tokenize:Z,state:ke,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;B=null;var ee=S.tokenize(E,S);return(ee||B)&&ee!="comment"&&(U=null,S.state=S.state(B||ee,E,S),U&&(ee=U=="error"?ee+" error":U)),ee},indent:function(E,S,ee){var me=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+I;if(me&&me.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+I*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(S))return 0;var rt=S&&/^<(\/)?([\w_:\.-]*)/.exec(S);if(rt&&rt[1])for(;me;)if(me.tagName==rt[2]){me=me.prev;break}else if(T.implicitlyClosed.hasOwnProperty(me.tagName))me=me.prev;else break;else if(rt)for(;me;){var Lt=T.contextGrabbers[me.tagName];if(Lt&&Lt.hasOwnProperty(rt[2]))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+I:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(E){E.state==Qe&&(E.state=be)},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 p7={exports:{}};(function(s,o){(function(l){l(Qi.exports)})(function(l){l.defineMode("javascript",function(d,c){var g=d.indentUnit,m=c.statementIndent,I=c.jsonld,T=c.json||I,k=c.trackScope!==!1,A=c.typescript,B=c.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function w(vr){return{type:vr,style:"keyword"}}var O=w("keyword a"),X=w("keyword b"),le=w("keyword c"),Ze=w("keyword d"),dt=w("operator"),Ce={type:"atom",style:"atom"};return{if:w("if"),while:O,with:O,else:X,do:X,try:X,finally:X,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:dt,typeof:dt,instanceof:dt,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 ve(w){for(var O=!1,X,le=!1;(X=w.next())!=null;){if(!O){if(X=="/"&&!le)return;X=="["?le=!0:le&&X=="]"&&(le=!1)}O=!O&&X=="\\"}}var ge,Me;function Te(w,O,X){return ge=w,Me=X,O}function pe(w,O){var X=w.next();if(X=='"'||X=="'")return O.tokenize=de(X),O.tokenize(w,O);if(X=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Te("number","number");if(X=="."&&w.match(".."))return Te("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(X))return Te(X);if(X=="="&&w.eat(">"))return Te("=>","operator");if(X=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Te("number","number");if(/\d/.test(X))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Te("number","number");if(X=="/")return w.eat("*")?(O.tokenize=ke,ke(w,O)):w.eat("/")?(w.skipToEnd(),Te("comment","comment")):oe(w,O,1)?(ve(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Te("regexp","string-2")):(w.eat("="),Te("operator","operator",w.current()));if(X=="`")return O.tokenize=Pe,Pe(w,O);if(X=="#"&&w.peek()=="!")return w.skipToEnd(),Te("meta","meta");if(X=="#"&&w.eatWhile(B))return Te("variable","property");if(X=="<"&&w.match("!--")||X=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Te("comment","comment");if(Z.test(X))return(X!=">"||!O.lexical||O.lexical.type!=">")&&(w.eat("=")?(X=="!"||X=="=")&&w.eat("="):/[<>*+\-|&?]/.test(X)&&(w.eat(X),X==">"&&w.eat(X))),X=="?"&&w.eat(".")?Te("."):Te("operator","operator",w.current());if(B.test(X)){w.eatWhile(B);var le=w.current();if(O.lastType!="."){if(U.propertyIsEnumerable(le)){var Ze=U[le];return Te(Ze.type,Ze.style,le)}if(le=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Te("async","keyword",le)}return Te("variable","variable",le)}}function de(w){return function(O,X){var le=!1,Ze;if(I&&O.peek()=="@"&&O.match(re))return X.tokenize=pe,Te("jsonld-keyword","meta");for(;(Ze=O.next())!=null&&!(Ze==w&&!le);)le=!le&&Ze=="\\";return le||(X.tokenize=pe),Te("string","string")}}function ke(w,O){for(var X=!1,le;le=w.next();){if(le=="/"&&X){O.tokenize=pe;break}X=le=="*"}return Te("comment","comment")}function Pe(w,O){for(var X=!1,le;(le=w.next())!=null;){if(!X&&(le=="`"||le=="$"&&w.eat("{"))){O.tokenize=pe;break}X=!X&&le=="\\"}return Te("quasi","string-2",w.current())}var Ie="([{}])";function qe(w,O){O.fatArrowAt&&(O.fatArrowAt=null);var X=w.string.indexOf("=>",w.start);if(!(X<0)){if(A){var le=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,X));le&&(X=le.index)}for(var Ze=0,dt=!1,Ce=X-1;Ce>=0;--Ce){var vr=w.string.charAt(Ce),qr=Ie.indexOf(vr);if(qr>=0&&qr<3){if(!Ze){++Ce;break}if(--Ze==0){vr=="("&&(dt=!0);break}}else if(qr>=3&&qr<6)++Ze;else if(B.test(vr))dt=!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(dt&&!Ze){++Ce;break}}dt&&!Ze&&(O.fatArrowAt=Ce)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function be(w,O,X,le,Ze,dt){this.indented=w,this.column=O,this.type=X,this.prev=Ze,this.info=dt,le!=null&&(this.align=le)}function ye(w,O){if(!k)return!1;for(var X=w.localVars;X;X=X.next)if(X.name==O)return!0;for(var le=w.context;le;le=le.prev)for(var X=le.vars;X;X=X.next)if(X.name==O)return!0}function Qe(w,O,X,le,Ze){var dt=w.cc;for(G.state=w,G.stream=Ze,G.marked=null,G.cc=dt,G.style=O,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var Ce=dt.length?dt.pop():T?Be:nt;if(Ce(X,le)){for(;dt.length&&dt[dt.length-1].lex;)dt.pop()();return G.marked?G.marked:X=="variable"&&ye(w,le)?"variable-2":O}}}var G={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)G.cc.push(arguments[w])}function S(){return E.apply(null,arguments),!0}function ee(w,O){for(var X=O;X;X=X.next)if(X.name==w)return!0;return!1}function me(w){var O=G.state;if(G.marked="def",!!k){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var X=rt(w,O.context);if(X!=null){O.context=X;return}}else if(!ee(w,O.localVars)){O.localVars=new It(w,O.localVars);return}}c.globalVars&&!ee(w,O.globalVars)&&(O.globalVars=new It(w,O.globalVars))}}function rt(w,O){if(O)if(O.block){var X=rt(w,O.prev);return X?X==O.prev?O:new jt(X,O.vars,!0):null}else return ee(w,O.vars)?O:new jt(O.prev,new It(w,O.vars),!1);else return null}function Lt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function jt(w,O,X){this.prev=w,this.vars=O,this.block=X}function It(w,O){this.name=w,this.next=O}var Xr=new It("this",new It("arguments",null));function Ut(){G.state.context=new jt(G.state.context,G.state.localVars,!1),G.state.localVars=Xr}function At(){G.state.context=new jt(G.state.context,G.state.localVars,!0),G.state.localVars=null}function at(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}at.lex=!0;function Le(w,O){var X=function(){var le=G.state,Ze=le.indented;if(le.lexical.type=="stat")Ze=le.lexical.indented;else for(var dt=le.lexical;dt&&dt.type==")"&&dt.align;dt=dt.prev)Ze=dt.indented;le.lexical=new be(Ze,G.stream.column(),w,null,le.lexical,O)};return X.lex=!0,X}function He(){var w=G.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(X){return X==w?S():w==";"||X=="}"||X==")"||X=="]"?E():S(O)}return O}function nt(w,O){return w=="var"?S(Le("vardef",O),za,We(";"),He):w=="keyword a"?S(Le("form"),Ar,nt,He):w=="keyword b"?S(Le("form"),nt,He):w=="keyword d"?G.stream.match(/^\s*$/,!1)?S():S(Le("stat"),Ke,We(";"),He):w=="debugger"?S(We(";")):w=="{"?S(Le("}"),At,_r,He,at):w==";"?S():w=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==He&&G.state.cc.pop()(),S(Le("form"),Ar,nt,He,ml)):w=="function"?S(cn):w=="for"?S(Le("form"),At,yl,nt,at,He):w=="class"||A&&O=="interface"?(G.marked="keyword",S(Le("form",w=="class"?w:O),Do,He)):w=="variable"?A&&O=="declare"?(G.marked="keyword",S(nt)):A&&(O=="module"||O=="enum"||O=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",O=="enum"?S(kn):O=="type"?S(Cl,We("operator"),Ue,We(";")):S(Le("form"),$r,We("{"),Le("}"),_r,He,He)):A&&O=="namespace"?(G.marked="keyword",S(Le("form"),Be,nt,He)):A&&O=="abstract"?(G.marked="keyword",S(nt)):S(Le("stat"),Ye):w=="switch"?S(Le("form"),Ar,We("{"),Le("}","switch"),At,_r,He,He,at):w=="case"?S(Be,We(":")):w=="default"?S(We(":")):w=="catch"?S(Le("form"),Ut,it,nt,He,at):w=="export"?S(Le("stat"),_a,He):w=="import"?S(Le("stat"),Dt,He):w=="async"?S(nt):O=="@"?S(Be,nt):E(Le("stat"),Be,We(";"),He)}function it(w){if(w=="(")return S(ti,We(")"))}function Be(w,O){return Yt(w,O,!1)}function Rt(w,O){return Yt(w,O,!0)}function Ar(w){return w!="("?E():S(Le(")"),Ke,We(")"),He)}function Yt(w,O,X){if(G.state.fatArrowAt==G.stream.start){var le=X?et:er;if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,We("=>"),le,at);if(w=="variable")return E(Ut,$r,We("=>"),le,at)}var Ze=X?wt:ht;return je.hasOwnProperty(w)?S(Ze):w=="function"?S(cn,Ze):w=="class"||A&&O=="interface"?(G.marked="keyword",S(Le("form"),oo,He)):w=="keyword c"||w=="async"?S(X?Rt:Be):w=="("?S(Le(")"),Ke,We(")"),He,Ze):w=="operator"||w=="spread"?S(X?Rt:Be):w=="["?S(Le("]"),bt,He,Ze):w=="{"?ei(pr,"}",null,Ze):w=="quasi"?E(Lr,Ze):w=="new"?S(W(X)):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,X){var le=X==!1?ht:wt,Ze=X==!1?Be:Rt;if(w=="=>")return S(Ut,X?et:er,at);if(w=="operator")return/\+\+|--/.test(O)||A&&O=="!"?S(le):A&&O=="<"&&G.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 ei(Rt,")","call",le);if(w==".")return S(tr,le);if(w=="[")return S(Le("]"),Ke,We("]"),He,le);if(A&&O=="as")return G.marked="keyword",S(Ue,le);if(w=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),S(Ze)}}function Lr(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(Lr):S(Ke,Gr)}function Gr(w){if(w=="}")return G.marked="string-2",G.state.tokenize=Pe,S(Lr)}function er(w){return qe(G.stream,G.state),E(w=="{"?nt:Be)}function et(w){return qe(G.stream,G.state),E(w=="{"?nt:Rt)}function W(w){return function(O){return O=="."?S(w?K:ae):O=="variable"&&A?S(ro,w?wt:ht):E(w?Rt:Be)}}function ae(w,O){if(O=="target")return G.marked="keyword",S(ht)}function K(w,O){if(O=="target")return G.marked="keyword",S(wt)}function Ye(w){return w==":"?S(He,nt):E(ht,We(";"),He)}function tr(w){if(w=="variable")return G.marked="property",S()}function pr(w,O){if(w=="async")return G.marked="property",S(pr);if(w=="variable"||G.style=="keyword"){if(G.marked="property",O=="get"||O=="set")return S(zn);var X;return A&&G.state.fatArrowAt==G.stream.start&&(X=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+X[0].length),S(Dr)}else{if(w=="number"||w=="string")return G.marked=I?"property":G.style+" property",S(Dr);if(w=="jsonld-keyword")return S(Dr);if(A&&Lt(O))return G.marked="keyword",S(pr);if(w=="[")return S(Be,Ln,We("]"),Dr);if(w=="spread")return S(Rt,Dr);if(O=="*")return G.marked="keyword",S(pr);if(w==":")return E(Dr)}}function zn(w){return w!="variable"?E(Dr):(G.marked="property",S(cn))}function Dr(w){if(w==":")return S(Rt);if(w=="(")return E(cn)}function Nt(w,O,X){function le(Ze,dt){if(X?X.indexOf(Ze)>-1:Ze==","){var Ce=G.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),S(function(vr,qr){return vr==O||qr==O?E():E(w)},le)}return Ze==O||dt==O?S():X&&X.indexOf(";")>-1?E(w):S(We(O))}return function(Ze,dt){return Ze==O||dt==O?S():E(w,le)}}function ei(w,O,X){for(var le=3;le<arguments.length;le++)G.cc.push(arguments[le]);return S(Le(O,X),Nt(w,O),He)}function _r(w){return w=="}"?S():E(nt,_r)}function Ln(w,O){if(A){if(w==":")return S(Ue);if(O=="?")return S(Ln)}}function Ne(w,O){if(A&&(w==":"||O=="in"))return S(Ue)}function wi(w){if(A&&w==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?S(Be,gr,Ue):S(Ue)}function gr(w,O){if(O=="is")return G.marked="keyword",S()}function Ue(w,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return G.marked="keyword",S(O=="typeof"?Rt:Ue);if(w=="variable"||O=="void")return G.marked="type",S(Qr);if(O=="|"||O=="&")return S(Ue);if(w=="string"||w=="number"||w=="atom")return S(Qr);if(w=="[")return S(Le("]"),Nt(Ue,"]",","),He,Qr);if(w=="{")return S(Le("}"),Io,He,Qr);if(w=="(")return S(Nt(Ao,")"),Vt,Qr);if(w=="<")return S(Nt(Ue,">"),Ue);if(w=="quasi")return E(_n,Qr)}function Vt(w){if(w=="=>")return S(Ue)}function Io(w){return w.match(/[\}\)\]]/)?S():w==","||w==";"?S(Io):E(sr,Io)}function sr(w,O){if(w=="variable"||G.style=="keyword")return G.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(Jr,sr);if(!w.match(/[;\}\)\],]/))return S()}function _n(w,O){return w!="quasi"?E():O.slice(O.length-2)!="${"?S(_n):S(Ue,ur)}function ur(w){if(w=="}")return G.marked="string-2",G.state.tokenize=Pe,S(_n)}function Ao(w,O){return w=="variable"&&G.stream.match(/^\s*[?:]/,!1)||O=="?"?S(Ao):w==":"?S(Ue):w=="spread"?S(Ao):E(Ue)}function Qr(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Qr);if(O=="|"||w=="."||O=="&")return S(Ue);if(w=="[")return S(Ue,We("]"),Qr);if(O=="extends"||O=="implements")return G.marked="keyword",S(Ue);if(O=="?")return S(Ue,We(":"),Ue)}function ro(w,O){if(O=="<")return S(Le(">"),Nt(Ue,">"),He,Qr)}function xi(){return E(Ue,xa)}function xa(w,O){if(O=="=")return S(Ue)}function za(w,O){return O=="enum"?(G.marked="keyword",S(kn)):E($r,Ln,Rn,io)}function $r(w,O){if(A&&Lt(O))return G.marked="keyword",S($r);if(w=="variable")return me(O),S();if(w=="spread")return S($r);if(w=="[")return ei(no,"]");if(w=="{")return ei(bl,"}")}function bl(w,O){return w=="variable"&&!G.stream.match(/^\s*:/,!1)?(me(O),S(Rn)):(w=="variable"&&(G.marked="property"),w=="spread"?S($r):w=="}"?E():w=="["?S(Be,We("]"),We(":"),bl):S(We(":"),$r,Rn))}function no(){return E($r,Rn)}function Rn(w,O){if(O=="=")return S(Rt)}function io(w){if(w==",")return S(za)}function ml(w,O){if(w=="keyword b"&&O=="else")return S(Le("form","else"),nt,He)}function yl(w,O){if(O=="await")return S(yl);if(w=="(")return S(Le(")"),La,He)}function La(w){return w=="var"?S(za,zi):w=="variable"?S(zi):E(zi)}function zi(w,O){return w==")"?S():w==";"?S(zi):O=="in"||O=="of"?(G.marked="keyword",S(Be,zi)):E(Be,zi)}function cn(w,O){if(O=="*")return G.marked="keyword",S(cn);if(w=="variable")return me(O),S(cn);if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,wi,nt,at);if(A&&O=="<")return S(Le(">"),Nt(xi,">"),He,cn)}function Jr(w,O){if(O=="*")return G.marked="keyword",S(Jr);if(w=="variable")return me(O),S(Jr);if(w=="(")return S(Ut,Le(")"),Nt(ti,")"),He,wi,at);if(A&&O=="<")return S(Le(">"),Nt(xi,">"),He,Jr)}function Cl(w,O){if(w=="keyword"||w=="variable")return G.marked="type",S(Cl);if(O=="<")return S(Le(">"),Nt(xi,">"),He)}function ti(w,O){return O=="@"&&S(Be,ti),w=="spread"?S(ti):A&&Lt(O)?(G.marked="keyword",S(ti)):A&&w=="this"?S(Ln,Rn):E($r,Ln,Rn)}function oo(w,O){return w=="variable"?Do(w,O):Sn(w,O)}function Do(w,O){if(w=="variable")return me(O),S(Sn)}function Sn(w,O){if(O=="<")return S(Le(">"),Nt(xi,">"),He,Sn);if(O=="extends"||O=="implements"||A&&w==",")return O=="implements"&&(G.marked="keyword"),S(A?Ue:Be,Sn);if(w=="{")return S(Le("}"),Mn,He)}function Mn(w,O){if(w=="async"||w=="variable"&&(O=="static"||O=="get"||O=="set"||A&&Lt(O))&&G.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return G.marked="keyword",S(Mn);if(w=="variable"||G.style=="keyword")return G.marked="property",S(en,Mn);if(w=="number"||w=="string")return S(en,Mn);if(w=="[")return S(Be,Ln,We("]"),en,Mn);if(O=="*")return G.marked="keyword",S(Mn);if(A&&w=="(")return E(Jr,Mn);if(w==";"||w==",")return S(Mn);if(w=="}")return S();if(O=="@")return S(Be,Mn)}function en(w,O){if(O=="!"||O=="?")return S(en);if(w==":")return S(Ue,Rn);if(O=="=")return S(Rt);var X=G.state.lexical.prev,le=X&&X.info=="interface";return E(le?Jr:cn)}function _a(w,O){return O=="*"?(G.marked="keyword",S(Vr,We(";"))):O=="default"?(G.marked="keyword",S(Be,We(";"))):w=="{"?S(Nt(Sa,"}"),Vr,We(";")):E(nt)}function Sa(w,O){if(O=="as")return G.marked="keyword",S(We("variable"));if(w=="variable")return E(Rt,Sa)}function Dt(w){return w=="string"?S():w=="("?E(Be):w=="."?E(ht):E(Oe,tn,Vr)}function Oe(w,O){return w=="{"?ei(Oe,"}"):(w=="variable"&&me(O),O=="*"&&(G.marked="keyword"),S(Ma))}function tn(w){if(w==",")return S(Oe,tn)}function Ma(w,O){if(O=="as")return G.marked="keyword",S(Oe)}function Vr(w,O){if(O=="from")return G.marked="keyword",S(Be)}function bt(w){return w=="]"?S():E(Nt(Rt,"]"))}function kn(){return E(Le("form"),$r,We("{"),Le("}"),Nt(Li,"}"),He,He)}function Li(){return E($r,Rn)}function $o(w,O){return w.lastType=="operator"||w.lastType==","||Z.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function oe(w,O,X){return O.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(X||0)))}return{startState:function(w){var O={tokenize:pe,lastType:"sof",cc:[],lexical:new be((w||0)-g,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!=ke&&w.eatSpace())return null;var X=O.tokenize(w,O);return ge=="comment"?X:(O.lastType=ge=="operator"&&(Me=="++"||Me=="--")?"incdec":ge,Qe(O,X,ge,Me,w))},indent:function(w,O){if(w.tokenize==ke||w.tokenize==Pe)return l.Pass;if(w.tokenize!=pe)return 0;var X=O&&O.charAt(0),le=w.lexical,Ze;if(!/^\s*else\b/.test(O))for(var dt=w.cc.length-1;dt>=0;--dt){var Ce=w.cc[dt];if(Ce==He)le=le.prev;else if(Ce!=ml&&Ce!=at)break}for(;(le.type=="stat"||le.type=="form")&&(X=="}"||(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,qr=X==vr;return vr=="vardef"?le.indented+(w.lastType=="operator"||w.lastType==","?le.info.length+1:0):vr=="form"&&X=="{"?le.indented:vr=="form"?le.indented+g:vr=="stat"?le.indented+($o(w,O)?m||g:0):le.info=="switch"&&!qr&&c.doubleIndentSwitch!=!1?le.indented+(/^(?:case|default)\b/.test(O)?g:2*g):le.align?le.column+(qr?0:1):le.indented+(qr?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:I,jsonMode:T,expressionAllowed:oe,skipExpression:function(w){Qe(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 Xf={exports:{}},Qf;function g7(){return Qf||(Qf=1,function(s,o){(function(l){l(Qi.exports)})(function(l){l.defineMode("css",function(be,ye){var Qe=ye.inline;ye.propertyKeywords||(ye=l.resolveMode("text/css"));var G=be.indentUnit,E=ye.tokenHooks,S=ye.documentTypes||{},ee=ye.mediaTypes||{},me=ye.mediaFeatures||{},rt=ye.mediaValueKeywords||{},Lt=ye.propertyKeywords||{},jt=ye.nonStandardPropertyKeywords||{},It=ye.fontProperties||{},Xr=ye.counterDescriptors||{},Ut=ye.colorKeywords||{},At=ye.valueKeywords||{},at=ye.allowNested,Le=ye.lineComment,He=ye.supportsAtComponent===!0,We=be.highlightNonStandardPropertyKeywords!==!1,nt,it;function Be(W,ae){return nt=ae,W}function Rt(W,ae){var K=W.next();if(E[K]){var Ye=E[K](W,ae);if(Ye!==!1)return Ye}if(K=="@")return W.eatWhile(/[\w\\\-]/),Be("def",W.current());if(K=="="||(K=="~"||K=="|")&&W.eat("="))return Be(null,"compare");if(K=='"'||K=="'")return ae.tokenize=Ar(K),ae.tokenize(W,ae);if(K=="#")return W.eatWhile(/[\w\\\-]/),Be("atom","hash");if(K=="!")return W.match(/^\s*\w*/),Be("keyword","important");if(/\d/.test(K)||K=="."&&W.eat(/\d/))return W.eatWhile(/[\w.%]/),Be("number","unit");if(K==="-"){if(/[\d.]/.test(W.peek()))return W.eatWhile(/[\w.%]/),Be("number","unit");if(W.match(/^-[\w\\\-]*/))return W.eatWhile(/[\w\\\-]/),W.match(/^\s*:/,!1)?Be("variable-2","variable-definition"):Be("variable-2","variable");if(W.match(/^\w+-/))return Be("meta","meta")}else return/[,+>*\/]/.test(K)?Be(null,"select-op"):K=="."&&W.match(/^-?[_a-z][_a-z0-9-]*/i)?Be("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?Be(null,K):W.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(W.current())&&(ae.tokenize=Yt),Be("variable callee","variable")):/[\w\\\-]/.test(K)?(W.eatWhile(/[\w\\\-]/),Be("property","word")):Be(null,null)}function Ar(W){return function(ae,K){for(var Ye=!1,tr;(tr=ae.next())!=null;){if(tr==W&&!Ye){W==")"&&ae.backUp(1);break}Ye=!Ye&&tr=="\\"}return(tr==W||!Ye&&W!=")")&&(K.tokenize=null),Be("string","string")}}function Yt(W,ae){return W.next(),W.match(/^\s*[\"\')]/,!1)?ae.tokenize=null:ae.tokenize=Ar(")"),Be(null,"(")}function Ke(W,ae,K){this.type=W,this.indent=ae,this.prev=K}function ht(W,ae,K,Ye){return W.context=new Ke(K,ae.indentation()+(Ye===!1?0:G),W.context),K}function wt(W){return W.context.prev&&(W.context=W.context.prev),W.context.type}function Lr(W,ae,K){return et[K.context.type](W,ae,K)}function Gr(W,ae,K,Ye){for(var tr=Ye||1;tr>0;tr--)K.context=K.context.prev;return Lr(W,ae,K)}function er(W){var ae=W.current().toLowerCase();At.hasOwnProperty(ae)?it="atom":Ut.hasOwnProperty(ae)?it="keyword":it="variable"}var et={};return et.top=function(W,ae,K){if(W=="{")return ht(K,ae,"block");if(W=="}"&&K.context.prev)return wt(K);if(He&&/@component/i.test(W))return ht(K,ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(W))return ht(K,ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(W))return ht(K,ae,"atBlock");if(/^@(font-face|counter-style)/i.test(W))return K.stateArg=W,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(W))return"keyframes";if(W&&W.charAt(0)=="@")return ht(K,ae,"at");if(W=="hash")it="builtin";else if(W=="word")it="tag";else{if(W=="variable-definition")return"maybeprop";if(W=="interpolation")return ht(K,ae,"interpolation");if(W==":")return"pseudo";if(at&&W=="(")return ht(K,ae,"parens")}return K.context.type},et.block=function(W,ae,K){if(W=="word"){var Ye=ae.current().toLowerCase();return Lt.hasOwnProperty(Ye)?(it="property","maybeprop"):jt.hasOwnProperty(Ye)?(it=We?"string-2":"property","maybeprop"):at?(it=ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(it+=" error","maybeprop")}else return W=="meta"?"block":!at&&(W=="hash"||W=="qualifier")?(it="error","block"):et.top(W,ae,K)},et.maybeprop=function(W,ae,K){return W==":"?ht(K,ae,"prop"):Lr(W,ae,K)},et.prop=function(W,ae,K){if(W==";")return wt(K);if(W=="{"&&at)return ht(K,ae,"propBlock");if(W=="}"||W=="{")return Gr(W,ae,K);if(W=="(")return ht(K,ae,"parens");if(W=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current()))it+=" error";else if(W=="word")er(ae);else if(W=="interpolation")return ht(K,ae,"interpolation");return"prop"},et.propBlock=function(W,ae,K){return W=="}"?wt(K):W=="word"?(it="property","maybeprop"):K.context.type},et.parens=function(W,ae,K){return W=="{"||W=="}"?Gr(W,ae,K):W==")"?wt(K):W=="("?ht(K,ae,"parens"):W=="interpolation"?ht(K,ae,"interpolation"):(W=="word"&&er(ae),"parens")},et.pseudo=function(W,ae,K){return W=="meta"?"pseudo":W=="word"?(it="variable-3",K.context.type):Lr(W,ae,K)},et.documentTypes=function(W,ae,K){return W=="word"&&S.hasOwnProperty(ae.current())?(it="tag",K.context.type):et.atBlock(W,ae,K)},et.atBlock=function(W,ae,K){if(W=="(")return ht(K,ae,"atBlock_parens");if(W=="}"||W==";")return Gr(W,ae,K);if(W=="{")return wt(K)&&ht(K,ae,at?"block":"top");if(W=="interpolation")return ht(K,ae,"interpolation");if(W=="word"){var Ye=ae.current().toLowerCase();Ye=="only"||Ye=="not"||Ye=="and"||Ye=="or"?it="keyword":ee.hasOwnProperty(Ye)?it="attribute":me.hasOwnProperty(Ye)?it="property":rt.hasOwnProperty(Ye)?it="keyword":Lt.hasOwnProperty(Ye)?it="property":jt.hasOwnProperty(Ye)?it=We?"string-2":"property":At.hasOwnProperty(Ye)?it="atom":Ut.hasOwnProperty(Ye)?it="keyword":it="error"}return K.context.type},et.atComponentBlock=function(W,ae,K){return W=="}"?Gr(W,ae,K):W=="{"?wt(K)&&ht(K,ae,at?"block":"top",!1):(W=="word"&&(it="error"),K.context.type)},et.atBlock_parens=function(W,ae,K){return W==")"?wt(K):W=="{"||W=="}"?Gr(W,ae,K,2):et.atBlock(W,ae,K)},et.restricted_atBlock_before=function(W,ae,K){return W=="{"?ht(K,ae,"restricted_atBlock"):W=="word"&&K.stateArg=="@counter-style"?(it="variable","restricted_atBlock_before"):Lr(W,ae,K)},et.restricted_atBlock=function(W,ae,K){return W=="}"?(K.stateArg=null,wt(K)):W=="word"?(K.stateArg=="@font-face"&&!It.hasOwnProperty(ae.current().toLowerCase())||K.stateArg=="@counter-style"&&!Xr.hasOwnProperty(ae.current().toLowerCase())?it="error":it="property","maybeprop"):"restricted_atBlock"},et.keyframes=function(W,ae,K){return W=="word"?(it="variable","keyframes"):W=="{"?ht(K,ae,"top"):Lr(W,ae,K)},et.at=function(W,ae,K){return W==";"?wt(K):W=="{"||W=="}"?Gr(W,ae,K):(W=="word"?it="tag":W=="hash"&&(it="builtin"),"at")},et.interpolation=function(W,ae,K){return W=="}"?wt(K):W=="{"||W==";"?Gr(W,ae,K):(W=="word"?it="variable":W!="variable"&&W!="("&&W!=")"&&(it="error"),"interpolation")},{startState:function(W){return{tokenize:null,state:Qe?"block":"top",stateArg:null,context:new Ke(Qe?"block":"top",W||0,null)}},token:function(W,ae){if(!ae.tokenize&&W.eatSpace())return null;var K=(ae.tokenize||Rt)(W,ae);return K&&typeof K=="object"&&(nt=K[1],K=K[0]),it=K,nt!="comment"&&(ae.state=et[ae.state](nt,W,ae)),it},indent:function(W,ae){var K=W.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-G))),tr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Le,fold:"brace"}});function d(be){for(var ye={},Qe=0;Qe<be.length;++Qe)ye[be[Qe].toLowerCase()]=!0;return ye}var c=["domain","regexp","url","url-prefix"],g=d(c),m=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],I=d(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=d(T),A=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],B=d(A),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=d(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"],ve=d(re),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Me=d(ge),Te=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=d(Te),de=["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"],ke=d(de),Pe=["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"],Ie=d(Pe),qe=c.concat(m).concat(T).concat(A).concat(U).concat(re).concat(de).concat(Pe);l.registerHelper("hintWords","css",qe);function je(be,ye){for(var Qe=!1,G;(G=be.next())!=null;){if(Qe&&G=="/"){ye.tokenize=null;break}Qe=G=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:g,mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=je,je(be,ye)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=je,je(be,ye)):["operator","operator"]},":":function(be){return be.match(/^\s*\{/,!1)?[null,null]:!1},$:function(be){return be.match(/^[\w-]+/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(be){return be.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=je,je(be,ye)):["operator","operator"]},"@":function(be){return be.eat("{")?[null,"interpolation"]:be.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(be.eatWhile(/[\w\\\-]/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:I,mediaFeatures:k,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,supportsAtComponent:!0,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=je,je(be,ye)):!1}},name:"css",helperType:"gss"})})}()),Xf.exports}(function(s,o){(function(l){l(Qi.exports,h7.exports,p7.exports,g7())})(function(l){var d={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(B,U,Z){var re=B.current(),ve=re.search(U);return ve>-1?B.backUp(re.length-ve):re.match(/<\/?$/)&&(B.backUp(re.length),B.match(U,!1)||B.match(re)),Z}var g={};function m(B){var U=g[B];return U||(g[B]=new RegExp("\\s+"+B+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function I(B,U){var Z=B.match(m(U));return Z?/^\s*(.*?)\s*$/.exec(Z[2])[1]:""}function T(B,U){return new RegExp((U?"^":"")+"</s*"+B+"s*>","i")}function k(B,U){for(var Z in B)for(var re=U[Z]||(U[Z]=[]),ve=B[Z],ge=ve.length-1;ge>=0;ge--)re.unshift(ve[ge])}function A(B,U){for(var Z=0;Z<B.length;Z++){var re=B[Z];if(!re[0]||re[1].test(I(U,re[0])))return re[2]}}l.defineMode("htmlmixed",function(B,U){var Z=l.getMode(B,{name:"xml",htmlMode:!0,multilineTagIndentFactor:U.multilineTagIndentFactor,multilineTagIndentPastTag:U.multilineTagIndentPastTag,allowMissingTagName:U.allowMissingTagName}),re={},ve=U&&U.tags,ge=U&&U.scriptTypes;if(k(d,re),ve&&k(ve,re),ge)for(var Me=ge.length-1;Me>=0;Me--)re.script.unshift(["type",ge[Me].matches,ge[Me].mode]);function Te(pe,de){var ke=Z.token(pe,de.htmlState),Pe=/\btag\b/.test(ke),Ie;if(Pe&&!/[<>\s\/]/.test(pe.current())&&(Ie=de.htmlState.tagName&&de.htmlState.tagName.toLowerCase())&&re.hasOwnProperty(Ie))de.inTag=Ie+" ";else if(de.inTag&&Pe&&/>$/.test(pe.current())){var qe=/^([\S]+) (.*)/.exec(de.inTag);de.inTag=null;var je=pe.current()==">"&&A(re[qe[1]],qe[2]),be=l.getMode(B,je),ye=T(qe[1],!0),Qe=T(qe[1],!1);de.token=function(G,E){return G.match(ye,!1)?(E.token=Te,E.localState=E.localMode=null,null):c(G,Qe,E.localMode.token(G,E.localState))},de.localMode=be,de.localState=l.startState(be,Z.indent(de.htmlState,"",""))}else de.inTag&&(de.inTag+=pe.current(),pe.eol()&&(de.inTag+=" "));return ke}return{startState:function(){var pe=l.startState(Z);return{token:Te,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var de;return pe.localState&&(de=l.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:de,htmlState:l.copyState(Z,pe.htmlState)}},token:function(pe,de){return de.token(pe,de)},indent:function(pe,de,ke){return!pe.localMode||/^\s*<\//.test(de)?Z.indent(pe.htmlState,de,ke):pe.localMode.indent?pe.localMode.indent(pe.localState,de,ke):l.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||Z}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(s,o){(function(l){l(Qi.exports)})(function(l){l.defineMode("solr",function(){var d=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function m(B){return parseFloat(B).toString()===B}function I(B){return function(U,Z){for(var re=!1,ve;(ve=U.next())!=null&&!(ve==B&&!re);)re=!re&&ve=="\\";return re||(Z.tokenize=A),"string"}}function T(B){return function(U,Z){var re="operator";return B=="+"?re+=" positive":B=="-"?re+=" negative":B=="|"?U.eat(/\|/):B=="&"?U.eat(/\&/):B=="^"&&(re+=" boost"),Z.tokenize=A,re}}function k(B){return function(U,Z){for(var re=B;(B=U.peek())&&B.match(d)!=null;)re+=U.next();return Z.tokenize=A,g.test(re)?"operator":m(re)?"number":U.peek()==":"?"field":"string"}}function A(B,U){var Z=B.next();return Z=='"'?U.tokenize=I(Z):c.test(Z)?U.tokenize=T(Z):d.test(Z)&&(U.tokenize=k(Z)),U.tokenize!=A?U.tokenize(B,U):null}return{startState:function(){return{tokenize:A}},token:function(B,U){return B.eatSpace()?null:U.tokenize(B,U)}}}),l.defineMIME("text/x-solr","solr")})})();(function(s,o){(function(l){l(Qi.exports)})(function(l){l.defineOption("placeholder","",function(k,A,B){var U=B&&B!=l.Init;if(A&&!U)k.on("blur",m),k.on("change",I),k.on("swapDoc",I),l.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){g(k)}),I(k);else if(!A&&U){k.off("blur",m),k.off("change",I),k.off("swapDoc",I),l.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),d(k);var Z=k.getWrapperElement();Z.className=Z.className.replace(" CodeMirror-empty","")}A&&!k.hasFocus()&&m(k)});function d(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function c(k){d(k);var A=k.state.placeholder=document.createElement("pre");A.style.cssText="height: 0; overflow: visible",A.style.direction=k.getOption("direction"),A.className="CodeMirror-placeholder CodeMirror-line-like";var B=k.getOption("placeholder");typeof B=="string"&&(B=document.createTextNode(B)),A.appendChild(B),k.display.lineSpace.insertBefore(A,k.display.lineSpace.firstChild)}function g(k){setTimeout(function(){var A=!1;if(k.lineCount()==1){var B=k.getInputField();A=B.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(B.querySelector(".CodeMirror-line").textContent)}A?c(k):d(k)},20)}function m(k){T(k)&&c(k)}function I(k){var A=k.getWrapperElement(),B=T(k);A.className=A.className.replace(" CodeMirror-empty","")+(B?" CodeMirror-empty":""),B?c(k):d(k)}function T(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var v7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,Os=(s,o,l,d)=>{for(var c=d>1?void 0:d?b7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&v7(o,l,c),c};Pu.defineMode("nunjucks",(s,o)=>Pu.overlayMode(Pu.getMode(s,o.backdrop||"text/html"),Pu.getMode(s,"jinja2")));const sp=Se("input-code"),m7=["json","nunjucks","javascript","solr"],y7={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends un{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(s){this.value=s.getValue(),this.dispatchChange()}updated(){var o,l;super.updated();const s=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),s!==((o=this.editor)==null?void 0:o.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var d;return(d=this.editor)==null?void 0:d.refresh()})}get editorValue(){var s;return((s=this.editor)==null?void 0:s.getDoc().getValue())||""}set editorValue(s){var o;(o=this.editor)==null||o.setValue(s)}firstUpdated(){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector(".editor");s&&(this.editor=Pu.fromTextArea(s,{mode:y7[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 d=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(d)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.editor)==null||s.off("change",this.changeHandler)}renderInput(){return Y`
|
|
2341
2344
|
<textarea class="editor" placeholder="${zt(this.placeholder)}">
|
|
2342
2345
|
${this.value}</textarea
|
|
2343
2346
|
>
|
|
2344
2347
|
`}};exports.InputCode.styles=[...un.styles,ce`
|
|
2345
|
-
${ga(
|
|
2348
|
+
${ga(d7)}
|
|
2346
2349
|
|
|
2347
2350
|
:host([size="full"]) {
|
|
2348
2351
|
width: 100%;
|
|
@@ -2406,33 +2409,33 @@ ${this.value}</textarea
|
|
|
2406
2409
|
.CodeMirror pre.CodeMirror-placeholder {
|
|
2407
2410
|
color: var(--brz-color-neutral-500);
|
|
2408
2411
|
}
|
|
2409
|
-
`,
|
|
2412
|
+
`,f7];Os([H()],exports.InputCode.prototype,"mode",2);Os([H({reflect:!0})],exports.InputCode.prototype,"size",2);Os([H({type:Number})],exports.InputCode.prototype,"height",2);Os([H({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Os([Xe()],exports.InputCode.prototype,"editor",2);exports.InputCode=Os([J(sp)],exports.InputCode);let Cd=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((o,l)=>(l&=63,l<36?o+=l.toString(36):l<62?o+=(l-26).toString(36).toUpperCase():l>62?o+="-":o+="_",o),"");/**
|
|
2410
2413
|
* @license
|
|
2411
2414
|
* Copyright 2020 Google LLC
|
|
2412
2415
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2413
|
-
*/const{I:
|
|
2416
|
+
*/const{I:C7}=_3,Jf=()=>document.createComment(""),ku=(s,o,l)=>{var d;const c=s._$AA.parentNode,g=o===void 0?s._$AB:o._$AA;if(l===void 0){const m=c.insertBefore(Jf(),g),I=c.insertBefore(Jf(),g);l=new C7(m,I,s,s.options)}else{const m=l._$AB.nextSibling,I=l._$AM,T=I!==s;if(T){let k;(d=l._$AQ)===null||d===void 0||d.call(l,s),l._$AM=s,l._$AP!==void 0&&(k=s._$AU)!==I._$AU&&l._$AP(k)}if(m!==g||T){let k=l._$AA;for(;k!==m;){const A=k.nextSibling;c.insertBefore(k,g),k=A}}}return l},ll=(s,o,l=s)=>(s._$AI(o,l),s),w7={},x7=(s,o=w7)=>s._$AH=o,z7=s=>s._$AH,cd=s=>{var o;(o=s._$AP)===null||o===void 0||o.call(s,!1,!0);let l=s._$AA;const d=s._$AB.nextSibling;for(;l!==d;){const c=l.nextSibling;l.remove(),l=c}};/**
|
|
2414
2417
|
* @license
|
|
2415
2418
|
* Copyright 2017 Google LLC
|
|
2416
2419
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2417
|
-
*/const
|
|
2420
|
+
*/const eh=(s,o,l)=>{const d=new Map;for(let c=o;c<=l;c++)d.set(s[c],c);return d},L7=R0(class extends H0{constructor(s){if(super(s),s.type!==N0.CHILD)throw Error("repeat() can only be used in text expressions")}ht(s,o,l){let d;l===void 0?l=o:o!==void 0&&(d=o);const c=[],g=[];let m=0;for(const I of s)c[m]=d?d(I,m):m,g[m]=l(I,m),m++;return{values:g,keys:c}}render(s,o,l){return this.ht(s,o,l).values}update(s,[o,l,d]){var c;const g=z7(s),{values:m,keys:I}=this.ht(o,l,d);if(!Array.isArray(g))return this.ut=I,m;const T=(c=this.ut)!==null&&c!==void 0?c:this.ut=[],k=[];let A,B,U=0,Z=g.length-1,re=0,ve=m.length-1;for(;U<=Z&&re<=ve;)if(g[U]===null)U++;else if(g[Z]===null)Z--;else if(T[U]===I[re])k[re]=ll(g[U],m[re]),U++,re++;else if(T[Z]===I[ve])k[ve]=ll(g[Z],m[ve]),Z--,ve--;else if(T[U]===I[ve])k[ve]=ll(g[U],m[ve]),ku(s,k[ve+1],g[U]),U++,ve--;else if(T[Z]===I[re])k[re]=ll(g[Z],m[re]),ku(s,g[U],g[Z]),Z--,re++;else if(A===void 0&&(A=eh(I,re,ve),B=eh(T,U,Z)),A.has(T[U]))if(A.has(T[Z])){const ge=B.get(I[re]),Me=ge!==void 0?g[ge]:null;if(Me===null){const Te=ku(s,g[U]);ll(Te,m[re]),k[re]=Te}else k[re]=ll(Me,m[re]),ku(s,g[U],Me),g[ge]=null;re++}else cd(g[Z]),Z--;else cd(g[U]),U++;for(;re<=ve;){const ge=ku(s,k[ve+1]);ll(ge,m[re]),k[re++]=ge}for(;U<=Z;){const ge=g[U++];ge!==null&&cd(ge)}return this.ut=I,x7(s,k),Ki}});/**
|
|
2418
2421
|
* @license
|
|
2419
2422
|
* Copyright 2018 Google LLC
|
|
2420
2423
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2421
|
-
*/const
|
|
2424
|
+
*/const _7=R0(class extends H0{constructor(s){var o;if(super(s),s.type!==N0.ATTRIBUTE||s.name!=="style"||((o=s.strings)===null||o===void 0?void 0:o.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((o,l)=>{const d=s[l];return d==null?o:o+`${l=l.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${d};`},"")}update(s,[o]){const{style:l}=s.element;if(this.vt===void 0){this.vt=new Set;for(const d in o)this.vt.add(d);return this.render(o)}this.vt.forEach(d=>{o[d]==null&&(this.vt.delete(d),d.includes("-")?l.removeProperty(d):l[d]="")});for(const d in o){const c=o[d];c!=null&&(this.vt.add(d),d.includes("-")?l.setProperty(d,c):l[d]=c)}return Ki}});var S7=Object.defineProperty,M7=Object.getOwnPropertyDescriptor,xn=(s,o,l,d)=>{for(var c=d>1?void 0:d?M7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&S7(o,l,c),c};const Hd=Se("virtual-list");exports.VirtualList=class extends Fe{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(s,o)=>Y`
|
|
2422
2425
|
<div
|
|
2423
2426
|
class="default-render-item"
|
|
2424
2427
|
style="min-height: ${this.itemMinHeight}px"
|
|
2425
2428
|
>
|
|
2426
2429
|
Item ${o}: ${JSON.stringify(s)}
|
|
2427
2430
|
</div>
|
|
2428
|
-
`,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(s){super.updated(s),this.canSync(s)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((s,o)=>s+o,0)/this.originalItemsCount}get slicedItemHeightMode(){const s={};let o=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(d=>{s[d]?s[d]++:s[d]=1,s[d]>l&&(o=d,l=s[d])}),o}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(s){return["items","renderItem"].reduce((o,l)=>o||s.has(l),!1)}sumOfHeightsToIndex(s){return this.itemHeights.slice(0,s).reduce((o,l)=>(o+=l,o),0)}syncVisibleItems(){this.resetItems();for(let s=this.rollingStartIndex;s<=this.rollingEndIndex;s++){const o={position:"absolute",top:`${this.sumOfHeightsToIndex(s)}px`,width:"100%"},l=this.renderItem(this.items[s],s);if(!this.itemIdentifier){const g=
|
|
2429
|
-
<div class="item-wrapper" style=${
|
|
2431
|
+
`,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(s){super.updated(s),this.canSync(s)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((s,o)=>s+o,0)/this.originalItemsCount}get slicedItemHeightMode(){const s={};let o=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(d=>{s[d]?s[d]++:s[d]=1,s[d]>l&&(o=d,l=s[d])}),o}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(s){return["items","renderItem"].reduce((o,l)=>o||s.has(l),!1)}sumOfHeightsToIndex(s){return this.itemHeights.slice(0,s).reduce((o,l)=>(o+=l,o),0)}syncVisibleItems(){this.resetItems();for(let s=this.rollingStartIndex;s<=this.rollingEndIndex;s++){const o={position:"absolute",top:`${this.sumOfHeightsToIndex(s)}px`,width:"100%"},l=this.renderItem(this.items[s],s);if(!this.itemIdentifier){const g=wh(l,new DocumentFragment).parentNode.firstElementChild,m=g==null?void 0:g.tagName.toLowerCase(),I=g==null?void 0:g.className;this.itemIdentifier=`${m}${I?`.${I}`:""}`}const d=Y`
|
|
2432
|
+
<div class="item-wrapper" style=${_7(o)}>
|
|
2430
2433
|
${l}
|
|
2431
2434
|
</div>
|
|
2432
|
-
`;this.visibleItems.push({index:s,item:d})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const s=[...this.list.children].map(o=>o.firstElementChild);this.dispatchEvent(new
|
|
2435
|
+
`;this.visibleItems.push({index:s,item:d})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const s=[...this.list.children].map(o=>o.firstElementChild);this.dispatchEvent(new up({detail:{itemElements:s}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:s},o)=>{var l,d;this.itemHeights[s]=((d=(l=this.visibleItemElements)==null?void 0:l[o])==null?void 0:d.getBoundingClientRect().height)||this.itemHeights[s]})}get visibleItemElements(){var s;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(s=this.shadowRoot)==null?void 0:s.querySelectorAll(this.itemIdentifier)}handleScroll(s){var o;this.currentScrollTop=(o=s.currentTarget)==null?void 0:o.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const s=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),o=Math.min(this.overscan,s);return s-o}get rollingEndIndex(){const s=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),o=Math.min(this.overscan,this.endIndex-s);return s+o}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),Y`
|
|
2433
2436
|
<div class="container" @scroll=${this.handleScroll}>
|
|
2434
2437
|
<div class="list" style="height: ${this.innerHeight}px">
|
|
2435
|
-
${
|
|
2438
|
+
${L7(this.visibleItems,({index:s})=>s,({item:s})=>s)}
|
|
2436
2439
|
</div>
|
|
2437
2440
|
</div>
|
|
2438
2441
|
`}};exports.VirtualList.styles=[ce`
|
|
@@ -2449,7 +2452,7 @@ ${this.value}</textarea
|
|
|
2449
2452
|
.list {
|
|
2450
2453
|
position: relative;
|
|
2451
2454
|
}
|
|
2452
|
-
`];xn([H({type:Array})],exports.VirtualList.prototype,"items",2);xn([H({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);xn([H({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);xn([H({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);xn([Xe()],exports.VirtualList.prototype,"currentScrollTop",2);xn([Xe()],exports.VirtualList.prototype,"endIndex",2);xn([Xe()],exports.VirtualList.prototype,"innerHeight",2);xn([Xe()],exports.VirtualList.prototype,"itemHeights",2);xn([Xe()],exports.VirtualList.prototype,"itemIdentifier",2);xn([Xe()],exports.VirtualList.prototype,"originalItemsCount",2);xn([Xe()],exports.VirtualList.prototype,"currentItemsCount",2);xn([Xe()],exports.VirtualList.prototype,"visibleItems",2);xn([ba(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=xn([J(
|
|
2455
|
+
`];xn([H({type:Array})],exports.VirtualList.prototype,"items",2);xn([H({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);xn([H({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);xn([H({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);xn([Xe()],exports.VirtualList.prototype,"currentScrollTop",2);xn([Xe()],exports.VirtualList.prototype,"endIndex",2);xn([Xe()],exports.VirtualList.prototype,"innerHeight",2);xn([Xe()],exports.VirtualList.prototype,"itemHeights",2);xn([Xe()],exports.VirtualList.prototype,"itemIdentifier",2);xn([Xe()],exports.VirtualList.prototype,"originalItemsCount",2);xn([Xe()],exports.VirtualList.prototype,"currentItemsCount",2);xn([Xe()],exports.VirtualList.prototype,"visibleItems",2);xn([ba(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=xn([J(Hd)],exports.VirtualList);class up extends CustomEvent{constructor(o={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...o})}}var k7=Object.defineProperty,O7=Object.getOwnPropertyDescriptor,mi=(s,o,l,d)=>{for(var c=d>1?void 0:d?O7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&k7(o,l,c),c};const Bu="searchMessage";class Ur extends un{constructor(){super(...arguments),this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(o=>({...o,id:`option-${Cd()}`}))]:[]}updated(o){super.updated(),o.has("options")&&this.setInnerOptions(),o.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(o){var l,d;return o?o instanceof exports.MenuItem?(d=(l=o.textContent)==null?void 0:l.trim())!=null?d:"":o.label:""}handleKeyDown(o){["ArrowUp","ArrowDown"].includes(o.key)&&(o.preventDefault(),this.dropdown.open())}handleKeyUp(o){o.key===" "&&this.canSearch&&(o.preventDefault(),this.dropdown.open())}get defaultSlot(){var o,l;return(l=(o=this.renderRoot)==null?void 0:o.querySelector("slot:not([name])"))==null?void 0:l.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var o;return this.isDataDriven?(o=this.virtualListElement)==null?void 0:o.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Hd)}get optionElements(){var l,d,c;const o=(l=this.optionElementsRenderRoot)!=null&&l.querySelectorAll(E0).length?(d=this.optionElementsRenderRoot)==null?void 0:d.querySelectorAll(E0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(o!=null?o:[])}setValue(o){this.value=o,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(o){this.isMenuOpen&&o.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var o;(o=this.dropdown)==null||o.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():Y`
|
|
2453
2456
|
<brz-dropdown-menu
|
|
2454
2457
|
@brz-menu-select=${this.handleSelect}
|
|
2455
2458
|
@brz-menu-item-select=${this.handleItemSelect}
|
|
@@ -2480,7 +2483,7 @@ ${this.value}</textarea
|
|
|
2480
2483
|
</brz-menu-item>
|
|
2481
2484
|
`}
|
|
2482
2485
|
></brz-virtual-list>
|
|
2483
|
-
`:null}isQueryMatch(o){return this.query?this.getItemLabel(o).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(o):!1}isCustomQueryMatch(o){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(o){}handleItemSelect(o){}handleValueChange(){}handleQueryInput(o){const l=o.target;this.query=l==null?void 0:l.value,this.dispatchEvent(new
|
|
2486
|
+
`:null}isQueryMatch(o){return this.query?this.getItemLabel(o).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(o):!1}isCustomQueryMatch(o){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(o){}handleItemSelect(o){}handleValueChange(){}handleQueryInput(o){const l=o.target;this.query=l==null?void 0:l.value,this.dispatchEvent(new cp({detail:{query:this.query}}))}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var o;return!!((o=this.options)!=null&&o.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}Ur.styles=[...un.styles,ce`
|
|
2484
2487
|
:host {
|
|
2485
2488
|
/** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
|
|
2486
2489
|
--dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
|
|
@@ -2525,7 +2528,7 @@ ${this.value}</textarea
|
|
|
2525
2528
|
}
|
|
2526
2529
|
|
|
2527
2530
|
button.wrapper {
|
|
2528
|
-
${
|
|
2531
|
+
${zh};
|
|
2529
2532
|
align-items: center;
|
|
2530
2533
|
background-color: var(--brz-color-white);
|
|
2531
2534
|
border: var(--input-border);
|
|
@@ -2563,7 +2566,7 @@ ${this.value}</textarea
|
|
|
2563
2566
|
border-color: var(--input-focus-border-color);
|
|
2564
2567
|
outline: none;
|
|
2565
2568
|
}
|
|
2566
|
-
`];mi([H({attribute:"can-search",type:Boolean,reflect:!0})],Ur.prototype,"canSearch",2);mi([H({type:Boolean,reflect:!0})],Ur.prototype,"loading",2);mi([H({type:String,reflect:!0,attribute:"trailing-icon"})],Ur.prototype,"trailingIcon",2);mi([H({type:Array})],Ur.prototype,"options",2);mi([H({attribute:"search-message"})],Ur.prototype,"searchMessage",2);mi([Xe()],Ur.prototype,"isMenuOpen",2);mi([Xe()],Ur.prototype,"hasResults",2);mi([Xe()],Ur.prototype,"query",2);mi([Xe()],Ur.prototype,"innerOptions",2);mi([ba("brz-dropdown-menu")],Ur.prototype,"dropdown",2);mi([ba("#selectSearch")],Ur.prototype,"queryInput",2);class
|
|
2569
|
+
`];mi([H({attribute:"can-search",type:Boolean,reflect:!0})],Ur.prototype,"canSearch",2);mi([H({type:Boolean,reflect:!0})],Ur.prototype,"loading",2);mi([H({type:String,reflect:!0,attribute:"trailing-icon"})],Ur.prototype,"trailingIcon",2);mi([H({type:Array})],Ur.prototype,"options",2);mi([H({attribute:"search-message"})],Ur.prototype,"searchMessage",2);mi([Xe()],Ur.prototype,"isMenuOpen",2);mi([Xe()],Ur.prototype,"hasResults",2);mi([Xe()],Ur.prototype,"query",2);mi([Xe()],Ur.prototype,"innerOptions",2);mi([ba("brz-dropdown-menu")],Ur.prototype,"dropdown",2);mi([ba("#selectSearch")],Ur.prototype,"queryInput",2);class cp extends CustomEvent{constructor(o={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...o})}}var T7=Object.defineProperty,P7=Object.getOwnPropertyDescriptor,Vu=(s,o,l,d)=>{for(var c=d>1?void 0:d?P7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&T7(o,l,c),c};const dp=Se("input-select");exports.InputSelect=class extends Ur{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(s){this.setValue(s.detail.selected[0])}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(s=>{s.selected=this.value===s.value})}renderReferenceElement(){var s;return this.applySelectedStatusToChildren(),this.search(),Y`
|
|
2567
2570
|
<button
|
|
2568
2571
|
type="button"
|
|
2569
2572
|
class="wrapper"
|
|
@@ -2599,7 +2602,7 @@ ${this.value}</textarea
|
|
|
2599
2602
|
`}renderDropdownContent(){return Y`
|
|
2600
2603
|
${this.hasQueryResults?null:this.renderSearchMessage()}
|
|
2601
2604
|
${this.isDataDriven?this.renderOptionsData():Y` <slot slot="options"></slot> `}
|
|
2602
|
-
`}resetSearch(){this.query=""}search(){var o;this.hasResults=!1;const s=(o=this.query)==null?void 0:o.toLowerCase();this.getItems().forEach(l=>{var c;if("id"in l&&l.id===Bu)return;if(!s||s===((c=this.valueLabel)==null?void 0:c.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const d=this.isQueryMatch(l);d&&(this.hasResults=!0),l.hidden=!d})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${
|
|
2605
|
+
`}resetSearch(){this.query=""}search(){var o;this.hasResults=!1;const s=(o=this.query)==null?void 0:o.toLowerCase();this.getItems().forEach(l=>{var c;if("id"in l&&l.id===Bu)return;if(!s||s===((c=this.valueLabel)==null?void 0:c.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const d=this.isQueryMatch(l);d&&(this.hasResults=!0),l.hidden=!d})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Cd()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(s=>({...s,id:`option-${Cd()}`}))]:[]}disconnectedCallback(){var s;(s=this.selectedOptionObserver)==null||s.disconnect(),super.disconnectedCallback()}syncValueLabel(s){var l,d;if((l=this.selectedOptionObserver)==null||l.disconnect(),this.isDataDriven&&this.isReadonlyOrDisabled){this.valueLabel=(d=this.innerOptions.find(c=>c.value===s))==null?void 0:d.label;return}const o=this.optionElements.find(c=>c.value===s);o&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(o),this.resetSearch()}),o instanceof Node&&this.selectedOptionObserver.observe(o,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.value?this.getItemLabel(o):"")}};exports.InputSelect.styles=[...Ur.styles,ce`
|
|
2603
2606
|
input {
|
|
2604
2607
|
text-overflow: ellipsis;
|
|
2605
2608
|
}
|
|
@@ -2630,7 +2633,7 @@ ${this.value}</textarea
|
|
|
2630
2633
|
.placeholder {
|
|
2631
2634
|
color: var(--input-placeholder-font-color);
|
|
2632
2635
|
}
|
|
2633
|
-
`];Vu([H({type:String})],exports.InputSelect.prototype,"value",2);Vu([Xe()],exports.InputSelect.prototype,"query",2);Vu([Xe()],exports.InputSelect.prototype,"valueLabel",2);Vu([Xe()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Vu([J(
|
|
2636
|
+
`];Vu([H({type:String})],exports.InputSelect.prototype,"value",2);Vu([Xe()],exports.InputSelect.prototype,"query",2);Vu([Xe()],exports.InputSelect.prototype,"valueLabel",2);Vu([Xe()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Vu([J(dp)],exports.InputSelect);var E7=Object.defineProperty,I7=Object.getOwnPropertyDescriptor,yi=(s,o,l,d)=>{for(var c=d>1?void 0:d?I7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&E7(o,l,c),c};const fp=Se("lozenge"),A7=["neutral","green","orange","red","cyan","purple","sapphire"],D7=["solid","subtle","border"],$7=["small","medium","large"];class hp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Fe{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(s){s.stopPropagation(),this.dispatchEvent(new hp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var s;return this.updateComplete.then(()=>this.checkOverflow()),Y`
|
|
2634
2637
|
<brz-tooltip
|
|
2635
2638
|
content=${(s=this.defaultSlot[0])==null?void 0:s.textContent}
|
|
2636
2639
|
?disabled=${!this.isOverflowing}
|
|
@@ -2782,7 +2785,7 @@ ${this.value}</textarea
|
|
|
2782
2785
|
margin-right: var(--brz-spacing-2);
|
|
2783
2786
|
}
|
|
2784
2787
|
|
|
2785
|
-
${
|
|
2788
|
+
${Lh(".close",ce`
|
|
2786
2789
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
2787
2790
|
`)}
|
|
2788
2791
|
|
|
@@ -2800,7 +2803,7 @@ ${this.value}</textarea
|
|
|
2800
2803
|
color: var(--brz-color-neutral-550);
|
|
2801
2804
|
cursor: unset;
|
|
2802
2805
|
}
|
|
2803
|
-
`;yi([H({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);yi([H({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);yi([H({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);yi([H({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);yi([H({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);yi([H({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);yi([H({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);yi([
|
|
2806
|
+
`;yi([H({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);yi([H({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);yi([H({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);yi([H({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);yi([H({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);yi([H({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);yi([H({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);yi([Ld()],exports.Lozenge.prototype,"defaultSlot",2);yi([M3(".message")],exports.Lozenge.prototype,"message",2);yi([Xe()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=yi([J(fp)],exports.Lozenge);var N7=Object.defineProperty,R7=Object.getOwnPropertyDescriptor,qu=(s,o,l,d)=>{for(var c=d>1?void 0:d?R7(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&N7(o,l,c),c};const pp=Se("input-multiselect");exports.InputMultiselect=class extends Ur{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(s){super.updated(s),this.dropdown&&(this.dropdown.multiselect=!0),this.isDataDriven&&!this.innerOptions.find(o=>o.id===pi)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:s,toggled:o}=[...this.getItems()].reduce((l,d)=>d.id===pi?l:{enabled:d.disabled?l.enabled:l.enabled+1,toggled:d.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return s===o}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabels()}handleSelect(s){this.setValue(s.detail.selected)}handleItemSelect({detail:{item:s}}){s.id===pi&&this.toggleAllSelected()}toggleAllSelected(){const s=[];this.allSelected||this.getItems().forEach(o=>{!o.disabled&&o.id!==pi&&s.push(o.value)}),this.setValue(s),this.handleValueChange()}toggleSelection(s){const o=this.value?[...this.value]:[],l=o.indexOf(s);l>-1&&o.splice(l,1),l===-1&&o.push(s),this.setValue(o)}syncSelected(){this.getItems().forEach(s=>{const o=this.value&&this.value.includes(s.value);s.selected=s.id===pi?this.allSelected:o})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?Y`<span class="truncation"
|
|
2804
2807
|
>+${this.value.length-this.truncateValuesAfter} more</span
|
|
2805
2808
|
>`:null}handleKeyDown(s){super.handleKeyDown(s),s.key==="Backspace"&&(this.isReadonlyOrDisabled||this.removeLastValue())}renderReferenceElement(){return this.syncSelected(),this.search(),Y`
|
|
2806
2809
|
<button
|
|
@@ -2907,10 +2910,10 @@ ${this.value}</textarea
|
|
|
2907
2910
|
brz-icon[icon='chevronDown'] {
|
|
2908
2911
|
color: var(--brz-color-neutral-750);
|
|
2909
2912
|
}
|
|
2910
|
-
`];qu([H({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);qu([H({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);qu([H({type:Array})],exports.InputMultiselect.prototype,"value",2);qu([Xe()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=qu([J(vp)],exports.InputMultiselect);function va(s){if(s===null||s===!0||s===!1)return NaN;var o=Number(s);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Zr(s,o){if(o.length<s)throw new TypeError(s+" argument"+(s>1?"s":"")+" required, but only "+o.length+" present")}function w0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w0=function(l){return typeof l}:w0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},w0(s)}function Ci(s){Zr(1,arguments);var o=Object.prototype.toString.call(s);return s instanceof Date||w0(s)==="object"&&o==="[object Date]"?new Date(s.getTime()):typeof s=="number"||o==="[object Number]"?new Date(s):((typeof s=="string"||o==="[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 bp(s,o){Zr(2,arguments);var l=Ci(s).getTime(),d=va(o);return new Date(l+d)}var F7={};function V0(){return F7}function W7(s){var o=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return o.setUTCFullYear(s.getFullYear()),s.getTime()-o.getTime()}function U7(s){Zr(1,arguments);var o=Ci(s);return o.setHours(0,0,0,0),o}var Z7=6e4;function G7(s,o){Zr(2,arguments);var l=va(o);return bp(s,l*Z7)}function x0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x0=function(l){return typeof l}:x0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},x0(s)}function V7(s){return Zr(1,arguments),s instanceof Date||x0(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}function q7(s){if(Zr(1,arguments),!V7(s)&&typeof s!="number")return!1;var o=Ci(s);return!isNaN(Number(o))}function K7(s,o){Zr(2,arguments);var l=va(o);return bp(s,-l)}var j7=864e5;function Y7(s){Zr(1,arguments);var o=Ci(s),l=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var d=o.getTime(),c=l-d;return Math.floor(c/j7)+1}function T0(s){Zr(1,arguments);var o=1,l=Ci(s),d=l.getUTCDay(),c=(d<o?7:0)+d-o;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function mp(s){Zr(1,arguments);var o=Ci(s),l=o.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(l+1,0,4),d.setUTCHours(0,0,0,0);var c=T0(d),g=new Date(0);g.setUTCFullYear(l,0,4),g.setUTCHours(0,0,0,0);var m=T0(g);return o.getTime()>=c.getTime()?l+1:o.getTime()>=m.getTime()?l:l-1}function X7(s){Zr(1,arguments);var o=mp(s),l=new Date(0);l.setUTCFullYear(o,0,4),l.setUTCHours(0,0,0,0);var d=T0(l);return d}var Q7=6048e5;function J7(s){Zr(1,arguments);var o=Ci(s),l=T0(o).getTime()-X7(o).getTime();return Math.round(l/Q7)+1}function P0(s,o){var l,d,c,g,m,I,T,k;Zr(1,arguments);var A=V0(),B=va((l=(d=(c=(g=o==null?void 0:o.weekStartsOn)!==null&&g!==void 0?g:o==null||(m=o.locale)===null||m===void 0||(I=m.options)===null||I===void 0?void 0:I.weekStartsOn)!==null&&c!==void 0?c:A.weekStartsOn)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&l!==void 0?l:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var U=Ci(s),Z=U.getUTCDay(),re=(Z<B?7:0)+Z-B;return U.setUTCDate(U.getUTCDate()-re),U.setUTCHours(0,0,0,0),U}function yp(s,o){var l,d,c,g,m,I,T,k;Zr(1,arguments);var A=Ci(s),B=A.getUTCFullYear(),U=V0(),Z=va((l=(d=(c=(g=o==null?void 0:o.firstWeekContainsDate)!==null&&g!==void 0?g:o==null||(m=o.locale)===null||m===void 0||(I=m.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:U.firstWeekContainsDate)!==null&&d!==void 0?d:(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(B+1,0,Z),re.setUTCHours(0,0,0,0);var ve=P0(re,o),ge=new Date(0);ge.setUTCFullYear(B,0,Z),ge.setUTCHours(0,0,0,0);var Me=P0(ge,o);return A.getTime()>=ve.getTime()?B+1:A.getTime()>=Me.getTime()?B:B-1}function e9(s,o){var l,d,c,g,m,I,T,k;Zr(1,arguments);var A=V0(),B=va((l=(d=(c=(g=o==null?void 0:o.firstWeekContainsDate)!==null&&g!==void 0?g:o==null||(m=o.locale)===null||m===void 0||(I=m.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:A.firstWeekContainsDate)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1),U=yp(s,o),Z=new Date(0);Z.setUTCFullYear(U,0,B),Z.setUTCHours(0,0,0,0);var re=P0(Z,o);return re}var t9=6048e5;function r9(s,o){Zr(1,arguments);var l=Ci(s),d=P0(l,o).getTime()-e9(l,o).getTime();return Math.round(d/t9)+1}function Et(s,o){for(var l=s<0?"-":"",d=Math.abs(s).toString();d.length<o;)d="0"+d;return l+d}var n9={y:function(o,l){var d=o.getUTCFullYear(),c=d>0?d:1-d;return Et(l==="yy"?c%100:c,l.length)},M:function(o,l){var d=o.getUTCMonth();return l==="M"?String(d+1):Et(d+1,2)},d:function(o,l){return Et(o.getUTCDate(),l.length)},a:function(o,l){var d=o.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(o,l){return Et(o.getUTCHours()%12||12,l.length)},H:function(o,l){return Et(o.getUTCHours(),l.length)},m:function(o,l){return Et(o.getUTCMinutes(),l.length)},s:function(o,l){return Et(o.getUTCSeconds(),l.length)},S:function(o,l){var d=l.length,c=o.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,d-3));return Et(g,l.length)}};const pa=n9;var gs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},i9={G:function(o,l,d){var c=o.getUTCFullYear()>0?1:0;switch(l){case"G":case"GG":case"GGG":return d.era(c,{width:"abbreviated"});case"GGGGG":return d.era(c,{width:"narrow"});case"GGGG":default:return d.era(c,{width:"wide"})}},y:function(o,l,d){if(l==="yo"){var c=o.getUTCFullYear(),g=c>0?c:1-c;return d.ordinalNumber(g,{unit:"year"})}return pa.y(o,l)},Y:function(o,l,d,c){var g=yp(o,c),m=g>0?g:1-g;if(l==="YY"){var I=m%100;return Et(I,2)}return l==="Yo"?d.ordinalNumber(m,{unit:"year"}):Et(m,l.length)},R:function(o,l){var d=mp(o);return Et(d,l.length)},u:function(o,l){var d=o.getUTCFullYear();return Et(d,l.length)},Q:function(o,l,d){var c=Math.ceil((o.getUTCMonth()+1)/3);switch(l){case"Q":return String(c);case"QQ":return Et(c,2);case"Qo":return d.ordinalNumber(c,{unit:"quarter"});case"QQQ":return d.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return d.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return d.quarter(c,{width:"wide",context:"formatting"})}},q:function(o,l,d){var c=Math.ceil((o.getUTCMonth()+1)/3);switch(l){case"q":return String(c);case"qq":return Et(c,2);case"qo":return d.ordinalNumber(c,{unit:"quarter"});case"qqq":return d.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return d.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return d.quarter(c,{width:"wide",context:"standalone"})}},M:function(o,l,d){var c=o.getUTCMonth();switch(l){case"M":case"MM":return pa.M(o,l);case"Mo":return d.ordinalNumber(c+1,{unit:"month"});case"MMM":return d.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return d.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return d.month(c,{width:"wide",context:"formatting"})}},L:function(o,l,d){var c=o.getUTCMonth();switch(l){case"L":return String(c+1);case"LL":return Et(c+1,2);case"Lo":return d.ordinalNumber(c+1,{unit:"month"});case"LLL":return d.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return d.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return d.month(c,{width:"wide",context:"standalone"})}},w:function(o,l,d,c){var g=r9(o,c);return l==="wo"?d.ordinalNumber(g,{unit:"week"}):Et(g,l.length)},I:function(o,l,d){var c=J7(o);return l==="Io"?d.ordinalNumber(c,{unit:"week"}):Et(c,l.length)},d:function(o,l,d){return l==="do"?d.ordinalNumber(o.getUTCDate(),{unit:"date"}):pa.d(o,l)},D:function(o,l,d){var c=Y7(o);return l==="Do"?d.ordinalNumber(c,{unit:"dayOfYear"}):Et(c,l.length)},E:function(o,l,d){var c=o.getUTCDay();switch(l){case"E":case"EE":case"EEE":return d.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return d.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return d.day(c,{width:"short",context:"formatting"});case"EEEE":default:return d.day(c,{width:"wide",context:"formatting"})}},e:function(o,l,d,c){var g=o.getUTCDay(),m=(g-c.weekStartsOn+8)%7||7;switch(l){case"e":return String(m);case"ee":return Et(m,2);case"eo":return d.ordinalNumber(m,{unit:"day"});case"eee":return d.day(g,{width:"abbreviated",context:"formatting"});case"eeeee":return d.day(g,{width:"narrow",context:"formatting"});case"eeeeee":return d.day(g,{width:"short",context:"formatting"});case"eeee":default:return d.day(g,{width:"wide",context:"formatting"})}},c:function(o,l,d,c){var g=o.getUTCDay(),m=(g-c.weekStartsOn+8)%7||7;switch(l){case"c":return String(m);case"cc":return Et(m,l.length);case"co":return d.ordinalNumber(m,{unit:"day"});case"ccc":return d.day(g,{width:"abbreviated",context:"standalone"});case"ccccc":return d.day(g,{width:"narrow",context:"standalone"});case"cccccc":return d.day(g,{width:"short",context:"standalone"});case"cccc":default:return d.day(g,{width:"wide",context:"standalone"})}},i:function(o,l,d){var c=o.getUTCDay(),g=c===0?7:c;switch(l){case"i":return String(g);case"ii":return Et(g,l.length);case"io":return d.ordinalNumber(g,{unit:"day"});case"iii":return d.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return d.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return d.day(c,{width:"short",context:"formatting"});case"iiii":default:return d.day(c,{width:"wide",context:"formatting"})}},a:function(o,l,d){var c=o.getUTCHours(),g=c/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"aaa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"aaaa":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},b:function(o,l,d){var c=o.getUTCHours(),g;switch(c===12?g=gs.noon:c===0?g=gs.midnight:g=c/12>=1?"pm":"am",l){case"b":case"bb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"bbb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"bbbb":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},B:function(o,l,d){var c=o.getUTCHours(),g;switch(c>=17?g=gs.evening:c>=12?g=gs.afternoon:c>=4?g=gs.morning:g=gs.night,l){case"B":case"BB":case"BBB":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"BBBBB":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"BBBB":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},h:function(o,l,d){if(l==="ho"){var c=o.getUTCHours()%12;return c===0&&(c=12),d.ordinalNumber(c,{unit:"hour"})}return pa.h(o,l)},H:function(o,l,d){return l==="Ho"?d.ordinalNumber(o.getUTCHours(),{unit:"hour"}):pa.H(o,l)},K:function(o,l,d){var c=o.getUTCHours()%12;return l==="Ko"?d.ordinalNumber(c,{unit:"hour"}):Et(c,l.length)},k:function(o,l,d){var c=o.getUTCHours();return c===0&&(c=24),l==="ko"?d.ordinalNumber(c,{unit:"hour"}):Et(c,l.length)},m:function(o,l,d){return l==="mo"?d.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):pa.m(o,l)},s:function(o,l,d){return l==="so"?d.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):pa.s(o,l)},S:function(o,l){return pa.S(o,l)},X:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();if(m===0)return"Z";switch(l){case"X":return ih(m);case"XXXX":case"XX":return sl(m);case"XXXXX":case"XXX":default:return sl(m,":")}},x:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();switch(l){case"x":return ih(m);case"xxxx":case"xx":return sl(m);case"xxxxx":case"xxx":default:return sl(m,":")}},O:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();switch(l){case"O":case"OO":case"OOO":return"GMT"+nh(m,":");case"OOOO":default:return"GMT"+sl(m,":")}},z:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();switch(l){case"z":case"zz":case"zzz":return"GMT"+nh(m,":");case"zzzz":default:return"GMT"+sl(m,":")}},t:function(o,l,d,c){var g=c._originalDate||o,m=Math.floor(g.getTime()/1e3);return Et(m,l.length)},T:function(o,l,d,c){var g=c._originalDate||o,m=g.getTime();return Et(m,l.length)}};function nh(s,o){var l=s>0?"-":"+",d=Math.abs(s),c=Math.floor(d/60),g=d%60;if(g===0)return l+String(c);var m=o||"";return l+String(c)+m+Et(g,2)}function ih(s,o){if(s%60===0){var l=s>0?"-":"+";return l+Et(Math.abs(s)/60,2)}return sl(s,o)}function sl(s,o){var l=o||"",d=s>0?"-":"+",c=Math.abs(s),g=Et(Math.floor(c/60),2),m=Et(c%60,2);return d+g+l+m}const o9=i9;var oh=function(o,l){switch(o){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"})}},Cp=function(o,l){switch(o){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"})}},a9=function(o,l){var d=o.match(/(P+)(p+)?/)||[],c=d[1],g=d[2];if(!g)return oh(o,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}}",oh(c,l)).replace("{{time}}",Cp(g,l))},l9={p:Cp,P:a9};const s9=l9;var u9=["D","DD"],c9=["YY","YYYY"];function d9(s){return u9.indexOf(s)!==-1}function f9(s){return c9.indexOf(s)!==-1}function ah(s,o,l){if(s==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) 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(s==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) 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 h9={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"}},p9=function(o,l,d){var c,g=h9[o];return typeof g=="string"?c=g:l===1?c=g.one:c=g.other.replace("{{count}}",l.toString()),d!=null&&d.addSuffix?d.comparison&&d.comparison>0?"in "+c:c+" ago":c};const g9=p9;function fd(s){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=o.width?String(o.width):s.defaultWidth,d=s.formats[l]||s.formats[s.defaultWidth];return d}}var v9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},b9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},m9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},y9={date:fd({formats:v9,defaultWidth:"full"}),time:fd({formats:b9,defaultWidth:"full"}),dateTime:fd({formats:m9,defaultWidth:"full"})};const C9=y9;var w9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},x9=function(o,l,d,c){return w9[o]};const z9=x9;function Ou(s){return function(o,l){var d=l!=null&&l.context?String(l.context):"standalone",c;if(d==="formatting"&&s.formattingValues){var g=s.defaultFormattingWidth||s.defaultWidth,m=l!=null&&l.width?String(l.width):g;c=s.formattingValues[m]||s.formattingValues[g]}else{var I=s.defaultWidth,T=l!=null&&l.width?String(l.width):s.defaultWidth;c=s.values[T]||s.values[I]}var k=s.argumentCallback?s.argumentCallback(o):o;return c[k]}}var L9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},S9={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"]},M9={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"]},k9={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"}},T9=function(o,l){var d=Number(o),c=d%100;if(c>20||c<10)switch(c%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"},P9={ordinalNumber:T9,era:Ou({values:L9,defaultWidth:"wide"}),quarter:Ou({values:_9,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:Ou({values:S9,defaultWidth:"wide"}),day:Ou({values:M9,defaultWidth:"wide"}),dayPeriod:Ou({values:k9,defaultWidth:"wide",formattingValues:O9,defaultFormattingWidth:"wide"})};const E9=P9;function Tu(s){return function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=l.width,c=d&&s.matchPatterns[d]||s.matchPatterns[s.defaultMatchWidth],g=o.match(c);if(!g)return null;var m=g[0],I=d&&s.parsePatterns[d]||s.parsePatterns[s.defaultParseWidth],T=Array.isArray(I)?A9(I,function(B){return B.test(m)}):I9(I,function(B){return B.test(m)}),k;k=s.valueCallback?s.valueCallback(T):T,k=l.valueCallback?l.valueCallback(k):k;var A=o.slice(m.length);return{value:k,rest:A}}}function I9(s,o){for(var l in s)if(s.hasOwnProperty(l)&&o(s[l]))return l}function A9(s,o){for(var l=0;l<s.length;l++)if(o(s[l]))return l}function D9(s){return function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=o.match(s.matchPattern);if(!d)return null;var c=d[0],g=o.match(s.parsePattern);if(!g)return null;var m=s.valueCallback?s.valueCallback(g[0]):g[0];m=l.valueCallback?l.valueCallback(m):m;var I=o.slice(c.length);return{value:m,rest:I}}}var $9=/^(\d+)(th|st|nd|rd)?/i,N9=/\d+/i,R9={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},H9={any:[/^b/i,/^(a|c)/i]},B9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},F9={any:[/1/i,/2/i,/3/i,/4/i]},W9={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},U9={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]},Z9={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},G9={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]},V9={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},q9={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}},K9={ordinalNumber:D9({matchPattern:$9,parsePattern:N9,valueCallback:function(o){return parseInt(o,10)}}),era:Tu({matchPatterns:R9,defaultMatchWidth:"wide",parsePatterns:H9,defaultParseWidth:"any"}),quarter:Tu({matchPatterns:B9,defaultMatchWidth:"wide",parsePatterns:F9,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:Tu({matchPatterns:W9,defaultMatchWidth:"wide",parsePatterns:U9,defaultParseWidth:"any"}),day:Tu({matchPatterns:Z9,defaultMatchWidth:"wide",parsePatterns:G9,defaultParseWidth:"any"}),dayPeriod:Tu({matchPatterns:V9,defaultMatchWidth:"any",parsePatterns:q9,defaultParseWidth:"any"})};const j9=K9;var Y9={code:"en-US",formatDistance:g9,formatLong:C9,formatRelative:z9,localize:E9,match:j9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const X9=Y9;var Q9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,J9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,e8=/^'([^]*?)'?$/,t8=/''/g,r8=/[a-zA-Z]/;function n8(s,o,l){var d,c,g,m,I,T,k,A,B,U,Z,re,ve,ge,Me,Te,pe,de;Zr(2,arguments);var ke=String(o),Pe=V0(),Ie=(d=(c=l==null?void 0:l.locale)!==null&&c!==void 0?c:Pe.locale)!==null&&d!==void 0?d:X9,qe=va((g=(m=(I=(T=l==null?void 0:l.firstWeekContainsDate)!==null&&T!==void 0?T:l==null||(k=l.locale)===null||k===void 0||(A=k.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&I!==void 0?I:Pe.firstWeekContainsDate)!==null&&m!==void 0?m:(B=Pe.locale)===null||B===void 0||(U=B.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&g!==void 0?g:1);if(!(qe>=1&&qe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var je=va((Z=(re=(ve=(ge=l==null?void 0:l.weekStartsOn)!==null&&ge!==void 0?ge:l==null||(Me=l.locale)===null||Me===void 0||(Te=Me.options)===null||Te===void 0?void 0:Te.weekStartsOn)!==null&&ve!==void 0?ve:Pe.weekStartsOn)!==null&&re!==void 0?re:(pe=Pe.locale)===null||pe===void 0||(de=pe.options)===null||de===void 0?void 0:de.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(je>=0&&je<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ie.localize)throw new RangeError("locale must contain localize property");if(!Ie.formatLong)throw new RangeError("locale must contain formatLong property");var be=Ci(s);if(!q7(be))throw new RangeError("Invalid time value");var ye=W7(be),Qe=K7(be,ye),G={firstWeekContainsDate:qe,weekStartsOn:je,locale:Ie,_originalDate:be},E=ke.match(J9).map(function(S){var ee=S[0];if(ee==="p"||ee==="P"){var me=s9[ee];return me(S,Ie.formatLong)}return S}).join("").match(Q9).map(function(S){if(S==="''")return"'";var ee=S[0];if(ee==="'")return i8(S);var me=o9[ee];if(me)return!(l!=null&&l.useAdditionalWeekYearTokens)&&f9(S)&&ah(S,o,String(s)),!(l!=null&&l.useAdditionalDayOfYearTokens)&&d9(S)&&ah(S,o,String(s)),me(Qe,S,Ie.localize,G);if(ee.match(r8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return S}).join("");return E}function i8(s){var o=s.match(e8);return o?o[1].replace(t8,"'"):s}var o8=Object.defineProperty,a8=Object.getOwnPropertyDescriptor,Ca=(s,o,l,d)=>{for(var c=d>1?void 0:d?a8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&o8(o,l,c),c};const wp=Se("input-time"),xp="h:mmaaa",zp=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,Lp=/^(1[3-9]|2[0-3]).*/,_p=/^(\d\d?)(am?|pm?)/,l8=["UTC","AEST"],Sp=(s,o)=>({label:`${s}${o?` (${o})`:""}`,value:s}),s8=(s,o)=>{const d=Math.ceil(1440/s),c=U7(Date.now());return Array(d).fill(null).map((g,m)=>{const I=G7(c,s*m),T=n8(I,xp);return Sp(T,o)})},u8=(s,o)=>{const l=s.trim(),d=s.match(zp);if(!l||!d)return[];const[,c,g,m]=d,I=parseInt(c,10),T=I>12?`${I-12}`:`${I}`,k=`${g}${m||0}`,A=`${T}:${k}`;return["am","pm"].map(B=>Sp(`${A}${B}`,o))},c8=(s,{value:o})=>{const l=s.match(Lp);if(!l||!o)return!1;const[,d]=l,c=`${parseInt(d,10)-12}`,g=s.substring(d.length).replace(":",""),m=`${c}:${g}`;return o.startsWith(m)&&o.endsWith("pm")},d8=(s,{value:o})=>{const l=s.match(_p);if(!l)return!1;const[,d,c]=l;return!!(o!=null&&o.replace(":00","").startsWith(`${d}${c}`))},f8=(...s)=>d8(...s)||c8(...s);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=s8(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var s;this.valueLabel=(s=this.getItems().find(({value:o})=>o===this.value))==null?void 0:s.label,this.resetSearch()}isCustomQueryMatch(s){return this.query?f8(this.query,s):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=u8(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return Y`
|
|
2913
|
+
`];qu([H({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);qu([H({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);qu([H({type:Array})],exports.InputMultiselect.prototype,"value",2);qu([Xe()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=qu([J(pp)],exports.InputMultiselect);function va(s){if(s===null||s===!0||s===!1)return NaN;var o=Number(s);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Zr(s,o){if(o.length<s)throw new TypeError(s+" argument"+(s>1?"s":"")+" required, but only "+o.length+" present")}function w0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w0=function(l){return typeof l}:w0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},w0(s)}function Ci(s){Zr(1,arguments);var o=Object.prototype.toString.call(s);return s instanceof Date||w0(s)==="object"&&o==="[object Date]"?new Date(s.getTime()):typeof s=="number"||o==="[object Number]"?new Date(s):((typeof s=="string"||o==="[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 gp(s,o){Zr(2,arguments);var l=Ci(s).getTime(),d=va(o);return new Date(l+d)}var H7={};function V0(){return H7}function B7(s){var o=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return o.setUTCFullYear(s.getFullYear()),s.getTime()-o.getTime()}function F7(s){Zr(1,arguments);var o=Ci(s);return o.setHours(0,0,0,0),o}var W7=6e4;function U7(s,o){Zr(2,arguments);var l=va(o);return gp(s,l*W7)}function x0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x0=function(l){return typeof l}:x0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},x0(s)}function Z7(s){return Zr(1,arguments),s instanceof Date||x0(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}function G7(s){if(Zr(1,arguments),!Z7(s)&&typeof s!="number")return!1;var o=Ci(s);return!isNaN(Number(o))}function V7(s,o){Zr(2,arguments);var l=va(o);return gp(s,-l)}var q7=864e5;function K7(s){Zr(1,arguments);var o=Ci(s),l=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var d=o.getTime(),c=l-d;return Math.floor(c/q7)+1}function T0(s){Zr(1,arguments);var o=1,l=Ci(s),d=l.getUTCDay(),c=(d<o?7:0)+d-o;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function vp(s){Zr(1,arguments);var o=Ci(s),l=o.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(l+1,0,4),d.setUTCHours(0,0,0,0);var c=T0(d),g=new Date(0);g.setUTCFullYear(l,0,4),g.setUTCHours(0,0,0,0);var m=T0(g);return o.getTime()>=c.getTime()?l+1:o.getTime()>=m.getTime()?l:l-1}function j7(s){Zr(1,arguments);var o=vp(s),l=new Date(0);l.setUTCFullYear(o,0,4),l.setUTCHours(0,0,0,0);var d=T0(l);return d}var Y7=6048e5;function X7(s){Zr(1,arguments);var o=Ci(s),l=T0(o).getTime()-j7(o).getTime();return Math.round(l/Y7)+1}function P0(s,o){var l,d,c,g,m,I,T,k;Zr(1,arguments);var A=V0(),B=va((l=(d=(c=(g=o==null?void 0:o.weekStartsOn)!==null&&g!==void 0?g:o==null||(m=o.locale)===null||m===void 0||(I=m.options)===null||I===void 0?void 0:I.weekStartsOn)!==null&&c!==void 0?c:A.weekStartsOn)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&l!==void 0?l:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var U=Ci(s),Z=U.getUTCDay(),re=(Z<B?7:0)+Z-B;return U.setUTCDate(U.getUTCDate()-re),U.setUTCHours(0,0,0,0),U}function bp(s,o){var l,d,c,g,m,I,T,k;Zr(1,arguments);var A=Ci(s),B=A.getUTCFullYear(),U=V0(),Z=va((l=(d=(c=(g=o==null?void 0:o.firstWeekContainsDate)!==null&&g!==void 0?g:o==null||(m=o.locale)===null||m===void 0||(I=m.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:U.firstWeekContainsDate)!==null&&d!==void 0?d:(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(B+1,0,Z),re.setUTCHours(0,0,0,0);var ve=P0(re,o),ge=new Date(0);ge.setUTCFullYear(B,0,Z),ge.setUTCHours(0,0,0,0);var Me=P0(ge,o);return A.getTime()>=ve.getTime()?B+1:A.getTime()>=Me.getTime()?B:B-1}function Q7(s,o){var l,d,c,g,m,I,T,k;Zr(1,arguments);var A=V0(),B=va((l=(d=(c=(g=o==null?void 0:o.firstWeekContainsDate)!==null&&g!==void 0?g:o==null||(m=o.locale)===null||m===void 0||(I=m.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:A.firstWeekContainsDate)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1),U=bp(s,o),Z=new Date(0);Z.setUTCFullYear(U,0,B),Z.setUTCHours(0,0,0,0);var re=P0(Z,o);return re}var J7=6048e5;function e9(s,o){Zr(1,arguments);var l=Ci(s),d=P0(l,o).getTime()-Q7(l,o).getTime();return Math.round(d/J7)+1}function Et(s,o){for(var l=s<0?"-":"",d=Math.abs(s).toString();d.length<o;)d="0"+d;return l+d}var t9={y:function(o,l){var d=o.getUTCFullYear(),c=d>0?d:1-d;return Et(l==="yy"?c%100:c,l.length)},M:function(o,l){var d=o.getUTCMonth();return l==="M"?String(d+1):Et(d+1,2)},d:function(o,l){return Et(o.getUTCDate(),l.length)},a:function(o,l){var d=o.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(o,l){return Et(o.getUTCHours()%12||12,l.length)},H:function(o,l){return Et(o.getUTCHours(),l.length)},m:function(o,l){return Et(o.getUTCMinutes(),l.length)},s:function(o,l){return Et(o.getUTCSeconds(),l.length)},S:function(o,l){var d=l.length,c=o.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,d-3));return Et(g,l.length)}};const pa=t9;var gs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},r9={G:function(o,l,d){var c=o.getUTCFullYear()>0?1:0;switch(l){case"G":case"GG":case"GGG":return d.era(c,{width:"abbreviated"});case"GGGGG":return d.era(c,{width:"narrow"});case"GGGG":default:return d.era(c,{width:"wide"})}},y:function(o,l,d){if(l==="yo"){var c=o.getUTCFullYear(),g=c>0?c:1-c;return d.ordinalNumber(g,{unit:"year"})}return pa.y(o,l)},Y:function(o,l,d,c){var g=bp(o,c),m=g>0?g:1-g;if(l==="YY"){var I=m%100;return Et(I,2)}return l==="Yo"?d.ordinalNumber(m,{unit:"year"}):Et(m,l.length)},R:function(o,l){var d=vp(o);return Et(d,l.length)},u:function(o,l){var d=o.getUTCFullYear();return Et(d,l.length)},Q:function(o,l,d){var c=Math.ceil((o.getUTCMonth()+1)/3);switch(l){case"Q":return String(c);case"QQ":return Et(c,2);case"Qo":return d.ordinalNumber(c,{unit:"quarter"});case"QQQ":return d.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return d.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return d.quarter(c,{width:"wide",context:"formatting"})}},q:function(o,l,d){var c=Math.ceil((o.getUTCMonth()+1)/3);switch(l){case"q":return String(c);case"qq":return Et(c,2);case"qo":return d.ordinalNumber(c,{unit:"quarter"});case"qqq":return d.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return d.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return d.quarter(c,{width:"wide",context:"standalone"})}},M:function(o,l,d){var c=o.getUTCMonth();switch(l){case"M":case"MM":return pa.M(o,l);case"Mo":return d.ordinalNumber(c+1,{unit:"month"});case"MMM":return d.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return d.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return d.month(c,{width:"wide",context:"formatting"})}},L:function(o,l,d){var c=o.getUTCMonth();switch(l){case"L":return String(c+1);case"LL":return Et(c+1,2);case"Lo":return d.ordinalNumber(c+1,{unit:"month"});case"LLL":return d.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return d.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return d.month(c,{width:"wide",context:"standalone"})}},w:function(o,l,d,c){var g=e9(o,c);return l==="wo"?d.ordinalNumber(g,{unit:"week"}):Et(g,l.length)},I:function(o,l,d){var c=X7(o);return l==="Io"?d.ordinalNumber(c,{unit:"week"}):Et(c,l.length)},d:function(o,l,d){return l==="do"?d.ordinalNumber(o.getUTCDate(),{unit:"date"}):pa.d(o,l)},D:function(o,l,d){var c=K7(o);return l==="Do"?d.ordinalNumber(c,{unit:"dayOfYear"}):Et(c,l.length)},E:function(o,l,d){var c=o.getUTCDay();switch(l){case"E":case"EE":case"EEE":return d.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return d.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return d.day(c,{width:"short",context:"formatting"});case"EEEE":default:return d.day(c,{width:"wide",context:"formatting"})}},e:function(o,l,d,c){var g=o.getUTCDay(),m=(g-c.weekStartsOn+8)%7||7;switch(l){case"e":return String(m);case"ee":return Et(m,2);case"eo":return d.ordinalNumber(m,{unit:"day"});case"eee":return d.day(g,{width:"abbreviated",context:"formatting"});case"eeeee":return d.day(g,{width:"narrow",context:"formatting"});case"eeeeee":return d.day(g,{width:"short",context:"formatting"});case"eeee":default:return d.day(g,{width:"wide",context:"formatting"})}},c:function(o,l,d,c){var g=o.getUTCDay(),m=(g-c.weekStartsOn+8)%7||7;switch(l){case"c":return String(m);case"cc":return Et(m,l.length);case"co":return d.ordinalNumber(m,{unit:"day"});case"ccc":return d.day(g,{width:"abbreviated",context:"standalone"});case"ccccc":return d.day(g,{width:"narrow",context:"standalone"});case"cccccc":return d.day(g,{width:"short",context:"standalone"});case"cccc":default:return d.day(g,{width:"wide",context:"standalone"})}},i:function(o,l,d){var c=o.getUTCDay(),g=c===0?7:c;switch(l){case"i":return String(g);case"ii":return Et(g,l.length);case"io":return d.ordinalNumber(g,{unit:"day"});case"iii":return d.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return d.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return d.day(c,{width:"short",context:"formatting"});case"iiii":default:return d.day(c,{width:"wide",context:"formatting"})}},a:function(o,l,d){var c=o.getUTCHours(),g=c/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"aaa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"aaaa":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},b:function(o,l,d){var c=o.getUTCHours(),g;switch(c===12?g=gs.noon:c===0?g=gs.midnight:g=c/12>=1?"pm":"am",l){case"b":case"bb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"bbb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"bbbb":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},B:function(o,l,d){var c=o.getUTCHours(),g;switch(c>=17?g=gs.evening:c>=12?g=gs.afternoon:c>=4?g=gs.morning:g=gs.night,l){case"B":case"BB":case"BBB":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"BBBBB":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"BBBB":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},h:function(o,l,d){if(l==="ho"){var c=o.getUTCHours()%12;return c===0&&(c=12),d.ordinalNumber(c,{unit:"hour"})}return pa.h(o,l)},H:function(o,l,d){return l==="Ho"?d.ordinalNumber(o.getUTCHours(),{unit:"hour"}):pa.H(o,l)},K:function(o,l,d){var c=o.getUTCHours()%12;return l==="Ko"?d.ordinalNumber(c,{unit:"hour"}):Et(c,l.length)},k:function(o,l,d){var c=o.getUTCHours();return c===0&&(c=24),l==="ko"?d.ordinalNumber(c,{unit:"hour"}):Et(c,l.length)},m:function(o,l,d){return l==="mo"?d.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):pa.m(o,l)},s:function(o,l,d){return l==="so"?d.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):pa.s(o,l)},S:function(o,l){return pa.S(o,l)},X:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();if(m===0)return"Z";switch(l){case"X":return rh(m);case"XXXX":case"XX":return sl(m);case"XXXXX":case"XXX":default:return sl(m,":")}},x:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();switch(l){case"x":return rh(m);case"xxxx":case"xx":return sl(m);case"xxxxx":case"xxx":default:return sl(m,":")}},O:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();switch(l){case"O":case"OO":case"OOO":return"GMT"+th(m,":");case"OOOO":default:return"GMT"+sl(m,":")}},z:function(o,l,d,c){var g=c._originalDate||o,m=g.getTimezoneOffset();switch(l){case"z":case"zz":case"zzz":return"GMT"+th(m,":");case"zzzz":default:return"GMT"+sl(m,":")}},t:function(o,l,d,c){var g=c._originalDate||o,m=Math.floor(g.getTime()/1e3);return Et(m,l.length)},T:function(o,l,d,c){var g=c._originalDate||o,m=g.getTime();return Et(m,l.length)}};function th(s,o){var l=s>0?"-":"+",d=Math.abs(s),c=Math.floor(d/60),g=d%60;if(g===0)return l+String(c);var m=o||"";return l+String(c)+m+Et(g,2)}function rh(s,o){if(s%60===0){var l=s>0?"-":"+";return l+Et(Math.abs(s)/60,2)}return sl(s,o)}function sl(s,o){var l=o||"",d=s>0?"-":"+",c=Math.abs(s),g=Et(Math.floor(c/60),2),m=Et(c%60,2);return d+g+l+m}const n9=r9;var nh=function(o,l){switch(o){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"})}},mp=function(o,l){switch(o){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"})}},i9=function(o,l){var d=o.match(/(P+)(p+)?/)||[],c=d[1],g=d[2];if(!g)return nh(o,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}}",nh(c,l)).replace("{{time}}",mp(g,l))},o9={p:mp,P:i9};const a9=o9;var l9=["D","DD"],s9=["YY","YYYY"];function u9(s){return l9.indexOf(s)!==-1}function c9(s){return s9.indexOf(s)!==-1}function ih(s,o,l){if(s==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) 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(s==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) 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 d9={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"}},f9=function(o,l,d){var c,g=d9[o];return typeof g=="string"?c=g:l===1?c=g.one:c=g.other.replace("{{count}}",l.toString()),d!=null&&d.addSuffix?d.comparison&&d.comparison>0?"in "+c:c+" ago":c};const h9=f9;function dd(s){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=o.width?String(o.width):s.defaultWidth,d=s.formats[l]||s.formats[s.defaultWidth];return d}}var p9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},g9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},v9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},b9={date:dd({formats:p9,defaultWidth:"full"}),time:dd({formats:g9,defaultWidth:"full"}),dateTime:dd({formats:v9,defaultWidth:"full"})};const m9=b9;var y9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},C9=function(o,l,d,c){return y9[o]};const w9=C9;function Ou(s){return function(o,l){var d=l!=null&&l.context?String(l.context):"standalone",c;if(d==="formatting"&&s.formattingValues){var g=s.defaultFormattingWidth||s.defaultWidth,m=l!=null&&l.width?String(l.width):g;c=s.formattingValues[m]||s.formattingValues[g]}else{var I=s.defaultWidth,T=l!=null&&l.width?String(l.width):s.defaultWidth;c=s.values[T]||s.values[I]}var k=s.argumentCallback?s.argumentCallback(o):o;return c[k]}}var x9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},z9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},L9={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"]},_9={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"]},S9={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"}},M9={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"}},k9=function(o,l){var d=Number(o),c=d%100;if(c>20||c<10)switch(c%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"},O9={ordinalNumber:k9,era:Ou({values:x9,defaultWidth:"wide"}),quarter:Ou({values:z9,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:Ou({values:L9,defaultWidth:"wide"}),day:Ou({values:_9,defaultWidth:"wide"}),dayPeriod:Ou({values:S9,defaultWidth:"wide",formattingValues:M9,defaultFormattingWidth:"wide"})};const T9=O9;function Tu(s){return function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=l.width,c=d&&s.matchPatterns[d]||s.matchPatterns[s.defaultMatchWidth],g=o.match(c);if(!g)return null;var m=g[0],I=d&&s.parsePatterns[d]||s.parsePatterns[s.defaultParseWidth],T=Array.isArray(I)?E9(I,function(B){return B.test(m)}):P9(I,function(B){return B.test(m)}),k;k=s.valueCallback?s.valueCallback(T):T,k=l.valueCallback?l.valueCallback(k):k;var A=o.slice(m.length);return{value:k,rest:A}}}function P9(s,o){for(var l in s)if(s.hasOwnProperty(l)&&o(s[l]))return l}function E9(s,o){for(var l=0;l<s.length;l++)if(o(s[l]))return l}function I9(s){return function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=o.match(s.matchPattern);if(!d)return null;var c=d[0],g=o.match(s.parsePattern);if(!g)return null;var m=s.valueCallback?s.valueCallback(g[0]):g[0];m=l.valueCallback?l.valueCallback(m):m;var I=o.slice(c.length);return{value:m,rest:I}}}var A9=/^(\d+)(th|st|nd|rd)?/i,D9=/\d+/i,$9={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},N9={any:[/^b/i,/^(a|c)/i]},R9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},H9={any:[/1/i,/2/i,/3/i,/4/i]},B9={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},F9={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]},W9={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},U9={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]},Z9={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},G9={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}},V9={ordinalNumber:I9({matchPattern:A9,parsePattern:D9,valueCallback:function(o){return parseInt(o,10)}}),era:Tu({matchPatterns:$9,defaultMatchWidth:"wide",parsePatterns:N9,defaultParseWidth:"any"}),quarter:Tu({matchPatterns:R9,defaultMatchWidth:"wide",parsePatterns:H9,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:Tu({matchPatterns:B9,defaultMatchWidth:"wide",parsePatterns:F9,defaultParseWidth:"any"}),day:Tu({matchPatterns:W9,defaultMatchWidth:"wide",parsePatterns:U9,defaultParseWidth:"any"}),dayPeriod:Tu({matchPatterns:Z9,defaultMatchWidth:"any",parsePatterns:G9,defaultParseWidth:"any"})};const q9=V9;var K9={code:"en-US",formatDistance:h9,formatLong:m9,formatRelative:w9,localize:T9,match:q9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const j9=K9;var Y9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,X9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q9=/^'([^]*?)'?$/,J9=/''/g,e8=/[a-zA-Z]/;function t8(s,o,l){var d,c,g,m,I,T,k,A,B,U,Z,re,ve,ge,Me,Te,pe,de;Zr(2,arguments);var ke=String(o),Pe=V0(),Ie=(d=(c=l==null?void 0:l.locale)!==null&&c!==void 0?c:Pe.locale)!==null&&d!==void 0?d:j9,qe=va((g=(m=(I=(T=l==null?void 0:l.firstWeekContainsDate)!==null&&T!==void 0?T:l==null||(k=l.locale)===null||k===void 0||(A=k.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&I!==void 0?I:Pe.firstWeekContainsDate)!==null&&m!==void 0?m:(B=Pe.locale)===null||B===void 0||(U=B.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&g!==void 0?g:1);if(!(qe>=1&&qe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var je=va((Z=(re=(ve=(ge=l==null?void 0:l.weekStartsOn)!==null&&ge!==void 0?ge:l==null||(Me=l.locale)===null||Me===void 0||(Te=Me.options)===null||Te===void 0?void 0:Te.weekStartsOn)!==null&&ve!==void 0?ve:Pe.weekStartsOn)!==null&&re!==void 0?re:(pe=Pe.locale)===null||pe===void 0||(de=pe.options)===null||de===void 0?void 0:de.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(je>=0&&je<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ie.localize)throw new RangeError("locale must contain localize property");if(!Ie.formatLong)throw new RangeError("locale must contain formatLong property");var be=Ci(s);if(!G7(be))throw new RangeError("Invalid time value");var ye=B7(be),Qe=V7(be,ye),G={firstWeekContainsDate:qe,weekStartsOn:je,locale:Ie,_originalDate:be},E=ke.match(X9).map(function(S){var ee=S[0];if(ee==="p"||ee==="P"){var me=a9[ee];return me(S,Ie.formatLong)}return S}).join("").match(Y9).map(function(S){if(S==="''")return"'";var ee=S[0];if(ee==="'")return r8(S);var me=n9[ee];if(me)return!(l!=null&&l.useAdditionalWeekYearTokens)&&c9(S)&&ih(S,o,String(s)),!(l!=null&&l.useAdditionalDayOfYearTokens)&&u9(S)&&ih(S,o,String(s)),me(Qe,S,Ie.localize,G);if(ee.match(e8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return S}).join("");return E}function r8(s){var o=s.match(Q9);return o?o[1].replace(J9,"'"):s}var n8=Object.defineProperty,i8=Object.getOwnPropertyDescriptor,Ca=(s,o,l,d)=>{for(var c=d>1?void 0:d?i8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&n8(o,l,c),c};const yp=Se("input-time"),Cp="h:mmaaa",wp=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,xp=/^(1[3-9]|2[0-3]).*/,zp=/^(\d\d?)(am?|pm?)/,o8=["UTC","AEST"],Lp=(s,o)=>({label:`${s}${o?` (${o})`:""}`,value:s}),a8=(s,o)=>{const d=Math.ceil(1440/s),c=F7(Date.now());return Array(d).fill(null).map((g,m)=>{const I=U7(c,s*m),T=t8(I,Cp);return Lp(T,o)})},l8=(s,o)=>{const l=s.trim(),d=s.match(wp);if(!l||!d)return[];const[,c,g,m]=d,I=parseInt(c,10),T=I>12?`${I-12}`:`${I}`,k=`${g}${m||0}`,A=`${T}:${k}`;return["am","pm"].map(B=>Lp(`${A}${B}`,o))},s8=(s,{value:o})=>{const l=s.match(xp);if(!l||!o)return!1;const[,d]=l,c=`${parseInt(d,10)-12}`,g=s.substring(d.length).replace(":",""),m=`${c}:${g}`;return o.startsWith(m)&&o.endsWith("pm")},u8=(s,{value:o})=>{const l=s.match(zp);if(!l)return!1;const[,d,c]=l;return!!(o!=null&&o.replace(":00","").startsWith(`${d}${c}`))},c8=(...s)=>u8(...s)||s8(...s);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=a8(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var s;this.valueLabel=(s=this.getItems().find(({value:o})=>o===this.value))==null?void 0:s.label,this.resetSearch()}isCustomQueryMatch(s){return this.query?c8(this.query,s):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=l8(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return Y`
|
|
2911
2914
|
${this.handleNoResults()} ${this.renderOptionsData()}
|
|
2912
2915
|
${this.renderFreeformOptions()}
|
|
2913
|
-
`}};Ca([H({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Ca([H({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Ca([H({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Ca([H({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Ca([H({type:String})],exports.InputTime.prototype,"placeholder",2);Ca([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Ca([Xe()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Ca([J(
|
|
2916
|
+
`}};Ca([H({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Ca([H({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Ca([H({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Ca([H({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Ca([H({type:String})],exports.InputTime.prototype,"placeholder",2);Ca([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Ca([Xe()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Ca([J(yp)],exports.InputTime);var d8=Object.defineProperty,f8=Object.getOwnPropertyDescriptor,vl=(s,o,l,d)=>{for(var c=d>1?void 0:d?f8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&d8(o,l,c),c};const E0=Se("menu-item");exports.MenuItem=class extends Fe{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 _p({detail:{item:this}}))}handleClick(s){s.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&s.stopPropagation()}handleKeyDown(){}get labelTemplate(){return Y` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?Y`
|
|
2914
2917
|
<brz-input-checkbox
|
|
2915
2918
|
?disabled=${this.disabled}
|
|
2916
2919
|
?checked=${this.selected}
|
|
@@ -2987,7 +2990,7 @@ ${this.value}</textarea
|
|
|
2987
2990
|
padding-left: var(--menu-item-label-gutter);
|
|
2988
2991
|
position: relative;
|
|
2989
2992
|
}
|
|
2990
|
-
`;vl([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);vl([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);vl([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);vl([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);vl([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);vl([H({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=vl([J(E0)],exports.MenuItem);class
|
|
2993
|
+
`;vl([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);vl([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);vl([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);vl([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);vl([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);vl([H({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=vl([J(E0)],exports.MenuItem);class _p extends CustomEvent{constructor(o={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...o})}}var h8=Object.defineProperty,p8=Object.getOwnPropertyDescriptor,wa=(s,o,l,d)=>{for(var c=d>1?void 0:d?p8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&h8(o,l,c),c};const Sp=Se("menu"),pi="selectAll",Mp=["small","medium","large"];exports.Menu=class extends Fe{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(s){var o;super.updated(s),s.has("highlightedIndex")&&((o=this.highlightedItem)==null||o.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(s){s.preventDefault();const{key:o}=s,l=({before:c,after:g})=>(m,I)=>m.hidden?!1:c===void 0&&g===void 0||c!==void 0&&I<c||g!==void 0&&I>g;this.clearHighlightedItem();const d=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,d[this.highlightedIndex].highlighted=!0;return}o==="ArrowUp"&&(this.highlightedIndex=Hu.exports.findLastIndex(d,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=d.length-1)),o==="ArrowDown"&&(this.highlightedIndex=d.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),d[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(s){if(s.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(s=>s.selected)}getActiveMenuItem(s){return s?s.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(s){if(!this.selectable)return this.bypassSelectedState();if(s.value===void 0)throw new Error("No value found for MenuItem");if(!s.disabled){if(this.multiselect)s.toggle();else{const[o]=this.selectedItems;o==null||o.deselect(),s.select()}this.updateSelected(s.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(s){const o=this.selected.some(d=>s===d);if(this.multiselect&&o){this.selected=this.selected.filter(d=>s!==d);return}o||(this.selected=this.multiselect?[...this.selected,s]:[s])}handleMenuItemSelect(s){s.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(s))}emitSelection(){this.dispatchEvent(new Op({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(s){var o,l;(l=(o=this.keyBindings)[s.key])==null||l.call(o,s)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new kp),this.reset()}handleTabKey(s){s.preventDefault(),this.emitBlur()}applyPropsToChildren(s){!g8(s)||s.forEach(o=>{var l;o.selectable=this.selectable&&o.id!==Bu,o.toggleable=this.multiselect&&o.id!==Bu,o.id!==pi&&(o.selected=o.value!==void 0?(l=this.selected)==null?void 0:l.includes(o.value):!1)})}handleSlotChange(s){const o=s.target.assignedElements({flatten:!0});this.applyPropsToChildren(o)}handleVirtualListUpdate({detail:{itemElements:s}}){this.applyPropsToChildren(s),this.virtualListMenuItems=s}render(){return Y`
|
|
2991
2994
|
<ul
|
|
2992
2995
|
class="menu"
|
|
2993
2996
|
role="menu"
|
|
@@ -3033,7 +3036,7 @@ ${this.value}</textarea
|
|
|
3033
3036
|
width: var(--brz-menu-width, 10rem);
|
|
3034
3037
|
padding: 0;
|
|
3035
3038
|
}
|
|
3036
|
-
`;wa([H({type:Boolean})],exports.Menu.prototype,"multiselect",2);wa([H({type:Boolean})],exports.Menu.prototype,"selectable",2);wa([H({type:Array})],exports.Menu.prototype,"selected",2);wa([H({reflect:!0})],exports.Menu.prototype,"size",2);wa([Xe()],exports.Menu.prototype,"highlightedIndex",2);wa([Xe()],exports.Menu.prototype,"virtualListMenuItems",2);wa([$0({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=wa([J(
|
|
3039
|
+
`;wa([H({type:Boolean})],exports.Menu.prototype,"multiselect",2);wa([H({type:Boolean})],exports.Menu.prototype,"selectable",2);wa([H({type:Array})],exports.Menu.prototype,"selected",2);wa([H({reflect:!0})],exports.Menu.prototype,"size",2);wa([Xe()],exports.Menu.prototype,"highlightedIndex",2);wa([Xe()],exports.Menu.prototype,"virtualListMenuItems",2);wa([$0({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=wa([J(Sp)],exports.Menu);const g8=s=>s[0]instanceof exports.MenuItem;class kp extends CustomEvent{constructor(o={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...o})}}class Op extends CustomEvent{constructor(o={}){super("brz-menu-select",{bubbles:!0,composed:!0,...o})}}var v8=Object.defineProperty,b8=Object.getOwnPropertyDescriptor,Ji=(s,o,l,d)=>{for(var c=d>1?void 0:d?b8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&v8(o,l,c),c};const Tp=Se("dropdown-menu"),m8=[...Mp,"fluid"];exports.DropdownMenu=class extends Fe{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(s){super.updated(s),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:s,offsetWidth:o}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?s:o}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var s;(s=this.popover)==null||s.updatePosition()}render(){return Y`
|
|
3037
3040
|
<brz-popover
|
|
3038
3041
|
trigger="click"
|
|
3039
3042
|
placement="bottom-start"
|
|
@@ -3059,7 +3062,7 @@ ${this.value}</textarea
|
|
|
3059
3062
|
</brz-popover>
|
|
3060
3063
|
`}};exports.DropdownMenu.styles=ce`
|
|
3061
3064
|
${fl(":focus-within brz-menu:focus-visible")};
|
|
3062
|
-
`;
|
|
3065
|
+
`;Ji([H({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Ji([H({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Ji([H({type:Array})],exports.DropdownMenu.prototype,"selected",2);Ji([H()],exports.DropdownMenu.prototype,"size",2);Ji([Xe()],exports.DropdownMenu.prototype,"fluidWidth",2);Ji([Xe()],exports.DropdownMenu.prototype,"disabled",2);Ji([ba("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Ji([ba("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Ji([$0()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Ji([J(Tp)],exports.DropdownMenu);var y8=Object.defineProperty,C8=Object.getOwnPropertyDescriptor,Pp=(s,o,l,d)=>{for(var c=d>1?void 0:d?C8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&y8(o,l,c),c};const Ep=Se("combo-box"),Ip=Se("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=Pp([J(Ep)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=Pp([J(Ip)],exports.ComboBoxOption);var w8=Object.defineProperty,x8=Object.getOwnPropertyDescriptor,Ts=(s,o,l,d)=>{for(var c=d>1?void 0:d?x8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&w8(o,l,c),c};const Ap=Se("modal"),z8=["small","medium","large","x-large"];class Bd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Fe{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=s=>{if(s.key==="Escape")return this.handleClose(s)},this.handleClose=s=>{s instanceof MouseEvent&&this.noClose||s instanceof MouseEvent&&s.target!==this.overlay||(s.stopPropagation(),this.dispatchEvent(new Bd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}handleTransitionEnd(s){s.target===this.overlay&&(this.shown=!1)}render(){return Y`
|
|
3063
3066
|
<brz-fade-in-out ?shown=${this.open}>
|
|
3064
3067
|
<div
|
|
3065
3068
|
id="overlay"
|
|
@@ -3133,7 +3136,7 @@ ${this.value}</textarea
|
|
|
3133
3136
|
::slotted(sp-modal-body:first-child) {
|
|
3134
3137
|
padding-top: var(--brz-spacing-10);
|
|
3135
3138
|
}
|
|
3136
|
-
`;Ts([H({type:String})],exports.Modal.prototype,"size",2);Ts([H({type:Boolean})],exports.Modal.prototype,"open",2);Ts([H({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Ts([H({attribute:!1})],exports.Modal.prototype,"shown",2);Ts([ba("#overlay")],exports.Modal.prototype,"overlay",2);exports.Modal=Ts([J(
|
|
3139
|
+
`;Ts([H({type:String})],exports.Modal.prototype,"size",2);Ts([H({type:Boolean})],exports.Modal.prototype,"open",2);Ts([H({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Ts([H({attribute:!1})],exports.Modal.prototype,"shown",2);Ts([ba("#overlay")],exports.Modal.prototype,"overlay",2);exports.Modal=Ts([J(Ap)],exports.Modal);var L8=Object.defineProperty,_8=Object.getOwnPropertyDescriptor,eo=(s,o,l,d)=>{for(var c=d>1?void 0:d?_8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&L8(o,l,c),c};const Dp=Se("split-row"),$p=Se("action-bar");exports.SplitRow=class extends Fe{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return Y`
|
|
3137
3140
|
<brz-row vertical-align=${this.verticalAlign}>
|
|
3138
3141
|
<div class="left">
|
|
3139
3142
|
<slot name="left"></slot>
|
|
@@ -3171,7 +3174,7 @@ ${this.value}</textarea
|
|
|
3171
3174
|
:host([right-expand]) .right {
|
|
3172
3175
|
flex: 1;
|
|
3173
3176
|
}
|
|
3174
|
-
`;
|
|
3177
|
+
`;eo([H({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);eo([H({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);eo([H({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);eo([H({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);eo([H({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=eo([J(Dp)],exports.SplitRow);exports.ActionBar=class extends Fe{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return Y`
|
|
3175
3178
|
<brz-split-row
|
|
3176
3179
|
vertical-align="middle"
|
|
3177
3180
|
?left-expand=${this.leftExpand}
|
|
@@ -3189,7 +3192,7 @@ ${this.value}</textarea
|
|
|
3189
3192
|
:host([no-border]) brz-split-row {
|
|
3190
3193
|
box-shadow: none;
|
|
3191
3194
|
}
|
|
3192
|
-
`;
|
|
3195
|
+
`;eo([H({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);eo([H({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);eo([H({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=eo([J($p)],exports.ActionBar);var S8=Object.defineProperty,M8=Object.getOwnPropertyDescriptor,q0=(s,o,l,d)=>{for(var c=d>1?void 0:d?M8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&S8(o,l,c),c};const Np=Se("modal-header"),Rp=Se("modal-body"),Hp=Se("modal-footer");exports.ModalHeader=class extends Fe{get _noClose(){var s;return(s=md(this.parentElement,exports.Modal))==null?void 0:s.noClose}_handleClickClose(){this.dispatchEvent(new Bd)}render(){return Y`
|
|
3193
3196
|
<brz-heading size="xl"><slot></slot></brz-heading>
|
|
3194
3197
|
${this._noClose?void 0:Y`
|
|
3195
3198
|
<brz-button
|
|
@@ -3218,7 +3221,7 @@ ${this.value}</textarea
|
|
|
3218
3221
|
brz-button.close {
|
|
3219
3222
|
margin-right: calc(0px - var(--brz-spacing-2));
|
|
3220
3223
|
}
|
|
3221
|
-
`;exports.ModalHeader=q0([J(
|
|
3224
|
+
`;exports.ModalHeader=q0([J(Np)],exports.ModalHeader);exports.ModalBody=class extends Fe{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 Y`<slot></slot>`}};exports.ModalBody.styles=ce`
|
|
3222
3225
|
:host {
|
|
3223
3226
|
display: block;
|
|
3224
3227
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
@@ -3228,7 +3231,7 @@ ${this.value}</textarea
|
|
|
3228
3231
|
:host([scrollable]) {
|
|
3229
3232
|
border-bottom: 1px solid var(--brz-color-neutral-300);
|
|
3230
3233
|
}
|
|
3231
|
-
`;q0([H({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=q0([J(
|
|
3234
|
+
`;q0([H({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=q0([J(Rp)],exports.ModalBody);exports.ModalFooter=class extends Fe{render(){return Y`
|
|
3232
3235
|
<brz-split-row vertical-align="middle">
|
|
3233
3236
|
<slot slot="left" name="left"></slot>
|
|
3234
3237
|
<slot slot="right" name="right"></slot>
|
|
@@ -3237,7 +3240,7 @@ ${this.value}</textarea
|
|
|
3237
3240
|
:host {
|
|
3238
3241
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
3239
3242
|
}
|
|
3240
|
-
`;exports.ModalFooter=q0([J(
|
|
3243
|
+
`;exports.ModalFooter=q0([J(Hp)],exports.ModalFooter);var k8=Object.defineProperty,O8=Object.getOwnPropertyDescriptor,Bp=(s,o,l,d)=>{for(var c=d>1?void 0:d?O8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&k8(o,l,c),c};const Fp=Se("confirmation-dialog");class Wp extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Up extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Fe{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Wp)}handleConfirm(){this.dispatchEvent(new Up)}render(){return Y`<brz-modal size="small" ?open=${this.open} noClose>
|
|
3241
3244
|
<brz-modal-body>
|
|
3242
3245
|
<slot name="body"></slot>
|
|
3243
3246
|
</brz-modal-body>
|
|
@@ -3251,12 +3254,12 @@ ${this.value}</textarea
|
|
|
3251
3254
|
</brz-button>
|
|
3252
3255
|
</brz-button-group>
|
|
3253
3256
|
</brz-modal-footer>
|
|
3254
|
-
</brz-modal>`}};
|
|
3257
|
+
</brz-modal>`}};Bp([H({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Bp([J(Fp)],exports.ConfirmationDialog);var T8=Object.defineProperty,P8=Object.getOwnPropertyDescriptor,Zp=(s,o,l,d)=>{for(var c=d>1?void 0:d?P8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&T8(o,l,c),c};const Gp=Se("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(s){if(super.updated(s),s.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;s.has("trailingIcon")&&s.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return Y`
|
|
3255
3258
|
<brz-dropdown-menu .size=${this.menuSize}>
|
|
3256
3259
|
${super.render()}
|
|
3257
3260
|
<slot name="options" slot="options"></slot>
|
|
3258
3261
|
</brz-dropdown-menu>
|
|
3259
|
-
`}};
|
|
3262
|
+
`}};Zp([H({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=Zp([J(Gp)],exports.DropdownButton);var E8=Object.defineProperty,I8=Object.getOwnPropertyDescriptor,Fd=(s,o,l,d)=>{for(var c=d>1?void 0:d?I8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&E8(o,l,c),c};const Vp=Se("heading");exports.Heading=class extends Fe{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 o;const s=`size-${(o=this.size)!=null?o:"base"}`;switch(this.getLevel()){case 1:return Y`<h1 class=${s}><slot></slot></h1>`;case 2:return Y`<h2 class=${s}><slot></slot></h2>`;case 3:return Y`<h3 class=${s}><slot></slot></h3>`;case 4:return Y`<h4 class=${s}><slot></slot></h4>`;case 5:return Y`<h5 class=${s}><slot></slot></h5>`;case 6:return Y`<h6 class=${s}><slot></slot></h6>`}}};exports.Heading.styles=ce`
|
|
3260
3263
|
h1,
|
|
3261
3264
|
h2,
|
|
3262
3265
|
h3,
|
|
@@ -3301,7 +3304,7 @@ ${this.value}</textarea
|
|
|
3301
3304
|
:host {
|
|
3302
3305
|
display: block;
|
|
3303
3306
|
}
|
|
3304
|
-
`;
|
|
3307
|
+
`;Fd([H({type:String})],exports.Heading.prototype,"size",2);Fd([H({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=Fd([J(Vp)],exports.Heading);var A8=Object.defineProperty,D8=Object.getOwnPropertyDescriptor,Ku=(s,o,l,d)=>{for(var c=d>1?void 0:d?D8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&A8(o,l,c),c};const qp=Se("side-navigation-item"),$8=ce`
|
|
3305
3308
|
:host li {
|
|
3306
3309
|
list-style: none;
|
|
3307
3310
|
padding: var(--brz-spacing-2) 0;
|
|
@@ -3337,7 +3340,7 @@ ${this.value}</textarea
|
|
|
3337
3340
|
<slot></slot>
|
|
3338
3341
|
</a>
|
|
3339
3342
|
</li>
|
|
3340
|
-
`}};exports.SideNavigationItem.styles=[
|
|
3343
|
+
`}};exports.SideNavigationItem.styles=[$8];Ku([H({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Ku([H({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Ku([H({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Ku([H({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Ku([J(qp)],exports.SideNavigationItem);var N8=Object.defineProperty,R8=Object.getOwnPropertyDescriptor,H8=(s,o,l,d)=>{for(var c=d>1?void 0:d?R8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&N8(o,l,c),c};const Kp=Se("side-navigation"),B8=ce`
|
|
3341
3344
|
:host {
|
|
3342
3345
|
display: block;
|
|
3343
3346
|
height: 100%;
|
|
@@ -3351,7 +3354,7 @@ ${this.value}</textarea
|
|
|
3351
3354
|
}
|
|
3352
3355
|
`;exports.SideNavigation=class extends Fe{render(){return Y`<ul>
|
|
3353
3356
|
<slot></slot>
|
|
3354
|
-
</ul>`}};exports.SideNavigation.styles=[
|
|
3357
|
+
</ul>`}};exports.SideNavigation.styles=[B8];exports.SideNavigation=H8([J(Kp)],exports.SideNavigation);var F8=Object.defineProperty,W8=Object.getOwnPropertyDescriptor,jp=(s,o,l,d)=>{for(var c=d>1?void 0:d?W8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&F8(o,l,c),c};const Yp=Se("record-row"),Xp=Se("record-row-label");exports.RecordRow=class extends Fe{render(){return Y`
|
|
3355
3358
|
<div id="row">
|
|
3356
3359
|
<brz-record-row-label><slot name="label"></slot></brz-record-row-label>
|
|
3357
3360
|
<div id="value"><slot></slot></div>
|
|
@@ -3376,18 +3379,18 @@ ${this.value}</textarea
|
|
|
3376
3379
|
/* Bit of a hack, but means lozenges nicely align with the label */
|
|
3377
3380
|
margin-top: -2px;
|
|
3378
3381
|
}
|
|
3379
|
-
`;exports.RecordRow=
|
|
3382
|
+
`;exports.RecordRow=jp([J(Yp)],exports.RecordRow);exports.RecordRowLabel=class extends Fe{render(){return Y`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=ce`
|
|
3380
3383
|
#label {
|
|
3381
3384
|
width: 10rem;
|
|
3382
3385
|
color: var(--brz-color-label-text);
|
|
3383
3386
|
font-size: var(--brz-font-size);
|
|
3384
3387
|
line-height: var(--brz-line-height);
|
|
3385
3388
|
}
|
|
3386
|
-
`;exports.RecordRowLabel=
|
|
3389
|
+
`;exports.RecordRowLabel=jp([J(Xp)],exports.RecordRowLabel);var U8=Object.defineProperty,Z8=Object.getOwnPropertyDescriptor,Wd=(s,o,l,d)=>{for(var c=d>1?void 0:d?Z8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&U8(o,l,c),c};const Qp=Se("tab-panel");exports.TabPanel=class extends Fe{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return Y`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=ce`
|
|
3387
3390
|
:host(:not([shown])) #panel {
|
|
3388
3391
|
display: none;
|
|
3389
3392
|
}
|
|
3390
|
-
`;
|
|
3393
|
+
`;Wd([H({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);Wd([H({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=Wd([J(Qp)],exports.TabPanel);class K0 extends CustomEvent{constructor(o){super("brz-tab-selected",{bubbles:!0,detail:{name:o}})}}class G8 extends CustomEvent{constructor(o){super("brz-tab-deselected",{bubbles:!0,detail:{name:o}})}}var V8=Object.defineProperty,q8=Object.getOwnPropertyDescriptor,j0=(s,o,l,d)=>{for(var c=d>1?void 0:d?q8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&V8(o,l,c),c};const Jp=Se("tab");exports.Tab=class extends Fe{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(s){const o=s.get("selected");o===!1&&this.selected===!0?this.dispatchEvent(new K0(this.name)):o===!0&&this.selected===!1&&this.dispatchEvent(new G8(this.name)),super.updated(s)}render(){return this.link?Y`<a href=${this.link} id="tab"><slot></slot></a>`:Y`<div
|
|
3391
3394
|
tabindex="0"
|
|
3392
3395
|
role="tab"
|
|
3393
3396
|
aria-selected=${this.selected}
|
|
@@ -3415,7 +3418,7 @@ ${this.value}</textarea
|
|
|
3415
3418
|
#tab:hover {
|
|
3416
3419
|
color: var(--brz-color-neutral-850);
|
|
3417
3420
|
}
|
|
3418
|
-
`;j0([H({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);j0([H({type:String,reflect:!0})],exports.Tab.prototype,"name",2);j0([H({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=j0([J(
|
|
3421
|
+
`;j0([H({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);j0([H({type:String,reflect:!0})],exports.Tab.prototype,"name",2);j0([H({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=j0([J(Jp)],exports.Tab);var K8=Object.defineProperty,j8=Object.getOwnPropertyDescriptor,Y0=(s,o,l,d)=>{for(var c=d>1?void 0:d?j8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&K8(o,l,c),c};const e2=Se("tab-bar");exports.TabBar=class extends Fe{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,d,c;const s=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!s){this.tabs=[];return}let o=Array.from(s.assignedElements());for(;o[0]instanceof HTMLSlotElement;)o=Array.from(o[0].assignedElements());this.tabs=o.filter(g=>g instanceof exports.Tab&&!!g.name),this.controlled||(this.selected||(this.selected=(c=(d=this.tabs.find(g=>g.selected))==null?void 0:d.name)!=null?c:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(s){if(s.target instanceof exports.Tab){const{name:o}=s.target;o&&(this.controlled||(this.selected=o),this.dispatchEvent(new K0(o)))}}updated(s){s.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(s=>{const o=s.name===this.selected;o!==s.selected&&(s.selected=o)})}render(){return Y`
|
|
3419
3422
|
<brz-row id="tabbar" @click=${this.handleClick}>
|
|
3420
3423
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
3421
3424
|
</brz-row>
|
|
@@ -3437,7 +3440,7 @@ ${this.value}</textarea
|
|
|
3437
3440
|
top: 0;
|
|
3438
3441
|
z-index: 1;
|
|
3439
3442
|
}
|
|
3440
|
-
`;Y0([H({type:Boolean})],exports.TabBar.prototype,"controlled",2);Y0([H({type:String})],exports.TabBar.prototype,"selected",2);Y0([Xe()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Y0([J(
|
|
3443
|
+
`;Y0([H({type:Boolean})],exports.TabBar.prototype,"controlled",2);Y0([H({type:String})],exports.TabBar.prototype,"selected",2);Y0([Xe()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Y0([J(e2)],exports.TabBar);var Y8=Object.defineProperty,X8=Object.getOwnPropertyDescriptor,Ud=(s,o,l,d)=>{for(var c=d>1?void 0:d?X8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Y8(o,l,c),c};const t2=Se("tabs");exports.Tabs=class extends Fe{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var o,l,d;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("slot:not([name])");if(this.panels=[],!!s){for(const c of s.assignedElements())if(c instanceof exports.TabPanel)this.panels.push(c);else{const g=c.querySelectorAll("brz-tab-panel"),m=c.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(g.length?g:m))}this.selected||(this.selected=(d=(l=this.panels.find(c=>c.shown))==null?void 0:l.name)!=null?d:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(s=>{const o=s.name===this.selected;o!==s.shown&&(s.shown=o)})}handleTabSelected(s){this.selected=s.detail.name,this.updatePanelVisibility(),s.stopPropagation(),this.dispatchEvent(new K0(this.selected))}render(){return Y`
|
|
3441
3444
|
<brz-tab-bar
|
|
3442
3445
|
controlled
|
|
3443
3446
|
selected=${this.selected}
|
|
@@ -3450,7 +3453,7 @@ ${this.value}</textarea
|
|
|
3450
3453
|
:host {
|
|
3451
3454
|
background-color: var(--brz-color-white);
|
|
3452
3455
|
}
|
|
3453
|
-
`;
|
|
3456
|
+
`;Ud([H({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Ud([Xe()],exports.Tabs.prototype,"panels",2);exports.Tabs=Ud([J(t2)],exports.Tabs);var Q8=Object.defineProperty,J8=Object.getOwnPropertyDescriptor,Ps=(s,o,l,d)=>{for(var c=d>1?void 0:d?J8(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Q8(o,l,c),c};const r2=Se("badge");var n2=(s=>(s[s.subtle=0]="subtle",s[s.primary=1]="primary",s[s.important=2]="important",s))(n2||{});exports.Badge=class extends Fe{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(s){return/^-?\d+$/.test(s)}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 Y`<span
|
|
3454
3457
|
class=${ji({"extra-wide":this.content.length>1})}
|
|
3455
3458
|
>${this.generateContent()}</span
|
|
3456
3459
|
>`}};exports.Badge.styles=ce`
|
|
@@ -3486,7 +3489,7 @@ ${this.value}</textarea
|
|
|
3486
3489
|
.extra-wide {
|
|
3487
3490
|
padding: 0 6px;
|
|
3488
3491
|
}
|
|
3489
|
-
`;Ps([H({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);Ps([H({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);Ps([H({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);Ps([Xe()],exports.Badge.prototype,"deafultCharacterLimit",2);Ps([Xe()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=Ps([J(
|
|
3492
|
+
`;Ps([H({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);Ps([H({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);Ps([H({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);Ps([Xe()],exports.Badge.prototype,"deafultCharacterLimit",2);Ps([Xe()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=Ps([J(r2)],exports.Badge);const{range:X0}=Ov;function eb(s,o,l){return[1,null,...X0(s-o,s+o+1),null,l]}function tb(s,o){return[1,null,...X0(s-(o-3),s+1)]}function rb(s,o){return[...X0(1,o-1),null,s]}function nb(s,o,l){return s>1+1+o*2&&s<l-1-o*2}function ib(s,o=1,l=1){const d=5+l*2;if(s<=d)return X0(1,s+1);if(nb(o,l,s))return eb(o,l,s);if(o+(d-3)>=s)return tb(s,d);if(o<d)return rb(s,d)}var ob=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,to=(s,o,l,d)=>{for(var c=d>1?void 0:d?ab(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&ob(o,l,c),c};const Zd=Se("basic-pagination"),Gd=Se("pagination");class lb extends CustomEvent{constructor(o){super(`${Zd}-${o}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Fe{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(s){this.dispatchEvent(new lb(s))}handlePageChange(s){this.emit(`${s}-page`)}render(){return Y`
|
|
3490
3493
|
<brz-button-group role="navigation" aria-label="Pagination Navigation">
|
|
3491
3494
|
<brz-button
|
|
3492
3495
|
compact
|
|
@@ -3512,7 +3515,7 @@ ${this.value}</textarea
|
|
|
3512
3515
|
brz-button-group {
|
|
3513
3516
|
--brz-spacing-2: var(--brz-spacing-1);
|
|
3514
3517
|
}
|
|
3515
|
-
`;
|
|
3518
|
+
`;to([H({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);to([H({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=to([J(Zd)],exports.BasicPagination);class sb extends CustomEvent{constructor(o,l){super(`${Gd}-${o}`,{bubbles:!0,composed:!0,detail:{page:l}})}}exports.Pagination=class extends Fe{constructor(){super(...arguments),this.currentPageSiblings=1}emit(s,o){this.dispatchEvent(new sb(s,o))}onPageChange(s){this.emit("page-change",s)}isCurrentPage(s){return s===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 s;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=ib(this.totalPages,this.currentPage,this.currentPageSiblings),Y`
|
|
3516
3519
|
<brz-row role="navigation" aria-label="Pagination Navigation">
|
|
3517
3520
|
<button
|
|
3518
3521
|
role="link"
|
|
@@ -3613,7 +3616,7 @@ ${this.value}</textarea
|
|
|
3613
3616
|
.page {
|
|
3614
3617
|
padding: 0 var(--brz-spacing-2);
|
|
3615
3618
|
}
|
|
3616
|
-
`;
|
|
3619
|
+
`;to([H({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);to([H({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);to([H({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);to([Xe()],exports.Pagination.prototype,"currentPageSiblings",2);to([Xe()],exports.Pagination.prototype,"totalPages",2);to([Xe()],exports.Pagination.prototype,"pages",2);exports.Pagination=to([J(Gd)],exports.Pagination);var ub=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,ju=(s,o,l,d)=>{for(var c=d>1?void 0:d?cb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&ub(o,l,c),c};const db=["info","success","warning","error"],i2=Se("alert");class fb extends CustomEvent{constructor(o){super(o,{bubbles:!0,composed:!0})}}exports.Alert=class extends Fe{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 fb("brz-alert-cleared"))}render(){return this.cleared?null:Y`<div class="alert-container">
|
|
3617
3620
|
<brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
|
|
3618
3621
|
<div role="alert">
|
|
3619
3622
|
${this.title?Y`<div><brz-heading>${this.title}</brz-heading></div>`:Y``}
|
|
@@ -3689,7 +3692,7 @@ ${this.value}</textarea
|
|
|
3689
3692
|
padding-top: 1px;
|
|
3690
3693
|
}
|
|
3691
3694
|
|
|
3692
|
-
${
|
|
3695
|
+
${Lh(".clear-button",ce`
|
|
3693
3696
|
align-self: start;
|
|
3694
3697
|
margin-left: auto;
|
|
3695
3698
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
@@ -3698,7 +3701,7 @@ ${this.value}</textarea
|
|
|
3698
3701
|
.clear-button brz-icon {
|
|
3699
3702
|
vertical-align: middle;
|
|
3700
3703
|
}
|
|
3701
|
-
`;ju([H({type:String,reflect:!0})],exports.Alert.prototype,"type",2);ju([H({type:Boolean})],exports.Alert.prototype,"clearable",2);ju([H()],exports.Alert.prototype,"title",2);ju([Xe()],exports.Alert.prototype,"cleared",2);exports.Alert=ju([J(
|
|
3704
|
+
`;ju([H({type:String,reflect:!0})],exports.Alert.prototype,"type",2);ju([H({type:Boolean})],exports.Alert.prototype,"clearable",2);ju([H()],exports.Alert.prototype,"title",2);ju([Xe()],exports.Alert.prototype,"cleared",2);exports.Alert=ju([J(i2)],exports.Alert);const Vd={resources:j`
|
|
3702
3705
|
<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"/>
|
|
3703
3706
|
<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"/>
|
|
3704
3707
|
<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"/>
|
|
@@ -3792,7 +3795,7 @@ ${this.value}</textarea
|
|
|
3792
3795
|
<circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
|
|
3793
3796
|
<circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
|
|
3794
3797
|
<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"/>
|
|
3795
|
-
<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"/>`},
|
|
3798
|
+
<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"/>`},hb=Object.keys(Vd);var pb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,Q0=(s,o,l,d)=>{for(var c=d>1?void 0:d?gb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&pb(o,l,c),c};const o2=Se("illustration");exports.Illustration=class extends Fe{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const s=Vd[this.illustration],o=Math.floor(Math.random()*100),l=`${this.illustration}Title${o}`,d=`${this.illustration}Desc${o}`;if(!s){console.warn(`Can't find illustration ${this.illustration}`);return}return Y`<svg
|
|
3796
3799
|
aria-hidden=${!this.altTitle.length||!this.altDescription.length}
|
|
3797
3800
|
role="img"
|
|
3798
3801
|
aria-labelledby=${`${l} ${d}`}
|
|
@@ -3808,13 +3811,13 @@ ${this.value}</textarea
|
|
|
3808
3811
|
/* to get rid of extra height caused by white space */
|
|
3809
3812
|
line-height: 0;
|
|
3810
3813
|
}
|
|
3811
|
-
`;Q0([H({type:String})],exports.Illustration.prototype,"illustration",2);Q0([H({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Q0([H({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Q0([J(
|
|
3814
|
+
`;Q0([H({type:String})],exports.Illustration.prototype,"illustration",2);Q0([H({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Q0([H({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Q0([J(o2)],exports.Illustration);var vb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,mb=(s,o,l,d)=>{for(var c=d>1?void 0:d?bb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&vb(o,l,c),c};const a2=Se("header");exports.Header=class extends Fe{render(){return Y`<slot></slot>`}};exports.Header.styles=ce`
|
|
3812
3815
|
:host {
|
|
3813
3816
|
display: block;
|
|
3814
3817
|
padding: var(--brz-spacing-5);
|
|
3815
3818
|
margin-bottom: var(--brz-spacing-4);
|
|
3816
3819
|
}
|
|
3817
|
-
`;exports.Header=
|
|
3820
|
+
`;exports.Header=mb([J(a2)],exports.Header);var yb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,wb=(s,o,l,d)=>{for(var c=d>1?void 0:d?Cb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&yb(o,l,c),c};const l2=Se("header-footer-page");exports.HeaderFooterPage=class extends Fe{render(){return Y`
|
|
3818
3821
|
<div id="container">
|
|
3819
3822
|
<div id="header"><slot name="header"></slot></div>
|
|
3820
3823
|
<div id="body"><slot></slot></div>
|
|
@@ -3838,7 +3841,7 @@ ${this.value}</textarea
|
|
|
3838
3841
|
flex: 1 1;
|
|
3839
3842
|
overflow-y: auto;
|
|
3840
3843
|
}
|
|
3841
|
-
`;exports.HeaderFooterPage=
|
|
3844
|
+
`;exports.HeaderFooterPage=wb([J(l2)],exports.HeaderFooterPage);var xb=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,Lb=(s,o,l,d)=>{for(var c=d>1?void 0:d?zb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&xb(o,l,c),c};const s2=Se("responsive-columns");exports.ResponsiveColumns=class extends Fe{render(){return Y`<slot></slot>`}};exports.ResponsiveColumns.styles=ce`
|
|
3842
3845
|
:host {
|
|
3843
3846
|
display: flex;
|
|
3844
3847
|
flex-direction: row;
|
|
@@ -3870,7 +3873,7 @@ ${this.value}</textarea
|
|
|
3870
3873
|
margin-bottom: var(--brz-padding, var(--brz-spacing-8));
|
|
3871
3874
|
}
|
|
3872
3875
|
}
|
|
3873
|
-
`;exports.ResponsiveColumns=
|
|
3876
|
+
`;exports.ResponsiveColumns=Lb([J(s2)],exports.ResponsiveColumns);var _b=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,Mb=(s,o,l,d)=>{for(var c=d>1?void 0:d?Sb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&_b(o,l,c),c};const u2=Se("footer");exports.Footer=class extends Fe{render(){return Y`<div class="container">
|
|
3874
3877
|
<slot name="left"></slot>
|
|
3875
3878
|
<slot name="middle"></slot>
|
|
3876
3879
|
<slot name="right"></slot>
|
|
@@ -3881,7 +3884,7 @@ ${this.value}</textarea
|
|
|
3881
3884
|
justify-content: space-between;
|
|
3882
3885
|
padding: var(--brz-spacing-3) var(--brz-spacing-4);
|
|
3883
3886
|
}
|
|
3884
|
-
`;exports.Footer=
|
|
3887
|
+
`;exports.Footer=Mb([J(u2)],exports.Footer);var kb=Object.defineProperty,Ob=Object.getOwnPropertyDescriptor,J0=(s,o,l,d)=>{for(var c=d>1?void 0:d?Ob(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&kb(o,l,c),c};const c2=Se("page-header");exports.PageHeader=class extends Fe{constructor(){super(...arguments),this.hasTitle=!1}updated(s){var o;super.updated(s),this.hasTitle=!!(((o=this.slottedTitle)==null?void 0:o.length)||this.pageTitle)}render(){return Y`
|
|
3885
3888
|
<header>
|
|
3886
3889
|
<slot name="decorator"></slot>
|
|
3887
3890
|
|
|
@@ -3941,7 +3944,7 @@ ${this.value}</textarea
|
|
|
3941
3944
|
brz-heading.hidden {
|
|
3942
3945
|
display: none;
|
|
3943
3946
|
}
|
|
3944
|
-
`;J0([H({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);J0([Xe()],exports.PageHeader.prototype,"hasTitle",2);J0([
|
|
3947
|
+
`;J0([H({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);J0([Xe()],exports.PageHeader.prototype,"hasTitle",2);J0([Ld({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=J0([J(c2)],exports.PageHeader);var Tb=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,e1=(s,o,l,d)=>{for(var c=d>1?void 0:d?Pb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Tb(o,l,c),c};const d2=Se("grid"),Eb=Gu.map(s=>ce`
|
|
3945
3948
|
:host([spacing='${s}']),
|
|
3946
3949
|
:host([col-spacing='${s}']) {
|
|
3947
3950
|
--brz-grid-column-gap: var(--brz-spacing-${s});
|
|
@@ -3950,7 +3953,7 @@ ${this.value}</textarea
|
|
|
3950
3953
|
:host([row-spacing='${s}']) {
|
|
3951
3954
|
--brz-grid-row-gap: var(--brz-spacing-${s});
|
|
3952
3955
|
}
|
|
3953
|
-
`);exports.Grid=class extends Ss{render(){return Y`<slot></slot>`}};var
|
|
3956
|
+
`);exports.Grid=class extends Ss{render(){return Y`<slot></slot>`}};var lh;exports.Grid.styles=[(lh=Ss.styles)!=null?lh:[],ce`
|
|
3954
3957
|
:host {
|
|
3955
3958
|
--brz-grid-columns: 12;
|
|
3956
3959
|
--brz-grid-column-gap: var(--brz-spacing-5);
|
|
@@ -3963,34 +3966,34 @@ ${this.value}</textarea
|
|
|
3963
3966
|
column-gap: var(--brz-grid-column-gap);
|
|
3964
3967
|
row-gap: var(--brz-grid-row-gap);
|
|
3965
3968
|
}
|
|
3966
|
-
`,...
|
|
3969
|
+
`,...Eb];e1([H({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);e1([H({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);e1([H({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=e1([J(d2)],exports.Grid);const I0={lg:960,md:640},Ib=ce`
|
|
3967
3970
|
--brz-breakpoint-lg: ${I0.lg}px;
|
|
3968
3971
|
--brz-breakpoint-md: ${I0.md}px;
|
|
3969
|
-
`,
|
|
3972
|
+
`,fd=s=>(o,...l)=>ce`
|
|
3970
3973
|
@media (max-width: ${I0[s]}px) {
|
|
3971
3974
|
${ce(o,...l)}
|
|
3972
3975
|
}
|
|
3973
|
-
`,
|
|
3976
|
+
`,oh=s=>(o,...l)=>ce`
|
|
3974
3977
|
@media (min-width: ${I0[s]}px) {
|
|
3975
3978
|
${ce(o,...l)}
|
|
3976
3979
|
}
|
|
3977
|
-
`,A0={breakpointUp:
|
|
3980
|
+
`,A0={breakpointUp:oh,breakpointDown:fd,sm:fd("md"),md:fd("lg"),lg:oh("lg")};var Ab=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,t1=(s,o,l,d)=>{for(var c=d>1?void 0:d?Db(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Ab(o,l,c),c};const f2=Se("grid-item"),r1=[1,2,3,4,5,6,7,8,9,10,11,12],$b=r1.map(s=>ce`
|
|
3978
3981
|
:host([cols='${s}']) {
|
|
3979
3982
|
grid-column: auto / span ${s};
|
|
3980
3983
|
}
|
|
3981
|
-
`),
|
|
3984
|
+
`),Nb=r1.map(s=>ce`
|
|
3982
3985
|
${A0.md`
|
|
3983
3986
|
:host([md-cols='${s}']) {
|
|
3984
3987
|
grid-column: auto / span ${s};
|
|
3985
3988
|
}
|
|
3986
3989
|
`}
|
|
3987
|
-
`),
|
|
3990
|
+
`),Rb=r1.map(s=>ce`
|
|
3988
3991
|
${A0.sm`
|
|
3989
3992
|
:host([sm-cols='${s}']) {
|
|
3990
3993
|
grid-column: auto / span ${s};
|
|
3991
3994
|
}
|
|
3992
3995
|
`}
|
|
3993
|
-
`),
|
|
3996
|
+
`),Hb=ce`
|
|
3994
3997
|
${A0.md`
|
|
3995
3998
|
:host([cols='9']:not([md-cols])),
|
|
3996
3999
|
:host([cols='8']:not([md-cols])),
|
|
@@ -4010,7 +4013,7 @@ ${this.value}</textarea
|
|
|
4010
4013
|
:host {
|
|
4011
4014
|
grid-column: auto / span 12;
|
|
4012
4015
|
}
|
|
4013
|
-
|
|
4016
|
+
`,$b,Hb,Nb,Rb];t1([H({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);t1([H({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);t1([H({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=t1([J(f2)],exports.GridItem);const Bb=ce`
|
|
4014
4017
|
:host {
|
|
4015
4018
|
--brz-border-radius-default: 2px;
|
|
4016
4019
|
--brz-border-radius-medium: 3px;
|
|
@@ -4018,7 +4021,7 @@ ${this.value}</textarea
|
|
|
4018
4021
|
|
|
4019
4022
|
--brz-border-divider: 1px solid var(--brz-color-neutral-400);
|
|
4020
4023
|
}
|
|
4021
|
-
`,
|
|
4024
|
+
`,Fb=ce`
|
|
4022
4025
|
:host {
|
|
4023
4026
|
--brz-color-neutral-900: #1b263a;
|
|
4024
4027
|
--brz-color-neutral-850: #223049;
|
|
@@ -4208,7 +4211,7 @@ ${this.value}</textarea
|
|
|
4208
4211
|
|
|
4209
4212
|
--brz-color-text-on-color: var(--brz-color-white);
|
|
4210
4213
|
}
|
|
4211
|
-
`,
|
|
4214
|
+
`,Wb=ce`
|
|
4212
4215
|
:host {
|
|
4213
4216
|
--sp-border-radius-default: var(--brz-border-radius-default);
|
|
4214
4217
|
--sp-border-radius-medium: var(--brz-border-radius-medium)
|
|
@@ -4473,14 +4476,14 @@ ${this.value}</textarea
|
|
|
4473
4476
|
--sp-z-index-dropdown: var(--brz-z-index-dropdown);
|
|
4474
4477
|
--sp-z-index-tooltip: var(--brz-z-index-tooltip);
|
|
4475
4478
|
}
|
|
4476
|
-
`,
|
|
4479
|
+
`,Ub=ce`
|
|
4477
4480
|
:host {
|
|
4478
4481
|
// TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
|
|
4479
4482
|
--brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
|
|
4480
4483
|
--brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
|
|
4481
4484
|
--brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
|
|
4482
4485
|
}
|
|
4483
|
-
`,
|
|
4486
|
+
`,Zb=ce`
|
|
4484
4487
|
:host {
|
|
4485
4488
|
--brz-font-family-brand: Inter, sofiapro;
|
|
4486
4489
|
--brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
|
|
@@ -4523,14 +4526,14 @@ ${this.value}</textarea
|
|
|
4523
4526
|
|
|
4524
4527
|
--brz-text-block-max-width: 44rem;
|
|
4525
4528
|
}
|
|
4526
|
-
`,
|
|
4529
|
+
`,Gb=ce`
|
|
4527
4530
|
:host {
|
|
4528
4531
|
--brz-z-index-navigation: 1000;
|
|
4529
4532
|
--brz-z-index-dialog: 1100;
|
|
4530
4533
|
--brz-z-index-dropdown: 1200;
|
|
4531
4534
|
--brz-z-index-tooltip: 1300;
|
|
4532
4535
|
}
|
|
4533
|
-
`;var
|
|
4536
|
+
`;var Vb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,Kb=(s,o,l,d)=>{for(var c=d>1?void 0:d?qb(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&Vb(o,l,c),c};const h2=Se("global-styles");exports.GlobalStyles=class extends Fe{render(){return Y`<slot></slot>`}};exports.GlobalStyles.styles=[Fb,Fh,Zb,Bb,Ub,Gb,Ib,Wb,ce`
|
|
4534
4537
|
:host {
|
|
4535
4538
|
--brz-outline-color: var(--brz-color-primary-600);
|
|
4536
4539
|
--brz-outline-style: solid;
|
|
@@ -4548,7 +4551,7 @@ ${this.value}</textarea
|
|
|
4548
4551
|
font-weight: var(--brz-font-weight-normal);
|
|
4549
4552
|
color: var(--brz-color-text);
|
|
4550
4553
|
}
|
|
4551
|
-
`];exports.GlobalStyles=
|
|
4554
|
+
`];exports.GlobalStyles=Kb([J(h2)],exports.GlobalStyles);const p2=Se("card"),g2=Se("card-header"),v2=Se("card-footer"),b2=Se("card-section-header"),jb=ce`
|
|
4552
4555
|
:host {
|
|
4553
4556
|
--brz-card-background-color: var(--brz-color-white);
|
|
4554
4557
|
--brz-card-color: var(--brz-color-text);
|
|
@@ -4586,7 +4589,7 @@ ${this.value}</textarea
|
|
|
4586
4589
|
|
|
4587
4590
|
padding-bottom: calc(2 * var(--brz-card-body-balancer));
|
|
4588
4591
|
}
|
|
4589
|
-
`,
|
|
4592
|
+
`,Yb=s=>ce`
|
|
4590
4593
|
:host([padding='${s}']) {
|
|
4591
4594
|
--brz-card-padding: var(--brz-spacing-${s});
|
|
4592
4595
|
}
|
|
@@ -4594,7 +4597,7 @@ ${this.value}</textarea
|
|
|
4594
4597
|
:host([body-padding='${s}']) {
|
|
4595
4598
|
--brz-card-body-padding: var(--brz-spacing-${s});
|
|
4596
4599
|
}
|
|
4597
|
-
`,
|
|
4600
|
+
`,Xb=Gu.map(Yb),Qb=ce`
|
|
4598
4601
|
:host {
|
|
4599
4602
|
--brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
|
|
4600
4603
|
--brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -4640,7 +4643,7 @@ ${this.value}</textarea
|
|
|
4640
4643
|
align-self: flex-start;
|
|
4641
4644
|
flex-shrink: 0;
|
|
4642
4645
|
}
|
|
4643
|
-
`,
|
|
4646
|
+
`,Jb=ce`
|
|
4644
4647
|
:host {
|
|
4645
4648
|
--brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
|
|
4646
4649
|
--brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -4668,7 +4671,7 @@ ${this.value}</textarea
|
|
|
4668
4671
|
align-self: flex-start;
|
|
4669
4672
|
flex-shrink: 0;
|
|
4670
4673
|
}
|
|
4671
|
-
`;var
|
|
4674
|
+
`;var em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,rm=(s,o,l,d)=>{for(var c=d>1?void 0:d?tm(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&em(o,l,c),c};exports.CardHeader=class extends Fe{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return Y`
|
|
4672
4675
|
<div class="title">
|
|
4673
4676
|
<slot></slot>
|
|
4674
4677
|
</div>
|
|
@@ -4676,9 +4679,9 @@ ${this.value}</textarea
|
|
|
4676
4679
|
<div class="aside">
|
|
4677
4680
|
<slot name="aside"></slot>
|
|
4678
4681
|
</div>
|
|
4679
|
-
`}render(){return Y` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[
|
|
4682
|
+
`}render(){return Y` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[Qb];exports.CardHeader=rm([Wu(g2)],exports.CardHeader);var nm=Object.defineProperty,im=Object.getOwnPropertyDescriptor,om=(s,o,l,d)=>{for(var c=d>1?void 0:d?im(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&nm(o,l,c),c};exports.CardSectionHeader=class extends exports.CardHeader{connectedCallback(){super.connectedCallback(),this.slot=""}render(){return Y`
|
|
4680
4683
|
<div class="card-section-header">${this.contentTemplate}</div>
|
|
4681
|
-
`}};exports.CardSectionHeader=
|
|
4684
|
+
`}};exports.CardSectionHeader=om([Wu(b2)],exports.CardSectionHeader);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,sm=(s,o,l,d)=>{for(var c=d>1?void 0:d?lm(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&am(o,l,c),c};exports.CardFooter=class extends Fe{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return Y`
|
|
4682
4685
|
<footer class="card-footer">
|
|
4683
4686
|
<div>
|
|
4684
4687
|
<slot></slot>
|
|
@@ -4688,7 +4691,7 @@ ${this.value}</textarea
|
|
|
4688
4691
|
<slot name="aside"></slot>
|
|
4689
4692
|
</div>
|
|
4690
4693
|
</footer>
|
|
4691
|
-
`}};exports.CardFooter.styles=[
|
|
4694
|
+
`}};exports.CardFooter.styles=[Jb];exports.CardFooter=sm([Wu(v2)],exports.CardFooter);var um=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,Yu=(s,o,l,d)=>{for(var c=d>1?void 0:d?cm(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&um(o,l,c),c};exports.Card=class extends Ss{constructor(){super(...arguments),this.hasHeader=!1}updated(s){super.updated(s),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return Y`
|
|
4692
4695
|
<article class="card">
|
|
4693
4696
|
<slot name="header"></slot>
|
|
4694
4697
|
|
|
@@ -4700,7 +4703,7 @@ ${this.value}</textarea
|
|
|
4700
4703
|
|
|
4701
4704
|
<slot name="footer"></slot>
|
|
4702
4705
|
</article>
|
|
4703
|
-
`}};var
|
|
4706
|
+
`}};var sh;exports.Card.styles=[(sh=Ss.styles)!=null?sh:[],jb,Xb];Yu([H({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Yu([H({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Yu([Xe()],exports.Card.prototype,"hasHeader",2);Yu([$0({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Yu([Wu(p2)],exports.Card);var dm=Object.defineProperty,fm=Object.getOwnPropertyDescriptor,qd=(s,o,l,d)=>{for(var c=d>1?void 0:d?fm(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&dm(o,l,c),c};const m2=Se("paper");exports.Paper=class extends Fe{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return Y` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ce`
|
|
4704
4707
|
:host {
|
|
4705
4708
|
display: block;
|
|
4706
4709
|
position: relative;
|
|
@@ -4724,4 +4727,4 @@ ${this.value}</textarea
|
|
|
4724
4727
|
:host([has-border]) .container {
|
|
4725
4728
|
border: 1px solid var(--brz-color-neutral-300);
|
|
4726
4729
|
}
|
|
4727
|
-
`;Kd([H({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Kd([H({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Kd([J(C2)],exports.Paper);var gm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,Ae=(s,o,l,d)=>{for(var c=d>1?void 0:d?vm(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&gm(o,l,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Ae([J("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Ae([J("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Ae([J("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Ae([J("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Ae([J("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Ae([J("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Ae([J("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Ae([J("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Ae([J("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Ae([J("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Ae([J("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Ae([J("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Ae([J("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Ae([J("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Ae([J("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Ae([J("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Ae([J("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Ae([J("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Ae([J("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Ae([J("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Ae([J("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Ae([J("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Ae([J("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Ae([J("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Ae([J("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Ae([J("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Ae([J("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Ae([J("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Ae([J("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Ae([J("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Ae([J("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Ae([J("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Ae([J("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Ae([J("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Ae([J("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Ae([J("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Ae([J("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Ae([J("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Ae([J("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Ae([J("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Ae([J("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Ae([J("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Ae([J("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Ae([J("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Ae([J("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Ae([J("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Ae([J("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Ae([J("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends O0{};exports.LegacyInputGuide=Ae([J("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Ae([J("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Ae([J("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Ae([J("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Ae([J("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Ae([J("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Ae([J("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Ae([J("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Ae([J("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Ae([J("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Ae([J("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Ae([J("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Ae([J("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=Rp;exports.ALERT=a2;exports.AVATAR=Bh;exports.AVATAR_GROUP=Fh;exports.AvatarSize=k0;exports.AvatarTheme=Wh;exports.BADGE=i2;exports.BASIC_PAGINATION=Gd;exports.BUTTON=Hd;exports.BUTTON_GROUP=Qh;exports.BadgeTheme=o2;exports.CARD=v2;exports.CARD_FOOTER=m2;exports.CARD_HEADER=b2;exports.CARD_SECTION_HEADER=y2;exports.COLUMN=jh;exports.COMBO_BOX=Ap;exports.COMBO_BOX_OPTION=Dp;exports.CONFIRMATION_DIALOG=Up;exports.ConfirmationDialogCancel=Zp;exports.ConfirmationDialogConfirm=Gp;exports.DROPDOWN_BUTTON=qp;exports.DROPDOWN_MENU=Ep;exports.DeleteLozengeEvent=gp;exports.FADE_IN_OUT=Lh;exports.FOOTER=d2;exports.GLOBAL_STYLES=g2;exports.GRID=h2;exports.GRID_ITEM=p2;exports.HEADER=s2;exports.HEADER_FOOTER_PAGE=u2;exports.HEADING=Kp;exports.ICON=Gh;exports.ILLUSTRATION=l2;exports.INPUT_CHECKBOX=Jh;exports.INPUT_CODE=cp;exports.INPUT_ERROR=ep;exports.INPUT_LABEL=rp;exports.INPUT_MULTISELECT=vp;exports.INPUT_NUMBER=op;exports.INPUT_RADIO_GROUP=sp;exports.INPUT_RADIO_OPTION=up;exports.INPUT_SELECT=hp;exports.INPUT_TEXT=np;exports.INPUT_TEXTAREA=ip;exports.INPUT_TIME=wp;exports.InputBase=Xi;exports.InputSelectBase=Ur;exports.InputSelectQueryChangeEvent=fp;exports.LABELED_INPUT=tp;exports.LINK=Vh;exports.LINK_BUTTON=qh;exports.LOADING_SPINNER=Xh;exports.LOZENGE=pp;exports.MENU=kp;exports.MENU_ITEM=E0;exports.MODAL=$p;exports.MODAL_BODY=Bp;exports.MODAL_FOOTER=Fp;exports.MODAL_HEADER=Hp;exports.MenuBlurEvent=Tp;exports.MenuItemSelectEvent=Mp;exports.MenuSelectEvent=Pp;exports.ModalCloseEvent=Fd;exports.PAGE_HEADER=f2;exports.PAGINATION=Vd;exports.PAPER=C2;exports.POPOVER=Id;exports.POPOVER_LISTENABLE_EVENT_TYPES=M0;exports.POPOVER_ROLES=Ad;exports.POPOVER_TRIGGERS=Nh;exports.PURE_POPOVER=$h;exports.RECORD_ROW=Qp;exports.RECORD_ROW_LABEL=Jp;exports.RESPONSIVE_COLUMNS=c2;exports.ROW=Kh;exports.SEARCH_MESSAGE_ID=Bu;exports.SELECT_ALL_ID=pi;exports.SIDE_NAVIGATION=Yp;exports.SIDE_NAVIGATION_ITEM=jp;exports.SPACING_BASE=Dd;exports.SPLIT_ROW=Np;exports.TAB=t2;exports.TABS=n2;exports.TAB_BAR=r2;exports.TAB_PANEL=e2;exports.TIME_FORMAT=xp;exports.TIME_REGEX_12H=_p;exports.TIME_REGEX_24H=Lp;exports.TIME_REGEX_LOOSE=zp;exports.TOOLTIP=Rh;exports.TabSelectedEvent=K0;exports.TooltipTheme=Hh;exports.VIRTUAL_LIST=Bd;exports.VirtualListUpdateEvent=dp;exports.alertTypes=hb;exports.buttonTypes=Ov;exports.click=S0;exports.columnSpans=r1;exports.dropdownMenuSizes=C8;exports.focus=ul;exports.hover=md;exports.iconNames=hv;exports.icons=$d;exports.illustrationNames=gb;exports.illustrations=qd;exports.inputSizes=Gv;exports.labelPositions=jv;exports.linkButtonElementTypes=mv;exports.linkTypes=wv;exports.lozengeColors=$7;exports.lozengeSizes=R7;exports.lozengeThemes=N7;exports.menuSizes=Op;exports.modalSizes=_8;exports.radioLayouts=f7;exports.resetLinkStyle=Rd;exports.spacing=Uh;exports.spacingLevels=Gu;exports.syntaxes=C7;exports.timeSuffixes=l8;exports.transformIcon=Zh;
|
|
4730
|
+
`;qd([H({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);qd([H({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=qd([J(m2)],exports.Paper);var hm=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,Ae=(s,o,l,d)=>{for(var c=d>1?void 0:d?pm(o,l):o,g=s.length-1,m;g>=0;g--)(m=s[g])&&(c=(d?m(o,l,c):m(c))||c);return d&&c&&hm(o,l,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Ae([J("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Ae([J("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Ae([J("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Ae([J("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Ae([J("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Ae([J("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Ae([J("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Ae([J("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Ae([J("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Ae([J("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Ae([J("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Ae([J("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Ae([J("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Ae([J("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Ae([J("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Ae([J("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Ae([J("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Ae([J("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Ae([J("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Ae([J("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Ae([J("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Ae([J("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Ae([J("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Ae([J("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Ae([J("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Ae([J("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Ae([J("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Ae([J("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Ae([J("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Ae([J("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Ae([J("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Ae([J("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Ae([J("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Ae([J("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Ae([J("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Ae([J("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Ae([J("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Ae([J("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Ae([J("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Ae([J("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Ae([J("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Ae([J("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Ae([J("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Ae([J("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Ae([J("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Ae([J("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Ae([J("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Ae([J("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends O0{};exports.LegacyInputGuide=Ae([J("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Ae([J("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Ae([J("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Ae([J("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Ae([J("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Ae([J("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Ae([J("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Ae([J("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Ae([J("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Ae([J("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Ae([J("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Ae([J("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Ae([J("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=$p;exports.ALERT=i2;exports.AVATAR=Rh;exports.AVATAR_GROUP=Hh;exports.AvatarSize=k0;exports.AvatarTheme=Bh;exports.BADGE=r2;exports.BASIC_PAGINATION=Zd;exports.BUTTON=Rd;exports.BUTTON_GROUP=Yh;exports.BadgeTheme=n2;exports.CARD=p2;exports.CARD_FOOTER=v2;exports.CARD_HEADER=g2;exports.CARD_SECTION_HEADER=b2;exports.COLUMN=qh;exports.COMBO_BOX=Ep;exports.COMBO_BOX_OPTION=Ip;exports.CONFIRMATION_DIALOG=Fp;exports.ConfirmationDialogCancel=Wp;exports.ConfirmationDialogConfirm=Up;exports.DROPDOWN_BUTTON=Gp;exports.DROPDOWN_MENU=Tp;exports.DeleteLozengeEvent=hp;exports.FADE_IN_OUT=xh;exports.FOOTER=u2;exports.GLOBAL_STYLES=h2;exports.GRID=d2;exports.GRID_ITEM=f2;exports.HEADER=a2;exports.HEADER_FOOTER_PAGE=l2;exports.HEADING=Vp;exports.ICON=Uh;exports.ILLUSTRATION=o2;exports.INPUT_CHECKBOX=Xh;exports.INPUT_CODE=sp;exports.INPUT_ERROR=Qh;exports.INPUT_LABEL=ep;exports.INPUT_MULTISELECT=pp;exports.INPUT_NUMBER=np;exports.INPUT_RADIO_GROUP=ap;exports.INPUT_RADIO_OPTION=lp;exports.INPUT_SELECT=dp;exports.INPUT_TEXT=tp;exports.INPUT_TEXTAREA=rp;exports.INPUT_TIME=yp;exports.InputBase=Xi;exports.InputSelectBase=Ur;exports.InputSelectQueryChangeEvent=cp;exports.LABELED_INPUT=Jh;exports.LINK=Zh;exports.LINK_BUTTON=Gh;exports.LOADING_SPINNER=jh;exports.LOZENGE=fp;exports.MENU=Sp;exports.MENU_ITEM=E0;exports.MODAL=Ap;exports.MODAL_BODY=Rp;exports.MODAL_FOOTER=Hp;exports.MODAL_HEADER=Np;exports.MenuBlurEvent=kp;exports.MenuItemSelectEvent=_p;exports.MenuSelectEvent=Op;exports.ModalCloseEvent=Bd;exports.PAGE_HEADER=c2;exports.PAGINATION=Gd;exports.PAPER=m2;exports.POPOVER=Ed;exports.POPOVER_LISTENABLE_EVENT_TYPES=M0;exports.POPOVER_ROLES=Id;exports.POPOVER_TRIGGERS=Dh;exports.PURE_POPOVER=Ah;exports.RECORD_ROW=Yp;exports.RECORD_ROW_LABEL=Xp;exports.RESPONSIVE_COLUMNS=s2;exports.ROW=Vh;exports.SEARCH_MESSAGE_ID=Bu;exports.SELECT_ALL_ID=pi;exports.SIDE_NAVIGATION=Kp;exports.SIDE_NAVIGATION_ITEM=qp;exports.SPACING_BASE=Ad;exports.SPLIT_ROW=Dp;exports.TAB=Jp;exports.TABS=t2;exports.TAB_BAR=e2;exports.TAB_PANEL=Qp;exports.TIME_FORMAT=Cp;exports.TIME_REGEX_12H=zp;exports.TIME_REGEX_24H=xp;exports.TIME_REGEX_LOOSE=wp;exports.TOOLTIP=$h;exports.TabSelectedEvent=K0;exports.TooltipTheme=Nh;exports.VIRTUAL_LIST=Hd;exports.VirtualListUpdateEvent=up;exports.alertTypes=db;exports.buttonTypes=Mv;exports.click=S0;exports.columnSpans=r1;exports.dropdownMenuSizes=m8;exports.focus=ul;exports.hover=bd;exports.iconNames=dv;exports.icons=Dd;exports.illustrationNames=hb;exports.illustrations=Vd;exports.inputSizes=Uv;exports.labelPositions=qv;exports.linkButtonElementTypes=vv;exports.linkTypes=yv;exports.lozengeColors=A7;exports.lozengeSizes=$7;exports.lozengeThemes=D7;exports.menuSizes=Mp;exports.modalSizes=z8;exports.radioLayouts=c7;exports.resetLinkStyle=Nd;exports.spacing=Fh;exports.spacingLevels=Gu;exports.syntaxes=m7;exports.timeSuffixes=o8;exports.transformIcon=Wh;
|