@skedulo/breeze-ui 1.22.0 → 1.22.1
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/dist/custom-elements.json +42 -0
- package/dist/lib/cjs/breeze-ui.js +145 -145
- package/dist/lib/es/breeze-ui.js +1639 -1629
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/date-time/base-date-time-range.d.ts.map +1 -1
- package/dist/types/components/date-time/base-date-time-utils.d.ts +10 -0
- package/dist/types/components/date-time/base-date-time-utils.d.ts.map +1 -1
- package/dist/types/components/date-time/base-date-time.types.d.ts +1 -0
- package/dist/types/components/date-time/base-date-time.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const Ds=window,
|
|
5
|
+
*/const Ds=window,Uc=Ds.ShadowRoot&&(Ds.ShadyCSS===void 0||Ds.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,A2=Symbol(),Hd=new WeakMap;let j3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==A2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Uc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Hd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Hd.set(i,e))}return e}toString(){return this.cssText}};const G3=n=>new j3(typeof n=="string"?n:n+"",void 0,A2),q3=(n,e)=>{Uc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Ds.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Rd=Uc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return G3(i)})(n):n;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var U1;const Fs=window,
|
|
9
|
+
*/var U1;const Fs=window,Fd=Fs.trustedTypes,K3=Fd?Fd.emptyScript:"",Bd=Fs.reactiveElementPolyfillSupport,yc={toAttribute(n,e){switch(e){case Boolean:n=n?K3:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},P2=(n,e)=>e!==n&&(e==e||n==n),j1={attribute:!0,type:String,converter:yc,reflect:!1,hasChanged:P2},Cc="finalized";let oa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=j1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j1}static finalize(){if(this.hasOwnProperty(Cc))return!1;this[Cc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Rd(l))}else e!==void 0&&i.push(Rd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return q3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=j1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:yc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:yc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||P2)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};oa[Cc]=!0,oa.elementProperties=new Map,oa.elementStyles=[],oa.shadowRootOptions={mode:"open"},Bd==null||Bd({ReactiveElement:oa}),((U1=Fs.reactiveElementVersions)!==null&&U1!==void 0?U1:Fs.reactiveElementVersions=[]).push("1.6.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var G1;const Bs=window,no=Bs.trustedTypes,
|
|
14
|
-
\f\r]`,aa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/var G1;const Bs=window,no=Bs.trustedTypes,Vd=no?no.createPolicy("lit-html",{createHTML:n=>n}):void 0,Vs="$lit$",on=`lit$${(Math.random()+"").slice(9)}$`,jc="?"+on,Y3=`<${jc}>`,fi=document,Zs=()=>fi.createComment(""),wa=n=>n===null||typeof n!="object"&&typeof n!="function",D2=Array.isArray,N2=n=>D2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",q1=`[
|
|
14
|
+
\f\r]`,aa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zd=/-->/g,Wd=/>/g,ti=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ud=/'/g,jd=/"/g,H2=/^(?:script|style|textarea|title)$/i,sn=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),Gd=new WeakMap,ui=fi.createTreeWalker(fi,129,null,!1),R2=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=aa;for(let y=0;y<i;y++){const m=n[y];let T,S,$=-1,E=0;for(;E<m.length&&(u.lastIndex=E,S=u.exec(m),S!==null);)E=u.lastIndex,u===aa?S[1]==="!--"?u=Zd:S[1]!==void 0?u=Wd:S[2]!==void 0?(H2.test(S[2])&&(l=RegExp("</"+S[2],"g")),u=ti):S[3]!==void 0&&(u=ti):u===ti?S[0]===">"?(u=l!=null?l:aa,$=-1):S[1]===void 0?$=-2:($=u.lastIndex-S[2].length,T=S[1],u=S[3]===void 0?ti:S[3]==='"'?jd:Ud):u===jd||u===Ud?u=ti:u===Zd||u===Wd?u=aa:(u=ti,l=void 0);const N=u===ti&&n[y+1].startsWith("/>")?" ":"";d+=u===aa?m+Y3:$>=0?(o.push(T),m.slice(0,$)+Vs+m.slice($)+on+N):m+on+($===-2?(o.push(void 0),y):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Vd!==void 0?Vd.createHTML(v):v,o]};let wc=class F2{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,y=this.parts,[m,T]=R2(e,i);if(this.el=F2.createElement(m,o),ui.currentNode=this.el.content,i===2){const S=this.el.content,$=S.firstChild;$.remove(),S.append(...$.childNodes)}for(;(l=ui.nextNode())!==null&&y.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const S=[];for(const $ of l.getAttributeNames())if($.endsWith(Vs)||$.startsWith(on)){const E=T[u++];if(S.push($),E!==void 0){const N=l.getAttribute(E.toLowerCase()+Vs).split(on),G=/([.?@])?(.*)/.exec(E);y.push({type:1,index:d,name:G[2],strings:N,ctor:G[1]==="."?Z2:G[1]==="?"?W2:G[1]==="@"?U2:Ta})}else y.push({type:6,index:d})}for(const $ of S)l.removeAttribute($)}if(H2.test(l.tagName)){const S=l.textContent.split(on),$=S.length-1;if($>0){l.textContent=no?no.emptyScript:"";for(let E=0;E<$;E++)l.append(S[E],Zs()),ui.nextNode(),y.push({type:2,index:++d});l.append(S[$],Zs())}}}else if(l.nodeType===8)if(l.data===jc)y.push({type:2,index:d});else{let S=-1;for(;(S=l.data.indexOf(on,S+1))!==-1;)y.push({type:7,index:d}),S+=on.length-1}d++}}static createElement(e,i){const o=fi.createElement("template");return o.innerHTML=e,o}};function pi(n,e,i=n,o){var l,d,u,v;if(e===sn)return e;let y=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const m=wa(e)?void 0:e._$litDirective$;return(y==null?void 0:y.constructor)!==m&&((d=y==null?void 0:y._$AO)===null||d===void 0||d.call(y,!1),m===void 0?y=void 0:(y=new m(n),y._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=y:i._$Cl=y),y!==void 0&&(e=pi(n,y._$AS(n,e.values),y,o)),e}let B2=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:fi).importNode(o,!0);ui.currentNode=d;let u=ui.nextNode(),v=0,y=0,m=l[0];for(;m!==void 0;){if(v===m.index){let T;m.type===2?T=new Gc(u,u.nextSibling,this,e):m.type===1?T=new m.ctor(u,m.name,m.strings,this,e):m.type===6&&(T=new j2(u,this,e)),this._$AV.push(T),m=l[++y]}v!==(m==null?void 0:m.index)&&(u=ui.nextNode(),v++)}return ui.currentNode=fi,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Gc=class V2{constructor(e,i,o,l){var d;this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=pi(this,e,i),wa(e)?e===ht||e==null||e===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):e!==this._$AH&&e!==sn&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):N2(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ht&&wa(this._$AH)?this._$AA.nextSibling.data=e:this.$(fi.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=wc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new B2(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Gd.get(e.strings);return i===void 0&&Gd.set(e.strings,i=new wc(e)),i}T(e){D2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new V2(this.k(Zs()),this.k(Zs()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},Ta=class{constructor(e,i,o,l,d){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ht}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=pi(this,e,i,0),u=!wa(e)||e!==this._$AH&&e!==sn,u&&(this._$AH=e);else{const v=e;let y,m;for(e=d[0],y=0;y<d.length-1;y++)m=pi(this,v[o+y],i,y),m===sn&&(m=this._$AH[y]),u||(u=!wa(m)||m!==this._$AH[y]),m===ht?e=ht:e!==ht&&(e+=(m!=null?m:"")+d[y+1]),this._$AH[y]=m}u&&!l&&this.j(e)}j(e){e===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Z2=class extends Ta{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ht?void 0:e}};const X3=no?no.emptyScript:"";let W2=class extends Ta{constructor(){super(...arguments),this.type=4}j(e){e&&e!==ht?this.element.setAttribute(this.name,X3):this.element.removeAttribute(this.name)}},U2=class extends Ta{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=pi(this,e,i,0))!==null&&o!==void 0?o:ht)===sn)return;const l=this._$AH,d=e===ht&&l!==ht||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==ht&&(l===ht||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},j2=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){pi(this,e)}};const J3={O:Vs,P:on,A:jc,C:1,M:R2,L:B2,D:N2,R:pi,I:Gc,V:Ta,H:W2,N:U2,U:Z2,F:j2},qd=Bs.litHtmlPolyfillSupport;qd==null||qd(wc,Gc),((G1=Bs.litHtmlVersions)!==null&&G1!==void 0?G1:Bs.litHtmlVersions=[]).push("2.7.4");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2019 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const Ns=window,
|
|
19
|
+
*/const Ns=window,qc=Ns.ShadowRoot&&(Ns.ShadyCSS===void 0||Ns.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kc=Symbol(),Kd=new WeakMap;let G2=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Kc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(qc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Kd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Kd.set(i,e))}return e}toString(){return this.cssText}};const Pn=n=>new G2(typeof n=="string"?n:n+"",void 0,Kc),j=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new G2(i,n,Kc)},Q3=(n,e)=>{qc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Ns.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Yd=qc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return Pn(i)})(n):n;/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/var K1;const Ws=window,
|
|
23
|
+
*/var K1;const Ws=window,Xd=Ws.trustedTypes,e7=Xd?Xd.emptyScript:"",Jd=Ws.reactiveElementPolyfillSupport,xc={toAttribute(n,e){switch(e){case Boolean:n=n?e7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},q2=(n,e)=>e!==n&&(e==e||n==n),Y1={attribute:!0,type:String,converter:xc,reflect:!1,hasChanged:q2};let Qi=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=Y1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Y1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Yd(l))}else e!==void 0&&i.push(Yd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Q3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=Y1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:xc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:xc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||q2)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Qi.finalized=!0,Qi.elementProperties=new Map,Qi.elementStyles=[],Qi.shadowRootOptions={mode:"open"},Jd==null||Jd({ReactiveElement:Qi}),((K1=Ws.reactiveElementVersions)!==null&&K1!==void 0?K1:Ws.reactiveElementVersions=[]).push("1.4.2");/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/var X1;const Us=window,io=Us.trustedTypes,
|
|
28
|
-
\f\r]`,sa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
29
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
27
|
+
*/var X1;const Us=window,io=Us.trustedTypes,Qd=io?io.createPolicy("lit-html",{createHTML:n=>n}):void 0,zc="$lit$",In=`lit$${(Math.random()+"").slice(9)}$`,K2="?"+In,t7=`<${K2}>`,gi=document,xa=()=>gi.createComment(""),za=n=>n===null||typeof n!="object"&&typeof n!="function",Y2=Array.isArray,r7=n=>Y2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",J1=`[
|
|
28
|
+
\f\r]`,sa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,eh=/-->/g,th=/>/g,ri=RegExp(`>|${J1}(?:([^\\s"'>=/]+)(${J1}*=${J1}*(?:[^
|
|
29
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),rh=/'/g,nh=/"/g,X2=/^(?:script|style|textarea|title)$/i,J2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),P=J2(1),D=J2(2),oo=Symbol.for("lit-noChange"),Lt=Symbol.for("lit-nothing"),ih=new WeakMap,di=gi.createTreeWalker(gi,129,null,!1),n7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=sa;for(let y=0;y<i;y++){const m=n[y];let T,S,$=-1,E=0;for(;E<m.length&&(u.lastIndex=E,S=u.exec(m),S!==null);)E=u.lastIndex,u===sa?S[1]==="!--"?u=eh:S[1]!==void 0?u=th:S[2]!==void 0?(X2.test(S[2])&&(l=RegExp("</"+S[2],"g")),u=ri):S[3]!==void 0&&(u=ri):u===ri?S[0]===">"?(u=l!=null?l:sa,$=-1):S[1]===void 0?$=-2:($=u.lastIndex-S[2].length,T=S[1],u=S[3]===void 0?ri:S[3]==='"'?nh:rh):u===nh||u===rh?u=ri:u===eh||u===th?u=sa:(u=ri,l=void 0);const N=u===ri&&n[y+1].startsWith("/>")?" ":"";d+=u===sa?m+t7:$>=0?(o.push(T),m.slice(0,$)+zc+m.slice($)+In+N):m+In+($===-2?(o.push(void 0),y):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Qd!==void 0?Qd.createHTML(v):v,o]};class La{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,y=this.parts,[m,T]=n7(e,i);if(this.el=La.createElement(m,o),di.currentNode=this.el.content,i===2){const S=this.el.content,$=S.firstChild;$.remove(),S.append(...$.childNodes)}for(;(l=di.nextNode())!==null&&y.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const S=[];for(const $ of l.getAttributeNames())if($.endsWith(zc)||$.startsWith(In)){const E=T[u++];if(S.push($),E!==void 0){const N=l.getAttribute(E.toLowerCase()+zc).split(In),G=/([.?@])?(.*)/.exec(E);y.push({type:1,index:d,name:G[2],strings:N,ctor:G[1]==="."?o7:G[1]==="?"?s7:G[1]==="@"?l7:vl})}else y.push({type:6,index:d})}for(const $ of S)l.removeAttribute($)}if(X2.test(l.tagName)){const S=l.textContent.split(In),$=S.length-1;if($>0){l.textContent=io?io.emptyScript:"";for(let E=0;E<$;E++)l.append(S[E],xa()),di.nextNode(),y.push({type:2,index:++d});l.append(S[$],xa())}}}else if(l.nodeType===8)if(l.data===K2)y.push({type:2,index:d});else{let S=-1;for(;(S=l.data.indexOf(In,S+1))!==-1;)y.push({type:7,index:d}),S+=In.length-1}d++}}static createElement(e,i){const o=gi.createElement("template");return o.innerHTML=e,o}}function ao(n,e,i=n,o){var l,d,u,v;if(e===oo)return e;let y=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const m=za(e)?void 0:e._$litDirective$;return(y==null?void 0:y.constructor)!==m&&((d=y==null?void 0:y._$AO)===null||d===void 0||d.call(y,!1),m===void 0?y=void 0:(y=new m(n),y._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=y:i._$Cl=y),y!==void 0&&(e=ao(n,y._$AS(n,e.values),y,o)),e}class i7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:gi).importNode(o,!0);di.currentNode=d;let u=di.nextNode(),v=0,y=0,m=l[0];for(;m!==void 0;){if(v===m.index){let T;m.type===2?T=new ka(u,u.nextSibling,this,e):m.type===1?T=new m.ctor(u,m.name,m.strings,this,e):m.type===6&&(T=new c7(u,this,e)),this._$AV.push(T),m=l[++y]}v!==(m==null?void 0:m.index)&&(u=di.nextNode(),v++)}return di.currentNode=gi,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class ka{constructor(e,i,o,l){var d;this.type=2,this._$AH=Lt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ao(this,e,i),za(e)?e===Lt||e==null||e===""?(this._$AH!==Lt&&this._$AR(),this._$AH=Lt):e!==this._$AH&&e!==oo&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):r7(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Lt&&za(this._$AH)?this._$AA.nextSibling.data=e:this.$(gi.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=La.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new i7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=ih.get(e.strings);return i===void 0&&ih.set(e.strings,i=new La(e)),i}T(e){Y2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new ka(this.k(xa()),this.k(xa()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class vl{constructor(e,i,o,l,d){this.type=1,this._$AH=Lt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Lt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=ao(this,e,i,0),u=!za(e)||e!==this._$AH&&e!==oo,u&&(this._$AH=e);else{const v=e;let y,m;for(e=d[0],y=0;y<d.length-1;y++)m=ao(this,v[o+y],i,y),m===oo&&(m=this._$AH[y]),u||(u=!za(m)||m!==this._$AH[y]),m===Lt?e=Lt:e!==Lt&&(e+=(m!=null?m:"")+d[y+1]),this._$AH[y]=m}u&&!l&&this.j(e)}j(e){e===Lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class o7 extends vl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Lt?void 0:e}}const a7=io?io.emptyScript:"";class s7 extends vl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Lt?this.element.setAttribute(this.name,a7):this.element.removeAttribute(this.name)}}class l7 extends vl{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=ao(this,e,i,0))!==null&&o!==void 0?o:Lt)===oo)return;const l=this._$AH,d=e===Lt&&l!==Lt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Lt&&(l===Lt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class c7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ao(this,e)}}const oh=Us.litHtmlPolyfillSupport;oh==null||oh(La,ka),((X1=Us.litHtmlVersions)!==null&&X1!==void 0?X1:Us.litHtmlVersions=[]).push("2.7.4");const Q2=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new ka(e.insertBefore(xa(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/var Q1,ec;let me=class extends Qi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=
|
|
33
|
+
*/var Q1,ec;let me=class extends Qi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Q2(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return oo}};me.finalized=!0,me._$litElement$=!0,(Q1=globalThis.litElementHydrateSupport)===null||Q1===void 0||Q1.call(globalThis,{LitElement:me});const ah=globalThis.litElementPolyfillSupport;ah==null||ah({LitElement:me});((ec=globalThis.litElementVersions)!==null&&ec!==void 0?ec:globalThis.litElementVersions=[]).push("3.3.2");/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var tc;const f7=((tc=window.HTMLSlotElement)===null||tc===void 0?void 0:tc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function cn(n){const{slot:e,selector:i}=n!=null?n:{};return bl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?f7(u,n):[];return i?v.filter(
|
|
61
|
+
*/var tc;const f7=((tc=window.HTMLSlotElement)===null||tc===void 0?void 0:tc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function cn(n){const{slot:e,selector:i}=n!=null?n:{};return bl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?f7(u,n):[];return i?v.filter(y=>y.matches(i)):v},enumerable:!0,configurable:!0})})}/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/function
|
|
65
|
+
*/function Yc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?cn({slot:l,flatten:e,selector:i}):bl({descriptor:d=>({get(){var u,v;const y="slot"+(l?`[name=${l}]`:":not([name])"),m=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(y);return(v=m==null?void 0:m.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Lc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Lc(n.host,e);if("parentNode"in n)return Lc(n.parentElement||n.parentNode,e)}return null}const ne=n=>`brz-${n.toLowerCase()}`,R=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):$a(n),Sc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var p7=Object.defineProperty,g7=Object.getOwnPropertyDescriptor,Xc=(n,e,i,o)=>{for(var l=o>1?void 0:o?g7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&p7(e,i,l),l};const ef=ne("fade-in-out");exports.FadeInOut=class extends me{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?P``:P`<slot></slot>`}};exports.FadeInOut.styles=j`
|
|
66
66
|
:host {
|
|
67
67
|
opacity: 0;
|
|
68
68
|
animation: fade-in 0.3s ease;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
opacity: 1;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`;
|
|
82
|
+
`;Xc([O({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Xc([pe()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Xc([R(ef)],exports.FadeInOut);/**
|
|
83
83
|
* @license
|
|
84
84
|
* Copyright 2017 Google LLC
|
|
85
85
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
${i};
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`},
|
|
114
|
+
`},tf=j`
|
|
115
115
|
background: none;
|
|
116
116
|
border: 0;
|
|
117
117
|
border-radius: var(--brz-border-radius-default);
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
font: inherit;
|
|
122
122
|
margin: 0;
|
|
123
123
|
padding: 0;
|
|
124
|
-
`,
|
|
124
|
+
`,rf=(n,e=j``)=>j`
|
|
125
125
|
:host ${Pn(n)} {
|
|
126
|
-
${
|
|
126
|
+
${tf};
|
|
127
127
|
${e};
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
${vi(n)}
|
|
135
|
-
`,v7=Math.min,b7=Math.max,m7={left:"right",right:"left",bottom:"top",top:"bottom"},y7={start:"end",end:"start"};function oh(n,e,i){return b7(n,v7(e,i))}function wl(n,e){return typeof n=="function"?n(e):n}function bi(n){return n.split("-")[0]}function xl(n){return n.split("-")[1]}function rf(n){return n==="x"?"y":"x"}function nf(n){return n==="y"?"height":"width"}function so(n){return["top","bottom"].includes(bi(n))?"y":"x"}function of(n){return rf(so(n))}function C7(n,e,i){i===void 0&&(i=!1);const o=xl(n),l=of(n),d=nf(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=js(u)),[u,js(u)]}function w7(n){const e=js(n);return[Sc(n),e,Sc(e)]}function Sc(n){return n.replace(/start|end/g,e=>y7[e])}function x7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function z7(n,e,i,o){const l=xl(n);let d=x7(bi(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Sc)))),d}function js(n){return n.replace(/left|right|bottom|top/g,e=>m7[e])}function L7(n){return{top:0,right:0,bottom:0,left:0,...n}}function S7(n){return typeof n!="number"?L7(n):{top:n,right:n,bottom:n,left:n}}function Gs(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function ah(n,e,i){let{reference:o,floating:l}=n;const d=so(e),u=of(e),v=nf(u),m=bi(e),y=d==="y",T=o.x+o.width/2-l.width/2,S=o.y+o.height/2-l.height/2,$=o[v]/2-l[v]/2;let E;switch(m){case"top":E={x:T,y:o.y-l.height};break;case"bottom":E={x:T,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y:S};break;case"left":E={x:o.x-l.width,y:S};break;default:E={x:o.x,y:o.y}}switch(xl(e)){case"start":E[u]-=$*(i&&y?-1:1);break;case"end":E[u]+=$*(i&&y?-1:1);break}return E}const M7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(e));let y=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:T,y:S}=ah(y,o,m),$=o,E={},N=0;for(let G=0;G<v.length;G++){const{name:ee,fn:te}=v[G],{x:se,y:re,data:ue,reset:xe}=await te({x:T,y:S,initialPlacement:o,placement:$,strategy:l,middlewareData:E,rects:y,platform:u,elements:{reference:n,floating:e}});T=se!=null?se:T,S=re!=null?re:S,E={...E,[ee]:{...E[ee],...ue}},xe&&N<=50&&(N++,typeof xe=="object"&&(xe.placement&&($=xe.placement),xe.rects&&(y=xe.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):xe.rects),{x:T,y:S}=ah(y,$,m)),G=-1)}return{x:T,y:S,placement:$,strategy:l,middlewareData:E}};async function af(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:m}=n,{boundary:y="clippingAncestors",rootBoundary:T="viewport",elementContext:S="floating",altBoundary:$=!1,padding:E=0}=wl(e,n),N=S7(E),ee=v[$?S==="floating"?"reference":"floating":S],te=Gs(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(ee)))==null||i?ee:ee.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:y,rootBoundary:T,strategy:m})),se=S==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,re=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),ue=await(d.isElement==null?void 0:d.isElement(re))?await(d.getScale==null?void 0:d.getScale(re))||{x:1,y:1}:{x:1,y:1},xe=Gs(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:se,offsetParent:re,strategy:m}):se);return{top:(te.top-xe.top+N.top)/ue.y,bottom:(xe.bottom-te.bottom+N.bottom)/ue.y,left:(te.left-xe.left+N.left)/ue.x,right:(xe.right-te.right+N.right)/ue.x}}const T7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:m,elements:y}=e,{mainAxis:T=!0,crossAxis:S=!0,fallbackPlacements:$,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:G=!0,...ee}=wl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const te=bi(l),se=so(v),re=bi(v)===v,ue=await(m.isRTL==null?void 0:m.isRTL(y.floating)),xe=$||(re||!G?[js(v)]:w7(v)),qe=N!=="none";!$&&qe&&xe.push(...z7(v,G,N,ue));const Ge=[v,...xe],Ze=await af(e,ee),We=[];let de=((o=d.flip)==null?void 0:o.overflows)||[];if(T&&We.push(Ze[te]),S){const x=C7(l,u,ue);We.push(Ze[x[0]],Ze[x[1]])}if(de=[...de,{placement:l,overflows:We}],!We.every(x=>x<=0)){var ie,Z;const x=(((ie=d.flip)==null?void 0:ie.index)||0)+1,z=Ge[x];if(z)return{data:{index:x,overflows:de},reset:{placement:z}};let B=(Z=de.filter(X=>X.overflows[0]<=0).sort((X,be)=>X.overflows[1]-be.overflows[1])[0])==null?void 0:Z.placement;if(!B)switch(E){case"bestFit":{var k;const X=(k=de.filter(be=>{if(qe){const Me=so(be.placement);return Me===se||Me==="y"}return!0}).map(be=>[be.placement,be.overflows.filter(Me=>Me>0).reduce((Me,Be)=>Me+Be,0)]).sort((be,Me)=>be[1]-Me[1])[0])==null?void 0:k[0];X&&(B=X);break}case"initialPlacement":B=v;break}if(l!==B)return{reset:{placement:B}}}return{}}}};async function k7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=bi(i),v=xl(i),m=so(i)==="y",y=["left","top"].includes(u)?-1:1,T=d&&m?-1:1,S=wl(e,n);let{mainAxis:$,crossAxis:E,alignmentAxis:N}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return v&&typeof N=="number"&&(E=v==="end"?N*-1:N),m?{x:E*T,y:$*y}:{x:$*y,y:E*T}}const $7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,m=await k7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+m.x,y:d+m.y,data:{...m,placement:u}}}}},O7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:ee=>{let{x:te,y:se}=ee;return{x:te,y:se}}},...m}=wl(n,e),y={x:i,y:o},T=await af(e,m),S=so(bi(l)),$=rf(S);let E=y[$],N=y[S];if(d){const ee=$==="y"?"top":"left",te=$==="y"?"bottom":"right",se=E+T[ee],re=E-T[te];E=oh(se,E,re)}if(u){const ee=S==="y"?"top":"left",te=S==="y"?"bottom":"right",se=N+T[ee],re=N-T[te];N=oh(se,N,re)}const G=v.fn({...e,[$]:E,[S]:N});return{...G,data:{x:G.x-i,y:G.y-o,enabled:{[$]:d,[S]:u}}}}}},Mc=Math.min,eo=Math.max,qs=Math.round,Ms=Math.floor,Wr=n=>({x:n,y:n});function zl(){return typeof window!="undefined"}function uo(n){return sf(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function jr(n){var e;return(e=(sf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function sf(n){return zl()?n instanceof Node||n instanceof lr(n).Node:!1}function kr(n){return zl()?n instanceof Element||n instanceof lr(n).Element:!1}function Ur(n){return zl()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function sh(n){return!zl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}function Oa(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=$r(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function E7(n){return["table","td","th"].includes(uo(n))}function Ll(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Xc(n){const e=Jc(),i=kr(n)?$r(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function _7(n){let e=Dn(n);for(;Ur(e)&&!lo(e);){if(Xc(e))return e;if(Ll(e))return null;e=Dn(e)}return null}function Jc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lo(n){return["html","body","#document"].includes(uo(n))}function $r(n){return lr(n).getComputedStyle(n)}function Sl(n){return kr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dn(n){if(uo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||sh(n)&&n.host||jr(n);return sh(e)?e.host:e}function lf(n){const e=Dn(n);return lo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ur(e)&&Oa(e)?e:lf(e)}function Sa(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=lf(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=lr(l);if(d){const v=Tc(u);return e.concat(u,u.visualViewport||[],Oa(l)?l:[],v&&i?Sa(v):[])}return e.concat(l,Sa(l,[],i))}function Tc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function cf(n){const e=$r(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Ur(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=qs(i)!==d||qs(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function Qc(n){return kr(n)?n:n.contextElement}function to(n){const e=Qc(n);if(!Ur(e))return Wr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=cf(e);let u=(d?qs(i.width):i.width)/o,v=(d?qs(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const I7=Wr(0);function uf(n){const e=lr(n);return!Jc()||!e.visualViewport?I7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function A7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==lr(n)?!1:e}function mi(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=Qc(n);let u=Wr(1);e&&(o?kr(o)&&(u=to(o)):u=to(n));const v=A7(d,i,o)?uf(d):Wr(0);let m=(l.left+v.x)/u.x,y=(l.top+v.y)/u.y,T=l.width/u.x,S=l.height/u.y;if(d){const $=lr(d),E=o&&kr(o)?lr(o):o;let N=$,G=Tc(N);for(;G&&o&&E!==N;){const ee=to(G),te=G.getBoundingClientRect(),se=$r(G),re=te.left+(G.clientLeft+parseFloat(se.paddingLeft))*ee.x,ue=te.top+(G.clientTop+parseFloat(se.paddingTop))*ee.y;m*=ee.x,y*=ee.y,T*=ee.x,S*=ee.y,m+=re,y+=ue,N=lr(G),G=Tc(N)}}return Gs({width:T,height:S,x:m,y})}function e0(n,e){const i=Sl(n).scrollLeft;return e?e.left+i:mi(jr(n)).left+i}function df(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:e0(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function P7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=jr(o),v=e?Ll(e.floating):!1;if(o===u||v&&d)return i;let m={scrollLeft:0,scrollTop:0},y=Wr(1);const T=Wr(0),S=Ur(o);if((S||!S&&!d)&&((uo(o)!=="body"||Oa(u))&&(m=Sl(o)),Ur(o))){const E=mi(o);y=to(o),T.x=E.x+o.clientLeft,T.y=E.y+o.clientTop}const $=u&&!S&&!d?df(u,m,!0):Wr(0);return{width:i.width*y.x,height:i.height*y.y,x:i.x*y.x-m.scrollLeft*y.x+T.x+$.x,y:i.y*y.y-m.scrollTop*y.y+T.y+$.y}}function D7(n){return Array.from(n.getClientRects())}function N7(n){const e=jr(n),i=Sl(n),o=n.ownerDocument.body,l=eo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=eo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+e0(n);const v=-i.scrollTop;return $r(o).direction==="rtl"&&(u+=eo(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function H7(n,e){const i=lr(n),o=jr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,m=0;if(l){d=l.width,u=l.height;const y=Jc();(!y||y&&e==="fixed")&&(v=l.offsetLeft,m=l.offsetTop)}return{width:d,height:u,x:v,y:m}}function R7(n,e){const i=mi(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Ur(n)?to(n):Wr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,m=l*d.x,y=o*d.y;return{width:u,height:v,x:m,y}}function lh(n,e,i){let o;if(e==="viewport")o=H7(n,i);else if(e==="document")o=N7(jr(n));else if(kr(e))o=R7(e,i);else{const l=uf(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Gs(o)}function hf(n,e){const i=Dn(n);return i===e||!kr(i)||lo(i)?!1:$r(i).position==="fixed"||hf(i,e)}function F7(n,e){const i=e.get(n);if(i)return i;let o=Sa(n,[],!1).filter(v=>kr(v)&&uo(v)!=="body"),l=null;const d=$r(n).position==="fixed";let u=d?Dn(n):n;for(;kr(u)&&!lo(u);){const v=$r(u),m=Xc(u);!m&&v.position==="fixed"&&(l=null),(d?!m&&!l:!m&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Oa(u)&&!m&&hf(n,u))?o=o.filter(T=>T!==u):l=v,u=Dn(u)}return e.set(n,o),o}function B7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Ll(e)?[]:F7(e,this._c):[].concat(i),o],v=u[0],m=u.reduce((y,T)=>{const S=lh(e,T,l);return y.top=eo(S.top,y.top),y.right=Mc(S.right,y.right),y.bottom=Mc(S.bottom,y.bottom),y.left=eo(S.left,y.left),y},lh(e,v,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function V7(n){const{width:e,height:i}=cf(n);return{width:e,height:i}}function Z7(n,e,i){const o=Ur(e),l=jr(e),d=i==="fixed",u=mi(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const m=Wr(0);if(o||!o&&!d)if((uo(e)!=="body"||Oa(l))&&(v=Sl(e)),o){const $=mi(e,!0,d,e);m.x=$.x+e.clientLeft,m.y=$.y+e.clientTop}else l&&(m.x=e0(l));const y=l&&!o&&!d?df(l,v):Wr(0),T=u.left+v.scrollLeft-m.x-y.x,S=u.top+v.scrollTop-m.y-y.y;return{x:T,y:S,width:u.width,height:u.height}}function rc(n){return $r(n).position==="static"}function ch(n,e){if(!Ur(n)||$r(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return jr(n)===i&&(i=i.ownerDocument.body),i}function ff(n,e){const i=lr(n);if(Ll(n))return i;if(!Ur(n)){let l=Dn(n);for(;l&&!lo(l);){if(kr(l)&&!rc(l))return l;l=Dn(l)}return i}let o=ch(n,e);for(;o&&E7(o)&&rc(o);)o=ch(o,e);return o&&lo(o)&&rc(o)&&!Xc(o)?i:o||_7(n)||i}const W7=async function(n){const e=this.getOffsetParent||ff,i=this.getDimensions,o=await i(n.floating);return{reference:Z7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function U7(n){return $r(n).direction==="rtl"}const j7={convertOffsetParentRelativeRectToViewportRelativeRect:P7,getDocumentElement:jr,getClippingRect:B7,getOffsetParent:ff,getElementRects:W7,getClientRects:D7,getDimensions:V7,getScale:to,isElement:kr,isRTL:U7};function G7(n,e){let i=null,o;const l=jr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),d();const{left:y,top:T,width:S,height:$}=n.getBoundingClientRect();if(v||e(),!S||!$)return;const E=Ms(T),N=Ms(l.clientWidth-(y+S)),G=Ms(l.clientHeight-(T+$)),ee=Ms(y),se={rootMargin:-E+"px "+-N+"px "+-G+"px "+-ee+"px",threshold:eo(0,Mc(1,m))||1};let re=!0;function ue(xe){const qe=xe[0].intersectionRatio;if(qe!==m){if(!re)return u();qe?u(!1,qe):o=setTimeout(()=>{u(!1,1e-7)},1e3)}re=!1}try{i=new IntersectionObserver(ue,{...se,root:l.ownerDocument})}catch{i=new IntersectionObserver(ue,se)}i.observe(n)}return u(!0),d}function q7(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,y=Qc(n),T=l||d?[...y?Sa(y):[],...Sa(e)]:[];T.forEach(te=>{l&&te.addEventListener("scroll",i,{passive:!0}),d&&te.addEventListener("resize",i)});const S=y&&v?G7(y,i):null;let $=-1,E=null;u&&(E=new ResizeObserver(te=>{let[se]=te;se&&se.target===y&&E&&(E.unobserve(e),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var re;(re=E)==null||re.observe(e)})),i()}),y&&!m&&E.observe(y),E.observe(e));let N,G=m?mi(n):null;m&&ee();function ee(){const te=mi(n);G&&(te.x!==G.x||te.y!==G.y||te.width!==G.width||te.height!==G.height)&&i(),G=te,N=requestAnimationFrame(ee)}return i(),()=>{var te;T.forEach(se=>{l&&se.removeEventListener("scroll",i),d&&se.removeEventListener("resize",i)}),S==null||S(),(te=E)==null||te.disconnect(),E=null,m&&cancelAnimationFrame(N)}}const K7=$7,Y7=O7,X7=T7,J7=(n,e,i)=>{const o=new Map,l={platform:j7,...i},d={...l.platform,_c:o};return M7(n,e,{...l,platform:d})};var Q7=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,Tt=(n,e,i,o)=>{for(var l=o>1?void 0:o?e9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Q7(e,i,l),l};let t9=0;const t0=ne("popover"),pf=ne("pure-popover"),gf=["click","hover","focus"],[Ks,kc,li]=gf,r0=["dialog","tooltip","menu"],[r9]=r0;class vf extends CustomEvent{constructor(e){super(`${t0}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends me{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=r9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++t9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[K7({mainAxis:this.distance,crossAxis:this.skidding}),X7(),Y7()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=q7(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}J7(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new vf(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?P`
|
|
135
|
+
`,v7=Math.min,b7=Math.max,m7={left:"right",right:"left",bottom:"top",top:"bottom"},y7={start:"end",end:"start"};function sh(n,e,i){return b7(n,v7(e,i))}function wl(n,e){return typeof n=="function"?n(e):n}function bi(n){return n.split("-")[0]}function xl(n){return n.split("-")[1]}function nf(n){return n==="x"?"y":"x"}function of(n){return n==="y"?"height":"width"}function so(n){return["top","bottom"].includes(bi(n))?"y":"x"}function af(n){return nf(so(n))}function C7(n,e,i){i===void 0&&(i=!1);const o=xl(n),l=af(n),d=of(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=js(u)),[u,js(u)]}function w7(n){const e=js(n);return[Mc(n),e,Mc(e)]}function Mc(n){return n.replace(/start|end/g,e=>y7[e])}function x7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function z7(n,e,i,o){const l=xl(n);let d=x7(bi(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Mc)))),d}function js(n){return n.replace(/left|right|bottom|top/g,e=>m7[e])}function L7(n){return{top:0,right:0,bottom:0,left:0,...n}}function S7(n){return typeof n!="number"?L7(n):{top:n,right:n,bottom:n,left:n}}function Gs(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function lh(n,e,i){let{reference:o,floating:l}=n;const d=so(e),u=af(e),v=of(u),y=bi(e),m=d==="y",T=o.x+o.width/2-l.width/2,S=o.y+o.height/2-l.height/2,$=o[v]/2-l[v]/2;let E;switch(y){case"top":E={x:T,y:o.y-l.height};break;case"bottom":E={x:T,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y:S};break;case"left":E={x:o.x-l.width,y:S};break;default:E={x:o.x,y:o.y}}switch(xl(e)){case"start":E[u]-=$*(i&&m?-1:1);break;case"end":E[u]+=$*(i&&m?-1:1);break}return E}const M7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),y=await(u.isRTL==null?void 0:u.isRTL(e));let m=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:T,y:S}=lh(m,o,y),$=o,E={},N=0;for(let G=0;G<v.length;G++){const{name:ee,fn:te}=v[G],{x:se,y:re,data:ue,reset:xe}=await te({x:T,y:S,initialPlacement:o,placement:$,strategy:l,middlewareData:E,rects:m,platform:u,elements:{reference:n,floating:e}});T=se!=null?se:T,S=re!=null?re:S,E={...E,[ee]:{...E[ee],...ue}},xe&&N<=50&&(N++,typeof xe=="object"&&(xe.placement&&($=xe.placement),xe.rects&&(m=xe.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):xe.rects),{x:T,y:S}=lh(m,$,y)),G=-1)}return{x:T,y:S,placement:$,strategy:l,middlewareData:E}};async function sf(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:y}=n,{boundary:m="clippingAncestors",rootBoundary:T="viewport",elementContext:S="floating",altBoundary:$=!1,padding:E=0}=wl(e,n),N=S7(E),ee=v[$?S==="floating"?"reference":"floating":S],te=Gs(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(ee)))==null||i?ee:ee.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:m,rootBoundary:T,strategy:y})),se=S==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,re=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),ue=await(d.isElement==null?void 0:d.isElement(re))?await(d.getScale==null?void 0:d.getScale(re))||{x:1,y:1}:{x:1,y:1},xe=Gs(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:se,offsetParent:re,strategy:y}):se);return{top:(te.top-xe.top+N.top)/ue.y,bottom:(xe.bottom-te.bottom+N.bottom)/ue.y,left:(te.left-xe.left+N.left)/ue.x,right:(xe.right-te.right+N.right)/ue.x}}const T7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:y,elements:m}=e,{mainAxis:T=!0,crossAxis:S=!0,fallbackPlacements:$,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:G=!0,...ee}=wl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const te=bi(l),se=so(v),re=bi(v)===v,ue=await(y.isRTL==null?void 0:y.isRTL(m.floating)),xe=$||(re||!G?[js(v)]:w7(v)),qe=N!=="none";!$&&qe&&xe.push(...z7(v,G,N,ue));const Ge=[v,...xe],Ze=await sf(e,ee),We=[];let de=((o=d.flip)==null?void 0:o.overflows)||[];if(T&&We.push(Ze[te]),S){const x=C7(l,u,ue);We.push(Ze[x[0]],Ze[x[1]])}if(de=[...de,{placement:l,overflows:We}],!We.every(x=>x<=0)){var ie,Z;const x=(((ie=d.flip)==null?void 0:ie.index)||0)+1,z=Ge[x];if(z)return{data:{index:x,overflows:de},reset:{placement:z}};let B=(Z=de.filter(X=>X.overflows[0]<=0).sort((X,be)=>X.overflows[1]-be.overflows[1])[0])==null?void 0:Z.placement;if(!B)switch(E){case"bestFit":{var k;const X=(k=de.filter(be=>{if(qe){const Te=so(be.placement);return Te===se||Te==="y"}return!0}).map(be=>[be.placement,be.overflows.filter(Te=>Te>0).reduce((Te,Be)=>Te+Be,0)]).sort((be,Te)=>be[1]-Te[1])[0])==null?void 0:k[0];X&&(B=X);break}case"initialPlacement":B=v;break}if(l!==B)return{reset:{placement:B}}}return{}}}};async function k7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=bi(i),v=xl(i),y=so(i)==="y",m=["left","top"].includes(u)?-1:1,T=d&&y?-1:1,S=wl(e,n);let{mainAxis:$,crossAxis:E,alignmentAxis:N}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return v&&typeof N=="number"&&(E=v==="end"?N*-1:N),y?{x:E*T,y:$*m}:{x:$*m,y:E*T}}const $7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,y=await k7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+y.x,y:d+y.y,data:{...y,placement:u}}}}},O7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:ee=>{let{x:te,y:se}=ee;return{x:te,y:se}}},...y}=wl(n,e),m={x:i,y:o},T=await sf(e,y),S=so(bi(l)),$=nf(S);let E=m[$],N=m[S];if(d){const ee=$==="y"?"top":"left",te=$==="y"?"bottom":"right",se=E+T[ee],re=E-T[te];E=sh(se,E,re)}if(u){const ee=S==="y"?"top":"left",te=S==="y"?"bottom":"right",se=N+T[ee],re=N-T[te];N=sh(se,N,re)}const G=v.fn({...e,[$]:E,[S]:N});return{...G,data:{x:G.x-i,y:G.y-o,enabled:{[$]:d,[S]:u}}}}}},Tc=Math.min,eo=Math.max,qs=Math.round,Ms=Math.floor,Wr=n=>({x:n,y:n});function zl(){return typeof window!="undefined"}function uo(n){return lf(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function jr(n){var e;return(e=(lf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function lf(n){return zl()?n instanceof Node||n instanceof lr(n).Node:!1}function kr(n){return zl()?n instanceof Element||n instanceof lr(n).Element:!1}function Ur(n){return zl()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function ch(n){return!zl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}function Oa(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=$r(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function E7(n){return["table","td","th"].includes(uo(n))}function Ll(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Jc(n){const e=Qc(),i=kr(n)?$r(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function _7(n){let e=Dn(n);for(;Ur(e)&&!lo(e);){if(Jc(e))return e;if(Ll(e))return null;e=Dn(e)}return null}function Qc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lo(n){return["html","body","#document"].includes(uo(n))}function $r(n){return lr(n).getComputedStyle(n)}function Sl(n){return kr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dn(n){if(uo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||ch(n)&&n.host||jr(n);return ch(e)?e.host:e}function cf(n){const e=Dn(n);return lo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ur(e)&&Oa(e)?e:cf(e)}function Sa(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=cf(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=lr(l);if(d){const v=kc(u);return e.concat(u,u.visualViewport||[],Oa(l)?l:[],v&&i?Sa(v):[])}return e.concat(l,Sa(l,[],i))}function kc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function uf(n){const e=$r(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Ur(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=qs(i)!==d||qs(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function e0(n){return kr(n)?n:n.contextElement}function to(n){const e=e0(n);if(!Ur(e))return Wr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=uf(e);let u=(d?qs(i.width):i.width)/o,v=(d?qs(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const I7=Wr(0);function df(n){const e=lr(n);return!Qc()||!e.visualViewport?I7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function A7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==lr(n)?!1:e}function mi(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=e0(n);let u=Wr(1);e&&(o?kr(o)&&(u=to(o)):u=to(n));const v=A7(d,i,o)?df(d):Wr(0);let y=(l.left+v.x)/u.x,m=(l.top+v.y)/u.y,T=l.width/u.x,S=l.height/u.y;if(d){const $=lr(d),E=o&&kr(o)?lr(o):o;let N=$,G=kc(N);for(;G&&o&&E!==N;){const ee=to(G),te=G.getBoundingClientRect(),se=$r(G),re=te.left+(G.clientLeft+parseFloat(se.paddingLeft))*ee.x,ue=te.top+(G.clientTop+parseFloat(se.paddingTop))*ee.y;y*=ee.x,m*=ee.y,T*=ee.x,S*=ee.y,y+=re,m+=ue,N=lr(G),G=kc(N)}}return Gs({width:T,height:S,x:y,y:m})}function t0(n,e){const i=Sl(n).scrollLeft;return e?e.left+i:mi(jr(n)).left+i}function hf(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:t0(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function P7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=jr(o),v=e?Ll(e.floating):!1;if(o===u||v&&d)return i;let y={scrollLeft:0,scrollTop:0},m=Wr(1);const T=Wr(0),S=Ur(o);if((S||!S&&!d)&&((uo(o)!=="body"||Oa(u))&&(y=Sl(o)),Ur(o))){const E=mi(o);m=to(o),T.x=E.x+o.clientLeft,T.y=E.y+o.clientTop}const $=u&&!S&&!d?hf(u,y,!0):Wr(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-y.scrollLeft*m.x+T.x+$.x,y:i.y*m.y-y.scrollTop*m.y+T.y+$.y}}function D7(n){return Array.from(n.getClientRects())}function N7(n){const e=jr(n),i=Sl(n),o=n.ownerDocument.body,l=eo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=eo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+t0(n);const v=-i.scrollTop;return $r(o).direction==="rtl"&&(u+=eo(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function H7(n,e){const i=lr(n),o=jr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,y=0;if(l){d=l.width,u=l.height;const m=Qc();(!m||m&&e==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:u,x:v,y}}function R7(n,e){const i=mi(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Ur(n)?to(n):Wr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,y=l*d.x,m=o*d.y;return{width:u,height:v,x:y,y:m}}function uh(n,e,i){let o;if(e==="viewport")o=H7(n,i);else if(e==="document")o=N7(jr(n));else if(kr(e))o=R7(e,i);else{const l=df(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Gs(o)}function ff(n,e){const i=Dn(n);return i===e||!kr(i)||lo(i)?!1:$r(i).position==="fixed"||ff(i,e)}function F7(n,e){const i=e.get(n);if(i)return i;let o=Sa(n,[],!1).filter(v=>kr(v)&&uo(v)!=="body"),l=null;const d=$r(n).position==="fixed";let u=d?Dn(n):n;for(;kr(u)&&!lo(u);){const v=$r(u),y=Jc(u);!y&&v.position==="fixed"&&(l=null),(d?!y&&!l:!y&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Oa(u)&&!y&&ff(n,u))?o=o.filter(T=>T!==u):l=v,u=Dn(u)}return e.set(n,o),o}function B7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Ll(e)?[]:F7(e,this._c):[].concat(i),o],v=u[0],y=u.reduce((m,T)=>{const S=uh(e,T,l);return m.top=eo(S.top,m.top),m.right=Tc(S.right,m.right),m.bottom=Tc(S.bottom,m.bottom),m.left=eo(S.left,m.left),m},uh(e,v,l));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function V7(n){const{width:e,height:i}=uf(n);return{width:e,height:i}}function Z7(n,e,i){const o=Ur(e),l=jr(e),d=i==="fixed",u=mi(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const y=Wr(0);if(o||!o&&!d)if((uo(e)!=="body"||Oa(l))&&(v=Sl(e)),o){const $=mi(e,!0,d,e);y.x=$.x+e.clientLeft,y.y=$.y+e.clientTop}else l&&(y.x=t0(l));const m=l&&!o&&!d?hf(l,v):Wr(0),T=u.left+v.scrollLeft-y.x-m.x,S=u.top+v.scrollTop-y.y-m.y;return{x:T,y:S,width:u.width,height:u.height}}function rc(n){return $r(n).position==="static"}function dh(n,e){if(!Ur(n)||$r(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return jr(n)===i&&(i=i.ownerDocument.body),i}function pf(n,e){const i=lr(n);if(Ll(n))return i;if(!Ur(n)){let l=Dn(n);for(;l&&!lo(l);){if(kr(l)&&!rc(l))return l;l=Dn(l)}return i}let o=dh(n,e);for(;o&&E7(o)&&rc(o);)o=dh(o,e);return o&&lo(o)&&rc(o)&&!Jc(o)?i:o||_7(n)||i}const W7=async function(n){const e=this.getOffsetParent||pf,i=this.getDimensions,o=await i(n.floating);return{reference:Z7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function U7(n){return $r(n).direction==="rtl"}const j7={convertOffsetParentRelativeRectToViewportRelativeRect:P7,getDocumentElement:jr,getClippingRect:B7,getOffsetParent:pf,getElementRects:W7,getClientRects:D7,getDimensions:V7,getScale:to,isElement:kr,isRTL:U7};function G7(n,e){let i=null,o;const l=jr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:m,top:T,width:S,height:$}=n.getBoundingClientRect();if(v||e(),!S||!$)return;const E=Ms(T),N=Ms(l.clientWidth-(m+S)),G=Ms(l.clientHeight-(T+$)),ee=Ms(m),se={rootMargin:-E+"px "+-N+"px "+-G+"px "+-ee+"px",threshold:eo(0,Tc(1,y))||1};let re=!0;function ue(xe){const qe=xe[0].intersectionRatio;if(qe!==y){if(!re)return u();qe?u(!1,qe):o=setTimeout(()=>{u(!1,1e-7)},1e3)}re=!1}try{i=new IntersectionObserver(ue,{...se,root:l.ownerDocument})}catch{i=new IntersectionObserver(ue,se)}i.observe(n)}return u(!0),d}function q7(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=o,m=e0(n),T=l||d?[...m?Sa(m):[],...Sa(e)]:[];T.forEach(te=>{l&&te.addEventListener("scroll",i,{passive:!0}),d&&te.addEventListener("resize",i)});const S=m&&v?G7(m,i):null;let $=-1,E=null;u&&(E=new ResizeObserver(te=>{let[se]=te;se&&se.target===m&&E&&(E.unobserve(e),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var re;(re=E)==null||re.observe(e)})),i()}),m&&!y&&E.observe(m),E.observe(e));let N,G=y?mi(n):null;y&&ee();function ee(){const te=mi(n);G&&(te.x!==G.x||te.y!==G.y||te.width!==G.width||te.height!==G.height)&&i(),G=te,N=requestAnimationFrame(ee)}return i(),()=>{var te;T.forEach(se=>{l&&se.removeEventListener("scroll",i),d&&se.removeEventListener("resize",i)}),S==null||S(),(te=E)==null||te.disconnect(),E=null,y&&cancelAnimationFrame(N)}}const K7=$7,Y7=O7,X7=T7,J7=(n,e,i)=>{const o=new Map,l={platform:j7,...i},d={...l.platform,_c:o};return M7(n,e,{...l,platform:d})};var Q7=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,Tt=(n,e,i,o)=>{for(var l=o>1?void 0:o?e9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Q7(e,i,l),l};let t9=0;const r0=ne("popover"),gf=ne("pure-popover"),vf=["click","hover","focus"],[Ks,$c,li]=vf,n0=["dialog","tooltip","menu"],[r9]=n0;class bf extends CustomEvent{constructor(e){super(`${r0}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends me{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=r9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++t9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[K7({mainAxis:this.distance,crossAxis:this.skidding}),X7(),Y7()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=q7(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}J7(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new bf(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?P`
|
|
136
136
|
<slot></slot>
|
|
137
137
|
|
|
138
138
|
<brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
position: absolute';
|
|
157
157
|
width: max-content;
|
|
158
158
|
}
|
|
159
|
-
`;Tt([O({type:Number})],exports.PurePopover.prototype,"distance",2);Tt([O({type:Number})],exports.PurePopover.prototype,"skidding",2);Tt([O({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Tt([O({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Tt([O({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Tt([O({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Tt([O({type:String})],exports.PurePopover.prototype,"placement",2);Tt([O({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Tt([O({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Tt([O({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Tt([pe()],exports.PurePopover.prototype,"popoverId",2);Tt([pe()],exports.PurePopover.prototype,"cleanupFunction",2);Tt([pe()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Tt([R(
|
|
159
|
+
`;Tt([O({type:Number})],exports.PurePopover.prototype,"distance",2);Tt([O({type:Number})],exports.PurePopover.prototype,"skidding",2);Tt([O({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Tt([O({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Tt([O({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Tt([O({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Tt([O({type:String})],exports.PurePopover.prototype,"placement",2);Tt([O({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Tt([O({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Tt([O({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Tt([pe()],exports.PurePopover.prototype,"popoverId",2);Tt([pe()],exports.PurePopover.prototype,"cleanupFunction",2);Tt([pe()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Tt([R(gf)],exports.PurePopover);const Ys=["blur","mouseenter","mouseleave","keydown",Ks,li],[nc,n9,i9,o9]=Ys;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Ks]:this.handleClick,[li]:this.handleFocus,[nc]:this.handleBlur,[n9]:this.handleMouseEnter,[i9]:this.handleMouseLeave,[o9]: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(){Ys.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[li,nc].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Ys.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[li,nc].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(Ks))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(li)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(li)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger($c)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger($c)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Tt([O({type:String})],exports.Popover.prototype,"trigger",2);Tt([pe()],exports.Popover.prototype,"hasFocus",2);Tt([pe()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Tt([R(r0)],exports.Popover);var a9=Object.defineProperty,s9=Object.getOwnPropertyDescriptor,un=(n,e,i,o)=>{for(var l=o>1?void 0:o?s9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&a9(e,i,l),l};const mf=ne("tooltip"),[,l9]=n0;var yf=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(yf||{});exports.Tooltip=class extends me{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 P`
|
|
160
160
|
<brz-popover
|
|
161
161
|
.popoverRole=${l9}
|
|
162
162
|
.distance=${8}
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
background-color: var(--brz-color-white);
|
|
192
192
|
color: var(--brz-color-text);
|
|
193
193
|
}
|
|
194
|
-
`;un([O({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);un([O({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);un([O({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);un([O({type:String})],exports.Tooltip.prototype,"placement",2);un([O({type:String})],exports.Tooltip.prototype,"trigger",2);un([O({type:Boolean})],exports.Tooltip.prototype,"disabled",2);un([O({type:String})],exports.Tooltip.prototype,"content",2);un([O({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=un([R(
|
|
194
|
+
`;un([O({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);un([O({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);un([O({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);un([O({type:String})],exports.Tooltip.prototype,"placement",2);un([O({type:String})],exports.Tooltip.prototype,"trigger",2);un([O({type:Boolean})],exports.Tooltip.prototype,"disabled",2);un([O({type:String})],exports.Tooltip.prototype,"content",2);un([O({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=un([R(mf)],exports.Tooltip);var c9=Object.defineProperty,u9=Object.getOwnPropertyDescriptor,gr=(n,e,i,o)=>{for(var l=o>1?void 0:o?u9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&c9(e,i,l),l};const Cf=ne("avatar"),wf=ne("avatar-group");var Xs=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(Xs||{}),xf=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(xf||{});exports.Avatar=class extends me{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=Xs[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Xs[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return P`
|
|
195
195
|
<span class="icon" aria-label=${this.label}>
|
|
196
196
|
<brz-icon size=${i()} icon=${Ie(this.icon)}></brz-icon>
|
|
197
197
|
</span>
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
:host brz-link .container {
|
|
369
369
|
cursor: pointer;
|
|
370
370
|
}
|
|
371
|
-
`;gr([O({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);gr([O({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);gr([O({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);gr([O({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);gr([O({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);gr([O({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);gr([O({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);gr([O({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);gr([O({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);gr([pe()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=gr([R(
|
|
371
|
+
`;gr([O({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);gr([O({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);gr([O({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);gr([O({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);gr([O({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);gr([O({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);gr([O({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);gr([O({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);gr([O({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);gr([pe()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=gr([R(Cf)],exports.Avatar);exports.AvatarGroup=class extends me{render(){return P` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=j`
|
|
372
372
|
:host .container {
|
|
373
373
|
align-items: center;
|
|
374
374
|
display: inline-flex;
|
|
@@ -379,12 +379,12 @@
|
|
|
379
379
|
::slotted(sp-avatar:not(:first-child)) {
|
|
380
380
|
margin-left: -0.6em;
|
|
381
381
|
}
|
|
382
|
-
`;exports.AvatarGroup=gr([R(
|
|
383
|
-
--brz-spacing-${n}: ${n*
|
|
384
|
-
`),
|
|
382
|
+
`;exports.AvatarGroup=gr([R(wf)],exports.AvatarGroup);const i0=.25,Ea=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],d9=Ea.map(n=>j`
|
|
383
|
+
--brz-spacing-${n}: ${n*i0}rem;
|
|
384
|
+
`),zf=j`
|
|
385
385
|
:host {
|
|
386
386
|
--brz-spacing-px: 1px;
|
|
387
|
-
--brz-spacing-half: ${.5*
|
|
387
|
+
--brz-spacing-half: ${.5*i0}rem;
|
|
388
388
|
|
|
389
389
|
${Pn(d9.join(""))};
|
|
390
390
|
}
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
C7,14.1,7,14.1,7,14.1z"/>
|
|
751
751
|
<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
|
|
752
752
|
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
|
|
753
|
-
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:D`<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:D`<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)"/>`}},x9="0 0 18 18",
|
|
753
|
+
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:D`<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:D`<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)"/>`}},x9="0 0 18 18",Lf=n=>C9(n)?n:{svg:n,viewBox:x9},o0={actions:D`
|
|
754
754
|
<g stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
755
755
|
<g transform="translate(-0.002970, 0.000000)">
|
|
756
756
|
<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>
|
|
@@ -1223,7 +1223,7 @@
|
|
|
1223
1223
|
<circle class="st0" cx="9" cy="13" r="1"/>
|
|
1224
1224
|
<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"/>
|
|
1225
1225
|
</g>
|
|
1226
|
-
<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:D`<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:D`<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"/>`,...w9},z9=Object.keys(
|
|
1226
|
+
<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:D`<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:D`<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"/>`,...w9},z9=Object.keys(o0);var L9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,a0=(n,e,i,o)=>{for(var l=o>1?void 0:o?S9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&L9(e,i,l),l};const Sf=ne("icon");exports.Icon=class extends me{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=Lf(o0[this.icon]);return P`
|
|
1227
1227
|
<svg
|
|
1228
1228
|
role="presentation"
|
|
1229
1229
|
width=${this.size}
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
svg {
|
|
1242
1242
|
fill: currentColor;
|
|
1243
1243
|
}
|
|
1244
|
-
`;
|
|
1244
|
+
`;a0([O({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);a0([O({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=a0([R(Sf)],exports.Icon);var M9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,dn=(n,e,i,o)=>{for(var l=o>1?void 0:o?T9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&M9(e,i,l),l};const Mf=ne("link"),Tf=ne("link-button"),k9=["a","button"],$9=j`
|
|
1245
1245
|
:host {
|
|
1246
1246
|
display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
|
|
1247
1247
|
align-items: center;
|
|
@@ -1275,7 +1275,7 @@
|
|
|
1275
1275
|
:host([link-type='secondary']:hover) {
|
|
1276
1276
|
text-decoration: none;
|
|
1277
1277
|
}
|
|
1278
|
-
`,
|
|
1278
|
+
`,s0=j`
|
|
1279
1279
|
a {
|
|
1280
1280
|
color: inherit;
|
|
1281
1281
|
text-decoration: inherit;
|
|
@@ -1309,7 +1309,7 @@
|
|
|
1309
1309
|
</button>
|
|
1310
1310
|
|
|
1311
1311
|
${this.externalIcon}
|
|
1312
|
-
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[
|
|
1312
|
+
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[s0,O9,$9];dn([O()],exports.Link.prototype,"element",2);dn([O({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"href",2);dn([O({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"target",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"rel",2);dn([O({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=dn([R(Mf)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=dn([R(Tf)],exports.LinkButton);var _9=Object.defineProperty,I9=Object.getOwnPropertyDescriptor,Ml=(n,e,i,o)=>{for(var l=o>1?void 0:o?I9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_9(e,i,l),l};const kf=ne("row"),$f=ne("column");exports.Row=class extends me{render(){return P`<slot></slot>`}};exports.Row.styles=j`
|
|
1313
1313
|
:host {
|
|
1314
1314
|
display: flex;
|
|
1315
1315
|
flex-direction: row;
|
|
@@ -1328,7 +1328,7 @@
|
|
|
1328
1328
|
:host([vertical-align='bottom']) {
|
|
1329
1329
|
align-items: flex-end;
|
|
1330
1330
|
}
|
|
1331
|
-
`;Ml([O({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=Ml([R(
|
|
1331
|
+
`;Ml([O({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=Ml([R(kf)],exports.Row);exports.Column=class extends me{render(){return P`<slot></slot>`}};exports.Column.styles=j`
|
|
1332
1332
|
:host {
|
|
1333
1333
|
display: flex;
|
|
1334
1334
|
flex-direction: column;
|
|
@@ -1347,7 +1347,7 @@
|
|
|
1347
1347
|
:host([align='right']) {
|
|
1348
1348
|
align-items: flex-end;
|
|
1349
1349
|
}
|
|
1350
|
-
`;Ml([O({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=Ml([R(
|
|
1350
|
+
`;Ml([O({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=Ml([R($f)],exports.Column);var A9=Object.defineProperty,P9=Object.getOwnPropertyDescriptor,Of=(n,e,i,o)=>{for(var l=o>1?void 0:o?P9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&A9(e,i,l),l};const Ef=ne("loading-spinner");exports.LoadingSpinner=class extends me{constructor(){super(...arguments),this.size=24}render(){return P`
|
|
1351
1351
|
<div class="loading-spinner">
|
|
1352
1352
|
<svg
|
|
1353
1353
|
class="loading-spinner--circular"
|
|
@@ -1402,8 +1402,8 @@
|
|
|
1402
1402
|
stroke-dashoffset: -124px;
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
|
-
|
|
1406
|
-
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new
|
|
1405
|
+
`;Of([O({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=Of([R(Ef)],exports.LoadingSpinner);var D9=Object.defineProperty,N9=Object.getOwnPropertyDescriptor,kt=(n,e,i,o)=>{for(var l=o>1?void 0:o?N9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&D9(e,i,l),l};const l0=ne("button"),_f=ne("button-group");class If extends CustomEvent{constructor(e){super(`${l0}-${e}`,{bubbles:!0,composed:!0})}}const H9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends ho{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
|
|
1406
|
+
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new If(e))}get classes(){return Yt({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 P`
|
|
1407
1407
|
<a
|
|
1408
1408
|
part="button"
|
|
1409
1409
|
role="button"
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
</div>
|
|
1447
1447
|
|
|
1448
1448
|
${this.loading?P`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
|
|
1449
|
-
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return Ie(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var
|
|
1449
|
+
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return Ie(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var E2;exports.Button.styles=[(E2=ho.styles)!=null?E2:[],s0,j`
|
|
1450
1450
|
:host {
|
|
1451
1451
|
--brz-button-background-color: transparent;
|
|
1452
1452
|
--brz-button-border-width: var(--brz-spacing-px);
|
|
@@ -1646,7 +1646,7 @@
|
|
|
1646
1646
|
brz-tooltip {
|
|
1647
1647
|
display: flex;
|
|
1648
1648
|
}
|
|
1649
|
-
`];kt([O()],exports.Button.prototype,"element",2);kt([O({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);kt([O({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);kt([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);kt([O({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);kt([O()],exports.Button.prototype,"href",2);kt([O()],exports.Button.prototype,"target",2);kt([O()],exports.Button.prototype,"rel",2);kt([O({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);kt([O({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);kt([Er("button")],exports.Button.prototype,"buttonElement",2);kt([
|
|
1649
|
+
`];kt([O()],exports.Button.prototype,"element",2);kt([O({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);kt([O({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);kt([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);kt([O({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);kt([O()],exports.Button.prototype,"href",2);kt([O()],exports.Button.prototype,"target",2);kt([O()],exports.Button.prototype,"rel",2);kt([O({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);kt([O({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);kt([Er("button")],exports.Button.prototype,"buttonElement",2);kt([Yc()],exports.Button.prototype,"defaultSlot",2);exports.Button=kt([R(l0)],exports.Button);exports.ButtonGroup=class extends me{constructor(){super(...arguments),this.compact=!1}render(){return P`<brz-row class=${Yt({compact:this.compact})}
|
|
1650
1650
|
><slot></slot
|
|
1651
1651
|
></brz-row>`}};exports.ButtonGroup.styles=j`
|
|
1652
1652
|
brz-row {
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
--brz-button-r-radius: 0;
|
|
1666
1666
|
--brz-border-r-width: 0;
|
|
1667
1667
|
}
|
|
1668
|
-
`;kt([O({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=kt([R(
|
|
1668
|
+
`;kt([O({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=kt([R(_f)],exports.ButtonGroup);const R9=["small","medium","large"];var F9=Object.defineProperty,B9=Object.getOwnPropertyDescriptor,Gr=(n,e,i,o)=>{for(var l=o>1?void 0:o?B9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&F9(e,i,l),l};const Af=ne("dropdown-menu"),V9=[...R9,"fluid"];exports.DropdownMenu=class extends me{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return P`
|
|
1669
1669
|
<brz-popover
|
|
1670
1670
|
trigger="click"
|
|
1671
1671
|
placement="bottom-start"
|
|
@@ -1713,30 +1713,30 @@
|
|
|
1713
1713
|
brz-menu::-webkit-scrollbar-track {
|
|
1714
1714
|
background-clip: padding-box;
|
|
1715
1715
|
}
|
|
1716
|
-
`;Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Gr([O({type:Array})],exports.DropdownMenu.prototype,"selected",2);Gr([O()],exports.DropdownMenu.prototype,"size",2);Gr([pe()],exports.DropdownMenu.prototype,"fluidWidth",2);Gr([pe()],exports.DropdownMenu.prototype,"disabled",2);Gr([Er("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Gr([Er("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Gr([cn()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Gr([R(If)],exports.DropdownMenu);var pa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function l0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Z9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var W9=Z9;function U9(){this.__data__=[],this.size=0}var j9=U9;function G9(n,e){return n===e||n!==n&&e!==e}var c0=G9,q9=c0;function K9(n,e){for(var i=n.length;i--;)if(q9(n[i][0],e))return i;return-1}var Tl=K9,Y9=Tl,X9=Array.prototype,J9=X9.splice;function Q9(n){var e=this.__data__,i=Y9(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():J9.call(e,i,1),--this.size,!0}var e8=Q9,t8=Tl;function r8(n){var e=this.__data__,i=t8(e,n);return i<0?void 0:e[i][1]}var n8=r8,i8=Tl;function o8(n){return i8(this.__data__,n)>-1}var a8=o8,s8=Tl;function l8(n,e){var i=this.__data__,o=s8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var c8=l8,u8=j9,d8=e8,h8=n8,f8=a8,p8=c8;function fo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}fo.prototype.clear=u8;fo.prototype.delete=d8;fo.prototype.get=h8;fo.prototype.has=f8;fo.prototype.set=p8;var kl=fo,g8=kl;function v8(){this.__data__=new g8,this.size=0}var b8=v8;function m8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var y8=m8;function C8(n){return this.__data__.get(n)}var w8=C8;function x8(n){return this.__data__.has(n)}var z8=x8,L8=typeof pa=="object"&&pa&&pa.Object===Object&&pa,Af=L8,S8=Af,M8=typeof self=="object"&&self&&self.Object===Object&&self,T8=S8||M8||Function("return this")(),hn=T8,k8=hn,$8=k8.Symbol,$l=$8,uh=$l,Pf=Object.prototype,O8=Pf.hasOwnProperty,E8=Pf.toString,la=uh?uh.toStringTag:void 0;function _8(n){var e=O8.call(n,la),i=n[la];try{n[la]=void 0;var o=!0}catch{}var l=E8.call(n);return o&&(e?n[la]=i:delete n[la]),l}var I8=_8,A8=Object.prototype,P8=A8.toString;function D8(n){return P8.call(n)}var N8=D8,dh=$l,H8=I8,R8=N8,F8="[object Null]",B8="[object Undefined]",hh=dh?dh.toStringTag:void 0;function V8(n){return n==null?n===void 0?B8:F8:hh&&hh in Object(n)?H8(n):R8(n)}var _a=V8;function Z8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Ia=Z8,W8=_a,U8=Ia,j8="[object AsyncFunction]",G8="[object Function]",q8="[object GeneratorFunction]",K8="[object Proxy]";function Y8(n){if(!U8(n))return!1;var e=W8(n);return e==G8||e==q8||e==j8||e==K8}var Df=Y8,X8=hn,J8=X8["__core-js_shared__"],Q8=J8,ic=Q8,fh=function(){var n=/[^.]+$/.exec(ic&&ic.keys&&ic.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function eg(n){return!!fh&&fh in n}var tg=eg,rg=Function.prototype,ng=rg.toString;function ig(n){if(n!=null){try{return ng.call(n)}catch{}try{return n+""}catch{}}return""}var Nf=ig,og=Df,ag=tg,sg=Ia,lg=Nf,cg=/[\\^$.*+?()[\]{}|]/g,ug=/^\[object .+?Constructor\]$/,dg=Function.prototype,hg=Object.prototype,fg=dg.toString,pg=hg.hasOwnProperty,gg=RegExp("^"+fg.call(pg).replace(cg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vg(n){if(!sg(n)||ag(n))return!1;var e=og(n)?gg:ug;return e.test(lg(n))}var bg=vg;function mg(n,e){return n==null?void 0:n[e]}var yg=mg,Cg=bg,wg=yg;function xg(n,e){var i=wg(n,e);return Cg(i)?i:void 0}var po=xg,zg=po,Lg=hn,Sg=zg(Lg,"Map"),u0=Sg,Mg=po,Tg=Mg(Object,"create"),Ol=Tg,ph=Ol;function kg(){this.__data__=ph?ph(null):{},this.size=0}var $g=kg;function Og(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Eg=Og,_g=Ol,Ig="__lodash_hash_undefined__",Ag=Object.prototype,Pg=Ag.hasOwnProperty;function Dg(n){var e=this.__data__;if(_g){var i=e[n];return i===Ig?void 0:i}return Pg.call(e,n)?e[n]:void 0}var Ng=Dg,Hg=Ol,Rg=Object.prototype,Fg=Rg.hasOwnProperty;function Bg(n){var e=this.__data__;return Hg?e[n]!==void 0:Fg.call(e,n)}var Vg=Bg,Zg=Ol,Wg="__lodash_hash_undefined__";function Ug(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=Zg&&e===void 0?Wg:e,this}var jg=Ug,Gg=$g,qg=Eg,Kg=Ng,Yg=Vg,Xg=jg;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=Gg;go.prototype.delete=qg;go.prototype.get=Kg;go.prototype.has=Yg;go.prototype.set=Xg;var Jg=go,gh=Jg,Qg=kl,ev=u0;function tv(){this.size=0,this.__data__={hash:new gh,map:new(ev||Qg),string:new gh}}var rv=tv;function nv(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var iv=nv,ov=iv;function av(n,e){var i=n.__data__;return ov(e)?i[typeof e=="string"?"string":"hash"]:i.map}var El=av,sv=El;function lv(n){var e=sv(this,n).delete(n);return this.size-=e?1:0,e}var cv=lv,uv=El;function dv(n){return uv(this,n).get(n)}var hv=dv,fv=El;function pv(n){return fv(this,n).has(n)}var gv=pv,vv=El;function bv(n,e){var i=vv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var mv=bv,yv=rv,Cv=cv,wv=hv,xv=gv,zv=mv;function vo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}vo.prototype.clear=yv;vo.prototype.delete=Cv;vo.prototype.get=wv;vo.prototype.has=xv;vo.prototype.set=zv;var d0=vo,Lv=kl,Sv=u0,Mv=d0,Tv=200;function kv(n,e){var i=this.__data__;if(i instanceof Lv){var o=i.__data__;if(!Sv||o.length<Tv-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new Mv(o)}return i.set(n,e),this.size=i.size,this}var $v=kv,Ov=kl,Ev=b8,_v=y8,Iv=w8,Av=z8,Pv=$v;function bo(n){var e=this.__data__=new Ov(n);this.size=e.size}bo.prototype.clear=Ev;bo.prototype.delete=_v;bo.prototype.get=Iv;bo.prototype.has=Av;bo.prototype.set=Pv;var Hf=bo,Dv="__lodash_hash_undefined__";function Nv(n){return this.__data__.set(n,Dv),this}var Hv=Nv;function Rv(n){return this.__data__.has(n)}var Fv=Rv,Bv=d0,Vv=Hv,Zv=Fv;function Js(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Bv;++e<i;)this.add(n[e])}Js.prototype.add=Js.prototype.push=Vv;Js.prototype.has=Zv;var Wv=Js;function Uv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var jv=Uv;function Gv(n,e){return n.has(e)}var qv=Gv,Kv=Wv,Yv=jv,Xv=qv,Jv=1,Qv=2;function eb(n,e,i,o,l,d){var u=i&Jv,v=n.length,m=e.length;if(v!=m&&!(u&&m>v))return!1;var y=d.get(n),T=d.get(e);if(y&&T)return y==e&&T==n;var S=-1,$=!0,E=i&Qv?new Kv:void 0;for(d.set(n,e),d.set(e,n);++S<v;){var N=n[S],G=e[S];if(o)var ee=u?o(G,N,S,e,n,d):o(N,G,S,n,e,d);if(ee!==void 0){if(ee)continue;$=!1;break}if(E){if(!Yv(e,function(te,se){if(!Xv(E,se)&&(N===te||l(N,te,i,o,d)))return E.push(se)})){$=!1;break}}else if(!(N===G||l(N,G,i,o,d))){$=!1;break}}return d.delete(n),d.delete(e),$}var Rf=eb,tb=hn,rb=tb.Uint8Array,nb=rb;function ib(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var ob=ib;function ab(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var sb=ab,vh=$l,bh=nb,lb=c0,cb=Rf,ub=ob,db=sb,hb=1,fb=2,pb="[object Boolean]",gb="[object Date]",vb="[object Error]",bb="[object Map]",mb="[object Number]",yb="[object RegExp]",Cb="[object Set]",wb="[object String]",xb="[object Symbol]",zb="[object ArrayBuffer]",Lb="[object DataView]",mh=vh?vh.prototype:void 0,oc=mh?mh.valueOf:void 0;function Sb(n,e,i,o,l,d,u){switch(i){case Lb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case zb:return!(n.byteLength!=e.byteLength||!d(new bh(n),new bh(e)));case pb:case gb:case mb:return lb(+n,+e);case vb:return n.name==e.name&&n.message==e.message;case yb:case wb:return n==e+"";case bb:var v=ub;case Cb:var m=o&hb;if(v||(v=db),n.size!=e.size&&!m)return!1;var y=u.get(n);if(y)return y==e;o|=fb,u.set(n,e);var T=cb(v(n),v(e),o,l,d,u);return u.delete(n),T;case xb:if(oc)return oc.call(n)==oc.call(e)}return!1}var Mb=Sb;function Tb(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var kb=Tb,$b=Array.isArray,Nn=$b,Ob=kb,Eb=Nn;function _b(n,e,i){var o=e(n);return Eb(n)?o:Ob(o,i(n))}var Ib=_b;function Ab(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Pb=Ab;function Db(){return[]}var Nb=Db,Hb=Pb,Rb=Nb,Fb=Object.prototype,Bb=Fb.propertyIsEnumerable,yh=Object.getOwnPropertySymbols,Vb=yh?function(n){return n==null?[]:(n=Object(n),Hb(yh(n),function(e){return Bb.call(n,e)}))}:Rb,Zb=Vb;function Wb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var Ub=Wb;function jb(n){return n!=null&&typeof n=="object"}var Aa=jb,Gb=_a,qb=Aa,Kb="[object Arguments]";function Yb(n){return qb(n)&&Gb(n)==Kb}var Xb=Yb,Ch=Xb,Jb=Aa,Ff=Object.prototype,Qb=Ff.hasOwnProperty,em=Ff.propertyIsEnumerable,tm=Ch(function(){return arguments}())?Ch:function(n){return Jb(n)&&Qb.call(n,"callee")&&!em.call(n,"callee")},Bf=tm,Qs={exports:{}};function rm(){return!1}var nm=rm;Qs.exports;(function(n,e){var i=hn,o=nm,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,m=v?v.isBuffer:void 0,y=m||o;n.exports=y})(Qs,Qs.exports);var Vf=Qs.exports,im=9007199254740991,om=/^(?:0|[1-9]\d*)$/;function am(n,e){var i=typeof n;return e=e==null?im:e,!!e&&(i=="number"||i!="symbol"&&om.test(n))&&n>-1&&n%1==0&&n<e}var h0=am,sm=9007199254740991;function lm(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=sm}var f0=lm,cm=_a,um=f0,dm=Aa,hm="[object Arguments]",fm="[object Array]",pm="[object Boolean]",gm="[object Date]",vm="[object Error]",bm="[object Function]",mm="[object Map]",ym="[object Number]",Cm="[object Object]",wm="[object RegExp]",xm="[object Set]",zm="[object String]",Lm="[object WeakMap]",Sm="[object ArrayBuffer]",Mm="[object DataView]",Tm="[object Float32Array]",km="[object Float64Array]",$m="[object Int8Array]",Om="[object Int16Array]",Em="[object Int32Array]",_m="[object Uint8Array]",Im="[object Uint8ClampedArray]",Am="[object Uint16Array]",Pm="[object Uint32Array]",et={};et[Tm]=et[km]=et[$m]=et[Om]=et[Em]=et[_m]=et[Im]=et[Am]=et[Pm]=!0;et[hm]=et[fm]=et[Sm]=et[pm]=et[Mm]=et[gm]=et[vm]=et[bm]=et[mm]=et[ym]=et[Cm]=et[wm]=et[xm]=et[zm]=et[Lm]=!1;function Dm(n){return dm(n)&&um(n.length)&&!!et[cm(n)]}var Nm=Dm;function Hm(n){return function(e){return n(e)}}var Rm=Hm,el={exports:{}};el.exports;(function(n,e){var i=Af,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var m=l&&l.require&&l.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(el,el.exports);var Fm=el.exports,Bm=Nm,Vm=Rm,wh=Fm,xh=wh&&wh.isTypedArray,Zm=xh?Vm(xh):Bm,Zf=Zm,Wm=Ub,Um=Bf,jm=Nn,Gm=Vf,qm=h0,Km=Zf,Ym=Object.prototype,Xm=Ym.hasOwnProperty;function Jm(n,e){var i=jm(n),o=!i&&Um(n),l=!i&&!o&&Gm(n),d=!i&&!o&&!l&&Km(n),u=i||o||l||d,v=u?Wm(n.length,String):[],m=v.length;for(var y in n)(e||Xm.call(n,y))&&!(u&&(y=="length"||l&&(y=="offset"||y=="parent")||d&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||qm(y,m)))&&v.push(y);return v}var Qm=Jm,ey=Object.prototype;function ty(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||ey;return n===i}var ry=ty;function ny(n,e){return function(i){return n(e(i))}}var iy=ny,oy=iy,ay=oy(Object.keys,Object),sy=ay,ly=ry,cy=sy,uy=Object.prototype,dy=uy.hasOwnProperty;function hy(n){if(!ly(n))return cy(n);var e=[];for(var i in Object(n))dy.call(n,i)&&i!="constructor"&&e.push(i);return e}var fy=hy,py=Df,gy=f0;function vy(n){return n!=null&&gy(n.length)&&!py(n)}var Wf=vy,by=Qm,my=fy,yy=Wf;function Cy(n){return yy(n)?by(n):my(n)}var Uf=Cy,wy=Ib,xy=Zb,zy=Uf;function Ly(n){return wy(n,zy,xy)}var Sy=Ly,zh=Sy,My=1,Ty=Object.prototype,ky=Ty.hasOwnProperty;function $y(n,e,i,o,l,d){var u=i&My,v=zh(n),m=v.length,y=zh(e),T=y.length;if(m!=T&&!u)return!1;for(var S=m;S--;){var $=v[S];if(!(u?$ in e:ky.call(e,$)))return!1}var E=d.get(n),N=d.get(e);if(E&&N)return E==e&&N==n;var G=!0;d.set(n,e),d.set(e,n);for(var ee=u;++S<m;){$=v[S];var te=n[$],se=e[$];if(o)var re=u?o(se,te,$,e,n,d):o(te,se,$,n,e,d);if(!(re===void 0?te===se||l(te,se,i,o,d):re)){G=!1;break}ee||(ee=$=="constructor")}if(G&&!ee){var ue=n.constructor,xe=e.constructor;ue!=xe&&"constructor"in n&&"constructor"in e&&!(typeof ue=="function"&&ue instanceof ue&&typeof xe=="function"&&xe instanceof xe)&&(G=!1)}return d.delete(n),d.delete(e),G}var Oy=$y,Ey=po,_y=hn,Iy=Ey(_y,"DataView"),Ay=Iy,Py=po,Dy=hn,Ny=Py(Dy,"Promise"),Hy=Ny,Ry=po,Fy=hn,By=Ry(Fy,"Set"),Vy=By,Zy=po,Wy=hn,Uy=Zy(Wy,"WeakMap"),jy=Uy,$c=Ay,Oc=u0,Ec=Hy,_c=Vy,Ic=jy,jf=_a,mo=Nf,Lh="[object Map]",Gy="[object Object]",Sh="[object Promise]",Mh="[object Set]",Th="[object WeakMap]",kh="[object DataView]",qy=mo($c),Ky=mo(Oc),Yy=mo(Ec),Xy=mo(_c),Jy=mo(Ic),ai=jf;($c&&ai(new $c(new ArrayBuffer(1)))!=kh||Oc&&ai(new Oc)!=Lh||Ec&&ai(Ec.resolve())!=Sh||_c&&ai(new _c)!=Mh||Ic&&ai(new Ic)!=Th)&&(ai=function(n){var e=jf(n),i=e==Gy?n.constructor:void 0,o=i?mo(i):"";if(o)switch(o){case qy:return kh;case Ky:return Lh;case Yy:return Sh;case Xy:return Mh;case Jy:return Th}return e});var Qy=ai,ac=Hf,eC=Rf,tC=Mb,rC=Oy,$h=Qy,Oh=Nn,Eh=Vf,nC=Zf,iC=1,_h="[object Arguments]",Ih="[object Array]",Ts="[object Object]",oC=Object.prototype,Ah=oC.hasOwnProperty;function aC(n,e,i,o,l,d){var u=Oh(n),v=Oh(e),m=u?Ih:$h(n),y=v?Ih:$h(e);m=m==_h?Ts:m,y=y==_h?Ts:y;var T=m==Ts,S=y==Ts,$=m==y;if($&&Eh(n)){if(!Eh(e))return!1;u=!0,T=!1}if($&&!T)return d||(d=new ac),u||nC(n)?eC(n,e,i,o,l,d):tC(n,e,m,i,o,l,d);if(!(i&iC)){var E=T&&Ah.call(n,"__wrapped__"),N=S&&Ah.call(e,"__wrapped__");if(E||N){var G=E?n.value():n,ee=N?e.value():e;return d||(d=new ac),l(G,ee,i,o,d)}}return $?(d||(d=new ac),rC(n,e,i,o,l,d)):!1}var sC=aC,lC=sC,Ph=Aa;function Gf(n,e,i,o,l){return n===e?!0:n==null||e==null||!Ph(n)&&!Ph(e)?n!==n&&e!==e:lC(n,e,i,o,Gf,l)}var qf=Gf,cC=Hf,uC=qf,dC=1,hC=2;function fC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var m=v[0],y=n[m],T=v[1];if(u&&v[2]){if(y===void 0&&!(m in n))return!1}else{var S=new cC;if(o)var $=o(y,T,m,n,e,S);if(!($===void 0?uC(T,y,dC|hC,o,S):$))return!1}}return!0}var pC=fC,gC=Ia;function vC(n){return n===n&&!gC(n)}var Kf=vC,bC=Kf,mC=Uf;function yC(n){for(var e=mC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,bC(l)]}return e}var CC=yC;function wC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var Yf=wC,xC=pC,zC=CC,LC=Yf;function SC(n){var e=zC(n);return e.length==1&&e[0][2]?LC(e[0][0],e[0][1]):function(i){return i===n||xC(i,n,e)}}var MC=SC,TC=_a,kC=Aa,$C="[object Symbol]";function OC(n){return typeof n=="symbol"||kC(n)&&TC(n)==$C}var _l=OC,EC=Nn,_C=_l,IC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AC=/^\w*$/;function PC(n,e){if(EC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||_C(n)?!0:AC.test(n)||!IC.test(n)||e!=null&&n in Object(e)}var p0=PC,Xf=d0,DC="Expected a function";function g0(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(DC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(g0.Cache||Xf),i}g0.Cache=Xf;var NC=g0,HC=NC,RC=500;function FC(n){var e=HC(n,function(o){return i.size===RC&&i.clear(),o}),i=e.cache;return e}var BC=FC,VC=BC,ZC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WC=/\\(\\)?/g,UC=VC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(ZC,function(i,o,l,d){e.push(l?d.replace(WC,"$1"):o||i)}),e}),jC=UC;function GC(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var qC=GC,Dh=$l,KC=qC,YC=Nn,XC=_l,JC=1/0,Nh=Dh?Dh.prototype:void 0,Hh=Nh?Nh.toString:void 0;function Jf(n){if(typeof n=="string")return n;if(YC(n))return KC(n,Jf)+"";if(XC(n))return Hh?Hh.call(n):"";var e=n+"";return e=="0"&&1/n==-JC?"-0":e}var QC=Jf,ew=QC;function tw(n){return n==null?"":ew(n)}var rw=tw,nw=Nn,iw=p0,ow=jC,aw=rw;function sw(n,e){return nw(n)?n:iw(n,e)?[n]:ow(aw(n))}var Qf=sw,lw=_l,cw=1/0;function uw(n){if(typeof n=="string"||lw(n))return n;var e=n+"";return e=="0"&&1/n==-cw?"-0":e}var Il=uw,dw=Qf,hw=Il;function fw(n,e){e=dw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[hw(e[i++])];return i&&i==o?n:void 0}var ep=fw,pw=ep;function gw(n,e,i){var o=n==null?void 0:pw(n,e);return o===void 0?i:o}var vw=gw;function bw(n,e){return n!=null&&e in Object(n)}var mw=bw,yw=Qf,Cw=Bf,ww=Nn,xw=h0,zw=f0,Lw=Il;function Sw(n,e,i){e=yw(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Lw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&zw(l)&&xw(u,l)&&(ww(n)||Cw(n)))}var Mw=Sw,Tw=mw,kw=Mw;function $w(n,e){return n!=null&&kw(n,e,Tw)}var Ow=$w,Ew=qf,_w=vw,Iw=Ow,Aw=p0,Pw=Kf,Dw=Yf,Nw=Il,Hw=1,Rw=2;function Fw(n,e){return Aw(n)&&Pw(e)?Dw(Nw(n),e):function(i){var o=_w(i,n);return o===void 0&&o===e?Iw(i,n):Ew(e,o,Hw|Rw)}}var Bw=Fw;function Vw(n){return n}var Zw=Vw;function Ww(n){return function(e){return e==null?void 0:e[n]}}var Uw=Ww,jw=ep;function Gw(n){return function(e){return jw(e,n)}}var qw=Gw,Kw=Uw,Yw=qw,Xw=p0,Jw=Il;function Qw(n){return Xw(n)?Kw(Jw(n)):Yw(n)}var ex=Qw,tx=MC,rx=Bw,nx=Zw,ix=Nn,ox=ex;function ax(n){return typeof n=="function"?n:n==null?nx:typeof n=="object"?ix(n)?rx(n[0],n[1]):tx(n):ox(n)}var sx=ax,lx=/\s/;function cx(n){for(var e=n.length;e--&&lx.test(n.charAt(e)););return e}var ux=cx,dx=ux,hx=/^\s+/;function fx(n){return n&&n.slice(0,dx(n)+1).replace(hx,"")}var px=fx,gx=px,Rh=Ia,vx=_l,Fh=0/0,bx=/^[-+]0x[0-9a-f]+$/i,mx=/^0b[01]+$/i,yx=/^0o[0-7]+$/i,Cx=parseInt;function wx(n){if(typeof n=="number")return n;if(vx(n))return Fh;if(Rh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Rh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=gx(n);var i=mx.test(n);return i||yx.test(n)?Cx(n.slice(2),i?2:8):bx.test(n)?Fh:+n}var xx=wx,zx=xx,Bh=1/0,Lx=17976931348623157e292;function Sx(n){if(!n)return n===0?n:0;if(n=zx(n),n===Bh||n===-Bh){var e=n<0?-1:1;return e*Lx}return n===n?n:0}var tp=Sx,Mx=tp;function Tx(n){var e=Mx(n),i=e%1;return e===e?i?e-i:e:0}var kx=Tx,$x=W9,Ox=sx,Ex=kx,_x=Math.max,Ix=Math.min;function Ax(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Ex(i),l=i<0?_x(o+l,0):Ix(l,o-1)),$x(n,Ox(e),l,!0)}var Px=Ax;const Dx=l0(Px);/**
|
|
1716
|
+
`;Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Gr([O({type:Array})],exports.DropdownMenu.prototype,"selected",2);Gr([O()],exports.DropdownMenu.prototype,"size",2);Gr([pe()],exports.DropdownMenu.prototype,"fluidWidth",2);Gr([pe()],exports.DropdownMenu.prototype,"disabled",2);Gr([Er("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Gr([Er("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Gr([cn()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Gr([R(Af)],exports.DropdownMenu);var pa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function c0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Z9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var W9=Z9;function U9(){this.__data__=[],this.size=0}var j9=U9;function G9(n,e){return n===e||n!==n&&e!==e}var u0=G9,q9=u0;function K9(n,e){for(var i=n.length;i--;)if(q9(n[i][0],e))return i;return-1}var Tl=K9,Y9=Tl,X9=Array.prototype,J9=X9.splice;function Q9(n){var e=this.__data__,i=Y9(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():J9.call(e,i,1),--this.size,!0}var e8=Q9,t8=Tl;function r8(n){var e=this.__data__,i=t8(e,n);return i<0?void 0:e[i][1]}var n8=r8,i8=Tl;function o8(n){return i8(this.__data__,n)>-1}var a8=o8,s8=Tl;function l8(n,e){var i=this.__data__,o=s8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var c8=l8,u8=j9,d8=e8,h8=n8,f8=a8,p8=c8;function fo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}fo.prototype.clear=u8;fo.prototype.delete=d8;fo.prototype.get=h8;fo.prototype.has=f8;fo.prototype.set=p8;var kl=fo,g8=kl;function v8(){this.__data__=new g8,this.size=0}var b8=v8;function m8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var y8=m8;function C8(n){return this.__data__.get(n)}var w8=C8;function x8(n){return this.__data__.has(n)}var z8=x8,L8=typeof pa=="object"&&pa&&pa.Object===Object&&pa,Pf=L8,S8=Pf,M8=typeof self=="object"&&self&&self.Object===Object&&self,T8=S8||M8||Function("return this")(),hn=T8,k8=hn,$8=k8.Symbol,$l=$8,hh=$l,Df=Object.prototype,O8=Df.hasOwnProperty,E8=Df.toString,la=hh?hh.toStringTag:void 0;function _8(n){var e=O8.call(n,la),i=n[la];try{n[la]=void 0;var o=!0}catch{}var l=E8.call(n);return o&&(e?n[la]=i:delete n[la]),l}var I8=_8,A8=Object.prototype,P8=A8.toString;function D8(n){return P8.call(n)}var N8=D8,fh=$l,H8=I8,R8=N8,F8="[object Null]",B8="[object Undefined]",ph=fh?fh.toStringTag:void 0;function V8(n){return n==null?n===void 0?B8:F8:ph&&ph in Object(n)?H8(n):R8(n)}var _a=V8;function Z8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Ia=Z8,W8=_a,U8=Ia,j8="[object AsyncFunction]",G8="[object Function]",q8="[object GeneratorFunction]",K8="[object Proxy]";function Y8(n){if(!U8(n))return!1;var e=W8(n);return e==G8||e==q8||e==j8||e==K8}var Nf=Y8,X8=hn,J8=X8["__core-js_shared__"],Q8=J8,ic=Q8,gh=function(){var n=/[^.]+$/.exec(ic&&ic.keys&&ic.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function eg(n){return!!gh&&gh in n}var tg=eg,rg=Function.prototype,ng=rg.toString;function ig(n){if(n!=null){try{return ng.call(n)}catch{}try{return n+""}catch{}}return""}var Hf=ig,og=Nf,ag=tg,sg=Ia,lg=Hf,cg=/[\\^$.*+?()[\]{}|]/g,ug=/^\[object .+?Constructor\]$/,dg=Function.prototype,hg=Object.prototype,fg=dg.toString,pg=hg.hasOwnProperty,gg=RegExp("^"+fg.call(pg).replace(cg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vg(n){if(!sg(n)||ag(n))return!1;var e=og(n)?gg:ug;return e.test(lg(n))}var bg=vg;function mg(n,e){return n==null?void 0:n[e]}var yg=mg,Cg=bg,wg=yg;function xg(n,e){var i=wg(n,e);return Cg(i)?i:void 0}var po=xg,zg=po,Lg=hn,Sg=zg(Lg,"Map"),d0=Sg,Mg=po,Tg=Mg(Object,"create"),Ol=Tg,vh=Ol;function kg(){this.__data__=vh?vh(null):{},this.size=0}var $g=kg;function Og(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Eg=Og,_g=Ol,Ig="__lodash_hash_undefined__",Ag=Object.prototype,Pg=Ag.hasOwnProperty;function Dg(n){var e=this.__data__;if(_g){var i=e[n];return i===Ig?void 0:i}return Pg.call(e,n)?e[n]:void 0}var Ng=Dg,Hg=Ol,Rg=Object.prototype,Fg=Rg.hasOwnProperty;function Bg(n){var e=this.__data__;return Hg?e[n]!==void 0:Fg.call(e,n)}var Vg=Bg,Zg=Ol,Wg="__lodash_hash_undefined__";function Ug(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=Zg&&e===void 0?Wg:e,this}var jg=Ug,Gg=$g,qg=Eg,Kg=Ng,Yg=Vg,Xg=jg;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=Gg;go.prototype.delete=qg;go.prototype.get=Kg;go.prototype.has=Yg;go.prototype.set=Xg;var Jg=go,bh=Jg,Qg=kl,ev=d0;function tv(){this.size=0,this.__data__={hash:new bh,map:new(ev||Qg),string:new bh}}var rv=tv;function nv(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var iv=nv,ov=iv;function av(n,e){var i=n.__data__;return ov(e)?i[typeof e=="string"?"string":"hash"]:i.map}var El=av,sv=El;function lv(n){var e=sv(this,n).delete(n);return this.size-=e?1:0,e}var cv=lv,uv=El;function dv(n){return uv(this,n).get(n)}var hv=dv,fv=El;function pv(n){return fv(this,n).has(n)}var gv=pv,vv=El;function bv(n,e){var i=vv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var mv=bv,yv=rv,Cv=cv,wv=hv,xv=gv,zv=mv;function vo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}vo.prototype.clear=yv;vo.prototype.delete=Cv;vo.prototype.get=wv;vo.prototype.has=xv;vo.prototype.set=zv;var h0=vo,Lv=kl,Sv=d0,Mv=h0,Tv=200;function kv(n,e){var i=this.__data__;if(i instanceof Lv){var o=i.__data__;if(!Sv||o.length<Tv-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new Mv(o)}return i.set(n,e),this.size=i.size,this}var $v=kv,Ov=kl,Ev=b8,_v=y8,Iv=w8,Av=z8,Pv=$v;function bo(n){var e=this.__data__=new Ov(n);this.size=e.size}bo.prototype.clear=Ev;bo.prototype.delete=_v;bo.prototype.get=Iv;bo.prototype.has=Av;bo.prototype.set=Pv;var Rf=bo,Dv="__lodash_hash_undefined__";function Nv(n){return this.__data__.set(n,Dv),this}var Hv=Nv;function Rv(n){return this.__data__.has(n)}var Fv=Rv,Bv=h0,Vv=Hv,Zv=Fv;function Js(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Bv;++e<i;)this.add(n[e])}Js.prototype.add=Js.prototype.push=Vv;Js.prototype.has=Zv;var Wv=Js;function Uv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var jv=Uv;function Gv(n,e){return n.has(e)}var qv=Gv,Kv=Wv,Yv=jv,Xv=qv,Jv=1,Qv=2;function eb(n,e,i,o,l,d){var u=i&Jv,v=n.length,y=e.length;if(v!=y&&!(u&&y>v))return!1;var m=d.get(n),T=d.get(e);if(m&&T)return m==e&&T==n;var S=-1,$=!0,E=i&Qv?new Kv:void 0;for(d.set(n,e),d.set(e,n);++S<v;){var N=n[S],G=e[S];if(o)var ee=u?o(G,N,S,e,n,d):o(N,G,S,n,e,d);if(ee!==void 0){if(ee)continue;$=!1;break}if(E){if(!Yv(e,function(te,se){if(!Xv(E,se)&&(N===te||l(N,te,i,o,d)))return E.push(se)})){$=!1;break}}else if(!(N===G||l(N,G,i,o,d))){$=!1;break}}return d.delete(n),d.delete(e),$}var Ff=eb,tb=hn,rb=tb.Uint8Array,nb=rb;function ib(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var ob=ib;function ab(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var sb=ab,mh=$l,yh=nb,lb=u0,cb=Ff,ub=ob,db=sb,hb=1,fb=2,pb="[object Boolean]",gb="[object Date]",vb="[object Error]",bb="[object Map]",mb="[object Number]",yb="[object RegExp]",Cb="[object Set]",wb="[object String]",xb="[object Symbol]",zb="[object ArrayBuffer]",Lb="[object DataView]",Ch=mh?mh.prototype:void 0,oc=Ch?Ch.valueOf:void 0;function Sb(n,e,i,o,l,d,u){switch(i){case Lb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case zb:return!(n.byteLength!=e.byteLength||!d(new yh(n),new yh(e)));case pb:case gb:case mb:return lb(+n,+e);case vb:return n.name==e.name&&n.message==e.message;case yb:case wb:return n==e+"";case bb:var v=ub;case Cb:var y=o&hb;if(v||(v=db),n.size!=e.size&&!y)return!1;var m=u.get(n);if(m)return m==e;o|=fb,u.set(n,e);var T=cb(v(n),v(e),o,l,d,u);return u.delete(n),T;case xb:if(oc)return oc.call(n)==oc.call(e)}return!1}var Mb=Sb;function Tb(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var kb=Tb,$b=Array.isArray,Nn=$b,Ob=kb,Eb=Nn;function _b(n,e,i){var o=e(n);return Eb(n)?o:Ob(o,i(n))}var Ib=_b;function Ab(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Pb=Ab;function Db(){return[]}var Nb=Db,Hb=Pb,Rb=Nb,Fb=Object.prototype,Bb=Fb.propertyIsEnumerable,wh=Object.getOwnPropertySymbols,Vb=wh?function(n){return n==null?[]:(n=Object(n),Hb(wh(n),function(e){return Bb.call(n,e)}))}:Rb,Zb=Vb;function Wb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var Ub=Wb;function jb(n){return n!=null&&typeof n=="object"}var Aa=jb,Gb=_a,qb=Aa,Kb="[object Arguments]";function Yb(n){return qb(n)&&Gb(n)==Kb}var Xb=Yb,xh=Xb,Jb=Aa,Bf=Object.prototype,Qb=Bf.hasOwnProperty,em=Bf.propertyIsEnumerable,tm=xh(function(){return arguments}())?xh:function(n){return Jb(n)&&Qb.call(n,"callee")&&!em.call(n,"callee")},Vf=tm,Qs={exports:{}};function rm(){return!1}var nm=rm;Qs.exports;(function(n,e){var i=hn,o=nm,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,y=v?v.isBuffer:void 0,m=y||o;n.exports=m})(Qs,Qs.exports);var Zf=Qs.exports,im=9007199254740991,om=/^(?:0|[1-9]\d*)$/;function am(n,e){var i=typeof n;return e=e==null?im:e,!!e&&(i=="number"||i!="symbol"&&om.test(n))&&n>-1&&n%1==0&&n<e}var f0=am,sm=9007199254740991;function lm(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=sm}var p0=lm,cm=_a,um=p0,dm=Aa,hm="[object Arguments]",fm="[object Array]",pm="[object Boolean]",gm="[object Date]",vm="[object Error]",bm="[object Function]",mm="[object Map]",ym="[object Number]",Cm="[object Object]",wm="[object RegExp]",xm="[object Set]",zm="[object String]",Lm="[object WeakMap]",Sm="[object ArrayBuffer]",Mm="[object DataView]",Tm="[object Float32Array]",km="[object Float64Array]",$m="[object Int8Array]",Om="[object Int16Array]",Em="[object Int32Array]",_m="[object Uint8Array]",Im="[object Uint8ClampedArray]",Am="[object Uint16Array]",Pm="[object Uint32Array]",et={};et[Tm]=et[km]=et[$m]=et[Om]=et[Em]=et[_m]=et[Im]=et[Am]=et[Pm]=!0;et[hm]=et[fm]=et[Sm]=et[pm]=et[Mm]=et[gm]=et[vm]=et[bm]=et[mm]=et[ym]=et[Cm]=et[wm]=et[xm]=et[zm]=et[Lm]=!1;function Dm(n){return dm(n)&&um(n.length)&&!!et[cm(n)]}var Nm=Dm;function Hm(n){return function(e){return n(e)}}var Rm=Hm,el={exports:{}};el.exports;(function(n,e){var i=Pf,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var y=l&&l.require&&l.require("util").types;return y||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(el,el.exports);var Fm=el.exports,Bm=Nm,Vm=Rm,zh=Fm,Lh=zh&&zh.isTypedArray,Zm=Lh?Vm(Lh):Bm,Wf=Zm,Wm=Ub,Um=Vf,jm=Nn,Gm=Zf,qm=f0,Km=Wf,Ym=Object.prototype,Xm=Ym.hasOwnProperty;function Jm(n,e){var i=jm(n),o=!i&&Um(n),l=!i&&!o&&Gm(n),d=!i&&!o&&!l&&Km(n),u=i||o||l||d,v=u?Wm(n.length,String):[],y=v.length;for(var m in n)(e||Xm.call(n,m))&&!(u&&(m=="length"||l&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||qm(m,y)))&&v.push(m);return v}var Qm=Jm,ey=Object.prototype;function ty(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||ey;return n===i}var ry=ty;function ny(n,e){return function(i){return n(e(i))}}var iy=ny,oy=iy,ay=oy(Object.keys,Object),sy=ay,ly=ry,cy=sy,uy=Object.prototype,dy=uy.hasOwnProperty;function hy(n){if(!ly(n))return cy(n);var e=[];for(var i in Object(n))dy.call(n,i)&&i!="constructor"&&e.push(i);return e}var fy=hy,py=Nf,gy=p0;function vy(n){return n!=null&&gy(n.length)&&!py(n)}var Uf=vy,by=Qm,my=fy,yy=Uf;function Cy(n){return yy(n)?by(n):my(n)}var jf=Cy,wy=Ib,xy=Zb,zy=jf;function Ly(n){return wy(n,zy,xy)}var Sy=Ly,Sh=Sy,My=1,Ty=Object.prototype,ky=Ty.hasOwnProperty;function $y(n,e,i,o,l,d){var u=i&My,v=Sh(n),y=v.length,m=Sh(e),T=m.length;if(y!=T&&!u)return!1;for(var S=y;S--;){var $=v[S];if(!(u?$ in e:ky.call(e,$)))return!1}var E=d.get(n),N=d.get(e);if(E&&N)return E==e&&N==n;var G=!0;d.set(n,e),d.set(e,n);for(var ee=u;++S<y;){$=v[S];var te=n[$],se=e[$];if(o)var re=u?o(se,te,$,e,n,d):o(te,se,$,n,e,d);if(!(re===void 0?te===se||l(te,se,i,o,d):re)){G=!1;break}ee||(ee=$=="constructor")}if(G&&!ee){var ue=n.constructor,xe=e.constructor;ue!=xe&&"constructor"in n&&"constructor"in e&&!(typeof ue=="function"&&ue instanceof ue&&typeof xe=="function"&&xe instanceof xe)&&(G=!1)}return d.delete(n),d.delete(e),G}var Oy=$y,Ey=po,_y=hn,Iy=Ey(_y,"DataView"),Ay=Iy,Py=po,Dy=hn,Ny=Py(Dy,"Promise"),Hy=Ny,Ry=po,Fy=hn,By=Ry(Fy,"Set"),Vy=By,Zy=po,Wy=hn,Uy=Zy(Wy,"WeakMap"),jy=Uy,Oc=Ay,Ec=d0,_c=Hy,Ic=Vy,Ac=jy,Gf=_a,mo=Hf,Mh="[object Map]",Gy="[object Object]",Th="[object Promise]",kh="[object Set]",$h="[object WeakMap]",Oh="[object DataView]",qy=mo(Oc),Ky=mo(Ec),Yy=mo(_c),Xy=mo(Ic),Jy=mo(Ac),ai=Gf;(Oc&&ai(new Oc(new ArrayBuffer(1)))!=Oh||Ec&&ai(new Ec)!=Mh||_c&&ai(_c.resolve())!=Th||Ic&&ai(new Ic)!=kh||Ac&&ai(new Ac)!=$h)&&(ai=function(n){var e=Gf(n),i=e==Gy?n.constructor:void 0,o=i?mo(i):"";if(o)switch(o){case qy:return Oh;case Ky:return Mh;case Yy:return Th;case Xy:return kh;case Jy:return $h}return e});var Qy=ai,ac=Rf,eC=Ff,tC=Mb,rC=Oy,Eh=Qy,_h=Nn,Ih=Zf,nC=Wf,iC=1,Ah="[object Arguments]",Ph="[object Array]",Ts="[object Object]",oC=Object.prototype,Dh=oC.hasOwnProperty;function aC(n,e,i,o,l,d){var u=_h(n),v=_h(e),y=u?Ph:Eh(n),m=v?Ph:Eh(e);y=y==Ah?Ts:y,m=m==Ah?Ts:m;var T=y==Ts,S=m==Ts,$=y==m;if($&&Ih(n)){if(!Ih(e))return!1;u=!0,T=!1}if($&&!T)return d||(d=new ac),u||nC(n)?eC(n,e,i,o,l,d):tC(n,e,y,i,o,l,d);if(!(i&iC)){var E=T&&Dh.call(n,"__wrapped__"),N=S&&Dh.call(e,"__wrapped__");if(E||N){var G=E?n.value():n,ee=N?e.value():e;return d||(d=new ac),l(G,ee,i,o,d)}}return $?(d||(d=new ac),rC(n,e,i,o,l,d)):!1}var sC=aC,lC=sC,Nh=Aa;function qf(n,e,i,o,l){return n===e?!0:n==null||e==null||!Nh(n)&&!Nh(e)?n!==n&&e!==e:lC(n,e,i,o,qf,l)}var Kf=qf,cC=Rf,uC=Kf,dC=1,hC=2;function fC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var y=v[0],m=n[y],T=v[1];if(u&&v[2]){if(m===void 0&&!(y in n))return!1}else{var S=new cC;if(o)var $=o(m,T,y,n,e,S);if(!($===void 0?uC(T,m,dC|hC,o,S):$))return!1}}return!0}var pC=fC,gC=Ia;function vC(n){return n===n&&!gC(n)}var Yf=vC,bC=Yf,mC=jf;function yC(n){for(var e=mC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,bC(l)]}return e}var CC=yC;function wC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var Xf=wC,xC=pC,zC=CC,LC=Xf;function SC(n){var e=zC(n);return e.length==1&&e[0][2]?LC(e[0][0],e[0][1]):function(i){return i===n||xC(i,n,e)}}var MC=SC,TC=_a,kC=Aa,$C="[object Symbol]";function OC(n){return typeof n=="symbol"||kC(n)&&TC(n)==$C}var _l=OC,EC=Nn,_C=_l,IC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AC=/^\w*$/;function PC(n,e){if(EC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||_C(n)?!0:AC.test(n)||!IC.test(n)||e!=null&&n in Object(e)}var g0=PC,Jf=h0,DC="Expected a function";function v0(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(DC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(v0.Cache||Jf),i}v0.Cache=Jf;var NC=v0,HC=NC,RC=500;function FC(n){var e=HC(n,function(o){return i.size===RC&&i.clear(),o}),i=e.cache;return e}var BC=FC,VC=BC,ZC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WC=/\\(\\)?/g,UC=VC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(ZC,function(i,o,l,d){e.push(l?d.replace(WC,"$1"):o||i)}),e}),jC=UC;function GC(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var qC=GC,Hh=$l,KC=qC,YC=Nn,XC=_l,JC=1/0,Rh=Hh?Hh.prototype:void 0,Fh=Rh?Rh.toString:void 0;function Qf(n){if(typeof n=="string")return n;if(YC(n))return KC(n,Qf)+"";if(XC(n))return Fh?Fh.call(n):"";var e=n+"";return e=="0"&&1/n==-JC?"-0":e}var QC=Qf,ew=QC;function tw(n){return n==null?"":ew(n)}var rw=tw,nw=Nn,iw=g0,ow=jC,aw=rw;function sw(n,e){return nw(n)?n:iw(n,e)?[n]:ow(aw(n))}var ep=sw,lw=_l,cw=1/0;function uw(n){if(typeof n=="string"||lw(n))return n;var e=n+"";return e=="0"&&1/n==-cw?"-0":e}var Il=uw,dw=ep,hw=Il;function fw(n,e){e=dw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[hw(e[i++])];return i&&i==o?n:void 0}var tp=fw,pw=tp;function gw(n,e,i){var o=n==null?void 0:pw(n,e);return o===void 0?i:o}var vw=gw;function bw(n,e){return n!=null&&e in Object(n)}var mw=bw,yw=ep,Cw=Vf,ww=Nn,xw=f0,zw=p0,Lw=Il;function Sw(n,e,i){e=yw(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Lw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&zw(l)&&xw(u,l)&&(ww(n)||Cw(n)))}var Mw=Sw,Tw=mw,kw=Mw;function $w(n,e){return n!=null&&kw(n,e,Tw)}var Ow=$w,Ew=Kf,_w=vw,Iw=Ow,Aw=g0,Pw=Yf,Dw=Xf,Nw=Il,Hw=1,Rw=2;function Fw(n,e){return Aw(n)&&Pw(e)?Dw(Nw(n),e):function(i){var o=_w(i,n);return o===void 0&&o===e?Iw(i,n):Ew(e,o,Hw|Rw)}}var Bw=Fw;function Vw(n){return n}var Zw=Vw;function Ww(n){return function(e){return e==null?void 0:e[n]}}var Uw=Ww,jw=tp;function Gw(n){return function(e){return jw(e,n)}}var qw=Gw,Kw=Uw,Yw=qw,Xw=g0,Jw=Il;function Qw(n){return Xw(n)?Kw(Jw(n)):Yw(n)}var ex=Qw,tx=MC,rx=Bw,nx=Zw,ix=Nn,ox=ex;function ax(n){return typeof n=="function"?n:n==null?nx:typeof n=="object"?ix(n)?rx(n[0],n[1]):tx(n):ox(n)}var sx=ax,lx=/\s/;function cx(n){for(var e=n.length;e--&&lx.test(n.charAt(e)););return e}var ux=cx,dx=ux,hx=/^\s+/;function fx(n){return n&&n.slice(0,dx(n)+1).replace(hx,"")}var px=fx,gx=px,Bh=Ia,vx=_l,Vh=0/0,bx=/^[-+]0x[0-9a-f]+$/i,mx=/^0b[01]+$/i,yx=/^0o[0-7]+$/i,Cx=parseInt;function wx(n){if(typeof n=="number")return n;if(vx(n))return Vh;if(Bh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Bh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=gx(n);var i=mx.test(n);return i||yx.test(n)?Cx(n.slice(2),i?2:8):bx.test(n)?Vh:+n}var xx=wx,zx=xx,Zh=1/0,Lx=17976931348623157e292;function Sx(n){if(!n)return n===0?n:0;if(n=zx(n),n===Zh||n===-Zh){var e=n<0?-1:1;return e*Lx}return n===n?n:0}var rp=Sx,Mx=rp;function Tx(n){var e=Mx(n),i=e%1;return e===e?i?e-i:e:0}var kx=Tx,$x=W9,Ox=sx,Ex=kx,_x=Math.max,Ix=Math.min;function Ax(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Ex(i),l=i<0?_x(o+l,0):Ix(l,o-1)),$x(n,Ox(e),l,!0)}var Px=Ax;const Dx=c0(Px);/**
|
|
1717
1717
|
* @license
|
|
1718
1718
|
* Copyright 2020 Google LLC
|
|
1719
1719
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1720
|
-
*/const{I:Nx}=J3,
|
|
1720
|
+
*/const{I:Nx}=J3,Wh=()=>document.createComment(""),ca=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(Wh(),d),v=l.insertBefore(Wh(),d);i=new Nx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,y=v!==n;if(y){let m;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(m=n._$AU)!==v._$AU&&i._$AP(m)}if(u!==d||y){let m=i._$AA;for(;m!==u;){const T=m.nextSibling;l.insertBefore(m,d),m=T}}}return i},ni=(n,e,i=n)=>(n._$AI(e,i),n),Hx={},Rx=(n,e=Hx)=>n._$AH=e,Fx=n=>n._$AH,sc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
|
|
1721
1721
|
* @license
|
|
1722
1722
|
* Copyright 2017 Google LLC
|
|
1723
1723
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1724
|
-
*/const
|
|
1724
|
+
*/const Uh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Bx=yl(class extends Cl{constructor(n){if(super(n),n.type!==ml.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Fx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const y=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],m=[];let T,S,$=0,E=d.length-1,N=0,G=u.length-1;for(;$<=E&&N<=G;)if(d[$]===null)$++;else if(d[E]===null)E--;else if(y[$]===v[N])m[N]=ni(d[$],u[N]),$++,N++;else if(y[E]===v[G])m[G]=ni(d[E],u[G]),E--,G--;else if(y[$]===v[G])m[G]=ni(d[$],u[G]),ca(n,m[G+1],d[$]),$++,G--;else if(y[E]===v[N])m[N]=ni(d[E],u[N]),ca(n,d[$],d[E]),E--,N++;else if(T===void 0&&(T=Uh(v,N,G),S=Uh(y,$,E)),T.has(y[$]))if(T.has(y[E])){const ee=S.get(v[N]),te=ee!==void 0?d[ee]:null;if(te===null){const se=ca(n,d[$]);ni(se,u[N]),m[N]=se}else m[N]=ni(te,u[N]),ca(n,d[$],te),d[ee]=null;N++}else sc(d[E]),E--;else sc(d[$]),$++;for(;N<=G;){const ee=ca(n,m[G+1]);ni(ee,u[N]),m[N++]=ee}for(;$<=E;){const ee=d[$++];ee!==null&&sc(ee)}return this.ht=v,Rx(n,m),sn}});/**
|
|
1725
1725
|
* @license
|
|
1726
1726
|
* Copyright 2018 Google LLC
|
|
1727
1727
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1728
|
-
*/const
|
|
1728
|
+
*/const np="important",Vx=" !"+np,Zx=yl(class extends Cl{constructor(n){var e;if(super(n),n.type!==ml.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Vx);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?np:""):i[o]=l}}return sn}});var Wx=Object.defineProperty,Ux=Object.getOwnPropertyDescriptor,Xt=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ux(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Wx(e,i,l),l};const b0=ne("virtual-list");exports.VirtualList=class extends me{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>P`
|
|
1729
1729
|
<div
|
|
1730
1730
|
class="default-render-item"
|
|
1731
1731
|
style="min-height: ${this.itemMinHeight}px"
|
|
1732
1732
|
>
|
|
1733
1733
|
Item ${i}: ${JSON.stringify(e)}
|
|
1734
1734
|
</div>
|
|
1735
|
-
`,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=
|
|
1735
|
+
`,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=Q2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),y=u==null?void 0:u.className;this.itemIdentifier=`${v}${y?`.${y}`:""}`}const l=P`
|
|
1736
1736
|
<div class="item-wrapper" style=${Zx(i)}>
|
|
1737
1737
|
${o}
|
|
1738
1738
|
</div>
|
|
1739
|
-
`;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new
|
|
1739
|
+
`;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new ip({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),P`
|
|
1740
1740
|
<div class="container" @scroll=${this.handleScroll}>
|
|
1741
1741
|
<div class="list" style="height: ${this.innerHeight}px">
|
|
1742
1742
|
${Bx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
|
|
@@ -1756,7 +1756,7 @@
|
|
|
1756
1756
|
.list {
|
|
1757
1757
|
position: relative;
|
|
1758
1758
|
}
|
|
1759
|
-
`];Xt([O({type:Array})],exports.VirtualList.prototype,"items",2);Xt([O({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);Xt([O({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);Xt([O({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);Xt([pe()],exports.VirtualList.prototype,"currentScrollTop",2);Xt([pe()],exports.VirtualList.prototype,"endIndex",2);Xt([pe()],exports.VirtualList.prototype,"innerHeight",2);Xt([pe()],exports.VirtualList.prototype,"itemHeights",2);Xt([pe()],exports.VirtualList.prototype,"itemIdentifier",2);Xt([pe()],exports.VirtualList.prototype,"originalItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"currentItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"visibleItems",2);Xt([Er(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=Xt([R(
|
|
1759
|
+
`];Xt([O({type:Array})],exports.VirtualList.prototype,"items",2);Xt([O({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);Xt([O({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);Xt([O({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);Xt([pe()],exports.VirtualList.prototype,"currentScrollTop",2);Xt([pe()],exports.VirtualList.prototype,"endIndex",2);Xt([pe()],exports.VirtualList.prototype,"innerHeight",2);Xt([pe()],exports.VirtualList.prototype,"itemHeights",2);Xt([pe()],exports.VirtualList.prototype,"itemIdentifier",2);Xt([pe()],exports.VirtualList.prototype,"originalItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"currentItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"visibleItems",2);Xt([Er(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=Xt([R(b0)],exports.VirtualList);class ip extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const op=ne("record-field"),ap=ne("record-field-label"),jx=["x-small","small","medium","large","x-large","auto","full"],Gx=["side","top"],qx=j`
|
|
1760
1760
|
.size-x-small {
|
|
1761
1761
|
width: 80px;
|
|
1762
1762
|
}
|
|
@@ -1885,16 +1885,16 @@
|
|
|
1885
1885
|
${this.valueTemplate}
|
|
1886
1886
|
</div>
|
|
1887
1887
|
</div>
|
|
1888
|
-
`}};exports.RecordField.styles=[Kx,qx];fn([O({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);fn([O({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);fn([pe()],exports.RecordField.prototype,"hasLabel",2);fn([pe()],exports.RecordField.prototype,"hasLabelRight",2);fn([pe()],exports.RecordField.prototype,"isValueMultiline",2);fn([Er(".value")],exports.RecordField.prototype,"value",2);fn([cn({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);fn([cn({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=fn([R(
|
|
1888
|
+
`}};exports.RecordField.styles=[Kx,qx];fn([O({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);fn([O({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);fn([pe()],exports.RecordField.prototype,"hasLabel",2);fn([pe()],exports.RecordField.prototype,"hasLabelRight",2);fn([pe()],exports.RecordField.prototype,"isValueMultiline",2);fn([Er(".value")],exports.RecordField.prototype,"value",2);fn([cn({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);fn([cn({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=fn([R(op)],exports.RecordField);var Qx=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,m0=(n,e,i,o)=>{for(var l=o>1?void 0:o?ez(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qx(e,i,l),l};exports.RecordFieldLabel=class extends me{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return P` <slot></slot> `}};exports.RecordFieldLabel.styles=[Yx];m0([pe()],exports.RecordFieldLabel.prototype,"hasContent",2);m0([cn()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=m0([R(ap)],exports.RecordFieldLabel);var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,Hn=(n,e,i,o)=>{for(var l=o>1?void 0:o?rz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tz(e,i,l),l};class Jt extends me{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}Jt.shadowRootOptions={mode:"open",delegatesFocus:!0};Hn([O({type:Boolean,reflect:!0})],Jt.prototype,"disabled",2);Hn([O({type:Boolean,reflect:!0})],Jt.prototype,"required",2);Hn([O({type:Boolean,reflect:!0})],Jt.prototype,"invalid",2);Hn([O({type:String})],Jt.prototype,"name",2);Hn([O({type:String})],Jt.prototype,"id",2);Hn([O({type:String})],Jt.prototype,"value",2);Hn([pe()],Jt.prototype,"proxyInput",2);Hn([pe()],Jt.prototype,"useProxy",2);var nz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,oz=(n,e,i,o)=>{for(var l=o>1?void 0:o?iz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nz(e,i,l),l};const az=ne("input-guide");let tl=class extends me{render(){return P` <slot></slot> `}};tl.styles=j`
|
|
1889
1889
|
:host {
|
|
1890
1890
|
font-size: var(--brz-font-size-xs);
|
|
1891
1891
|
}
|
|
1892
|
-
`;tl=oz([R(az)],tl);var sz=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,cz=(n,e,i,o)=>{for(var l=o>1?void 0:o?lz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sz(e,i,l),l};const
|
|
1892
|
+
`;tl=oz([R(az)],tl);var sz=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,cz=(n,e,i,o)=>{for(var l=o>1?void 0:o?lz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sz(e,i,l),l};const sp=ne("input-error");exports.InputError=class extends me{render(){return P` <slot></slot> `}};exports.InputError.styles=j`
|
|
1893
1893
|
:host {
|
|
1894
1894
|
font-size: var(--brz-font-size);
|
|
1895
1895
|
color: var(--brz-color-error);
|
|
1896
1896
|
}
|
|
1897
|
-
`;exports.InputError=cz([R(
|
|
1897
|
+
`;exports.InputError=cz([R(sp)],exports.InputError);var uz=Object.defineProperty,dz=Object.getOwnPropertyDescriptor,qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?dz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uz(e,i,l),l};const lp=ne("labeled-input"),cp=ne("input-label"),hz=j`
|
|
1898
1898
|
.guide {
|
|
1899
1899
|
display: flex;
|
|
1900
1900
|
}
|
|
@@ -1953,7 +1953,7 @@
|
|
|
1953
1953
|
:host([optional]:not([required])) .label-flag {
|
|
1954
1954
|
color: var(--brz-color-text-placeholder);
|
|
1955
1955
|
}
|
|
1956
|
-
`,hz];qr([O({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);qr([O({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);qr([O({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);qr([pe()],exports.LabeledInput.prototype,"hasPrompt",2);qr([pe()],exports.LabeledInput.prototype,"hasError",2);qr([pe()],exports.LabeledInput.prototype,"hasLabel",2);qr([cn({slot:"label"})],exports.LabeledInput.prototype,"label",2);qr([cn({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=qr([R(
|
|
1956
|
+
`,hz];qr([O({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);qr([O({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);qr([O({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);qr([pe()],exports.LabeledInput.prototype,"hasPrompt",2);qr([pe()],exports.LabeledInput.prototype,"hasError",2);qr([pe()],exports.LabeledInput.prototype,"hasLabel",2);qr([cn({slot:"label"})],exports.LabeledInput.prototype,"label",2);qr([cn({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=qr([R(lp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=qr([R(cp)],exports.InputLabel);var fz=Object.defineProperty,pz=Object.getOwnPropertyDescriptor,Al=(n,e,i,o)=>{for(var l=o>1?void 0:o?pz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fz(e,i,l),l};const gz=j`
|
|
1957
1957
|
:host {
|
|
1958
1958
|
--input-text-color: var(--brz-color-neutral-850);
|
|
1959
1959
|
--input-font: var(--brz-font-family);
|
|
@@ -2058,7 +2058,7 @@
|
|
|
2058
2058
|
class="trailing"
|
|
2059
2059
|
></brz-icon>`:null}
|
|
2060
2060
|
</div>
|
|
2061
|
-
`}}Ut.styles=[...exports.LabeledInput.styles,gz];Al([O({type:Boolean,reflect:!0})],Ut.prototype,"readonly",2);Al([O({type:String,reflect:!0})],Ut.prototype,"placeholder",2);Al([O({type:String,reflect:!0,attribute:"leading-icon"})],Ut.prototype,"leadingIcon",2);Al([O({type:String,reflect:!0,attribute:"trailing-icon"})],Ut.prototype,"trailingIcon",2);var vz=Object.defineProperty,bz=Object.getOwnPropertyDescriptor,vr=(n,e,i,o)=>{for(var l=o>1?void 0:o?bz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vz(e,i,l),l};const Ma="searchMessage",
|
|
2061
|
+
`}}Ut.styles=[...exports.LabeledInput.styles,gz];Al([O({type:Boolean,reflect:!0})],Ut.prototype,"readonly",2);Al([O({type:String,reflect:!0})],Ut.prototype,"placeholder",2);Al([O({type:String,reflect:!0,attribute:"leading-icon"})],Ut.prototype,"leadingIcon",2);Al([O({type:String,reflect:!0,attribute:"trailing-icon"})],Ut.prototype,"trailingIcon",2);var vz=Object.defineProperty,bz=Object.getOwnPropertyDescriptor,vr=(n,e,i,o)=>{for(var l=o>1?void 0:o?bz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vz(e,i,l),l};const Ma="searchMessage",jh="";class vt extends Ut{constructor(){super(...arguments),this.controlled=!1,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(e=>({...e,id:`option-${Sc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return!e||(e==null?void 0:e.value)===""?"":e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(b0)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(rl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(rl):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():P`
|
|
2062
2062
|
<brz-dropdown-menu
|
|
2063
2063
|
@brz-menu-select=${this.handleSelect}
|
|
2064
2064
|
@brz-menu-item-select=${this.handleItemSelect}
|
|
@@ -2089,7 +2089,7 @@
|
|
|
2089
2089
|
</brz-menu-item>
|
|
2090
2090
|
`}
|
|
2091
2091
|
></brz-virtual-list>
|
|
2092
|
-
`:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new
|
|
2092
|
+
`:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new y0({detail:{query:this.query}})),this.hasClearableOption()&&i.value===jh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(i=>{i.value===jh&&(e=!0)}),e}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}vt.styles=[...Ut.styles,j`
|
|
2093
2093
|
:host {
|
|
2094
2094
|
/** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
|
|
2095
2095
|
--dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
|
|
@@ -2134,7 +2134,7 @@
|
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
2136
|
button.wrapper {
|
|
2137
|
-
${
|
|
2137
|
+
${tf};
|
|
2138
2138
|
align-items: center;
|
|
2139
2139
|
background-color: var(--brz-color-white);
|
|
2140
2140
|
border: var(--input-border);
|
|
@@ -2172,7 +2172,7 @@
|
|
|
2172
2172
|
border-color: var(--input-focus-border-color);
|
|
2173
2173
|
outline: none;
|
|
2174
2174
|
}
|
|
2175
|
-
`];vr([O({type:Boolean})],vt.prototype,"controlled",2);vr([O({attribute:"can-search",type:Boolean,reflect:!0})],vt.prototype,"canSearch",2);vr([O({type:Boolean,reflect:!0})],vt.prototype,"loading",2);vr([O({type:String,reflect:!0,attribute:"trailing-icon"})],vt.prototype,"trailingIcon",2);vr([O({type:Array})],vt.prototype,"options",2);vr([O({attribute:"search-message"})],vt.prototype,"searchMessage",2);vr([pe()],vt.prototype,"isMenuOpen",2);vr([pe()],vt.prototype,"hasResults",2);vr([pe()],vt.prototype,"query",2);vr([pe()],vt.prototype,"innerOptions",2);vr([Er("brz-dropdown-menu")],vt.prototype,"dropdown",2);vr([Er("#selectSearch")],vt.prototype,"queryInput",2);class
|
|
2175
|
+
`];vr([O({type:Boolean})],vt.prototype,"controlled",2);vr([O({attribute:"can-search",type:Boolean,reflect:!0})],vt.prototype,"canSearch",2);vr([O({type:Boolean,reflect:!0})],vt.prototype,"loading",2);vr([O({type:String,reflect:!0,attribute:"trailing-icon"})],vt.prototype,"trailingIcon",2);vr([O({type:Array})],vt.prototype,"options",2);vr([O({attribute:"search-message"})],vt.prototype,"searchMessage",2);vr([pe()],vt.prototype,"isMenuOpen",2);vr([pe()],vt.prototype,"hasResults",2);vr([pe()],vt.prototype,"query",2);vr([pe()],vt.prototype,"innerOptions",2);vr([Er("brz-dropdown-menu")],vt.prototype,"dropdown",2);vr([Er("#selectSearch")],vt.prototype,"queryInput",2);class y0 extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,Ci=(n,e,i,o)=>{for(var l=o>1?void 0:o?yz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mz(e,i,l),l};const rl=ne("menu-item");exports.MenuItem=class extends me{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 up({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return P` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?P`
|
|
2176
2176
|
<brz-input-checkbox
|
|
2177
2177
|
?disabled=${this.disabled}
|
|
2178
2178
|
?checked=${this.selected}
|
|
@@ -2249,7 +2249,7 @@
|
|
|
2249
2249
|
padding-left: var(--menu-item-label-gutter);
|
|
2250
2250
|
position: relative;
|
|
2251
2251
|
}
|
|
2252
|
-
`;Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Ci([O({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Ci([R(rl)],exports.MenuItem);class
|
|
2252
|
+
`;Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Ci([O({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Ci([R(rl)],exports.MenuItem);class up extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,pn=(n,e,i,o)=>{for(var l=o>1?void 0:o?wz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Cz(e,i,l),l};const dp=ne("menu"),Mr="selectAll";exports.Menu=class extends me{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,y)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&y<d||u!==void 0&&y>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Dx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new fp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new hp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){xz(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==Ma,i.toggleable=this.multiselect&&i.id!==Ma,i.id!==Mr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.slottedElements=i,this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),i=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return P`
|
|
2253
2253
|
<div class=${i}>
|
|
2254
2254
|
<ul
|
|
2255
2255
|
class="menu"
|
|
@@ -2297,13 +2297,13 @@
|
|
|
2297
2297
|
width: var(--brz-menu-width, 10rem);
|
|
2298
2298
|
padding: 0;
|
|
2299
2299
|
}
|
|
2300
|
-
`;pn([O({type:Boolean})],exports.Menu.prototype,"multiselect",2);pn([O({type:Boolean})],exports.Menu.prototype,"selectable",2);pn([O({type:Array})],exports.Menu.prototype,"selected",2);pn([O({reflect:!0})],exports.Menu.prototype,"size",2);pn([pe()],exports.Menu.prototype,"highlightedIndex",2);pn([pe()],exports.Menu.prototype,"virtualListMenuItems",2);pn([pe()],exports.Menu.prototype,"slottedElements",2);pn([cn({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=pn([R(
|
|
2300
|
+
`;pn([O({type:Boolean})],exports.Menu.prototype,"multiselect",2);pn([O({type:Boolean})],exports.Menu.prototype,"selectable",2);pn([O({type:Array})],exports.Menu.prototype,"selected",2);pn([O({reflect:!0})],exports.Menu.prototype,"size",2);pn([pe()],exports.Menu.prototype,"highlightedIndex",2);pn([pe()],exports.Menu.prototype,"virtualListMenuItems",2);pn([pe()],exports.Menu.prototype,"slottedElements",2);pn([cn({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=pn([R(dp)],exports.Menu);const xz=n=>n[0]instanceof exports.MenuItem;class hp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class fp extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var zz=Object.defineProperty,Lz=Object.getOwnPropertyDescriptor,pp=(n,e,i,o)=>{for(var l=o>1?void 0:o?Lz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zz(e,i,l),l};const gp=ne("combo-box"),vp=ne("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=pp([R(gp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=pp([R(vp)],exports.ComboBoxOption);/*!
|
|
2301
2301
|
* tabbable 6.2.0
|
|
2302
2302
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2303
|
-
*/var
|
|
2303
|
+
*/var bp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],nl=bp.join(","),mp=typeof Element=="undefined",yi=mp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,il=!mp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ol=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},Sz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},yp=function(e,i,o){if(ol(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(nl));return i&&yi.call(e,nl)&&l.unshift(e),l=l.filter(o),l},Cp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!ol(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),y=v.length?v:u.children,m=n(y,!0,o);o.flatten?l.push.apply(l,m):l.push({scopeParent:u,candidates:m})}else{var T=yi.call(u,nl);T&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var S=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),$=!ol(S,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(S&&$){var E=n(S===!0?u.children:S.children,!0,o);o.flatten?l.push.apply(l,E):l.push({scopeParent:u,candidates:E})}else d.unshift.apply(d,u.children)}}return l},wp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ci=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Sz(e))&&!wp(e)?0:e.tabIndex},Mz=function(e,i){var o=ci(e);return o<0&&i&&!wp(e)?0:o},Tz=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},xp=function(e){return e.tagName==="INPUT"},kz=function(e){return xp(e)&&e.type==="hidden"},$z=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},Oz=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},Ez=function(e){if(!e.name)return!0;var i=e.form||il(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=Oz(l,e.form);return!d||d===e},_z=function(e){return xp(e)&&e.type==="radio"},Iz=function(e){return _z(e)&&!Ez(e)},Az=function(e){var i,o=e&&il(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,y;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(y=e.ownerDocument)!==null&&y!==void 0&&y.contains(e));!d&&l;){var m,T,S;o=il(l),l=(m=o)===null||m===void 0?void 0:m.host,d=!!((T=l)!==null&&T!==void 0&&(S=T.ownerDocument)!==null&&S!==void 0&&S.contains(l))}}return d},Gh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Pz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=yi.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(yi.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var y=e.parentElement,m=il(e);if(y&&!y.shadowRoot&&l(y)===!0)return Gh(e);e.assignedSlot?e=e.assignedSlot:!y&&m!==e.ownerDocument?e=m.host:e=y}e=v}if(Az(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Gh(e);return!1},Dz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return yi.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},al=function(e,i){return!(i.disabled||ol(i)||kz(i)||Pz(i,e)||$z(i)||Dz(i))},Pc=function(e,i){return!(Iz(i)||ci(i)<0||!al(e,i))},Nz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},Hz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,y=Mz(v,u),m=u?n(l.candidates):v;y===0?u?i.push.apply(i,m):i.push(v):o.push({documentOrder:d,tabIndex:y,item:l,isScope:u,content:m})}),o.sort(Tz).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Rz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=Cp([e],i.includeContainer,{filter:Pc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Nz}):o=yp(e,i.includeContainer,Pc.bind(null,i)),Hz(o)},Fz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=Cp([e],i.includeContainer,{filter:al.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=yp(e,i.includeContainer,al.bind(null,i)),o},Yi=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return yi.call(e,nl)===!1?!1:Pc(i,e)},Bz=bp.concat("iframe").join(","),lc=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return yi.call(e,Bz)===!1?!1:al(i,e)};/*!
|
|
2304
2304
|
* focus-trap 7.5.4
|
|
2305
2305
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2306
|
-
*/function jh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Gh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?jh(Object(i),!0).forEach(function(o){Vz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):jh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Vz(n,e,i){return e=Wz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Zz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wz(n){var e=Zz(n,"string");return typeof e=="symbol"?e:String(e)}var qh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Uz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},jz=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ma=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Gz=function(e){return ma(e)&&!e.shiftKey},qz=function(e){return ma(e)&&e.shiftKey},Kh=function(e){return setTimeout(e,0)},Yh=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},ua=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},ks=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Kz=[],Yz=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||Kz,d=Gh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Gz,isKeyBackward:qz},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,m=function(Z,k,x){return Z&&Z[k]!==void 0?Z[k]:d[x||k]},y=function(Z,k){var x=typeof(k==null?void 0:k.composedPath)=="function"?k.composedPath():void 0;return u.containerGroups.findIndex(function(z){var B=z.container,X=z.tabbableNodes;return B.contains(Z)||(x==null?void 0:x.includes(B))||X.find(function(be){return be===Z})})},T=function(Z){var k=d[Z];if(typeof k=="function"){for(var x=arguments.length,z=new Array(x>1?x-1:0),B=1;B<x;B++)z[B-1]=arguments[B];k=k.apply(void 0,z)}if(k===!0&&(k=void 0),!k){if(k===void 0||k===!1)return k;throw new Error("`".concat(Z,"` was specified but was not a node, or did not return a node"))}var X=k;if(typeof k=="string"&&(X=o.querySelector(k),!X))throw new Error("`".concat(Z,"` as selector refers to no known node"));return X},S=function(){var Z=T("initialFocus");if(Z===!1)return!1;if(Z===void 0||!lc(Z,d.tabbableOptions))if(y(o.activeElement)>=0)Z=o.activeElement;else{var k=u.tabbableGroups[0],x=k&&k.firstTabbableNode;Z=x||T("fallbackFocus")}if(!Z)throw new Error("Your focus-trap needs to have at least one focusable element");return Z},$=function(){if(u.containerGroups=u.containers.map(function(Z){var k=Rz(Z,d.tabbableOptions),x=Fz(Z,d.tabbableOptions),z=k.length>0?k[0]:void 0,B=k.length>0?k[k.length-1]:void 0,X=x.find(function(Be){return Yi(Be)}),be=x.slice().reverse().find(function(Be){return Yi(Be)}),Me=!!k.find(function(Be){return ci(Be)>0});return{container:Z,tabbableNodes:k,focusableNodes:x,posTabIndexesFound:Me,firstTabbableNode:z,lastTabbableNode:B,firstDomTabbableNode:X,lastDomTabbableNode:be,nextTabbableNode:function(lt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=k.indexOf(lt);return Xe<0?Qt?x.slice(x.indexOf(lt)+1).find(function(Je){return Yi(Je)}):x.slice(0,x.indexOf(lt)).reverse().find(function(Je){return Yi(Je)}):k[Xe+(Qt?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(Z){return Z.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(Z){return Z.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function ie(Z){var k=Z.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?ie(k.shadowRoot):k},N=function ie(Z){if(Z!==!1&&Z!==E(document)){if(!Z||!Z.focus){ie(S());return}Z.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=Z,Uz(Z)&&Z.select()}},G=function(Z){var k=T("setReturnFocus",Z);return k||(k===!1?!1:Z)},ee=function(Z){var k=Z.target,x=Z.event,z=Z.isBackward,B=z===void 0?!1:z;k=k||ks(x),$();var X=null;if(u.tabbableGroups.length>0){var be=y(k,x),Me=be>=0?u.containerGroups[be]:void 0;if(be<0)B?X=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:X=u.tabbableGroups[0].firstTabbableNode;else if(B){var Be=Yh(u.tabbableGroups,function(fe){var we=fe.firstTabbableNode;return k===we});if(Be<0&&(Me.container===k||lc(k,d.tabbableOptions)&&!Yi(k,d.tabbableOptions)&&!Me.nextTabbableNode(k,!1))&&(Be=be),Be>=0){var lt=Be===0?u.tabbableGroups.length-1:Be-1,Qt=u.tabbableGroups[lt];X=ci(k)>=0?Qt.lastTabbableNode:Qt.lastDomTabbableNode}else ma(x)||(X=Me.nextTabbableNode(k,!1))}else{var Xe=Yh(u.tabbableGroups,function(fe){var we=fe.lastTabbableNode;return k===we});if(Xe<0&&(Me.container===k||lc(k,d.tabbableOptions)&&!Yi(k,d.tabbableOptions)&&!Me.nextTabbableNode(k))&&(Xe=be),Xe>=0){var Je=Xe===u.tabbableGroups.length-1?0:Xe+1,Ue=u.tabbableGroups[Je];X=ci(k)>=0?Ue.firstTabbableNode:Ue.firstDomTabbableNode}else ma(x)||(X=Me.nextTabbableNode(k))}}else X=T("fallbackFocus");return X},te=function(Z){var k=ks(Z);if(!(y(k,Z)>=0)){if(ua(d.clickOutsideDeactivates,Z)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ua(d.allowOutsideClick,Z)||Z.preventDefault()}},se=function(Z){var k=ks(Z),x=y(k,Z)>=0;if(x||k instanceof Document)x&&(u.mostRecentlyFocusedNode=k);else{Z.stopImmediatePropagation();var z,B=!0;if(u.mostRecentlyFocusedNode)if(ci(u.mostRecentlyFocusedNode)>0){var X=y(u.mostRecentlyFocusedNode),be=u.containerGroups[X].tabbableNodes;if(be.length>0){var Me=be.findIndex(function(Be){return Be===u.mostRecentlyFocusedNode});Me>=0&&(d.isKeyForward(u.recentNavEvent)?Me+1<be.length&&(z=be[Me+1],B=!1):Me-1>=0&&(z=be[Me-1],B=!1))}}else u.containerGroups.some(function(Be){return Be.tabbableNodes.some(function(lt){return ci(lt)>0})})||(B=!1);else B=!1;B&&(z=ee({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(z||u.mostRecentlyFocusedNode||S())}u.recentNavEvent=void 0},re=function(Z){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=Z;var x=ee({event:Z,isBackward:k});x&&(ma(Z)&&Z.preventDefault(),N(x))},ue=function(Z){if(jz(Z)&&ua(d.escapeDeactivates,Z)!==!1){Z.preventDefault(),v.deactivate();return}(d.isKeyForward(Z)||d.isKeyBackward(Z))&&re(Z,d.isKeyBackward(Z))},xe=function(Z){var k=ks(Z);y(k,Z)>=0||ua(d.clickOutsideDeactivates,Z)||ua(d.allowOutsideClick,Z)||(Z.preventDefault(),Z.stopImmediatePropagation())},qe=function(){if(u.active)return qh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Kh(function(){N(S())}):N(S()),o.addEventListener("focusin",se,!0),o.addEventListener("mousedown",te,{capture:!0,passive:!1}),o.addEventListener("touchstart",te,{capture:!0,passive:!1}),o.addEventListener("click",xe,{capture:!0,passive:!1}),o.addEventListener("keydown",ue,{capture:!0,passive:!1}),v},Ge=function(){if(u.active)return o.removeEventListener("focusin",se,!0),o.removeEventListener("mousedown",te,!0),o.removeEventListener("touchstart",te,!0),o.removeEventListener("click",xe,!0),o.removeEventListener("keydown",ue,!0),v},Ze=function(Z){var k=Z.some(function(x){var z=Array.from(x.removedNodes);return z.some(function(B){return B===u.mostRecentlyFocusedNode})});k&&N(S())},We=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(Ze):void 0,de=function(){We&&(We.disconnect(),u.active&&!u.paused&&u.containers.map(function(Z){We.observe(Z,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(Z){if(u.active)return this;var k=m(Z,"onActivate"),x=m(Z,"onPostActivate"),z=m(Z,"checkCanFocusTrap");z||$(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,k==null||k();var B=function(){z&&$(),qe(),de(),x==null||x()};return z?(z(u.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(Z){if(!u.active)return this;var k=Gh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},Z);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,Ge(),u.active=!1,u.paused=!1,de(),qh.deactivateTrap(l,v);var x=m(k,"onDeactivate"),z=m(k,"onPostDeactivate"),B=m(k,"checkCanReturnFocus"),X=m(k,"returnFocus","returnFocusOnDeactivate");x==null||x();var be=function(){Kh(function(){X&&N(G(u.nodeFocusedBeforeActivation)),z==null||z()})};return X&&B?(B(G(u.nodeFocusedBeforeActivation)).then(be,be),this):(be(),this)},pause:function(Z){if(u.paused||!u.active)return this;var k=m(Z,"onPause"),x=m(Z,"onPostPause");return u.paused=!0,k==null||k(),Ge(),de(),x==null||x(),this},unpause:function(Z){if(!u.paused||!u.active)return this;var k=m(Z,"onUnpause"),x=m(Z,"onPostUnpause");return u.paused=!1,k==null||k(),$(),qe(),de(),x==null||x(),this},updateContainerElements:function(Z){var k=[].concat(Z).filter(Boolean);return u.containers=k.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&$(),de(),this}},v.updateContainerElements(e),v},Xz=Object.defineProperty,Jz=Object.getOwnPropertyDescriptor,wi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Jz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Xz(e,i,l),l};const xp=ne("modal"),Qz=["small","medium","large","x-large","full-page"];class y0 extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends me{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new y0))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Yz(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return P`
|
|
2306
|
+
*/function qh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Kh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(i),!0).forEach(function(o){Vz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):qh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Vz(n,e,i){return e=Wz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Zz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wz(n){var e=Zz(n,"string");return typeof e=="symbol"?e:String(e)}var Yh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Uz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},jz=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ma=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Gz=function(e){return ma(e)&&!e.shiftKey},qz=function(e){return ma(e)&&e.shiftKey},Xh=function(e){return setTimeout(e,0)},Jh=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},ua=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},ks=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Kz=[],Yz=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||Kz,d=Kh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Gz,isKeyBackward:qz},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,y=function(Z,k,x){return Z&&Z[k]!==void 0?Z[k]:d[x||k]},m=function(Z,k){var x=typeof(k==null?void 0:k.composedPath)=="function"?k.composedPath():void 0;return u.containerGroups.findIndex(function(z){var B=z.container,X=z.tabbableNodes;return B.contains(Z)||(x==null?void 0:x.includes(B))||X.find(function(be){return be===Z})})},T=function(Z){var k=d[Z];if(typeof k=="function"){for(var x=arguments.length,z=new Array(x>1?x-1:0),B=1;B<x;B++)z[B-1]=arguments[B];k=k.apply(void 0,z)}if(k===!0&&(k=void 0),!k){if(k===void 0||k===!1)return k;throw new Error("`".concat(Z,"` was specified but was not a node, or did not return a node"))}var X=k;if(typeof k=="string"&&(X=o.querySelector(k),!X))throw new Error("`".concat(Z,"` as selector refers to no known node"));return X},S=function(){var Z=T("initialFocus");if(Z===!1)return!1;if(Z===void 0||!lc(Z,d.tabbableOptions))if(m(o.activeElement)>=0)Z=o.activeElement;else{var k=u.tabbableGroups[0],x=k&&k.firstTabbableNode;Z=x||T("fallbackFocus")}if(!Z)throw new Error("Your focus-trap needs to have at least one focusable element");return Z},$=function(){if(u.containerGroups=u.containers.map(function(Z){var k=Rz(Z,d.tabbableOptions),x=Fz(Z,d.tabbableOptions),z=k.length>0?k[0]:void 0,B=k.length>0?k[k.length-1]:void 0,X=x.find(function(Be){return Yi(Be)}),be=x.slice().reverse().find(function(Be){return Yi(Be)}),Te=!!k.find(function(Be){return ci(Be)>0});return{container:Z,tabbableNodes:k,focusableNodes:x,posTabIndexesFound:Te,firstTabbableNode:z,lastTabbableNode:B,firstDomTabbableNode:X,lastDomTabbableNode:be,nextTabbableNode:function(lt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=k.indexOf(lt);return Xe<0?Qt?x.slice(x.indexOf(lt)+1).find(function(Je){return Yi(Je)}):x.slice(0,x.indexOf(lt)).reverse().find(function(Je){return Yi(Je)}):k[Xe+(Qt?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(Z){return Z.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(Z){return Z.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function ie(Z){var k=Z.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?ie(k.shadowRoot):k},N=function ie(Z){if(Z!==!1&&Z!==E(document)){if(!Z||!Z.focus){ie(S());return}Z.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=Z,Uz(Z)&&Z.select()}},G=function(Z){var k=T("setReturnFocus",Z);return k||(k===!1?!1:Z)},ee=function(Z){var k=Z.target,x=Z.event,z=Z.isBackward,B=z===void 0?!1:z;k=k||ks(x),$();var X=null;if(u.tabbableGroups.length>0){var be=m(k,x),Te=be>=0?u.containerGroups[be]:void 0;if(be<0)B?X=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:X=u.tabbableGroups[0].firstTabbableNode;else if(B){var Be=Jh(u.tabbableGroups,function(fe){var we=fe.firstTabbableNode;return k===we});if(Be<0&&(Te.container===k||lc(k,d.tabbableOptions)&&!Yi(k,d.tabbableOptions)&&!Te.nextTabbableNode(k,!1))&&(Be=be),Be>=0){var lt=Be===0?u.tabbableGroups.length-1:Be-1,Qt=u.tabbableGroups[lt];X=ci(k)>=0?Qt.lastTabbableNode:Qt.lastDomTabbableNode}else ma(x)||(X=Te.nextTabbableNode(k,!1))}else{var Xe=Jh(u.tabbableGroups,function(fe){var we=fe.lastTabbableNode;return k===we});if(Xe<0&&(Te.container===k||lc(k,d.tabbableOptions)&&!Yi(k,d.tabbableOptions)&&!Te.nextTabbableNode(k))&&(Xe=be),Xe>=0){var Je=Xe===u.tabbableGroups.length-1?0:Xe+1,Ue=u.tabbableGroups[Je];X=ci(k)>=0?Ue.firstTabbableNode:Ue.firstDomTabbableNode}else ma(x)||(X=Te.nextTabbableNode(k))}}else X=T("fallbackFocus");return X},te=function(Z){var k=ks(Z);if(!(m(k,Z)>=0)){if(ua(d.clickOutsideDeactivates,Z)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ua(d.allowOutsideClick,Z)||Z.preventDefault()}},se=function(Z){var k=ks(Z),x=m(k,Z)>=0;if(x||k instanceof Document)x&&(u.mostRecentlyFocusedNode=k);else{Z.stopImmediatePropagation();var z,B=!0;if(u.mostRecentlyFocusedNode)if(ci(u.mostRecentlyFocusedNode)>0){var X=m(u.mostRecentlyFocusedNode),be=u.containerGroups[X].tabbableNodes;if(be.length>0){var Te=be.findIndex(function(Be){return Be===u.mostRecentlyFocusedNode});Te>=0&&(d.isKeyForward(u.recentNavEvent)?Te+1<be.length&&(z=be[Te+1],B=!1):Te-1>=0&&(z=be[Te-1],B=!1))}}else u.containerGroups.some(function(Be){return Be.tabbableNodes.some(function(lt){return ci(lt)>0})})||(B=!1);else B=!1;B&&(z=ee({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(z||u.mostRecentlyFocusedNode||S())}u.recentNavEvent=void 0},re=function(Z){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=Z;var x=ee({event:Z,isBackward:k});x&&(ma(Z)&&Z.preventDefault(),N(x))},ue=function(Z){if(jz(Z)&&ua(d.escapeDeactivates,Z)!==!1){Z.preventDefault(),v.deactivate();return}(d.isKeyForward(Z)||d.isKeyBackward(Z))&&re(Z,d.isKeyBackward(Z))},xe=function(Z){var k=ks(Z);m(k,Z)>=0||ua(d.clickOutsideDeactivates,Z)||ua(d.allowOutsideClick,Z)||(Z.preventDefault(),Z.stopImmediatePropagation())},qe=function(){if(u.active)return Yh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Xh(function(){N(S())}):N(S()),o.addEventListener("focusin",se,!0),o.addEventListener("mousedown",te,{capture:!0,passive:!1}),o.addEventListener("touchstart",te,{capture:!0,passive:!1}),o.addEventListener("click",xe,{capture:!0,passive:!1}),o.addEventListener("keydown",ue,{capture:!0,passive:!1}),v},Ge=function(){if(u.active)return o.removeEventListener("focusin",se,!0),o.removeEventListener("mousedown",te,!0),o.removeEventListener("touchstart",te,!0),o.removeEventListener("click",xe,!0),o.removeEventListener("keydown",ue,!0),v},Ze=function(Z){var k=Z.some(function(x){var z=Array.from(x.removedNodes);return z.some(function(B){return B===u.mostRecentlyFocusedNode})});k&&N(S())},We=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(Ze):void 0,de=function(){We&&(We.disconnect(),u.active&&!u.paused&&u.containers.map(function(Z){We.observe(Z,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(Z){if(u.active)return this;var k=y(Z,"onActivate"),x=y(Z,"onPostActivate"),z=y(Z,"checkCanFocusTrap");z||$(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,k==null||k();var B=function(){z&&$(),qe(),de(),x==null||x()};return z?(z(u.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(Z){if(!u.active)return this;var k=Kh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},Z);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,Ge(),u.active=!1,u.paused=!1,de(),Yh.deactivateTrap(l,v);var x=y(k,"onDeactivate"),z=y(k,"onPostDeactivate"),B=y(k,"checkCanReturnFocus"),X=y(k,"returnFocus","returnFocusOnDeactivate");x==null||x();var be=function(){Xh(function(){X&&N(G(u.nodeFocusedBeforeActivation)),z==null||z()})};return X&&B?(B(G(u.nodeFocusedBeforeActivation)).then(be,be),this):(be(),this)},pause:function(Z){if(u.paused||!u.active)return this;var k=y(Z,"onPause"),x=y(Z,"onPostPause");return u.paused=!0,k==null||k(),Ge(),de(),x==null||x(),this},unpause:function(Z){if(!u.paused||!u.active)return this;var k=y(Z,"onUnpause"),x=y(Z,"onPostUnpause");return u.paused=!1,k==null||k(),$(),qe(),de(),x==null||x(),this},updateContainerElements:function(Z){var k=[].concat(Z).filter(Boolean);return u.containers=k.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&$(),de(),this}},v.updateContainerElements(e),v},Xz=Object.defineProperty,Jz=Object.getOwnPropertyDescriptor,wi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Jz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Xz(e,i,l),l};const zp=ne("modal"),Qz=["small","medium","large","x-large","full-page"];class C0 extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends me{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new C0))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Yz(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return P`
|
|
2307
2307
|
<brz-fade-in-out ?shown=${this.open}>
|
|
2308
2308
|
<div
|
|
2309
2309
|
id="overlay"
|
|
@@ -2405,7 +2405,7 @@
|
|
|
2405
2405
|
::slotted(sp-modal-body:first-child) {
|
|
2406
2406
|
padding-top: var(--brz-spacing-10);
|
|
2407
2407
|
}
|
|
2408
|
-
`;wi([O({type:String})],exports.Modal.prototype,"size",2);wi([O({type:Boolean})],exports.Modal.prototype,"open",2);wi([O({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);wi([pe()],exports.Modal.prototype,"focusTrap",2);wi([Er("#overlay")],exports.Modal.prototype,"overlay",2);wi([Er(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=wi([R(
|
|
2408
|
+
`;wi([O({type:String})],exports.Modal.prototype,"size",2);wi([O({type:Boolean})],exports.Modal.prototype,"open",2);wi([O({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);wi([pe()],exports.Modal.prototype,"focusTrap",2);wi([Er("#overlay")],exports.Modal.prototype,"overlay",2);wi([Er(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=wi([R(zp)],exports.Modal);var eL=Object.defineProperty,tL=Object.getOwnPropertyDescriptor,Kr=(n,e,i,o)=>{for(var l=o>1?void 0:o?tL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&eL(e,i,l),l};const Lp=ne("split-row"),Sp=ne("action-bar");exports.SplitRow=class extends me{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return P`
|
|
2409
2409
|
<brz-row vertical-align=${this.verticalAlign}>
|
|
2410
2410
|
<div class="left">
|
|
2411
2411
|
<slot name="left"></slot>
|
|
@@ -2444,7 +2444,7 @@
|
|
|
2444
2444
|
:host([right-expand]) .right {
|
|
2445
2445
|
flex: 1;
|
|
2446
2446
|
}
|
|
2447
|
-
`;Kr([O({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);Kr([O({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);Kr([O({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=Kr([R(
|
|
2447
|
+
`;Kr([O({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);Kr([O({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);Kr([O({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=Kr([R(Lp)],exports.SplitRow);exports.ActionBar=class extends me{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return P`
|
|
2448
2448
|
<brz-split-row
|
|
2449
2449
|
vertical-align="middle"
|
|
2450
2450
|
?left-expand=${this.leftExpand}
|
|
@@ -2463,7 +2463,7 @@
|
|
|
2463
2463
|
:host([no-border]) brz-split-row {
|
|
2464
2464
|
box-shadow: none;
|
|
2465
2465
|
}
|
|
2466
|
-
`;Kr([O({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Kr([R(
|
|
2466
|
+
`;Kr([O({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Kr([R(Sp)],exports.ActionBar);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,Pl=(n,e,i,o)=>{for(var l=o>1?void 0:o?nL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rL(e,i,l),l};const Mp=ne("modal-header"),Tp=ne("modal-body"),kp=ne("modal-footer");exports.ModalHeader=class extends me{get _noClose(){var e;return(e=Lc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new C0)}render(){return P`
|
|
2467
2467
|
<brz-heading size="xl"><slot></slot></brz-heading>
|
|
2468
2468
|
${this._noClose?void 0:P`
|
|
2469
2469
|
<brz-button
|
|
@@ -2492,7 +2492,7 @@
|
|
|
2492
2492
|
brz-button.close {
|
|
2493
2493
|
margin-right: calc(0px - var(--brz-spacing-2));
|
|
2494
2494
|
}
|
|
2495
|
-
`;exports.ModalHeader=Pl([R(
|
|
2495
|
+
`;exports.ModalHeader=Pl([R(Mp)],exports.ModalHeader);exports.ModalBody=class extends me{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 P`<slot></slot>`}};exports.ModalBody.styles=j`
|
|
2496
2496
|
:host {
|
|
2497
2497
|
display: block;
|
|
2498
2498
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
:host([scrollable]) {
|
|
2503
2503
|
border-bottom: 1px solid var(--brz-color-neutral-300);
|
|
2504
2504
|
}
|
|
2505
|
-
`;Pl([O({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Pl([R(
|
|
2505
|
+
`;Pl([O({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Pl([R(Tp)],exports.ModalBody);exports.ModalFooter=class extends me{render(){return P`
|
|
2506
2506
|
<brz-split-row vertical-align="middle">
|
|
2507
2507
|
<slot slot="left" name="left"></slot>
|
|
2508
2508
|
<slot slot="right" name="right"></slot>
|
|
@@ -2512,7 +2512,7 @@
|
|
|
2512
2512
|
display: block;
|
|
2513
2513
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
2514
2514
|
}
|
|
2515
|
-
`;exports.ModalFooter=Pl([R(
|
|
2515
|
+
`;exports.ModalFooter=Pl([R(kp)],exports.ModalFooter);var iL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,$p=(n,e,i,o)=>{for(var l=o>1?void 0:o?oL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iL(e,i,l),l};const Op=ne("confirmation-dialog");class Ep extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class _p extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends me{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Ep)}handleConfirm(){this.dispatchEvent(new _p)}render(){return P`<brz-modal size="small" ?open=${this.open} noClose>
|
|
2516
2516
|
<brz-modal-body>
|
|
2517
2517
|
<slot name="body"></slot>
|
|
2518
2518
|
</brz-modal-body>
|
|
@@ -2526,12 +2526,12 @@
|
|
|
2526
2526
|
</brz-button>
|
|
2527
2527
|
</brz-button-group>
|
|
2528
2528
|
</brz-modal-footer>
|
|
2529
|
-
</brz-modal>`}}
|
|
2529
|
+
</brz-modal>`}};$p([O({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=$p([R(Op)],exports.ConfirmationDialog);var aL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,w0=(n,e,i,o)=>{for(var l=o>1?void 0:o?sL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&aL(e,i,l),l};const Ip=ne("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return P`
|
|
2530
2530
|
<brz-dropdown-menu .size=${this.menuSize}>
|
|
2531
2531
|
${super.render()}
|
|
2532
2532
|
<slot name="options" slot="options"></slot>
|
|
2533
2533
|
</brz-dropdown-menu>
|
|
2534
|
-
`}};
|
|
2534
|
+
`}};w0([O({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);w0([O({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=w0([R(Ip)],exports.DropdownButton);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,Rn=(n,e,i,o)=>{for(var l=o>1?void 0:o?cL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lL(e,i,l),l};const Ap=ne("input-checkbox"),zr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Jt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=zr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case zr.Checked:this.checked=!1;break;case zr.Empty:this.checked=!0;break;case zr.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 zr.Checked:return P`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case zr.Indeterminate:return P`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case zr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?zr.Checked:this.indeterminate?zr.Indeterminate:zr.Empty;const e=P`
|
|
2535
2535
|
<div class="checkbox-left">
|
|
2536
2536
|
<div
|
|
2537
2537
|
class="checkbox"
|
|
@@ -2637,7 +2637,7 @@
|
|
|
2637
2637
|
position: absolute;
|
|
2638
2638
|
left: 0;
|
|
2639
2639
|
}
|
|
2640
|
-
`];Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Rn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Rn([O()],exports.InputCheckbox.prototype,"value",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Rn([pe()],exports.InputCheckbox.prototype,"checkboxState",2);Rn([pe()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Rn([R(
|
|
2640
|
+
`];Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Rn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Rn([O()],exports.InputCheckbox.prototype,"value",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Rn([pe()],exports.InputCheckbox.prototype,"checkboxState",2);Rn([pe()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Rn([R(Ap)],exports.InputCheckbox);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,Dl=(n,e,i,o)=>{for(var l=o>1?void 0:o?dL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uL(e,i,l),l};const Pp=ne("input-text");exports.InputText=class extends Ut{constructor(){super(...arguments),this.size="medium"}renderInput(){return P`
|
|
2641
2641
|
<input
|
|
2642
2642
|
@input=${this.onInput}
|
|
2643
2643
|
.value=${Ie(this.value)}
|
|
@@ -2654,7 +2654,7 @@
|
|
|
2654
2654
|
input {
|
|
2655
2655
|
height: 36px;
|
|
2656
2656
|
}
|
|
2657
|
-
`];Dl([O({type:String})],exports.InputText.prototype,"value",2);Dl([O({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Dl([O({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Dl([R(
|
|
2657
|
+
`];Dl([O({type:String})],exports.InputText.prototype,"value",2);Dl([O({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Dl([O({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Dl([R(Pp)],exports.InputText);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,Nl=(n,e,i,o)=>{for(var l=o>1?void 0:o?fL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hL(e,i,l),l};const Dp=ne("input-textarea");exports.InputTextarea=class extends Ut{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=P`${e} of ${this.maxlength}`;return e>=this.maxlength?P`<brz-input-error>${i}</brz-input-error>`:P`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return P`
|
|
2658
2658
|
<textarea
|
|
2659
2659
|
@input=${this.onInput}
|
|
2660
2660
|
.value=${(e=this.value)!=null?e:""}
|
|
@@ -2670,7 +2670,7 @@
|
|
|
2670
2670
|
height: 100px;
|
|
2671
2671
|
resize: none;
|
|
2672
2672
|
}
|
|
2673
|
-
`];Nl([O({type:String})],exports.InputTextarea.prototype,"value",2);Nl([O({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Nl([O({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Nl([R(
|
|
2673
|
+
`];Nl([O({type:String})],exports.InputTextarea.prototype,"value",2);Nl([O({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Nl([O({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Nl([R(Dp)],exports.InputTextarea);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,gn=(n,e,i,o)=>{for(var l=o>1?void 0:o?gL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pL(e,i,l),l};const Np=ne("input-number"),vL=j`
|
|
2674
2674
|
/* Chrome, Safari, Edge, Opera */
|
|
2675
2675
|
input::-webkit-outer-spin-button,
|
|
2676
2676
|
input::-webkit-inner-spin-button {
|
|
@@ -2682,7 +2682,7 @@
|
|
|
2682
2682
|
input[type='number'] {
|
|
2683
2683
|
-moz-appearance: textfield;
|
|
2684
2684
|
}
|
|
2685
|
-
`,
|
|
2685
|
+
`,Hp=["e","+"],Dc=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Rp=n=>Hp.includes(n.toLowerCase()),bL=n=>!!Hp.find(e=>n.toLowerCase().includes(e)),mL=n=>{var i,o;Rp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},yL=(n,e)=>{var u;const i=Dc(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Rp(l)||bL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends Ut{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:Dc(this.decimalPlaces,i).test(e.toString()),u=l?Dc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,y=this.max?e<=this.max:!0;return!!(d&&u&&v&&y)}handleKeyDown(e){mL(e)}handlePaste(e){yL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:P`
|
|
2686
2686
|
<div class="stepper-container">
|
|
2687
2687
|
<button
|
|
2688
2688
|
@click=${this.handleDecrease}
|
|
@@ -2797,11 +2797,11 @@
|
|
|
2797
2797
|
background-color: var(--input-readonly-background-color);
|
|
2798
2798
|
border-color: var(--input-readonly-border-color);
|
|
2799
2799
|
}
|
|
2800
|
-
`];gn([O({type:Number})],exports.InputNumber.prototype,"value",2);gn([O({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);gn([O({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);gn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);gn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);gn([O({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);gn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);gn([Er('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=gn([R(
|
|
2800
|
+
`];gn([O({type:Number})],exports.InputNumber.prototype,"value",2);gn([O({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);gn([O({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);gn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);gn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);gn([O({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);gn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);gn([Er('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=gn([R(Np)],exports.InputNumber);/**
|
|
2801
2801
|
* @license
|
|
2802
2802
|
* Copyright 2017 Google LLC
|
|
2803
2803
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2804
|
-
*/class
|
|
2804
|
+
*/class Nc extends Cl{constructor(e){if(super(e),this.et=ht,e.type!==ml.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ht||e==null)return this.ft=void 0,this.et=e;if(e===sn)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Nc.directiveName="unsafeHTML",Nc.resultType=1;const CL=yl(Nc);var wL=Object.defineProperty,xL=Object.getOwnPropertyDescriptor,xi=(n,e,i,o)=>{for(var l=o>1?void 0:o?xL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wL(e,i,l),l};const Fp=ne("input-radio-group"),Bp=ne("input-radio-option"),zL=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return P`
|
|
2805
2805
|
<slot
|
|
2806
2806
|
id="options"
|
|
2807
2807
|
style="display: none;"
|
|
@@ -2976,30 +2976,30 @@
|
|
|
2976
2976
|
input[type='radio'][aria-invalid='true'] + label {
|
|
2977
2977
|
color: var(--brz-input-radio-invalid-color);
|
|
2978
2978
|
}
|
|
2979
|
-
`];xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);xi([pe()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=xi([R(Rp)],exports.InputRadio);exports.InputRadioOption=class extends me{render(){}};xi([O({type:String})],exports.InputRadioOption.prototype,"value",2);xi([O({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=xi([R(Fp)],exports.InputRadioOption);var Bp={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(pa,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),m=d||u||v,y=m&&(d?document.documentMode||6:+(v||u)[1]),T=!v&&/WebKit\//.test(i),S=T&&/Qt\/\d+\.\d+/.test(i),$=!v&&/Chrome\//.test(i),E=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),G=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),ee=/PhantomJS/.test(i),te=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),se=/Android/.test(i),re=te||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),ue=te||/Mac/.test(o),xe=/\bCrOS\b/.test(i),qe=/win/i.test(o),Ge=E&&i.match(/Version\/(\d*\.\d*)/);Ge&&(Ge=Number(Ge[1])),Ge&&Ge>=15&&(E=!1,T=!0);var Ze=ue&&(S||E&&(Ge==null||Ge<12.11)),We=l||m&&y>=9;function de(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var ie=function(t,r){var s=t.className,a=de(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function Z(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function k(t,r){return Z(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function z(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var B;document.createRange?B=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:B=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function X(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function be(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Me(t,r){var s=t.className;de(r).test(s)||(t.className+=(s?" ":"")+r)}function Be(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!de(s[a]).test(r)&&(r+=" "+s[a]);return r}var lt=function(t){t.select()};te?lt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:m&&(lt=function(t){try{t.select()}catch{}});function Qt(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Xe(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Je(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};Ue.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ue.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function fe(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var we=50,$e={toString:function(){return"CodeMirror.Pass"}},Pe={scroll:!1},Ee={origin:"*mouse"},Se={origin:"+move"};function bt(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var br=[""];function mn(t){for(;br.length<=t;)br.push(Oe(br)+" ");return br[t]}function Oe(t){return t[t.length-1]}function He(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function mt(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function er(){}function ur(t,r){var s;return Object.create?s=Object.create(t):(er.prototype=t,s=new er),r&&Xe(r,s),s}var Bn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Bn.test(t))}function A(t,r){return r?r.source.indexOf("\\w")>-1&&Ke(t)?!0:r.test(t):Ke(t)}function Y(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var F=/[\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 _e(t){return t.charCodeAt(0)>=768&&F.test(t)}function It(t,r,s){for(;(s<0?r>0:r<t.length)&&_e(t.charAt(r));)r+=s;return r}function Ar(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function Ql(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var tr=null;function nt(t,r,s){var a;tr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:tr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:tr=c)}return a!=null?a:tr}var Vn=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(b){return b<=247?t.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?r.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(b,w,L){this.level=b,this.from=w,this.to=L}return function(b,w){var L=w=="ltr"?"L":"R";if(b.length==0||w=="ltr"&&!a.test(b))return!1;for(var I=b.length,_=[],H=0;H<I;++H)_.push(s(b.charCodeAt(H)));for(var W=0,K=L;W<I;++W){var J=_[W];J=="m"?_[W]=K:K=J}for(var ae=0,Q=L;ae<I;++ae){var ce=_[ae];ce=="1"&&Q=="r"?_[ae]="n":h.test(ce)&&(Q=ce,ce=="r"&&(_[ae]="R"))}for(var ye=1,ve=_[0];ye<I-1;++ye){var ke=_[ye];ke=="+"&&ve=="1"&&_[ye+1]=="1"?_[ye]="1":ke==","&&ve==_[ye+1]&&(ve=="1"||ve=="n")&&(_[ye]=ve),ve=ke}for(var Ye=0;Ye<I;++Ye){var xt=_[Ye];if(xt==",")_[Ye]="N";else if(xt=="%"){var rt=void 0;for(rt=Ye+1;rt<I&&_[rt]=="%";++rt);for(var Kt=Ye&&_[Ye-1]=="!"||rt<I&&_[rt]=="1"?"1":"N",Bt=Ye;Bt<rt;++Bt)_[Bt]=Kt;Ye=rt-1}}for(var ut=0,Vt=L;ut<I;++ut){var Mt=_[ut];Vt=="L"&&Mt=="1"?_[ut]="L":h.test(Mt)&&(Vt=Mt)}for(var ft=0;ft<I;++ft)if(c.test(_[ft])){var dt=void 0;for(dt=ft+1;dt<I&&c.test(_[dt]);++dt);for(var ot=(ft?_[ft-1]:L)=="L",Zt=(dt<I?_[dt]:L)=="L",qi=ot==Zt?ot?"L":"R":L,$n=ft;$n<dt;++$n)_[$n]=qi;ft=dt-1}for(var _t=[],Zr,zt=0;zt<I;)if(f.test(_[zt])){var Z1=zt;for(++zt;zt<I&&f.test(_[zt]);++zt);_t.push(new g(0,Z1,zt))}else{var nn=zt,Qn=_t.length,ei=w=="rtl"?1:0;for(++zt;zt<I&&_[zt]!="L";++zt);for(var Pt=nn;Pt<zt;)if(p.test(_[Pt])){nn<Pt&&(_t.splice(Qn,0,new g(1,nn,Pt)),Qn+=ei);var Ki=Pt;for(++Pt;Pt<zt&&p.test(_[Pt]);++Pt);_t.splice(Qn,0,new g(2,Ki,Pt)),Qn+=ei,nn=Pt}else++Pt;nn<zt&&_t.splice(Qn,0,new g(1,nn,zt))}return w=="ltr"&&(_t[0].level==1&&(Zr=b.match(/^\s+/))&&(_t[0].from=Zr[0].length,_t.unshift(new g(0,0,Zr[0].length))),Oe(_t).level==1&&(Zr=b.match(/\s+$/))&&(Oe(_t).to-=Zr[0].length,_t.push(new g(0,I-Zr[0].length,I)))),w=="rtl"?_t.reverse():_t}}();function jt(t,r){var s=t.order;return s==null&&(s=t.order=Vn(t.text,r)),s}var Xr=[],Ce=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||Xr).concat(s)}};function Si(t,r){return t._handlers&&t._handlers[r]||Xr}function Nt(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=fe(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function ze(t,r){var s=Si(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ct(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ze(t,s||r.type,t,r),rr(r)||r.codemirrorIgnore}function Mi(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)fe(s,r[a])==-1&&s.push(r[a])}function St(t,r){return Si(t,r).length>0}function Pr(t){t.prototype.on=function(r,s){Ce(this,r,s)},t.prototype.off=function(r,s){Nt(this,r,s)}}function $t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ti(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function rr(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Zn(t){$t(t),Ti(t)}function yn(t){return t.target||t.srcElement}function ja(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),ue&&t.ctrlKey&&r==1&&(r=3),r}var Lo=function(){if(m&&y<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Ht;function Ga(t){if(Ht==null){var r=x("span","");k(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=r.offsetWidth<=1&&r.offsetHeight>2&&!(m&&y<8))}var s=Ht?x("span",""):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var So;function Dr(t){if(So!=null)return So;var r=k(t,document.createTextNode("AخA")),s=B(r,0,1).getBoundingClientRect(),a=B(r,1,2).getBoundingClientRect();return Z(t),!s||s.left==s.right?!1:So=a.right-s.right<3}var Mo=`
|
|
2979
|
+
`];xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);xi([pe()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=xi([R(Fp)],exports.InputRadio);exports.InputRadioOption=class extends me{render(){}};xi([O({type:String})],exports.InputRadioOption.prototype,"value",2);xi([O({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=xi([R(Bp)],exports.InputRadioOption);var Vp={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(pa,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),y=d||u||v,m=y&&(d?document.documentMode||6:+(v||u)[1]),T=!v&&/WebKit\//.test(i),S=T&&/Qt\/\d+\.\d+/.test(i),$=!v&&/Chrome\//.test(i),E=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),G=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),ee=/PhantomJS/.test(i),te=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),se=/Android/.test(i),re=te||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),ue=te||/Mac/.test(o),xe=/\bCrOS\b/.test(i),qe=/win/i.test(o),Ge=E&&i.match(/Version\/(\d*\.\d*)/);Ge&&(Ge=Number(Ge[1])),Ge&&Ge>=15&&(E=!1,T=!0);var Ze=ue&&(S||E&&(Ge==null||Ge<12.11)),We=l||y&&m>=9;function de(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var ie=function(t,r){var s=t.className,a=de(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function Z(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function k(t,r){return Z(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function z(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var B;document.createRange?B=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:B=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function X(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function be(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Te(t,r){var s=t.className;de(r).test(s)||(t.className+=(s?" ":"")+r)}function Be(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!de(s[a]).test(r)&&(r+=" "+s[a]);return r}var lt=function(t){t.select()};te?lt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:y&&(lt=function(t){try{t.select()}catch{}});function Qt(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Xe(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Je(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};Ue.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ue.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function fe(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var we=50,$e={toString:function(){return"CodeMirror.Pass"}},Pe={scroll:!1},Ee={origin:"*mouse"},Se={origin:"+move"};function bt(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var br=[""];function mn(t){for(;br.length<=t;)br.push(Oe(br)+" ");return br[t]}function Oe(t){return t[t.length-1]}function He(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function mt(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function er(){}function ur(t,r){var s;return Object.create?s=Object.create(t):(er.prototype=t,s=new er),r&&Xe(r,s),s}var Bn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Bn.test(t))}function A(t,r){return r?r.source.indexOf("\\w")>-1&&Ke(t)?!0:r.test(t):Ke(t)}function Y(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var F=/[\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 _e(t){return t.charCodeAt(0)>=768&&F.test(t)}function It(t,r,s){for(;(s<0?r>0:r<t.length)&&_e(t.charAt(r));)r+=s;return r}function Ar(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function Ql(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var tr=null;function nt(t,r,s){var a;tr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:tr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:tr=c)}return a!=null?a:tr}var Vn=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(b){return b<=247?t.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?r.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(b,w,L){this.level=b,this.from=w,this.to=L}return function(b,w){var L=w=="ltr"?"L":"R";if(b.length==0||w=="ltr"&&!a.test(b))return!1;for(var I=b.length,_=[],H=0;H<I;++H)_.push(s(b.charCodeAt(H)));for(var W=0,K=L;W<I;++W){var J=_[W];J=="m"?_[W]=K:K=J}for(var ae=0,Q=L;ae<I;++ae){var ce=_[ae];ce=="1"&&Q=="r"?_[ae]="n":h.test(ce)&&(Q=ce,ce=="r"&&(_[ae]="R"))}for(var ye=1,ve=_[0];ye<I-1;++ye){var ke=_[ye];ke=="+"&&ve=="1"&&_[ye+1]=="1"?_[ye]="1":ke==","&&ve==_[ye+1]&&(ve=="1"||ve=="n")&&(_[ye]=ve),ve=ke}for(var Ye=0;Ye<I;++Ye){var xt=_[Ye];if(xt==",")_[Ye]="N";else if(xt=="%"){var rt=void 0;for(rt=Ye+1;rt<I&&_[rt]=="%";++rt);for(var Kt=Ye&&_[Ye-1]=="!"||rt<I&&_[rt]=="1"?"1":"N",Bt=Ye;Bt<rt;++Bt)_[Bt]=Kt;Ye=rt-1}}for(var ut=0,Vt=L;ut<I;++ut){var Mt=_[ut];Vt=="L"&&Mt=="1"?_[ut]="L":h.test(Mt)&&(Vt=Mt)}for(var ft=0;ft<I;++ft)if(c.test(_[ft])){var dt=void 0;for(dt=ft+1;dt<I&&c.test(_[dt]);++dt);for(var ot=(ft?_[ft-1]:L)=="L",Zt=(dt<I?_[dt]:L)=="L",qi=ot==Zt?ot?"L":"R":L,$n=ft;$n<dt;++$n)_[$n]=qi;ft=dt-1}for(var _t=[],Zr,zt=0;zt<I;)if(f.test(_[zt])){var Z1=zt;for(++zt;zt<I&&f.test(_[zt]);++zt);_t.push(new g(0,Z1,zt))}else{var nn=zt,Qn=_t.length,ei=w=="rtl"?1:0;for(++zt;zt<I&&_[zt]!="L";++zt);for(var Pt=nn;Pt<zt;)if(p.test(_[Pt])){nn<Pt&&(_t.splice(Qn,0,new g(1,nn,Pt)),Qn+=ei);var Ki=Pt;for(++Pt;Pt<zt&&p.test(_[Pt]);++Pt);_t.splice(Qn,0,new g(2,Ki,Pt)),Qn+=ei,nn=Pt}else++Pt;nn<zt&&_t.splice(Qn,0,new g(1,nn,zt))}return w=="ltr"&&(_t[0].level==1&&(Zr=b.match(/^\s+/))&&(_t[0].from=Zr[0].length,_t.unshift(new g(0,0,Zr[0].length))),Oe(_t).level==1&&(Zr=b.match(/\s+$/))&&(Oe(_t).to-=Zr[0].length,_t.push(new g(0,I-Zr[0].length,I)))),w=="rtl"?_t.reverse():_t}}();function jt(t,r){var s=t.order;return s==null&&(s=t.order=Vn(t.text,r)),s}var Xr=[],Ce=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||Xr).concat(s)}};function Si(t,r){return t._handlers&&t._handlers[r]||Xr}function Nt(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=fe(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function ze(t,r){var s=Si(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ct(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ze(t,s||r.type,t,r),rr(r)||r.codemirrorIgnore}function Mi(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)fe(s,r[a])==-1&&s.push(r[a])}function St(t,r){return Si(t,r).length>0}function Pr(t){t.prototype.on=function(r,s){Ce(this,r,s)},t.prototype.off=function(r,s){Nt(this,r,s)}}function $t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ti(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function rr(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Zn(t){$t(t),Ti(t)}function yn(t){return t.target||t.srcElement}function ja(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),ue&&t.ctrlKey&&r==1&&(r=3),r}var Lo=function(){if(y&&m<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Ht;function Ga(t){if(Ht==null){var r=x("span","");k(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=r.offsetWidth<=1&&r.offsetHeight>2&&!(y&&m<8))}var s=Ht?x("span",""):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var So;function Dr(t){if(So!=null)return So;var r=k(t,document.createTextNode("AخA")),s=B(r,0,1).getBoundingClientRect(),a=B(r,1,2).getBoundingClientRect();return Z(t),!s||s.left==s.right?!1:So=a.right-s.right<3}var Mo=`
|
|
2980
2980
|
|
|
2981
2981
|
b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.indexOf(`
|
|
2982
|
-
`,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},qa=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},Ka=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),To=null;function Cn(t){if(To!=null)return To;var r=k(t,x("span","x")),s=r.getBoundingClientRect(),a=B(r,0,1).getBoundingClientRect();return To=Math.abs(s.left-a.left)>1}var dr={},nr={};function Ya(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),dr[t]=r}function Jr(t,r){nr[t]=r}function ki(t){if(typeof t=="string"&&nr.hasOwnProperty(t))t=nr[t];else if(t&&typeof t.name=="string"&&nr.hasOwnProperty(t.name)){var r=nr[t.name];typeof r=="string"&&(r={name:r}),t=ur(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return ki("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ki("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function $i(t,r){r=ki(r);var s=dr[r.name];if(!s)return $i(t,"text/plain");var a=s(t,r);if(mr.hasOwnProperty(r.name)){var c=mr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var mr={};function yr(t,r){var s=mr.hasOwnProperty(t)?mr[t]:mr[t]={};Xe(r,s)}function ir(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function ko(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function $o(t,r,s){return t.startState?t.startState(r,s):!0}var it=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},it.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},it.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},it.prototype.backUp=function(t){this.pos-=t},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},it.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},it.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function he(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Nr(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function Oo(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Gt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function Re(t){if(t.parent==null)return null;for(var r=t.parent,s=fe(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Hr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function Wn(t,r){return r>=t.first&&r<t.first+t.size}function Eo(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function U(t,r,s){if(s===void 0&&(s=null),!(this instanceof U))return new U(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function M(t,r){return t.sticky==r.sticky&&C(t,r)==0}function V(t){return U(t.line,t.ch)}function q(t,r){return C(t,r)<0?r:t}function Le(t,r){return C(t,r)<0?t:r}function Ae(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function oe(t,r){if(r.line<t.first)return U(t.first,0);var s=t.first+t.size-1;return r.line>s?U(s,he(t,s).text.length):Ot(r,he(t,r.line).text.length)}function Ot(t,r){var s=t.ch;return s==null||s>r?U(t.line,r):s<0?U(t.line,0):t}function or(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=oe(t,r[a]);return s}var Oi=function(t,r){this.state=t,this.lookAhead=r},Rr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Rr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Rr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Rr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rr.fromSaved=function(t,r,s){return r instanceof Oi?new Rr(t,ir(t.mode,r.state),s,r.lookAhead):new Rr(t,ir(t.mode,r),s)},Rr.prototype.save=function(t){var r=t!==!1?ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Oi(r,this.maxLookAhead):r};function N0(t,r,s,a){var c=[t.state.modeGen],h={};Z0(t,r.text,t.doc.mode,s,function(b,w){return c.push(b,w)},h,a);for(var f=s.state,p=function(b){s.baseTokens=c;var w=t.state.overlays[b],L=1,I=0;s.state=!0,Z0(t,r.text,w.mode,s,function(_,H){for(var W=L;I<_;){var K=c[L];K>_&&c.splice(L,1,_,c[L+1],K),L+=2,I=Math.min(_,K)}if(H)if(w.opaque)c.splice(W,L-W,_,"overlay "+H),L=W+2;else for(;W<L;W+=2){var J=c[W+1];c[W+1]=(J?J+" ":"")+"overlay "+H}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function H0(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=_o(t,Re(r)),c=r.text.length>t.options.maxHighlightLength&&ir(t.doc.mode,a.state),h=N0(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function _o(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Rr(a,!0,r);var h=q6(t,r,s),f=h>a.first&&he(a,h-1).stateAfter,p=f?Rr.fromSaved(a,f,h):new Rr(a,$o(a.mode),h);return a.iter(h,r,function(g){e1(t,g.text,p);var b=p.line;g.stateAfter=b==r-1||b%5==0||b>=c.viewFrom&&b<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function e1(t,r,s,a){var c=t.doc.mode,h=new it(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&R0(c,s.state);!h.eol();)t1(c,h,s.state),h.start=h.pos}function R0(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=ko(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function t1(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=ko(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var F0=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function B0(t,r,s,a){var c=t.doc,h=c.mode,f;r=oe(c,r);var p=he(c,r.line),g=_o(t,r.line,s),b=new it(p.text,t.options.tabSize,g),w;for(a&&(w=[]);(a||b.pos<r.ch)&&!b.eol();)b.start=b.pos,f=t1(h,b,g.state),a&&w.push(new F0(b,f,ir(c.mode,g.state)));return a?w:new F0(b,f,g.state)}function V0(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function Z0(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,b=null,w=new it(r,t.options.tabSize,a),L,I=t.options.addModeClass&&[null];for(r==""&&V0(R0(s,a.state),h);!w.eol();){if(w.pos>t.options.maxHighlightLength?(p=!1,f&&e1(t,r,a,w.pos),w.pos=r.length,L=null):L=V0(t1(s,w,a.state,I),h),I){var _=I[0].name;_&&(L="m-"+(L?_+" "+L:_))}if(!p||b!=L){for(;g<w.start;)g=Math.min(w.start,g+5e3),c(g,b);b=L}w.start=w.pos}for(;g<w.pos;){var H=Math.min(w.pos,g+5e3);c(H,b),g=H}}function q6(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=he(h,p-1),b=g.stateAfter;if(b&&(!s||p+(b instanceof Oi?b.lookAhead:0)<=h.modeFrontier))return p;var w=Je(g.text,null,t.options.tabSize);(c==null||a>w)&&(c=p-1,a=w)}return c}function K6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=he(t,a).stateAfter;if(c&&(!(c instanceof Oi)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var W0=!1,Qr=!1;function Y6(){W0=!0}function X6(){Qr=!0}function Xa(t,r,s){this.marker=t,this.from=r,this.to=s}function Io(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function J6(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function Q6(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function e4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new Xa(f,h.from,g?null:h.to))}}return a}function t4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new Xa(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function r1(t,r){if(r.full)return null;var s=Wn(t,r.from.line)&&he(t,r.from.line).markedSpans,a=Wn(t,r.to.line)&&he(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=e4(s,c,f),g=t4(a,h,f),b=r.text.length==1,w=Oe(r.text).length+(b?c:0);if(p)for(var L=0;L<p.length;++L){var I=p[L];if(I.to==null){var _=Io(g,I.marker);_?b&&(I.to=_.to==null?null:_.to+w):I.to=c}}if(g)for(var H=0;H<g.length;++H){var W=g[H];if(W.to!=null&&(W.to+=w),W.from==null){var K=Io(p,W.marker);K||(W.from=w,b&&(p||(p=[])).push(W))}else W.from+=w,b&&(p||(p=[])).push(W)}p&&(p=U0(p)),g&&g!=p&&(g=U0(g));var J=[p];if(!b){var ae=r.text.length-2,Q;if(ae>0&&p)for(var ce=0;ce<p.length;++ce)p[ce].to==null&&(Q||(Q=[])).push(new Xa(p[ce].marker,null,null));for(var ye=0;ye<ae;++ye)J.push(Q);J.push(g)}return J}function U0(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function r4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(_){if(_.markedSpans)for(var H=0;H<_.markedSpans.length;++H){var W=_.markedSpans[H].marker;W.readOnly&&(!a||fe(a,W)==-1)&&(a||(a=[])).push(W)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var b=c[g];if(!(C(b.to,p.from)<0||C(b.from,p.to)>0)){var w=[g,1],L=C(b.from,p.from),I=C(b.to,p.to);(L<0||!f.inclusiveLeft&&!L)&&w.push({from:b.from,to:p.from}),(I>0||!f.inclusiveRight&&!I)&&w.push({from:p.to,to:b.to}),c.splice.apply(c,w),g+=w.length-3}}return c}function j0(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function G0(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function Ja(t){return t.inclusiveLeft?-1:0}function Qa(t){return t.inclusiveRight?1:0}function n1(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||Ja(t)-Ja(r);if(h)return-h;var f=C(a.to,c.to)||Qa(t)-Qa(r);return f||r.id-t.id}function q0(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||n1(a,c.marker)<0)&&(a=c.marker);return a}function K0(t){return q0(t,!0)}function es(t){return q0(t,!1)}function n4(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||n1(a,h.marker)<0)&&(a=h.marker)}return a}function Y0(t,r,s,a,c){var h=he(t,r),f=Qr&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var b=g.marker.find(0),w=C(b.from,s)||Ja(g.marker)-Ja(c),L=C(b.to,a)||Qa(g.marker)-Qa(c);if(!(w>=0&&L<=0||w<=0&&L>=0)&&(w<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.to,s)>=0:C(b.to,s)>0)||w>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.from,a)<=0:C(b.from,a)<0)))return!0}}}function Fr(t){for(var r;r=K0(t);)t=r.find(-1,!0).line;return t}function i4(t){for(var r;r=es(t);)t=r.find(1,!0).line;return t}function o4(t){for(var r,s;r=es(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function i1(t,r){var s=he(t,r),a=Fr(s);return s==a?r:Re(a)}function X0(t,r){if(r>t.lastLine())return r;var s=he(t,r),a;if(!wn(t,s))return r;for(;a=es(s);)s=a.find(1,!0).line;return Re(s)+1}function wn(t,r){var s=Qr&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&o1(t,r,a))return!0}}}function o1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return o1(t,a.line,Io(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&o1(t,r,c))return!0}function en(t){t=Fr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function ts(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=K0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=es(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function a1(t){var r=t.display,s=t.doc;r.maxLine=he(s,s.first),r.maxLineLength=ts(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=ts(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var Ei=function(t,r,s){this.text=t,G0(this,r),this.height=s?s(this):1};Ei.prototype.lineNo=function(){return Re(this)},Pr(Ei);function a4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),j0(t),G0(t,s);var c=a?a(t):1;c!=t.height&&Gt(t,c)}function s4(t){t.parent=null,j0(t)}var l4={},c4={};function J0(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?c4:l4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function Q0(t,r){var s=z("span",null,null,T?"padding-right: .1px":null),a={pre:z("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=d4,Dr(t.display.measure)&&(f=jt(h,t.doc.direction))&&(a.addToken=f4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&Re(h);p4(h,a,H0(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Be(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Be(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Ga(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(T){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return ze(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function u4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function d4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?h4(r,t.trailingSpace):r,g=t.cm.state.specialChars,b=!1,w;if(!g.test(r))t.col+=r.length,w=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,w),m&&y<9&&(b=!0),t.pos+=r.length;else{w=document.createDocumentFragment();for(var L=0;;){g.lastIndex=L;var I=g.exec(r),_=I?I.index-L:r.length-L;if(_){var H=document.createTextNode(p.slice(L,L+_));m&&y<9?w.appendChild(x("span",[H])):w.appendChild(H),t.map.push(t.pos,t.pos+_,H),t.col+=_,t.pos+=_}if(!I)break;L+=_+1;var W=void 0;if(I[0]==" "){var K=t.cm.options.tabSize,J=K-t.col%K;W=w.appendChild(x("span",mn(J),"cm-tab")),W.setAttribute("role","presentation"),W.setAttribute("cm-text"," "),t.col+=J}else I[0]=="\r"||I[0]==`
|
|
2983
|
-
`?(W=w.appendChild(x("span",I[0]=="\r"?"␍":"","cm-invalidchar")),W.setAttribute("cm-text",I[0]),t.col+=1):(W=t.cm.options.specialCharPlaceholder(I[0]),W.setAttribute("cm-text",I[0]),m&&y<9?w.appendChild(x("span",[W])):w.appendChild(W),t.col+=1);t.map.push(t.pos,t.pos+1,W),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||b||h||f){var ae=s||"";a&&(ae+=a),c&&(ae+=c);var Q=x("span",[w],ae,h);if(f)for(var ce in f)f.hasOwnProperty(ce)&&ce!="style"&&ce!="class"&&Q.setAttribute(ce,f[ce]);return t.content.appendChild(Q)}t.content.appendChild(w)}}function h4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function f4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var b=s.pos,w=b+a.length;;){for(var L=void 0,I=0;I<r.length&&(L=r[I],!(L.to>b&&L.from<=b));I++);if(L.to>=w)return t(s,a,c,h,f,p,g);t(s,a.slice(0,L.to-b),c,h,null,p,g),h=null,a=a.slice(L.to-b),b=L.to}}}function eu(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function p4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),J0(s[f+1],r.cm.options));return}for(var p=c.length,g=0,b=1,w="",L,I,_=0,H,W,K,J,ae;;){if(_==g){H=W=K=I="",ae=null,J=null,_=1/0;for(var Q=[],ce=void 0,ye=0;ye<a.length;++ye){var ve=a[ye],ke=ve.marker;if(ke.type=="bookmark"&&ve.from==g&&ke.widgetNode)Q.push(ke);else if(ve.from<=g&&(ve.to==null||ve.to>g||ke.collapsed&&ve.to==g&&ve.from==g)){if(ve.to!=null&&ve.to!=g&&_>ve.to&&(_=ve.to,W=""),ke.className&&(H+=" "+ke.className),ke.css&&(I=(I?I+";":"")+ke.css),ke.startStyle&&ve.from==g&&(K+=" "+ke.startStyle),ke.endStyle&&ve.to==_&&(ce||(ce=[])).push(ke.endStyle,ve.to),ke.title&&((ae||(ae={})).title=ke.title),ke.attributes)for(var Ye in ke.attributes)(ae||(ae={}))[Ye]=ke.attributes[Ye];ke.collapsed&&(!J||n1(J.marker,ke)<0)&&(J=ve)}else ve.from>g&&_>ve.from&&(_=ve.from)}if(ce)for(var xt=0;xt<ce.length;xt+=2)ce[xt+1]==_&&(W+=" "+ce[xt]);if(!J||J.from==g)for(var rt=0;rt<Q.length;++rt)eu(r,0,Q[rt]);if(J&&(J.from||0)==g){if(eu(r,(J.to==null?p+1:J.to)-g,J.marker,J.from==null),J.to==null)return;J.to==g&&(J=!1)}}if(g>=p)break;for(var Kt=Math.min(p,_);;){if(w){var Bt=g+w.length;if(!J){var ut=Bt>Kt?w.slice(0,Kt-g):w;r.addToken(r,ut,L?L+H:H,K,g+ut.length==_?W:"",I,ae)}if(Bt>=Kt){w=w.slice(Kt-g),g=Kt;break}g=Bt,K=""}w=c.slice(h,h=s[b++]),L=J0(s[b++],r.cm.options)}}}function tu(t,r,s){this.line=r,this.rest=o4(r),this.size=this.rest?Re(Oe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=wn(t,r)}function rs(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new tu(t.doc,he(t.doc,h),h);c=h+f.size,a.push(f)}return a}var _i=null;function g4(t){_i?_i.ops.push(t):t.ownsGroup=_i={ops:[t],delayedCallbacks:[]}}function v4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function b4(t,r){var s=t.ownsGroup;if(s)try{v4(s)}finally{_i=null,r(s)}}var Ao=null;function yt(t,r){var s=Si(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;_i?c=_i.delayedCallbacks:Ao?c=Ao:(c=Ao=[],setTimeout(m4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function m4(){var t=Ao;Ao=null;for(var r=0;r<t.length;++r)t[r]()}function ru(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?C4(t,r):h=="gutter"?iu(t,r,s,a):h=="class"?s1(t,r):h=="widget"&&w4(t,r,a)}r.changes=null}function Po(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),m&&y<8&&(t.node.style.zIndex=2)),t.node}function y4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=Po(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function nu(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):Q0(t,r)}function C4(t,r){var s=r.text.className,a=nu(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,s1(t,r)):s&&(r.text.className=s)}function s1(t,r){y4(t,r),r.line.wrapClass?Po(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function iu(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=Po(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=Po(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Eo(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var b=t.display.gutterSpecs[g].className,w=h.hasOwnProperty(b)&&h[b];w&&p.appendChild(x("div",[w],"CodeMirror-gutter-elt","left: "+a.gutterLeft[b]+"px; width: "+a.gutterWidth[b]+"px"))}}}function w4(t,r,s){r.alignable&&(r.alignable=null);for(var a=de("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);ou(t,r,s)}function x4(t,r,s,a){var c=nu(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),s1(t,r),iu(t,r,s,a),ou(t,r,a),r.node}function ou(t,r,s){if(au(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)au(t,r.rest[a],r,s,!1)}function au(t,r,s,a,c){if(r.widgets)for(var h=Po(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],b=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||b.setAttribute("cm-ignore-events","true"),z4(g,b,s,a),t.display.input.setUneditable(b),c&&g.above?h.insertBefore(b,s.gutter||s.text):h.appendChild(b),yt(g,"redraw")}}function z4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!X(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),k(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function tn(t,r){for(var s=yn(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function ns(t){return t.lineSpace.offsetTop}function l1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function su(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=k(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Br(t){return we-t.display.nativeBarWidth}function Un(t){return t.display.scroller.clientWidth-Br(t)-t.display.barWidth}function c1(t){return t.display.scroller.clientHeight-Br(t)-t.display.barHeight}function L4(t,r,s){var a=t.options.lineWrapping,c=a&&Un(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],b=f[p+1];Math.abs(g.bottom-b.bottom)>2&&h.push((g.bottom+b.top)/2-s.top)}}h.push(s.bottom-s.top)}}function lu(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(Re(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function S4(t,r){r=Fr(r);var s=Re(r),a=t.display.externalMeasured=new tu(t.doc,r,s);a.lineN=s;var c=a.built=Q0(t,a);return a.text=c.pre,k(t.display.lineMeasure,c.pre),a}function cu(t,r,s,a){return Vr(t,Ii(t,r),s,a)}function u1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[qn(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Ii(t,r){var s=Re(r),a=u1(t,s);a&&!a.text?a=null:a&&a.changes&&(ru(t,a,s,g1(t)),t.curOp.forceUpdate=!0),a||(a=S4(t,r));var c=lu(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function Vr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(L4(t,r.view,r.rect),r.hasHeights=!0),f=T4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var uu={left:0,right:0,top:0,bottom:0};function du(t,r,s){for(var a,c,h,f,p,g,b=0;b<t.length;b+=3)if(p=t[b],g=t[b+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(b==t.length-3||r==g&&t[b+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[b+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;b&&t[b-2]==t[b-3]&&t[b-1].insertLeft;)a=t[(b-=3)+2],f="left";if(s=="right"&&c==g-p)for(;b<t.length-3&&t[b+3]==t[b+4]&&!t[b+5].insertLeft;)a=t[(b+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function M4(t,r){var s=uu;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function T4(t,r,s,a){var c=du(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,b;if(h.nodeType==3){for(var w=0;w<4;w++){for(;f&&_e(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&_e(r.line.text.charAt(c.coverStart+p));)++p;if(m&&y<9&&f==0&&p==c.coverEnd-c.coverStart?b=h.parentNode.getBoundingClientRect():b=M4(B(h,f,p).getClientRects(),a),b.left||b.right||f==0)break;p=f,f=f-1,g="right"}m&&y<11&&(b=k4(t.display.measure,b))}else{f>0&&(g=a="right");var L;t.options.lineWrapping&&(L=h.getClientRects()).length>1?b=L[a=="right"?L.length-1:0]:b=h.getBoundingClientRect()}if(m&&y<9&&!f&&(!b||!b.left&&!b.right)){var I=h.parentNode.getClientRects()[0];I?b={left:I.left,right:I.left+Pi(t.display),top:I.top,bottom:I.bottom}:b=uu}for(var _=b.top-r.rect.top,H=b.bottom-r.rect.top,W=(_+H)/2,K=r.view.measure.heights,J=0;J<K.length-1&&!(W<K[J]);J++);var ae=J?K[J-1]:0,Q=K[J],ce={left:(g=="right"?b.right:b.left)-r.rect.left,right:(g=="left"?b.left:b.right)-r.rect.left,top:ae,bottom:Q};return!b.left&&!b.right&&(ce.bogus=!0),t.options.singleCursorHeightPerLine||(ce.rtop=_,ce.rbottom=H),ce}function k4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Cn(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function hu(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function fu(t){t.display.externalMeasure=null,Z(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)hu(t.display.view[r])}function No(t){fu(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function pu(){return $&&se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function gu(){return $&&se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function d1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Do(t.widgets[s]));return r}function is(t,r,s,a,c){if(!c){var h=d1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=en(r);if(a=="local"?f+=ns(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:gu());var g=p.left+(a=="window"?0:pu());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function vu(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=pu(),c-=gu();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function os(t,r,s,a,c){return a||(a=he(t.doc,r.line)),is(t,a,cu(t,a,r.ch,c),s)}function Cr(t,r,s,a,c,h){a=a||he(t.doc,r.line),c||(c=Ii(t,a));function f(H,W){var K=Vr(t,c,H,W?"right":"left",h);return W?K.left=K.right:K.right=K.left,is(t,a,K,s)}var p=jt(a,t.doc.direction),g=r.ch,b=r.sticky;if(g>=a.text.length?(g=a.text.length,b="before"):g<=0&&(g=0,b="after"),!p)return f(b=="before"?g-1:g,b=="before");function w(H,W,K){var J=p[W],ae=J.level==1;return f(K?H-1:H,ae!=K)}var L=nt(p,g,b),I=tr,_=w(g,L,b=="before");return I!=null&&(_.other=w(g,I,b!="before")),_}function bu(t,r){var s=0;r=oe(t.doc,r),t.options.lineWrapping||(s=Pi(t.display)*r.ch);var a=he(t.doc,r.line),c=en(a)+ns(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function h1(t,r,s,a,c){var h=U(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function f1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return h1(a.first,0,null,-1,-1);var c=Hr(a,s),h=a.first+a.size-1;if(c>h)return h1(a.first+a.size-1,he(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=he(a,c);;){var p=$4(t,f,c,r,s),g=n4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var b=g.find(1);if(b.line==c)return b;f=he(a,c=b.line)}}function mu(t,r,s,a){a-=d1(r);var c=r.text.length,h=Ar(function(f){return Vr(t,s,f-1).bottom<=a},c,0);return c=Ar(function(f){return Vr(t,s,f).top>a},h,c),{begin:h,end:c}}function yu(t,r,s,a){s||(s=Ii(t,r));var c=is(t,r,Vr(t,s,a),"line").top;return mu(t,r,s,c)}function p1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function $4(t,r,s,a,c){c-=en(r);var h=Ii(t,r),f=d1(r),p=0,g=r.text.length,b=!0,w=jt(r,t.doc.direction);if(w){var L=(t.options.lineWrapping?E4:O4)(t,r,s,h,w,a,c);b=L.level!=1,p=b?L.from:L.to-1,g=b?L.to:L.from-1}var I=null,_=null,H=Ar(function(ye){var ve=Vr(t,h,ye);return ve.top+=f,ve.bottom+=f,p1(ve,a,c,!1)?(ve.top<=c&&ve.left<=a&&(I=ye,_=ve),!0):!1},p,g),W,K,J=!1;if(_){var ae=a-_.left<_.right-a,Q=ae==b;H=I+(Q?0:1),K=Q?"after":"before",W=ae?_.left:_.right}else{!b&&(H==g||H==p)&&H++,K=H==0?"after":H==r.text.length?"before":Vr(t,h,H-(b?1:0)).bottom+f<=c==b?"after":"before";var ce=Cr(t,U(s,H,K),"line",r,h);W=ce.left,J=c<ce.top?-1:c>=ce.bottom?1:0}return H=It(r.text,H,1),h1(s,H,K,J,a-W)}function O4(t,r,s,a,c,h,f){var p=Ar(function(L){var I=c[L],_=I.level!=1;return p1(Cr(t,U(s,_?I.to:I.from,_?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var b=g.level!=1,w=Cr(t,U(s,b?g.from:g.to,b?"after":"before"),"line",r,a);p1(w,h,f,!0)&&w.top>f&&(g=c[p-1])}return g}function E4(t,r,s,a,c,h,f){var p=mu(t,r,a,f),g=p.begin,b=p.end;/\s/.test(r.text.charAt(b-1))&&b--;for(var w=null,L=null,I=0;I<c.length;I++){var _=c[I];if(!(_.from>=b||_.to<=g)){var H=_.level!=1,W=Vr(t,a,H?Math.min(b,_.to)-1:Math.max(g,_.from)).right,K=W<h?h-W+1e9:W-h;(!w||L>K)&&(w=_,L=K)}}return w||(w=c[c.length-1]),w.from<g&&(w={from:g,to:w.to,level:w.level}),w.to>b&&(w={from:w.from,to:b,level:w.level}),w}var jn;function Ai(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(jn==null){jn=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)jn.appendChild(document.createTextNode("x")),jn.appendChild(x("br"));jn.appendChild(document.createTextNode("x"))}k(t.measure,jn);var s=jn.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),Z(t.measure),s||1}function Pi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");k(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function g1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:v1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function v1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Cu(t){var r=Ai(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Pi(t.display)-3);return function(c){if(wn(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function b1(t){var r=t.doc,s=Cu(t);r.iter(function(a){var c=s(a);c!=a.height&&Gt(a,c)})}function Gn(t,r,s,a){var c=t.display;if(!s&&yn(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=f1(t,h,f),b;if(a&&g.xRel>0&&(b=he(t.doc,g.line).text).length==g.ch){var w=Je(b,b.length,t.options.tabSize)-b.length;g=U(g.line,Math.max(0,Math.round((h-su(t.display).left)/Pi(t.display))-w))}return g}function qn(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Rt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)Qr&&i1(t.doc,r)<c.viewTo&&zn(t);else if(s<=c.viewFrom)Qr&&X0(t.doc,s+a)>c.viewFrom?zn(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)zn(t);else if(r<=c.viewFrom){var h=as(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):zn(t)}else if(s>=c.viewTo){var f=as(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):zn(t)}else{var p=as(t,r,r,-1),g=as(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(rs(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):zn(t)}var b=c.externalMeasured;b&&(s<b.lineN?b.lineN+=a:r<b.lineN+b.size&&(c.externalMeasured=null))}function xn(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[qn(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);fe(f,s)==-1&&f.push(s)}}}function zn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function as(t,r,s,a){var c=qn(t,r),h,f=t.display.view;if(!Qr||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;i1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function _4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=rs(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=rs(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(qn(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(rs(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,qn(t,s)))),a.viewTo=s}function wu(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Ho(t){t.display.input.showSelection(t.display.input.prepareSelection())}function xu(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&zu(t,p.head,c),g||I4(t,p,h)}}return a}function zu(t,r,s){var a=Cr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=os(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function ss(t,r){return t.top-r.top||t.left-r.left}function I4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=su(t.display),p=f.left,g=Math.max(a.sizerWidth,Un(t)-a.sizer.offsetLeft)-f.right,b=c.direction=="ltr";function w(Q,ce,ye,ve){ce<0&&(ce=0),ce=Math.round(ce),ve=Math.round(ve),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+Q+`px;
|
|
2982
|
+
`,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},qa=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},Ka=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),To=null;function Cn(t){if(To!=null)return To;var r=k(t,x("span","x")),s=r.getBoundingClientRect(),a=B(r,0,1).getBoundingClientRect();return To=Math.abs(s.left-a.left)>1}var dr={},nr={};function Ya(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),dr[t]=r}function Jr(t,r){nr[t]=r}function ki(t){if(typeof t=="string"&&nr.hasOwnProperty(t))t=nr[t];else if(t&&typeof t.name=="string"&&nr.hasOwnProperty(t.name)){var r=nr[t.name];typeof r=="string"&&(r={name:r}),t=ur(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return ki("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ki("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function $i(t,r){r=ki(r);var s=dr[r.name];if(!s)return $i(t,"text/plain");var a=s(t,r);if(mr.hasOwnProperty(r.name)){var c=mr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var mr={};function yr(t,r){var s=mr.hasOwnProperty(t)?mr[t]:mr[t]={};Xe(r,s)}function ir(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function ko(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function $o(t,r,s){return t.startState?t.startState(r,s):!0}var it=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},it.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},it.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},it.prototype.backUp=function(t){this.pos-=t},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},it.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},it.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function he(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Nr(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function Oo(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Gt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function Re(t){if(t.parent==null)return null;for(var r=t.parent,s=fe(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Hr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function Wn(t,r){return r>=t.first&&r<t.first+t.size}function Eo(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function U(t,r,s){if(s===void 0&&(s=null),!(this instanceof U))return new U(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function M(t,r){return t.sticky==r.sticky&&C(t,r)==0}function V(t){return U(t.line,t.ch)}function q(t,r){return C(t,r)<0?r:t}function Le(t,r){return C(t,r)<0?t:r}function Ae(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function oe(t,r){if(r.line<t.first)return U(t.first,0);var s=t.first+t.size-1;return r.line>s?U(s,he(t,s).text.length):Ot(r,he(t,r.line).text.length)}function Ot(t,r){var s=t.ch;return s==null||s>r?U(t.line,r):s<0?U(t.line,0):t}function or(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=oe(t,r[a]);return s}var Oi=function(t,r){this.state=t,this.lookAhead=r},Rr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Rr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Rr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Rr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rr.fromSaved=function(t,r,s){return r instanceof Oi?new Rr(t,ir(t.mode,r.state),s,r.lookAhead):new Rr(t,ir(t.mode,r),s)},Rr.prototype.save=function(t){var r=t!==!1?ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Oi(r,this.maxLookAhead):r};function R0(t,r,s,a){var c=[t.state.modeGen],h={};U0(t,r.text,t.doc.mode,s,function(b,w){return c.push(b,w)},h,a);for(var f=s.state,p=function(b){s.baseTokens=c;var w=t.state.overlays[b],L=1,I=0;s.state=!0,U0(t,r.text,w.mode,s,function(_,H){for(var W=L;I<_;){var K=c[L];K>_&&c.splice(L,1,_,c[L+1],K),L+=2,I=Math.min(_,K)}if(H)if(w.opaque)c.splice(W,L-W,_,"overlay "+H),L=W+2;else for(;W<L;W+=2){var J=c[W+1];c[W+1]=(J?J+" ":"")+"overlay "+H}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function F0(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=_o(t,Re(r)),c=r.text.length>t.options.maxHighlightLength&&ir(t.doc.mode,a.state),h=R0(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function _o(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Rr(a,!0,r);var h=q6(t,r,s),f=h>a.first&&he(a,h-1).stateAfter,p=f?Rr.fromSaved(a,f,h):new Rr(a,$o(a.mode),h);return a.iter(h,r,function(g){e1(t,g.text,p);var b=p.line;g.stateAfter=b==r-1||b%5==0||b>=c.viewFrom&&b<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function e1(t,r,s,a){var c=t.doc.mode,h=new it(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&B0(c,s.state);!h.eol();)t1(c,h,s.state),h.start=h.pos}function B0(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=ko(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function t1(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=ko(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var V0=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function Z0(t,r,s,a){var c=t.doc,h=c.mode,f;r=oe(c,r);var p=he(c,r.line),g=_o(t,r.line,s),b=new it(p.text,t.options.tabSize,g),w;for(a&&(w=[]);(a||b.pos<r.ch)&&!b.eol();)b.start=b.pos,f=t1(h,b,g.state),a&&w.push(new V0(b,f,ir(c.mode,g.state)));return a?w:new V0(b,f,g.state)}function W0(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function U0(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,b=null,w=new it(r,t.options.tabSize,a),L,I=t.options.addModeClass&&[null];for(r==""&&W0(B0(s,a.state),h);!w.eol();){if(w.pos>t.options.maxHighlightLength?(p=!1,f&&e1(t,r,a,w.pos),w.pos=r.length,L=null):L=W0(t1(s,w,a.state,I),h),I){var _=I[0].name;_&&(L="m-"+(L?_+" "+L:_))}if(!p||b!=L){for(;g<w.start;)g=Math.min(w.start,g+5e3),c(g,b);b=L}w.start=w.pos}for(;g<w.pos;){var H=Math.min(w.pos,g+5e3);c(H,b),g=H}}function q6(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=he(h,p-1),b=g.stateAfter;if(b&&(!s||p+(b instanceof Oi?b.lookAhead:0)<=h.modeFrontier))return p;var w=Je(g.text,null,t.options.tabSize);(c==null||a>w)&&(c=p-1,a=w)}return c}function K6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=he(t,a).stateAfter;if(c&&(!(c instanceof Oi)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var j0=!1,Qr=!1;function Y6(){j0=!0}function X6(){Qr=!0}function Xa(t,r,s){this.marker=t,this.from=r,this.to=s}function Io(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function J6(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function Q6(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function e4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new Xa(f,h.from,g?null:h.to))}}return a}function t4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new Xa(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function r1(t,r){if(r.full)return null;var s=Wn(t,r.from.line)&&he(t,r.from.line).markedSpans,a=Wn(t,r.to.line)&&he(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=e4(s,c,f),g=t4(a,h,f),b=r.text.length==1,w=Oe(r.text).length+(b?c:0);if(p)for(var L=0;L<p.length;++L){var I=p[L];if(I.to==null){var _=Io(g,I.marker);_?b&&(I.to=_.to==null?null:_.to+w):I.to=c}}if(g)for(var H=0;H<g.length;++H){var W=g[H];if(W.to!=null&&(W.to+=w),W.from==null){var K=Io(p,W.marker);K||(W.from=w,b&&(p||(p=[])).push(W))}else W.from+=w,b&&(p||(p=[])).push(W)}p&&(p=G0(p)),g&&g!=p&&(g=G0(g));var J=[p];if(!b){var ae=r.text.length-2,Q;if(ae>0&&p)for(var ce=0;ce<p.length;++ce)p[ce].to==null&&(Q||(Q=[])).push(new Xa(p[ce].marker,null,null));for(var ye=0;ye<ae;++ye)J.push(Q);J.push(g)}return J}function G0(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function r4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(_){if(_.markedSpans)for(var H=0;H<_.markedSpans.length;++H){var W=_.markedSpans[H].marker;W.readOnly&&(!a||fe(a,W)==-1)&&(a||(a=[])).push(W)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var b=c[g];if(!(C(b.to,p.from)<0||C(b.from,p.to)>0)){var w=[g,1],L=C(b.from,p.from),I=C(b.to,p.to);(L<0||!f.inclusiveLeft&&!L)&&w.push({from:b.from,to:p.from}),(I>0||!f.inclusiveRight&&!I)&&w.push({from:p.to,to:b.to}),c.splice.apply(c,w),g+=w.length-3}}return c}function q0(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function K0(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function Ja(t){return t.inclusiveLeft?-1:0}function Qa(t){return t.inclusiveRight?1:0}function n1(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||Ja(t)-Ja(r);if(h)return-h;var f=C(a.to,c.to)||Qa(t)-Qa(r);return f||r.id-t.id}function Y0(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||n1(a,c.marker)<0)&&(a=c.marker);return a}function X0(t){return Y0(t,!0)}function es(t){return Y0(t,!1)}function n4(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||n1(a,h.marker)<0)&&(a=h.marker)}return a}function J0(t,r,s,a,c){var h=he(t,r),f=Qr&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var b=g.marker.find(0),w=C(b.from,s)||Ja(g.marker)-Ja(c),L=C(b.to,a)||Qa(g.marker)-Qa(c);if(!(w>=0&&L<=0||w<=0&&L>=0)&&(w<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.to,s)>=0:C(b.to,s)>0)||w>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.from,a)<=0:C(b.from,a)<0)))return!0}}}function Fr(t){for(var r;r=X0(t);)t=r.find(-1,!0).line;return t}function i4(t){for(var r;r=es(t);)t=r.find(1,!0).line;return t}function o4(t){for(var r,s;r=es(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function i1(t,r){var s=he(t,r),a=Fr(s);return s==a?r:Re(a)}function Q0(t,r){if(r>t.lastLine())return r;var s=he(t,r),a;if(!wn(t,s))return r;for(;a=es(s);)s=a.find(1,!0).line;return Re(s)+1}function wn(t,r){var s=Qr&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&o1(t,r,a))return!0}}}function o1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return o1(t,a.line,Io(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&o1(t,r,c))return!0}function en(t){t=Fr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function ts(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=X0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=es(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function a1(t){var r=t.display,s=t.doc;r.maxLine=he(s,s.first),r.maxLineLength=ts(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=ts(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var Ei=function(t,r,s){this.text=t,K0(this,r),this.height=s?s(this):1};Ei.prototype.lineNo=function(){return Re(this)},Pr(Ei);function a4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),q0(t),K0(t,s);var c=a?a(t):1;c!=t.height&&Gt(t,c)}function s4(t){t.parent=null,q0(t)}var l4={},c4={};function eu(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?c4:l4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function tu(t,r){var s=z("span",null,null,T?"padding-right: .1px":null),a={pre:z("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=d4,Dr(t.display.measure)&&(f=jt(h,t.doc.direction))&&(a.addToken=f4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&Re(h);p4(h,a,F0(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Be(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Be(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Ga(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(T){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return ze(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function u4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function d4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?h4(r,t.trailingSpace):r,g=t.cm.state.specialChars,b=!1,w;if(!g.test(r))t.col+=r.length,w=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,w),y&&m<9&&(b=!0),t.pos+=r.length;else{w=document.createDocumentFragment();for(var L=0;;){g.lastIndex=L;var I=g.exec(r),_=I?I.index-L:r.length-L;if(_){var H=document.createTextNode(p.slice(L,L+_));y&&m<9?w.appendChild(x("span",[H])):w.appendChild(H),t.map.push(t.pos,t.pos+_,H),t.col+=_,t.pos+=_}if(!I)break;L+=_+1;var W=void 0;if(I[0]==" "){var K=t.cm.options.tabSize,J=K-t.col%K;W=w.appendChild(x("span",mn(J),"cm-tab")),W.setAttribute("role","presentation"),W.setAttribute("cm-text"," "),t.col+=J}else I[0]=="\r"||I[0]==`
|
|
2983
|
+
`?(W=w.appendChild(x("span",I[0]=="\r"?"␍":"","cm-invalidchar")),W.setAttribute("cm-text",I[0]),t.col+=1):(W=t.cm.options.specialCharPlaceholder(I[0]),W.setAttribute("cm-text",I[0]),y&&m<9?w.appendChild(x("span",[W])):w.appendChild(W),t.col+=1);t.map.push(t.pos,t.pos+1,W),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||b||h||f){var ae=s||"";a&&(ae+=a),c&&(ae+=c);var Q=x("span",[w],ae,h);if(f)for(var ce in f)f.hasOwnProperty(ce)&&ce!="style"&&ce!="class"&&Q.setAttribute(ce,f[ce]);return t.content.appendChild(Q)}t.content.appendChild(w)}}function h4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function f4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var b=s.pos,w=b+a.length;;){for(var L=void 0,I=0;I<r.length&&(L=r[I],!(L.to>b&&L.from<=b));I++);if(L.to>=w)return t(s,a,c,h,f,p,g);t(s,a.slice(0,L.to-b),c,h,null,p,g),h=null,a=a.slice(L.to-b),b=L.to}}}function ru(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function p4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),eu(s[f+1],r.cm.options));return}for(var p=c.length,g=0,b=1,w="",L,I,_=0,H,W,K,J,ae;;){if(_==g){H=W=K=I="",ae=null,J=null,_=1/0;for(var Q=[],ce=void 0,ye=0;ye<a.length;++ye){var ve=a[ye],ke=ve.marker;if(ke.type=="bookmark"&&ve.from==g&&ke.widgetNode)Q.push(ke);else if(ve.from<=g&&(ve.to==null||ve.to>g||ke.collapsed&&ve.to==g&&ve.from==g)){if(ve.to!=null&&ve.to!=g&&_>ve.to&&(_=ve.to,W=""),ke.className&&(H+=" "+ke.className),ke.css&&(I=(I?I+";":"")+ke.css),ke.startStyle&&ve.from==g&&(K+=" "+ke.startStyle),ke.endStyle&&ve.to==_&&(ce||(ce=[])).push(ke.endStyle,ve.to),ke.title&&((ae||(ae={})).title=ke.title),ke.attributes)for(var Ye in ke.attributes)(ae||(ae={}))[Ye]=ke.attributes[Ye];ke.collapsed&&(!J||n1(J.marker,ke)<0)&&(J=ve)}else ve.from>g&&_>ve.from&&(_=ve.from)}if(ce)for(var xt=0;xt<ce.length;xt+=2)ce[xt+1]==_&&(W+=" "+ce[xt]);if(!J||J.from==g)for(var rt=0;rt<Q.length;++rt)ru(r,0,Q[rt]);if(J&&(J.from||0)==g){if(ru(r,(J.to==null?p+1:J.to)-g,J.marker,J.from==null),J.to==null)return;J.to==g&&(J=!1)}}if(g>=p)break;for(var Kt=Math.min(p,_);;){if(w){var Bt=g+w.length;if(!J){var ut=Bt>Kt?w.slice(0,Kt-g):w;r.addToken(r,ut,L?L+H:H,K,g+ut.length==_?W:"",I,ae)}if(Bt>=Kt){w=w.slice(Kt-g),g=Kt;break}g=Bt,K=""}w=c.slice(h,h=s[b++]),L=eu(s[b++],r.cm.options)}}}function nu(t,r,s){this.line=r,this.rest=o4(r),this.size=this.rest?Re(Oe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=wn(t,r)}function rs(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new nu(t.doc,he(t.doc,h),h);c=h+f.size,a.push(f)}return a}var _i=null;function g4(t){_i?_i.ops.push(t):t.ownsGroup=_i={ops:[t],delayedCallbacks:[]}}function v4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function b4(t,r){var s=t.ownsGroup;if(s)try{v4(s)}finally{_i=null,r(s)}}var Ao=null;function yt(t,r){var s=Si(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;_i?c=_i.delayedCallbacks:Ao?c=Ao:(c=Ao=[],setTimeout(m4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function m4(){var t=Ao;Ao=null;for(var r=0;r<t.length;++r)t[r]()}function iu(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?C4(t,r):h=="gutter"?au(t,r,s,a):h=="class"?s1(t,r):h=="widget"&&w4(t,r,a)}r.changes=null}function Po(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),y&&m<8&&(t.node.style.zIndex=2)),t.node}function y4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=Po(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function ou(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):tu(t,r)}function C4(t,r){var s=r.text.className,a=ou(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,s1(t,r)):s&&(r.text.className=s)}function s1(t,r){y4(t,r),r.line.wrapClass?Po(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function au(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=Po(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=Po(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Eo(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var b=t.display.gutterSpecs[g].className,w=h.hasOwnProperty(b)&&h[b];w&&p.appendChild(x("div",[w],"CodeMirror-gutter-elt","left: "+a.gutterLeft[b]+"px; width: "+a.gutterWidth[b]+"px"))}}}function w4(t,r,s){r.alignable&&(r.alignable=null);for(var a=de("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);su(t,r,s)}function x4(t,r,s,a){var c=ou(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),s1(t,r),au(t,r,s,a),su(t,r,a),r.node}function su(t,r,s){if(lu(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)lu(t,r.rest[a],r,s,!1)}function lu(t,r,s,a,c){if(r.widgets)for(var h=Po(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],b=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||b.setAttribute("cm-ignore-events","true"),z4(g,b,s,a),t.display.input.setUneditable(b),c&&g.above?h.insertBefore(b,s.gutter||s.text):h.appendChild(b),yt(g,"redraw")}}function z4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!X(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),k(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function tn(t,r){for(var s=yn(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function ns(t){return t.lineSpace.offsetTop}function l1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function cu(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=k(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Br(t){return we-t.display.nativeBarWidth}function Un(t){return t.display.scroller.clientWidth-Br(t)-t.display.barWidth}function c1(t){return t.display.scroller.clientHeight-Br(t)-t.display.barHeight}function L4(t,r,s){var a=t.options.lineWrapping,c=a&&Un(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],b=f[p+1];Math.abs(g.bottom-b.bottom)>2&&h.push((g.bottom+b.top)/2-s.top)}}h.push(s.bottom-s.top)}}function uu(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(Re(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function S4(t,r){r=Fr(r);var s=Re(r),a=t.display.externalMeasured=new nu(t.doc,r,s);a.lineN=s;var c=a.built=tu(t,a);return a.text=c.pre,k(t.display.lineMeasure,c.pre),a}function du(t,r,s,a){return Vr(t,Ii(t,r),s,a)}function u1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[qn(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Ii(t,r){var s=Re(r),a=u1(t,s);a&&!a.text?a=null:a&&a.changes&&(iu(t,a,s,g1(t)),t.curOp.forceUpdate=!0),a||(a=S4(t,r));var c=uu(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function Vr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(L4(t,r.view,r.rect),r.hasHeights=!0),f=T4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var hu={left:0,right:0,top:0,bottom:0};function fu(t,r,s){for(var a,c,h,f,p,g,b=0;b<t.length;b+=3)if(p=t[b],g=t[b+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(b==t.length-3||r==g&&t[b+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[b+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;b&&t[b-2]==t[b-3]&&t[b-1].insertLeft;)a=t[(b-=3)+2],f="left";if(s=="right"&&c==g-p)for(;b<t.length-3&&t[b+3]==t[b+4]&&!t[b+5].insertLeft;)a=t[(b+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function M4(t,r){var s=hu;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function T4(t,r,s,a){var c=fu(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,b;if(h.nodeType==3){for(var w=0;w<4;w++){for(;f&&_e(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&_e(r.line.text.charAt(c.coverStart+p));)++p;if(y&&m<9&&f==0&&p==c.coverEnd-c.coverStart?b=h.parentNode.getBoundingClientRect():b=M4(B(h,f,p).getClientRects(),a),b.left||b.right||f==0)break;p=f,f=f-1,g="right"}y&&m<11&&(b=k4(t.display.measure,b))}else{f>0&&(g=a="right");var L;t.options.lineWrapping&&(L=h.getClientRects()).length>1?b=L[a=="right"?L.length-1:0]:b=h.getBoundingClientRect()}if(y&&m<9&&!f&&(!b||!b.left&&!b.right)){var I=h.parentNode.getClientRects()[0];I?b={left:I.left,right:I.left+Pi(t.display),top:I.top,bottom:I.bottom}:b=hu}for(var _=b.top-r.rect.top,H=b.bottom-r.rect.top,W=(_+H)/2,K=r.view.measure.heights,J=0;J<K.length-1&&!(W<K[J]);J++);var ae=J?K[J-1]:0,Q=K[J],ce={left:(g=="right"?b.right:b.left)-r.rect.left,right:(g=="left"?b.left:b.right)-r.rect.left,top:ae,bottom:Q};return!b.left&&!b.right&&(ce.bogus=!0),t.options.singleCursorHeightPerLine||(ce.rtop=_,ce.rbottom=H),ce}function k4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Cn(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function pu(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function gu(t){t.display.externalMeasure=null,Z(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)pu(t.display.view[r])}function No(t){gu(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function vu(){return $&&se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bu(){return $&&se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function d1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Do(t.widgets[s]));return r}function is(t,r,s,a,c){if(!c){var h=d1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=en(r);if(a=="local"?f+=ns(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:bu());var g=p.left+(a=="window"?0:vu());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function mu(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=vu(),c-=bu();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function os(t,r,s,a,c){return a||(a=he(t.doc,r.line)),is(t,a,du(t,a,r.ch,c),s)}function Cr(t,r,s,a,c,h){a=a||he(t.doc,r.line),c||(c=Ii(t,a));function f(H,W){var K=Vr(t,c,H,W?"right":"left",h);return W?K.left=K.right:K.right=K.left,is(t,a,K,s)}var p=jt(a,t.doc.direction),g=r.ch,b=r.sticky;if(g>=a.text.length?(g=a.text.length,b="before"):g<=0&&(g=0,b="after"),!p)return f(b=="before"?g-1:g,b=="before");function w(H,W,K){var J=p[W],ae=J.level==1;return f(K?H-1:H,ae!=K)}var L=nt(p,g,b),I=tr,_=w(g,L,b=="before");return I!=null&&(_.other=w(g,I,b!="before")),_}function yu(t,r){var s=0;r=oe(t.doc,r),t.options.lineWrapping||(s=Pi(t.display)*r.ch);var a=he(t.doc,r.line),c=en(a)+ns(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function h1(t,r,s,a,c){var h=U(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function f1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return h1(a.first,0,null,-1,-1);var c=Hr(a,s),h=a.first+a.size-1;if(c>h)return h1(a.first+a.size-1,he(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=he(a,c);;){var p=$4(t,f,c,r,s),g=n4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var b=g.find(1);if(b.line==c)return b;f=he(a,c=b.line)}}function Cu(t,r,s,a){a-=d1(r);var c=r.text.length,h=Ar(function(f){return Vr(t,s,f-1).bottom<=a},c,0);return c=Ar(function(f){return Vr(t,s,f).top>a},h,c),{begin:h,end:c}}function wu(t,r,s,a){s||(s=Ii(t,r));var c=is(t,r,Vr(t,s,a),"line").top;return Cu(t,r,s,c)}function p1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function $4(t,r,s,a,c){c-=en(r);var h=Ii(t,r),f=d1(r),p=0,g=r.text.length,b=!0,w=jt(r,t.doc.direction);if(w){var L=(t.options.lineWrapping?E4:O4)(t,r,s,h,w,a,c);b=L.level!=1,p=b?L.from:L.to-1,g=b?L.to:L.from-1}var I=null,_=null,H=Ar(function(ye){var ve=Vr(t,h,ye);return ve.top+=f,ve.bottom+=f,p1(ve,a,c,!1)?(ve.top<=c&&ve.left<=a&&(I=ye,_=ve),!0):!1},p,g),W,K,J=!1;if(_){var ae=a-_.left<_.right-a,Q=ae==b;H=I+(Q?0:1),K=Q?"after":"before",W=ae?_.left:_.right}else{!b&&(H==g||H==p)&&H++,K=H==0?"after":H==r.text.length?"before":Vr(t,h,H-(b?1:0)).bottom+f<=c==b?"after":"before";var ce=Cr(t,U(s,H,K),"line",r,h);W=ce.left,J=c<ce.top?-1:c>=ce.bottom?1:0}return H=It(r.text,H,1),h1(s,H,K,J,a-W)}function O4(t,r,s,a,c,h,f){var p=Ar(function(L){var I=c[L],_=I.level!=1;return p1(Cr(t,U(s,_?I.to:I.from,_?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var b=g.level!=1,w=Cr(t,U(s,b?g.from:g.to,b?"after":"before"),"line",r,a);p1(w,h,f,!0)&&w.top>f&&(g=c[p-1])}return g}function E4(t,r,s,a,c,h,f){var p=Cu(t,r,a,f),g=p.begin,b=p.end;/\s/.test(r.text.charAt(b-1))&&b--;for(var w=null,L=null,I=0;I<c.length;I++){var _=c[I];if(!(_.from>=b||_.to<=g)){var H=_.level!=1,W=Vr(t,a,H?Math.min(b,_.to)-1:Math.max(g,_.from)).right,K=W<h?h-W+1e9:W-h;(!w||L>K)&&(w=_,L=K)}}return w||(w=c[c.length-1]),w.from<g&&(w={from:g,to:w.to,level:w.level}),w.to>b&&(w={from:w.from,to:b,level:w.level}),w}var jn;function Ai(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(jn==null){jn=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)jn.appendChild(document.createTextNode("x")),jn.appendChild(x("br"));jn.appendChild(document.createTextNode("x"))}k(t.measure,jn);var s=jn.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),Z(t.measure),s||1}function Pi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");k(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function g1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:v1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function v1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function xu(t){var r=Ai(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Pi(t.display)-3);return function(c){if(wn(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function b1(t){var r=t.doc,s=xu(t);r.iter(function(a){var c=s(a);c!=a.height&&Gt(a,c)})}function Gn(t,r,s,a){var c=t.display;if(!s&&yn(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=f1(t,h,f),b;if(a&&g.xRel>0&&(b=he(t.doc,g.line).text).length==g.ch){var w=Je(b,b.length,t.options.tabSize)-b.length;g=U(g.line,Math.max(0,Math.round((h-cu(t.display).left)/Pi(t.display))-w))}return g}function qn(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Rt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)Qr&&i1(t.doc,r)<c.viewTo&&zn(t);else if(s<=c.viewFrom)Qr&&Q0(t.doc,s+a)>c.viewFrom?zn(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)zn(t);else if(r<=c.viewFrom){var h=as(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):zn(t)}else if(s>=c.viewTo){var f=as(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):zn(t)}else{var p=as(t,r,r,-1),g=as(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(rs(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):zn(t)}var b=c.externalMeasured;b&&(s<b.lineN?b.lineN+=a:r<b.lineN+b.size&&(c.externalMeasured=null))}function xn(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[qn(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);fe(f,s)==-1&&f.push(s)}}}function zn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function as(t,r,s,a){var c=qn(t,r),h,f=t.display.view;if(!Qr||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;i1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function _4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=rs(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=rs(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(qn(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(rs(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,qn(t,s)))),a.viewTo=s}function zu(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Ho(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Lu(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&Su(t,p.head,c),g||I4(t,p,h)}}return a}function Su(t,r,s){var a=Cr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=os(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function ss(t,r){return t.top-r.top||t.left-r.left}function I4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=cu(t.display),p=f.left,g=Math.max(a.sizerWidth,Un(t)-a.sizer.offsetLeft)-f.right,b=c.direction=="ltr";function w(Q,ce,ye,ve){ce<0&&(ce=0),ce=Math.round(ce),ve=Math.round(ve),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+Q+`px;
|
|
2984
2984
|
top: `+ce+"px; width: "+(ye==null?g-Q:ye)+`px;
|
|
2985
|
-
height: `+(ve-ce)+"px"))}function L(Q,ce,ye){var ve=he(c,Q),ke=ve.text.length,Ye,xt;function rt(ut,Vt){return os(t,U(Q,ut),"div",ve,Vt)}function Kt(ut,Vt,Mt){var ft=
|
|
2985
|
+
height: `+(ve-ce)+"px"))}function L(Q,ce,ye){var ve=he(c,Q),ke=ve.text.length,Ye,xt;function rt(ut,Vt){return os(t,U(Q,ut),"div",ve,Vt)}function Kt(ut,Vt,Mt){var ft=wu(t,ve,null,ut),dt=Vt=="ltr"==(Mt=="after")?"left":"right",ot=Mt=="after"?ft.begin:ft.end-(/\s/.test(ve.text.charAt(ft.end-1))?2:1);return rt(ot,dt)[dt]}var Bt=jt(ve,c.direction);return Ql(Bt,ce||0,ye==null?ke:ye,function(ut,Vt,Mt,ft){var dt=Mt=="ltr",ot=rt(ut,dt?"left":"right"),Zt=rt(Vt-1,dt?"right":"left"),qi=ce==null&&ut==0,$n=ye==null&&Vt==ke,_t=ft==0,Zr=!Bt||ft==Bt.length-1;if(Zt.top-ot.top<=3){var zt=(b?qi:$n)&&_t,Z1=(b?$n:qi)&&Zr,nn=zt?p:(dt?ot:Zt).left,Qn=Z1?g:(dt?Zt:ot).right;w(nn,ot.top,Qn-nn,ot.bottom)}else{var ei,Pt,Ki,W1;dt?(ei=b&&qi&&_t?p:ot.left,Pt=b?g:Kt(ut,Mt,"before"),Ki=b?p:Kt(Vt,Mt,"after"),W1=b&&$n&&Zr?g:Zt.right):(ei=b?Kt(ut,Mt,"before"):p,Pt=!b&&qi&&_t?g:ot.right,Ki=!b&&$n&&Zr?p:Zt.left,W1=b?Kt(Vt,Mt,"after"):g),w(ei,ot.top,Pt-ei,ot.bottom),ot.bottom<Zt.top&&w(p,ot.bottom,null,Zt.top),w(Ki,Zt.top,W1-Ki,Zt.bottom)}(!Ye||ss(ot,Ye)<0)&&(Ye=ot),ss(Zt,Ye)<0&&(Ye=Zt),(!xt||ss(ot,xt)<0)&&(xt=ot),ss(Zt,xt)<0&&(xt=Zt)}),{start:Ye,end:xt}}var I=r.from(),_=r.to();if(I.line==_.line)L(I.line,I.ch,_.ch);else{var H=he(c,I.line),W=he(c,_.line),K=Fr(H)==Fr(W),J=L(I.line,I.ch,K?H.text.length+1:null).end,ae=L(_.line,K?0:null,_.ch).start;K&&(J.top<ae.top-2?(w(J.right,J.top,null,J.bottom),w(p,ae.top,ae.left,ae.bottom)):w(J.right,J.top,ae.left-J.right,J.bottom)),J.bottom<ae.top&&w(p,J.bottom,null,ae.top)}s.appendChild(h)}function m1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Di(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Mu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||C1(t))}function y1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Di(t))},100)}function C1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(ze(t,"focus",t,r),t.state.focused=!0,Te(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),T&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),m1(t))}function Di(t,r){t.state.delayingBlurEvent||(t.state.focused&&(ze(t,"blur",t,r),t.state.focused=!1,ie(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ls(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(y&&m<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var b=c.node.getBoundingClientRect();f=b.bottom-b.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-b.left-1)}var w=c.line.height-f;if((w>.005||w<-.005)&&(Gt(c.line,f),Tu(c.line),c.rest))for(var L=0;L<c.rest.length;L++)Tu(c.rest[L]);if(p>t.display.sizerWidth){var I=Math.ceil(p/Pi(t.display));I>t.display.maxLineLength&&(t.display.maxLineLength=I,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function Tu(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function cs(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-ns(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Hr(r,a),f=Hr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Hr(r,en(he(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Hr(r,en(he(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function A4(t,r){if(!ct(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!ee){var h=x("div","",null,`position: absolute;
|
|
2986
2986
|
top: `+(r.top-s.viewOffset-ns(t.display))+`px;
|
|
2987
2987
|
height: `+(r.bottom-r.top+Br(t)+s.barHeight)+`px;
|
|
2988
|
-
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function P4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?U(r.line,r.ch+1,"before"):r,r=r.ch?U(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=Cr(t,r),g=!s||s==r?p:Cr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var b=w1(t,c),w=t.doc.scrollTop,L=t.doc.scrollLeft;if(b.scrollTop!=null&&(Fo(t,b.scrollTop),Math.abs(t.doc.scrollTop-w)>1&&(f=!0)),b.scrollLeft!=null&&(Kn(t,b.scrollLeft),Math.abs(t.doc.scrollLeft-L)>1&&(f=!0)),!f)break}return c}function D4(t,r){var s=w1(t,r);s.scrollTop!=null&&Fo(t,s.scrollTop),s.scrollLeft!=null&&Kn(t,s.scrollLeft)}function w1(t,r){var s=t.display,a=Ai(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=c1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+l1(s),g=r.top<a,b=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var w=Math.min(r.top,(b?p:r.bottom)-h);w!=c&&(f.scrollTop=w)}var L=t.options.fixedGutter?0:s.gutters.offsetWidth,I=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-L,_=Un(t)-s.gutters.offsetWidth,H=r.right-r.left>_;return H&&(r.right=r.left+_),r.left<10?f.scrollLeft=0:r.left<I?f.scrollLeft=Math.max(0,r.left+L-(H?0:10)):r.right>_+I-3&&(f.scrollLeft=r.right+(H?0:10)-_),f}function x1(t,r){r!=null&&(us(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Ni(t){us(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Ro(t,r,s){(r!=null||s!=null)&&us(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function N4(t,r){us(t),t.curOp.scrollToPos=r}function us(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=bu(t,r.from),a=bu(t,r.to);Mu(t,s,a,r.margin)}}function Mu(t,r,s,a){var c=w1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Ro(t,c.scrollLeft,c.scrollTop)}function Fo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||L1(t,{top:r}),Tu(t,r,!0),l&&L1(t),Zo(t,100))}function Tu(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Kn(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,_u(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Bo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+l1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Br(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Yn=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Ce(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ce(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yn.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Yn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yn.prototype.zeroWidthHack=function(){var t=ue&&!G?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Yn.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Yn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Vo=function(){};Vo.prototype.update=function(){return{bottom:0,right:0}},Vo.prototype.setScrollLeft=function(){},Vo.prototype.setScrollTop=function(){},Vo.prototype.clear=function(){};function Hi(t,r){r||(r=Bo(t));var s=t.display.barWidth,a=t.display.barHeight;ku(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&ls(t),ku(t,Bo(t)),s=t.display.barWidth,a=t.display.barHeight}function ku(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var $u={native:Yn,null:Vo};function Ou(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&ie(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new $u[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Ce(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Kn(t,r):Fo(t,r)},t),t.display.scrollbars.addClass&&Me(t.display.wrapper,t.display.scrollbars.addClass)}var H4=0;function Xn(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++H4,markArrays:null},g4(t.curOp)}function Jn(t){var r=t.curOp;r&&b4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;R4(s)})}function R4(t){for(var r=t.ops,s=0;s<r.length;s++)F4(r[s]);for(var a=0;a<r.length;a++)B4(r[a]);for(var c=0;c<r.length;c++)V4(r[c]);for(var h=0;h<r.length;h++)Z4(r[h]);for(var f=0;f<r.length;f++)W4(r[f])}function F4(t){var r=t.cm,s=r.display;j4(r),t.updateMaxLine&&a1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new ds(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function B4(t){t.updatedDisplay=t.mustUpdate&&z1(t.cm,t.update)}function V4(t){var r=t.cm,s=r.display;t.updatedDisplay&&ls(r),t.barMeasure=Bo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=cu(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Br(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Un(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function Z4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Kn(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==be();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Hi(r,t.barMeasure),t.updatedDisplay&&M1(r,t.barMeasure),t.selectionChanged&&m1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&Lu(t.cm)}function W4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&Eu(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&Tu(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Kn(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=P4(r,oe(a,t.scrollToPos.from),oe(a,t.scrollToPos.to),t.scrollToPos.margin);A4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||ze(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&ze(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&ze(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function qt(t,r){if(t.curOp)return r();Xn(t);try{return r()}finally{Jn(t)}}function Ct(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Xn(t);try{return r.apply(t,arguments)}finally{Jn(t)}}}function At(t){return function(){if(this.curOp)return t.apply(this,arguments);Xn(this);try{return t.apply(this,arguments)}finally{Jn(this)}}}function wt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Xn(r);try{return t.apply(this,arguments)}finally{Jn(r)}}}function Zo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Qt(U4,t))}function U4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=_o(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?ir(r.mode,a.state):null,g=N0(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var b=h.styleClasses,w=g.classes;w?h.styleClasses=w:b&&(h.styleClasses=null);for(var L=!f||f.length!=h.styles.length||b!=w&&(!b||!w||b.bgClass!=w.bgClass||b.textClass!=w.textClass),I=0;!L&&I<f.length;++I)L=f[I]!=h.styles[I];L&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&e1(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Zo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&qt(t,function(){for(var h=0;h<c.length;h++)xn(t,c[h],"text")})}}var ds=function(t,r,s){var a=t.display;this.viewport=r,this.visible=cs(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Un(t),this.force=s,this.dims=g1(t),this.events=[]};ds.prototype.signal=function(t,r){St(t,r)&&this.events.push(arguments)},ds.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ze.apply(null,this.events[t])};function j4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Br(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Br(t)+"px",r.scrollbarsClipped=!0)}function G4(t){if(t.hasFocus())return null;var r=be();if(!r||!X(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&X(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function q4(t){if(!(!t||!t.activeElt||t.activeElt==be())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&X(document.body,t.anchorNode)&&X(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function z1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return zn(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&wu(t)==0)return!1;Iu(t)&&(zn(t),r.dims=g1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),Qr&&(h=i1(t.doc,h),f=X0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;_4(t,h,f),s.viewOffset=en(he(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=wu(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var b=G4(t);return g>4&&(s.lineDiv.style.display="none"),K4(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,q4(b),Z(s.cursorDiv),Z(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Zo(t,400)),s.updateLineNumbers=null,!0}function Eu(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Un(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+l1(t.display)-c1(t),s.top)}),r.visible=cs(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=cs(t.display,t.doc,s));if(!z1(t,r))break;ls(t);var c=Bo(t);Ho(t),Hi(t,c),M1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function L1(t,r){var s=new ds(t,r);if(z1(t,s)){ls(t),Eu(t,s);var a=Bo(t);Ho(t),Hi(t,a),M1(t,a),s.finish()}}function K4(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(H){var W=H.nextSibling;return T&&ue&&t.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),W}for(var g=a.view,b=a.viewFrom,w=0;w<g.length;w++){var L=g[w];if(!L.hidden)if(!L.node||L.node.parentNode!=h){var I=x4(t,L,b,s);h.insertBefore(I,f)}else{for(;f!=L.node;)f=p(f);var _=c&&r!=null&&r<=b&&L.lineNumber;L.changes&&(fe(L.changes,"gutter")>-1&&(_=!1),ru(t,L,b,s)),_&&(Z(L.lineNumber),L.lineNumber.appendChild(document.createTextNode(Eo(t.options,b)))),f=L.node.nextSibling}b+=L.size}for(;f;)f=p(f)}function S1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",yt(t,"gutterChanged",t)}function M1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Br(t)+"px"}function _u(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=v1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function Iu(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Eo(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",S1(t.display),!0}return!1}function T1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Au(t){var r=t.gutters,s=t.gutterSpecs;Z(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",S1(t)}function Wo(t){Au(t.display),Rt(t),_u(t)}function Y4(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=z("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=z("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+we+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),m&&y<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!T&&!(l&&re)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=T1(a.gutters,a.lineNumbers),Au(c),s.init(c)}var hs=0,ar=null;m?ar=-.53:l?ar=15:$?ar=-.7:N&&(ar=-1/3);function Pu(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function X4(t){var r=Pu(t);return r.x*=ar,r.y*=ar,r}function Du(t,r){var s=Pu(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&ue&&T){e:for(var b=r.target,w=h.view;b!=f;b=b.parentNode)for(var L=0;L<w.length;L++)if(w[L].node==b){t.display.currentWheelTarget=b;break e}}if(a&&!l&&!E&&ar!=null){c&&g&&Fo(t,Math.max(0,f.scrollTop+c*ar)),Kn(t,Math.max(0,f.scrollLeft+a*ar)),(!c||c&&g)&&$t(r),h.wheelStartX=null;return}if(c&&ar!=null){var I=c*ar,_=t.doc.scrollTop,H=_+h.wrapper.clientHeight;I<0?_=Math.max(0,_+I-50):H=Math.min(t.doc.height,H+I+50),L1(t,{top:_,bottom:H})}hs<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var W=f.scrollLeft-h.wheelStartX,K=f.scrollTop-h.wheelStartY,J=K&&h.wheelDY&&K/h.wheelDY||W&&h.wheelDX&&W/h.wheelDX;h.wheelStartX=h.wheelStartY=null,J&&(ar=(ar*hs+J)/(hs+1),++hs)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var sr=function(t,r){this.ranges=t,this.primIndex=r};sr.prototype.primary=function(){return this.ranges[this.primIndex]},sr.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!M(s.anchor,a.anchor)||!M(s.head,a.head))return!1}return!0},sr.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Fe(V(this.ranges[r].anchor),V(this.ranges[r].head));return new sr(t,this.primIndex)},sr.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},sr.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Fe=function(t,r){this.anchor=t,this.head=r};Fe.prototype.from=function(){return Le(this.anchor,this.head)},Fe.prototype.to=function(){return q(this.anchor,this.head)},Fe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(I,_){return C(I.from(),_.from())}),s=fe(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var b=Le(p.from(),f.from()),w=q(p.to(),f.to()),L=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Fe(L?w:b,L?b:w))}}return new sr(r,s)}function Ln(t,r){return new sr([new Fe(t,r||t)],0)}function Sn(t){return t.text?U(t.from.line+t.text.length-1,Oe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Nu(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Sn(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Sn(r).ch-r.to.ch),U(s,a)}function k1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Fe(Nu(c.anchor,r),Nu(c.head,r)))}return wr(t.cm,s,t.sel.primIndex)}function Hu(t,r,s){return t.line==r.line?U(s.line,t.ch-r.ch+s.ch):U(s.line+(t.line-r.line),t.ch)}function J4(t,r,s){for(var a=[],c=U(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Hu(p.from,c,h),b=Hu(Sn(p),c,h);if(c=p.to,h=b,s=="around"){var w=t.sel.ranges[f],L=C(w.head,w.anchor)<0;a[f]=new Fe(L?b:g,L?g:b)}else a[f]=new Fe(g,g)}return new sr(a,t.sel.primIndex)}function $1(t){t.doc.mode=$i(t.options,t.doc.modeOption),Uo(t)}function Uo(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Zo(t,100),t.state.modeGen++,t.curOp&&Rt(t)}function Ru(t,r){return r.from.ch==0&&r.to.ch==0&&Oe(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function O1(t,r,s,a){function c(ae){return s?s[ae]:null}function h(ae,Q,ce){a4(ae,Q,ce,a),yt(ae,"change",ae,r)}function f(ae,Q){for(var ce=[],ye=ae;ye<Q;++ye)ce.push(new Ei(b[ye],c(ye),a));return ce}var p=r.from,g=r.to,b=r.text,w=he(t,p.line),L=he(t,g.line),I=Oe(b),_=c(b.length-1),H=g.line-p.line;if(r.full)t.insert(0,f(0,b.length)),t.remove(b.length,t.size-b.length);else if(Ru(t,r)){var W=f(0,b.length-1);h(L,L.text,_),H&&t.remove(p.line,H),W.length&&t.insert(p.line,W)}else if(w==L)if(b.length==1)h(w,w.text.slice(0,p.ch)+I+w.text.slice(g.ch),_);else{var K=f(1,b.length-1);K.push(new Ei(I+w.text.slice(g.ch),_,a)),h(w,w.text.slice(0,p.ch)+b[0],c(0)),t.insert(p.line+1,K)}else if(b.length==1)h(w,w.text.slice(0,p.ch)+b[0]+L.text.slice(g.ch),c(0)),t.remove(p.line+1,H);else{h(w,w.text.slice(0,p.ch)+b[0],c(0)),h(L,I+L.text.slice(g.ch),_);var J=f(1,b.length-1);H>1&&t.remove(p.line+1,H-1),t.insert(p.line+1,J)}yt(t,"change",t,r)}function Mn(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var b=f&&g.sharedHist;s&&!b||(r(g.doc,b),a(g.doc,c,b))}}}a(t,null,!0)}function Fu(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,b1(t),$1(t),Bu(t),t.options.direction=r.direction,t.options.lineWrapping||a1(t),t.options.mode=r.modeOption,Rt(t)}function Bu(t){(t.doc.direction=="rtl"?Me:ie)(t.display.lineDiv,"CodeMirror-rtl")}function Q4(t){qt(t,function(){Bu(t),Rt(t)})}function fs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function E1(t,r){var s={from:V(r.from),to:Sn(r),text:Nr(t,r.from,r.to)};return Wu(t,s,r.from.line,r.to.line+1),Mn(t,function(a){return Wu(a,s,r.from.line,r.to.line+1)},!0),s}function Vu(t){for(;t.length;){var r=Oe(t);if(r.ranges)t.pop();else break}}function e3(t,r){if(r)return Vu(t.done),Oe(t.done);if(t.done.length&&!Oe(t.done).ranges)return Oe(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Oe(t.done)}function Zu(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=e3(c,c.lastOp==a)))p=Oe(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Sn(r):f.changes.push(E1(t,r));else{var g=Oe(c.done);for((!g||!g.ranges)&&ps(t.sel,c.done),f={changes:[E1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||ze(t,"historyAdded")}function t3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function r3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||t3(t,h,Oe(c.done),r))?c.done[c.done.length-1]=r:ps(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&Vu(c.undone)}function ps(t,r){var s=Oe(r);s&&s.ranges&&s.equals(t)||r.push(t)}function Wu(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function n3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function i3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(n3(s[c]));return a}function Uu(t,r){var s=i3(t,r),a=r1(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],b=0;b<h.length;++b)if(h[b].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Ri(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?sr.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var b=f[g],w=void 0;if(p.push({from:b.from,to:b.to,text:b.text}),r)for(var L in b)(w=L.match(/^spans_(\d+)$/))&&fe(r,Number(w[1]))>-1&&(Oe(p)[L]=b[L],delete b[L])}}return a}function _1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Fe(c,r)}else return new Fe(s||r,r)}function gs(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Et(t,new sr([_1(t.sel.primary(),r,s,c)],0),a)}function ju(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=_1(t.sel.ranges[h],r[h],null,c);var f=wr(t.cm,a,t.sel.primIndex);Et(t,f,s)}function I1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,Et(t,wr(t.cm,c,t.sel.primIndex),a)}function Gu(t,r,s,a){Et(t,Ln(r,s),a)}function o3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Fe(oe(t,c[h].anchor),oe(t,c[h].head))},origin:s&&s.origin};return ze(t,"beforeSelectionChange",t,a),t.cm&&ze(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?wr(t.cm,a.ranges,a.ranges.length-1):r}function qu(t,r,s){var a=t.history.done,c=Oe(a);c&&c.ranges?(a[a.length-1]=r,vs(t,r,s)):Et(t,r,s)}function Et(t,r,s){vs(t,r,s),r3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function vs(t,r,s){(St(t,"beforeSelectionChange")||t.cm&&St(t.cm,"beforeSelectionChange"))&&(r=o3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);Ku(t,Xu(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Ni(t.cm)}function Ku(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Mi(t.cm)),yt(t,"cursorActivity",t))}function Yu(t){Ku(t,Xu(t,t.sel,null,!1))}function Xu(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=bs(t,f.anchor,p&&p.anchor,s,a),b=bs(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||b!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Fe(g,b))}return c?wr(t.cm,c,r.primIndex):r}function Fi(t,r,s,a,c){var h=he(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,b="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,w="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(b?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(w?p.to>=r.ch:p.to>r.ch))){if(c&&(ze(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var L=g.find(a<0?1:-1),I=void 0;if((a<0?w:b)&&(L=Ju(t,L,-a,L&&L.line==r.line?h:null)),L&&L.line==r.line&&(I=C(L,s))&&(a<0?I<0:I>0))return Fi(t,L,r,a,c)}var _=g.find(a<0?-1:1);return(a<0?b:w)&&(_=Ju(t,_,a,_.line==r.line?h:null)),_?Fi(t,_,r,a,c):null}}return r}function bs(t,r,s,a,c){var h=a||1,f=Fi(t,r,s,h,c)||!c&&Fi(t,r,s,h,!0)||Fi(t,r,s,-h,c)||!c&&Fi(t,r,s,-h,!0);return f||(t.cantEdit=!0,U(t.first,0))}function Ju(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?oe(t,U(r.line-1)):null:s>0&&r.ch==(a||he(t,r.line)).text.length?r.line<t.first+t.size-1?U(r.line+1,0):null:new U(r.line,r.ch+s)}function Qu(t){t.setSelection(U(t.firstLine(),0),U(t.lastLine()),Pe)}function ed(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=oe(t,c)),h&&(a.to=oe(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),ze(t,"beforeChange",t,a),t.cm&&ze(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Bi(t,r,s){if(t.cm){if(!t.cm.curOp)return Ct(t.cm,Bi)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"))&&(r=ed(t,r,!0),!r))){var a=W0&&!s&&r4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)td(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else td(t,r)}}function td(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=k1(t,r);Zu(t,r,s,t.cm?t.cm.curOp.id:NaN),jo(t,r,s,r1(t,r));var a=[];Mn(t,function(c,h){!h&&fe(a,c.history)==-1&&(od(c.history,r),a.push(c.history)),jo(c,r,null,r1(c,r))})}}function ms(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,b=0;b<p.length&&(h=p[b],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));b++);if(b!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(ps(h,g),s&&!h.equals(t.sel)){Et(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var w=[];ps(f,g),g.push({changes:w,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var L=St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"),I=function(W){var K=h.changes[W];if(K.origin=r,L&&!ed(t,K,!1))return p.length=0,{};w.push(E1(t,K));var J=W?k1(t,K):Oe(p);jo(t,K,J,Uu(t,K)),!W&&t.cm&&t.cm.scrollIntoView({from:K.from,to:Sn(K)});var ae=[];Mn(t,function(Q,ce){!ce&&fe(ae,Q.history)==-1&&(od(Q.history,K),ae.push(Q.history)),jo(Q,K,null,Uu(Q,K))})},_=h.changes.length-1;_>=0;--_){var H=I(_);if(H)return H.v}}}}function rd(t,r){if(r!=0&&(t.first+=r,t.sel=new sr(He(t.sel.ranges,function(c){return new Fe(U(c.anchor.line+r,c.anchor.ch),U(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Rt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)xn(t.cm,a,"gutter")}}function jo(t,r,s,a){if(t.cm&&!t.cm.curOp)return Ct(t.cm,jo)(t,r,s,a);if(r.to.line<t.first){rd(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);rd(t,c),r={from:U(t.first,0),to:U(r.to.line+c,r.to.ch),text:[Oe(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:U(h,he(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Nr(t,r.from,r.to),s||(s=k1(t,r)),t.cm?a3(t.cm,r,a):O1(t,r,a),vs(t,s,Pe),t.cantEdit&&bs(t,U(t.firstLine(),0))&&(t.cantEdit=!1)}}function a3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=Re(Fr(he(a,h.line))),a.iter(g,f.line+1,function(_){if(_==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&Mi(t),O1(a,r,s,Cu(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(_){var H=ts(_);H>c.maxLineLength&&(c.maxLine=_,c.maxLineLength=H,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),K6(a,h.line),Zo(t,400);var b=r.text.length-(f.line-h.line)-1;r.full?Rt(t):h.line==f.line&&r.text.length==1&&!Ru(t.doc,r)?xn(t,h.line,"text"):Rt(t,h.line,f.line+1,b);var w=St(t,"changes"),L=St(t,"change");if(L||w){var I={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};L&&yt(t,"change",t,I),w&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(I)}t.display.selForContextMenu=null}function Vi(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Bi(t,{from:s,to:a,text:r,origin:c})}function nd(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function id(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)nd(h.ranges[p].anchor,r,s,a),nd(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var b=h.changes[g];if(s<b.from.line)b.from=U(b.from.line+a,b.from.ch),b.to=U(b.to.line+a,b.to.ch);else if(r<=b.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function od(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;id(t.done,s,a,c),id(t.undone,s,a,c)}function Go(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=he(t,Ae(t,r)):c=Re(r),c==null?null:(a(h,c)&&t.cm&&xn(t.cm,c,s),h)}function qo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}qo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,s4(c),yt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Ko(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Ko.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof qo))){var p=[];this.collapse(p),this.children=[new qo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new qo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Ko(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=fe(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Ko(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Yo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Yo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=Re(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Do(this);Gt(s,Math.max(0,s.height-h)),t&&(qt(t,function(){ad(t,s,-h),xn(t,a,"widget")}),yt(t,"lineWidgetCleared",t,this,a))}},Yo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Do(this)-r;c&&(wn(this.doc,a)||Gt(a,a.height+c),s&&qt(s,function(){s.curOp.forceUpdate=!0,ad(s,a,c),yt(s,"lineWidgetChanged",s,t,Re(a))}))},Pr(Yo);function ad(t,r,s){en(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&x1(t,s)}function s3(t,r,s,a){var c=new Yo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Go(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!wn(t,f)){var g=en(f)<t.scrollTop;Gt(f,f.height+Do(c)),g&&x1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&yt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:Re(r)),c}var sd=0,Tn=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++sd};Tn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Xn(t),St(this,"clear")){var s=this.find();s&&yt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Io(f.markedSpans,this);t&&!this.collapsed?xn(t,Re(f),"text"):t&&(p.to!=null&&(c=Re(f)),p.from!=null&&(a=Re(f))),f.markedSpans=J6(f.markedSpans,p),p.from==null&&this.collapsed&&!wn(this.doc,f)&&t&&Gt(f,Ai(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var b=Fr(this.lines[g]),w=ts(b);w>t.display.maxLineLength&&(t.display.maxLine=b,t.display.maxLineLength=w,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Rt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Yu(t.doc)),t&&yt(t,"markerCleared",t,this,a,c),r&&Jn(t),this.parent&&this.parent.clear()}},Tn.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Io(h.markedSpans,this);if(f.from!=null&&(s=U(r?h:Re(h),f.from),t==-1))return s;if(f.to!=null&&(a=U(r?h:Re(h),f.to),t==1))return a}return s&&{from:s,to:a}},Tn.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||qt(a,function(){var c=r.line,h=Re(r.line),f=u1(a,h);if(f&&(hu(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!wn(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Do(s)-p;g&&Gt(c,c.height+g)}yt(a,"markerChanged",a,t)})},Tn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||fe(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Tn.prototype.detachLine=function(t){if(this.lines.splice(fe(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Pr(Tn);function Zi(t,r,s,a,c){if(a&&a.shared)return l3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return Ct(t.cm,Zi)(t,r,s,a,c);var h=new Tn(t,c),f=C(r,s);if(a&&Xe(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=z("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(Y0(t,r.line,r,s,h)||r.line!=s.line&&Y0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");X6()}h.addToHistory&&Zu(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,b;if(t.iter(p,s.line+1,function(L){g&&h.collapsed&&!g.options.lineWrapping&&Fr(L)==g.display.maxLine&&(b=!0),h.collapsed&&p!=r.line&&Gt(L,0),Q6(L,new Xa(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(L){wn(t,L)&&Gt(L,0)}),h.clearOnEnter&&Ce(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(Y6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++sd,h.atomic=!0),g){if(b&&(g.curOp.updateMaxLine=!0),h.collapsed)Rt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var w=r.line;w<=s.line;w++)xn(g,w,"text");h.atomic&&Yu(g.doc),yt(g,"markerAdded",g,h)}return h}var Xo=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};Xo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();yt(this,"clear")}},Xo.prototype.find=function(t,r){return this.primary.find(t,r)},Pr(Xo);function l3(t,r,s,a,c){a=Xe(a),a.shared=!1;var h=[Zi(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Mn(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Zi(g,oe(g,r),oe(g,s),a,c));for(var b=0;b<g.linked.length;++b)if(g.linked[b].isParent)return;f=Oe(h)}),new Xo(h,f)}function ld(t){return t.findMarks(U(t.first,0),t.clipPos(U(t.lastLine())),function(r){return r.parent})}function c3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Zi(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function u3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Mn(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];fe(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var d3=0,Ft=function(t,r,s,a,c){if(!(this instanceof Ft))return new Ft(t,r,s,a,c);s==null&&(s=0),Ko.call(this,[new qo([new Ei("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=U(s,0);this.sel=Ln(h),this.history=new fs(null),this.id=++d3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),O1(this,{from:h,to:h,text:t}),Et(this,Ln(h),Pe)};Ft.prototype=ur(Ko.prototype,{constructor:Ft,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Oo(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:wt(function(t){var r=U(this.first,0),s=this.first+this.size-1;Bi(this,{from:r,to:U(s,he(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ro(this.cm,0,0),Et(this,Ln(r),Pe)}),replaceRange:function(t,r,s,a){r=oe(this,r),s=s?oe(this,s):r,Vi(this,t,r,s,a)},getRange:function(t,r,s){var a=Nr(this,oe(this,t),oe(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(Wn(this,t))return he(this,t)},getLineNumber:function(t){return Re(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=he(this,t)),Fr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return oe(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wt(function(t,r,s){Gu(this,oe(this,typeof t=="number"?U(t,r||0):t),null,s)}),setSelection:wt(function(t,r,s){Gu(this,oe(this,t),oe(this,r||t),s)}),extendSelection:wt(function(t,r,s){gs(this,oe(this,t),r&&oe(this,r),s)}),extendSelections:wt(function(t,r){ju(this,or(this,t),r)}),extendSelectionsBy:wt(function(t,r){var s=He(this.sel.ranges,t);ju(this,or(this,s),r)}),setSelections:wt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Fe(oe(this,t[c].anchor),oe(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),Et(this,wr(this.cm,a,r),s)}}),addSelection:wt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Fe(oe(this,t),oe(this,r||t))),Et(this,wr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Nr(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Nr(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:wt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&J4(this,a,r),g=a.length-1;g>=0;g--)Bi(this,a[g]);p?qu(this,p):this.cm&&Ni(this.cm)}),undo:wt(function(){ms(this,"undo")}),redo:wt(function(){ms(this,"redo")}),undoSelection:wt(function(){ms(this,"undo",!0)}),redoSelection:wt(function(){ms(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new fs(this.history),Mn(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ri(this.history.done),undone:Ri(this.history.undone)}},setHistory:function(t){var r=this.history=new fs(this.history);r.done=Ri(t.done.slice(0),null,!0),r.undone=Ri(t.undone.slice(0),null,!0)},setGutterMarker:wt(function(t,r,s){return Go(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&Y(c)&&(a.gutterMarkers=null),!0})}),clearGutter:wt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Go(r,s,"gutter",function(){return s.gutterMarkers[t]=null,Y(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!Wn(this,t)||(r=t,t=he(this,t),!t))return null}else if(r=Re(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(de(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(de(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:wt(function(t,r,s){return s3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Zi(this,oe(this,t),oe(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=oe(this,t),Zi(this,t,t,s,"bookmark")},findMarksAt:function(t){t=oe(this,t);var r=[],s=he(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=oe(this,t),r=oe(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),oe(this,U(s,r))},indexFromPos:function(t){t=oe(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Ft(Oo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Ft(Oo(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],c3(a,ld(this)),a},unlinkDoc:function(t){if(t instanceof Qe&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),u3(ld(this));break}}if(t.history==this.history){var a=[t.id];Mn(t,function(c){return a.push(c.id)},!0),t.history=new fs(null),t.history.done=Ri(this.history.done,a),t.history.undone=Ri(this.history.undone,a)}},iterLinkedDocs:function(t){Mn(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Mo(t)},lineSeparator:function(){return this.lineSep||`
|
|
2989
|
-
`},setDirection:wt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&Q4(this.cm))})}),Ft.prototype.eachLine=Ft.prototype.iter;var cd=0;function h3(t){var r=this;if(ud(r),!(ct(r,t)||tn(r.display,t))){$t(t),m&&(cd=+new Date);var s=Gn(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&Ct(r,function(){s=oe(r.doc,s);var _={from:s,to:s,text:r.doc.splitLines(h.filter(function(H){return H!=null}).join(r.doc.lineSeparator())),origin:"paste"};Bi(r.doc,_),qu(r.doc,Ln(oe(r.doc,s),oe(r.doc,Sn(_))))})()},g=function(_,H){if(r.options.allowDropFileTypes&&fe(r.options.allowDropFileTypes,_.type)==-1){p();return}var W=new FileReader;W.onerror=function(){return p()},W.onload=function(){var K=W.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(K)){p();return}h[H]=K,p()},W.readAsText(_)},b=0;b<a.length;b++)g(a[b],b);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var w=t.dataTransfer.getData("Text");if(w){var L;if(r.state.draggingText&&!r.state.draggingText.copy&&(L=r.listSelections()),vs(r.doc,Ln(s,s)),L)for(var I=0;I<L.length;++I)Vi(r.doc,"",L[I].anchor,L[I].head,"drag");r.replaceSelection(w,"around","paste"),r.display.input.focus()}}catch{}}}}function f3(t,r){if(m&&(!t.state.draggingText||+new Date-cd<100)){Zn(r);return}if(!(ct(t,r)||tn(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),E&&s.parentNode.removeChild(s)}}function p3(t,r){var s=Gn(t,r);if(s){var a=document.createDocumentFragment();zu(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,a)}}function ud(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function dd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var hd=!1;function g3(){hd||(v3(),hd=!0)}function v3(){var t;Ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,dd(b3)},100))}),Ce(window,"blur",function(){return dd(Di)})}function b3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var kn={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"},Jo=0;Jo<10;Jo++)kn[Jo+48]=kn[Jo+96]=String(Jo);for(var ys=65;ys<=90;ys++)kn[ys]=String.fromCharCode(ys);for(var Qo=1;Qo<=12;Qo++)kn[Qo+111]=kn[Qo+63235]="F"+Qo;var rn={};rn.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"},rn.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"},rn.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"},rn.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"]},rn.default=ue?rn.macDefault:rn.pcDefault;function m3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function y3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=He(s.split(" "),m3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var b in r)t[b]=r[b];return t}function Wi(t,r,s,a){r=Cs(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Wi(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=Wi(t,r.fallthrough[h],s,a);if(f)return f}}}function fd(t){var r=typeof t=="string"?t:kn[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function pd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(Ze?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(Ze?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function gd(t,r){if(E&&t.keyCode==34&&t.char)return!1;var s=kn[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),pd(s,t,r))}function Cs(t){return typeof t=="string"?rn[t]:t}function Ui(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,Oe(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}qt(t,function(){for(var p=a.length-1;p>=0;p--)Vi(t.doc,"",a[p].from,a[p].to,"+delete");Ni(t)})}function A1(t,r,s){var a=It(t.text,r+s,s);return a<0||a>t.text.length?null:a}function P1(t,r,s){var a=A1(t,r.ch,s);return a==null?null:new U(r.line,a,s<0?"after":"before")}function D1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=jt(s,r.doc.direction);if(h){var f=c<0?Oe(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",b;if(f.level>0||r.doc.direction=="rtl"){var w=Ii(r,s);b=c<0?s.text.length-1:0;var L=Vr(r,w,b).top;b=Ar(function(I){return Vr(r,w,I).top==L},c<0==(f.level==1)?f.from:f.to-1,b),g=="before"&&(b=A1(s,b,1))}else b=c<0?f.to:f.from;return new U(a,b,g)}}return new U(a,c<0?s.text.length:0,c<0?"before":"after")}function C3(t,r,s,a){var c=jt(r,t.doc.direction);if(!c)return P1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=nt(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return P1(r,s,a);var p=function(J,ae){return A1(r,J instanceof U?J.ch:J,ae)},g,b=function(J){return t.options.lineWrapping?(g=g||Ii(t,r),yu(t,r,g,J)):{begin:0,end:r.text.length}},w=b(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var L=f.level==1==a<0,I=p(s,L?1:-1);if(I!=null&&(L?I<=f.to&&I<=w.end:I>=f.from&&I>=w.begin)){var _=L?"before":"after";return new U(s.line,I,_)}}var H=function(J,ae,Q){for(var ce=function(Ye,xt){return xt?new U(s.line,p(Ye,1),"before"):new U(s.line,Ye,"after")};J>=0&&J<c.length;J+=ae){var ye=c[J],ve=ae>0==(ye.level!=1),ke=ve?Q.begin:p(Q.end,-1);if(ye.from<=ke&&ke<ye.to||(ke=ve?ye.from:p(ye.to,-1),Q.begin<=ke&&ke<Q.end))return ce(ke,ve)}},W=H(h+a,a,w);if(W)return W;var K=a>0?w.end:p(w.begin,-1);return K!=null&&!(a>0&&K==r.text.length)&&(W=H(a>0?0:c.length-1,a,b(K)),W)?W:null}var ea={selectAll:Qu,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Pe)},killLine:function(t){return Ui(t,function(r){if(r.empty()){var s=he(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:U(r.head.line+1,0)}:{from:r.head,to:U(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Ui(t,function(r){return{from:U(r.from().line,0),to:oe(t.doc,U(r.to().line+1,0))}})},delLineLeft:function(t){return Ui(t,function(r){return{from:U(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Ui(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Ui(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(U(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(U(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return vd(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return bd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return w3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Se)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Se)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?bd(t,r.head):a},Se)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Je(t.getLine(h.line),h.ch,a);r.push(mn(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return qt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=he(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new U(c.line,c.ch-1)),c.ch>0)c=new U(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),U(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=he(t.doc,c.line-1).text;f&&(c=new U(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),U(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Fe(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return qt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Ni(t)})},openLine:function(t){return t.replaceSelection(`
|
|
2990
|
-
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function vd(t,r){var s=he(t.doc,r),a=Fr(s);return a!=s&&(r=Re(a)),D1(!0,t,a,r,1)}function w3(t,r){var s=he(t.doc,r),a=i4(s);return a!=s&&(r=Re(a)),D1(!0,t,s,r,-1)}function bd(t,r){var s=vd(t,r.line),a=he(t.doc,s.line),c=jt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return U(s.line,f?0:h,s.sticky)}return s}function ws(t,r,s){if(typeof r=="string"&&(r=ea[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=$e}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function x3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=Wi(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&Wi(r,t.options.extraKeys,s,t)||Wi(r,t.options.keyMap,s,t)}var z3=new Ue;function ta(t,r,s,a){var c=t.state.keySeq;if(c){if(fd(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:z3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),md(t,c+" "+r,s,a))return!0}return md(t,r,s,a)}function md(t,r,s,a){var c=x3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&yt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&($t(s),m1(t)),!!c}function yd(t,r){var s=gd(r,!0);return s?r.shiftKey&&!t.state.keySeq?ta(t,"Shift-"+s,r,function(a){return ws(t,a,!0)})||ta(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return ws(t,a)}):ta(t,s,r,function(a){return ws(t,a)}):!1}function L3(t,r,s){return ta(t,"'"+s+"'",r,function(a){return ws(t,a,!0)})}var N1=null;function Cd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=be(),!ct(r,t))){m&&y<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=yd(r,t);E&&(N1=a?s:null,!a&&s==88&&!Ka&&(ue?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!ue&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&S3(r)}}function S3(t){var r=t.display.lineDiv;Me(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ie(r,"CodeMirror-crosshair"),Nt(document,"keyup",s),Nt(document,"mouseover",s))}Ce(document,"keyup",s),Ce(document,"mouseover",s)}function wd(t){t.keyCode==16&&(this.doc.sel.shift=!1),ct(this,t)}function xd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(tn(r.display,t)||ct(r,t)||t.ctrlKey&&!t.altKey||ue&&t.metaKey)){var s=t.keyCode,a=t.charCode;if(E&&s==N1){N1=null,$t(t);return}if(!(E&&(!t.which||t.which<10)&&yd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(L3(r,t,c)||r.display.input.onKeyPress(t))}}}var M3=400,H1=function(t,r,s){this.time=t,this.pos=r,this.button=s};H1.prototype.compare=function(t,r,s){return this.time+M3>t&&C(r,this.pos)==0&&s==this.button};var ra,na;function T3(t,r){var s=+new Date;return na&&na.compare(s,t,r)?(ra=na=null,"triple"):ra&&ra.compare(s,t,r)?(na=new H1(s,t,r),ra=null,"double"):(ra=new H1(s,t,r),na=null,"single")}function zd(t){var r=this,s=r.display;if(!(ct(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,tn(s,t)){T||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!R1(r,t)){var a=Gn(r,t),c=ja(t),h=a?T3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&k3(r,c,a,h,t))&&(c==1?a?O3(r,a,h,t):yn(t)==s.scroller&&$t(t):c==2?(a&&gs(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(We?r.display.input.onContextMenu(t):y1(r)))}}}function k3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,ta(t,pd(h,c),c,function(f){if(typeof f=="string"&&(f=ea[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=$e}finally{t.state.suppressEdits=!1}return p})}function $3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=xe?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=ue?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(ue?s.altKey:s.ctrlKey)),c}function O3(t,r,s,a){m?setTimeout(Qt(Lu,t),0):t.curOp.focus=be();var c=$3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&Lo&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?E3(t,a,r,c):_3(t,a,r,c)}function E3(t,r,s,a){var c=t.display,h=!1,f=Ct(t,function(b){T&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:y1(t)),Nt(c.wrapper.ownerDocument,"mouseup",f),Nt(c.wrapper.ownerDocument,"mousemove",p),Nt(c.scroller,"dragstart",g),Nt(c.scroller,"drop",f),h||($t(b),a.addNew||gs(t.doc,s,null,null,a.extend),T&&!N||m&&y==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(b){h=h||Math.abs(r.clientX-b.clientX)+Math.abs(r.clientY-b.clientY)>=10},g=function(){return h=!0};T&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Ce(c.wrapper.ownerDocument,"mouseup",f),Ce(c.wrapper.ownerDocument,"mousemove",p),Ce(c.scroller,"dragstart",g),Ce(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Ld(t,r,s){if(s=="char")return new Fe(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Fe(U(r.line,0),oe(t.doc,U(r.line+1,0)));var a=s(t,r);return new Fe(a.from,a.to)}function _3(t,r,s,a){m&&y1(t);var c=t.display,h=t.doc;$t(r);var f,p,g=h.sel,b=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=b[p]:f=new Fe(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Fe(s,s)),s=Gn(t,r,!0,!0),p=-1;else{var w=Ld(t,s,a.unit);a.extend?f=_1(f,w.anchor,w.head,a.extend):f=w}a.addNew?p==-1?(p=b.length,Et(h,wr(t,b.concat([f]),p),{scroll:!1,origin:"*mouse"})):b.length>1&&b[p].empty()&&a.unit=="char"&&!a.extend?(Et(h,wr(t,b.slice(0,p).concat(b.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):I1(h,p,f,Ee):(p=0,Et(h,new sr([f],0),Ee),g=h.sel);var L=s;function I(Q){if(C(L,Q)!=0)if(L=Q,a.unit=="rectangle"){for(var ce=[],ye=t.options.tabSize,ve=Je(he(h,s.line).text,s.ch,ye),ke=Je(he(h,Q.line).text,Q.ch,ye),Ye=Math.min(ve,ke),xt=Math.max(ve,ke),rt=Math.min(s.line,Q.line),Kt=Math.min(t.lastLine(),Math.max(s.line,Q.line));rt<=Kt;rt++){var Bt=he(h,rt).text,ut=bt(Bt,Ye,ye);Ye==xt?ce.push(new Fe(U(rt,ut),U(rt,ut))):Bt.length>ut&&ce.push(new Fe(U(rt,ut),U(rt,bt(Bt,xt,ye))))}ce.length||ce.push(new Fe(s,s)),Et(h,wr(t,g.ranges.slice(0,p).concat(ce),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Q)}else{var Vt=f,Mt=Ld(t,Q,a.unit),ft=Vt.anchor,dt;C(Mt.anchor,ft)>0?(dt=Mt.head,ft=Le(Vt.from(),Mt.anchor)):(dt=Mt.anchor,ft=q(Vt.to(),Mt.head));var ot=g.ranges.slice(0);ot[p]=I3(t,new Fe(oe(h,ft),dt)),Et(h,wr(t,ot,p),Ee)}}var _=c.wrapper.getBoundingClientRect(),H=0;function W(Q){var ce=++H,ye=Gn(t,Q,!0,a.unit=="rectangle");if(ye)if(C(ye,L)!=0){t.curOp.focus=be(),I(ye);var ve=cs(c,h);(ye.line>=ve.to||ye.line<ve.from)&&setTimeout(Ct(t,function(){H==ce&&W(Q)}),150)}else{var ke=Q.clientY<_.top?-20:Q.clientY>_.bottom?20:0;ke&&setTimeout(Ct(t,function(){H==ce&&(c.scroller.scrollTop+=ke,W(Q))}),50)}}function K(Q){t.state.selectingText=!1,H=1/0,Q&&($t(Q),c.input.focus()),Nt(c.wrapper.ownerDocument,"mousemove",J),Nt(c.wrapper.ownerDocument,"mouseup",ae),h.history.lastSelOrigin=null}var J=Ct(t,function(Q){Q.buttons===0||!ja(Q)?K(Q):W(Q)}),ae=Ct(t,K);t.state.selectingText=ae,Ce(c.wrapper.ownerDocument,"mousemove",J),Ce(c.wrapper.ownerDocument,"mouseup",ae)}function I3(t,r){var s=r.anchor,a=r.head,c=he(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=jt(c);if(!h)return r;var f=nt(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var b;if(a.line!=s.line)b=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var w=nt(h,a.ch,a.sticky),L=w-f||(a.ch-s.ch)*(p.level==1?-1:1);w==g-1||w==g?b=L<0:b=L>0}var I=h[g+(b?-1:0)],_=b==(I.level==1),H=_?I.from:I.to,W=_?"after":"before";return s.ch==H&&s.sticky==W?r:new Fe(new U(s.line,H,W),a)}function Sd(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&$t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!St(t,s))return rr(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var b=f.gutters.childNodes[g];if(b&&b.getBoundingClientRect().right>=c){var w=Hr(t.doc,h),L=t.display.gutterSpecs[g];return ze(t,s,t,w,L.className,r),rr(r)}}}function R1(t,r){return Sd(t,r,"gutterClick",!0)}function Md(t,r){tn(t.display,r)||A3(t,r)||ct(t,r,"contextmenu")||We||t.display.input.onContextMenu(r)}function A3(t,r){return St(t,"gutterContextMenu")?Sd(t,r,"gutterContextMenu",!1):!1}function Td(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),No(t)}var ji={toString:function(){return"CodeMirror.Init"}},kd={},xs={};function P3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,b){b!=ji&&h(p,g,b)}:h)}t.defineOption=s,t.Init=ji,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,$1(a)},!0),s("indentUnit",2,$1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Uo(a),No(a),Rt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var b=0;;){var w=g.text.indexOf(c,b);if(w==-1)break;b=w+c.length,h.push(U(f,w))}f++});for(var p=h.length-1;p>=0;p--)Vi(a.doc,c,h[p],U(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=ji&&a.refresh()}),s("specialCharPlaceholder",u4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",re?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!qe),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Td(a),Wo(a)},!0),s("keyMap","default",function(a,c,h){var f=Cs(c),p=h!=ji&&Cs(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,N3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=T1(c,a.options.lineNumbers),Wo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?v1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Hi(a)},!0),s("scrollbarStyle","native",function(a){Ou(a),Hi(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=T1(a.options.gutters,c),Wo(a)},!0),s("firstLineNumber",1,Wo,!0),s("lineNumberFormatter",function(a){return a},Wo,!0),s("showCursorWhenSelecting",!1,Ho,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Di(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,D3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Ho,!0),s("singleCursorHeightPerLine",!0,Ho,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Uo,!0),s("addModeClass",!1,Uo,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Uo,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function D3(t,r,s){var a=s&&s!=ji;if(!r!=!a){var c=t.display.dragFunctions,h=r?Ce:Nt;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function N3(t){t.options.lineWrapping?(Me(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(ie(t.display.wrapper,"CodeMirror-wrap"),a1(t)),b1(t),Rt(t),No(t),setTimeout(function(){return Hi(t)},100)}function Qe(t,r){var s=this;if(!(this instanceof Qe))return new Qe(t,r);this.options=r=r?Xe(r):{},Xe(kd,r,!1);var a=r.value;typeof a=="string"?a=new Ft(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new Qe.inputStyles[r.inputStyle](this),h=this.display=new Y4(t,a,c,r);h.wrapper.CodeMirror=this,Td(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ou(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 Ue,keySeq:null,specialChars:null},r.autofocus&&!re&&h.input.focus(),m&&y<11&&setTimeout(function(){return s.display.input.reset(!0)},20),H3(this),g3(),Xn(this),this.curOp.forceUpdate=!0,Fu(this,a),r.autofocus&&!re||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&C1(s)},20):Di(this);for(var f in xs)xs.hasOwnProperty(f)&&xs[f](this,r[f],ji);Iu(this),r.finishInit&&r.finishInit(this);for(var p=0;p<F1.length;++p)F1[p](this);Jn(this),T&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Qe.defaults=kd,Qe.optionHandlers=xs;function H3(t){var r=t.display;Ce(r.scroller,"mousedown",Ct(t,zd)),m&&y<11?Ce(r.scroller,"dblclick",Ct(t,function(g){if(!ct(t,g)){var b=Gn(t,g);if(!(!b||R1(t,g)||tn(t.display,g))){$t(g);var w=t.findWordAt(b);gs(t.doc,w.anchor,w.head)}}})):Ce(r.scroller,"dblclick",function(g){return ct(t,g)||$t(g)}),Ce(r.scroller,"contextmenu",function(g){return Md(t,g)}),Ce(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||Md(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var b=g.touches[0];return b.radiusX<=1&&b.radiusY<=1}function f(g,b){if(b.left==null)return!0;var w=b.left-g.left,L=b.top-g.top;return w*w+L*L>20*20}Ce(r.scroller,"touchstart",function(g){if(!ct(t,g)&&!h(g)&&!R1(t,g)){r.input.ensurePolled(),clearTimeout(s);var b=+new Date;r.activeTouch={start:b,moved:!1,prev:b-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Ce(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ce(r.scroller,"touchend",function(g){var b=r.activeTouch;if(b&&!tn(r,g)&&b.left!=null&&!b.moved&&new Date-b.start<300){var w=t.coordsChar(r.activeTouch,"page"),L;!b.prev||f(b,b.prev)?L=new Fe(w,w):!b.prev.prev||f(b,b.prev.prev)?L=t.findWordAt(w):L=new Fe(U(w.line,0),oe(t.doc,U(w.line+1,0))),t.setSelection(L.anchor,L.head),t.focus(),$t(g)}c()}),Ce(r.scroller,"touchcancel",c),Ce(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Fo(t,r.scroller.scrollTop),Kn(t,r.scroller.scrollLeft,!0),ze(t,"scroll",t))}),Ce(r.scroller,"mousewheel",function(g){return Du(t,g)}),Ce(r.scroller,"DOMMouseScroll",function(g){return Du(t,g)}),Ce(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ct(t,g)||Zn(g)},over:function(g){ct(t,g)||(p3(t,g),Zn(g))},start:function(g){return f3(t,g)},drop:Ct(t,h3),leave:function(g){ct(t,g)||ud(t)}};var p=r.input.getField();Ce(p,"keyup",function(g){return wd.call(t,g)}),Ce(p,"keydown",Ct(t,Cd)),Ce(p,"keypress",Ct(t,xd)),Ce(p,"focus",function(g){return C1(t,g)}),Ce(p,"blur",function(g){return Di(t,g)})}var F1=[];Qe.defineInitHook=function(t){return F1.push(t)};function ia(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=_o(t,r).state:s="prev");var f=t.options.tabSize,p=he(c,r),g=Je(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var b=p.text.match(/^\s*/)[0],w;if(!a&&!/\S/.test(p.text))w=0,s="not";else if(s=="smart"&&(w=c.mode.indent(h,p.text.slice(b.length),p.text),w==$e||w>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?w=Je(he(c,r-1).text,null,f):w=0:s=="add"?w=g+t.options.indentUnit:s=="subtract"?w=g-t.options.indentUnit:typeof s=="number"&&(w=g+s),w=Math.max(0,w);var L="",I=0;if(t.options.indentWithTabs)for(var _=Math.floor(w/f);_;--_)I+=f,L+=" ";if(I<w&&(L+=mn(w-I)),L!=b)return Vi(c,L,U(r,0),U(r,b.length),"+input"),p.stateAfter=null,!0;for(var H=0;H<c.sel.ranges.length;H++){var W=c.sel.ranges[H];if(W.head.line==r&&W.head.ch<b.length){var K=U(r,b.length);I1(c,H,new Fe(K,K));break}}}var xr=null;function zs(t){xr=t}function B1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=Mo(r),b=null;if(p&&a.ranges.length>1)if(xr&&xr.text.join(`
|
|
2988
|
+
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function P4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?U(r.line,r.ch+1,"before"):r,r=r.ch?U(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=Cr(t,r),g=!s||s==r?p:Cr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var b=w1(t,c),w=t.doc.scrollTop,L=t.doc.scrollLeft;if(b.scrollTop!=null&&(Fo(t,b.scrollTop),Math.abs(t.doc.scrollTop-w)>1&&(f=!0)),b.scrollLeft!=null&&(Kn(t,b.scrollLeft),Math.abs(t.doc.scrollLeft-L)>1&&(f=!0)),!f)break}return c}function D4(t,r){var s=w1(t,r);s.scrollTop!=null&&Fo(t,s.scrollTop),s.scrollLeft!=null&&Kn(t,s.scrollLeft)}function w1(t,r){var s=t.display,a=Ai(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=c1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+l1(s),g=r.top<a,b=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var w=Math.min(r.top,(b?p:r.bottom)-h);w!=c&&(f.scrollTop=w)}var L=t.options.fixedGutter?0:s.gutters.offsetWidth,I=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-L,_=Un(t)-s.gutters.offsetWidth,H=r.right-r.left>_;return H&&(r.right=r.left+_),r.left<10?f.scrollLeft=0:r.left<I?f.scrollLeft=Math.max(0,r.left+L-(H?0:10)):r.right>_+I-3&&(f.scrollLeft=r.right+(H?0:10)-_),f}function x1(t,r){r!=null&&(us(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Ni(t){us(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Ro(t,r,s){(r!=null||s!=null)&&us(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function N4(t,r){us(t),t.curOp.scrollToPos=r}function us(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=yu(t,r.from),a=yu(t,r.to);ku(t,s,a,r.margin)}}function ku(t,r,s,a){var c=w1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Ro(t,c.scrollLeft,c.scrollTop)}function Fo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||L1(t,{top:r}),$u(t,r,!0),l&&L1(t),Zo(t,100))}function $u(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Kn(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,Au(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Bo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+l1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Br(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Yn=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Ce(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ce(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,y&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yn.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Yn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yn.prototype.zeroWidthHack=function(){var t=ue&&!G?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Yn.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Yn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Vo=function(){};Vo.prototype.update=function(){return{bottom:0,right:0}},Vo.prototype.setScrollLeft=function(){},Vo.prototype.setScrollTop=function(){},Vo.prototype.clear=function(){};function Hi(t,r){r||(r=Bo(t));var s=t.display.barWidth,a=t.display.barHeight;Ou(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&ls(t),Ou(t,Bo(t)),s=t.display.barWidth,a=t.display.barHeight}function Ou(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Eu={native:Yn,null:Vo};function _u(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&ie(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Eu[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Ce(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Kn(t,r):Fo(t,r)},t),t.display.scrollbars.addClass&&Te(t.display.wrapper,t.display.scrollbars.addClass)}var H4=0;function Xn(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++H4,markArrays:null},g4(t.curOp)}function Jn(t){var r=t.curOp;r&&b4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;R4(s)})}function R4(t){for(var r=t.ops,s=0;s<r.length;s++)F4(r[s]);for(var a=0;a<r.length;a++)B4(r[a]);for(var c=0;c<r.length;c++)V4(r[c]);for(var h=0;h<r.length;h++)Z4(r[h]);for(var f=0;f<r.length;f++)W4(r[f])}function F4(t){var r=t.cm,s=r.display;j4(r),t.updateMaxLine&&a1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new ds(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function B4(t){t.updatedDisplay=t.mustUpdate&&z1(t.cm,t.update)}function V4(t){var r=t.cm,s=r.display;t.updatedDisplay&&ls(r),t.barMeasure=Bo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=du(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Br(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Un(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function Z4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Kn(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==be();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Hi(r,t.barMeasure),t.updatedDisplay&&M1(r,t.barMeasure),t.selectionChanged&&m1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&Mu(t.cm)}function W4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&Iu(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&$u(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Kn(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=P4(r,oe(a,t.scrollToPos.from),oe(a,t.scrollToPos.to),t.scrollToPos.margin);A4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||ze(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&ze(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&ze(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function qt(t,r){if(t.curOp)return r();Xn(t);try{return r()}finally{Jn(t)}}function Ct(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Xn(t);try{return r.apply(t,arguments)}finally{Jn(t)}}}function At(t){return function(){if(this.curOp)return t.apply(this,arguments);Xn(this);try{return t.apply(this,arguments)}finally{Jn(this)}}}function wt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Xn(r);try{return t.apply(this,arguments)}finally{Jn(r)}}}function Zo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Qt(U4,t))}function U4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=_o(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?ir(r.mode,a.state):null,g=R0(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var b=h.styleClasses,w=g.classes;w?h.styleClasses=w:b&&(h.styleClasses=null);for(var L=!f||f.length!=h.styles.length||b!=w&&(!b||!w||b.bgClass!=w.bgClass||b.textClass!=w.textClass),I=0;!L&&I<f.length;++I)L=f[I]!=h.styles[I];L&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&e1(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Zo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&qt(t,function(){for(var h=0;h<c.length;h++)xn(t,c[h],"text")})}}var ds=function(t,r,s){var a=t.display;this.viewport=r,this.visible=cs(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Un(t),this.force=s,this.dims=g1(t),this.events=[]};ds.prototype.signal=function(t,r){St(t,r)&&this.events.push(arguments)},ds.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ze.apply(null,this.events[t])};function j4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Br(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Br(t)+"px",r.scrollbarsClipped=!0)}function G4(t){if(t.hasFocus())return null;var r=be();if(!r||!X(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&X(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function q4(t){if(!(!t||!t.activeElt||t.activeElt==be())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&X(document.body,t.anchorNode)&&X(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function z1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return zn(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&zu(t)==0)return!1;Pu(t)&&(zn(t),r.dims=g1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),Qr&&(h=i1(t.doc,h),f=Q0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;_4(t,h,f),s.viewOffset=en(he(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=zu(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var b=G4(t);return g>4&&(s.lineDiv.style.display="none"),K4(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,q4(b),Z(s.cursorDiv),Z(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Zo(t,400)),s.updateLineNumbers=null,!0}function Iu(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Un(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+l1(t.display)-c1(t),s.top)}),r.visible=cs(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=cs(t.display,t.doc,s));if(!z1(t,r))break;ls(t);var c=Bo(t);Ho(t),Hi(t,c),M1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function L1(t,r){var s=new ds(t,r);if(z1(t,s)){ls(t),Iu(t,s);var a=Bo(t);Ho(t),Hi(t,a),M1(t,a),s.finish()}}function K4(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(H){var W=H.nextSibling;return T&&ue&&t.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),W}for(var g=a.view,b=a.viewFrom,w=0;w<g.length;w++){var L=g[w];if(!L.hidden)if(!L.node||L.node.parentNode!=h){var I=x4(t,L,b,s);h.insertBefore(I,f)}else{for(;f!=L.node;)f=p(f);var _=c&&r!=null&&r<=b&&L.lineNumber;L.changes&&(fe(L.changes,"gutter")>-1&&(_=!1),iu(t,L,b,s)),_&&(Z(L.lineNumber),L.lineNumber.appendChild(document.createTextNode(Eo(t.options,b)))),f=L.node.nextSibling}b+=L.size}for(;f;)f=p(f)}function S1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",yt(t,"gutterChanged",t)}function M1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Br(t)+"px"}function Au(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=v1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function Pu(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Eo(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",S1(t.display),!0}return!1}function T1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Du(t){var r=t.gutters,s=t.gutterSpecs;Z(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",S1(t)}function Wo(t){Du(t.display),Rt(t),Au(t)}function Y4(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=z("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=z("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+we+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),y&&m<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!T&&!(l&&re)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=T1(a.gutters,a.lineNumbers),Du(c),s.init(c)}var hs=0,ar=null;y?ar=-.53:l?ar=15:$?ar=-.7:N&&(ar=-1/3);function Nu(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function X4(t){var r=Nu(t);return r.x*=ar,r.y*=ar,r}function Hu(t,r){var s=Nu(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&ue&&T){e:for(var b=r.target,w=h.view;b!=f;b=b.parentNode)for(var L=0;L<w.length;L++)if(w[L].node==b){t.display.currentWheelTarget=b;break e}}if(a&&!l&&!E&&ar!=null){c&&g&&Fo(t,Math.max(0,f.scrollTop+c*ar)),Kn(t,Math.max(0,f.scrollLeft+a*ar)),(!c||c&&g)&&$t(r),h.wheelStartX=null;return}if(c&&ar!=null){var I=c*ar,_=t.doc.scrollTop,H=_+h.wrapper.clientHeight;I<0?_=Math.max(0,_+I-50):H=Math.min(t.doc.height,H+I+50),L1(t,{top:_,bottom:H})}hs<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var W=f.scrollLeft-h.wheelStartX,K=f.scrollTop-h.wheelStartY,J=K&&h.wheelDY&&K/h.wheelDY||W&&h.wheelDX&&W/h.wheelDX;h.wheelStartX=h.wheelStartY=null,J&&(ar=(ar*hs+J)/(hs+1),++hs)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var sr=function(t,r){this.ranges=t,this.primIndex=r};sr.prototype.primary=function(){return this.ranges[this.primIndex]},sr.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!M(s.anchor,a.anchor)||!M(s.head,a.head))return!1}return!0},sr.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Fe(V(this.ranges[r].anchor),V(this.ranges[r].head));return new sr(t,this.primIndex)},sr.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},sr.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Fe=function(t,r){this.anchor=t,this.head=r};Fe.prototype.from=function(){return Le(this.anchor,this.head)},Fe.prototype.to=function(){return q(this.anchor,this.head)},Fe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(I,_){return C(I.from(),_.from())}),s=fe(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var b=Le(p.from(),f.from()),w=q(p.to(),f.to()),L=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Fe(L?w:b,L?b:w))}}return new sr(r,s)}function Ln(t,r){return new sr([new Fe(t,r||t)],0)}function Sn(t){return t.text?U(t.from.line+t.text.length-1,Oe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Ru(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Sn(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Sn(r).ch-r.to.ch),U(s,a)}function k1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Fe(Ru(c.anchor,r),Ru(c.head,r)))}return wr(t.cm,s,t.sel.primIndex)}function Fu(t,r,s){return t.line==r.line?U(s.line,t.ch-r.ch+s.ch):U(s.line+(t.line-r.line),t.ch)}function J4(t,r,s){for(var a=[],c=U(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Fu(p.from,c,h),b=Fu(Sn(p),c,h);if(c=p.to,h=b,s=="around"){var w=t.sel.ranges[f],L=C(w.head,w.anchor)<0;a[f]=new Fe(L?b:g,L?g:b)}else a[f]=new Fe(g,g)}return new sr(a,t.sel.primIndex)}function $1(t){t.doc.mode=$i(t.options,t.doc.modeOption),Uo(t)}function Uo(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Zo(t,100),t.state.modeGen++,t.curOp&&Rt(t)}function Bu(t,r){return r.from.ch==0&&r.to.ch==0&&Oe(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function O1(t,r,s,a){function c(ae){return s?s[ae]:null}function h(ae,Q,ce){a4(ae,Q,ce,a),yt(ae,"change",ae,r)}function f(ae,Q){for(var ce=[],ye=ae;ye<Q;++ye)ce.push(new Ei(b[ye],c(ye),a));return ce}var p=r.from,g=r.to,b=r.text,w=he(t,p.line),L=he(t,g.line),I=Oe(b),_=c(b.length-1),H=g.line-p.line;if(r.full)t.insert(0,f(0,b.length)),t.remove(b.length,t.size-b.length);else if(Bu(t,r)){var W=f(0,b.length-1);h(L,L.text,_),H&&t.remove(p.line,H),W.length&&t.insert(p.line,W)}else if(w==L)if(b.length==1)h(w,w.text.slice(0,p.ch)+I+w.text.slice(g.ch),_);else{var K=f(1,b.length-1);K.push(new Ei(I+w.text.slice(g.ch),_,a)),h(w,w.text.slice(0,p.ch)+b[0],c(0)),t.insert(p.line+1,K)}else if(b.length==1)h(w,w.text.slice(0,p.ch)+b[0]+L.text.slice(g.ch),c(0)),t.remove(p.line+1,H);else{h(w,w.text.slice(0,p.ch)+b[0],c(0)),h(L,I+L.text.slice(g.ch),_);var J=f(1,b.length-1);H>1&&t.remove(p.line+1,H-1),t.insert(p.line+1,J)}yt(t,"change",t,r)}function Mn(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var b=f&&g.sharedHist;s&&!b||(r(g.doc,b),a(g.doc,c,b))}}}a(t,null,!0)}function Vu(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,b1(t),$1(t),Zu(t),t.options.direction=r.direction,t.options.lineWrapping||a1(t),t.options.mode=r.modeOption,Rt(t)}function Zu(t){(t.doc.direction=="rtl"?Te:ie)(t.display.lineDiv,"CodeMirror-rtl")}function Q4(t){qt(t,function(){Zu(t),Rt(t)})}function fs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function E1(t,r){var s={from:V(r.from),to:Sn(r),text:Nr(t,r.from,r.to)};return ju(t,s,r.from.line,r.to.line+1),Mn(t,function(a){return ju(a,s,r.from.line,r.to.line+1)},!0),s}function Wu(t){for(;t.length;){var r=Oe(t);if(r.ranges)t.pop();else break}}function e3(t,r){if(r)return Wu(t.done),Oe(t.done);if(t.done.length&&!Oe(t.done).ranges)return Oe(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Oe(t.done)}function Uu(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=e3(c,c.lastOp==a)))p=Oe(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Sn(r):f.changes.push(E1(t,r));else{var g=Oe(c.done);for((!g||!g.ranges)&&ps(t.sel,c.done),f={changes:[E1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||ze(t,"historyAdded")}function t3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function r3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||t3(t,h,Oe(c.done),r))?c.done[c.done.length-1]=r:ps(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&Wu(c.undone)}function ps(t,r){var s=Oe(r);s&&s.ranges&&s.equals(t)||r.push(t)}function ju(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function n3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function i3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(n3(s[c]));return a}function Gu(t,r){var s=i3(t,r),a=r1(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],b=0;b<h.length;++b)if(h[b].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Ri(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?sr.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var b=f[g],w=void 0;if(p.push({from:b.from,to:b.to,text:b.text}),r)for(var L in b)(w=L.match(/^spans_(\d+)$/))&&fe(r,Number(w[1]))>-1&&(Oe(p)[L]=b[L],delete b[L])}}return a}function _1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Fe(c,r)}else return new Fe(s||r,r)}function gs(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Et(t,new sr([_1(t.sel.primary(),r,s,c)],0),a)}function qu(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=_1(t.sel.ranges[h],r[h],null,c);var f=wr(t.cm,a,t.sel.primIndex);Et(t,f,s)}function I1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,Et(t,wr(t.cm,c,t.sel.primIndex),a)}function Ku(t,r,s,a){Et(t,Ln(r,s),a)}function o3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Fe(oe(t,c[h].anchor),oe(t,c[h].head))},origin:s&&s.origin};return ze(t,"beforeSelectionChange",t,a),t.cm&&ze(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?wr(t.cm,a.ranges,a.ranges.length-1):r}function Yu(t,r,s){var a=t.history.done,c=Oe(a);c&&c.ranges?(a[a.length-1]=r,vs(t,r,s)):Et(t,r,s)}function Et(t,r,s){vs(t,r,s),r3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function vs(t,r,s){(St(t,"beforeSelectionChange")||t.cm&&St(t.cm,"beforeSelectionChange"))&&(r=o3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);Xu(t,Qu(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Ni(t.cm)}function Xu(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Mi(t.cm)),yt(t,"cursorActivity",t))}function Ju(t){Xu(t,Qu(t,t.sel,null,!1))}function Qu(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=bs(t,f.anchor,p&&p.anchor,s,a),b=bs(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||b!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Fe(g,b))}return c?wr(t.cm,c,r.primIndex):r}function Fi(t,r,s,a,c){var h=he(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,b="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,w="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(b?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(w?p.to>=r.ch:p.to>r.ch))){if(c&&(ze(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var L=g.find(a<0?1:-1),I=void 0;if((a<0?w:b)&&(L=ed(t,L,-a,L&&L.line==r.line?h:null)),L&&L.line==r.line&&(I=C(L,s))&&(a<0?I<0:I>0))return Fi(t,L,r,a,c)}var _=g.find(a<0?-1:1);return(a<0?b:w)&&(_=ed(t,_,a,_.line==r.line?h:null)),_?Fi(t,_,r,a,c):null}}return r}function bs(t,r,s,a,c){var h=a||1,f=Fi(t,r,s,h,c)||!c&&Fi(t,r,s,h,!0)||Fi(t,r,s,-h,c)||!c&&Fi(t,r,s,-h,!0);return f||(t.cantEdit=!0,U(t.first,0))}function ed(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?oe(t,U(r.line-1)):null:s>0&&r.ch==(a||he(t,r.line)).text.length?r.line<t.first+t.size-1?U(r.line+1,0):null:new U(r.line,r.ch+s)}function td(t){t.setSelection(U(t.firstLine(),0),U(t.lastLine()),Pe)}function rd(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=oe(t,c)),h&&(a.to=oe(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),ze(t,"beforeChange",t,a),t.cm&&ze(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Bi(t,r,s){if(t.cm){if(!t.cm.curOp)return Ct(t.cm,Bi)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"))&&(r=rd(t,r,!0),!r))){var a=j0&&!s&&r4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)nd(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else nd(t,r)}}function nd(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=k1(t,r);Uu(t,r,s,t.cm?t.cm.curOp.id:NaN),jo(t,r,s,r1(t,r));var a=[];Mn(t,function(c,h){!h&&fe(a,c.history)==-1&&(sd(c.history,r),a.push(c.history)),jo(c,r,null,r1(c,r))})}}function ms(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,b=0;b<p.length&&(h=p[b],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));b++);if(b!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(ps(h,g),s&&!h.equals(t.sel)){Et(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var w=[];ps(f,g),g.push({changes:w,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var L=St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"),I=function(W){var K=h.changes[W];if(K.origin=r,L&&!rd(t,K,!1))return p.length=0,{};w.push(E1(t,K));var J=W?k1(t,K):Oe(p);jo(t,K,J,Gu(t,K)),!W&&t.cm&&t.cm.scrollIntoView({from:K.from,to:Sn(K)});var ae=[];Mn(t,function(Q,ce){!ce&&fe(ae,Q.history)==-1&&(sd(Q.history,K),ae.push(Q.history)),jo(Q,K,null,Gu(Q,K))})},_=h.changes.length-1;_>=0;--_){var H=I(_);if(H)return H.v}}}}function id(t,r){if(r!=0&&(t.first+=r,t.sel=new sr(He(t.sel.ranges,function(c){return new Fe(U(c.anchor.line+r,c.anchor.ch),U(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Rt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)xn(t.cm,a,"gutter")}}function jo(t,r,s,a){if(t.cm&&!t.cm.curOp)return Ct(t.cm,jo)(t,r,s,a);if(r.to.line<t.first){id(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);id(t,c),r={from:U(t.first,0),to:U(r.to.line+c,r.to.ch),text:[Oe(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:U(h,he(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Nr(t,r.from,r.to),s||(s=k1(t,r)),t.cm?a3(t.cm,r,a):O1(t,r,a),vs(t,s,Pe),t.cantEdit&&bs(t,U(t.firstLine(),0))&&(t.cantEdit=!1)}}function a3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=Re(Fr(he(a,h.line))),a.iter(g,f.line+1,function(_){if(_==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&Mi(t),O1(a,r,s,xu(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(_){var H=ts(_);H>c.maxLineLength&&(c.maxLine=_,c.maxLineLength=H,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),K6(a,h.line),Zo(t,400);var b=r.text.length-(f.line-h.line)-1;r.full?Rt(t):h.line==f.line&&r.text.length==1&&!Bu(t.doc,r)?xn(t,h.line,"text"):Rt(t,h.line,f.line+1,b);var w=St(t,"changes"),L=St(t,"change");if(L||w){var I={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};L&&yt(t,"change",t,I),w&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(I)}t.display.selForContextMenu=null}function Vi(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Bi(t,{from:s,to:a,text:r,origin:c})}function od(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function ad(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)od(h.ranges[p].anchor,r,s,a),od(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var b=h.changes[g];if(s<b.from.line)b.from=U(b.from.line+a,b.from.ch),b.to=U(b.to.line+a,b.to.ch);else if(r<=b.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function sd(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;ad(t.done,s,a,c),ad(t.undone,s,a,c)}function Go(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=he(t,Ae(t,r)):c=Re(r),c==null?null:(a(h,c)&&t.cm&&xn(t.cm,c,s),h)}function qo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}qo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,s4(c),yt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Ko(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Ko.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof qo))){var p=[];this.collapse(p),this.children=[new qo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new qo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Ko(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=fe(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Ko(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Yo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Yo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=Re(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Do(this);Gt(s,Math.max(0,s.height-h)),t&&(qt(t,function(){ld(t,s,-h),xn(t,a,"widget")}),yt(t,"lineWidgetCleared",t,this,a))}},Yo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Do(this)-r;c&&(wn(this.doc,a)||Gt(a,a.height+c),s&&qt(s,function(){s.curOp.forceUpdate=!0,ld(s,a,c),yt(s,"lineWidgetChanged",s,t,Re(a))}))},Pr(Yo);function ld(t,r,s){en(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&x1(t,s)}function s3(t,r,s,a){var c=new Yo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Go(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!wn(t,f)){var g=en(f)<t.scrollTop;Gt(f,f.height+Do(c)),g&&x1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&yt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:Re(r)),c}var cd=0,Tn=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++cd};Tn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Xn(t),St(this,"clear")){var s=this.find();s&&yt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Io(f.markedSpans,this);t&&!this.collapsed?xn(t,Re(f),"text"):t&&(p.to!=null&&(c=Re(f)),p.from!=null&&(a=Re(f))),f.markedSpans=J6(f.markedSpans,p),p.from==null&&this.collapsed&&!wn(this.doc,f)&&t&&Gt(f,Ai(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var b=Fr(this.lines[g]),w=ts(b);w>t.display.maxLineLength&&(t.display.maxLine=b,t.display.maxLineLength=w,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Rt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ju(t.doc)),t&&yt(t,"markerCleared",t,this,a,c),r&&Jn(t),this.parent&&this.parent.clear()}},Tn.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Io(h.markedSpans,this);if(f.from!=null&&(s=U(r?h:Re(h),f.from),t==-1))return s;if(f.to!=null&&(a=U(r?h:Re(h),f.to),t==1))return a}return s&&{from:s,to:a}},Tn.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||qt(a,function(){var c=r.line,h=Re(r.line),f=u1(a,h);if(f&&(pu(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!wn(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Do(s)-p;g&&Gt(c,c.height+g)}yt(a,"markerChanged",a,t)})},Tn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||fe(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Tn.prototype.detachLine=function(t){if(this.lines.splice(fe(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Pr(Tn);function Zi(t,r,s,a,c){if(a&&a.shared)return l3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return Ct(t.cm,Zi)(t,r,s,a,c);var h=new Tn(t,c),f=C(r,s);if(a&&Xe(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=z("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(J0(t,r.line,r,s,h)||r.line!=s.line&&J0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");X6()}h.addToHistory&&Uu(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,b;if(t.iter(p,s.line+1,function(L){g&&h.collapsed&&!g.options.lineWrapping&&Fr(L)==g.display.maxLine&&(b=!0),h.collapsed&&p!=r.line&&Gt(L,0),Q6(L,new Xa(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(L){wn(t,L)&&Gt(L,0)}),h.clearOnEnter&&Ce(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(Y6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++cd,h.atomic=!0),g){if(b&&(g.curOp.updateMaxLine=!0),h.collapsed)Rt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var w=r.line;w<=s.line;w++)xn(g,w,"text");h.atomic&&Ju(g.doc),yt(g,"markerAdded",g,h)}return h}var Xo=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};Xo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();yt(this,"clear")}},Xo.prototype.find=function(t,r){return this.primary.find(t,r)},Pr(Xo);function l3(t,r,s,a,c){a=Xe(a),a.shared=!1;var h=[Zi(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Mn(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Zi(g,oe(g,r),oe(g,s),a,c));for(var b=0;b<g.linked.length;++b)if(g.linked[b].isParent)return;f=Oe(h)}),new Xo(h,f)}function ud(t){return t.findMarks(U(t.first,0),t.clipPos(U(t.lastLine())),function(r){return r.parent})}function c3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Zi(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function u3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Mn(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];fe(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var d3=0,Ft=function(t,r,s,a,c){if(!(this instanceof Ft))return new Ft(t,r,s,a,c);s==null&&(s=0),Ko.call(this,[new qo([new Ei("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=U(s,0);this.sel=Ln(h),this.history=new fs(null),this.id=++d3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),O1(this,{from:h,to:h,text:t}),Et(this,Ln(h),Pe)};Ft.prototype=ur(Ko.prototype,{constructor:Ft,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Oo(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:wt(function(t){var r=U(this.first,0),s=this.first+this.size-1;Bi(this,{from:r,to:U(s,he(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ro(this.cm,0,0),Et(this,Ln(r),Pe)}),replaceRange:function(t,r,s,a){r=oe(this,r),s=s?oe(this,s):r,Vi(this,t,r,s,a)},getRange:function(t,r,s){var a=Nr(this,oe(this,t),oe(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(Wn(this,t))return he(this,t)},getLineNumber:function(t){return Re(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=he(this,t)),Fr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return oe(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wt(function(t,r,s){Ku(this,oe(this,typeof t=="number"?U(t,r||0):t),null,s)}),setSelection:wt(function(t,r,s){Ku(this,oe(this,t),oe(this,r||t),s)}),extendSelection:wt(function(t,r,s){gs(this,oe(this,t),r&&oe(this,r),s)}),extendSelections:wt(function(t,r){qu(this,or(this,t),r)}),extendSelectionsBy:wt(function(t,r){var s=He(this.sel.ranges,t);qu(this,or(this,s),r)}),setSelections:wt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Fe(oe(this,t[c].anchor),oe(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),Et(this,wr(this.cm,a,r),s)}}),addSelection:wt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Fe(oe(this,t),oe(this,r||t))),Et(this,wr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Nr(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Nr(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:wt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&J4(this,a,r),g=a.length-1;g>=0;g--)Bi(this,a[g]);p?Yu(this,p):this.cm&&Ni(this.cm)}),undo:wt(function(){ms(this,"undo")}),redo:wt(function(){ms(this,"redo")}),undoSelection:wt(function(){ms(this,"undo",!0)}),redoSelection:wt(function(){ms(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new fs(this.history),Mn(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ri(this.history.done),undone:Ri(this.history.undone)}},setHistory:function(t){var r=this.history=new fs(this.history);r.done=Ri(t.done.slice(0),null,!0),r.undone=Ri(t.undone.slice(0),null,!0)},setGutterMarker:wt(function(t,r,s){return Go(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&Y(c)&&(a.gutterMarkers=null),!0})}),clearGutter:wt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Go(r,s,"gutter",function(){return s.gutterMarkers[t]=null,Y(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!Wn(this,t)||(r=t,t=he(this,t),!t))return null}else if(r=Re(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(de(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(de(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:wt(function(t,r,s){return s3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Zi(this,oe(this,t),oe(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=oe(this,t),Zi(this,t,t,s,"bookmark")},findMarksAt:function(t){t=oe(this,t);var r=[],s=he(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=oe(this,t),r=oe(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),oe(this,U(s,r))},indexFromPos:function(t){t=oe(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Ft(Oo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Ft(Oo(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],c3(a,ud(this)),a},unlinkDoc:function(t){if(t instanceof Qe&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),u3(ud(this));break}}if(t.history==this.history){var a=[t.id];Mn(t,function(c){return a.push(c.id)},!0),t.history=new fs(null),t.history.done=Ri(this.history.done,a),t.history.undone=Ri(this.history.undone,a)}},iterLinkedDocs:function(t){Mn(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Mo(t)},lineSeparator:function(){return this.lineSep||`
|
|
2989
|
+
`},setDirection:wt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&Q4(this.cm))})}),Ft.prototype.eachLine=Ft.prototype.iter;var dd=0;function h3(t){var r=this;if(hd(r),!(ct(r,t)||tn(r.display,t))){$t(t),y&&(dd=+new Date);var s=Gn(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&Ct(r,function(){s=oe(r.doc,s);var _={from:s,to:s,text:r.doc.splitLines(h.filter(function(H){return H!=null}).join(r.doc.lineSeparator())),origin:"paste"};Bi(r.doc,_),Yu(r.doc,Ln(oe(r.doc,s),oe(r.doc,Sn(_))))})()},g=function(_,H){if(r.options.allowDropFileTypes&&fe(r.options.allowDropFileTypes,_.type)==-1){p();return}var W=new FileReader;W.onerror=function(){return p()},W.onload=function(){var K=W.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(K)){p();return}h[H]=K,p()},W.readAsText(_)},b=0;b<a.length;b++)g(a[b],b);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var w=t.dataTransfer.getData("Text");if(w){var L;if(r.state.draggingText&&!r.state.draggingText.copy&&(L=r.listSelections()),vs(r.doc,Ln(s,s)),L)for(var I=0;I<L.length;++I)Vi(r.doc,"",L[I].anchor,L[I].head,"drag");r.replaceSelection(w,"around","paste"),r.display.input.focus()}}catch{}}}}function f3(t,r){if(y&&(!t.state.draggingText||+new Date-dd<100)){Zn(r);return}if(!(ct(t,r)||tn(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),E&&s.parentNode.removeChild(s)}}function p3(t,r){var s=Gn(t,r);if(s){var a=document.createDocumentFragment();Su(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,a)}}function hd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function fd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var pd=!1;function g3(){pd||(v3(),pd=!0)}function v3(){var t;Ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,fd(b3)},100))}),Ce(window,"blur",function(){return fd(Di)})}function b3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var kn={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"},Jo=0;Jo<10;Jo++)kn[Jo+48]=kn[Jo+96]=String(Jo);for(var ys=65;ys<=90;ys++)kn[ys]=String.fromCharCode(ys);for(var Qo=1;Qo<=12;Qo++)kn[Qo+111]=kn[Qo+63235]="F"+Qo;var rn={};rn.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"},rn.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"},rn.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"},rn.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"]},rn.default=ue?rn.macDefault:rn.pcDefault;function m3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function y3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=He(s.split(" "),m3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var b in r)t[b]=r[b];return t}function Wi(t,r,s,a){r=Cs(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Wi(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=Wi(t,r.fallthrough[h],s,a);if(f)return f}}}function gd(t){var r=typeof t=="string"?t:kn[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function vd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(Ze?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(Ze?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function bd(t,r){if(E&&t.keyCode==34&&t.char)return!1;var s=kn[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),vd(s,t,r))}function Cs(t){return typeof t=="string"?rn[t]:t}function Ui(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,Oe(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}qt(t,function(){for(var p=a.length-1;p>=0;p--)Vi(t.doc,"",a[p].from,a[p].to,"+delete");Ni(t)})}function A1(t,r,s){var a=It(t.text,r+s,s);return a<0||a>t.text.length?null:a}function P1(t,r,s){var a=A1(t,r.ch,s);return a==null?null:new U(r.line,a,s<0?"after":"before")}function D1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=jt(s,r.doc.direction);if(h){var f=c<0?Oe(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",b;if(f.level>0||r.doc.direction=="rtl"){var w=Ii(r,s);b=c<0?s.text.length-1:0;var L=Vr(r,w,b).top;b=Ar(function(I){return Vr(r,w,I).top==L},c<0==(f.level==1)?f.from:f.to-1,b),g=="before"&&(b=A1(s,b,1))}else b=c<0?f.to:f.from;return new U(a,b,g)}}return new U(a,c<0?s.text.length:0,c<0?"before":"after")}function C3(t,r,s,a){var c=jt(r,t.doc.direction);if(!c)return P1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=nt(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return P1(r,s,a);var p=function(J,ae){return A1(r,J instanceof U?J.ch:J,ae)},g,b=function(J){return t.options.lineWrapping?(g=g||Ii(t,r),wu(t,r,g,J)):{begin:0,end:r.text.length}},w=b(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var L=f.level==1==a<0,I=p(s,L?1:-1);if(I!=null&&(L?I<=f.to&&I<=w.end:I>=f.from&&I>=w.begin)){var _=L?"before":"after";return new U(s.line,I,_)}}var H=function(J,ae,Q){for(var ce=function(Ye,xt){return xt?new U(s.line,p(Ye,1),"before"):new U(s.line,Ye,"after")};J>=0&&J<c.length;J+=ae){var ye=c[J],ve=ae>0==(ye.level!=1),ke=ve?Q.begin:p(Q.end,-1);if(ye.from<=ke&&ke<ye.to||(ke=ve?ye.from:p(ye.to,-1),Q.begin<=ke&&ke<Q.end))return ce(ke,ve)}},W=H(h+a,a,w);if(W)return W;var K=a>0?w.end:p(w.begin,-1);return K!=null&&!(a>0&&K==r.text.length)&&(W=H(a>0?0:c.length-1,a,b(K)),W)?W:null}var ea={selectAll:td,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Pe)},killLine:function(t){return Ui(t,function(r){if(r.empty()){var s=he(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:U(r.head.line+1,0)}:{from:r.head,to:U(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Ui(t,function(r){return{from:U(r.from().line,0),to:oe(t.doc,U(r.to().line+1,0))}})},delLineLeft:function(t){return Ui(t,function(r){return{from:U(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Ui(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Ui(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(U(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(U(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return md(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return yd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return w3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Se)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Se)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?yd(t,r.head):a},Se)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Je(t.getLine(h.line),h.ch,a);r.push(mn(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return qt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=he(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new U(c.line,c.ch-1)),c.ch>0)c=new U(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),U(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=he(t.doc,c.line-1).text;f&&(c=new U(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),U(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Fe(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return qt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Ni(t)})},openLine:function(t){return t.replaceSelection(`
|
|
2990
|
+
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function md(t,r){var s=he(t.doc,r),a=Fr(s);return a!=s&&(r=Re(a)),D1(!0,t,a,r,1)}function w3(t,r){var s=he(t.doc,r),a=i4(s);return a!=s&&(r=Re(a)),D1(!0,t,s,r,-1)}function yd(t,r){var s=md(t,r.line),a=he(t.doc,s.line),c=jt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return U(s.line,f?0:h,s.sticky)}return s}function ws(t,r,s){if(typeof r=="string"&&(r=ea[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=$e}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function x3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=Wi(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&Wi(r,t.options.extraKeys,s,t)||Wi(r,t.options.keyMap,s,t)}var z3=new Ue;function ta(t,r,s,a){var c=t.state.keySeq;if(c){if(gd(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:z3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),Cd(t,c+" "+r,s,a))return!0}return Cd(t,r,s,a)}function Cd(t,r,s,a){var c=x3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&yt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&($t(s),m1(t)),!!c}function wd(t,r){var s=bd(r,!0);return s?r.shiftKey&&!t.state.keySeq?ta(t,"Shift-"+s,r,function(a){return ws(t,a,!0)})||ta(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return ws(t,a)}):ta(t,s,r,function(a){return ws(t,a)}):!1}function L3(t,r,s){return ta(t,"'"+s+"'",r,function(a){return ws(t,a,!0)})}var N1=null;function xd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=be(),!ct(r,t))){y&&m<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=wd(r,t);E&&(N1=a?s:null,!a&&s==88&&!Ka&&(ue?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!ue&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&S3(r)}}function S3(t){var r=t.display.lineDiv;Te(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ie(r,"CodeMirror-crosshair"),Nt(document,"keyup",s),Nt(document,"mouseover",s))}Ce(document,"keyup",s),Ce(document,"mouseover",s)}function zd(t){t.keyCode==16&&(this.doc.sel.shift=!1),ct(this,t)}function Ld(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(tn(r.display,t)||ct(r,t)||t.ctrlKey&&!t.altKey||ue&&t.metaKey)){var s=t.keyCode,a=t.charCode;if(E&&s==N1){N1=null,$t(t);return}if(!(E&&(!t.which||t.which<10)&&wd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(L3(r,t,c)||r.display.input.onKeyPress(t))}}}var M3=400,H1=function(t,r,s){this.time=t,this.pos=r,this.button=s};H1.prototype.compare=function(t,r,s){return this.time+M3>t&&C(r,this.pos)==0&&s==this.button};var ra,na;function T3(t,r){var s=+new Date;return na&&na.compare(s,t,r)?(ra=na=null,"triple"):ra&&ra.compare(s,t,r)?(na=new H1(s,t,r),ra=null,"double"):(ra=new H1(s,t,r),na=null,"single")}function Sd(t){var r=this,s=r.display;if(!(ct(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,tn(s,t)){T||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!R1(r,t)){var a=Gn(r,t),c=ja(t),h=a?T3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&k3(r,c,a,h,t))&&(c==1?a?O3(r,a,h,t):yn(t)==s.scroller&&$t(t):c==2?(a&&gs(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(We?r.display.input.onContextMenu(t):y1(r)))}}}function k3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,ta(t,vd(h,c),c,function(f){if(typeof f=="string"&&(f=ea[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=$e}finally{t.state.suppressEdits=!1}return p})}function $3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=xe?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=ue?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(ue?s.altKey:s.ctrlKey)),c}function O3(t,r,s,a){y?setTimeout(Qt(Mu,t),0):t.curOp.focus=be();var c=$3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&Lo&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?E3(t,a,r,c):_3(t,a,r,c)}function E3(t,r,s,a){var c=t.display,h=!1,f=Ct(t,function(b){T&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:y1(t)),Nt(c.wrapper.ownerDocument,"mouseup",f),Nt(c.wrapper.ownerDocument,"mousemove",p),Nt(c.scroller,"dragstart",g),Nt(c.scroller,"drop",f),h||($t(b),a.addNew||gs(t.doc,s,null,null,a.extend),T&&!N||y&&m==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(b){h=h||Math.abs(r.clientX-b.clientX)+Math.abs(r.clientY-b.clientY)>=10},g=function(){return h=!0};T&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Ce(c.wrapper.ownerDocument,"mouseup",f),Ce(c.wrapper.ownerDocument,"mousemove",p),Ce(c.scroller,"dragstart",g),Ce(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Md(t,r,s){if(s=="char")return new Fe(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Fe(U(r.line,0),oe(t.doc,U(r.line+1,0)));var a=s(t,r);return new Fe(a.from,a.to)}function _3(t,r,s,a){y&&y1(t);var c=t.display,h=t.doc;$t(r);var f,p,g=h.sel,b=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=b[p]:f=new Fe(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Fe(s,s)),s=Gn(t,r,!0,!0),p=-1;else{var w=Md(t,s,a.unit);a.extend?f=_1(f,w.anchor,w.head,a.extend):f=w}a.addNew?p==-1?(p=b.length,Et(h,wr(t,b.concat([f]),p),{scroll:!1,origin:"*mouse"})):b.length>1&&b[p].empty()&&a.unit=="char"&&!a.extend?(Et(h,wr(t,b.slice(0,p).concat(b.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):I1(h,p,f,Ee):(p=0,Et(h,new sr([f],0),Ee),g=h.sel);var L=s;function I(Q){if(C(L,Q)!=0)if(L=Q,a.unit=="rectangle"){for(var ce=[],ye=t.options.tabSize,ve=Je(he(h,s.line).text,s.ch,ye),ke=Je(he(h,Q.line).text,Q.ch,ye),Ye=Math.min(ve,ke),xt=Math.max(ve,ke),rt=Math.min(s.line,Q.line),Kt=Math.min(t.lastLine(),Math.max(s.line,Q.line));rt<=Kt;rt++){var Bt=he(h,rt).text,ut=bt(Bt,Ye,ye);Ye==xt?ce.push(new Fe(U(rt,ut),U(rt,ut))):Bt.length>ut&&ce.push(new Fe(U(rt,ut),U(rt,bt(Bt,xt,ye))))}ce.length||ce.push(new Fe(s,s)),Et(h,wr(t,g.ranges.slice(0,p).concat(ce),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Q)}else{var Vt=f,Mt=Md(t,Q,a.unit),ft=Vt.anchor,dt;C(Mt.anchor,ft)>0?(dt=Mt.head,ft=Le(Vt.from(),Mt.anchor)):(dt=Mt.anchor,ft=q(Vt.to(),Mt.head));var ot=g.ranges.slice(0);ot[p]=I3(t,new Fe(oe(h,ft),dt)),Et(h,wr(t,ot,p),Ee)}}var _=c.wrapper.getBoundingClientRect(),H=0;function W(Q){var ce=++H,ye=Gn(t,Q,!0,a.unit=="rectangle");if(ye)if(C(ye,L)!=0){t.curOp.focus=be(),I(ye);var ve=cs(c,h);(ye.line>=ve.to||ye.line<ve.from)&&setTimeout(Ct(t,function(){H==ce&&W(Q)}),150)}else{var ke=Q.clientY<_.top?-20:Q.clientY>_.bottom?20:0;ke&&setTimeout(Ct(t,function(){H==ce&&(c.scroller.scrollTop+=ke,W(Q))}),50)}}function K(Q){t.state.selectingText=!1,H=1/0,Q&&($t(Q),c.input.focus()),Nt(c.wrapper.ownerDocument,"mousemove",J),Nt(c.wrapper.ownerDocument,"mouseup",ae),h.history.lastSelOrigin=null}var J=Ct(t,function(Q){Q.buttons===0||!ja(Q)?K(Q):W(Q)}),ae=Ct(t,K);t.state.selectingText=ae,Ce(c.wrapper.ownerDocument,"mousemove",J),Ce(c.wrapper.ownerDocument,"mouseup",ae)}function I3(t,r){var s=r.anchor,a=r.head,c=he(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=jt(c);if(!h)return r;var f=nt(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var b;if(a.line!=s.line)b=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var w=nt(h,a.ch,a.sticky),L=w-f||(a.ch-s.ch)*(p.level==1?-1:1);w==g-1||w==g?b=L<0:b=L>0}var I=h[g+(b?-1:0)],_=b==(I.level==1),H=_?I.from:I.to,W=_?"after":"before";return s.ch==H&&s.sticky==W?r:new Fe(new U(s.line,H,W),a)}function Td(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&$t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!St(t,s))return rr(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var b=f.gutters.childNodes[g];if(b&&b.getBoundingClientRect().right>=c){var w=Hr(t.doc,h),L=t.display.gutterSpecs[g];return ze(t,s,t,w,L.className,r),rr(r)}}}function R1(t,r){return Td(t,r,"gutterClick",!0)}function kd(t,r){tn(t.display,r)||A3(t,r)||ct(t,r,"contextmenu")||We||t.display.input.onContextMenu(r)}function A3(t,r){return St(t,"gutterContextMenu")?Td(t,r,"gutterContextMenu",!1):!1}function $d(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),No(t)}var ji={toString:function(){return"CodeMirror.Init"}},Od={},xs={};function P3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,b){b!=ji&&h(p,g,b)}:h)}t.defineOption=s,t.Init=ji,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,$1(a)},!0),s("indentUnit",2,$1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Uo(a),No(a),Rt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var b=0;;){var w=g.text.indexOf(c,b);if(w==-1)break;b=w+c.length,h.push(U(f,w))}f++});for(var p=h.length-1;p>=0;p--)Vi(a.doc,c,h[p],U(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=ji&&a.refresh()}),s("specialCharPlaceholder",u4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",re?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!qe),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){$d(a),Wo(a)},!0),s("keyMap","default",function(a,c,h){var f=Cs(c),p=h!=ji&&Cs(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,N3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=T1(c,a.options.lineNumbers),Wo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?v1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Hi(a)},!0),s("scrollbarStyle","native",function(a){_u(a),Hi(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=T1(a.options.gutters,c),Wo(a)},!0),s("firstLineNumber",1,Wo,!0),s("lineNumberFormatter",function(a){return a},Wo,!0),s("showCursorWhenSelecting",!1,Ho,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Di(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,D3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Ho,!0),s("singleCursorHeightPerLine",!0,Ho,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Uo,!0),s("addModeClass",!1,Uo,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Uo,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function D3(t,r,s){var a=s&&s!=ji;if(!r!=!a){var c=t.display.dragFunctions,h=r?Ce:Nt;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function N3(t){t.options.lineWrapping?(Te(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(ie(t.display.wrapper,"CodeMirror-wrap"),a1(t)),b1(t),Rt(t),No(t),setTimeout(function(){return Hi(t)},100)}function Qe(t,r){var s=this;if(!(this instanceof Qe))return new Qe(t,r);this.options=r=r?Xe(r):{},Xe(Od,r,!1);var a=r.value;typeof a=="string"?a=new Ft(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new Qe.inputStyles[r.inputStyle](this),h=this.display=new Y4(t,a,c,r);h.wrapper.CodeMirror=this,$d(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_u(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ue,keySeq:null,specialChars:null},r.autofocus&&!re&&h.input.focus(),y&&m<11&&setTimeout(function(){return s.display.input.reset(!0)},20),H3(this),g3(),Xn(this),this.curOp.forceUpdate=!0,Vu(this,a),r.autofocus&&!re||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&C1(s)},20):Di(this);for(var f in xs)xs.hasOwnProperty(f)&&xs[f](this,r[f],ji);Pu(this),r.finishInit&&r.finishInit(this);for(var p=0;p<F1.length;++p)F1[p](this);Jn(this),T&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Qe.defaults=Od,Qe.optionHandlers=xs;function H3(t){var r=t.display;Ce(r.scroller,"mousedown",Ct(t,Sd)),y&&m<11?Ce(r.scroller,"dblclick",Ct(t,function(g){if(!ct(t,g)){var b=Gn(t,g);if(!(!b||R1(t,g)||tn(t.display,g))){$t(g);var w=t.findWordAt(b);gs(t.doc,w.anchor,w.head)}}})):Ce(r.scroller,"dblclick",function(g){return ct(t,g)||$t(g)}),Ce(r.scroller,"contextmenu",function(g){return kd(t,g)}),Ce(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||kd(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var b=g.touches[0];return b.radiusX<=1&&b.radiusY<=1}function f(g,b){if(b.left==null)return!0;var w=b.left-g.left,L=b.top-g.top;return w*w+L*L>20*20}Ce(r.scroller,"touchstart",function(g){if(!ct(t,g)&&!h(g)&&!R1(t,g)){r.input.ensurePolled(),clearTimeout(s);var b=+new Date;r.activeTouch={start:b,moved:!1,prev:b-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Ce(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ce(r.scroller,"touchend",function(g){var b=r.activeTouch;if(b&&!tn(r,g)&&b.left!=null&&!b.moved&&new Date-b.start<300){var w=t.coordsChar(r.activeTouch,"page"),L;!b.prev||f(b,b.prev)?L=new Fe(w,w):!b.prev.prev||f(b,b.prev.prev)?L=t.findWordAt(w):L=new Fe(U(w.line,0),oe(t.doc,U(w.line+1,0))),t.setSelection(L.anchor,L.head),t.focus(),$t(g)}c()}),Ce(r.scroller,"touchcancel",c),Ce(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Fo(t,r.scroller.scrollTop),Kn(t,r.scroller.scrollLeft,!0),ze(t,"scroll",t))}),Ce(r.scroller,"mousewheel",function(g){return Hu(t,g)}),Ce(r.scroller,"DOMMouseScroll",function(g){return Hu(t,g)}),Ce(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ct(t,g)||Zn(g)},over:function(g){ct(t,g)||(p3(t,g),Zn(g))},start:function(g){return f3(t,g)},drop:Ct(t,h3),leave:function(g){ct(t,g)||hd(t)}};var p=r.input.getField();Ce(p,"keyup",function(g){return zd.call(t,g)}),Ce(p,"keydown",Ct(t,xd)),Ce(p,"keypress",Ct(t,Ld)),Ce(p,"focus",function(g){return C1(t,g)}),Ce(p,"blur",function(g){return Di(t,g)})}var F1=[];Qe.defineInitHook=function(t){return F1.push(t)};function ia(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=_o(t,r).state:s="prev");var f=t.options.tabSize,p=he(c,r),g=Je(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var b=p.text.match(/^\s*/)[0],w;if(!a&&!/\S/.test(p.text))w=0,s="not";else if(s=="smart"&&(w=c.mode.indent(h,p.text.slice(b.length),p.text),w==$e||w>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?w=Je(he(c,r-1).text,null,f):w=0:s=="add"?w=g+t.options.indentUnit:s=="subtract"?w=g-t.options.indentUnit:typeof s=="number"&&(w=g+s),w=Math.max(0,w);var L="",I=0;if(t.options.indentWithTabs)for(var _=Math.floor(w/f);_;--_)I+=f,L+=" ";if(I<w&&(L+=mn(w-I)),L!=b)return Vi(c,L,U(r,0),U(r,b.length),"+input"),p.stateAfter=null,!0;for(var H=0;H<c.sel.ranges.length;H++){var W=c.sel.ranges[H];if(W.head.line==r&&W.head.ch<b.length){var K=U(r,b.length);I1(c,H,new Fe(K,K));break}}}var xr=null;function zs(t){xr=t}function B1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=Mo(r),b=null;if(p&&a.ranges.length>1)if(xr&&xr.text.join(`
|
|
2991
2991
|
`)==r){if(a.ranges.length%xr.text.length==0){b=[];for(var w=0;w<xr.text.length;w++)b.push(h.splitLines(xr.text[w]))}}else g.length==a.ranges.length&&t.options.pasteLinesPerSelection&&(b=He(g,function(J){return[J]}));for(var L=t.curOp.updateInput,I=a.ranges.length-1;I>=0;I--){var _=a.ranges[I],H=_.from(),W=_.to();_.empty()&&(s&&s>0?H=U(H.line,H.ch-s):t.state.overwrite&&!p?W=U(W.line,Math.min(he(h,W.line).text.length,W.ch+Oe(g).length)):p&&xr&&xr.lineWise&&xr.text.join(`
|
|
2992
2992
|
`)==g.join(`
|
|
2993
|
-
`)&&(H=W=U(H.line,0)));var K={from:H,to:W,text:b?b[I%b.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Bi(t.doc,K),yt(t,"inputRead",t,K)}r&&!p&&Od(t,r),Ni(t),t.curOp.updateInput<2&&(t.curOp.updateInput=L),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function $d(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&qt(r,function(){return B1(r,s,0,null,"paste")}),!0}function Od(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=ia(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(he(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=ia(t,c.head.line,"smart"));f&&yt(t,"electricInput",t,c.head.line)}}}function Ed(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:U(c,0),head:U(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function _d(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Id(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?t.style.width="1000px":t.setAttribute("wrap","off"),te&&(t.style.border="1px solid black"),_d(t),r}function R3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&Ct(this,r[a])(this,c,f),ze(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](Cs(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:At(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");mt(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Rt(this)}),removeOverlay:At(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Rt(this);return}}}),indentLine:At(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Wn(this.doc,a)&&ia(this,a,c,h)}),indentSelection:At(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(ia(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Ni(this));else{var g=p.from(),b=p.to(),w=Math.max(h,g.line);h=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var L=w;L<h;++L)ia(this,L,a);var I=this.doc.sel.ranges;g.ch==0&&c.length==I.length&&I[f].from().ch>0&&I1(this.doc,f,new Fe(g,I[f].to()),Pe)}}}),getTokenAt:function(a,c){return B0(this,a,c)},getLineTokens:function(a,c){return B0(this,U(a),c,!0)},getTokenTypeAt:function(a){a=oe(this.doc,a);var c=H0(this,he(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var b=h+f>>1;if((b?c[b*2-1]:0)>=p)f=b;else if(c[b*2+1]<p)h=b+1;else{g=c[b*2+2];break}}var w=g?g.indexOf("overlay "):-1;return w<0?g:w==0?null:g.slice(0,w-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var b=f[p[c][g]];b&&h.push(b)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var w=0;w<f._global.length;w++){var L=f._global[w];L.pred(p,this)&&fe(h,L.val)==-1&&h.push(L.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Ae(h,a==null?h.first+h.size-1:a),_o(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=oe(this.doc,a):h=a?f.from():f.to(),Cr(this,h,c||"page")},charCoords:function(a,c){return os(this,oe(this.doc,a),c||"page")},coordsChar:function(a,c){return a=vu(this,a,c||"page"),f1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=vu(this,{top:a,left:0},c||"page").top,Hr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=he(this.doc,a)}else p=a;return is(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-en(p):0)},defaultTextHeight:function(){return Ai(this.display)},defaultCharWidth:function(){return Pi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=Cr(this,oe(this.doc,a));var b=a.bottom,w=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")b=a.top;else if(f=="above"||f=="near"){var L=Math.max(g.wrapper.clientHeight,this.doc.height),I=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>L)&&a.top>c.offsetHeight?b=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=L&&(b=a.bottom),w+c.offsetWidth>I&&(w=I-c.offsetWidth)}c.style.top=b+"px",c.style.left=c.style.right="",p=="right"?(w=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?w=0:p=="middle"&&(w=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=w+"px"),h&&D4(this,{left:w,top:b,right:w+c.offsetWidth,bottom:b+c.offsetHeight})},triggerOnKeyDown:At(Cd),triggerOnKeyPress:At(xd),triggerOnKeyUp:wd,triggerOnMouseDown:At(zd),execCommand:function(a){if(ea.hasOwnProperty(a))return ea[a].call(null,this)},triggerElectric:At(function(a){Od(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=oe(this.doc,a),b=0;b<c&&(g=V1(this.doc,g,p,h,f),!g.hitSide);++b);return g},moveH:At(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?V1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Se)}),deleteH:At(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Ui(this,function(p){var g=V1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var b=oe(this.doc,a),w=0;w<c;++w){var L=Cr(this,b,"div");if(g==null?g=L.left:L.left=g,b=Ad(this,L,p,h),b.hitSide)break}return b},moveV:At(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(w){if(g)return a<0?w.from():w.to();var L=Cr(h,w.head,"div");w.goalColumn!=null&&(L.left=w.goalColumn),p.push(L.left);var I=Ad(h,L,a,c);return c=="page"&&w==f.sel.primary()&&x1(h,os(h,I,"div").top-L.top),I},Se),p.length)for(var b=0;b<f.sel.ranges.length;b++)f.sel.ranges[b].goalColumn=p[b]}),findWordAt:function(a){var c=this.doc,h=he(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var b=h.charAt(f),w=A(b,g)?function(L){return A(L,g)}:/\s/.test(b)?function(L){return/\s/.test(L)}:function(L){return!/\s/.test(L)&&!A(L)};f>0&&w(h.charAt(f-1));)--f;for(;p<h.length&&w(h.charAt(p));)++p}return new Fe(U(a.line,f),U(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Me(this.display.cursorDiv,"CodeMirror-overwrite"):ie(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:At(function(a,c){Ro(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Br(this)-this.display.barHeight,width:a.scrollWidth-Br(this)-this.display.barWidth,clientHeight:c1(this),clientWidth:Un(this)}},scrollIntoView:At(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:U(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?N4(this,a):Mu(this,a.from,a.to,a.margin)}),setSize:At(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&fu(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var b=0;b<g.widgets.length;b++)if(g.widgets[b].noHScroll){xn(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(a){return qt(this,a)},startOperation:function(){return Xn(this)},endOperation:function(){return Jn(this)},refresh:At(function(){var a=this.display.cachedTextHeight;Rt(this),this.curOp.forceUpdate=!0,No(this),Ro(this,this.doc.scrollLeft,this.doc.scrollTop),S1(this.display),(a==null||Math.abs(a-Ai(this.display))>.5||this.options.lineWrapping)&&b1(this),ze(this,"refresh",this)}),swapDoc:At(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Fu(this,a),No(this),this.display.input.reset(),Ro(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,yt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Pr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function V1(t,r,s,a,c){var h=r,f=s,p=he(t,r.line),g=c&&t.direction=="rtl"?-s:s;function b(){var ae=r.line+g;return ae<t.first||ae>=t.first+t.size?!1:(r=new U(ae,r.ch,r.sticky),p=he(t,ae))}function w(ae){var Q;if(a=="codepoint"){var ce=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(ce))Q=null;else{var ye=s>0?ce>=55296&&ce<56320:ce>=56320&&ce<57343;Q=new U(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(ye?2:1))),-s)}}else c?Q=C3(t.cm,p,r,s):Q=P1(p,r,s);if(Q==null)if(!ae&&b())r=D1(c,t.cm,p,r.line,g);else return!1;else r=Q;return!0}if(a=="char"||a=="codepoint")w();else if(a=="column")w(!0);else if(a=="word"||a=="group")for(var L=null,I=a=="group",_=t.cm&&t.cm.getHelper(r,"wordChars"),H=!0;!(s<0&&!w(!H));H=!1){var W=p.text.charAt(r.ch)||`
|
|
2993
|
+
`)&&(H=W=U(H.line,0)));var K={from:H,to:W,text:b?b[I%b.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Bi(t.doc,K),yt(t,"inputRead",t,K)}r&&!p&&_d(t,r),Ni(t),t.curOp.updateInput<2&&(t.curOp.updateInput=L),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ed(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&qt(r,function(){return B1(r,s,0,null,"paste")}),!0}function _d(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=ia(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(he(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=ia(t,c.head.line,"smart"));f&&yt(t,"electricInput",t,c.head.line)}}}function Id(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:U(c,0),head:U(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function Ad(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Pd(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?t.style.width="1000px":t.setAttribute("wrap","off"),te&&(t.style.border="1px solid black"),Ad(t),r}function R3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&Ct(this,r[a])(this,c,f),ze(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](Cs(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:At(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");mt(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Rt(this)}),removeOverlay:At(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Rt(this);return}}}),indentLine:At(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Wn(this.doc,a)&&ia(this,a,c,h)}),indentSelection:At(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(ia(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Ni(this));else{var g=p.from(),b=p.to(),w=Math.max(h,g.line);h=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var L=w;L<h;++L)ia(this,L,a);var I=this.doc.sel.ranges;g.ch==0&&c.length==I.length&&I[f].from().ch>0&&I1(this.doc,f,new Fe(g,I[f].to()),Pe)}}}),getTokenAt:function(a,c){return Z0(this,a,c)},getLineTokens:function(a,c){return Z0(this,U(a),c,!0)},getTokenTypeAt:function(a){a=oe(this.doc,a);var c=F0(this,he(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var b=h+f>>1;if((b?c[b*2-1]:0)>=p)f=b;else if(c[b*2+1]<p)h=b+1;else{g=c[b*2+2];break}}var w=g?g.indexOf("overlay "):-1;return w<0?g:w==0?null:g.slice(0,w-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var b=f[p[c][g]];b&&h.push(b)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var w=0;w<f._global.length;w++){var L=f._global[w];L.pred(p,this)&&fe(h,L.val)==-1&&h.push(L.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Ae(h,a==null?h.first+h.size-1:a),_o(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=oe(this.doc,a):h=a?f.from():f.to(),Cr(this,h,c||"page")},charCoords:function(a,c){return os(this,oe(this.doc,a),c||"page")},coordsChar:function(a,c){return a=mu(this,a,c||"page"),f1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=mu(this,{top:a,left:0},c||"page").top,Hr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=he(this.doc,a)}else p=a;return is(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-en(p):0)},defaultTextHeight:function(){return Ai(this.display)},defaultCharWidth:function(){return Pi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=Cr(this,oe(this.doc,a));var b=a.bottom,w=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")b=a.top;else if(f=="above"||f=="near"){var L=Math.max(g.wrapper.clientHeight,this.doc.height),I=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>L)&&a.top>c.offsetHeight?b=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=L&&(b=a.bottom),w+c.offsetWidth>I&&(w=I-c.offsetWidth)}c.style.top=b+"px",c.style.left=c.style.right="",p=="right"?(w=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?w=0:p=="middle"&&(w=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=w+"px"),h&&D4(this,{left:w,top:b,right:w+c.offsetWidth,bottom:b+c.offsetHeight})},triggerOnKeyDown:At(xd),triggerOnKeyPress:At(Ld),triggerOnKeyUp:zd,triggerOnMouseDown:At(Sd),execCommand:function(a){if(ea.hasOwnProperty(a))return ea[a].call(null,this)},triggerElectric:At(function(a){_d(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=oe(this.doc,a),b=0;b<c&&(g=V1(this.doc,g,p,h,f),!g.hitSide);++b);return g},moveH:At(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?V1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Se)}),deleteH:At(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Ui(this,function(p){var g=V1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var b=oe(this.doc,a),w=0;w<c;++w){var L=Cr(this,b,"div");if(g==null?g=L.left:L.left=g,b=Dd(this,L,p,h),b.hitSide)break}return b},moveV:At(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(w){if(g)return a<0?w.from():w.to();var L=Cr(h,w.head,"div");w.goalColumn!=null&&(L.left=w.goalColumn),p.push(L.left);var I=Dd(h,L,a,c);return c=="page"&&w==f.sel.primary()&&x1(h,os(h,I,"div").top-L.top),I},Se),p.length)for(var b=0;b<f.sel.ranges.length;b++)f.sel.ranges[b].goalColumn=p[b]}),findWordAt:function(a){var c=this.doc,h=he(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var b=h.charAt(f),w=A(b,g)?function(L){return A(L,g)}:/\s/.test(b)?function(L){return/\s/.test(L)}:function(L){return!/\s/.test(L)&&!A(L)};f>0&&w(h.charAt(f-1));)--f;for(;p<h.length&&w(h.charAt(p));)++p}return new Fe(U(a.line,f),U(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Te(this.display.cursorDiv,"CodeMirror-overwrite"):ie(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:At(function(a,c){Ro(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Br(this)-this.display.barHeight,width:a.scrollWidth-Br(this)-this.display.barWidth,clientHeight:c1(this),clientWidth:Un(this)}},scrollIntoView:At(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:U(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?N4(this,a):ku(this,a.from,a.to,a.margin)}),setSize:At(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&gu(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var b=0;b<g.widgets.length;b++)if(g.widgets[b].noHScroll){xn(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(a){return qt(this,a)},startOperation:function(){return Xn(this)},endOperation:function(){return Jn(this)},refresh:At(function(){var a=this.display.cachedTextHeight;Rt(this),this.curOp.forceUpdate=!0,No(this),Ro(this,this.doc.scrollLeft,this.doc.scrollTop),S1(this.display),(a==null||Math.abs(a-Ai(this.display))>.5||this.options.lineWrapping)&&b1(this),ze(this,"refresh",this)}),swapDoc:At(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Vu(this,a),No(this),this.display.input.reset(),Ro(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,yt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Pr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function V1(t,r,s,a,c){var h=r,f=s,p=he(t,r.line),g=c&&t.direction=="rtl"?-s:s;function b(){var ae=r.line+g;return ae<t.first||ae>=t.first+t.size?!1:(r=new U(ae,r.ch,r.sticky),p=he(t,ae))}function w(ae){var Q;if(a=="codepoint"){var ce=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(ce))Q=null;else{var ye=s>0?ce>=55296&&ce<56320:ce>=56320&&ce<57343;Q=new U(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(ye?2:1))),-s)}}else c?Q=C3(t.cm,p,r,s):Q=P1(p,r,s);if(Q==null)if(!ae&&b())r=D1(c,t.cm,p,r.line,g);else return!1;else r=Q;return!0}if(a=="char"||a=="codepoint")w();else if(a=="column")w(!0);else if(a=="word"||a=="group")for(var L=null,I=a=="group",_=t.cm&&t.cm.getHelper(r,"wordChars"),H=!0;!(s<0&&!w(!H));H=!1){var W=p.text.charAt(r.ch)||`
|
|
2994
2994
|
`,K=A(W,_)?"w":I&&W==`
|
|
2995
|
-
`?"n":!I||/\s/.test(W)?null:"p";if(I&&!H&&!K&&(K="s"),L&&L!=K){s<0&&(s=1,w(),r.sticky="after");break}if(K&&(L=K),s>0&&!w(!H))break}var J=bs(t,r,h,f,!0);return M(h,J)&&(J.hitSide=!0),J}function
|
|
2996
|
-
`);if(p.clipboardData.setData("Text",b),p.clipboardData.getData("Text")==b){p.preventDefault();return}}var w=
|
|
2997
|
-
`);var I=be();lt(L),setTimeout(function(){a.display.lineSpace.removeChild(w),I.focus(),I==c&&s.showPrimarySelection()},50)}}Ce(c,"copy",f),Ce(c,"cut",f)},je.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var t=
|
|
2998
|
-
`),lt(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Ce(c,"cut",h),Ce(c,"copy",h),Ce(t.scroller,"paste",function(f){if(!(tn(t,f)||ct(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Ce(t.lineSpace,"selectstart",function(f){tn(t,f)||$t(f)}),Ce(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},at.prototype.createField=function(t){this.wrapper=
|
|
2999
|
-
`)>-1?s.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},at.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},at.prototype.onKeyPress=function(){m
|
|
2995
|
+
`?"n":!I||/\s/.test(W)?null:"p";if(I&&!H&&!K&&(K="s"),L&&L!=K){s<0&&(s=1,w(),r.sticky="after");break}if(K&&(L=K),s>0&&!w(!H))break}var J=bs(t,r,h,f,!0);return M(h,J)&&(J.hitSide=!0),J}function Dd(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Ai(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var b;b=f1(t,h,f),!!b.outside;){if(s<0?f<=0:f>=c.height){b.hitSide=!0;break}f+=s*5}return b}var je=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};je.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,Ad(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Ce(c,"paste",function(p){!h(p)||ct(a,p)||Ed(p,a)||m<=11&&setTimeout(Ct(a,function(){return r.updateFromDOM()}),20)}),Ce(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Ce(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Ce(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ce(c,"touchstart",function(){return s.forceCompositionEnd()}),Ce(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ct(a,p))){if(a.somethingSelected())zs({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=Id(a);zs({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,Pe),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var b=xr.text.join(`
|
|
2996
|
+
`);if(p.clipboardData.setData("Text",b),p.clipboardData.getData("Text")==b){p.preventDefault();return}}var w=Pd(),L=w.firstChild;a.display.lineSpace.insertBefore(w,a.display.lineSpace.firstChild),L.value=xr.text.join(`
|
|
2997
|
+
`);var I=be();lt(L),setTimeout(function(){a.display.lineSpace.removeChild(w),I.focus(),I==c&&s.showPrimarySelection()},50)}}Ce(c,"copy",f),Ce(c,"cut",f)},je.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var t=Lu(this.cm,!1);return t.focus=be()==this.div,t},je.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},je.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},je.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=Ls(r,t.anchorNode,t.anchorOffset),f=Ls(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C(Le(h,f),a)==0&&C(q(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&Nd(r,a)||{node:p[0].measure.map[2],offset:0},b=c.line<r.display.viewTo&&Nd(r,c);if(!b){var w=p[p.length-1].measure,L=w.maps?w.maps[w.maps.length-1]:w.map;b={node:L[L.length-1],offset:L[L.length-2]-L[L.length-3]}}if(!g||!b){t.removeAllRanges();return}var I=t.rangeCount&&t.getRangeAt(0),_;try{_=B(g.node,g.offset,b.offset,b.node)}catch{}_&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),_.collapsed||(t.removeAllRanges(),t.addRange(_))):(t.removeAllRanges(),t.addRange(_)),I&&t.anchorNode==null?t.addRange(I):l&&this.startGracePeriod()),this.rememberSelection()}},je.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},je.prototype.showMultipleSelections=function(t){k(this.cm.display.cursorDiv,t.cursors),k(this.cm.display.selectionDiv,t.selection)},je.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},je.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return X(this.div,r)},je.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||be()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},je.prototype.blur=function(){this.div.blur()},je.prototype.getField=function(){return this.div},je.prototype.supportsTouch=function(){return!0},je.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():qt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},je.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},je.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(se&&$&&this.cm.display.gutterSpecs.length&&F3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ls(r,t.anchorNode,t.anchorOffset),a=Ls(r,t.focusNode,t.focusOffset);s&&a&&qt(r,function(){Et(r.doc,Ln(s,a),Pe),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},je.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=U(a.line-1,he(t.doc,a.line-1).length)),c.ch==he(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=U(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=qn(t,a.line))==0?(f=Re(r.view[0].line),p=r.view[0].node):(f=Re(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=qn(t,c.line),b,w;if(g==r.view.length-1?(b=r.viewTo-1,w=r.lineDiv.lastChild):(b=Re(r.view[g+1].line)-1,w=r.view[g+1].node.previousSibling),!p)return!1;for(var L=t.doc.splitLines(B3(t,p,w,f,b)),I=Nr(t.doc,U(f,0),U(b,he(t.doc,b).text.length));L.length>1&&I.length>1;)if(Oe(L)==Oe(I))L.pop(),I.pop(),b--;else if(L[0]==I[0])L.shift(),I.shift(),f++;else break;for(var _=0,H=0,W=L[0],K=I[0],J=Math.min(W.length,K.length);_<J&&W.charCodeAt(_)==K.charCodeAt(_);)++_;for(var ae=Oe(L),Q=Oe(I),ce=Math.min(ae.length-(L.length==1?_:0),Q.length-(I.length==1?_:0));H<ce&&ae.charCodeAt(ae.length-H-1)==Q.charCodeAt(Q.length-H-1);)++H;if(L.length==1&&I.length==1&&f==a.line)for(;_&&_>a.ch&&ae.charCodeAt(ae.length-H-1)==Q.charCodeAt(Q.length-H-1);)_--,H++;L[L.length-1]=ae.slice(0,ae.length-H).replace(/^\u200b+/,""),L[0]=L[0].slice(_).replace(/\u200b+$/,"");var ye=U(f,_),ve=U(b,I.length?Oe(I).length-H:0);if(L.length>1||L[0]||C(ye,ve))return Vi(t.doc,L,ye,ve,"+input"),!0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&qt(this.cm,function(){return Rt(t.cm)})},je.prototype.setUneditable=function(t){t.contentEditable="false"},je.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Ct(this.cm,B1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},je.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;function Nd(t,r){var s=u1(t,r.line);if(!s||s.hidden)return null;var a=he(t.doc,r.line),c=uu(s,a,r.line),h=jt(a,t.doc.direction),f="left";if(h){var p=nt(h,r.ch);f=p%2?"right":"left"}var g=fu(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function F3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Gi(t,r){return r&&(t.bad=!0),t}function B3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function b(_){return function(H){return H.id==_}}function w(){f&&(h+=p,g&&(h+=p),f=g=!1)}function L(_){_&&(w(),h+=_)}function I(_){if(_.nodeType==1){var H=_.getAttribute("cm-text");if(H){L(H);return}var W=_.getAttribute("cm-marker"),K;if(W){var J=t.findMarks(U(a,0),U(c+1,0),b(+W));J.length&&(K=J[0].find(0))&&L(Nr(t.doc,K.from,K.to).join(p));return}if(_.getAttribute("contenteditable")=="false")return;var ae=/^(pre|div|p|li|table|br)$/i.test(_.nodeName);if(!/^br$/i.test(_.nodeName)&&_.textContent.length==0)return;ae&&w();for(var Q=0;Q<_.childNodes.length;Q++)I(_.childNodes[Q]);/^(pre|p)$/i.test(_.nodeName)&&(g=!0),ae&&(f=!0)}else _.nodeType==3&&L(_.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;I(r),r!=s;)r=r.nextSibling,g=!1;return h}function Ls(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return Gi(t.clipPos(U(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return V3(h,r,s)}}function V3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!X(a,r))return Gi(U(Re(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?Oe(t.rest):t.line;return Gi(U(Re(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,b=g.maps;function w(K,J,ae){for(var Q=-1;Q<(b?b.length:0);Q++)for(var ce=Q<0?g.map:b[Q],ye=0;ye<ce.length;ye+=3){var ve=ce[ye+2];if(ve==K||ve==J){var ke=Re(Q<0?t.line:t.rest[Q]),Ye=ce[ye]+ae;return(ae<0||ve!=K)&&(Ye=ce[ye+(ae?1:0)]),U(ke,Ye)}}}var L=w(f,p,s);if(L)return Gi(L,c);for(var I=p.nextSibling,_=f?f.nodeValue.length-s:0;I;I=I.nextSibling){if(L=w(I,I.firstChild,0),L)return Gi(U(L.line,L.ch-_),c);_+=I.textContent.length}for(var H=p.previousSibling,W=s;H;H=H.previousSibling){if(L=w(H,H.firstChild,-1),L)return Gi(U(L.line,L.ch+W),c);W+=H.textContent.length}}var at=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};at.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),te&&(c.style.width="0px"),Ce(c,"input",function(){y&&m>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Ce(c,"paste",function(f){ct(a,f)||Ed(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ct(a,f)){if(a.somethingSelected())zs({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=Id(a);zs({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,Pe):(s.prevInput="",c.value=p.text.join(`
|
|
2998
|
+
`),lt(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Ce(c,"cut",h),Ce(c,"copy",h),Ce(t.scroller,"paste",function(f){if(!(tn(t,f)||ct(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Ce(t.lineSpace,"selectstart",function(f){tn(t,f)||$t(f)}),Ce(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},at.prototype.createField=function(t){this.wrapper=Pd(),this.textarea=this.wrapper.firstChild},at.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},at.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=Lu(t);if(t.options.moveInputWithCursor){var c=Cr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},at.prototype.showSelection=function(t){var r=this.cm,s=r.display;k(s.cursorDiv,t.cursors),k(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},at.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&<(this.textarea),y&&m>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",y&&m>=9&&(this.hasSelection=null))}},at.prototype.getField=function(){return this.textarea},at.prototype.supportsTouch=function(){return!1},at.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!re||be()!=this.textarea))try{this.textarea.focus()}catch{}},at.prototype.blur=function(){this.textarea.blur()},at.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},at.prototype.receivedFocus=function(){this.slowPoll()},at.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},at.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},at.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||qa(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(y&&m>=9&&this.hasSelection===c||ue&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a=""),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return qt(r,function(){B1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
2999
|
+
`)>-1?s.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},at.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},at.prototype.onKeyPress=function(){y&&m>=9&&(this.hasSelection=null),this.fastPoll()},at.prototype.onContextMenu=function(t){var r=this,s=r.cm,a=s.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=Gn(s,t),f=a.scroller.scrollTop;if(!h||E)return;var p=s.options.resetSelectionOnContextMenu;p&&s.doc.sel.contains(h)==-1&&Ct(s,Et)(s.doc,Ln(h),Pe);var g=c.style.cssText,b=r.wrapper.style.cssText,w=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
3000
3000
|
top: `+(t.clientY-w.top-5)+"px; left: "+(t.clientX-w.left-5)+`px;
|
|
3001
|
-
z-index: 1000; background: `+(
|
|
3002
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var L;T&&(L=window.scrollY),a.input.focus(),T&&window.scrollTo(null,L),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=_,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function I(){if(c.selectionStart!=null){var W=s.somethingSelected(),K=""+(W?c.value:"");c.value="⇚",c.value=K,r.prevInput=W?"":"",c.selectionStart=1,c.selectionEnd=K.length,a.selForContextMenu=s.doc.sel}}function _(){if(r.contextMenuPending==_&&(r.contextMenuPending=!1,r.wrapper.style.cssText=b,c.style.cssText=g,m
|
|
3001
|
+
z-index: 1000; background: `+(y?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
3002
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var L;T&&(L=window.scrollY),a.input.focus(),T&&window.scrollTo(null,L),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=_,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function I(){if(c.selectionStart!=null){var W=s.somethingSelected(),K=""+(W?c.value:"");c.value="⇚",c.value=K,r.prevInput=W?"":"",c.selectionStart=1,c.selectionEnd=K.length,a.selForContextMenu=s.doc.sel}}function _(){if(r.contextMenuPending==_&&(r.contextMenuPending=!1,r.wrapper.style.cssText=b,c.style.cssText=g,y&&m<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!y||y&&m<9)&&I();var W=0,K=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput==""?Ct(s,td)(s):W++<10?a.detectingSelectAll=setTimeout(K,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(K,200)}}if(y&&m>=9&&I(),We){Zn(t);var H=function(){Nt(window,"mouseup",H),setTimeout(_,20)};Ce(window,"mouseup",H)}else setTimeout(_,50)},at.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},at.prototype.setUneditable=function(){},at.prototype.needsContentAttribute=!1;function Z3(t,r){if(r=r?Xe(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=be();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Ce(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Nt(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=Qe(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function W3(t){t.off=Nt,t.on=Ce,t.wheelEventPixels=X4,t.Doc=Ft,t.splitLines=Mo,t.countColumn=Je,t.findColumn=bt,t.isWordChar=Ke,t.Pass=$e,t.signal=ze,t.Line=Ei,t.changeEnd=Sn,t.scrollbarModel=Eu,t.Pos=U,t.cmpPos=C,t.modes=dr,t.mimeModes=nr,t.resolveMode=ki,t.getMode=$i,t.modeExtensions=mr,t.extendMode=yr,t.copyState=ir,t.startState=$o,t.innerMode=ko,t.commands=ea,t.keyMap=rn,t.keyName=bd,t.isModifierKey=gd,t.lookupKey=Wi,t.normalizeKeyMap=y3,t.StringStream=it,t.SharedTextMarker=Xo,t.TextMarker=Tn,t.LineWidget=Yo,t.e_preventDefault=$t,t.e_stopPropagation=Ti,t.e_stop=Zn,t.addClass=Te,t.contains=X,t.rmClass=ie,t.keyNames=kn}P3(Qe),R3(Qe);var U3="iter insert remove copy getEditor constructor".split(" ");for(var Ss in Ft.prototype)Ft.prototype.hasOwnProperty(Ss)&&fe(U3,Ss)<0&&(Qe.prototype[Ss]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ft.prototype[Ss]));return Pr(Ft),Qe.inputStyles={textarea:at,contenteditable:je},Qe.defineMode=function(t){!Qe.defaults.mode&&t!="null"&&(Qe.defaults.mode=t),Ya.apply(this,arguments)},Qe.defineMIME=Jr,Qe.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Qe.defineMIME("text/plain","null"),Qe.defineExtension=function(t,r){Qe.prototype[t]=r},Qe.defineDocExtension=function(t,r){Ft.prototype[t]=r},Qe.fromTextArea=Z3,W3(Qe),Qe.version="5.62.3",Qe})})(Vp);var vn=Vp.exports;const ga=c0(vn),LL=`.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}
|
|
3003
3003
|
`,SL=j`
|
|
3004
3004
|
.cm-s-skedulo .cm-header {
|
|
3005
3005
|
color: blue;
|
|
@@ -3080,7 +3080,7 @@ b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.
|
|
|
3080
3080
|
.cm-invalidchar {
|
|
3081
3081
|
color: #f00;
|
|
3082
3082
|
}
|
|
3083
|
-
`;(function(n,e){(function(i){i(vn)})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,m){return o.indent(u.base,v,m)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,m;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(m=l.blankLine(u.overlay)),m==null?v:d&&v!=null?v+" "+m:m}}}})})();(function(n,e){(function(i){i(vn)})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function m(y,T){var S=y.peek();if(T.incomment)return y.skipTo("#}")?(y.eatWhile(/\#|}/),T.incomment=!1):y.skipToEnd(),"comment";if(T.intag){if(T.operator){if(T.operator=!1,y.match(u))return"atom";if(y.match(v))return"number"}if(T.sign){if(T.sign=!1,y.match(u))return"atom";if(y.match(v))return"number"}if(T.instring)return S==T.instring&&(T.instring=!1),y.next(),"string";if(S=="'"||S=='"')return T.instring=S,y.next(),"string";if(y.match(T.intag+"}")||y.eat("-")&&y.match(T.intag+"}"))return T.intag=!1,"tag";if(y.match(l))return T.operator=!0,"operator";if(y.match(d))T.sign=!0;else if(y.eat(" ")||y.sol()){if(y.match(o))return"keyword";if(y.match(u))return"atom";if(y.match(v))return"number";y.sol()&&y.next()}else y.next();return"variable"}else if(y.eat("{")){if(y.eat("#"))return T.incomment=!0,y.skipTo("#}")?(y.eatWhile(/\#|}/),T.incomment=!1):y.skipToEnd(),"comment";if(S=y.eat(/\{|%/))return T.intag=S,S=="{"&&(T.intag="}"),y.eat("-"),"tag"}y.next()}return{startState:function(){return{tokenize:m}},token:function(y,T){return T.tokenize(y,T)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var ML={exports:{}};(function(n,e){(function(i){i(vn)})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,m={},y=u.htmlMode?o:l;for(var T in y)m[T]=y[T];for(var T in u)m[T]=u[T];var S,$;function E(x,z){function B(Me){return z.tokenize=Me,Me(x,z)}var X=x.next();if(X=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?B(ee("atom","]]>")):null:x.match("--")?B(ee("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),B(te(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),z.tokenize=ee("meta","?>"),"meta"):(S=x.eat("/")?"closeTag":"openTag",z.tokenize=N,"tag bracket");if(X=="&"){var be;return x.eat("#")?x.eat("x")?be=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):be=x.eatWhile(/[\d]/)&&x.eat(";"):be=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),be?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function N(x,z){var B=x.next();if(B==">"||B=="/"&&x.eat(">"))return z.tokenize=E,S=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return S="equals",null;if(B=="<"){z.tokenize=E,z.state=xe,z.tagName=z.tagStart=null;var X=z.tokenize(x,z);return X?X+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=G(B),z.stringStartCol=x.column(),z.tokenize(x,z)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function G(x){var z=function(B,X){for(;!B.eol();)if(B.next()==x){X.tokenize=N;break}return"string"};return z.isInAttribute=!0,z}function ee(x,z){return function(B,X){for(;!B.eol();){if(B.match(z)){X.tokenize=E;break}B.next()}return x}}function te(x){return function(z,B){for(var X;(X=z.next())!=null;){if(X=="<")return B.tokenize=te(x+1),B.tokenize(z,B);if(X==">")if(x==1){B.tokenize=E;break}else return B.tokenize=te(x-1),B.tokenize(z,B)}return"meta"}}function se(x,z,B){this.prev=x.context,this.tagName=z||"",this.indent=x.indented,this.startOfLine=B,(m.doNotIndent.hasOwnProperty(z)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function re(x){x.context&&(x.context=x.context.prev)}function ue(x,z){for(var B;;){if(!x.context||(B=x.context.tagName,!m.contextGrabbers.hasOwnProperty(B)||!m.contextGrabbers[B].hasOwnProperty(z)))return;re(x)}}function xe(x,z,B){return x=="openTag"?(B.tagStart=z.column(),qe):x=="closeTag"?Ge:xe}function qe(x,z,B){return x=="word"?(B.tagName=z.current(),$="tag",de):m.allowMissingTagName&&x=="endTag"?($="tag bracket",de(x,z,B)):($="error",qe)}function Ge(x,z,B){if(x=="word"){var X=z.current();return B.context&&B.context.tagName!=X&&m.implicitlyClosed.hasOwnProperty(B.context.tagName)&&re(B),B.context&&B.context.tagName==X||m.matchClosing===!1?($="tag",Ze):($="tag error",We)}else return m.allowMissingTagName&&x=="endTag"?($="tag bracket",Ze(x,z,B)):($="error",We)}function Ze(x,z,B){return x!="endTag"?($="error",Ze):(re(B),xe)}function We(x,z,B){return $="error",Ze(x,z,B)}function de(x,z,B){if(x=="word")return $="attribute",ie;if(x=="endTag"||x=="selfcloseTag"){var X=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,x=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(X)?ue(B,X):(ue(B,X),B.context=new se(B,X,be==B.indented)),xe}return $="error",de}function ie(x,z,B){return x=="equals"?Z:(m.allowMissing||($="error"),de(x,z,B))}function Z(x,z,B){return x=="string"?k:x=="word"&&m.allowUnquoted?($="string",de):($="error",de(x,z,B))}function k(x,z,B){return x=="string"?k:de(x,z,B)}return{startState:function(x){var z={tokenize:E,state:xe,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(z.baseIndent=x),z},token:function(x,z){if(!z.tagName&&x.sol()&&(z.indented=x.indentation()),x.eatSpace())return null;S=null;var B=z.tokenize(x,z);return(B||S)&&B!="comment"&&($=null,z.state=z.state(S||B,x,z),$&&(B=$=="error"?B+" error":$)),B},indent:function(x,z,B){var X=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(X&&X.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=E)return B?B.match(/^(\s*)/)[0].length:0;if(x.tagName)return m.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var be=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(be&&be[1])for(;X;)if(X.tagName==be[2]){X=X.prev;break}else if(m.implicitlyClosed.hasOwnProperty(X.tagName))X=X.prev;else break;else if(be)for(;X;){var Me=m.contextGrabbers[X.tagName];if(Me&&Me.hasOwnProperty(be[2]))X=X.prev;else break}for(;X&&X.prev&&!X.startOfLine;)X=X.prev;return X?X.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(x){x.state==Z&&(x.state=de)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var z=[],B=x.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var TL=ML.exports,kL={exports:{}};(function(n,e){(function(i){i(vn)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,m=l.json||v,y=l.trackScope!==!1,T=l.typescript,S=l.wordCharacters||/[\w$\xa1-\uffff]/,$=function(){function C(Ot){return{type:Ot,style:"keyword"}}var M=C("keyword a"),V=C("keyword b"),q=C("keyword c"),Le=C("keyword d"),Ae=C("operator"),oe={type:"atom",style:"atom"};return{if:C("if"),while:M,with:M,else:V,do:V,try:V,finally:V,return:Le,break:Le,continue:Le,new:C("new"),delete:q,void:q,throw:q,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:C("this"),class:C("class"),super:C("atom"),yield:q,export:C("export"),import:C("import"),extends:q,await:q}}(),E=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(C){for(var M=!1,V,q=!1;(V=C.next())!=null;){if(!M){if(V=="/"&&!q)return;V=="["?q=!0:q&&V=="]"&&(q=!1)}M=!M&&V=="\\"}}var ee,te;function se(C,M,V){return ee=C,te=V,M}function re(C,M){var V=C.next();if(V=='"'||V=="'")return M.tokenize=ue(V),M.tokenize(C,M);if(V=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return se("number","number");if(V=="."&&C.match(".."))return se("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return se(V);if(V=="="&&C.eat(">"))return se("=>","operator");if(V=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return se("number","number");if(/\d/.test(V))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),se("number","number");if(V=="/")return C.eat("*")?(M.tokenize=xe,xe(C,M)):C.eat("/")?(C.skipToEnd(),se("comment","comment")):U(C,M,1)?(G(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),se("regexp","string-2")):(C.eat("="),se("operator","operator",C.current()));if(V=="`")return M.tokenize=qe,qe(C,M);if(V=="#"&&C.peek()=="!")return C.skipToEnd(),se("meta","meta");if(V=="#"&&C.eatWhile(S))return se("variable","property");if(V=="<"&&C.match("!--")||V=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),se("comment","comment");if(E.test(V))return(V!=">"||!M.lexical||M.lexical.type!=">")&&(C.eat("=")?(V=="!"||V=="=")&&C.eat("="):/[<>*+\-|&?]/.test(V)&&(C.eat(V),V==">"&&C.eat(V))),V=="?"&&C.eat(".")?se("."):se("operator","operator",C.current());if(S.test(V)){C.eatWhile(S);var q=C.current();if(M.lastType!="."){if($.propertyIsEnumerable(q)){var Le=$[q];return se(Le.type,Le.style,q)}if(q=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return se("async","keyword",q)}return se("variable","variable",q)}}function ue(C){return function(M,V){var q=!1,Le;if(v&&M.peek()=="@"&&M.match(N))return V.tokenize=re,se("jsonld-keyword","meta");for(;(Le=M.next())!=null&&!(Le==C&&!q);)q=!q&&Le=="\\";return q||(V.tokenize=re),se("string","string")}}function xe(C,M){for(var V=!1,q;q=C.next();){if(q=="/"&&V){M.tokenize=re;break}V=q=="*"}return se("comment","comment")}function qe(C,M){for(var V=!1,q;(q=C.next())!=null;){if(!V&&(q=="`"||q=="$"&&C.eat("{"))){M.tokenize=re;break}V=!V&&q=="\\"}return se("quasi","string-2",C.current())}var Ge="([{}])";function Ze(C,M){M.fatArrowAt&&(M.fatArrowAt=null);var V=C.string.indexOf("=>",C.start);if(!(V<0)){if(T){var q=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,V));q&&(V=q.index)}for(var Le=0,Ae=!1,oe=V-1;oe>=0;--oe){var Ot=C.string.charAt(oe),or=Ge.indexOf(Ot);if(or>=0&&or<3){if(!Le){++oe;break}if(--Le==0){Ot=="("&&(Ae=!0);break}}else if(or>=3&&or<6)++Le;else if(S.test(Ot))Ae=!0;else if(/["'\/`]/.test(Ot))for(;;--oe){if(oe==0)return;var Oi=C.string.charAt(oe-1);if(Oi==Ot&&C.string.charAt(oe-2)!="\\"){oe--;break}}else if(Ae&&!Le){++oe;break}}Ae&&!Le&&(M.fatArrowAt=oe)}}var We={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function de(C,M,V,q,Le,Ae){this.indented=C,this.column=M,this.type=V,this.prev=Le,this.info=Ae,q!=null&&(this.align=q)}function ie(C,M){if(!y)return!1;for(var V=C.localVars;V;V=V.next)if(V.name==M)return!0;for(var q=C.context;q;q=q.prev)for(var V=q.vars;V;V=V.next)if(V.name==M)return!0}function Z(C,M,V,q,Le){var Ae=C.cc;for(k.state=C,k.stream=Le,k.marked=null,k.cc=Ae,k.style=M,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var oe=Ae.length?Ae.pop():m?Se:Pe;if(oe(V,q)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return k.marked?k.marked:V=="variable"&&ie(C,q)?"variable-2":M}}}var k={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)k.cc.push(arguments[C])}function z(){return x.apply(null,arguments),!0}function B(C,M){for(var V=M;V;V=V.next)if(V.name==C)return!0;return!1}function X(C){var M=k.state;if(k.marked="def",!!y){if(M.context){if(M.lexical.info=="var"&&M.context&&M.context.block){var V=be(C,M.context);if(V!=null){M.context=V;return}}else if(!B(C,M.localVars)){M.localVars=new lt(C,M.localVars);return}}l.globalVars&&!B(C,M.globalVars)&&(M.globalVars=new lt(C,M.globalVars))}}function be(C,M){if(M)if(M.block){var V=be(C,M.prev);return V?V==M.prev?M:new Be(V,M.vars,!0):null}else return B(C,M.vars)?M:new Be(M.prev,new lt(C,M.vars),!1);else return null}function Me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Be(C,M,V){this.prev=C,this.vars=M,this.block=V}function lt(C,M){this.name=C,this.next=M}var Qt=new lt("this",new lt("arguments",null));function Xe(){k.state.context=new Be(k.state.context,k.state.localVars,!1),k.state.localVars=Qt}function Je(){k.state.context=new Be(k.state.context,k.state.localVars,!0),k.state.localVars=null}function Ue(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}Ue.lex=!0;function fe(C,M){var V=function(){var q=k.state,Le=q.indented;if(q.lexical.type=="stat")Le=q.lexical.indented;else for(var Ae=q.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)Le=Ae.indented;q.lexical=new de(Le,k.stream.column(),C,null,q.lexical,M)};return V.lex=!0,V}function we(){var C=k.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}we.lex=!0;function $e(C){function M(V){return V==C?z():C==";"||V=="}"||V==")"||V=="]"?x():z(M)}return M}function Pe(C,M){return C=="var"?z(fe("vardef",M),Lo,$e(";"),we):C=="keyword a"?z(fe("form"),br,Pe,we):C=="keyword b"?z(fe("form"),Pe,we):C=="keyword d"?k.stream.match(/^\s*$/,!1)?z():z(fe("stat"),Oe,$e(";"),we):C=="debugger"?z($e(";")):C=="{"?z(fe("}"),Je,jt,we,Ue):C==";"?z():C=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==we&&k.state.cc.pop()(),z(fe("form"),br,Pe,we,qa)):C=="function"?z(dr):C=="for"?z(fe("form"),Je,Ka,Pe,Ue,we):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form",C=="class"?C:M),$i,we)):C=="variable"?T&&M=="declare"?(k.marked="keyword",z(Pe)):T&&(M=="module"||M=="enum"||M=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",M=="enum"?z(Hr):M=="type"?z(Ya,$e("operator"),ze,$e(";")):z(fe("form"),Ht,$e("{"),fe("}"),jt,we,we)):T&&M=="namespace"?(k.marked="keyword",z(fe("form"),Se,Pe,we)):T&&M=="abstract"?(k.marked="keyword",z(Pe)):z(fe("stat"),_e):C=="switch"?z(fe("form"),br,$e("{"),fe("}","switch"),Je,jt,we,we,Ue):C=="case"?z(Se,$e(":")):C=="default"?z($e(":")):C=="catch"?z(fe("form"),Xe,Ee,Pe,we,Ue):C=="export"?z(fe("stat"),ko,we):C=="import"?z(fe("stat"),it,we):C=="async"?z(Pe):M=="@"?z(Se,Pe):x(fe("stat"),Se,$e(";"),we)}function Ee(C){if(C=="(")return z(Jr,$e(")"))}function Se(C,M){return mn(C,M,!1)}function bt(C,M){return mn(C,M,!0)}function br(C){return C!="("?x():z(fe(")"),Oe,$e(")"),we)}function mn(C,M,V){if(k.state.fatArrowAt==k.stream.start){var q=V?Ke:Bn;if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,$e("=>"),q,Ue);if(C=="variable")return x(Xe,Ht,$e("=>"),q,Ue)}var Le=V?mt:He;return We.hasOwnProperty(C)?z(Le):C=="function"?z(dr,Le):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form"),ki,we)):C=="keyword c"||C=="async"?z(V?bt:Se):C=="("?z(fe(")"),Oe,$e(")"),we,Le):C=="operator"||C=="spread"?z(V?bt:Se):C=="["?z(fe("]"),Re,we,Le):C=="{"?Vn(Ar,"}",null,Le):C=="quasi"?x(er,Le):C=="new"?z(A(V)):z()}function Oe(C){return C.match(/[;\}\)\],]/)?x():x(Se)}function He(C,M){return C==","?z(Oe):mt(C,M,!1)}function mt(C,M,V){var q=V==!1?He:mt,Le=V==!1?Se:bt;if(C=="=>")return z(Xe,V?Ke:Bn,Ue);if(C=="operator")return/\+\+|--/.test(M)||T&&M=="!"?z(q):T&&M=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(fe(">"),nt(ze,">"),we,q):M=="?"?z(Se,$e(":"),Le):z(Le);if(C=="quasi")return x(er,q);if(C!=";"){if(C=="(")return Vn(bt,")","call",q);if(C==".")return z(It,q);if(C=="[")return z(fe("]"),Oe,$e("]"),we,q);if(T&&M=="as")return k.marked="keyword",z(ze,q);if(C=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),z(Le)}}function er(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(er):z(Oe,ur)}function ur(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(er)}function Bn(C){return Ze(k.stream,k.state),x(C=="{"?Pe:Se)}function Ke(C){return Ze(k.stream,k.state),x(C=="{"?Pe:bt)}function A(C){return function(M){return M=="."?z(C?F:Y):M=="variable"&&T?z(Zn,C?mt:He):x(C?bt:Se)}}function Y(C,M){if(M=="target")return k.marked="keyword",z(He)}function F(C,M){if(M=="target")return k.marked="keyword",z(mt)}function _e(C){return C==":"?z(we,Pe):x(He,$e(";"),we)}function It(C){if(C=="variable")return k.marked="property",z()}function Ar(C,M){if(C=="async")return k.marked="property",z(Ar);if(C=="variable"||k.style=="keyword"){if(k.marked="property",M=="get"||M=="set")return z(Ql);var V;return T&&k.state.fatArrowAt==k.stream.start&&(V=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+V[0].length),z(tr)}else{if(C=="number"||C=="string")return k.marked=v?"property":k.style+" property",z(tr);if(C=="jsonld-keyword")return z(tr);if(T&&Me(M))return k.marked="keyword",z(Ar);if(C=="[")return z(Se,Xr,$e("]"),tr);if(C=="spread")return z(bt,tr);if(M=="*")return k.marked="keyword",z(Ar);if(C==":")return x(tr)}}function Ql(C){return C!="variable"?x(tr):(k.marked="property",z(dr))}function tr(C){if(C==":")return z(bt);if(C=="(")return x(dr)}function nt(C,M,V){function q(Le,Ae){if(V?V.indexOf(Le)>-1:Le==","){var oe=k.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),z(function(Ot,or){return Ot==M||or==M?x():x(C)},q)}return Le==M||Ae==M?z():V&&V.indexOf(";")>-1?x(C):z($e(M))}return function(Le,Ae){return Le==M||Ae==M?z():x(C,q)}}function Vn(C,M,V){for(var q=3;q<arguments.length;q++)k.cc.push(arguments[q]);return z(fe(M,V),nt(C,M),we)}function jt(C){return C=="}"?z():x(Pe,jt)}function Xr(C,M){if(T){if(C==":")return z(ze);if(M=="?")return z(Xr)}}function Ce(C,M){if(T&&(C==":"||M=="in"))return z(ze)}function Si(C){if(T&&C==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?z(Se,Nt,ze):z(ze)}function Nt(C,M){if(M=="is")return k.marked="keyword",z()}function ze(C,M){if(M=="keyof"||M=="typeof"||M=="infer"||M=="readonly")return k.marked="keyword",z(M=="typeof"?bt:ze);if(C=="variable"||M=="void")return k.marked="type",z(rr);if(M=="|"||M=="&")return z(ze);if(C=="string"||C=="number"||C=="atom")return z(rr);if(C=="[")return z(fe("]"),nt(ze,"]",","),we,rr);if(C=="{")return z(fe("}"),Mi,we,rr);if(C=="(")return z(nt(Ti,")"),ct,rr);if(C=="<")return z(nt(ze,">"),ze);if(C=="quasi")return x(Pr,rr)}function ct(C){if(C=="=>")return z(ze)}function Mi(C){return C.match(/[\}\)\]]/)?z():C==","||C==";"?z(Mi):x(St,Mi)}function St(C,M){if(C=="variable"||k.style=="keyword")return k.marked="property",z(St);if(M=="?"||C=="number"||C=="string")return z(St);if(C==":")return z(ze);if(C=="[")return z($e("variable"),Ce,$e("]"),St);if(C=="(")return x(nr,St);if(!C.match(/[;\}\)\],]/))return z()}function Pr(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(Pr):z(ze,$t)}function $t(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(Pr)}function Ti(C,M){return C=="variable"&&k.stream.match(/^\s*[?:]/,!1)||M=="?"?z(Ti):C==":"?z(ze):C=="spread"?z(Ti):x(ze)}function rr(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr);if(M=="|"||C=="."||M=="&")return z(ze);if(C=="[")return z(ze,$e("]"),rr);if(M=="extends"||M=="implements")return k.marked="keyword",z(ze);if(M=="?")return z(ze,$e(":"),ze)}function Zn(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr)}function yn(){return x(ze,ja)}function ja(C,M){if(M=="=")return z(ze)}function Lo(C,M){return M=="enum"?(k.marked="keyword",z(Hr)):x(Ht,Xr,Dr,Mo)}function Ht(C,M){if(T&&Me(M))return k.marked="keyword",z(Ht);if(C=="variable")return X(M),z();if(C=="spread")return z(Ht);if(C=="[")return Vn(So,"]");if(C=="{")return Vn(Ga,"}")}function Ga(C,M){return C=="variable"&&!k.stream.match(/^\s*:/,!1)?(X(M),z(Dr)):(C=="variable"&&(k.marked="property"),C=="spread"?z(Ht):C=="}"?x():C=="["?z(Se,$e("]"),$e(":"),Ga):z($e(":"),Ht,Dr))}function So(){return x(Ht,Dr)}function Dr(C,M){if(M=="=")return z(bt)}function Mo(C){if(C==",")return z(Lo)}function qa(C,M){if(C=="keyword b"&&M=="else")return z(fe("form","else"),Pe,we)}function Ka(C,M){if(M=="await")return z(Ka);if(C=="(")return z(fe(")"),To,we)}function To(C){return C=="var"?z(Lo,Cn):C=="variable"?z(Cn):x(Cn)}function Cn(C,M){return C==")"?z():C==";"?z(Cn):M=="in"||M=="of"?(k.marked="keyword",z(Se,Cn)):x(Se,Cn)}function dr(C,M){if(M=="*")return k.marked="keyword",z(dr);if(C=="variable")return X(M),z(dr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Si,Pe,Ue);if(T&&M=="<")return z(fe(">"),nt(yn,">"),we,dr)}function nr(C,M){if(M=="*")return k.marked="keyword",z(nr);if(C=="variable")return X(M),z(nr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Si,Ue);if(T&&M=="<")return z(fe(">"),nt(yn,">"),we,nr)}function Ya(C,M){if(C=="keyword"||C=="variable")return k.marked="type",z(Ya);if(M=="<")return z(fe(">"),nt(yn,">"),we)}function Jr(C,M){return M=="@"&&z(Se,Jr),C=="spread"?z(Jr):T&&Me(M)?(k.marked="keyword",z(Jr)):T&&C=="this"?z(Xr,Dr):x(Ht,Xr,Dr)}function ki(C,M){return C=="variable"?$i(C,M):mr(C,M)}function $i(C,M){if(C=="variable")return X(M),z(mr)}function mr(C,M){if(M=="<")return z(fe(">"),nt(yn,">"),we,mr);if(M=="extends"||M=="implements"||T&&C==",")return M=="implements"&&(k.marked="keyword"),z(T?ze:Se,mr);if(C=="{")return z(fe("}"),yr,we)}function yr(C,M){if(C=="async"||C=="variable"&&(M=="static"||M=="get"||M=="set"||T&&Me(M))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",z(yr);if(C=="variable"||k.style=="keyword")return k.marked="property",z(ir,yr);if(C=="number"||C=="string")return z(ir,yr);if(C=="[")return z(Se,Xr,$e("]"),ir,yr);if(M=="*")return k.marked="keyword",z(yr);if(T&&C=="(")return x(nr,yr);if(C==";"||C==",")return z(yr);if(C=="}")return z();if(M=="@")return z(Se,yr)}function ir(C,M){if(M=="!"||M=="?")return z(ir);if(C==":")return z(ze,Dr);if(M=="=")return z(bt);var V=k.state.lexical.prev,q=V&&V.info=="interface";return x(q?nr:dr)}function ko(C,M){return M=="*"?(k.marked="keyword",z(Gt,$e(";"))):M=="default"?(k.marked="keyword",z(Se,$e(";"))):C=="{"?z(nt($o,"}"),Gt,$e(";")):x(Pe)}function $o(C,M){if(M=="as")return k.marked="keyword",z($e("variable"));if(C=="variable")return x(bt,$o)}function it(C){return C=="string"?z():C=="("?x(Se):C=="."?x(He):x(he,Nr,Gt)}function he(C,M){return C=="{"?Vn(he,"}"):(C=="variable"&&X(M),M=="*"&&(k.marked="keyword"),z(Oo))}function Nr(C){if(C==",")return z(he,Nr)}function Oo(C,M){if(M=="as")return k.marked="keyword",z(he)}function Gt(C,M){if(M=="from")return k.marked="keyword",z(Se)}function Re(C){return C=="]"?z():x(nt(bt,"]"))}function Hr(){return x(fe("form"),Ht,$e("{"),fe("}"),nt(Wn,"}"),we,we)}function Wn(){return x(Ht,Dr)}function Eo(C,M){return C.lastType=="operator"||C.lastType==","||E.test(M.charAt(0))||/[,.]/.test(M.charAt(0))}function U(C,M,V){return M.tokenize==re&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(M.lastType)||M.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(V||0)))}return{startState:function(C){var M={tokenize:re,lastType:"sof",cc:[],lexical:new de((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Be(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(M.globalVars=l.globalVars),M},token:function(C,M){if(C.sol()&&(M.lexical.hasOwnProperty("align")||(M.lexical.align=!1),M.indented=C.indentation(),Ze(C,M)),M.tokenize!=xe&&C.eatSpace())return null;var V=M.tokenize(C,M);return ee=="comment"?V:(M.lastType=ee=="operator"&&(te=="++"||te=="--")?"incdec":ee,Z(M,V,ee,te,C))},indent:function(C,M){if(C.tokenize==xe||C.tokenize==qe)return i.Pass;if(C.tokenize!=re)return 0;var V=M&&M.charAt(0),q=C.lexical,Le;if(!/^\s*else\b/.test(M))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var oe=C.cc[Ae];if(oe==we)q=q.prev;else if(oe!=qa&&oe!=Ue)break}for(;(q.type=="stat"||q.type=="form")&&(V=="}"||(Le=C.cc[C.cc.length-1])&&(Le==He||Le==mt)&&!/^[,\.=+\-*:?[\(]/.test(M));)q=q.prev;u&&q.type==")"&&q.prev.type=="stat"&&(q=q.prev);var Ot=q.type,or=V==Ot;return Ot=="vardef"?q.indented+(C.lastType=="operator"||C.lastType==","?q.info.length+1:0):Ot=="form"&&V=="{"?q.indented:Ot=="form"?q.indented+d:Ot=="stat"?q.indented+(Eo(C,M)?u||d:0):q.info=="switch"&&!or&&l.doubleIndentSwitch!=!1?q.indented+(/^(?:case|default)\b/.test(M)?d:2*d):q.align?q.column+(or?0:1):q.indented+(or?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:v,jsonMode:m,expressionAllowed:U,skipExpression:function(C){Z(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var $L=kL.exports,Xh={exports:{}},Jh;function OL(){return Jh||(Jh=1,function(n,e){(function(i){i(vn)})(function(i){i.defineMode("css",function(de,ie){var Z=ie.inline;ie.propertyKeywords||(ie=i.resolveMode("text/css"));var k=de.indentUnit,x=ie.tokenHooks,z=ie.documentTypes||{},B=ie.mediaTypes||{},X=ie.mediaFeatures||{},be=ie.mediaValueKeywords||{},Me=ie.propertyKeywords||{},Be=ie.nonStandardPropertyKeywords||{},lt=ie.fontProperties||{},Qt=ie.counterDescriptors||{},Xe=ie.colorKeywords||{},Je=ie.valueKeywords||{},Ue=ie.allowNested,fe=ie.lineComment,we=ie.supportsAtComponent===!0,$e=de.highlightNonStandardPropertyKeywords!==!1,Pe,Ee;function Se(A,Y){return Pe=Y,A}function bt(A,Y){var F=A.next();if(x[F]){var _e=x[F](A,Y);if(_e!==!1)return _e}if(F=="@")return A.eatWhile(/[\w\\\-]/),Se("def",A.current());if(F=="="||(F=="~"||F=="|")&&A.eat("="))return Se(null,"compare");if(F=='"'||F=="'")return Y.tokenize=br(F),Y.tokenize(A,Y);if(F=="#")return A.eatWhile(/[\w\\\-]/),Se("atom","hash");if(F=="!")return A.match(/^\s*\w*/),Se("keyword","important");if(/\d/.test(F)||F=="."&&A.eat(/\d/))return A.eatWhile(/[\w.%]/),Se("number","unit");if(F==="-"){if(/[\d.]/.test(A.peek()))return A.eatWhile(/[\w.%]/),Se("number","unit");if(A.match(/^-[\w\\\-]*/))return A.eatWhile(/[\w\\\-]/),A.match(/^\s*:/,!1)?Se("variable-2","variable-definition"):Se("variable-2","variable");if(A.match(/^\w+-/))return Se("meta","meta")}else return/[,+>*\/]/.test(F)?Se(null,"select-op"):F=="."&&A.match(/^-?[_a-z][_a-z0-9-]*/i)?Se("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(F)?Se(null,F):A.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(A.current())&&(Y.tokenize=mn),Se("variable callee","variable")):/[\w\\\-]/.test(F)?(A.eatWhile(/[\w\\\-]/),Se("property","word")):Se(null,null)}function br(A){return function(Y,F){for(var _e=!1,It;(It=Y.next())!=null;){if(It==A&&!_e){A==")"&&Y.backUp(1);break}_e=!_e&&It=="\\"}return(It==A||!_e&&A!=")")&&(F.tokenize=null),Se("string","string")}}function mn(A,Y){return A.next(),A.match(/^\s*[\"\')]/,!1)?Y.tokenize=null:Y.tokenize=br(")"),Se(null,"(")}function Oe(A,Y,F){this.type=A,this.indent=Y,this.prev=F}function He(A,Y,F,_e){return A.context=new Oe(F,Y.indentation()+(_e===!1?0:k),A.context),F}function mt(A){return A.context.prev&&(A.context=A.context.prev),A.context.type}function er(A,Y,F){return Ke[F.context.type](A,Y,F)}function ur(A,Y,F,_e){for(var It=_e||1;It>0;It--)F.context=F.context.prev;return er(A,Y,F)}function Bn(A){var Y=A.current().toLowerCase();Je.hasOwnProperty(Y)?Ee="atom":Xe.hasOwnProperty(Y)?Ee="keyword":Ee="variable"}var Ke={};return Ke.top=function(A,Y,F){if(A=="{")return He(F,Y,"block");if(A=="}"&&F.context.prev)return mt(F);if(we&&/@component/i.test(A))return He(F,Y,"atComponentBlock");if(/^@(-moz-)?document$/i.test(A))return He(F,Y,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(A))return He(F,Y,"atBlock");if(/^@(font-face|counter-style)/i.test(A))return F.stateArg=A,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(A))return"keyframes";if(A&&A.charAt(0)=="@")return He(F,Y,"at");if(A=="hash")Ee="builtin";else if(A=="word")Ee="tag";else{if(A=="variable-definition")return"maybeprop";if(A=="interpolation")return He(F,Y,"interpolation");if(A==":")return"pseudo";if(Ue&&A=="(")return He(F,Y,"parens")}return F.context.type},Ke.block=function(A,Y,F){if(A=="word"){var _e=Y.current().toLowerCase();return Me.hasOwnProperty(_e)?(Ee="property","maybeprop"):Be.hasOwnProperty(_e)?(Ee=$e?"string-2":"property","maybeprop"):Ue?(Ee=Y.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ee+=" error","maybeprop")}else return A=="meta"?"block":!Ue&&(A=="hash"||A=="qualifier")?(Ee="error","block"):Ke.top(A,Y,F)},Ke.maybeprop=function(A,Y,F){return A==":"?He(F,Y,"prop"):er(A,Y,F)},Ke.prop=function(A,Y,F){if(A==";")return mt(F);if(A=="{"&&Ue)return He(F,Y,"propBlock");if(A=="}"||A=="{")return ur(A,Y,F);if(A=="(")return He(F,Y,"parens");if(A=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Y.current()))Ee+=" error";else if(A=="word")Bn(Y);else if(A=="interpolation")return He(F,Y,"interpolation");return"prop"},Ke.propBlock=function(A,Y,F){return A=="}"?mt(F):A=="word"?(Ee="property","maybeprop"):F.context.type},Ke.parens=function(A,Y,F){return A=="{"||A=="}"?ur(A,Y,F):A==")"?mt(F):A=="("?He(F,Y,"parens"):A=="interpolation"?He(F,Y,"interpolation"):(A=="word"&&Bn(Y),"parens")},Ke.pseudo=function(A,Y,F){return A=="meta"?"pseudo":A=="word"?(Ee="variable-3",F.context.type):er(A,Y,F)},Ke.documentTypes=function(A,Y,F){return A=="word"&&z.hasOwnProperty(Y.current())?(Ee="tag",F.context.type):Ke.atBlock(A,Y,F)},Ke.atBlock=function(A,Y,F){if(A=="(")return He(F,Y,"atBlock_parens");if(A=="}"||A==";")return ur(A,Y,F);if(A=="{")return mt(F)&&He(F,Y,Ue?"block":"top");if(A=="interpolation")return He(F,Y,"interpolation");if(A=="word"){var _e=Y.current().toLowerCase();_e=="only"||_e=="not"||_e=="and"||_e=="or"?Ee="keyword":B.hasOwnProperty(_e)?Ee="attribute":X.hasOwnProperty(_e)?Ee="property":be.hasOwnProperty(_e)?Ee="keyword":Me.hasOwnProperty(_e)?Ee="property":Be.hasOwnProperty(_e)?Ee=$e?"string-2":"property":Je.hasOwnProperty(_e)?Ee="atom":Xe.hasOwnProperty(_e)?Ee="keyword":Ee="error"}return F.context.type},Ke.atComponentBlock=function(A,Y,F){return A=="}"?ur(A,Y,F):A=="{"?mt(F)&&He(F,Y,Ue?"block":"top",!1):(A=="word"&&(Ee="error"),F.context.type)},Ke.atBlock_parens=function(A,Y,F){return A==")"?mt(F):A=="{"||A=="}"?ur(A,Y,F,2):Ke.atBlock(A,Y,F)},Ke.restricted_atBlock_before=function(A,Y,F){return A=="{"?He(F,Y,"restricted_atBlock"):A=="word"&&F.stateArg=="@counter-style"?(Ee="variable","restricted_atBlock_before"):er(A,Y,F)},Ke.restricted_atBlock=function(A,Y,F){return A=="}"?(F.stateArg=null,mt(F)):A=="word"?(F.stateArg=="@font-face"&&!lt.hasOwnProperty(Y.current().toLowerCase())||F.stateArg=="@counter-style"&&!Qt.hasOwnProperty(Y.current().toLowerCase())?Ee="error":Ee="property","maybeprop"):"restricted_atBlock"},Ke.keyframes=function(A,Y,F){return A=="word"?(Ee="variable","keyframes"):A=="{"?He(F,Y,"top"):er(A,Y,F)},Ke.at=function(A,Y,F){return A==";"?mt(F):A=="{"||A=="}"?ur(A,Y,F):(A=="word"?Ee="tag":A=="hash"&&(Ee="builtin"),"at")},Ke.interpolation=function(A,Y,F){return A=="}"?mt(F):A=="{"||A==";"?ur(A,Y,F):(A=="word"?Ee="variable":A!="variable"&&A!="("&&A!=")"&&(Ee="error"),"interpolation")},{startState:function(A){return{tokenize:null,state:Z?"block":"top",stateArg:null,context:new Oe(Z?"block":"top",A||0,null)}},token:function(A,Y){if(!Y.tokenize&&A.eatSpace())return null;var F=(Y.tokenize||bt)(A,Y);return F&&typeof F=="object"&&(Pe=F[1],F=F[0]),Ee=F,Pe!="comment"&&(Y.state=Ke[Y.state](Pe,A,Y)),Ee},indent:function(A,Y){var F=A.context,_e=Y&&Y.charAt(0),It=F.indent;return F.type=="prop"&&(_e=="}"||_e==")")&&(F=F.prev),F.prev&&(_e=="}"&&(F.type=="block"||F.type=="top"||F.type=="interpolation"||F.type=="restricted_atBlock")?(F=F.prev,It=F.indent):(_e==")"&&(F.type=="parens"||F.type=="atBlock_parens")||_e=="{"&&(F.type=="at"||F.type=="atBlock"))&&(It=Math.max(0,F.indent-k))),It},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:fe,fold:"brace"}});function o(de){for(var ie={},Z=0;Z<de.length;++Z)ie[de[Z].toLowerCase()]=!0;return ie}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],y=o(m),T=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],S=o(T),$=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],E=o($),N=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],G=o(N),ee=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],te=o(ee),se=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],re=o(se),ue=["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"],xe=o(ue),qe=["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"],Ge=o(qe),Ze=l.concat(u).concat(m).concat(T).concat($).concat(N).concat(ue).concat(qe);i.registerHelper("hintWords","css",Ze);function We(de,ie){for(var Z=!1,k;(k=de.next())!=null;){if(Z&&k=="/"){ie.tokenize=null;break}Z=k=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},":":function(de){return de.match(/^\s*\{/,!1)?[null,null]:!1},$:function(de){return de.match(/^[\w-]+/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(de){return de.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},"@":function(de){return de.eat("{")?[null,"interpolation"]:de.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(de.eatWhile(/[\w\\\-]/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:y,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,supportsAtComponent:!0,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css",helperType:"gss"})})}()),Xh.exports}(function(n,e){(function(i){i(vn,TL,$L,OL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(S,$,E){var N=S.current(),G=N.search($);return G>-1?S.backUp(N.length-G):N.match(/<\/?$/)&&(S.backUp(N.length),S.match($,!1)||S.match(N)),E}var d={};function u(S){var $=d[S];return $||(d[S]=new RegExp("\\s+"+S+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(S,$){var E=S.match(u($));return E?/^\s*(.*?)\s*$/.exec(E[2])[1]:""}function m(S,$){return new RegExp(($?"^":"")+"</s*"+S+"s*>","i")}function y(S,$){for(var E in S)for(var N=$[E]||($[E]=[]),G=S[E],ee=G.length-1;ee>=0;ee--)N.unshift(G[ee])}function T(S,$){for(var E=0;E<S.length;E++){var N=S[E];if(!N[0]||N[1].test(v($,N[0])))return N[2]}}i.defineMode("htmlmixed",function(S,$){var E=i.getMode(S,{name:"xml",htmlMode:!0,multilineTagIndentFactor:$.multilineTagIndentFactor,multilineTagIndentPastTag:$.multilineTagIndentPastTag,allowMissingTagName:$.allowMissingTagName}),N={},G=$&&$.tags,ee=$&&$.scriptTypes;if(y(o,N),G&&y(G,N),ee)for(var te=ee.length-1;te>=0;te--)N.script.unshift(["type",ee[te].matches,ee[te].mode]);function se(re,ue){var xe=E.token(re,ue.htmlState),qe=/\btag\b/.test(xe),Ge;if(qe&&!/[<>\s\/]/.test(re.current())&&(Ge=ue.htmlState.tagName&&ue.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(Ge))ue.inTag=Ge+" ";else if(ue.inTag&&qe&&/>$/.test(re.current())){var Ze=/^([\S]+) (.*)/.exec(ue.inTag);ue.inTag=null;var We=re.current()==">"&&T(N[Ze[1]],Ze[2]),de=i.getMode(S,We),ie=m(Ze[1],!0),Z=m(Ze[1],!1);ue.token=function(k,x){return k.match(ie,!1)?(x.token=se,x.localState=x.localMode=null,null):l(k,Z,x.localMode.token(k,x.localState))},ue.localMode=de,ue.localState=i.startState(de,E.indent(ue.htmlState,"",""))}else ue.inTag&&(ue.inTag+=re.current(),re.eol()&&(ue.inTag+=" "));return xe}return{startState:function(){var re=i.startState(E);return{token:se,inTag:null,localMode:null,localState:null,htmlState:re}},copyState:function(re){var ue;return re.localState&&(ue=i.copyState(re.localMode,re.localState)),{token:re.token,inTag:re.inTag,localMode:re.localMode,localState:ue,htmlState:i.copyState(E,re.htmlState)}},token:function(re,ue){return ue.token(re,ue)},indent:function(re,ue,xe){return!re.localMode||/^\s*<\//.test(ue)?E.indent(re.htmlState,ue,xe):re.localMode.indent?re.localMode.indent(re.localState,ue,xe):i.Pass},innerMode:function(re){return{state:re.localState||re.htmlState,mode:re.localMode||E}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(vn)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(S){return parseFloat(S).toString()===S}function v(S){return function($,E){for(var N=!1,G;(G=$.next())!=null&&!(G==S&&!N);)N=!N&&G=="\\";return N||(E.tokenize=T),"string"}}function m(S){return function($,E){var N="operator";return S=="+"?N+=" positive":S=="-"?N+=" negative":S=="|"?$.eat(/\|/):S=="&"?$.eat(/\&/):S=="^"&&(N+=" boost"),E.tokenize=T,N}}function y(S){return function($,E){for(var N=S;(S=$.peek())&&S.match(o)!=null;)N+=$.next();return E.tokenize=T,d.test(N)?"operator":u(N)?"number":$.peek()==":"?"field":"string"}}function T(S,$){var E=S.next();return E=='"'?$.tokenize=v(E):l.test(E)?$.tokenize=m(E):o.test(E)&&($.tokenize=y(E)),$.tokenize!=T?$.tokenize(S,$):null}return{startState:function(){return{tokenize:T}},token:function(S,$){return S.eatSpace()?null:$.tokenize(S,$)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(vn)})(function(i){i.defineOption("placeholder","",function(y,T,S){var $=S&&S!=i.Init;if(T&&!$)y.on("blur",u),y.on("change",v),y.on("swapDoc",v),i.on(y.getInputField(),"compositionupdate",y.state.placeholderCompose=function(){d(y)}),v(y);else if(!T&&$){y.off("blur",u),y.off("change",v),y.off("swapDoc",v),i.off(y.getInputField(),"compositionupdate",y.state.placeholderCompose),o(y);var E=y.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}T&&!y.hasFocus()&&u(y)});function o(y){y.state.placeholder&&(y.state.placeholder.parentNode.removeChild(y.state.placeholder),y.state.placeholder=null)}function l(y){o(y);var T=y.state.placeholder=document.createElement("pre");T.style.cssText="height: 0; overflow: visible",T.style.direction=y.getOption("direction"),T.className="CodeMirror-placeholder CodeMirror-line-like";var S=y.getOption("placeholder");typeof S=="string"&&(S=document.createTextNode(S)),T.appendChild(S),y.display.lineSpace.insertBefore(T,y.display.lineSpace.firstChild)}function d(y){setTimeout(function(){var T=!1;if(y.lineCount()==1){var S=y.getInputField();T=S.nodeName=="TEXTAREA"?!y.getLine(0).length:!/[^\u200b]/.test(S.querySelector(".CodeMirror-line").textContent)}T?l(y):o(y)},20)}function u(y){m(y)&&l(y)}function v(y){var T=y.getWrapperElement(),S=m(y);T.className=T.className.replace(" CodeMirror-empty","")+(S?" CodeMirror-empty":""),S?l(y):o(y)}function m(y){return y.lineCount()===1&&y.getLine(0)===""}})})();var EL=Object.defineProperty,_L=Object.getOwnPropertyDescriptor,yo=(n,e,i,o)=>{for(var l=o>1?void 0:o?_L(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&EL(e,i,l),l};ga.defineMode("nunjucks",(n,e)=>ga.overlayMode(ga.getMode(n,e.backdrop||"text/html"),ga.getMode(n,"jinja2")));const Vp=ne("input-code"),IL=["json","nunjucks","javascript","solr"],Qh={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends Ut{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(e){this.value=e.getValue(),this.dispatchChange()}updated(e){var o,l,d;super.updated(e);const i=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),i!==((o=this.editor)==null?void 0:o.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),e.get("mode")&&((d=this.editor)==null||d.setOption("mode",Qh[this.mode])),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()})}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){var i;(i=this.editor)==null||i.setValue(e)}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");e&&(this.editor=ga.fromTextArea(e,{mode:Qh[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:o=>{const l=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(l)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.editor)==null||e.off("change",this.changeHandler)}renderInput(){return P`
|
|
3083
|
+
`;(function(n,e){(function(i){i(vn)})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,y){return o.indent(u.base,v,y)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,y;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(y=l.blankLine(u.overlay)),y==null?v:d&&v!=null?v+" "+y:y}}}})})();(function(n,e){(function(i){i(vn)})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function y(m,T){var S=m.peek();if(T.incomment)return m.skipTo("#}")?(m.eatWhile(/\#|}/),T.incomment=!1):m.skipToEnd(),"comment";if(T.intag){if(T.operator){if(T.operator=!1,m.match(u))return"atom";if(m.match(v))return"number"}if(T.sign){if(T.sign=!1,m.match(u))return"atom";if(m.match(v))return"number"}if(T.instring)return S==T.instring&&(T.instring=!1),m.next(),"string";if(S=="'"||S=='"')return T.instring=S,m.next(),"string";if(m.match(T.intag+"}")||m.eat("-")&&m.match(T.intag+"}"))return T.intag=!1,"tag";if(m.match(l))return T.operator=!0,"operator";if(m.match(d))T.sign=!0;else if(m.eat(" ")||m.sol()){if(m.match(o))return"keyword";if(m.match(u))return"atom";if(m.match(v))return"number";m.sol()&&m.next()}else m.next();return"variable"}else if(m.eat("{")){if(m.eat("#"))return T.incomment=!0,m.skipTo("#}")?(m.eatWhile(/\#|}/),T.incomment=!1):m.skipToEnd(),"comment";if(S=m.eat(/\{|%/))return T.intag=S,S=="{"&&(T.intag="}"),m.eat("-"),"tag"}m.next()}return{startState:function(){return{tokenize:y}},token:function(m,T){return T.tokenize(m,T)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var ML={exports:{}};(function(n,e){(function(i){i(vn)})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,y={},m=u.htmlMode?o:l;for(var T in m)y[T]=m[T];for(var T in u)y[T]=u[T];var S,$;function E(x,z){function B(Te){return z.tokenize=Te,Te(x,z)}var X=x.next();if(X=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?B(ee("atom","]]>")):null:x.match("--")?B(ee("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),B(te(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),z.tokenize=ee("meta","?>"),"meta"):(S=x.eat("/")?"closeTag":"openTag",z.tokenize=N,"tag bracket");if(X=="&"){var be;return x.eat("#")?x.eat("x")?be=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):be=x.eatWhile(/[\d]/)&&x.eat(";"):be=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),be?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function N(x,z){var B=x.next();if(B==">"||B=="/"&&x.eat(">"))return z.tokenize=E,S=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return S="equals",null;if(B=="<"){z.tokenize=E,z.state=xe,z.tagName=z.tagStart=null;var X=z.tokenize(x,z);return X?X+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=G(B),z.stringStartCol=x.column(),z.tokenize(x,z)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function G(x){var z=function(B,X){for(;!B.eol();)if(B.next()==x){X.tokenize=N;break}return"string"};return z.isInAttribute=!0,z}function ee(x,z){return function(B,X){for(;!B.eol();){if(B.match(z)){X.tokenize=E;break}B.next()}return x}}function te(x){return function(z,B){for(var X;(X=z.next())!=null;){if(X=="<")return B.tokenize=te(x+1),B.tokenize(z,B);if(X==">")if(x==1){B.tokenize=E;break}else return B.tokenize=te(x-1),B.tokenize(z,B)}return"meta"}}function se(x,z,B){this.prev=x.context,this.tagName=z||"",this.indent=x.indented,this.startOfLine=B,(y.doNotIndent.hasOwnProperty(z)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function re(x){x.context&&(x.context=x.context.prev)}function ue(x,z){for(var B;;){if(!x.context||(B=x.context.tagName,!y.contextGrabbers.hasOwnProperty(B)||!y.contextGrabbers[B].hasOwnProperty(z)))return;re(x)}}function xe(x,z,B){return x=="openTag"?(B.tagStart=z.column(),qe):x=="closeTag"?Ge:xe}function qe(x,z,B){return x=="word"?(B.tagName=z.current(),$="tag",de):y.allowMissingTagName&&x=="endTag"?($="tag bracket",de(x,z,B)):($="error",qe)}function Ge(x,z,B){if(x=="word"){var X=z.current();return B.context&&B.context.tagName!=X&&y.implicitlyClosed.hasOwnProperty(B.context.tagName)&&re(B),B.context&&B.context.tagName==X||y.matchClosing===!1?($="tag",Ze):($="tag error",We)}else return y.allowMissingTagName&&x=="endTag"?($="tag bracket",Ze(x,z,B)):($="error",We)}function Ze(x,z,B){return x!="endTag"?($="error",Ze):(re(B),xe)}function We(x,z,B){return $="error",Ze(x,z,B)}function de(x,z,B){if(x=="word")return $="attribute",ie;if(x=="endTag"||x=="selfcloseTag"){var X=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,x=="selfcloseTag"||y.autoSelfClosers.hasOwnProperty(X)?ue(B,X):(ue(B,X),B.context=new se(B,X,be==B.indented)),xe}return $="error",de}function ie(x,z,B){return x=="equals"?Z:(y.allowMissing||($="error"),de(x,z,B))}function Z(x,z,B){return x=="string"?k:x=="word"&&y.allowUnquoted?($="string",de):($="error",de(x,z,B))}function k(x,z,B){return x=="string"?k:de(x,z,B)}return{startState:function(x){var z={tokenize:E,state:xe,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(z.baseIndent=x),z},token:function(x,z){if(!z.tagName&&x.sol()&&(z.indented=x.indentation()),x.eatSpace())return null;S=null;var B=z.tokenize(x,z);return(B||S)&&B!="comment"&&($=null,z.state=z.state(S||B,x,z),$&&(B=$=="error"?B+" error":$)),B},indent:function(x,z,B){var X=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(X&&X.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=E)return B?B.match(/^(\s*)/)[0].length:0;if(x.tagName)return y.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(y.multilineTagIndentFactor||1);if(y.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var be=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(be&&be[1])for(;X;)if(X.tagName==be[2]){X=X.prev;break}else if(y.implicitlyClosed.hasOwnProperty(X.tagName))X=X.prev;else break;else if(be)for(;X;){var Te=y.contextGrabbers[X.tagName];if(Te&&Te.hasOwnProperty(be[2]))X=X.prev;else break}for(;X&&X.prev&&!X.startOfLine;)X=X.prev;return X?X.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:y.htmlMode?"html":"xml",helperType:y.htmlMode?"html":"xml",skipAttribute:function(x){x.state==Z&&(x.state=de)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var z=[],B=x.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var TL=ML.exports,kL={exports:{}};(function(n,e){(function(i){i(vn)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,y=l.json||v,m=l.trackScope!==!1,T=l.typescript,S=l.wordCharacters||/[\w$\xa1-\uffff]/,$=function(){function C(Ot){return{type:Ot,style:"keyword"}}var M=C("keyword a"),V=C("keyword b"),q=C("keyword c"),Le=C("keyword d"),Ae=C("operator"),oe={type:"atom",style:"atom"};return{if:C("if"),while:M,with:M,else:V,do:V,try:V,finally:V,return:Le,break:Le,continue:Le,new:C("new"),delete:q,void:q,throw:q,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:C("this"),class:C("class"),super:C("atom"),yield:q,export:C("export"),import:C("import"),extends:q,await:q}}(),E=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(C){for(var M=!1,V,q=!1;(V=C.next())!=null;){if(!M){if(V=="/"&&!q)return;V=="["?q=!0:q&&V=="]"&&(q=!1)}M=!M&&V=="\\"}}var ee,te;function se(C,M,V){return ee=C,te=V,M}function re(C,M){var V=C.next();if(V=='"'||V=="'")return M.tokenize=ue(V),M.tokenize(C,M);if(V=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return se("number","number");if(V=="."&&C.match(".."))return se("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return se(V);if(V=="="&&C.eat(">"))return se("=>","operator");if(V=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return se("number","number");if(/\d/.test(V))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),se("number","number");if(V=="/")return C.eat("*")?(M.tokenize=xe,xe(C,M)):C.eat("/")?(C.skipToEnd(),se("comment","comment")):U(C,M,1)?(G(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),se("regexp","string-2")):(C.eat("="),se("operator","operator",C.current()));if(V=="`")return M.tokenize=qe,qe(C,M);if(V=="#"&&C.peek()=="!")return C.skipToEnd(),se("meta","meta");if(V=="#"&&C.eatWhile(S))return se("variable","property");if(V=="<"&&C.match("!--")||V=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),se("comment","comment");if(E.test(V))return(V!=">"||!M.lexical||M.lexical.type!=">")&&(C.eat("=")?(V=="!"||V=="=")&&C.eat("="):/[<>*+\-|&?]/.test(V)&&(C.eat(V),V==">"&&C.eat(V))),V=="?"&&C.eat(".")?se("."):se("operator","operator",C.current());if(S.test(V)){C.eatWhile(S);var q=C.current();if(M.lastType!="."){if($.propertyIsEnumerable(q)){var Le=$[q];return se(Le.type,Le.style,q)}if(q=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return se("async","keyword",q)}return se("variable","variable",q)}}function ue(C){return function(M,V){var q=!1,Le;if(v&&M.peek()=="@"&&M.match(N))return V.tokenize=re,se("jsonld-keyword","meta");for(;(Le=M.next())!=null&&!(Le==C&&!q);)q=!q&&Le=="\\";return q||(V.tokenize=re),se("string","string")}}function xe(C,M){for(var V=!1,q;q=C.next();){if(q=="/"&&V){M.tokenize=re;break}V=q=="*"}return se("comment","comment")}function qe(C,M){for(var V=!1,q;(q=C.next())!=null;){if(!V&&(q=="`"||q=="$"&&C.eat("{"))){M.tokenize=re;break}V=!V&&q=="\\"}return se("quasi","string-2",C.current())}var Ge="([{}])";function Ze(C,M){M.fatArrowAt&&(M.fatArrowAt=null);var V=C.string.indexOf("=>",C.start);if(!(V<0)){if(T){var q=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,V));q&&(V=q.index)}for(var Le=0,Ae=!1,oe=V-1;oe>=0;--oe){var Ot=C.string.charAt(oe),or=Ge.indexOf(Ot);if(or>=0&&or<3){if(!Le){++oe;break}if(--Le==0){Ot=="("&&(Ae=!0);break}}else if(or>=3&&or<6)++Le;else if(S.test(Ot))Ae=!0;else if(/["'\/`]/.test(Ot))for(;;--oe){if(oe==0)return;var Oi=C.string.charAt(oe-1);if(Oi==Ot&&C.string.charAt(oe-2)!="\\"){oe--;break}}else if(Ae&&!Le){++oe;break}}Ae&&!Le&&(M.fatArrowAt=oe)}}var We={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function de(C,M,V,q,Le,Ae){this.indented=C,this.column=M,this.type=V,this.prev=Le,this.info=Ae,q!=null&&(this.align=q)}function ie(C,M){if(!m)return!1;for(var V=C.localVars;V;V=V.next)if(V.name==M)return!0;for(var q=C.context;q;q=q.prev)for(var V=q.vars;V;V=V.next)if(V.name==M)return!0}function Z(C,M,V,q,Le){var Ae=C.cc;for(k.state=C,k.stream=Le,k.marked=null,k.cc=Ae,k.style=M,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var oe=Ae.length?Ae.pop():y?Se:Pe;if(oe(V,q)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return k.marked?k.marked:V=="variable"&&ie(C,q)?"variable-2":M}}}var k={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)k.cc.push(arguments[C])}function z(){return x.apply(null,arguments),!0}function B(C,M){for(var V=M;V;V=V.next)if(V.name==C)return!0;return!1}function X(C){var M=k.state;if(k.marked="def",!!m){if(M.context){if(M.lexical.info=="var"&&M.context&&M.context.block){var V=be(C,M.context);if(V!=null){M.context=V;return}}else if(!B(C,M.localVars)){M.localVars=new lt(C,M.localVars);return}}l.globalVars&&!B(C,M.globalVars)&&(M.globalVars=new lt(C,M.globalVars))}}function be(C,M){if(M)if(M.block){var V=be(C,M.prev);return V?V==M.prev?M:new Be(V,M.vars,!0):null}else return B(C,M.vars)?M:new Be(M.prev,new lt(C,M.vars),!1);else return null}function Te(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Be(C,M,V){this.prev=C,this.vars=M,this.block=V}function lt(C,M){this.name=C,this.next=M}var Qt=new lt("this",new lt("arguments",null));function Xe(){k.state.context=new Be(k.state.context,k.state.localVars,!1),k.state.localVars=Qt}function Je(){k.state.context=new Be(k.state.context,k.state.localVars,!0),k.state.localVars=null}function Ue(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}Ue.lex=!0;function fe(C,M){var V=function(){var q=k.state,Le=q.indented;if(q.lexical.type=="stat")Le=q.lexical.indented;else for(var Ae=q.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)Le=Ae.indented;q.lexical=new de(Le,k.stream.column(),C,null,q.lexical,M)};return V.lex=!0,V}function we(){var C=k.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}we.lex=!0;function $e(C){function M(V){return V==C?z():C==";"||V=="}"||V==")"||V=="]"?x():z(M)}return M}function Pe(C,M){return C=="var"?z(fe("vardef",M),Lo,$e(";"),we):C=="keyword a"?z(fe("form"),br,Pe,we):C=="keyword b"?z(fe("form"),Pe,we):C=="keyword d"?k.stream.match(/^\s*$/,!1)?z():z(fe("stat"),Oe,$e(";"),we):C=="debugger"?z($e(";")):C=="{"?z(fe("}"),Je,jt,we,Ue):C==";"?z():C=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==we&&k.state.cc.pop()(),z(fe("form"),br,Pe,we,qa)):C=="function"?z(dr):C=="for"?z(fe("form"),Je,Ka,Pe,Ue,we):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form",C=="class"?C:M),$i,we)):C=="variable"?T&&M=="declare"?(k.marked="keyword",z(Pe)):T&&(M=="module"||M=="enum"||M=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",M=="enum"?z(Hr):M=="type"?z(Ya,$e("operator"),ze,$e(";")):z(fe("form"),Ht,$e("{"),fe("}"),jt,we,we)):T&&M=="namespace"?(k.marked="keyword",z(fe("form"),Se,Pe,we)):T&&M=="abstract"?(k.marked="keyword",z(Pe)):z(fe("stat"),_e):C=="switch"?z(fe("form"),br,$e("{"),fe("}","switch"),Je,jt,we,we,Ue):C=="case"?z(Se,$e(":")):C=="default"?z($e(":")):C=="catch"?z(fe("form"),Xe,Ee,Pe,we,Ue):C=="export"?z(fe("stat"),ko,we):C=="import"?z(fe("stat"),it,we):C=="async"?z(Pe):M=="@"?z(Se,Pe):x(fe("stat"),Se,$e(";"),we)}function Ee(C){if(C=="(")return z(Jr,$e(")"))}function Se(C,M){return mn(C,M,!1)}function bt(C,M){return mn(C,M,!0)}function br(C){return C!="("?x():z(fe(")"),Oe,$e(")"),we)}function mn(C,M,V){if(k.state.fatArrowAt==k.stream.start){var q=V?Ke:Bn;if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,$e("=>"),q,Ue);if(C=="variable")return x(Xe,Ht,$e("=>"),q,Ue)}var Le=V?mt:He;return We.hasOwnProperty(C)?z(Le):C=="function"?z(dr,Le):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form"),ki,we)):C=="keyword c"||C=="async"?z(V?bt:Se):C=="("?z(fe(")"),Oe,$e(")"),we,Le):C=="operator"||C=="spread"?z(V?bt:Se):C=="["?z(fe("]"),Re,we,Le):C=="{"?Vn(Ar,"}",null,Le):C=="quasi"?x(er,Le):C=="new"?z(A(V)):z()}function Oe(C){return C.match(/[;\}\)\],]/)?x():x(Se)}function He(C,M){return C==","?z(Oe):mt(C,M,!1)}function mt(C,M,V){var q=V==!1?He:mt,Le=V==!1?Se:bt;if(C=="=>")return z(Xe,V?Ke:Bn,Ue);if(C=="operator")return/\+\+|--/.test(M)||T&&M=="!"?z(q):T&&M=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(fe(">"),nt(ze,">"),we,q):M=="?"?z(Se,$e(":"),Le):z(Le);if(C=="quasi")return x(er,q);if(C!=";"){if(C=="(")return Vn(bt,")","call",q);if(C==".")return z(It,q);if(C=="[")return z(fe("]"),Oe,$e("]"),we,q);if(T&&M=="as")return k.marked="keyword",z(ze,q);if(C=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),z(Le)}}function er(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(er):z(Oe,ur)}function ur(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(er)}function Bn(C){return Ze(k.stream,k.state),x(C=="{"?Pe:Se)}function Ke(C){return Ze(k.stream,k.state),x(C=="{"?Pe:bt)}function A(C){return function(M){return M=="."?z(C?F:Y):M=="variable"&&T?z(Zn,C?mt:He):x(C?bt:Se)}}function Y(C,M){if(M=="target")return k.marked="keyword",z(He)}function F(C,M){if(M=="target")return k.marked="keyword",z(mt)}function _e(C){return C==":"?z(we,Pe):x(He,$e(";"),we)}function It(C){if(C=="variable")return k.marked="property",z()}function Ar(C,M){if(C=="async")return k.marked="property",z(Ar);if(C=="variable"||k.style=="keyword"){if(k.marked="property",M=="get"||M=="set")return z(Ql);var V;return T&&k.state.fatArrowAt==k.stream.start&&(V=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+V[0].length),z(tr)}else{if(C=="number"||C=="string")return k.marked=v?"property":k.style+" property",z(tr);if(C=="jsonld-keyword")return z(tr);if(T&&Te(M))return k.marked="keyword",z(Ar);if(C=="[")return z(Se,Xr,$e("]"),tr);if(C=="spread")return z(bt,tr);if(M=="*")return k.marked="keyword",z(Ar);if(C==":")return x(tr)}}function Ql(C){return C!="variable"?x(tr):(k.marked="property",z(dr))}function tr(C){if(C==":")return z(bt);if(C=="(")return x(dr)}function nt(C,M,V){function q(Le,Ae){if(V?V.indexOf(Le)>-1:Le==","){var oe=k.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),z(function(Ot,or){return Ot==M||or==M?x():x(C)},q)}return Le==M||Ae==M?z():V&&V.indexOf(";")>-1?x(C):z($e(M))}return function(Le,Ae){return Le==M||Ae==M?z():x(C,q)}}function Vn(C,M,V){for(var q=3;q<arguments.length;q++)k.cc.push(arguments[q]);return z(fe(M,V),nt(C,M),we)}function jt(C){return C=="}"?z():x(Pe,jt)}function Xr(C,M){if(T){if(C==":")return z(ze);if(M=="?")return z(Xr)}}function Ce(C,M){if(T&&(C==":"||M=="in"))return z(ze)}function Si(C){if(T&&C==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?z(Se,Nt,ze):z(ze)}function Nt(C,M){if(M=="is")return k.marked="keyword",z()}function ze(C,M){if(M=="keyof"||M=="typeof"||M=="infer"||M=="readonly")return k.marked="keyword",z(M=="typeof"?bt:ze);if(C=="variable"||M=="void")return k.marked="type",z(rr);if(M=="|"||M=="&")return z(ze);if(C=="string"||C=="number"||C=="atom")return z(rr);if(C=="[")return z(fe("]"),nt(ze,"]",","),we,rr);if(C=="{")return z(fe("}"),Mi,we,rr);if(C=="(")return z(nt(Ti,")"),ct,rr);if(C=="<")return z(nt(ze,">"),ze);if(C=="quasi")return x(Pr,rr)}function ct(C){if(C=="=>")return z(ze)}function Mi(C){return C.match(/[\}\)\]]/)?z():C==","||C==";"?z(Mi):x(St,Mi)}function St(C,M){if(C=="variable"||k.style=="keyword")return k.marked="property",z(St);if(M=="?"||C=="number"||C=="string")return z(St);if(C==":")return z(ze);if(C=="[")return z($e("variable"),Ce,$e("]"),St);if(C=="(")return x(nr,St);if(!C.match(/[;\}\)\],]/))return z()}function Pr(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(Pr):z(ze,$t)}function $t(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(Pr)}function Ti(C,M){return C=="variable"&&k.stream.match(/^\s*[?:]/,!1)||M=="?"?z(Ti):C==":"?z(ze):C=="spread"?z(Ti):x(ze)}function rr(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr);if(M=="|"||C=="."||M=="&")return z(ze);if(C=="[")return z(ze,$e("]"),rr);if(M=="extends"||M=="implements")return k.marked="keyword",z(ze);if(M=="?")return z(ze,$e(":"),ze)}function Zn(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr)}function yn(){return x(ze,ja)}function ja(C,M){if(M=="=")return z(ze)}function Lo(C,M){return M=="enum"?(k.marked="keyword",z(Hr)):x(Ht,Xr,Dr,Mo)}function Ht(C,M){if(T&&Te(M))return k.marked="keyword",z(Ht);if(C=="variable")return X(M),z();if(C=="spread")return z(Ht);if(C=="[")return Vn(So,"]");if(C=="{")return Vn(Ga,"}")}function Ga(C,M){return C=="variable"&&!k.stream.match(/^\s*:/,!1)?(X(M),z(Dr)):(C=="variable"&&(k.marked="property"),C=="spread"?z(Ht):C=="}"?x():C=="["?z(Se,$e("]"),$e(":"),Ga):z($e(":"),Ht,Dr))}function So(){return x(Ht,Dr)}function Dr(C,M){if(M=="=")return z(bt)}function Mo(C){if(C==",")return z(Lo)}function qa(C,M){if(C=="keyword b"&&M=="else")return z(fe("form","else"),Pe,we)}function Ka(C,M){if(M=="await")return z(Ka);if(C=="(")return z(fe(")"),To,we)}function To(C){return C=="var"?z(Lo,Cn):C=="variable"?z(Cn):x(Cn)}function Cn(C,M){return C==")"?z():C==";"?z(Cn):M=="in"||M=="of"?(k.marked="keyword",z(Se,Cn)):x(Se,Cn)}function dr(C,M){if(M=="*")return k.marked="keyword",z(dr);if(C=="variable")return X(M),z(dr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Si,Pe,Ue);if(T&&M=="<")return z(fe(">"),nt(yn,">"),we,dr)}function nr(C,M){if(M=="*")return k.marked="keyword",z(nr);if(C=="variable")return X(M),z(nr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Si,Ue);if(T&&M=="<")return z(fe(">"),nt(yn,">"),we,nr)}function Ya(C,M){if(C=="keyword"||C=="variable")return k.marked="type",z(Ya);if(M=="<")return z(fe(">"),nt(yn,">"),we)}function Jr(C,M){return M=="@"&&z(Se,Jr),C=="spread"?z(Jr):T&&Te(M)?(k.marked="keyword",z(Jr)):T&&C=="this"?z(Xr,Dr):x(Ht,Xr,Dr)}function ki(C,M){return C=="variable"?$i(C,M):mr(C,M)}function $i(C,M){if(C=="variable")return X(M),z(mr)}function mr(C,M){if(M=="<")return z(fe(">"),nt(yn,">"),we,mr);if(M=="extends"||M=="implements"||T&&C==",")return M=="implements"&&(k.marked="keyword"),z(T?ze:Se,mr);if(C=="{")return z(fe("}"),yr,we)}function yr(C,M){if(C=="async"||C=="variable"&&(M=="static"||M=="get"||M=="set"||T&&Te(M))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",z(yr);if(C=="variable"||k.style=="keyword")return k.marked="property",z(ir,yr);if(C=="number"||C=="string")return z(ir,yr);if(C=="[")return z(Se,Xr,$e("]"),ir,yr);if(M=="*")return k.marked="keyword",z(yr);if(T&&C=="(")return x(nr,yr);if(C==";"||C==",")return z(yr);if(C=="}")return z();if(M=="@")return z(Se,yr)}function ir(C,M){if(M=="!"||M=="?")return z(ir);if(C==":")return z(ze,Dr);if(M=="=")return z(bt);var V=k.state.lexical.prev,q=V&&V.info=="interface";return x(q?nr:dr)}function ko(C,M){return M=="*"?(k.marked="keyword",z(Gt,$e(";"))):M=="default"?(k.marked="keyword",z(Se,$e(";"))):C=="{"?z(nt($o,"}"),Gt,$e(";")):x(Pe)}function $o(C,M){if(M=="as")return k.marked="keyword",z($e("variable"));if(C=="variable")return x(bt,$o)}function it(C){return C=="string"?z():C=="("?x(Se):C=="."?x(He):x(he,Nr,Gt)}function he(C,M){return C=="{"?Vn(he,"}"):(C=="variable"&&X(M),M=="*"&&(k.marked="keyword"),z(Oo))}function Nr(C){if(C==",")return z(he,Nr)}function Oo(C,M){if(M=="as")return k.marked="keyword",z(he)}function Gt(C,M){if(M=="from")return k.marked="keyword",z(Se)}function Re(C){return C=="]"?z():x(nt(bt,"]"))}function Hr(){return x(fe("form"),Ht,$e("{"),fe("}"),nt(Wn,"}"),we,we)}function Wn(){return x(Ht,Dr)}function Eo(C,M){return C.lastType=="operator"||C.lastType==","||E.test(M.charAt(0))||/[,.]/.test(M.charAt(0))}function U(C,M,V){return M.tokenize==re&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(M.lastType)||M.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(V||0)))}return{startState:function(C){var M={tokenize:re,lastType:"sof",cc:[],lexical:new de((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Be(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(M.globalVars=l.globalVars),M},token:function(C,M){if(C.sol()&&(M.lexical.hasOwnProperty("align")||(M.lexical.align=!1),M.indented=C.indentation(),Ze(C,M)),M.tokenize!=xe&&C.eatSpace())return null;var V=M.tokenize(C,M);return ee=="comment"?V:(M.lastType=ee=="operator"&&(te=="++"||te=="--")?"incdec":ee,Z(M,V,ee,te,C))},indent:function(C,M){if(C.tokenize==xe||C.tokenize==qe)return i.Pass;if(C.tokenize!=re)return 0;var V=M&&M.charAt(0),q=C.lexical,Le;if(!/^\s*else\b/.test(M))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var oe=C.cc[Ae];if(oe==we)q=q.prev;else if(oe!=qa&&oe!=Ue)break}for(;(q.type=="stat"||q.type=="form")&&(V=="}"||(Le=C.cc[C.cc.length-1])&&(Le==He||Le==mt)&&!/^[,\.=+\-*:?[\(]/.test(M));)q=q.prev;u&&q.type==")"&&q.prev.type=="stat"&&(q=q.prev);var Ot=q.type,or=V==Ot;return Ot=="vardef"?q.indented+(C.lastType=="operator"||C.lastType==","?q.info.length+1:0):Ot=="form"&&V=="{"?q.indented:Ot=="form"?q.indented+d:Ot=="stat"?q.indented+(Eo(C,M)?u||d:0):q.info=="switch"&&!or&&l.doubleIndentSwitch!=!1?q.indented+(/^(?:case|default)\b/.test(M)?d:2*d):q.align?q.column+(or?0:1):q.indented+(or?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:y?null:"/*",blockCommentEnd:y?null:"*/",blockCommentContinue:y?null:" * ",lineComment:y?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:y?"json":"javascript",jsonldMode:v,jsonMode:y,expressionAllowed:U,skipExpression:function(C){Z(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var $L=kL.exports,Qh={exports:{}},e2;function OL(){return e2||(e2=1,function(n,e){(function(i){i(vn)})(function(i){i.defineMode("css",function(de,ie){var Z=ie.inline;ie.propertyKeywords||(ie=i.resolveMode("text/css"));var k=de.indentUnit,x=ie.tokenHooks,z=ie.documentTypes||{},B=ie.mediaTypes||{},X=ie.mediaFeatures||{},be=ie.mediaValueKeywords||{},Te=ie.propertyKeywords||{},Be=ie.nonStandardPropertyKeywords||{},lt=ie.fontProperties||{},Qt=ie.counterDescriptors||{},Xe=ie.colorKeywords||{},Je=ie.valueKeywords||{},Ue=ie.allowNested,fe=ie.lineComment,we=ie.supportsAtComponent===!0,$e=de.highlightNonStandardPropertyKeywords!==!1,Pe,Ee;function Se(A,Y){return Pe=Y,A}function bt(A,Y){var F=A.next();if(x[F]){var _e=x[F](A,Y);if(_e!==!1)return _e}if(F=="@")return A.eatWhile(/[\w\\\-]/),Se("def",A.current());if(F=="="||(F=="~"||F=="|")&&A.eat("="))return Se(null,"compare");if(F=='"'||F=="'")return Y.tokenize=br(F),Y.tokenize(A,Y);if(F=="#")return A.eatWhile(/[\w\\\-]/),Se("atom","hash");if(F=="!")return A.match(/^\s*\w*/),Se("keyword","important");if(/\d/.test(F)||F=="."&&A.eat(/\d/))return A.eatWhile(/[\w.%]/),Se("number","unit");if(F==="-"){if(/[\d.]/.test(A.peek()))return A.eatWhile(/[\w.%]/),Se("number","unit");if(A.match(/^-[\w\\\-]*/))return A.eatWhile(/[\w\\\-]/),A.match(/^\s*:/,!1)?Se("variable-2","variable-definition"):Se("variable-2","variable");if(A.match(/^\w+-/))return Se("meta","meta")}else return/[,+>*\/]/.test(F)?Se(null,"select-op"):F=="."&&A.match(/^-?[_a-z][_a-z0-9-]*/i)?Se("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(F)?Se(null,F):A.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(A.current())&&(Y.tokenize=mn),Se("variable callee","variable")):/[\w\\\-]/.test(F)?(A.eatWhile(/[\w\\\-]/),Se("property","word")):Se(null,null)}function br(A){return function(Y,F){for(var _e=!1,It;(It=Y.next())!=null;){if(It==A&&!_e){A==")"&&Y.backUp(1);break}_e=!_e&&It=="\\"}return(It==A||!_e&&A!=")")&&(F.tokenize=null),Se("string","string")}}function mn(A,Y){return A.next(),A.match(/^\s*[\"\')]/,!1)?Y.tokenize=null:Y.tokenize=br(")"),Se(null,"(")}function Oe(A,Y,F){this.type=A,this.indent=Y,this.prev=F}function He(A,Y,F,_e){return A.context=new Oe(F,Y.indentation()+(_e===!1?0:k),A.context),F}function mt(A){return A.context.prev&&(A.context=A.context.prev),A.context.type}function er(A,Y,F){return Ke[F.context.type](A,Y,F)}function ur(A,Y,F,_e){for(var It=_e||1;It>0;It--)F.context=F.context.prev;return er(A,Y,F)}function Bn(A){var Y=A.current().toLowerCase();Je.hasOwnProperty(Y)?Ee="atom":Xe.hasOwnProperty(Y)?Ee="keyword":Ee="variable"}var Ke={};return Ke.top=function(A,Y,F){if(A=="{")return He(F,Y,"block");if(A=="}"&&F.context.prev)return mt(F);if(we&&/@component/i.test(A))return He(F,Y,"atComponentBlock");if(/^@(-moz-)?document$/i.test(A))return He(F,Y,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(A))return He(F,Y,"atBlock");if(/^@(font-face|counter-style)/i.test(A))return F.stateArg=A,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(A))return"keyframes";if(A&&A.charAt(0)=="@")return He(F,Y,"at");if(A=="hash")Ee="builtin";else if(A=="word")Ee="tag";else{if(A=="variable-definition")return"maybeprop";if(A=="interpolation")return He(F,Y,"interpolation");if(A==":")return"pseudo";if(Ue&&A=="(")return He(F,Y,"parens")}return F.context.type},Ke.block=function(A,Y,F){if(A=="word"){var _e=Y.current().toLowerCase();return Te.hasOwnProperty(_e)?(Ee="property","maybeprop"):Be.hasOwnProperty(_e)?(Ee=$e?"string-2":"property","maybeprop"):Ue?(Ee=Y.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ee+=" error","maybeprop")}else return A=="meta"?"block":!Ue&&(A=="hash"||A=="qualifier")?(Ee="error","block"):Ke.top(A,Y,F)},Ke.maybeprop=function(A,Y,F){return A==":"?He(F,Y,"prop"):er(A,Y,F)},Ke.prop=function(A,Y,F){if(A==";")return mt(F);if(A=="{"&&Ue)return He(F,Y,"propBlock");if(A=="}"||A=="{")return ur(A,Y,F);if(A=="(")return He(F,Y,"parens");if(A=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Y.current()))Ee+=" error";else if(A=="word")Bn(Y);else if(A=="interpolation")return He(F,Y,"interpolation");return"prop"},Ke.propBlock=function(A,Y,F){return A=="}"?mt(F):A=="word"?(Ee="property","maybeprop"):F.context.type},Ke.parens=function(A,Y,F){return A=="{"||A=="}"?ur(A,Y,F):A==")"?mt(F):A=="("?He(F,Y,"parens"):A=="interpolation"?He(F,Y,"interpolation"):(A=="word"&&Bn(Y),"parens")},Ke.pseudo=function(A,Y,F){return A=="meta"?"pseudo":A=="word"?(Ee="variable-3",F.context.type):er(A,Y,F)},Ke.documentTypes=function(A,Y,F){return A=="word"&&z.hasOwnProperty(Y.current())?(Ee="tag",F.context.type):Ke.atBlock(A,Y,F)},Ke.atBlock=function(A,Y,F){if(A=="(")return He(F,Y,"atBlock_parens");if(A=="}"||A==";")return ur(A,Y,F);if(A=="{")return mt(F)&&He(F,Y,Ue?"block":"top");if(A=="interpolation")return He(F,Y,"interpolation");if(A=="word"){var _e=Y.current().toLowerCase();_e=="only"||_e=="not"||_e=="and"||_e=="or"?Ee="keyword":B.hasOwnProperty(_e)?Ee="attribute":X.hasOwnProperty(_e)?Ee="property":be.hasOwnProperty(_e)?Ee="keyword":Te.hasOwnProperty(_e)?Ee="property":Be.hasOwnProperty(_e)?Ee=$e?"string-2":"property":Je.hasOwnProperty(_e)?Ee="atom":Xe.hasOwnProperty(_e)?Ee="keyword":Ee="error"}return F.context.type},Ke.atComponentBlock=function(A,Y,F){return A=="}"?ur(A,Y,F):A=="{"?mt(F)&&He(F,Y,Ue?"block":"top",!1):(A=="word"&&(Ee="error"),F.context.type)},Ke.atBlock_parens=function(A,Y,F){return A==")"?mt(F):A=="{"||A=="}"?ur(A,Y,F,2):Ke.atBlock(A,Y,F)},Ke.restricted_atBlock_before=function(A,Y,F){return A=="{"?He(F,Y,"restricted_atBlock"):A=="word"&&F.stateArg=="@counter-style"?(Ee="variable","restricted_atBlock_before"):er(A,Y,F)},Ke.restricted_atBlock=function(A,Y,F){return A=="}"?(F.stateArg=null,mt(F)):A=="word"?(F.stateArg=="@font-face"&&!lt.hasOwnProperty(Y.current().toLowerCase())||F.stateArg=="@counter-style"&&!Qt.hasOwnProperty(Y.current().toLowerCase())?Ee="error":Ee="property","maybeprop"):"restricted_atBlock"},Ke.keyframes=function(A,Y,F){return A=="word"?(Ee="variable","keyframes"):A=="{"?He(F,Y,"top"):er(A,Y,F)},Ke.at=function(A,Y,F){return A==";"?mt(F):A=="{"||A=="}"?ur(A,Y,F):(A=="word"?Ee="tag":A=="hash"&&(Ee="builtin"),"at")},Ke.interpolation=function(A,Y,F){return A=="}"?mt(F):A=="{"||A==";"?ur(A,Y,F):(A=="word"?Ee="variable":A!="variable"&&A!="("&&A!=")"&&(Ee="error"),"interpolation")},{startState:function(A){return{tokenize:null,state:Z?"block":"top",stateArg:null,context:new Oe(Z?"block":"top",A||0,null)}},token:function(A,Y){if(!Y.tokenize&&A.eatSpace())return null;var F=(Y.tokenize||bt)(A,Y);return F&&typeof F=="object"&&(Pe=F[1],F=F[0]),Ee=F,Pe!="comment"&&(Y.state=Ke[Y.state](Pe,A,Y)),Ee},indent:function(A,Y){var F=A.context,_e=Y&&Y.charAt(0),It=F.indent;return F.type=="prop"&&(_e=="}"||_e==")")&&(F=F.prev),F.prev&&(_e=="}"&&(F.type=="block"||F.type=="top"||F.type=="interpolation"||F.type=="restricted_atBlock")?(F=F.prev,It=F.indent):(_e==")"&&(F.type=="parens"||F.type=="atBlock_parens")||_e=="{"&&(F.type=="at"||F.type=="atBlock"))&&(It=Math.max(0,F.indent-k))),It},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:fe,fold:"brace"}});function o(de){for(var ie={},Z=0;Z<de.length;++Z)ie[de[Z].toLowerCase()]=!0;return ie}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),y=["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"],m=o(y),T=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],S=o(T),$=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],E=o($),N=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],G=o(N),ee=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],te=o(ee),se=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],re=o(se),ue=["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"],xe=o(ue),qe=["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"],Ge=o(qe),Ze=l.concat(u).concat(y).concat(T).concat($).concat(N).concat(ue).concat(qe);i.registerHelper("hintWords","css",Ze);function We(de,ie){for(var Z=!1,k;(k=de.next())!=null;){if(Z&&k=="/"){ie.tokenize=null;break}Z=k=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:m,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},":":function(de){return de.match(/^\s*\{/,!1)?[null,null]:!1},$:function(de){return de.match(/^[\w-]+/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(de){return de.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},"@":function(de){return de.eat("{")?[null,"interpolation"]:de.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(de.eatWhile(/[\w\\\-]/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:m,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,supportsAtComponent:!0,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css",helperType:"gss"})})}()),Qh.exports}(function(n,e){(function(i){i(vn,TL,$L,OL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(S,$,E){var N=S.current(),G=N.search($);return G>-1?S.backUp(N.length-G):N.match(/<\/?$/)&&(S.backUp(N.length),S.match($,!1)||S.match(N)),E}var d={};function u(S){var $=d[S];return $||(d[S]=new RegExp("\\s+"+S+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(S,$){var E=S.match(u($));return E?/^\s*(.*?)\s*$/.exec(E[2])[1]:""}function y(S,$){return new RegExp(($?"^":"")+"</s*"+S+"s*>","i")}function m(S,$){for(var E in S)for(var N=$[E]||($[E]=[]),G=S[E],ee=G.length-1;ee>=0;ee--)N.unshift(G[ee])}function T(S,$){for(var E=0;E<S.length;E++){var N=S[E];if(!N[0]||N[1].test(v($,N[0])))return N[2]}}i.defineMode("htmlmixed",function(S,$){var E=i.getMode(S,{name:"xml",htmlMode:!0,multilineTagIndentFactor:$.multilineTagIndentFactor,multilineTagIndentPastTag:$.multilineTagIndentPastTag,allowMissingTagName:$.allowMissingTagName}),N={},G=$&&$.tags,ee=$&&$.scriptTypes;if(m(o,N),G&&m(G,N),ee)for(var te=ee.length-1;te>=0;te--)N.script.unshift(["type",ee[te].matches,ee[te].mode]);function se(re,ue){var xe=E.token(re,ue.htmlState),qe=/\btag\b/.test(xe),Ge;if(qe&&!/[<>\s\/]/.test(re.current())&&(Ge=ue.htmlState.tagName&&ue.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(Ge))ue.inTag=Ge+" ";else if(ue.inTag&&qe&&/>$/.test(re.current())){var Ze=/^([\S]+) (.*)/.exec(ue.inTag);ue.inTag=null;var We=re.current()==">"&&T(N[Ze[1]],Ze[2]),de=i.getMode(S,We),ie=y(Ze[1],!0),Z=y(Ze[1],!1);ue.token=function(k,x){return k.match(ie,!1)?(x.token=se,x.localState=x.localMode=null,null):l(k,Z,x.localMode.token(k,x.localState))},ue.localMode=de,ue.localState=i.startState(de,E.indent(ue.htmlState,"",""))}else ue.inTag&&(ue.inTag+=re.current(),re.eol()&&(ue.inTag+=" "));return xe}return{startState:function(){var re=i.startState(E);return{token:se,inTag:null,localMode:null,localState:null,htmlState:re}},copyState:function(re){var ue;return re.localState&&(ue=i.copyState(re.localMode,re.localState)),{token:re.token,inTag:re.inTag,localMode:re.localMode,localState:ue,htmlState:i.copyState(E,re.htmlState)}},token:function(re,ue){return ue.token(re,ue)},indent:function(re,ue,xe){return!re.localMode||/^\s*<\//.test(ue)?E.indent(re.htmlState,ue,xe):re.localMode.indent?re.localMode.indent(re.localState,ue,xe):i.Pass},innerMode:function(re){return{state:re.localState||re.htmlState,mode:re.localMode||E}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(vn)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(S){return parseFloat(S).toString()===S}function v(S){return function($,E){for(var N=!1,G;(G=$.next())!=null&&!(G==S&&!N);)N=!N&&G=="\\";return N||(E.tokenize=T),"string"}}function y(S){return function($,E){var N="operator";return S=="+"?N+=" positive":S=="-"?N+=" negative":S=="|"?$.eat(/\|/):S=="&"?$.eat(/\&/):S=="^"&&(N+=" boost"),E.tokenize=T,N}}function m(S){return function($,E){for(var N=S;(S=$.peek())&&S.match(o)!=null;)N+=$.next();return E.tokenize=T,d.test(N)?"operator":u(N)?"number":$.peek()==":"?"field":"string"}}function T(S,$){var E=S.next();return E=='"'?$.tokenize=v(E):l.test(E)?$.tokenize=y(E):o.test(E)&&($.tokenize=m(E)),$.tokenize!=T?$.tokenize(S,$):null}return{startState:function(){return{tokenize:T}},token:function(S,$){return S.eatSpace()?null:$.tokenize(S,$)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(vn)})(function(i){i.defineOption("placeholder","",function(m,T,S){var $=S&&S!=i.Init;if(T&&!$)m.on("blur",u),m.on("change",v),m.on("swapDoc",v),i.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){d(m)}),v(m);else if(!T&&$){m.off("blur",u),m.off("change",v),m.off("swapDoc",v),i.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),o(m);var E=m.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}T&&!m.hasFocus()&&u(m)});function o(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function l(m){o(m);var T=m.state.placeholder=document.createElement("pre");T.style.cssText="height: 0; overflow: visible",T.style.direction=m.getOption("direction"),T.className="CodeMirror-placeholder CodeMirror-line-like";var S=m.getOption("placeholder");typeof S=="string"&&(S=document.createTextNode(S)),T.appendChild(S),m.display.lineSpace.insertBefore(T,m.display.lineSpace.firstChild)}function d(m){setTimeout(function(){var T=!1;if(m.lineCount()==1){var S=m.getInputField();T=S.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(S.querySelector(".CodeMirror-line").textContent)}T?l(m):o(m)},20)}function u(m){y(m)&&l(m)}function v(m){var T=m.getWrapperElement(),S=y(m);T.className=T.className.replace(" CodeMirror-empty","")+(S?" CodeMirror-empty":""),S?l(m):o(m)}function y(m){return m.lineCount()===1&&m.getLine(0)===""}})})();var EL=Object.defineProperty,_L=Object.getOwnPropertyDescriptor,yo=(n,e,i,o)=>{for(var l=o>1?void 0:o?_L(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&EL(e,i,l),l};ga.defineMode("nunjucks",(n,e)=>ga.overlayMode(ga.getMode(n,e.backdrop||"text/html"),ga.getMode(n,"jinja2")));const Zp=ne("input-code"),IL=["json","nunjucks","javascript","solr"],t2={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends Ut{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(e){this.value=e.getValue(),this.dispatchChange()}updated(e){var o,l,d;super.updated(e);const i=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),i!==((o=this.editor)==null?void 0:o.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),e.get("mode")&&((d=this.editor)==null||d.setOption("mode",t2[this.mode])),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()})}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){var i;(i=this.editor)==null||i.setValue(e)}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");e&&(this.editor=ga.fromTextArea(e,{mode:t2[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:o=>{const l=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(l)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.editor)==null||e.off("change",this.changeHandler)}renderInput(){return P`
|
|
3084
3084
|
<textarea class="editor" placeholder="${Ie(this.placeholder)}">
|
|
3085
3085
|
${this.value}</textarea
|
|
3086
3086
|
>
|
|
@@ -3149,7 +3149,7 @@ ${this.value}</textarea
|
|
|
3149
3149
|
.CodeMirror pre.CodeMirror-placeholder {
|
|
3150
3150
|
color: var(--brz-color-neutral-500);
|
|
3151
3151
|
}
|
|
3152
|
-
`,SL];yo([O()],exports.InputCode.prototype,"mode",2);yo([O({reflect:!0})],exports.InputCode.prototype,"size",2);yo([O({type:Number})],exports.InputCode.prototype,"height",2);yo([O({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);yo([pe()],exports.InputCode.prototype,"editor",2);exports.InputCode=yo([R(
|
|
3152
|
+
`,SL];yo([O()],exports.InputCode.prototype,"mode",2);yo([O({reflect:!0})],exports.InputCode.prototype,"size",2);yo([O({type:Number})],exports.InputCode.prototype,"height",2);yo([O({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);yo([pe()],exports.InputCode.prototype,"editor",2);exports.InputCode=yo([R(Zp)],exports.InputCode);var AL=Object.defineProperty,PL=Object.getOwnPropertyDescriptor,Pa=(n,e,i,o)=>{for(var l=o>1?void 0:o?PL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&AL(e,i,l),l};const Wp=ne("input-select");exports.InputSelect=class extends vt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),P`
|
|
3153
3153
|
<button
|
|
3154
3154
|
type="button"
|
|
3155
3155
|
class="wrapper"
|
|
@@ -3186,7 +3186,7 @@ ${this.value}</textarea
|
|
|
3186
3186
|
`}renderDropdownContent(){return P`
|
|
3187
3187
|
${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
|
|
3188
3188
|
${this.isDataDriven?this.renderOptionsData():P` <slot slot="options"></slot> `}
|
|
3189
|
-
`}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ma)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${
|
|
3189
|
+
`}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ma)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Sc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${Sc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...vt.styles,j`
|
|
3190
3190
|
input {
|
|
3191
3191
|
text-overflow: ellipsis;
|
|
3192
3192
|
}
|
|
@@ -3217,7 +3217,7 @@ ${this.value}</textarea
|
|
|
3217
3217
|
.placeholder {
|
|
3218
3218
|
color: var(--input-placeholder-font-color);
|
|
3219
3219
|
}
|
|
3220
|
-
`];Pa([O({type:String})],exports.InputSelect.prototype,"value",2);Pa([pe()],exports.InputSelect.prototype,"query",2);Pa([pe()],exports.InputSelect.prototype,"valueLabel",2);Pa([pe()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Pa([R(
|
|
3220
|
+
`];Pa([O({type:String})],exports.InputSelect.prototype,"value",2);Pa([pe()],exports.InputSelect.prototype,"query",2);Pa([pe()],exports.InputSelect.prototype,"valueLabel",2);Pa([pe()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Pa([R(Wp)],exports.InputSelect);var DL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,_r=(n,e,i,o)=>{for(var l=o>1?void 0:o?NL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&DL(e,i,l),l};const Up=ne("lozenge"),HL=["neutral","green","orange","red","cyan","purple","sapphire"],RL=["solid","subtle","border"],FL=["small","medium","large"];class jp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends me{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new jp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),P`
|
|
3221
3221
|
<brz-tooltip
|
|
3222
3222
|
content=${(e=this.defaultSlot[0])==null?void 0:e.textContent}
|
|
3223
3223
|
?disabled=${!this.isOverflowing}
|
|
@@ -3369,7 +3369,7 @@ ${this.value}</textarea
|
|
|
3369
3369
|
margin-right: var(--brz-spacing-2);
|
|
3370
3370
|
}
|
|
3371
3371
|
|
|
3372
|
-
${
|
|
3372
|
+
${rf(".close",j`
|
|
3373
3373
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
3374
3374
|
`)}
|
|
3375
3375
|
|
|
@@ -3387,7 +3387,7 @@ ${this.value}</textarea
|
|
|
3387
3387
|
color: var(--brz-color-neutral-550);
|
|
3388
3388
|
cursor: unset;
|
|
3389
3389
|
}
|
|
3390
|
-
`;_r([O({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);_r([O({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);_r([O({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);_r([O({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);_r([O({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);_r([O({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);_r([O({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);_r([
|
|
3390
|
+
`;_r([O({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);_r([O({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);_r([O({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);_r([O({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);_r([O({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);_r([O({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);_r([O({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);_r([Yc()],exports.Lozenge.prototype,"defaultSlot",2);_r([h7(".message")],exports.Lozenge.prototype,"message",2);_r([pe()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=_r([R(Up)],exports.Lozenge);var BL=Object.defineProperty,VL=Object.getOwnPropertyDescriptor,Da=(n,e,i,o)=>{for(var l=o>1?void 0:o?VL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&BL(e,i,l),l};const Gp=ne("input-multiselect");exports.InputMultiselect=class extends vt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(i=>i.id===Mr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===Mr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new y0({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===Mr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==Mr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===Mr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?P`<span class="truncation"
|
|
3391
3391
|
>+${this.value.length-this.truncateValuesAfter} more</span
|
|
3392
3392
|
>`:null}handleKeyDown(e){super.handleKeyDown(e),e.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),P`
|
|
3393
3393
|
<button
|
|
@@ -3498,10 +3498,10 @@ ${this.value}</textarea
|
|
|
3498
3498
|
brz-icon[icon='chevronDown'] {
|
|
3499
3499
|
color: var(--brz-color-neutral-750);
|
|
3500
3500
|
}
|
|
3501
|
-
`];Da([O({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Da([O({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Da([O({type:Array})],exports.InputMultiselect.prototype,"value",2);Da([pe()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Da([R(jp)],exports.InputMultiselect);class zi extends Error{}class ZL extends zi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class WL extends zi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class UL extends zi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class va extends zi{}class Gp extends zi{constructor(e){super(`Invalid unit ${e}`)}}class fr extends zi{}class On extends zi{constructor(){super("Zone is an abstract class")}}const le="numeric",Or="short",cr="long",sl={year:le,month:le,day:le},qp={year:le,month:Or,day:le},jL={year:le,month:Or,day:le,weekday:Or},Kp={year:le,month:cr,day:le},Yp={year:le,month:cr,day:le,weekday:cr},Xp={hour:le,minute:le},Jp={hour:le,minute:le,second:le},Qp={hour:le,minute:le,second:le,timeZoneName:Or},e5={hour:le,minute:le,second:le,timeZoneName:cr},t5={hour:le,minute:le,hourCycle:"h23"},r5={hour:le,minute:le,second:le,hourCycle:"h23"},n5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:Or},i5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:cr},o5={year:le,month:le,day:le,hour:le,minute:le},a5={year:le,month:le,day:le,hour:le,minute:le,second:le},s5={year:le,month:Or,day:le,hour:le,minute:le},l5={year:le,month:Or,day:le,hour:le,minute:le,second:le},GL={year:le,month:Or,day:le,weekday:Or,hour:le,minute:le},c5={year:le,month:cr,day:le,hour:le,minute:le,timeZoneName:Or},u5={year:le,month:cr,day:le,hour:le,minute:le,second:le,timeZoneName:Or},d5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,timeZoneName:cr},h5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,second:le,timeZoneName:cr};class Na{get type(){throw new On}get name(){throw new On}get ianaName(){return this.name}get isUniversal(){throw new On}offsetName(e,i){throw new On}formatOffset(e,i){throw new On}offset(e){throw new On}equals(e){throw new On}get isValid(){throw new On}}let cc=null;class Hl extends Na{static get instance(){return cc===null&&(cc=new Hl),cc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return p5(e,i,o)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Hs={};function qL(n){return Hs[n]||(Hs[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Hs[n]}const KL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function YL(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,m,y,T]=o;return[u,l,d,v,m,y,T]}function XL(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=KL[d];d==="era"?o[v]=u:De(v)||(o[v]=parseInt(u,10))}return o}let $s={};class ln extends Na{static create(e){return $s[e]||($s[e]=new ln(e)),$s[e]}static resetCache(){$s={},Hs={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ln.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return p5(e,i,o,this.name)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=qL(this.name);let[l,d,u,v,m,y,T]=o.formatToParts?XL(o,i):YL(o,i);v==="BC"&&(l=-Math.abs(l)+1);const $=Fl({year:l,month:d,day:u,hour:m===24?0:m,minute:y,second:T,millisecond:0});let E=+i;const N=E%1e3;return E-=N>=0?N:1e3+N,($-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let e2={};function JL(n,e={}){const i=JSON.stringify([n,e]);let o=e2[i];return o||(o=new Intl.ListFormat(n,e),e2[i]=o),o}let Nc={};function Hc(n,e={}){const i=JSON.stringify([n,e]);let o=Nc[i];return o||(o=new Intl.DateTimeFormat(n,e),Nc[i]=o),o}let Rc={};function QL(n,e={}){const i=JSON.stringify([n,e]);let o=Rc[i];return o||(o=new Intl.NumberFormat(n,e),Rc[i]=o),o}let Fc={};function eS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Fc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Fc[l]=d),d}let ba=null;function tS(){return ba||(ba=new Intl.DateTimeFormat().resolvedOptions().locale,ba)}function rS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Hc(n).resolvedOptions(),l=n}catch{const m=n.substring(0,i);o=Hc(m).resolvedOptions(),l=m}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function nS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function iS(n){const e=[];for(let i=1;i<=12;i++){const o=Te.utc(2009,i,1);e.push(n(o))}return e}function oS(n){const e=[];for(let i=1;i<=7;i++){const o=Te.utc(2016,11,13+i);e.push(n(o))}return e}function Os(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function aS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class sS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=QL(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):x0(e,3);return gt(i,this.padTo)}}}class lS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&ln.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Hc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class cS{constructor(e,i,o){this.opts={style:"long",...o},!i&&f5()&&(this.rtf=eS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):MS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class tt{static fromOpts(e){return tt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||pt.defaultLocale,u=d||(l?"en-US":tS()),v=i||pt.defaultNumberingSystem,m=o||pt.defaultOutputCalendar;return new tt(u,v,m,d)}static resetCache(){ba=null,Nc={},Rc={},Fc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return tt.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=rS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=nS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=aS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:tt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return Os(this,e,b5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=iS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return Os(this,e,C5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=oS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return Os(this,void 0,()=>w5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Os(this,e,x5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new sS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new lS(e,this.intl,i)}relFormatter(e={}){return new cS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return JL(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let uc=null;class Wt extends Na{static get utcInstance(){return uc===null&&(uc=new Wt(0)),uc}static instance(e){return e===0?Wt.utcInstance:new Wt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Wt(Bl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ca(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ca(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Ca(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class uS extends Na{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function An(n,e){if(De(n)||n===null)return e;if(n instanceof Na)return n;if(dS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Hl.instance:i==="utc"||i==="gmt"?Wt.utcInstance:Wt.parseSpecifier(i)||ln.create(n)}else return hi(n)?Wt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new uS(n)}let t2=()=>Date.now(),r2="system",n2=null,i2=null,o2=null,a2=60,s2;class pt{static get now(){return t2}static set now(e){t2=e}static set defaultZone(e){r2=e}static get defaultZone(){return An(r2,Hl.instance)}static get defaultLocale(){return n2}static set defaultLocale(e){n2=e}static get defaultNumberingSystem(){return i2}static set defaultNumberingSystem(e){i2=e}static get defaultOutputCalendar(){return o2}static set defaultOutputCalendar(e){o2=e}static get twoDigitCutoffYear(){return a2}static set twoDigitCutoffYear(e){a2=e%100}static get throwOnInvalid(){return s2}static set throwOnInvalid(e){s2=e}static resetCaches(){tt.resetCache(),ln.resetCache()}}function De(n){return typeof n=="undefined"}function hi(n){return typeof n=="number"}function Rl(n){return typeof n=="number"&&n%1===0}function dS(n){return typeof n=="string"}function hS(n){return Object.prototype.toString.call(n)==="[object Date]"}function f5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function fS(n){return Array.isArray(n)?n:[n]}function l2(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function pS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function co(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function an(n,e,i){return Rl(n)&&n>=e&&n<=i}function gS(n,e){return n-e*Math.floor(n/e)}function gt(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function _n(n){if(!(De(n)||n===null||n===""))return parseInt(n,10)}function ii(n){if(!(De(n)||n===null||n===""))return parseFloat(n)}function w0(n){if(!(De(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function x0(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Ha(n){return n%4===0&&(n%100!==0||n%400===0)}function ya(n){return Ha(n)?366:365}function ll(n,e){const i=gS(e-1,12)+1,o=n+(e-i)/12;return i===2?Ha(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Fl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function cl(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Bc(n){return n>99?n:n>pt.twoDigitCutoffYear?1900+n:2e3+n}function p5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(m=>m.type.toLowerCase()==="timezonename");return v?v.value:null}function Bl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function g5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new fr(`Invalid unit value ${n}`);return e}function ul(n,e){const i={};for(const o in n)if(co(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=g5(l)}return i}function Ca(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${gt(i,2)}:${gt(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${gt(i,2)}${gt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vl(n){return pS(n,["hour","minute","second","millisecond"])}const vS=["January","February","March","April","May","June","July","August","September","October","November","December"],v5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bS=["J","F","M","A","M","J","J","A","S","O","N","D"];function b5(n){switch(n){case"narrow":return[...bS];case"short":return[...v5];case"long":return[...vS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const m5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],y5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mS=["M","T","W","T","F","S","S"];function C5(n){switch(n){case"narrow":return[...mS];case"short":return[...y5];case"long":return[...m5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const w5=["AM","PM"],yS=["Before Christ","Anno Domini"],CS=["BC","AD"],wS=["B","A"];function x5(n){switch(n){case"narrow":return[...wS];case"short":return[...CS];case"long":return[...yS];default:return null}}function xS(n){return w5[n.hour<12?0:1]}function zS(n,e){return C5(e)[n.weekday-1]}function LS(n,e){return b5(e)[n.month-1]}function SS(n,e){return x5(e)[n.year<0?0:1]}function MS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const S=n==="days";switch(e){case 1:return S?"tomorrow":`next ${l[n][0]}`;case-1:return S?"yesterday":`last ${l[n][0]}`;case 0:return S?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),m=v===1,y=l[n],T=o?m?y[1]:y[2]||y[1]:m?l[n][0]:n;return u?`${v} ${T} ago`:`in ${v} ${T}`}function c2(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const TS={D:sl,DD:qp,DDD:Kp,DDDD:Yp,t:Xp,tt:Jp,ttt:Qp,tttt:e5,T:t5,TT:r5,TTT:n5,TTTT:i5,f:o5,ff:s5,fff:c5,ffff:d5,F:a5,FF:l5,FFF:u5,FFFF:h5};class Dt{static create(e,i={}){return new Dt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return TS[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return gt(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(E,N)=>this.loc.extract(e,E,N),u=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",v=()=>o?xS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),m=(E,N)=>o?LS(e,E):d(N?{month:E}:{month:E,day:"numeric"},"month"),y=(E,N)=>o?zS(e,E):d(N?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),T=E=>{const N=Dt.macroTokenToFormatOpts(E);return N?this.formatWithSystemDefault(e,N):E},S=E=>o?SS(e,E):d({era:E},"era"),$=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return y("short",!0);case"cccc":return y("long",!0);case"ccccc":return y("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return y("short",!1);case"EEEE":return y("long",!1);case"EEEEE":return y("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return m("short",!0);case"LLLL":return m("long",!0);case"LLLLL":return m("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return m("short",!1);case"MMMM":return m("long",!1);case"MMMMM":return m("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return T(E)}};return c2(Dt.parseFormat(i),$)}formatDurationFromString(e,i){const o=m=>{switch(m[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=m=>y=>{const T=o(y);return T?this.num(m.get(T),y.length):y},d=Dt.parseFormat(i),u=d.reduce((m,{literal:y,val:T})=>y?m:m.concat(T),[]),v=e.shiftTo(...u.map(o).filter(m=>m));return c2(d,l(v))}}class Tr{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const z5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Co(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function wo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,m]=d(e,l);return[{...i,...u},v||o,m]},[{},null,1]).slice(0,2)}function xo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function L5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=_n(e[i+l]);return[o,null,i+l]}}const S5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kS=`(?:${S5.source}?(?:\\[(${z5.source})\\])?)?`,z0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,M5=RegExp(`${z0.source}${kS}`),L0=RegExp(`(?:T${M5.source})?`),$S=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,OS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ES=/(\d{4})-?(\d{3})/,_S=L5("weekYear","weekNumber","weekDay"),IS=L5("year","ordinal"),AS=/(\d{4})-(\d\d)-(\d\d)/,T5=RegExp(`${z0.source} ?(?:${S5.source}|(${z5.source}))?`),PS=RegExp(`(?: ${T5.source})?`);function ro(n,e,i){const o=n[e];return De(o)?i:_n(o)}function DS(n,e){return[{year:ro(n,e),month:ro(n,e+1,1),day:ro(n,e+2,1)},null,e+3]}function zo(n,e){return[{hours:ro(n,e,0),minutes:ro(n,e+1,0),seconds:ro(n,e+2,0),milliseconds:w0(n[e+3])},null,e+4]}function Ra(n,e){const i=!n[e]&&!n[e+1],o=Bl(n[e+1],n[e+2]),l=i?null:Wt.instance(o);return[{},l,e+3]}function Fa(n,e){const i=n[e]?ln.create(n[e]):null;return[{},i,e+1]}const NS=RegExp(`^T?${z0.source}$`),HS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function RS(n){const[e,i,o,l,d,u,v,m,y]=n,T=e[0]==="-",S=m&&m[0]==="-",$=(E,N=!1)=>E!==void 0&&(N||E&&T)?-E:E;return[{years:$(ii(i)),months:$(ii(o)),weeks:$(ii(l)),days:$(ii(d)),hours:$(ii(u)),minutes:$(ii(v)),seconds:$(ii(m),m==="-0"),milliseconds:$(w0(y),S)}]}const FS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function S0(n,e,i,o,l,d,u){const v={year:e.length===2?Bc(_n(e)):_n(e),month:v5.indexOf(i)+1,day:_n(o),hour:_n(l),minute:_n(d)};return u&&(v.second=_n(u)),n&&(v.weekday=n.length>3?m5.indexOf(n)+1:y5.indexOf(n)+1),v}const BS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function VS(n){const[,e,i,o,l,d,u,v,m,y,T,S]=n,$=S0(e,l,o,i,d,u,v);let E;return m?E=FS[m]:y?E=0:E=Bl(T,S),[$,new Wt(E)]}function ZS(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const WS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,US=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function u2(n){const[,e,i,o,l,d,u,v]=n;return[S0(e,l,o,i,d,u,v),Wt.utcInstance]}function GS(n){const[,e,i,o,l,d,u,v]=n;return[S0(e,v,i,o,l,d,u),Wt.utcInstance]}const qS=Co($S,L0),KS=Co(OS,L0),YS=Co(ES,L0),XS=Co(M5),k5=wo(DS,zo,Ra,Fa),JS=wo(_S,zo,Ra,Fa),QS=wo(IS,zo,Ra,Fa),eM=wo(zo,Ra,Fa);function tM(n){return xo(n,[qS,k5],[KS,JS],[YS,QS],[XS,eM])}function rM(n){return xo(ZS(n),[BS,VS])}function nM(n){return xo(n,[WS,u2],[US,u2],[jS,GS])}function iM(n){return xo(n,[HS,RS])}const oM=wo(zo);function aM(n){return xo(n,[NS,oM])}const sM=Co(AS,PS),lM=Co(T5),cM=wo(zo,Ra,Fa);function uM(n){return xo(n,[sM,k5],[lM,cM])}const dM="Invalid Duration",$5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},hM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...$5},hr=146097/400,Xi=146097/4800,fM={years:{quarters:4,months:12,weeks:hr/7,days:hr,hours:hr*24,minutes:hr*24*60,seconds:hr*24*60*60,milliseconds:hr*24*60*60*1e3},quarters:{months:3,weeks:hr/28,days:hr/4,hours:hr*24/4,minutes:hr*24*60/4,seconds:hr*24*60*60/4,milliseconds:hr*24*60*60*1e3/4},months:{weeks:Xi/7,days:Xi,hours:Xi*24,minutes:Xi*24*60,seconds:Xi*24*60*60,milliseconds:Xi*24*60*60*1e3},...$5},si=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],O5=si.slice(0).reverse();function En(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new Ne(o)}function d2(n){return Math.trunc(n*1e3)/1e3}function E5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=d2(o[l]+v),e[i]=d2(e[i]-v*d)}function pM(n,e){O5.reduce((i,o)=>De(e[o])?i:(i&&E5(n,e,i,e,o),o),null)}function gM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class Ne{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?fM:hM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||tt.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return Ne.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new fr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ne({values:ul(e,Ne.normalizeUnit),loc:tt.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(hi(e))return Ne.fromMillis(e);if(Ne.isDuration(e))return e;if(typeof e=="object")return Ne.fromObject(e);throw new fr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=iM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=aM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Duration is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new UL(o);return new Ne({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Gp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Dt.create(this.loc,o).formatDurationFromString(this,e):dM}toHuman(e={}){const i=si.map(o=>{const l=this.values[o];return De(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=x0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of O5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e),o={};for(const l of si)(co(i.values,l)||co(this.values,l))&&(o[l]=i.get(l)+this.get(l));return En(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=g5(e(this.values[o],o));return En(this,{values:i},!0)}get(e){return this[Ne.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...ul(e,Ne.normalizeUnit)};return En(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return En(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(pM(this.matrix,e),En(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=gM(this.normalize().shiftToAll().toObject());return En(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Ne.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of si)if(e.indexOf(u)>=0){d=u;let v=0;for(const y in o)v+=this.matrix[y][u]*o[y],o[y]=0;hi(l[u])&&(v+=l[u]);const m=Math.trunc(v);i[u]=m,o[u]=(v*1e3-m*1e3)/1e3;for(const y in l)si.indexOf(y)>si.indexOf(u)&&E5(this.matrix,l,y,i,u)}else hi(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return En(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return En(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of si)if(!i(this.values[o],e.values[o]))return!1;return!0}}const Ji="Invalid Interval";function vM(n,e){return!n||!n.isValid?st.invalid("missing or invalid start"):!e||!e.isValid?st.invalid("missing or invalid end"):e<n?st.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class st{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Interval is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new WL(o);return new st({invalid:o})}static fromDateTimes(e,i){const o=ha(e),l=ha(i),d=vM(o,l);return d==null?new st({start:o,end:l}):d}static after(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l,l.plus(o))}static before(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Te.fromISO(o,i),u=d.isValid}catch{u=!1}let v,m;try{v=Te.fromISO(l,i),m=v.isValid}catch{m=!1}if(u&&m)return st.fromDateTimes(d,v);if(u){const y=Ne.fromISO(l,i);if(y.isValid)return st.after(d,y)}else if(m){const y=Ne.fromISO(o,i);if(y.isValid)return st.before(v,y)}}return st.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?st.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(ha).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(st.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=Ne.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(m=>m*l));d=+v>+this.e?this.e:v,u.push(st.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:st.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return st.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(m=>[{time:m.s,type:"s"},{time:m.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((m,y)=>m.time-y.time);for(const m of v)o+=m.type==="s"?1:-1,o===1?i=m.time:(i&&+i!=+m.time&&l.push(st.fromDateTimes(i,m.time)),i=null);return st.merge(l)}difference(...e){return st.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ji}toLocaleString(e=sl,i={}){return this.isValid?Dt.create(this.s.loc.clone(i),e).formatInterval(this):Ji}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ji}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ji}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ji}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:Ji}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Ne.invalid(this.invalidReason)}mapEndpoints(e){return st.fromDateTimes(e(this.s),e(this.e))}}class Es{static hasDST(e=pt.defaultZone){const i=Te.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return ln.isValidZone(e)}static normalizeZone(e){return An(e,pt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return tt.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return tt.create(i,null,"gregory").eras(e)}static features(){return{relative:f5()}}}function h2(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(Ne.fromMillis(o).as("days"))}function bM(n,e,i){const o=[["years",(m,y)=>y.year-m.year],["quarters",(m,y)=>y.quarter-m.quarter+(y.year-m.year)*4],["months",(m,y)=>y.month-m.month+(y.year-m.year)*12],["weeks",(m,y)=>{const T=h2(m,y);return(T-T%7)/7}],["days",h2]],l={},d=n;let u,v;for(const[m,y]of o)i.indexOf(m)>=0&&(u=m,l[m]=y(n,e),v=d.plus(l),v>e?(l[m]--,n=d.plus(l),n>e&&(v=n,l[m]--,n=d.plus(l))):n=v);return[n,l,v,u]}function mM(n,e,i,o){let[l,d,u,v]=bM(n,e,i);const m=e-l,y=i.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);y.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+m/(u-l)));const T=Ne.fromObject(d,o);return y.length>0?Ne.fromMillis(m,o).shiftTo(...y).plus(T):T}const M0={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},f2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yM=M0.hanidec.replace(/[\[|\]]/g,"").split("");function CM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search(M0.hanidec)!==-1)e+=yM.indexOf(n[i]);else for(const l in f2){const[d,u]=f2[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Lr({numberingSystem:n},e=""){return new RegExp(`${M0[n||"latn"]}${e}`)}const wM="missing Intl.DateTimeFormat.formatToParts support";function Ve(n,e=i=>i){return{regex:n,deser:([i])=>e(CM(i))}}const xM=String.fromCharCode(160),_5=`[ ${xM}]`,I5=new RegExp(_5,"g");function zM(n){return n.replace(/\./g,"\\.?").replace(I5,_5)}function p2(n){return n.replace(/\./g,"").replace(I5," ").toLowerCase()}function Sr(n,e){return n===null?null:{regex:RegExp(n.map(zM).join("|")),deser:([i])=>n.findIndex(o=>p2(i)===p2(o))+e}}function g2(n,e){return{regex:n,deser:([,i,o])=>Bl(i,o),groups:e}}function _s(n){return{regex:n,deser:([e])=>e}}function LM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function SM(n,e){const i=Lr(e),o=Lr(e,"{2}"),l=Lr(e,"{3}"),d=Lr(e,"{4}"),u=Lr(e,"{6}"),v=Lr(e,"{1,2}"),m=Lr(e,"{1,3}"),y=Lr(e,"{1,6}"),T=Lr(e,"{1,9}"),S=Lr(e,"{2,4}"),$=Lr(e,"{4,6}"),E=ee=>({regex:RegExp(LM(ee.val)),deser:([te])=>te,literal:!0}),G=(ee=>{if(n.literal)return E(ee);switch(ee.val){case"G":return Sr(e.eras("short"),0);case"GG":return Sr(e.eras("long"),0);case"y":return Ve(y);case"yy":return Ve(S,Bc);case"yyyy":return Ve(d);case"yyyyy":return Ve($);case"yyyyyy":return Ve(u);case"M":return Ve(v);case"MM":return Ve(o);case"MMM":return Sr(e.months("short",!0),1);case"MMMM":return Sr(e.months("long",!0),1);case"L":return Ve(v);case"LL":return Ve(o);case"LLL":return Sr(e.months("short",!1),1);case"LLLL":return Sr(e.months("long",!1),1);case"d":return Ve(v);case"dd":return Ve(o);case"o":return Ve(m);case"ooo":return Ve(l);case"HH":return Ve(o);case"H":return Ve(v);case"hh":return Ve(o);case"h":return Ve(v);case"mm":return Ve(o);case"m":return Ve(v);case"q":return Ve(v);case"qq":return Ve(o);case"s":return Ve(v);case"ss":return Ve(o);case"S":return Ve(m);case"SSS":return Ve(l);case"u":return _s(T);case"uu":return _s(v);case"uuu":return Ve(i);case"a":return Sr(e.meridiems(),0);case"kkkk":return Ve(d);case"kk":return Ve(S,Bc);case"W":return Ve(v);case"WW":return Ve(o);case"E":case"c":return Ve(i);case"EEE":return Sr(e.weekdays("short",!1),1);case"EEEE":return Sr(e.weekdays("long",!1),1);case"ccc":return Sr(e.weekdays("short",!0),1);case"cccc":return Sr(e.weekdays("long",!0),1);case"Z":case"ZZ":return g2(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return g2(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return _s(/[a-z_+-/]{1,256}?/i);case" ":return _s(/[^\S\n\r]/);default:return E(ee)}})(n)||{invalidReason:wM};return G.token=n,G}const MM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function TM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const m=/^\s+$/.test(l);return{literal:!m,val:m?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=MM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function kM(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function $M(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(co(i,u)){const v=i[u],m=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+m))),d+=m}return[o,l]}else return[o,{}]}function OM(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return De(n.z)||(i=ln.create(n.z)),De(n.Z)||(i||(i=new Wt(n.Z)),o=n.Z),De(n.q)||(n.M=(n.q-1)*3+1),De(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),De(n.u)||(n.S=w0(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let dc=null;function EM(){return dc||(dc=Te.fromMillis(1555555555555)),dc}function _M(n,e){if(n.literal)return n;const i=Dt.macroTokenToFormatOpts(n.val),o=D5(i,e);return o==null||o.includes(void 0)?n:o}function A5(n,e){return Array.prototype.concat(...n.map(i=>_M(i,e)))}function P5(n,e,i){const o=A5(Dt.parseFormat(i),n),l=o.map(u=>SM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=kM(l),m=RegExp(u,"i"),[y,T]=$M(e,m,v),[S,$,E]=T?OM(T):[null,null,void 0];if(co(T,"a")&&co(T,"H"))throw new va("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:m,rawMatches:y,matches:T,result:S,zone:$,specificOffset:E}}}function IM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=P5(n,e,i);return[o,l,d,u]}function D5(n,e){if(!n)return null;const o=Dt.create(e,n).dtFormatter(EM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>TM(u,n,d))}const N5=[0,31,59,90,120,151,181,212,243,273,304,334],H5=[0,31,60,91,121,152,182,213,244,274,305,335];function pr(n,e){return new Tr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function R5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function F5(n,e,i){return i+(Ha(n)?H5:N5)[e-1]}function B5(n,e){const i=Ha(n)?H5:N5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Vc(n){const{year:e,month:i,day:o}=n,l=F5(e,i,o),d=R5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=cl(v)):u>cl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Vl(n)}}function v2(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=R5(e,1,4),d=ya(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=ya(v)):u>d?(v=e+1,u-=ya(e)):v=e;const{month:m,day:y}=B5(v,u);return{year:v,month:m,day:y,...Vl(n)}}function hc(n){const{year:e,month:i,day:o}=n,l=F5(e,i,o);return{year:e,ordinal:l,...Vl(n)}}function b2(n){const{year:e,ordinal:i}=n,{month:o,day:l}=B5(e,i);return{year:e,month:o,day:l,...Vl(n)}}function AM(n){const e=Rl(n.weekYear),i=an(n.weekNumber,1,cl(n.weekYear)),o=an(n.weekday,1,7);return e?i?o?!1:pr("weekday",n.weekday):pr("week",n.week):pr("weekYear",n.weekYear)}function PM(n){const e=Rl(n.year),i=an(n.ordinal,1,ya(n.year));return e?i?!1:pr("ordinal",n.ordinal):pr("year",n.year)}function V5(n){const e=Rl(n.year),i=an(n.month,1,12),o=an(n.day,1,ll(n.year,n.month));return e?i?o?!1:pr("day",n.day):pr("month",n.month):pr("year",n.year)}function Z5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=an(e,0,23)||e===24&&i===0&&o===0&&l===0,u=an(i,0,59),v=an(o,0,59),m=an(l,0,999);return d?u?v?m?!1:pr("millisecond",l):pr("second",o):pr("minute",i):pr("hour",e)}const fc="Invalid DateTime",m2=864e13;function Is(n){return new Tr("unsupported zone",`the zone "${n.name}" is not supported`)}function pc(n){return n.weekData===null&&(n.weekData=Vc(n.c)),n.weekData}function oi(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Te({...i,...e,old:i})}function W5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function As(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Rs(n,e,i){return W5(Fl(n),e,i)}function y2(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,ll(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=Ne.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Fl(d);let[m,y]=W5(v,i,n.zone);return u!==0&&(m+=u,y=n.zone.offset(m)),{ts:m,o:y}}function da(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const m=e||v,y=Te.fromObject(n,{...i,zone:m,specificOffset:d});return u?y:y.setZone(v)}else return Te.invalid(new Tr("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Ps(n,e,i=!0){return n.isValid?Dt.create(tt.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function gc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=gt(n.c.year,i?6:4),e?(o+="-",o+=gt(n.c.month),o+="-",o+=gt(n.c.day)):(o+=gt(n.c.month),o+=gt(n.c.day)),o}function C2(n,e,i,o,l,d){let u=gt(n.c.hour);return e?(u+=":",u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=gt(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=gt(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=gt(Math.trunc(-n.o/60)),u+=":",u+=gt(Math.trunc(-n.o%60))):(u+="+",u+=gt(Math.trunc(n.o/60)),u+=":",u+=gt(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const U5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},DM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},NM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},j5=["year","month","day","hour","minute","second","millisecond"],HM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],RM=["year","ordinal","hour","minute","second","millisecond"];function w2(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Gp(n);return e}function x2(n,e){const i=An(e.zone,pt.defaultZone),o=tt.fromObject(e),l=pt.now();let d,u;if(De(n.year))d=l;else{for(const y of j5)De(n[y])&&(n[y]=U5[y]);const v=V5(n)||Z5(n);if(v)return Te.invalid(v);const m=i.offset(l);[d,u]=Rs(n,m,i)}return new Te({ts:d,zone:i,loc:o,o:u})}function z2(n,e,i){const o=De(i.round)?!0:i.round,l=(u,v)=>(u=x0(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function L2(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Te{constructor(e){const i=e.zone||pt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Tr("invalid input"):null)||(i.isValid?null:Is(i));this.ts=De(e.ts)?pt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=As(this.ts,v),o=Number.isNaN(l.year)?new Tr("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||tt.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Te({})}static local(){const[e,i]=L2(arguments),[o,l,d,u,v,m,y]=i;return x2({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:y},e)}static utc(){const[e,i]=L2(arguments),[o,l,d,u,v,m,y]=i;return e.zone=Wt.utcInstance,x2({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:y},e)}static fromJSDate(e,i={}){const o=hS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Te.invalid("invalid input");const l=An(i.zone,pt.defaultZone);return l.isValid?new Te({ts:o,zone:l,loc:tt.fromObject(i)}):Te.invalid(Is(l))}static fromMillis(e,i={}){if(hi(e))return e<-m2||e>m2?Te.invalid("Timestamp out of range"):new Te({ts:e,zone:An(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(hi(e))return new Te({ts:e*1e3,zone:An(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=An(i.zone,pt.defaultZone);if(!o.isValid)return Te.invalid(Is(o));const l=pt.now(),d=De(i.specificOffset)?o.offset(l):i.specificOffset,u=ul(e,w2),v=!De(u.ordinal),m=!De(u.year),y=!De(u.month)||!De(u.day),T=m||y,S=u.weekYear||u.weekNumber,$=tt.fromObject(i);if((T||v)&&S)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&v)throw new va("Can't mix ordinal dates with month/day");const E=S||u.weekday&&!T;let N,G,ee=As(l,d);E?(N=HM,G=DM,ee=Vc(ee)):v?(N=RM,G=NM,ee=hc(ee)):(N=j5,G=U5);let te=!1;for(const Ze of N){const We=u[Ze];De(We)?te?u[Ze]=G[Ze]:u[Ze]=ee[Ze]:te=!0}const se=E?AM(u):v?PM(u):V5(u),re=se||Z5(u);if(re)return Te.invalid(re);const ue=E?v2(u):v?b2(u):u,[xe,qe]=Rs(ue,d,o),Ge=new Te({ts:xe,zone:o,o:qe,loc:$});return u.weekday&&T&&e.weekday!==Ge.weekday?Te.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${Ge.toISO()}`):Ge}static fromISO(e,i={}){const[o,l]=tM(e);return da(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=rM(e);return da(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=nM(e);return da(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(De(e)||De(i))throw new fr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,m,y,T]=IM(u,e,i);return T?Te.invalid(T):da(v,m,o,`format ${i}`,e,y)}static fromString(e,i,o={}){return Te.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=uM(e);return da(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the DateTime is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new ZL(o);return new Te({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=D5(e,tt.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return A5(Dt.parseFormat(e),tt.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?pc(this).weekYear:NaN}get weekNumber(){return this.isValid?pc(this).weekNumber:NaN}get weekday(){return this.isValid?pc(this).weekday:NaN}get ordinal(){return this.isValid?hc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Es.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Es.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Es.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Es.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Fl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const m=o-u*i,y=o-v*i,T=As(m,u),S=As(y,v);return T.hour===S.hour&&T.minute===S.minute&&T.second===S.second&&T.millisecond===S.millisecond?[oi(this,{ts:m}),oi(this,{ts:y})]:[this]}get isInLeapYear(){return Ha(this.year)}get daysInMonth(){return ll(this.year,this.month)}get daysInYear(){return this.isValid?ya(this.year):NaN}get weeksInWeekYear(){return this.isValid?cl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Dt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Wt.instance(e),i)}toLocal(){return this.setZone(pt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=An(e,pt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Rs(u,d,e)}return oi(this,{ts:l,zone:e})}else return Te.invalid(Is(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return oi(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=ul(e,w2),o=!De(i.weekYear)||!De(i.weekNumber)||!De(i.weekday),l=!De(i.ordinal),d=!De(i.year),u=!De(i.month)||!De(i.day),v=d||u,m=i.weekYear||i.weekNumber;if((v||l)&&m)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new va("Can't mix ordinal dates with month/day");let y;o?y=v2({...Vc(this.c),...i}):De(i.ordinal)?(y={...this.toObject(),...i},De(i.day)&&(y.day=Math.min(ll(y.year,y.month),y.day))):y=b2({...hc(this.c),...i});const[T,S]=Rs(y,this.o,this.zone);return oi(this,{ts:T,o:S})}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return oi(this,y2(this,i))}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e).negate();return oi(this,y2(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=Ne.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Dt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):fc}toLocaleString(e=sl,i={}){return this.isValid?Dt.create(this.loc.clone(i),e).formatDateTime(this):fc}toLocaleParts(e={}){return this.isValid?Dt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=gc(this,u);return v+="T",v+=C2(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?gc(this,e==="extended"):null}toISOWeekDate(){return Ps(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+C2(this,u==="extended",i,e,o,d):null}toRFC2822(){return Ps(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ps(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),Ps(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():fc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return Ne.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=fS(i).map(Ne.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,m=u?e:this,y=mM(v,m,d,l);return u?y.negate():y}diffNow(e="milliseconds",i={}){return this.diff(Te.now(),e,i)}until(e){return this.isValid?st.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Te.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),z2(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?z2(e.base||Te.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Te.isDateTime))throw new fr("min requires all arguments be DateTimes");return l2(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Te.isDateTime))throw new fr("max requires all arguments be DateTimes");return l2(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return P5(u,e,i)}static fromStringExplain(e,i,o={}){return Te.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return sl}static get DATE_MED(){return qp}static get DATE_MED_WITH_WEEKDAY(){return jL}static get DATE_FULL(){return Kp}static get DATE_HUGE(){return Yp}static get TIME_SIMPLE(){return Xp}static get TIME_WITH_SECONDS(){return Jp}static get TIME_WITH_SHORT_OFFSET(){return Qp}static get TIME_WITH_LONG_OFFSET(){return e5}static get TIME_24_SIMPLE(){return t5}static get TIME_24_WITH_SECONDS(){return r5}static get TIME_24_WITH_SHORT_OFFSET(){return n5}static get TIME_24_WITH_LONG_OFFSET(){return i5}static get DATETIME_SHORT(){return o5}static get DATETIME_SHORT_WITH_SECONDS(){return a5}static get DATETIME_MED(){return s5}static get DATETIME_MED_WITH_SECONDS(){return l5}static get DATETIME_MED_WITH_WEEKDAY(){return GL}static get DATETIME_FULL(){return c5}static get DATETIME_FULL_WITH_SECONDS(){return u5}static get DATETIME_HUGE(){return d5}static get DATETIME_HUGE_WITH_SECONDS(){return h5}}function ha(n){if(Te.isDateTime(n))return n;if(n&&n.valueOf&&hi(n.valueOf()))return Te.fromJSDate(n);if(n&&typeof n=="object")return Te.fromObject(n);throw new fr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const FM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},BM=n=>Te.local().setZone(n).isValid,Zc=n=>n.hour<12,S2=n=>!Zc(n),G5=(n,e)=>Zc(n)&&Zc(e)||S2(n)&&S2(e),M2=(n,e)=>{var l;const i=e&&BM(e)?e:"utc",o=(l=FM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},T2=n=>VM(q5(n)),VM=n=>n.replace(/Sept/,"Sep"),q5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),dl=n=>n.minute===0?"h":"h:mm",hl=(n,e)=>n.year!==e.year?" yyyy":"";var ZM=Object.defineProperty,WM=Object.getOwnPropertyDescriptor,Fn=(n,e,i,o)=>{for(var l=o>1?void 0:o?WM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ZM(e,i,l),l};const K5=ne("input-time"),Y5="h:mma",X5=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,J5=/^(1[3-9]|2[0-3]).*/,Q5=/^(\d\d?)(am?|pm?)/,UM=["UTC","AEST"],e6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),k2=(n,e)=>{const o=Math.ceil(1440/n),l=Te.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),m=q5(v.toFormat(Y5));return e6(m,e)})},jM=(n,e)=>{const i=n.trim(),o=n.match(X5);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),m=v>12?`${v-12}`:`${v}`,y=`${d}${u||0}`,T=`${m}:${y}`;return["am","pm"].map(S=>e6(`${T}${S}`,e))},GM=(n,{value:e})=>{const i=n.match(J5);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},qM=(n,{value:e})=>{const i=n.match(Q5);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},KM=(...n)=>qM(...n)||GM(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=k2(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=k2(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?KM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=jM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return P`
|
|
3501
|
+
`];Da([O({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Da([O({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Da([O({type:Array})],exports.InputMultiselect.prototype,"value",2);Da([pe()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Da([R(Gp)],exports.InputMultiselect);class zi extends Error{}class ZL extends zi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class WL extends zi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class UL extends zi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class va extends zi{}class qp extends zi{constructor(e){super(`Invalid unit ${e}`)}}class fr extends zi{}class On extends zi{constructor(){super("Zone is an abstract class")}}const le="numeric",Or="short",cr="long",sl={year:le,month:le,day:le},Kp={year:le,month:Or,day:le},jL={year:le,month:Or,day:le,weekday:Or},Yp={year:le,month:cr,day:le},Xp={year:le,month:cr,day:le,weekday:cr},Jp={hour:le,minute:le},Qp={hour:le,minute:le,second:le},e5={hour:le,minute:le,second:le,timeZoneName:Or},t5={hour:le,minute:le,second:le,timeZoneName:cr},r5={hour:le,minute:le,hourCycle:"h23"},n5={hour:le,minute:le,second:le,hourCycle:"h23"},i5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:Or},o5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:cr},a5={year:le,month:le,day:le,hour:le,minute:le},s5={year:le,month:le,day:le,hour:le,minute:le,second:le},l5={year:le,month:Or,day:le,hour:le,minute:le},c5={year:le,month:Or,day:le,hour:le,minute:le,second:le},GL={year:le,month:Or,day:le,weekday:Or,hour:le,minute:le},u5={year:le,month:cr,day:le,hour:le,minute:le,timeZoneName:Or},d5={year:le,month:cr,day:le,hour:le,minute:le,second:le,timeZoneName:Or},h5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,timeZoneName:cr},f5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,second:le,timeZoneName:cr};class Na{get type(){throw new On}get name(){throw new On}get ianaName(){return this.name}get isUniversal(){throw new On}offsetName(e,i){throw new On}formatOffset(e,i){throw new On}offset(e){throw new On}equals(e){throw new On}get isValid(){throw new On}}let cc=null;class Hl extends Na{static get instance(){return cc===null&&(cc=new Hl),cc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return g5(e,i,o)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Hs={};function qL(n){return Hs[n]||(Hs[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Hs[n]}const KL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function YL(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,y,m,T]=o;return[u,l,d,v,y,m,T]}function XL(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=KL[d];d==="era"?o[v]=u:De(v)||(o[v]=parseInt(u,10))}return o}let $s={};class ln extends Na{static create(e){return $s[e]||($s[e]=new ln(e)),$s[e]}static resetCache(){$s={},Hs={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ln.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return g5(e,i,o,this.name)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=qL(this.name);let[l,d,u,v,y,m,T]=o.formatToParts?XL(o,i):YL(o,i);v==="BC"&&(l=-Math.abs(l)+1);const $=Fl({year:l,month:d,day:u,hour:y===24?0:y,minute:m,second:T,millisecond:0});let E=+i;const N=E%1e3;return E-=N>=0?N:1e3+N,($-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let r2={};function JL(n,e={}){const i=JSON.stringify([n,e]);let o=r2[i];return o||(o=new Intl.ListFormat(n,e),r2[i]=o),o}let Hc={};function Rc(n,e={}){const i=JSON.stringify([n,e]);let o=Hc[i];return o||(o=new Intl.DateTimeFormat(n,e),Hc[i]=o),o}let Fc={};function QL(n,e={}){const i=JSON.stringify([n,e]);let o=Fc[i];return o||(o=new Intl.NumberFormat(n,e),Fc[i]=o),o}let Bc={};function eS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Bc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Bc[l]=d),d}let ba=null;function tS(){return ba||(ba=new Intl.DateTimeFormat().resolvedOptions().locale,ba)}function rS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Rc(n).resolvedOptions(),l=n}catch{const y=n.substring(0,i);o=Rc(y).resolvedOptions(),l=y}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function nS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function iS(n){const e=[];for(let i=1;i<=12;i++){const o=Me.utc(2009,i,1);e.push(n(o))}return e}function oS(n){const e=[];for(let i=1;i<=7;i++){const o=Me.utc(2016,11,13+i);e.push(n(o))}return e}function Os(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function aS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class sS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=QL(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):z0(e,3);return gt(i,this.padTo)}}}class lS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&ln.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Rc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class cS{constructor(e,i,o){this.opts={style:"long",...o},!i&&p5()&&(this.rtf=eS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):MS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class tt{static fromOpts(e){return tt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||pt.defaultLocale,u=d||(l?"en-US":tS()),v=i||pt.defaultNumberingSystem,y=o||pt.defaultOutputCalendar;return new tt(u,v,y,d)}static resetCache(){ba=null,Hc={},Fc={},Bc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return tt.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=rS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=nS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=aS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:tt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return Os(this,e,m5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=iS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return Os(this,e,w5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=oS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return Os(this,void 0,()=>x5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Me.utc(2016,11,13,9),Me.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Os(this,e,z5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Me.utc(-40,1,1),Me.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new sS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new lS(e,this.intl,i)}relFormatter(e={}){return new cS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return JL(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let uc=null;class Wt extends Na{static get utcInstance(){return uc===null&&(uc=new Wt(0)),uc}static instance(e){return e===0?Wt.utcInstance:new Wt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Wt(Bl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ca(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ca(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Ca(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class uS extends Na{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function An(n,e){if(De(n)||n===null)return e;if(n instanceof Na)return n;if(dS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Hl.instance:i==="utc"||i==="gmt"?Wt.utcInstance:Wt.parseSpecifier(i)||ln.create(n)}else return hi(n)?Wt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new uS(n)}let n2=()=>Date.now(),i2="system",o2=null,a2=null,s2=null,l2=60,c2;class pt{static get now(){return n2}static set now(e){n2=e}static set defaultZone(e){i2=e}static get defaultZone(){return An(i2,Hl.instance)}static get defaultLocale(){return o2}static set defaultLocale(e){o2=e}static get defaultNumberingSystem(){return a2}static set defaultNumberingSystem(e){a2=e}static get defaultOutputCalendar(){return s2}static set defaultOutputCalendar(e){s2=e}static get twoDigitCutoffYear(){return l2}static set twoDigitCutoffYear(e){l2=e%100}static get throwOnInvalid(){return c2}static set throwOnInvalid(e){c2=e}static resetCaches(){tt.resetCache(),ln.resetCache()}}function De(n){return typeof n=="undefined"}function hi(n){return typeof n=="number"}function Rl(n){return typeof n=="number"&&n%1===0}function dS(n){return typeof n=="string"}function hS(n){return Object.prototype.toString.call(n)==="[object Date]"}function p5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function fS(n){return Array.isArray(n)?n:[n]}function u2(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function pS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function co(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function an(n,e,i){return Rl(n)&&n>=e&&n<=i}function gS(n,e){return n-e*Math.floor(n/e)}function gt(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function _n(n){if(!(De(n)||n===null||n===""))return parseInt(n,10)}function ii(n){if(!(De(n)||n===null||n===""))return parseFloat(n)}function x0(n){if(!(De(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function z0(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Ha(n){return n%4===0&&(n%100!==0||n%400===0)}function ya(n){return Ha(n)?366:365}function ll(n,e){const i=gS(e-1,12)+1,o=n+(e-i)/12;return i===2?Ha(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Fl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function cl(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Vc(n){return n>99?n:n>pt.twoDigitCutoffYear?1900+n:2e3+n}function g5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(y=>y.type.toLowerCase()==="timezonename");return v?v.value:null}function Bl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function v5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new fr(`Invalid unit value ${n}`);return e}function ul(n,e){const i={};for(const o in n)if(co(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=v5(l)}return i}function Ca(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${gt(i,2)}:${gt(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${gt(i,2)}${gt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vl(n){return pS(n,["hour","minute","second","millisecond"])}const vS=["January","February","March","April","May","June","July","August","September","October","November","December"],b5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bS=["J","F","M","A","M","J","J","A","S","O","N","D"];function m5(n){switch(n){case"narrow":return[...bS];case"short":return[...b5];case"long":return[...vS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const y5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],C5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mS=["M","T","W","T","F","S","S"];function w5(n){switch(n){case"narrow":return[...mS];case"short":return[...C5];case"long":return[...y5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const x5=["AM","PM"],yS=["Before Christ","Anno Domini"],CS=["BC","AD"],wS=["B","A"];function z5(n){switch(n){case"narrow":return[...wS];case"short":return[...CS];case"long":return[...yS];default:return null}}function xS(n){return x5[n.hour<12?0:1]}function zS(n,e){return w5(e)[n.weekday-1]}function LS(n,e){return m5(e)[n.month-1]}function SS(n,e){return z5(e)[n.year<0?0:1]}function MS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const S=n==="days";switch(e){case 1:return S?"tomorrow":`next ${l[n][0]}`;case-1:return S?"yesterday":`last ${l[n][0]}`;case 0:return S?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),y=v===1,m=l[n],T=o?y?m[1]:m[2]||m[1]:y?l[n][0]:n;return u?`${v} ${T} ago`:`in ${v} ${T}`}function d2(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const TS={D:sl,DD:Kp,DDD:Yp,DDDD:Xp,t:Jp,tt:Qp,ttt:e5,tttt:t5,T:r5,TT:n5,TTT:i5,TTTT:o5,f:a5,ff:l5,fff:u5,ffff:h5,F:s5,FF:c5,FFF:d5,FFFF:f5};class Dt{static create(e,i={}){return new Dt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return TS[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return gt(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(E,N)=>this.loc.extract(e,E,N),u=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",v=()=>o?xS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),y=(E,N)=>o?LS(e,E):d(N?{month:E}:{month:E,day:"numeric"},"month"),m=(E,N)=>o?zS(e,E):d(N?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),T=E=>{const N=Dt.macroTokenToFormatOpts(E);return N?this.formatWithSystemDefault(e,N):E},S=E=>o?SS(e,E):d({era:E},"era"),$=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return m("short",!0);case"cccc":return m("long",!0);case"ccccc":return m("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return m("short",!1);case"EEEE":return m("long",!1);case"EEEEE":return m("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return y("short",!0);case"LLLL":return y("long",!0);case"LLLLL":return y("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return y("short",!1);case"MMMM":return y("long",!1);case"MMMMM":return y("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return T(E)}};return d2(Dt.parseFormat(i),$)}formatDurationFromString(e,i){const o=y=>{switch(y[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=y=>m=>{const T=o(m);return T?this.num(y.get(T),m.length):m},d=Dt.parseFormat(i),u=d.reduce((y,{literal:m,val:T})=>m?y:y.concat(T),[]),v=e.shiftTo(...u.map(o).filter(y=>y));return d2(d,l(v))}}class Tr{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const L5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Co(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function wo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,y]=d(e,l);return[{...i,...u},v||o,y]},[{},null,1]).slice(0,2)}function xo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function S5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=_n(e[i+l]);return[o,null,i+l]}}const M5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kS=`(?:${M5.source}?(?:\\[(${L5.source})\\])?)?`,L0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,T5=RegExp(`${L0.source}${kS}`),S0=RegExp(`(?:T${T5.source})?`),$S=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,OS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ES=/(\d{4})-?(\d{3})/,_S=S5("weekYear","weekNumber","weekDay"),IS=S5("year","ordinal"),AS=/(\d{4})-(\d\d)-(\d\d)/,k5=RegExp(`${L0.source} ?(?:${M5.source}|(${L5.source}))?`),PS=RegExp(`(?: ${k5.source})?`);function ro(n,e,i){const o=n[e];return De(o)?i:_n(o)}function DS(n,e){return[{year:ro(n,e),month:ro(n,e+1,1),day:ro(n,e+2,1)},null,e+3]}function zo(n,e){return[{hours:ro(n,e,0),minutes:ro(n,e+1,0),seconds:ro(n,e+2,0),milliseconds:x0(n[e+3])},null,e+4]}function Ra(n,e){const i=!n[e]&&!n[e+1],o=Bl(n[e+1],n[e+2]),l=i?null:Wt.instance(o);return[{},l,e+3]}function Fa(n,e){const i=n[e]?ln.create(n[e]):null;return[{},i,e+1]}const NS=RegExp(`^T?${L0.source}$`),HS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function RS(n){const[e,i,o,l,d,u,v,y,m]=n,T=e[0]==="-",S=y&&y[0]==="-",$=(E,N=!1)=>E!==void 0&&(N||E&&T)?-E:E;return[{years:$(ii(i)),months:$(ii(o)),weeks:$(ii(l)),days:$(ii(d)),hours:$(ii(u)),minutes:$(ii(v)),seconds:$(ii(y),y==="-0"),milliseconds:$(x0(m),S)}]}const FS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function M0(n,e,i,o,l,d,u){const v={year:e.length===2?Vc(_n(e)):_n(e),month:b5.indexOf(i)+1,day:_n(o),hour:_n(l),minute:_n(d)};return u&&(v.second=_n(u)),n&&(v.weekday=n.length>3?y5.indexOf(n)+1:C5.indexOf(n)+1),v}const BS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function VS(n){const[,e,i,o,l,d,u,v,y,m,T,S]=n,$=M0(e,l,o,i,d,u,v);let E;return y?E=FS[y]:m?E=0:E=Bl(T,S),[$,new Wt(E)]}function ZS(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const WS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,US=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function h2(n){const[,e,i,o,l,d,u,v]=n;return[M0(e,l,o,i,d,u,v),Wt.utcInstance]}function GS(n){const[,e,i,o,l,d,u,v]=n;return[M0(e,v,i,o,l,d,u),Wt.utcInstance]}const qS=Co($S,S0),KS=Co(OS,S0),YS=Co(ES,S0),XS=Co(T5),$5=wo(DS,zo,Ra,Fa),JS=wo(_S,zo,Ra,Fa),QS=wo(IS,zo,Ra,Fa),eM=wo(zo,Ra,Fa);function tM(n){return xo(n,[qS,$5],[KS,JS],[YS,QS],[XS,eM])}function rM(n){return xo(ZS(n),[BS,VS])}function nM(n){return xo(n,[WS,h2],[US,h2],[jS,GS])}function iM(n){return xo(n,[HS,RS])}const oM=wo(zo);function aM(n){return xo(n,[NS,oM])}const sM=Co(AS,PS),lM=Co(k5),cM=wo(zo,Ra,Fa);function uM(n){return xo(n,[sM,$5],[lM,cM])}const dM="Invalid Duration",O5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},hM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...O5},hr=146097/400,Xi=146097/4800,fM={years:{quarters:4,months:12,weeks:hr/7,days:hr,hours:hr*24,minutes:hr*24*60,seconds:hr*24*60*60,milliseconds:hr*24*60*60*1e3},quarters:{months:3,weeks:hr/28,days:hr/4,hours:hr*24/4,minutes:hr*24*60/4,seconds:hr*24*60*60/4,milliseconds:hr*24*60*60*1e3/4},months:{weeks:Xi/7,days:Xi,hours:Xi*24,minutes:Xi*24*60,seconds:Xi*24*60*60,milliseconds:Xi*24*60*60*1e3},...O5},si=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],E5=si.slice(0).reverse();function En(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new Ne(o)}function f2(n){return Math.trunc(n*1e3)/1e3}function _5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=f2(o[l]+v),e[i]=f2(e[i]-v*d)}function pM(n,e){E5.reduce((i,o)=>De(e[o])?i:(i&&_5(n,e,i,e,o),o),null)}function gM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class Ne{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?fM:hM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||tt.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return Ne.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new fr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ne({values:ul(e,Ne.normalizeUnit),loc:tt.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(hi(e))return Ne.fromMillis(e);if(Ne.isDuration(e))return e;if(typeof e=="object")return Ne.fromObject(e);throw new fr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=iM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=aM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Duration is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new UL(o);return new Ne({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new qp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Dt.create(this.loc,o).formatDurationFromString(this,e):dM}toHuman(e={}){const i=si.map(o=>{const l=this.values[o];return De(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=z0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Me.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of E5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e),o={};for(const l of si)(co(i.values,l)||co(this.values,l))&&(o[l]=i.get(l)+this.get(l));return En(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=v5(e(this.values[o],o));return En(this,{values:i},!0)}get(e){return this[Ne.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...ul(e,Ne.normalizeUnit)};return En(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return En(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(pM(this.matrix,e),En(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=gM(this.normalize().shiftToAll().toObject());return En(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Ne.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of si)if(e.indexOf(u)>=0){d=u;let v=0;for(const m in o)v+=this.matrix[m][u]*o[m],o[m]=0;hi(l[u])&&(v+=l[u]);const y=Math.trunc(v);i[u]=y,o[u]=(v*1e3-y*1e3)/1e3;for(const m in l)si.indexOf(m)>si.indexOf(u)&&_5(this.matrix,l,m,i,u)}else hi(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return En(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return En(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of si)if(!i(this.values[o],e.values[o]))return!1;return!0}}const Ji="Invalid Interval";function vM(n,e){return!n||!n.isValid?st.invalid("missing or invalid start"):!e||!e.isValid?st.invalid("missing or invalid end"):e<n?st.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class st{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Interval is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new WL(o);return new st({invalid:o})}static fromDateTimes(e,i){const o=ha(e),l=ha(i),d=vM(o,l);return d==null?new st({start:o,end:l}):d}static after(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l,l.plus(o))}static before(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Me.fromISO(o,i),u=d.isValid}catch{u=!1}let v,y;try{v=Me.fromISO(l,i),y=v.isValid}catch{y=!1}if(u&&y)return st.fromDateTimes(d,v);if(u){const m=Ne.fromISO(l,i);if(m.isValid)return st.after(d,m)}else if(y){const m=Ne.fromISO(o,i);if(m.isValid)return st.before(v,m)}}return st.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?st.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(ha).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(st.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=Ne.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(y=>y*l));d=+v>+this.e?this.e:v,u.push(st.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:st.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return st.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(y=>[{time:y.s,type:"s"},{time:y.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((y,m)=>y.time-m.time);for(const y of v)o+=y.type==="s"?1:-1,o===1?i=y.time:(i&&+i!=+y.time&&l.push(st.fromDateTimes(i,y.time)),i=null);return st.merge(l)}difference(...e){return st.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ji}toLocaleString(e=sl,i={}){return this.isValid?Dt.create(this.s.loc.clone(i),e).formatInterval(this):Ji}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ji}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ji}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ji}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:Ji}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Ne.invalid(this.invalidReason)}mapEndpoints(e){return st.fromDateTimes(e(this.s),e(this.e))}}class Es{static hasDST(e=pt.defaultZone){const i=Me.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return ln.isValidZone(e)}static normalizeZone(e){return An(e,pt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return tt.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return tt.create(i,null,"gregory").eras(e)}static features(){return{relative:p5()}}}function p2(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(Ne.fromMillis(o).as("days"))}function bM(n,e,i){const o=[["years",(y,m)=>m.year-y.year],["quarters",(y,m)=>m.quarter-y.quarter+(m.year-y.year)*4],["months",(y,m)=>m.month-y.month+(m.year-y.year)*12],["weeks",(y,m)=>{const T=p2(y,m);return(T-T%7)/7}],["days",p2]],l={},d=n;let u,v;for(const[y,m]of o)i.indexOf(y)>=0&&(u=y,l[y]=m(n,e),v=d.plus(l),v>e?(l[y]--,n=d.plus(l),n>e&&(v=n,l[y]--,n=d.plus(l))):n=v);return[n,l,v,u]}function mM(n,e,i,o){let[l,d,u,v]=bM(n,e,i);const y=e-l,m=i.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);m.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+y/(u-l)));const T=Ne.fromObject(d,o);return m.length>0?Ne.fromMillis(y,o).shiftTo(...m).plus(T):T}const T0={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},g2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yM=T0.hanidec.replace(/[\[|\]]/g,"").split("");function CM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search(T0.hanidec)!==-1)e+=yM.indexOf(n[i]);else for(const l in g2){const[d,u]=g2[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Lr({numberingSystem:n},e=""){return new RegExp(`${T0[n||"latn"]}${e}`)}const wM="missing Intl.DateTimeFormat.formatToParts support";function Ve(n,e=i=>i){return{regex:n,deser:([i])=>e(CM(i))}}const xM=String.fromCharCode(160),I5=`[ ${xM}]`,A5=new RegExp(I5,"g");function zM(n){return n.replace(/\./g,"\\.?").replace(A5,I5)}function v2(n){return n.replace(/\./g,"").replace(A5," ").toLowerCase()}function Sr(n,e){return n===null?null:{regex:RegExp(n.map(zM).join("|")),deser:([i])=>n.findIndex(o=>v2(i)===v2(o))+e}}function b2(n,e){return{regex:n,deser:([,i,o])=>Bl(i,o),groups:e}}function _s(n){return{regex:n,deser:([e])=>e}}function LM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function SM(n,e){const i=Lr(e),o=Lr(e,"{2}"),l=Lr(e,"{3}"),d=Lr(e,"{4}"),u=Lr(e,"{6}"),v=Lr(e,"{1,2}"),y=Lr(e,"{1,3}"),m=Lr(e,"{1,6}"),T=Lr(e,"{1,9}"),S=Lr(e,"{2,4}"),$=Lr(e,"{4,6}"),E=ee=>({regex:RegExp(LM(ee.val)),deser:([te])=>te,literal:!0}),G=(ee=>{if(n.literal)return E(ee);switch(ee.val){case"G":return Sr(e.eras("short"),0);case"GG":return Sr(e.eras("long"),0);case"y":return Ve(m);case"yy":return Ve(S,Vc);case"yyyy":return Ve(d);case"yyyyy":return Ve($);case"yyyyyy":return Ve(u);case"M":return Ve(v);case"MM":return Ve(o);case"MMM":return Sr(e.months("short",!0),1);case"MMMM":return Sr(e.months("long",!0),1);case"L":return Ve(v);case"LL":return Ve(o);case"LLL":return Sr(e.months("short",!1),1);case"LLLL":return Sr(e.months("long",!1),1);case"d":return Ve(v);case"dd":return Ve(o);case"o":return Ve(y);case"ooo":return Ve(l);case"HH":return Ve(o);case"H":return Ve(v);case"hh":return Ve(o);case"h":return Ve(v);case"mm":return Ve(o);case"m":return Ve(v);case"q":return Ve(v);case"qq":return Ve(o);case"s":return Ve(v);case"ss":return Ve(o);case"S":return Ve(y);case"SSS":return Ve(l);case"u":return _s(T);case"uu":return _s(v);case"uuu":return Ve(i);case"a":return Sr(e.meridiems(),0);case"kkkk":return Ve(d);case"kk":return Ve(S,Vc);case"W":return Ve(v);case"WW":return Ve(o);case"E":case"c":return Ve(i);case"EEE":return Sr(e.weekdays("short",!1),1);case"EEEE":return Sr(e.weekdays("long",!1),1);case"ccc":return Sr(e.weekdays("short",!0),1);case"cccc":return Sr(e.weekdays("long",!0),1);case"Z":case"ZZ":return b2(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return b2(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return _s(/[a-z_+-/]{1,256}?/i);case" ":return _s(/[^\S\n\r]/);default:return E(ee)}})(n)||{invalidReason:wM};return G.token=n,G}const MM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function TM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const y=/^\s+$/.test(l);return{literal:!y,val:y?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=MM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function kM(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function $M(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(co(i,u)){const v=i[u],y=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+y))),d+=y}return[o,l]}else return[o,{}]}function OM(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return De(n.z)||(i=ln.create(n.z)),De(n.Z)||(i||(i=new Wt(n.Z)),o=n.Z),De(n.q)||(n.M=(n.q-1)*3+1),De(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),De(n.u)||(n.S=x0(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let dc=null;function EM(){return dc||(dc=Me.fromMillis(1555555555555)),dc}function _M(n,e){if(n.literal)return n;const i=Dt.macroTokenToFormatOpts(n.val),o=N5(i,e);return o==null||o.includes(void 0)?n:o}function P5(n,e){return Array.prototype.concat(...n.map(i=>_M(i,e)))}function D5(n,e,i){const o=P5(Dt.parseFormat(i),n),l=o.map(u=>SM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=kM(l),y=RegExp(u,"i"),[m,T]=$M(e,y,v),[S,$,E]=T?OM(T):[null,null,void 0];if(co(T,"a")&&co(T,"H"))throw new va("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:y,rawMatches:m,matches:T,result:S,zone:$,specificOffset:E}}}function IM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=D5(n,e,i);return[o,l,d,u]}function N5(n,e){if(!n)return null;const o=Dt.create(e,n).dtFormatter(EM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>TM(u,n,d))}const H5=[0,31,59,90,120,151,181,212,243,273,304,334],R5=[0,31,60,91,121,152,182,213,244,274,305,335];function pr(n,e){return new Tr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function F5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function B5(n,e,i){return i+(Ha(n)?R5:H5)[e-1]}function V5(n,e){const i=Ha(n)?R5:H5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Zc(n){const{year:e,month:i,day:o}=n,l=B5(e,i,o),d=F5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=cl(v)):u>cl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Vl(n)}}function m2(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=F5(e,1,4),d=ya(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=ya(v)):u>d?(v=e+1,u-=ya(e)):v=e;const{month:y,day:m}=V5(v,u);return{year:v,month:y,day:m,...Vl(n)}}function hc(n){const{year:e,month:i,day:o}=n,l=B5(e,i,o);return{year:e,ordinal:l,...Vl(n)}}function y2(n){const{year:e,ordinal:i}=n,{month:o,day:l}=V5(e,i);return{year:e,month:o,day:l,...Vl(n)}}function AM(n){const e=Rl(n.weekYear),i=an(n.weekNumber,1,cl(n.weekYear)),o=an(n.weekday,1,7);return e?i?o?!1:pr("weekday",n.weekday):pr("week",n.week):pr("weekYear",n.weekYear)}function PM(n){const e=Rl(n.year),i=an(n.ordinal,1,ya(n.year));return e?i?!1:pr("ordinal",n.ordinal):pr("year",n.year)}function Z5(n){const e=Rl(n.year),i=an(n.month,1,12),o=an(n.day,1,ll(n.year,n.month));return e?i?o?!1:pr("day",n.day):pr("month",n.month):pr("year",n.year)}function W5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=an(e,0,23)||e===24&&i===0&&o===0&&l===0,u=an(i,0,59),v=an(o,0,59),y=an(l,0,999);return d?u?v?y?!1:pr("millisecond",l):pr("second",o):pr("minute",i):pr("hour",e)}const fc="Invalid DateTime",C2=864e13;function Is(n){return new Tr("unsupported zone",`the zone "${n.name}" is not supported`)}function pc(n){return n.weekData===null&&(n.weekData=Zc(n.c)),n.weekData}function oi(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Me({...i,...e,old:i})}function U5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function As(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Rs(n,e,i){return U5(Fl(n),e,i)}function w2(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,ll(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=Ne.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Fl(d);let[y,m]=U5(v,i,n.zone);return u!==0&&(y+=u,m=n.zone.offset(y)),{ts:y,o:m}}function da(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const y=e||v,m=Me.fromObject(n,{...i,zone:y,specificOffset:d});return u?m:m.setZone(v)}else return Me.invalid(new Tr("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Ps(n,e,i=!0){return n.isValid?Dt.create(tt.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function gc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=gt(n.c.year,i?6:4),e?(o+="-",o+=gt(n.c.month),o+="-",o+=gt(n.c.day)):(o+=gt(n.c.month),o+=gt(n.c.day)),o}function x2(n,e,i,o,l,d){let u=gt(n.c.hour);return e?(u+=":",u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=gt(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=gt(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=gt(Math.trunc(-n.o/60)),u+=":",u+=gt(Math.trunc(-n.o%60))):(u+="+",u+=gt(Math.trunc(n.o/60)),u+=":",u+=gt(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const j5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},DM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},NM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},G5=["year","month","day","hour","minute","second","millisecond"],HM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],RM=["year","ordinal","hour","minute","second","millisecond"];function z2(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new qp(n);return e}function L2(n,e){const i=An(e.zone,pt.defaultZone),o=tt.fromObject(e),l=pt.now();let d,u;if(De(n.year))d=l;else{for(const m of G5)De(n[m])&&(n[m]=j5[m]);const v=Z5(n)||W5(n);if(v)return Me.invalid(v);const y=i.offset(l);[d,u]=Rs(n,y,i)}return new Me({ts:d,zone:i,loc:o,o:u})}function S2(n,e,i){const o=De(i.round)?!0:i.round,l=(u,v)=>(u=z0(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function M2(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Me{constructor(e){const i=e.zone||pt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Tr("invalid input"):null)||(i.isValid?null:Is(i));this.ts=De(e.ts)?pt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=As(this.ts,v),o=Number.isNaN(l.year)?new Tr("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||tt.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Me({})}static local(){const[e,i]=M2(arguments),[o,l,d,u,v,y,m]=i;return L2({year:o,month:l,day:d,hour:u,minute:v,second:y,millisecond:m},e)}static utc(){const[e,i]=M2(arguments),[o,l,d,u,v,y,m]=i;return e.zone=Wt.utcInstance,L2({year:o,month:l,day:d,hour:u,minute:v,second:y,millisecond:m},e)}static fromJSDate(e,i={}){const o=hS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Me.invalid("invalid input");const l=An(i.zone,pt.defaultZone);return l.isValid?new Me({ts:o,zone:l,loc:tt.fromObject(i)}):Me.invalid(Is(l))}static fromMillis(e,i={}){if(hi(e))return e<-C2||e>C2?Me.invalid("Timestamp out of range"):new Me({ts:e,zone:An(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(hi(e))return new Me({ts:e*1e3,zone:An(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=An(i.zone,pt.defaultZone);if(!o.isValid)return Me.invalid(Is(o));const l=pt.now(),d=De(i.specificOffset)?o.offset(l):i.specificOffset,u=ul(e,z2),v=!De(u.ordinal),y=!De(u.year),m=!De(u.month)||!De(u.day),T=y||m,S=u.weekYear||u.weekNumber,$=tt.fromObject(i);if((T||v)&&S)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&v)throw new va("Can't mix ordinal dates with month/day");const E=S||u.weekday&&!T;let N,G,ee=As(l,d);E?(N=HM,G=DM,ee=Zc(ee)):v?(N=RM,G=NM,ee=hc(ee)):(N=G5,G=j5);let te=!1;for(const Ze of N){const We=u[Ze];De(We)?te?u[Ze]=G[Ze]:u[Ze]=ee[Ze]:te=!0}const se=E?AM(u):v?PM(u):Z5(u),re=se||W5(u);if(re)return Me.invalid(re);const ue=E?m2(u):v?y2(u):u,[xe,qe]=Rs(ue,d,o),Ge=new Me({ts:xe,zone:o,o:qe,loc:$});return u.weekday&&T&&e.weekday!==Ge.weekday?Me.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${Ge.toISO()}`):Ge}static fromISO(e,i={}){const[o,l]=tM(e);return da(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=rM(e);return da(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=nM(e);return da(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(De(e)||De(i))throw new fr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,y,m,T]=IM(u,e,i);return T?Me.invalid(T):da(v,y,o,`format ${i}`,e,m)}static fromString(e,i,o={}){return Me.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=uM(e);return da(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the DateTime is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new ZL(o);return new Me({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=N5(e,tt.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return P5(Dt.parseFormat(e),tt.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?pc(this).weekYear:NaN}get weekNumber(){return this.isValid?pc(this).weekNumber:NaN}get weekday(){return this.isValid?pc(this).weekday:NaN}get ordinal(){return this.isValid?hc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Es.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Es.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Es.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Es.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Fl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const y=o-u*i,m=o-v*i,T=As(y,u),S=As(m,v);return T.hour===S.hour&&T.minute===S.minute&&T.second===S.second&&T.millisecond===S.millisecond?[oi(this,{ts:y}),oi(this,{ts:m})]:[this]}get isInLeapYear(){return Ha(this.year)}get daysInMonth(){return ll(this.year,this.month)}get daysInYear(){return this.isValid?ya(this.year):NaN}get weeksInWeekYear(){return this.isValid?cl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Dt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Wt.instance(e),i)}toLocal(){return this.setZone(pt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=An(e,pt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Rs(u,d,e)}return oi(this,{ts:l,zone:e})}else return Me.invalid(Is(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return oi(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=ul(e,z2),o=!De(i.weekYear)||!De(i.weekNumber)||!De(i.weekday),l=!De(i.ordinal),d=!De(i.year),u=!De(i.month)||!De(i.day),v=d||u,y=i.weekYear||i.weekNumber;if((v||l)&&y)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new va("Can't mix ordinal dates with month/day");let m;o?m=m2({...Zc(this.c),...i}):De(i.ordinal)?(m={...this.toObject(),...i},De(i.day)&&(m.day=Math.min(ll(m.year,m.month),m.day))):m=y2({...hc(this.c),...i});const[T,S]=Rs(m,this.o,this.zone);return oi(this,{ts:T,o:S})}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return oi(this,w2(this,i))}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e).negate();return oi(this,w2(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=Ne.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Dt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):fc}toLocaleString(e=sl,i={}){return this.isValid?Dt.create(this.loc.clone(i),e).formatDateTime(this):fc}toLocaleParts(e={}){return this.isValid?Dt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=gc(this,u);return v+="T",v+=x2(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?gc(this,e==="extended"):null}toISOWeekDate(){return Ps(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+x2(this,u==="extended",i,e,o,d):null}toRFC2822(){return Ps(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ps(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),Ps(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():fc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return Ne.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=fS(i).map(Ne.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,y=u?e:this,m=mM(v,y,d,l);return u?m.negate():m}diffNow(e="milliseconds",i={}){return this.diff(Me.now(),e,i)}until(e){return this.isValid?st.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Me.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),S2(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?S2(e.base||Me.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Me.isDateTime))throw new fr("min requires all arguments be DateTimes");return u2(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Me.isDateTime))throw new fr("max requires all arguments be DateTimes");return u2(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return D5(u,e,i)}static fromStringExplain(e,i,o={}){return Me.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return sl}static get DATE_MED(){return Kp}static get DATE_MED_WITH_WEEKDAY(){return jL}static get DATE_FULL(){return Yp}static get DATE_HUGE(){return Xp}static get TIME_SIMPLE(){return Jp}static get TIME_WITH_SECONDS(){return Qp}static get TIME_WITH_SHORT_OFFSET(){return e5}static get TIME_WITH_LONG_OFFSET(){return t5}static get TIME_24_SIMPLE(){return r5}static get TIME_24_WITH_SECONDS(){return n5}static get TIME_24_WITH_SHORT_OFFSET(){return i5}static get TIME_24_WITH_LONG_OFFSET(){return o5}static get DATETIME_SHORT(){return a5}static get DATETIME_SHORT_WITH_SECONDS(){return s5}static get DATETIME_MED(){return l5}static get DATETIME_MED_WITH_SECONDS(){return c5}static get DATETIME_MED_WITH_WEEKDAY(){return GL}static get DATETIME_FULL(){return u5}static get DATETIME_FULL_WITH_SECONDS(){return d5}static get DATETIME_HUGE(){return h5}static get DATETIME_HUGE_WITH_SECONDS(){return f5}}function ha(n){if(Me.isDateTime(n))return n;if(n&&n.valueOf&&hi(n.valueOf()))return Me.fromJSDate(n);if(n&&typeof n=="object")return Me.fromObject(n);throw new fr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const FM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},BM=n=>Me.local().setZone(n).isValid,Wc=n=>n.hour<12,T2=n=>!Wc(n),q5=(n,e)=>Wc(n)&&Wc(e)||T2(n)&&T2(e),vc=(n,e)=>{var l;const i=e&&BM(e)?e:"utc",o=(l=FM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},VM=(n,e,i)=>{let o=Me.fromISO(n),l=Me.fromISO(e);i&&(o=o.setZone(i),l=l.setZone(i));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},k2=n=>ZM(K5(n)),ZM=n=>n.replace(/Sept/,"Sep"),K5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),dl=n=>n.minute===0?"h":"h:mm",hl=(n,e)=>n.year!==e.year?" yyyy":"";var WM=Object.defineProperty,UM=Object.getOwnPropertyDescriptor,Fn=(n,e,i,o)=>{for(var l=o>1?void 0:o?UM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&WM(e,i,l),l};const Y5=ne("input-time"),X5="h:mma",J5=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,Q5=/^(1[3-9]|2[0-3]).*/,e6=/^(\d\d?)(am?|pm?)/,jM=["UTC","AEST"],t6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),$2=(n,e)=>{const o=Math.ceil(1440/n),l=Me.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),y=K5(v.toFormat(X5));return t6(y,e)})},GM=(n,e)=>{const i=n.trim(),o=n.match(J5);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),y=v>12?`${v-12}`:`${v}`,m=`${d}${u||0}`,T=`${y}:${m}`;return["am","pm"].map(S=>t6(`${T}${S}`,e))},qM=(n,{value:e})=>{const i=n.match(Q5);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},KM=(n,{value:e})=>{const i=n.match(e6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},YM=(...n)=>KM(...n)||qM(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=$2(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=$2(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?YM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=GM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return P`
|
|
3502
3502
|
${this.handleNoResults()} ${this.renderOptionsData()}
|
|
3503
3503
|
${this.renderFreeformOptions()}
|
|
3504
|
-
`}};Fn([O({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Fn([O({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Fn([O({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Fn([O({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Fn([O({type:String})],exports.InputTime.prototype,"placeholder",2);Fn([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Fn([pe()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Fn([R(
|
|
3504
|
+
`}};Fn([O({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Fn([O({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Fn([O({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Fn([O({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Fn([O({type:String})],exports.InputTime.prototype,"placeholder",2);Fn([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Fn([pe()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Fn([R(Y5)],exports.InputTime);var XM=Object.defineProperty,JM=Object.getOwnPropertyDescriptor,bn=(n,e,i,o)=>{for(var l=o>1?void 0:o?JM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&XM(e,i,l),l};const r6=ne("toggle-switch"),fa={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends Jt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=fa.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===fa.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?fa.Checked:fa.Empty;const e=P`<span>${this.label}</span>`,i=P`<div class="switch">
|
|
3505
3505
|
<div class="toggle"></div>
|
|
3506
3506
|
<div class="switch-on">${this.switchOnLabel}</div>
|
|
3507
3507
|
<div class="switch-off">${this.switchOffLabel}</div>
|
|
@@ -3662,7 +3662,7 @@ ${this.value}</textarea
|
|
|
3662
3662
|
background: var(--brz-color-neutral-200);
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
|
-
`];bn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);bn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);bn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);bn([O()],exports.ToggleSwitch.prototype,"value",2);bn([O({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);bn([O({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);bn([pe()],exports.ToggleSwitch.prototype,"toggleState",2);bn([O({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=bn([R(
|
|
3665
|
+
`];bn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);bn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);bn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);bn([O()],exports.ToggleSwitch.prototype,"value",2);bn([O({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);bn([O({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);bn([pe()],exports.ToggleSwitch.prototype,"toggleState",2);bn([O({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=bn([R(r6)],exports.ToggleSwitch);var QM=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,k0=(n,e,i,o)=>{for(var l=o>1?void 0:o?eT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&QM(e,i,l),l};const n6=ne("heading");exports.Heading=class extends me{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return P`<h1 class=${e}><slot></slot></h1>`;case 2:return P`<h2 class=${e}><slot></slot></h2>`;case 3:return P`<h3 class=${e}><slot></slot></h3>`;case 4:return P`<h4 class=${e}><slot></slot></h4>`;case 5:return P`<h5 class=${e}><slot></slot></h5>`;case 6:return P`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=j`
|
|
3666
3666
|
h1,
|
|
3667
3667
|
h2,
|
|
3668
3668
|
h3,
|
|
@@ -3707,7 +3707,7 @@ ${this.value}</textarea
|
|
|
3707
3707
|
:host {
|
|
3708
3708
|
display: block;
|
|
3709
3709
|
}
|
|
3710
|
-
`;
|
|
3710
|
+
`;k0([O({type:String})],exports.Heading.prototype,"size",2);k0([O({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=k0([R(n6)],exports.Heading);const i6=ne("inline-edit-field"),$0=ne("inline-edit-group"),o6=ne("inline-edit-controls"),a6=["edit","saving","error"],tT=["read","saved",...a6];class s6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class l6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class c6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class u6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const rT=j`
|
|
3711
3711
|
:host {
|
|
3712
3712
|
display: block;
|
|
3713
3713
|
}
|
|
@@ -3797,7 +3797,7 @@ ${this.value}</textarea
|
|
|
3797
3797
|
|
|
3798
3798
|
margin-top: var(--brz-inline-edit-controls-spacing);
|
|
3799
3799
|
}
|
|
3800
|
-
`,
|
|
3800
|
+
`,nT=j`
|
|
3801
3801
|
.inline-edit-group {
|
|
3802
3802
|
display: inline-flex;
|
|
3803
3803
|
flex-direction: column;
|
|
@@ -3808,7 +3808,7 @@ ${this.value}</textarea
|
|
|
3808
3808
|
brz-inline-edit-controls {
|
|
3809
3809
|
margin-top: var(--brz-inline-edit-controls-spacing);
|
|
3810
3810
|
}
|
|
3811
|
-
`,
|
|
3811
|
+
`,iT=j`
|
|
3812
3812
|
:host {
|
|
3813
3813
|
--brz-inline-edit-controls-spacing: var(--brz-spacing-4);
|
|
3814
3814
|
|
|
@@ -3816,7 +3816,7 @@ ${this.value}</textarea
|
|
|
3816
3816
|
flex-direction: column;
|
|
3817
3817
|
row-gap: var(--brz-inline-edit-controls-spacing);
|
|
3818
3818
|
}
|
|
3819
|
-
`;var
|
|
3819
|
+
`;var oT=Object.defineProperty,aT=Object.getOwnPropertyDescriptor,h6=(n,e,i,o)=>{for(var l=o>1?void 0:o?aT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oT(e,i,l),l};exports.InlineEditControls=class extends me{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new s6)}handleSaveClick(){this.dispatchEvent(new l6)}render(){return P`
|
|
3820
3820
|
<brz-split-row>
|
|
3821
3821
|
<brz-button-group slot="right">
|
|
3822
3822
|
${["edit","error"].includes(this.mode)?P`
|
|
@@ -3841,7 +3841,7 @@ ${this.value}</textarea
|
|
|
3841
3841
|
</brz-split-row>
|
|
3842
3842
|
|
|
3843
3843
|
${this.mode==="error"?P` <slot name="error"></slot> `:null}
|
|
3844
|
-
`}};exports.InlineEditControls.styles=[
|
|
3844
|
+
`}};exports.InlineEditControls.styles=[iT];h6([O()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=h6([R(o6)],exports.InlineEditControls);var sT=Object.defineProperty,lT=Object.getOwnPropertyDescriptor,O0=(n,e,i,o)=>{for(var l=o>1?void 0:o?lT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sT(e,i,l),l};class Ba extends me{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}O0([O({type:Boolean,reflect:!0})],Ba.prototype,"locked",2);O0([O({type:Function,attribute:!1})],Ba.prototype,"save",2);O0([pe()],Ba.prototype,"mode",2);var cT=Object.defineProperty,uT=Object.getOwnPropertyDescriptor,E0=(n,e,i,o)=>{for(var l=o>1?void 0:o?uT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cT(e,i,l),l};exports.InlineEditGroup=class extends Ba{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new d6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return P`
|
|
3845
3845
|
<slot
|
|
3846
3846
|
@brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
|
|
3847
3847
|
>
|
|
@@ -3861,7 +3861,7 @@ ${this.value}</textarea
|
|
|
3861
3861
|
</slot>
|
|
3862
3862
|
`:null}
|
|
3863
3863
|
</dl>
|
|
3864
|
-
`}};exports.InlineEditGroup.styles=[
|
|
3864
|
+
`}};exports.InlineEditGroup.styles=[nT];E0([O({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);E0([pe()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=E0([R($0)],exports.InlineEditGroup);var dT=Object.defineProperty,hT=Object.getOwnPropertyDescriptor,Ir=(n,e,i,o)=>{for(var l=o>1?void 0:o?hT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dT(e,i,l),l};const fT=n=>n instanceof vt&&!!n.options.length;exports.InlineEditField=class extends Ba{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new u6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,fT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof vt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof Jt))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(e){return P`
|
|
3865
3865
|
<brz-lozenge theme="subtle" color="sapphire" size="small">
|
|
3866
3866
|
${e}
|
|
3867
3867
|
</brz-lozenge>
|
|
@@ -3922,7 +3922,7 @@ ${this.value}</textarea
|
|
|
3922
3922
|
</slot>
|
|
3923
3923
|
`}
|
|
3924
3924
|
</div>
|
|
3925
|
-
`}get group(){return this.closest(
|
|
3925
|
+
`}get group(){return this.closest($0)}emitBroadcastEvent(){this.dispatchEvent(new c6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[rT];Ir([O({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Ir([O({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Ir([pe()],exports.InlineEditField.prototype,"labelPosition",2);Ir([pe()],exports.InlineEditField.prototype,"size",2);Ir([pe()],exports.InlineEditField.prototype,"value",2);Ir([pe()],exports.InlineEditField.prototype,"options",2);Ir([pe()],exports.InlineEditField.prototype,"label",2);Ir([pe()],exports.InlineEditField.prototype,"hasLabel",2);Ir([pe()],exports.InlineEditField.prototype,"isValueOverflowing",2);Ir([Er(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Ir([R(i6)],exports.InlineEditField);var pT=Object.defineProperty,gT=Object.getOwnPropertyDescriptor,Va=(n,e,i,o)=>{for(var l=o>1?void 0:o?gT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pT(e,i,l),l};const f6=ne("side-navigation-item"),vT=j`
|
|
3926
3926
|
:host li {
|
|
3927
3927
|
list-style: none;
|
|
3928
3928
|
padding: var(--brz-spacing-2) 0;
|
|
@@ -3958,7 +3958,7 @@ ${this.value}</textarea
|
|
|
3958
3958
|
<slot></slot>
|
|
3959
3959
|
</a>
|
|
3960
3960
|
</li>
|
|
3961
|
-
`}};exports.SideNavigationItem.styles=[
|
|
3961
|
+
`}};exports.SideNavigationItem.styles=[vT];Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Va([O({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Va([R(f6)],exports.SideNavigationItem);var bT=Object.defineProperty,mT=Object.getOwnPropertyDescriptor,yT=(n,e,i,o)=>{for(var l=o>1?void 0:o?mT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&bT(e,i,l),l};const p6=ne("side-navigation"),CT=j`
|
|
3962
3962
|
:host {
|
|
3963
3963
|
display: block;
|
|
3964
3964
|
height: 100%;
|
|
@@ -3972,15 +3972,15 @@ ${this.value}</textarea
|
|
|
3972
3972
|
}
|
|
3973
3973
|
`;exports.SideNavigation=class extends me{render(){return P`<ul>
|
|
3974
3974
|
<slot></slot>
|
|
3975
|
-
</ul>`}};exports.SideNavigation.styles=[
|
|
3975
|
+
</ul>`}};exports.SideNavigation.styles=[CT];exports.SideNavigation=yT([R(p6)],exports.SideNavigation);var wT=Object.defineProperty,xT=Object.getOwnPropertyDescriptor,g6=(n,e,i,o)=>{for(var l=o>1?void 0:o?xT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wT(e,i,l),l};const v6=ne("record-row"),b6=ne("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,j`
|
|
3976
3976
|
:host(:nth-of-type(n + 2)) {
|
|
3977
3977
|
margin-top: var(--brz-spacing-4);
|
|
3978
3978
|
}
|
|
3979
|
-
`];exports.RecordRow=
|
|
3979
|
+
`];exports.RecordRow=g6([R(v6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=g6([R(b6)],exports.RecordRowLabel);var zT=Object.defineProperty,LT=Object.getOwnPropertyDescriptor,_0=(n,e,i,o)=>{for(var l=o>1?void 0:o?LT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zT(e,i,l),l};const m6=ne("tab-panel");exports.TabPanel=class extends me{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return P`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=j`
|
|
3980
3980
|
:host(:not([shown])) #panel {
|
|
3981
3981
|
display: none;
|
|
3982
3982
|
}
|
|
3983
|
-
`;
|
|
3983
|
+
`;_0([O({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);_0([O({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=_0([R(m6)],exports.TabPanel);class Zl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class y6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var ST=Object.defineProperty,MT=Object.getOwnPropertyDescriptor,Wl=(n,e,i,o)=>{for(var l=o>1?void 0:o?MT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ST(e,i,l),l};const C6=ne("tab");exports.Tab=class extends me{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Zl(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new y6(this.name)),super.updated(e)}render(){return this.link?P`<a href=${this.link} id="tab"><slot></slot></a>`:P`<div
|
|
3984
3984
|
tabindex="0"
|
|
3985
3985
|
role="tab"
|
|
3986
3986
|
aria-selected=${this.selected}
|
|
@@ -4008,7 +4008,7 @@ ${this.value}</textarea
|
|
|
4008
4008
|
#tab:hover {
|
|
4009
4009
|
color: var(--brz-color-neutral-850);
|
|
4010
4010
|
}
|
|
4011
|
-
`;Wl([O({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Wl([O({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Wl([O({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Wl([R(
|
|
4011
|
+
`;Wl([O({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Wl([O({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Wl([O({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Wl([R(C6)],exports.Tab);var TT=Object.defineProperty,kT=Object.getOwnPropertyDescriptor,Ul=(n,e,i,o)=>{for(var l=o>1?void 0:o?kT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&TT(e,i,l),l};const w6=ne("tab-bar");exports.TabBar=class extends me{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Zl(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return P`
|
|
4012
4012
|
<brz-row id="tabbar" @click=${this.handleClick}>
|
|
4013
4013
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
4014
4014
|
</brz-row>
|
|
@@ -4030,7 +4030,7 @@ ${this.value}</textarea
|
|
|
4030
4030
|
top: 0;
|
|
4031
4031
|
z-index: 1;
|
|
4032
4032
|
}
|
|
4033
|
-
`;Ul([O({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ul([O({type:String})],exports.TabBar.prototype,"selected",2);Ul([pe()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ul([R(
|
|
4033
|
+
`;Ul([O({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ul([O({type:String})],exports.TabBar.prototype,"selected",2);Ul([pe()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ul([R(w6)],exports.TabBar);var $T=Object.defineProperty,OT=Object.getOwnPropertyDescriptor,I0=(n,e,i,o)=>{for(var l=o>1?void 0:o?OT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$T(e,i,l),l};const x6=ne("tabs");exports.Tabs=class extends me{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Zl(this.selected))}render(){return P`
|
|
4034
4034
|
<brz-tab-bar
|
|
4035
4035
|
controlled
|
|
4036
4036
|
selected=${this.selected}
|
|
@@ -4043,7 +4043,7 @@ ${this.value}</textarea
|
|
|
4043
4043
|
:host {
|
|
4044
4044
|
background-color: var(--brz-color-white);
|
|
4045
4045
|
}
|
|
4046
|
-
`;
|
|
4046
|
+
`;I0([O({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);I0([pe()],exports.Tabs.prototype,"panels",2);exports.Tabs=I0([R(x6)],exports.Tabs);var ET=Object.defineProperty,_T=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?_T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ET(e,i,l),l};const z6=ne("badge");var L6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(L6||{});const IT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),S6=5,M6=99;exports.Badge=class extends me{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?M6:S6)}updated(e){super.updated(e),e.has("content")&&(this.content=IT(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return P` <span>${this.generateContent()}</span> `}};exports.Badge.styles=j`
|
|
4047
4047
|
:host {
|
|
4048
4048
|
--brz-badge-background-color: var(--brz-color-neutral-250);
|
|
4049
4049
|
--brz-badge-color: var(--brz-color-neutral-750);
|
|
@@ -4075,7 +4075,7 @@ ${this.value}</textarea
|
|
|
4075
4075
|
--brz-badge-background-color: var(--brz-color-red-600);
|
|
4076
4076
|
--brz-badge-color: var(--brz-color-white);
|
|
4077
4077
|
}
|
|
4078
|
-
`;jl([O({reflect:!0})],exports.Badge.prototype,"theme",2);jl([O({type:Number})],exports.Badge.prototype,"limit",2);jl([O({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=jl([R(
|
|
4078
|
+
`;jl([O({reflect:!0})],exports.Badge.prototype,"theme",2);jl([O({type:Number})],exports.Badge.prototype,"limit",2);jl([O({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=jl([R(z6)],exports.Badge);var AT=Math.ceil,PT=Math.max;function DT(n,e,i,o){for(var l=-1,d=PT(AT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var NT=DT,HT=u0,RT=Uf,FT=f0,BT=Ia;function VT(n,e,i){if(!BT(i))return!1;var o=typeof e;return(o=="number"?RT(i)&&FT(e,i.length):o=="string"&&e in i)?HT(i[e],n):!1}var ZT=VT,WT=NT,UT=ZT,bc=rp;function jT(n){return function(e,i,o){return o&&typeof o!="number"&&UT(e,i,o)&&(i=o=void 0),e=bc(e),i===void 0?(i=e,e=0):i=bc(i),o=o===void 0?e<i?1:-1:bc(o),WT(e,i,o,n)}}var GT=jT,qT=GT,KT=qT(),YT=KT;const Gl=c0(YT);function XT(n,e,i){return[1,null,...Gl(n-e,n+e+1),null,i]}function JT(n,e){return[1,null,...Gl(n-(e-3),n+1)]}function QT(n,e){return[...Gl(1,e-1),null,n]}function ek(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function tk(n,e=1,i=1){const o=5+i*2;if(n<=o)return Gl(1,n+1);if(ek(e,i,n))return XT(e,i,n);if(e+(o-3)>=n)return JT(n,o);if(e<o)return QT(n,o)}var rk=Object.defineProperty,nk=Object.getOwnPropertyDescriptor,Yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?nk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rk(e,i,l),l};const A0=ne("basic-pagination"),P0=ne("pagination");class T6 extends CustomEvent{constructor(e){super(`${A0}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends me{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new T6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return P`
|
|
4079
4079
|
<brz-button-group role="navigation" aria-label="Pagination Navigation">
|
|
4080
4080
|
<brz-button
|
|
4081
4081
|
compact
|
|
@@ -4101,7 +4101,7 @@ ${this.value}</textarea
|
|
|
4101
4101
|
brz-button-group {
|
|
4102
4102
|
--brz-spacing-2: var(--brz-spacing-1);
|
|
4103
4103
|
}
|
|
4104
|
-
`;Yr([O({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Yr([O({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Yr([R(
|
|
4104
|
+
`;Yr([O({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Yr([O({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Yr([R(A0)],exports.BasicPagination);class k6 extends CustomEvent{constructor(e,i){super(`${P0}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends me{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new k6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=tk(this.totalPages,this.currentPage,this.currentPageSiblings),P`
|
|
4105
4105
|
<brz-row role="navigation" aria-label="Pagination Navigation">
|
|
4106
4106
|
<button
|
|
4107
4107
|
role="link"
|
|
@@ -4202,7 +4202,7 @@ ${this.value}</textarea
|
|
|
4202
4202
|
.page {
|
|
4203
4203
|
padding: 0 var(--brz-spacing-2);
|
|
4204
4204
|
}
|
|
4205
|
-
`;Yr([O({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Yr([O({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Yr([O({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Yr([pe()],exports.Pagination.prototype,"currentPageSiblings",2);Yr([pe()],exports.Pagination.prototype,"totalPages",2);Yr([pe()],exports.Pagination.prototype,"pages",2);exports.Pagination=Yr([R(
|
|
4205
|
+
`;Yr([O({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Yr([O({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Yr([O({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Yr([pe()],exports.Pagination.prototype,"currentPageSiblings",2);Yr([pe()],exports.Pagination.prototype,"totalPages",2);Yr([pe()],exports.Pagination.prototype,"pages",2);exports.Pagination=Yr([R(P0)],exports.Pagination);var ik=Object.defineProperty,ok=Object.getOwnPropertyDescriptor,Za=(n,e,i,o)=>{for(var l=o>1?void 0:o?ok(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ik(e,i,l),l};const ak=["info","success","warning","error"],$6=ne("alert");class O6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends me{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 O6("brz-alert-cleared"))}render(){return this.cleared?null:P`<div class="alert-container">
|
|
4206
4206
|
<brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
|
|
4207
4207
|
<div role="alert">
|
|
4208
4208
|
${this.title?P`<div><brz-heading>${this.title}</brz-heading></div>`:P``}
|
|
@@ -4278,7 +4278,7 @@ ${this.value}</textarea
|
|
|
4278
4278
|
padding-top: 1px;
|
|
4279
4279
|
}
|
|
4280
4280
|
|
|
4281
|
-
${
|
|
4281
|
+
${rf(".clear-button",j`
|
|
4282
4282
|
align-self: start;
|
|
4283
4283
|
margin-left: auto;
|
|
4284
4284
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
@@ -4287,7 +4287,7 @@ ${this.value}</textarea
|
|
|
4287
4287
|
.clear-button brz-icon {
|
|
4288
4288
|
vertical-align: middle;
|
|
4289
4289
|
}
|
|
4290
|
-
`;Za([O({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Za([O({type:Boolean})],exports.Alert.prototype,"clearable",2);Za([O()],exports.Alert.prototype,"title",2);Za([pe()],exports.Alert.prototype,"cleared",2);exports.Alert=Za([R(
|
|
4290
|
+
`;Za([O({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Za([O({type:Boolean})],exports.Alert.prototype,"clearable",2);Za([O()],exports.Alert.prototype,"title",2);Za([pe()],exports.Alert.prototype,"cleared",2);exports.Alert=Za([R($6)],exports.Alert);const D0={resources:D`
|
|
4291
4291
|
<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"/>
|
|
4292
4292
|
<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"/>
|
|
4293
4293
|
<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"/>
|
|
@@ -4381,7 +4381,7 @@ ${this.value}</textarea
|
|
|
4381
4381
|
<circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
|
|
4382
4382
|
<circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
|
|
4383
4383
|
<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"/>
|
|
4384
|
-
<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"/>`},
|
|
4384
|
+
<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"/>`},sk=Object.keys(D0);var lk=Object.defineProperty,ck=Object.getOwnPropertyDescriptor,ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?ck(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lk(e,i,l),l};const E6=ne("illustration");exports.Illustration=class extends me{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=D0[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return P`<svg
|
|
4385
4385
|
aria-hidden=${!this.altTitle.length||!this.altDescription.length}
|
|
4386
4386
|
role="img"
|
|
4387
4387
|
aria-labelledby=${`${o} ${l}`}
|
|
@@ -4397,13 +4397,13 @@ ${this.value}</textarea
|
|
|
4397
4397
|
/* to get rid of extra height caused by white space */
|
|
4398
4398
|
line-height: 0;
|
|
4399
4399
|
}
|
|
4400
|
-
`;ql([O({type:String})],exports.Illustration.prototype,"illustration",2);ql([O({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ql([O({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ql([R(
|
|
4400
|
+
`;ql([O({type:String})],exports.Illustration.prototype,"illustration",2);ql([O({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ql([O({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ql([R(E6)],exports.Illustration);var uk=Object.defineProperty,dk=Object.getOwnPropertyDescriptor,hk=(n,e,i,o)=>{for(var l=o>1?void 0:o?dk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uk(e,i,l),l};const _6=ne("header");exports.Header=class extends me{render(){return P`<slot></slot>`}};exports.Header.styles=j`
|
|
4401
4401
|
:host {
|
|
4402
4402
|
display: block;
|
|
4403
4403
|
padding: var(--brz-spacing-5);
|
|
4404
4404
|
margin-bottom: var(--brz-spacing-4);
|
|
4405
4405
|
}
|
|
4406
|
-
`;exports.Header=
|
|
4406
|
+
`;exports.Header=hk([R(_6)],exports.Header);var fk=Object.defineProperty,pk=Object.getOwnPropertyDescriptor,gk=(n,e,i,o)=>{for(var l=o>1?void 0:o?pk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fk(e,i,l),l};const I6=ne("header-footer-page");exports.HeaderFooterPage=class extends me{render(){return P`
|
|
4407
4407
|
<div id="container">
|
|
4408
4408
|
<div id="header"><slot name="header"></slot></div>
|
|
4409
4409
|
<div id="body"><slot></slot></div>
|
|
@@ -4427,7 +4427,7 @@ ${this.value}</textarea
|
|
|
4427
4427
|
flex: 1 1;
|
|
4428
4428
|
overflow-y: auto;
|
|
4429
4429
|
}
|
|
4430
|
-
`;exports.HeaderFooterPage=
|
|
4430
|
+
`;exports.HeaderFooterPage=gk([R(I6)],exports.HeaderFooterPage);var vk=Object.defineProperty,bk=Object.getOwnPropertyDescriptor,mk=(n,e,i,o)=>{for(var l=o>1?void 0:o?bk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vk(e,i,l),l};const A6=ne("responsive-columns");exports.ResponsiveColumns=class extends me{render(){return P`<slot></slot>`}};exports.ResponsiveColumns.styles=j`
|
|
4431
4431
|
:host {
|
|
4432
4432
|
display: flex;
|
|
4433
4433
|
flex-direction: row;
|
|
@@ -4459,7 +4459,7 @@ ${this.value}</textarea
|
|
|
4459
4459
|
margin-bottom: var(--brz-padding, var(--brz-spacing-8));
|
|
4460
4460
|
}
|
|
4461
4461
|
}
|
|
4462
|
-
`;exports.ResponsiveColumns=
|
|
4462
|
+
`;exports.ResponsiveColumns=mk([R(A6)],exports.ResponsiveColumns);var yk=Object.defineProperty,Ck=Object.getOwnPropertyDescriptor,wk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ck(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yk(e,i,l),l};const P6=ne("footer");exports.Footer=class extends me{render(){return P`<div class="container">
|
|
4463
4463
|
<slot name="left"></slot>
|
|
4464
4464
|
<slot name="middle"></slot>
|
|
4465
4465
|
<slot name="right"></slot>
|
|
@@ -4470,7 +4470,7 @@ ${this.value}</textarea
|
|
|
4470
4470
|
justify-content: space-between;
|
|
4471
4471
|
padding: var(--brz-spacing-3) var(--brz-spacing-4);
|
|
4472
4472
|
}
|
|
4473
|
-
`;exports.Footer=
|
|
4473
|
+
`;exports.Footer=wk([R(P6)],exports.Footer);var xk=Object.defineProperty,zk=Object.getOwnPropertyDescriptor,Kl=(n,e,i,o)=>{for(var l=o>1?void 0:o?zk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xk(e,i,l),l};const D6=ne("page-header");exports.PageHeader=class extends me{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return P`
|
|
4474
4474
|
<header>
|
|
4475
4475
|
<slot name="decorator"></slot>
|
|
4476
4476
|
|
|
@@ -4530,7 +4530,7 @@ ${this.value}</textarea
|
|
|
4530
4530
|
brz-heading.hidden {
|
|
4531
4531
|
display: none;
|
|
4532
4532
|
}
|
|
4533
|
-
`;Kl([O({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Kl([pe()],exports.PageHeader.prototype,"hasTitle",2);Kl([
|
|
4533
|
+
`;Kl([O({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Kl([pe()],exports.PageHeader.prototype,"hasTitle",2);Kl([Yc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Kl([R(D6)],exports.PageHeader);var Lk=Object.defineProperty,Sk=Object.getOwnPropertyDescriptor,Yl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Sk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Lk(e,i,l),l};const N6=ne("grid"),Mk=Ea.map(n=>j`
|
|
4534
4534
|
:host([spacing='${n}']),
|
|
4535
4535
|
:host([col-spacing='${n}']) {
|
|
4536
4536
|
--brz-grid-column-gap: var(--brz-spacing-${n});
|
|
@@ -4539,7 +4539,7 @@ ${this.value}</textarea
|
|
|
4539
4539
|
:host([row-spacing='${n}']) {
|
|
4540
4540
|
--brz-grid-row-gap: var(--brz-spacing-${n});
|
|
4541
4541
|
}
|
|
4542
|
-
`);exports.Grid=class extends ho{render(){return P`<slot></slot>`}};var
|
|
4542
|
+
`);exports.Grid=class extends ho{render(){return P`<slot></slot>`}};var _2;exports.Grid.styles=[(_2=ho.styles)!=null?_2:[],j`
|
|
4543
4543
|
:host {
|
|
4544
4544
|
--brz-grid-columns: 12;
|
|
4545
4545
|
--brz-grid-column-gap: var(--brz-spacing-5);
|
|
@@ -4552,34 +4552,34 @@ ${this.value}</textarea
|
|
|
4552
4552
|
column-gap: var(--brz-grid-column-gap);
|
|
4553
4553
|
row-gap: var(--brz-grid-row-gap);
|
|
4554
4554
|
}
|
|
4555
|
-
`,...
|
|
4555
|
+
`,...Mk];Yl([O({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Yl([O({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Yl([O({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Yl([R(N6)],exports.Grid);const fl={lg:960,md:640},Tk=j`
|
|
4556
4556
|
--brz-breakpoint-lg: ${fl.lg}px;
|
|
4557
4557
|
--brz-breakpoint-md: ${fl.md}px;
|
|
4558
|
-
`,
|
|
4558
|
+
`,mc=n=>(e,...i)=>j`
|
|
4559
4559
|
@media (max-width: ${fl[n]}px) {
|
|
4560
4560
|
${j(e,...i)}
|
|
4561
4561
|
}
|
|
4562
|
-
|
|
4562
|
+
`,O2=n=>(e,...i)=>j`
|
|
4563
4563
|
@media (min-width: ${fl[n]}px) {
|
|
4564
4564
|
${j(e,...i)}
|
|
4565
4565
|
}
|
|
4566
|
-
`,pl={breakpointUp
|
|
4566
|
+
`,pl={breakpointUp:O2,breakpointDown:mc,sm:mc("md"),md:mc("lg"),lg:O2("lg")};var kk=Object.defineProperty,$k=Object.getOwnPropertyDescriptor,Xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?$k(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kk(e,i,l),l};const H6=ne("grid-item"),Jl=[1,2,3,4,5,6,7,8,9,10,11,12],Ok=Jl.map(n=>j`
|
|
4567
4567
|
:host([cols='${n}']) {
|
|
4568
4568
|
grid-column: auto / span ${n};
|
|
4569
4569
|
}
|
|
4570
|
-
`),
|
|
4570
|
+
`),Ek=Jl.map(n=>j`
|
|
4571
4571
|
${pl.md`
|
|
4572
4572
|
:host([md-cols='${n}']) {
|
|
4573
4573
|
grid-column: auto / span ${n};
|
|
4574
4574
|
}
|
|
4575
4575
|
`}
|
|
4576
|
-
`),
|
|
4576
|
+
`),_k=Jl.map(n=>j`
|
|
4577
4577
|
${pl.sm`
|
|
4578
4578
|
:host([sm-cols='${n}']) {
|
|
4579
4579
|
grid-column: auto / span ${n};
|
|
4580
4580
|
}
|
|
4581
4581
|
`}
|
|
4582
|
-
`),
|
|
4582
|
+
`),Ik=j`
|
|
4583
4583
|
${pl.md`
|
|
4584
4584
|
:host([cols='9']:not([md-cols])),
|
|
4585
4585
|
:host([cols='8']:not([md-cols])),
|
|
@@ -4599,7 +4599,7 @@ ${this.value}</textarea
|
|
|
4599
4599
|
:host {
|
|
4600
4600
|
grid-column: auto / span 12;
|
|
4601
4601
|
}
|
|
4602
|
-
|
|
4602
|
+
`,Ok,Ik,Ek,_k];Xl([O({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Xl([O({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Xl([O({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Xl([R(H6)],exports.GridItem);const Ak=j`
|
|
4603
4603
|
:host {
|
|
4604
4604
|
--brz-border-radius-default: 2px;
|
|
4605
4605
|
--brz-border-radius-medium: 3px;
|
|
@@ -4607,7 +4607,7 @@ ${this.value}</textarea
|
|
|
4607
4607
|
|
|
4608
4608
|
--brz-border-divider: 1px solid var(--brz-color-neutral-400);
|
|
4609
4609
|
}
|
|
4610
|
-
`,
|
|
4610
|
+
`,Pk=j`
|
|
4611
4611
|
:host {
|
|
4612
4612
|
--brz-color-neutral-900: #1b263a;
|
|
4613
4613
|
--brz-color-neutral-850: #223049;
|
|
@@ -4800,7 +4800,7 @@ ${this.value}</textarea
|
|
|
4800
4800
|
|
|
4801
4801
|
--brz-color-text-on-color: var(--brz-color-white);
|
|
4802
4802
|
}
|
|
4803
|
-
`,
|
|
4803
|
+
`,Dk=j`
|
|
4804
4804
|
:host {
|
|
4805
4805
|
--sp-border-radius-default: var(--brz-border-radius-default);
|
|
4806
4806
|
--sp-border-radius-medium: var(--brz-border-radius-medium)
|
|
@@ -5065,14 +5065,14 @@ ${this.value}</textarea
|
|
|
5065
5065
|
--sp-z-index-dropdown: var(--brz-z-index-dropdown);
|
|
5066
5066
|
--sp-z-index-tooltip: var(--brz-z-index-tooltip);
|
|
5067
5067
|
}
|
|
5068
|
-
`,
|
|
5068
|
+
`,Nk=j`
|
|
5069
5069
|
:host {
|
|
5070
5070
|
// TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
|
|
5071
5071
|
--brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
|
|
5072
5072
|
--brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
|
|
5073
5073
|
--brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
|
|
5074
5074
|
}
|
|
5075
|
-
`,
|
|
5075
|
+
`,Hk=j`
|
|
5076
5076
|
:host {
|
|
5077
5077
|
--brz-font-family-brand: Inter, sofiapro;
|
|
5078
5078
|
--brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
|
|
@@ -5116,14 +5116,14 @@ ${this.value}</textarea
|
|
|
5116
5116
|
--brz-text-block-max-width: 44rem;
|
|
5117
5117
|
--brz-list-block-max-width: 40rem;
|
|
5118
5118
|
}
|
|
5119
|
-
`,
|
|
5119
|
+
`,Rk=j`
|
|
5120
5120
|
:host {
|
|
5121
5121
|
--brz-z-index-navigation: 1000;
|
|
5122
5122
|
--brz-z-index-dialog: 1100;
|
|
5123
5123
|
--brz-z-index-dropdown: 1200;
|
|
5124
5124
|
--brz-z-index-tooltip: 1300;
|
|
5125
5125
|
}
|
|
5126
|
-
`;var
|
|
5126
|
+
`;var Fk=Object.defineProperty,Bk=Object.getOwnPropertyDescriptor,Vk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Bk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Fk(e,i,l),l};const R6=ne("global-styles");exports.GlobalStyles=class extends me{render(){return P`<slot></slot>`}};exports.GlobalStyles.styles=[Pk,zf,Hk,Ak,Nk,Rk,Tk,Dk,j`
|
|
5127
5127
|
:host {
|
|
5128
5128
|
--brz-outline-color: var(--brz-color-primary-600);
|
|
5129
5129
|
--brz-outline-style: solid;
|
|
@@ -5141,7 +5141,7 @@ ${this.value}</textarea
|
|
|
5141
5141
|
font-weight: var(--brz-font-weight-normal);
|
|
5142
5142
|
color: var(--brz-color-text);
|
|
5143
5143
|
}
|
|
5144
|
-
`];exports.GlobalStyles=
|
|
5144
|
+
`];exports.GlobalStyles=Vk([R(R6)],exports.GlobalStyles);const F6=ne("card"),B6=ne("card-header"),V6=ne("card-footer"),Z6=ne("card-section-header"),Zk=j`
|
|
5145
5145
|
:host {
|
|
5146
5146
|
--brz-card-background-color: var(--brz-color-white);
|
|
5147
5147
|
--brz-card-color: var(--brz-color-text);
|
|
@@ -5179,7 +5179,7 @@ ${this.value}</textarea
|
|
|
5179
5179
|
|
|
5180
5180
|
padding-bottom: calc(2 * var(--brz-card-body-balancer));
|
|
5181
5181
|
}
|
|
5182
|
-
`,
|
|
5182
|
+
`,Wk=n=>j`
|
|
5183
5183
|
:host([padding='${n}']) {
|
|
5184
5184
|
--brz-card-padding: var(--brz-spacing-${n});
|
|
5185
5185
|
}
|
|
@@ -5187,7 +5187,7 @@ ${this.value}</textarea
|
|
|
5187
5187
|
:host([body-padding='${n}']) {
|
|
5188
5188
|
--brz-card-body-padding: var(--brz-spacing-${n});
|
|
5189
5189
|
}
|
|
5190
|
-
`,
|
|
5190
|
+
`,Uk=Ea.map(Wk),jk=j`
|
|
5191
5191
|
:host {
|
|
5192
5192
|
--brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
|
|
5193
5193
|
--brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -5235,7 +5235,7 @@ ${this.value}</textarea
|
|
|
5235
5235
|
align-self: flex-start;
|
|
5236
5236
|
flex-shrink: 0;
|
|
5237
5237
|
}
|
|
5238
|
-
`,
|
|
5238
|
+
`,Gk=j`
|
|
5239
5239
|
:host {
|
|
5240
5240
|
--brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
|
|
5241
5241
|
--brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -5263,7 +5263,7 @@ ${this.value}</textarea
|
|
|
5263
5263
|
align-self: flex-start;
|
|
5264
5264
|
flex-shrink: 0;
|
|
5265
5265
|
}
|
|
5266
|
-
`;var
|
|
5266
|
+
`;var qk=Object.defineProperty,Kk=Object.getOwnPropertyDescriptor,Yk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Kk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&qk(e,i,l),l};exports.CardHeader=class extends me{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return P`
|
|
5267
5267
|
<div class="title">
|
|
5268
5268
|
<slot></slot>
|
|
5269
5269
|
</div>
|
|
@@ -5271,9 +5271,9 @@ ${this.value}</textarea
|
|
|
5271
5271
|
<div class="aside">
|
|
5272
5272
|
<slot name="aside"></slot>
|
|
5273
5273
|
</div>
|
|
5274
|
-
`}render(){return P` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[
|
|
5274
|
+
`}render(){return P` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[jk];exports.CardHeader=Yk([$a(B6)],exports.CardHeader);var Xk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,W6=(n,e,i,o)=>{for(var l=o>1?void 0:o?Jk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Xk(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return P`
|
|
5275
5275
|
<div class="card-section-header">${this.contentTemplate}</div>
|
|
5276
|
-
`}};
|
|
5276
|
+
`}};W6([O({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=W6([$a(Z6)],exports.CardSectionHeader);var Qk=Object.defineProperty,e$=Object.getOwnPropertyDescriptor,t$=(n,e,i,o)=>{for(var l=o>1?void 0:o?e$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qk(e,i,l),l};exports.CardFooter=class extends me{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return P`
|
|
5277
5277
|
<footer class="card-footer">
|
|
5278
5278
|
<div>
|
|
5279
5279
|
<slot></slot>
|
|
@@ -5283,7 +5283,7 @@ ${this.value}</textarea
|
|
|
5283
5283
|
<slot name="aside"></slot>
|
|
5284
5284
|
</div>
|
|
5285
5285
|
</footer>
|
|
5286
|
-
`}};exports.CardFooter.styles=[
|
|
5286
|
+
`}};exports.CardFooter.styles=[Gk];exports.CardFooter=t$([$a(V6)],exports.CardFooter);var r$=Object.defineProperty,n$=Object.getOwnPropertyDescriptor,Wa=(n,e,i,o)=>{for(var l=o>1?void 0:o?n$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&r$(e,i,l),l};exports.Card=class extends ho{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return P`
|
|
5287
5287
|
<article class="card" part="card">
|
|
5288
5288
|
<slot name="header"></slot>
|
|
5289
5289
|
|
|
@@ -5295,7 +5295,7 @@ ${this.value}</textarea
|
|
|
5295
5295
|
|
|
5296
5296
|
<slot name="footer"></slot>
|
|
5297
5297
|
</article>
|
|
5298
|
-
`}};var
|
|
5298
|
+
`}};var I2;exports.Card.styles=[(I2=ho.styles)!=null?I2:[],Zk,Uk];Wa([O({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Wa([O({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Wa([pe()],exports.Card.prototype,"hasHeader",2);Wa([cn({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Wa([$a(F6)],exports.Card);var i$=Object.defineProperty,o$=Object.getOwnPropertyDescriptor,N0=(n,e,i,o)=>{for(var l=o>1?void 0:o?o$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&i$(e,i,l),l};const U6=ne("paper");exports.Paper=class extends me{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return P` <div class="container"><slot></slot></div> `}};exports.Paper.styles=j`
|
|
5299
5299
|
:host {
|
|
5300
5300
|
display: block;
|
|
5301
5301
|
position: relative;
|
|
@@ -5319,4 +5319,4 @@ ${this.value}</textarea
|
|
|
5319
5319
|
:host([has-border]) .container {
|
|
5320
5320
|
border: 1px solid var(--brz-color-neutral-300);
|
|
5321
5321
|
}
|
|
5322
|
-
`;D0([O({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);D0([O({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=D0([R(W6)],exports.Paper);var o$=Object.defineProperty,a$=Object.getOwnPropertyDescriptor,ge=(n,e,i,o)=>{for(var l=o>1?void 0:o?a$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&o$(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=ge([R("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=ge([R("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=ge([R("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=ge([R("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=ge([R("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=ge([R("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=ge([R("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=ge([R("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=ge([R("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=ge([R("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=ge([R("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=ge([R("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=ge([R("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=ge([R("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=ge([R("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=ge([R("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=ge([R("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=ge([R("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=ge([R("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=ge([R("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=ge([R("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=ge([R("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=ge([R("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=ge([R("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=ge([R("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=ge([R("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=ge([R("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=ge([R("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=ge([R("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=ge([R("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=ge([R("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=ge([R("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=ge([R("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=ge([R("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=ge([R("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=ge([R("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=ge([R("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=ge([R("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=ge([R("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=ge([R("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=ge([R("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=ge([R("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=ge([R("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=ge([R("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=ge([R("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=ge([R("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=ge([R("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=ge([R("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends tl{};exports.LegacyInputGuide=ge([R("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=ge([R("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=ge([R("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=ge([R("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=ge([R("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=ge([R("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=ge([R("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=ge([R("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=ge([R("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=ge([R("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=ge([R("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=ge([R("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=ge([R("sp-labeled-input")],exports.LegacyLabeledInput);const U6=ne("date-time-range"),gl="a",s$="ccc d LLL",l$="ccc LLL d",j6="ZZZZ";var c$=Object.defineProperty,u$=Object.getOwnPropertyDescriptor,Ua=(n,e,i,o)=>{for(var l=o>1?void 0:o?u$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&c$(e,i,l),l};class Li extends me{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const e=M2(Te.fromISO(this.start),this.timezone),i=M2(Te.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?s$:l$,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(y,T)=>{const{dateFormat:S,year:$,minutes:E,ampm:N,timezone:G=""}=T,te=`${S?`${S}${$}, `:""}${E}${N}${G}`;return y.toFormat(te)},v=T2(u(e,l)),m=T2(u(i,d));return`${v} - ${m}`}render(){return P`<span>${this.generateContent()}</span>`}}Ua([O({type:String})],Li.prototype,"start",2);Ua([O({type:String})],Li.prototype,"end",2);Ua([O({type:String})],Li.prototype,"timezone",2);Ua([O({attribute:"hide-timezone",type:Boolean})],Li.prototype,"hideTimezone",2);Ua([O({attribute:"date-format",type:String})],Li.prototype,"dateFormat",2);var d$=Object.defineProperty,h$=Object.getOwnPropertyDescriptor,f$=(n,e,i,o)=>{for(var l=o>1?void 0:o?h$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&d$(e,i,l),l};exports.DateTimeRange=class extends Li{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:dl(e),year:hl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&G5(e,i)?"":gl},d={minutes:dl(i),year:hl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${j6})`};return{start:l,end:d}}};exports.DateTimeRange=f$([R(U6)],exports.DateTimeRange);const G6=ne("time-range");var p$=Object.defineProperty,g$=Object.getOwnPropertyDescriptor,v$=(n,e,i,o)=>{for(var l=o>1?void 0:o?g$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&p$(e,i,l),l};exports.TimeRange=class extends Li{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d={minutes:dl(e),year:hl(e,i),dateFormat:l?"":o,ampm:l&&G5(e,i)?"":gl},u={minutes:dl(i),year:hl(i,e),dateFormat:l?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${j6})`};return{start:d,end:u}}};exports.TimeRange=v$([R(G6)],exports.TimeRange);exports.ACTION_BAR=Lp;exports.ALERT=k6;exports.AVATAR=yf;exports.AVATAR_GROUP=Cf;exports.AlertEvent=$6;exports.AvatarSize=Xs;exports.AvatarTheme=wf;exports.BADGE=x6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=L6;exports.BADGE_NUMBER_LIMIT_DEFAULT=S6;exports.BASIC_PAGINATION=I0;exports.BUTTON=s0;exports.BUTTON_GROUP=Ef;exports.BadgeTheme=z6;exports.BasicPaginationEvent=M6;exports.ButtonEvent=_f;exports.CARD=R6;exports.CARD_FOOTER=B6;exports.CARD_HEADER=F6;exports.CARD_SECTION_HEADER=V6;exports.COLUMN=kf;exports.COMBO_BOX=pp;exports.COMBO_BOX_OPTION=gp;exports.CONFIRMATION_DIALOG=$p;exports.ConfirmationDialogCancel=Op;exports.ConfirmationDialogConfirm=Ep;exports.DATE_TIME_RANGE=U6;exports.DROPDOWN_BUTTON=_p;exports.DROPDOWN_MENU=If;exports.DeleteLozengeEvent=Up;exports.FADE_IN_OUT=Q2;exports.FOOTER=A6;exports.GLOBAL_STYLES=H6;exports.GRID=D6;exports.GRID_ITEM=N6;exports.HEADER=E6;exports.HEADER_FOOTER_PAGE=_6;exports.HEADING=r6;exports.ICON=Lf;exports.ILLUSTRATION=O6;exports.INLINE_EDIT_CONTROLS=i6;exports.INLINE_EDIT_FIELD=n6;exports.INLINE_EDIT_GROUP=k0;exports.INPUT_CHECKBOX=Ip;exports.INPUT_CODE=Vp;exports.INPUT_ERROR=ap;exports.INPUT_LABEL=lp;exports.INPUT_MULTISELECT=jp;exports.INPUT_NUMBER=Dp;exports.INPUT_RADIO_GROUP=Rp;exports.INPUT_RADIO_OPTION=Fp;exports.INPUT_SELECT=Zp;exports.INPUT_TEXT=Ap;exports.INPUT_TEXTAREA=Pp;exports.INPUT_TIME=K5;exports.InlineEditControlsCancelEvent=a6;exports.InlineEditControlsSaveEvent=s6;exports.InlineEditFieldBroadcastEvent=l6;exports.InlineEditFieldModeChangeEvent=c6;exports.InlineEditGroupModeChangeEvent=u6;exports.InputBase=Jt;exports.InputSelectBase=vt;exports.InputSelectQueryChangeEvent=m0;exports.LABELED_INPUT=sp;exports.LINK=Sf;exports.LINK_BUTTON=Mf;exports.LOADING_SPINNER=Of;exports.LOZENGE=Wp;exports.MENU=up;exports.MENU_ITEM=rl;exports.MODAL=xp;exports.MODAL_BODY=Mp;exports.MODAL_FOOTER=Tp;exports.MODAL_HEADER=Sp;exports.MenuBlurEvent=dp;exports.MenuItemSelectEvent=cp;exports.MenuSelectEvent=hp;exports.ModalCloseEvent=y0;exports.PAGE_HEADER=P6;exports.PAGINATION=A0;exports.PAPER=W6;exports.POPOVER=t0;exports.POPOVER_LISTENABLE_EVENT_TYPES=Ys;exports.POPOVER_ROLES=r0;exports.POPOVER_TRIGGERS=gf;exports.PURE_POPOVER=pf;exports.PaginationEvent=T6;exports.PopoverEvent=vf;exports.RECORD_FIELD=ip;exports.RECORD_FIELD_LABEL=op;exports.RECORD_ROW=g6;exports.RECORD_ROW_LABEL=v6;exports.RESPONSIVE_COLUMNS=I6;exports.ROW=Tf;exports.SEARCH_MESSAGE_ID=Ma;exports.SELECT_ALL_ID=Mr;exports.SIDE_NAVIGATION=f6;exports.SIDE_NAVIGATION_ITEM=h6;exports.SPACING_BASE=n0;exports.SPLIT_ROW=zp;exports.TAB=y6;exports.TABS=w6;exports.TAB_BAR=C6;exports.TAB_PANEL=b6;exports.TIME_FORMAT=Y5;exports.TIME_RANGE=G6;exports.TIME_REGEX_12H=Q5;exports.TIME_REGEX_24H=J5;exports.TIME_REGEX_LOOSE=X5;exports.TOGGLE_SWITCH=t6;exports.TOOLTIP=bf;exports.TabDeselectedEvent=m6;exports.TabSelectedEvent=Zl;exports.TooltipTheme=mf;exports.VIRTUAL_LIST=v0;exports.VirtualListUpdateEvent=np;exports.alertTypes=ok;exports.buttonTypes=H9;exports.click=Ks;exports.columnSpans=Jl;exports.dropdownMenuSizes=V9;exports.focus=li;exports.hover=kc;exports.iconNames=z9;exports.icons=i0;exports.illustrationNames=ak;exports.illustrations=P0;exports.inlineEditControlsModes=o6;exports.inlineEditModes=eT;exports.inputSizes=jx;exports.labelPositions=Gx;exports.linkButtonElementTypes=k9;exports.linkTypes=E9;exports.lozengeColors=HL;exports.lozengeSizes=FL;exports.lozengeThemes=RL;exports.modalSizes=Qz;exports.radioLayouts=zL;exports.resetLinkStyle=a0;exports.spacing=xf;exports.spacingLevels=Ea;exports.syntaxes=IL;exports.timeSuffixes=UM;exports.transformIcon=zf;
|
|
5322
|
+
`;N0([O({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);N0([O({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=N0([R(U6)],exports.Paper);var a$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,ge=(n,e,i,o)=>{for(var l=o>1?void 0:o?s$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&a$(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=ge([R("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=ge([R("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=ge([R("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=ge([R("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=ge([R("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=ge([R("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=ge([R("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=ge([R("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=ge([R("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=ge([R("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=ge([R("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=ge([R("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=ge([R("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=ge([R("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=ge([R("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=ge([R("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=ge([R("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=ge([R("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=ge([R("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=ge([R("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=ge([R("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=ge([R("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=ge([R("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=ge([R("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=ge([R("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=ge([R("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=ge([R("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=ge([R("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=ge([R("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=ge([R("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=ge([R("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=ge([R("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=ge([R("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=ge([R("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=ge([R("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=ge([R("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=ge([R("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=ge([R("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=ge([R("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=ge([R("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=ge([R("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=ge([R("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=ge([R("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=ge([R("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=ge([R("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=ge([R("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=ge([R("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=ge([R("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends tl{};exports.LegacyInputGuide=ge([R("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=ge([R("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=ge([R("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=ge([R("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=ge([R("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=ge([R("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=ge([R("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=ge([R("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=ge([R("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=ge([R("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=ge([R("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=ge([R("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=ge([R("sp-labeled-input")],exports.LegacyLabeledInput);const j6=ne("date-time-range"),gl="a",l$="ccc d LLL",c$="ccc LLL d",H0="ZZZZ";var u$=Object.defineProperty,d$=Object.getOwnPropertyDescriptor,Ua=(n,e,i,o)=>{for(var l=o>1?void 0:o?d$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&u$(e,i,l),l};class Li extends me{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(VM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${vc(Me.fromISO(this.start),this.timezone).toFormat(H0)})`;const e=vc(Me.fromISO(this.start),this.timezone),i=vc(Me.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?l$:c$,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(m,T)=>{const{dateFormat:S,year:$,minutes:E,ampm:N,timezone:G=""}=T,te=`${S?`${S}${$}, `:""}${E}${N}${G}`;return m.toFormat(te)},v=k2(u(e,l)),y=k2(u(i,d));return`${v} - ${y}`}render(){return P`<span>${this.generateContent()}</span>`}}Ua([O({type:String})],Li.prototype,"start",2);Ua([O({type:String})],Li.prototype,"end",2);Ua([O({type:String})],Li.prototype,"timezone",2);Ua([O({attribute:"hide-timezone",type:Boolean})],Li.prototype,"hideTimezone",2);Ua([O({attribute:"date-format",type:String})],Li.prototype,"dateFormat",2);var h$=Object.defineProperty,f$=Object.getOwnPropertyDescriptor,p$=(n,e,i,o)=>{for(var l=o>1?void 0:o?f$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&h$(e,i,l),l};exports.DateTimeRange=class extends Li{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:dl(e),year:hl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&q5(e,i)?"":gl},d={minutes:dl(i),year:hl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${H0})`};return{start:l,end:d}}};exports.DateTimeRange=p$([R(j6)],exports.DateTimeRange);const G6=ne("time-range");var g$=Object.defineProperty,v$=Object.getOwnPropertyDescriptor,b$=(n,e,i,o)=>{for(var l=o>1?void 0:o?v$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&g$(e,i,l),l};exports.TimeRange=class extends Li{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d={minutes:dl(e),year:hl(e,i),dateFormat:l?"":o,ampm:l&&q5(e,i)?"":gl},u={minutes:dl(i),year:hl(i,e),dateFormat:l?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${H0})`};return{start:d,end:u}}};exports.TimeRange=b$([R(G6)],exports.TimeRange);exports.ACTION_BAR=Sp;exports.ALERT=$6;exports.AVATAR=Cf;exports.AVATAR_GROUP=wf;exports.AlertEvent=O6;exports.AvatarSize=Xs;exports.AvatarTheme=xf;exports.BADGE=z6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=S6;exports.BADGE_NUMBER_LIMIT_DEFAULT=M6;exports.BASIC_PAGINATION=A0;exports.BUTTON=l0;exports.BUTTON_GROUP=_f;exports.BadgeTheme=L6;exports.BasicPaginationEvent=T6;exports.ButtonEvent=If;exports.CARD=F6;exports.CARD_FOOTER=V6;exports.CARD_HEADER=B6;exports.CARD_SECTION_HEADER=Z6;exports.COLUMN=$f;exports.COMBO_BOX=gp;exports.COMBO_BOX_OPTION=vp;exports.CONFIRMATION_DIALOG=Op;exports.ConfirmationDialogCancel=Ep;exports.ConfirmationDialogConfirm=_p;exports.DATE_TIME_RANGE=j6;exports.DROPDOWN_BUTTON=Ip;exports.DROPDOWN_MENU=Af;exports.DeleteLozengeEvent=jp;exports.FADE_IN_OUT=ef;exports.FOOTER=P6;exports.GLOBAL_STYLES=R6;exports.GRID=N6;exports.GRID_ITEM=H6;exports.HEADER=_6;exports.HEADER_FOOTER_PAGE=I6;exports.HEADING=n6;exports.ICON=Sf;exports.ILLUSTRATION=E6;exports.INLINE_EDIT_CONTROLS=o6;exports.INLINE_EDIT_FIELD=i6;exports.INLINE_EDIT_GROUP=$0;exports.INPUT_CHECKBOX=Ap;exports.INPUT_CODE=Zp;exports.INPUT_ERROR=sp;exports.INPUT_LABEL=cp;exports.INPUT_MULTISELECT=Gp;exports.INPUT_NUMBER=Np;exports.INPUT_RADIO_GROUP=Fp;exports.INPUT_RADIO_OPTION=Bp;exports.INPUT_SELECT=Wp;exports.INPUT_TEXT=Pp;exports.INPUT_TEXTAREA=Dp;exports.INPUT_TIME=Y5;exports.InlineEditControlsCancelEvent=s6;exports.InlineEditControlsSaveEvent=l6;exports.InlineEditFieldBroadcastEvent=c6;exports.InlineEditFieldModeChangeEvent=u6;exports.InlineEditGroupModeChangeEvent=d6;exports.InputBase=Jt;exports.InputSelectBase=vt;exports.InputSelectQueryChangeEvent=y0;exports.LABELED_INPUT=lp;exports.LINK=Mf;exports.LINK_BUTTON=Tf;exports.LOADING_SPINNER=Ef;exports.LOZENGE=Up;exports.MENU=dp;exports.MENU_ITEM=rl;exports.MODAL=zp;exports.MODAL_BODY=Tp;exports.MODAL_FOOTER=kp;exports.MODAL_HEADER=Mp;exports.MenuBlurEvent=hp;exports.MenuItemSelectEvent=up;exports.MenuSelectEvent=fp;exports.ModalCloseEvent=C0;exports.PAGE_HEADER=D6;exports.PAGINATION=P0;exports.PAPER=U6;exports.POPOVER=r0;exports.POPOVER_LISTENABLE_EVENT_TYPES=Ys;exports.POPOVER_ROLES=n0;exports.POPOVER_TRIGGERS=vf;exports.PURE_POPOVER=gf;exports.PaginationEvent=k6;exports.PopoverEvent=bf;exports.RECORD_FIELD=op;exports.RECORD_FIELD_LABEL=ap;exports.RECORD_ROW=v6;exports.RECORD_ROW_LABEL=b6;exports.RESPONSIVE_COLUMNS=A6;exports.ROW=kf;exports.SEARCH_MESSAGE_ID=Ma;exports.SELECT_ALL_ID=Mr;exports.SIDE_NAVIGATION=p6;exports.SIDE_NAVIGATION_ITEM=f6;exports.SPACING_BASE=i0;exports.SPLIT_ROW=Lp;exports.TAB=C6;exports.TABS=x6;exports.TAB_BAR=w6;exports.TAB_PANEL=m6;exports.TIME_FORMAT=X5;exports.TIME_RANGE=G6;exports.TIME_REGEX_12H=e6;exports.TIME_REGEX_24H=Q5;exports.TIME_REGEX_LOOSE=J5;exports.TOGGLE_SWITCH=r6;exports.TOOLTIP=mf;exports.TabDeselectedEvent=y6;exports.TabSelectedEvent=Zl;exports.TooltipTheme=yf;exports.VIRTUAL_LIST=b0;exports.VirtualListUpdateEvent=ip;exports.alertTypes=ak;exports.buttonTypes=H9;exports.click=Ks;exports.columnSpans=Jl;exports.dropdownMenuSizes=V9;exports.focus=li;exports.hover=$c;exports.iconNames=z9;exports.icons=o0;exports.illustrationNames=sk;exports.illustrations=D0;exports.inlineEditControlsModes=a6;exports.inlineEditModes=tT;exports.inputSizes=jx;exports.labelPositions=Gx;exports.linkButtonElementTypes=k9;exports.linkTypes=E9;exports.lozengeColors=HL;exports.lozengeSizes=FL;exports.lozengeThemes=RL;exports.modalSizes=Qz;exports.radioLayouts=zL;exports.resetLinkStyle=s0;exports.spacing=zf;exports.spacingLevels=Ea;exports.syntaxes=IL;exports.timeSuffixes=jM;exports.transformIcon=Lf;
|