@skedulo/breeze-ui 1.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +84 -8
- package/dist/lib/cjs/breeze-ui.js +231 -230
- package/dist/lib/es/breeze-ui.js +3281 -3255
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/form-elements/input-number.d.ts +8 -2
- package/dist/types/components/form-elements/input-number.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function sv(o,t){for(var n=0;n<t.length;n++){const l=t[n];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in o)){const g=Object.getOwnPropertyDescriptor(l,c);g&&Object.defineProperty(o,c,g.get?g:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const k0=window,zh=k0.ShadowRoot&&(k0.ShadyCSS===void 0||k0.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,g5=Symbol(),Wp=new WeakMap;let lv=class{constructor(t,n,l){if(this._$cssResult$=!0,l!==g5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(zh&&t===void 0){const l=n!==void 0&&n.length===1;l&&(t=Wp.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),l&&Wp.set(n,t))}return t}toString(){return this.cssText}};const uv=o=>new lv(typeof o=="string"?o:o+"",void 0,g5),cv=(o,t)=>{zh?o.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):t.forEach(n=>{const l=document.createElement("style"),c=k0.litNonce;c!==void 0&&l.setAttribute("nonce",c),l.textContent=n.cssText,o.appendChild(l)})},Zp=zh?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let n="";for(const l of t.cssRules)n+=l.cssText;return uv(n)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var Af;const D0=window,
|
|
9
|
+
*/var Af;const D0=window,Up=D0.trustedTypes,dv=Up?Up.emptyScript:"",Gp=D0.reactiveElementPolyfillSupport,th={toAttribute(o,t){switch(t){case Boolean:o=o?dv:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let n=o;switch(t){case Boolean:n=o!==null;break;case Number:n=o===null?null:Number(o);break;case Object:case Array:try{n=JSON.parse(o)}catch{n=null}}return n}},v5=(o,t)=>t!==o&&(t==t||o==o),$f={attribute:!0,type:String,converter:th,reflect:!1,hasChanged:v5},rh="finalized";let vu=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((n,l)=>{const c=this._$Ep(l,n);c!==void 0&&(this._$Ev.set(c,l),t.push(c))}),t}static createProperty(t,n=$f){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const l=typeof t=="symbol"?Symbol():"__"+t,c=this.getPropertyDescriptor(t,l,n);c!==void 0&&Object.defineProperty(this.prototype,t,c)}}static getPropertyDescriptor(t,n,l){return{get(){return this[n]},set(c){const g=this[t];this[n]=c,this.requestUpdate(t,g,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$f}static finalize(){if(this.hasOwnProperty(rh))return!1;this[rh]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const n=this.properties,l=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const c of l)this.createProperty(c,n[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const l=new Set(t.flat(1/0).reverse());for(const c of l)n.unshift(Zp(c))}else t!==void 0&&n.push(Zp(t));return n}static _$Ep(t,n){const l=n.attribute;return l===!1?void 0:typeof l=="string"?l:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(n=>n(this))}addController(t){var n,l;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((l=t.hostConnected)===null||l===void 0||l.call(t))}removeController(t){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var t;const n=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return cv(n,this.constructor.elementStyles),n}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostConnected)===null||l===void 0?void 0:l.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostDisconnected)===null||l===void 0?void 0:l.call(n)})}attributeChangedCallback(t,n,l){this._$AK(t,l)}_$EO(t,n,l=$f){var c;const g=this.constructor._$Ep(t,l);if(g!==void 0&&l.reflect===!0){const h=(((c=l.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?l.converter:th).toAttribute(n,l.type);this._$El=t,h==null?this.removeAttribute(g):this.setAttribute(g,h),this._$El=null}}_$AK(t,n){var l;const c=this.constructor,g=c._$Ev.get(t);if(g!==void 0&&this._$El!==g){const h=c.getPropertyOptions(g),w=typeof h.converter=="function"?{fromAttribute:h.converter}:((l=h.converter)===null||l===void 0?void 0:l.fromAttribute)!==void 0?h.converter:th;this._$El=g,this[g]=w.fromAttribute(n,h.type),this._$El=null}}requestUpdate(t,n,l){let c=!0;t!==void 0&&(((l=l||this.constructor.getPropertyOptions(t)).hasChanged||v5)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),l.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,l))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let n=!1;const l=this._$AL;try{n=this.shouldUpdate(l),n?(this.willUpdate(l),(t=this._$ES)===null||t===void 0||t.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(l)):this._$Ek()}catch(c){throw n=!1,this._$Ek(),c}n&&this._$AE(l)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)===null||n===void 0||n.forEach(l=>{var c;return(c=l.hostUpdated)===null||c===void 0?void 0:c.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((n,l)=>this._$EO(l,this[l],n)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};vu[rh]=!0,vu.elementProperties=new Map,vu.elementStyles=[],vu.shadowRootOptions={mode:"open"},Gp==null||Gp({ReactiveElement:vu}),((Af=D0.reactiveElementVersions)!==null&&Af!==void 0?Af:D0.reactiveElementVersions=[]).push("1.6.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var Pf;const N0=window,a1=N0.trustedTypes,
|
|
14
|
-
\f\r]`,bu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/var Pf;const N0=window,a1=N0.trustedTypes,qp=a1?a1.createPolicy("lit-html",{createHTML:o=>o}):void 0,R0="$lit$",jo=`lit$${(Math.random()+"").slice(9)}$`,Lh="?"+jo,fv=`<${Lh}>`,Us=document,H0=()=>Us.createComment(""),Iu=o=>o===null||typeof o!="object"&&typeof o!="function",b5=Array.isArray,m5=o=>b5(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Df=`[
|
|
14
|
+
\f\r]`,bu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jp=/-->/g,Kp=/>/g,Is=RegExp(`>|${Df}(?:([^\\s"'>=/]+)(${Df}*=${Df}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yp=/'/g,Xp=/"/g,y5=/^(?:script|style|textarea|title)$/i,Yo=Symbol.for("lit-noChange"),pr=Symbol.for("lit-nothing"),Jp=new WeakMap,Bs=Us.createTreeWalker(Us,129,null,!1),C5=(o,t)=>{const n=o.length-1,l=[];let c,g=t===2?"<svg>":"",h=bu;for(let z=0;z<n;z++){const S=o[z];let k,D,B=-1,R=0;for(;R<S.length&&(h.lastIndex=R,D=h.exec(S),D!==null);)R=h.lastIndex,h===bu?D[1]==="!--"?h=jp:D[1]!==void 0?h=Kp:D[2]!==void 0?(y5.test(D[2])&&(c=RegExp("</"+D[2],"g")),h=Is):D[3]!==void 0&&(h=Is):h===Is?D[0]===">"?(h=c!=null?c:bu,B=-1):D[1]===void 0?B=-2:(B=h.lastIndex-D[2].length,k=D[1],h=D[3]===void 0?Is:D[3]==='"'?Xp:Yp):h===Xp||h===Yp?h=Is:h===jp||h===Kp?h=bu:(h=Is,c=void 0);const J=h===Is&&o[z+1].startsWith("/>")?" ":"";g+=h===bu?S+fv:B>=0?(l.push(k),S.slice(0,B)+R0+S.slice(B)+jo+J):S+jo+(B===-2?(l.push(void 0),z):J)}const w=g+(o[n]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[qp!==void 0?qp.createHTML(w):w,l]};let nh=class w5{constructor({strings:t,_$litType$:n},l){let c;this.parts=[];let g=0,h=0;const w=t.length-1,z=this.parts,[S,k]=C5(t,n);if(this.el=w5.createElement(S,l),Bs.currentNode=this.el.content,n===2){const D=this.el.content,B=D.firstChild;B.remove(),D.append(...B.childNodes)}for(;(c=Bs.nextNode())!==null&&z.length<w;){if(c.nodeType===1){if(c.hasAttributes()){const D=[];for(const B of c.getAttributeNames())if(B.endsWith(R0)||B.startsWith(jo)){const R=k[h++];if(D.push(B),R!==void 0){const J=c.getAttribute(R.toLowerCase()+R0).split(jo),pe=/([.?@])?(.*)/.exec(R);z.push({type:1,index:g,name:pe[2],strings:J,ctor:pe[1]==="."?L5:pe[1]==="?"?S5:pe[1]==="@"?M5:Hu})}else z.push({type:6,index:g})}for(const B of D)c.removeAttribute(B)}if(y5.test(c.tagName)){const D=c.textContent.split(jo),B=D.length-1;if(B>0){c.textContent=a1?a1.emptyScript:"";for(let R=0;R<B;R++)c.append(D[R],H0()),Bs.nextNode(),z.push({type:2,index:++g});c.append(D[B],H0())}}}else if(c.nodeType===8)if(c.data===Lh)z.push({type:2,index:g});else{let D=-1;for(;(D=c.data.indexOf(jo,D+1))!==-1;)z.push({type:7,index:g}),D+=jo.length-1}g++}}static createElement(t,n){const l=Us.createElement("template");return l.innerHTML=t,l}};function Gs(o,t,n=o,l){var c,g,h,w;if(t===Yo)return t;let z=l!==void 0?(c=n._$Co)===null||c===void 0?void 0:c[l]:n._$Cl;const S=Iu(t)?void 0:t._$litDirective$;return(z==null?void 0:z.constructor)!==S&&((g=z==null?void 0:z._$AO)===null||g===void 0||g.call(z,!1),S===void 0?z=void 0:(z=new S(o),z._$AT(o,n,l)),l!==void 0?((h=(w=n)._$Co)!==null&&h!==void 0?h:w._$Co=[])[l]=z:n._$Cl=z),z!==void 0&&(t=Gs(o,z._$AS(o,t.values),z,l)),t}let x5=class{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var n;const{el:{content:l},parts:c}=this._$AD,g=((n=t==null?void 0:t.creationScope)!==null&&n!==void 0?n:Us).importNode(l,!0);Bs.currentNode=g;let h=Bs.nextNode(),w=0,z=0,S=c[0];for(;S!==void 0;){if(w===S.index){let k;S.type===2?k=new Sh(h,h.nextSibling,this,t):S.type===1?k=new S.ctor(h,S.name,S.strings,this,t):S.type===6&&(k=new _5(h,this,t)),this._$AV.push(k),S=c[++z]}w!==(S==null?void 0:S.index)&&(h=Bs.nextNode(),w++)}return Bs.currentNode=Us,g}v(t){let n=0;for(const l of this._$AV)l!==void 0&&(l.strings!==void 0?(l._$AI(t,l,n),n+=l.strings.length-2):l._$AI(t[n])),n++}},Sh=class z5{constructor(t,n,l,c){var g;this.type=2,this._$AH=pr,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=l,this.options=c,this._$Cp=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var t,n;return(n=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Gs(this,t,n),Iu(t)?t===pr||t==null||t===""?(this._$AH!==pr&&this._$AR(),this._$AH=pr):t!==this._$AH&&t!==Yo&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):m5(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==pr&&Iu(this._$AH)?this._$AA.nextSibling.data=t:this.$(Us.createTextNode(t)),this._$AH=t}g(t){var n;const{values:l,_$litType$:c}=t,g=typeof c=="number"?this._$AC(t):(c.el===void 0&&(c.el=nh.createElement(c.h,this.options)),c);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===g)this._$AH.v(l);else{const h=new x5(g,this),w=h.u(this.options);h.v(l),this.$(w),this._$AH=h}}_$AC(t){let n=Jp.get(t.strings);return n===void 0&&Jp.set(t.strings,n=new nh(t)),n}T(t){b5(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let l,c=0;for(const g of t)c===n.length?n.push(l=new z5(this.k(H0()),this.k(H0()),this,this.options)):l=n[c],l._$AI(g),c++;c<n.length&&(this._$AR(l&&l._$AB.nextSibling,c),n.length=c)}_$AR(t=this._$AA.nextSibling,n){var l;for((l=this._$AP)===null||l===void 0||l.call(this,!1,!0,n);t&&t!==this._$AB;){const c=t.nextSibling;t.remove(),t=c}}setConnected(t){var n;this._$AM===void 0&&(this._$Cp=t,(n=this._$AP)===null||n===void 0||n.call(this,t))}},Hu=class{constructor(t,n,l,c,g){this.type=1,this._$AH=pr,this._$AN=void 0,this.element=t,this.name=n,this._$AM=c,this.options=g,l.length>2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=pr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,l,c){const g=this.strings;let h=!1;if(g===void 0)t=Gs(this,t,n,0),h=!Iu(t)||t!==this._$AH&&t!==Yo,h&&(this._$AH=t);else{const w=t;let z,S;for(t=g[0],z=0;z<g.length-1;z++)S=Gs(this,w[l+z],n,z),S===Yo&&(S=this._$AH[z]),h||(h=!Iu(S)||S!==this._$AH[z]),S===pr?t=pr:t!==pr&&(t+=(S!=null?S:"")+g[z+1]),this._$AH[z]=S}h&&!c&&this.j(t)}j(t){t===pr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},L5=class extends Hu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===pr?void 0:t}};const hv=a1?a1.emptyScript:"";let S5=class extends Hu{constructor(){super(...arguments),this.type=4}j(t){t&&t!==pr?this.element.setAttribute(this.name,hv):this.element.removeAttribute(this.name)}},M5=class extends Hu{constructor(t,n,l,c,g){super(t,n,l,c,g),this.type=5}_$AI(t,n=this){var l;if((t=(l=Gs(this,t,n,0))!==null&&l!==void 0?l:pr)===Yo)return;const c=this._$AH,g=t===pr&&c!==pr||t.capture!==c.capture||t.once!==c.once||t.passive!==c.passive,h=t!==pr&&(c===pr||g);g&&this.element.removeEventListener(this.name,this,c),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,l;typeof this._$AH=="function"?this._$AH.call((l=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&l!==void 0?l:this.element,t):this._$AH.handleEvent(t)}},_5=class{constructor(t,n,l){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=l}get _$AU(){return this._$AM._$AU}_$AI(t){Gs(this,t)}};const pv={O:R0,P:jo,A:Lh,C:1,M:C5,L:x5,D:m5,R:Gs,I:Sh,V:Hu,H:S5,N:M5,U:L5,F:_5},Qp=N0.litHtmlPolyfillSupport;Qp==null||Qp(nh,Sh),((Pf=N0.litHtmlVersions)!==null&&Pf!==void 0?Pf:N0.litHtmlVersions=[]).push("2.7.4");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2019 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const I0=window,
|
|
19
|
+
*/const I0=window,Mh=I0.ShadowRoot&&(I0.ShadyCSS===void 0||I0.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_h=Symbol(),e2=new WeakMap;let T5=class{constructor(t,n,l){if(this._$cssResult$=!0,l!==_h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Mh&&t===void 0){const l=n!==void 0&&n.length===1;l&&(t=e2.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),l&&e2.set(n,t))}return t}toString(){return this.cssText}};const Wa=o=>new T5(typeof o=="string"?o:o+"",void 0,_h),fe=(o,...t)=>{const n=o.length===1?o[0]:t.reduce((l,c,g)=>l+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+o[g+1],o[0]);return new T5(n,o,_h)},gv=(o,t)=>{Mh?o.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):t.forEach(n=>{const l=document.createElement("style"),c=I0.litNonce;c!==void 0&&l.setAttribute("nonce",c),l.textContent=n.cssText,o.appendChild(l)})},t2=Mh?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let n="";for(const l of t.cssRules)n+=l.cssText;return Wa(n)})(o):o;/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/var Nf;const F0=window,
|
|
23
|
+
*/var Nf;const F0=window,r2=F0.trustedTypes,vv=r2?r2.emptyScript:"",n2=F0.reactiveElementPolyfillSupport,ih={toAttribute(o,t){switch(t){case Boolean:o=o?vv:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let n=o;switch(t){case Boolean:n=o!==null;break;case Number:n=o===null?null:Number(o);break;case Object:case Array:try{n=JSON.parse(o)}catch{n=null}}return n}},O5=(o,t)=>t!==o&&(t==t||o==o),Rf={attribute:!0,type:String,converter:ih,reflect:!1,hasChanged:O5};let n1=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((n,l)=>{const c=this._$Ep(l,n);c!==void 0&&(this._$Ev.set(c,l),t.push(c))}),t}static createProperty(t,n=Rf){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const l=typeof t=="symbol"?Symbol():"__"+t,c=this.getPropertyDescriptor(t,l,n);c!==void 0&&Object.defineProperty(this.prototype,t,c)}}static getPropertyDescriptor(t,n,l){return{get(){return this[n]},set(c){const g=this[t];this[n]=c,this.requestUpdate(t,g,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Rf}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const n=this.properties,l=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const c of l)this.createProperty(c,n[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const l=new Set(t.flat(1/0).reverse());for(const c of l)n.unshift(t2(c))}else t!==void 0&&n.push(t2(t));return n}static _$Ep(t,n){const l=n.attribute;return l===!1?void 0:typeof l=="string"?l:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(n=>n(this))}addController(t){var n,l;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((l=t.hostConnected)===null||l===void 0||l.call(t))}removeController(t){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var t;const n=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return gv(n,this.constructor.elementStyles),n}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostConnected)===null||l===void 0?void 0:l.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostDisconnected)===null||l===void 0?void 0:l.call(n)})}attributeChangedCallback(t,n,l){this._$AK(t,l)}_$EO(t,n,l=Rf){var c;const g=this.constructor._$Ep(t,l);if(g!==void 0&&l.reflect===!0){const h=(((c=l.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?l.converter:ih).toAttribute(n,l.type);this._$El=t,h==null?this.removeAttribute(g):this.setAttribute(g,h),this._$El=null}}_$AK(t,n){var l;const c=this.constructor,g=c._$Ev.get(t);if(g!==void 0&&this._$El!==g){const h=c.getPropertyOptions(g),w=typeof h.converter=="function"?{fromAttribute:h.converter}:((l=h.converter)===null||l===void 0?void 0:l.fromAttribute)!==void 0?h.converter:ih;this._$El=g,this[g]=w.fromAttribute(n,h.type),this._$El=null}}requestUpdate(t,n,l){let c=!0;t!==void 0&&(((l=l||this.constructor.getPropertyOptions(t)).hasChanged||O5)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),l.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,l))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let n=!1;const l=this._$AL;try{n=this.shouldUpdate(l),n?(this.willUpdate(l),(t=this._$ES)===null||t===void 0||t.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(l)):this._$Ek()}catch(c){throw n=!1,this._$Ek(),c}n&&this._$AE(l)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)===null||n===void 0||n.forEach(l=>{var c;return(c=l.hostUpdated)===null||c===void 0?void 0:c.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((n,l)=>this._$EO(l,this[l],n)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};n1.finalized=!0,n1.elementProperties=new Map,n1.elementStyles=[],n1.shadowRootOptions={mode:"open"},n2==null||n2({ReactiveElement:n1}),((Nf=F0.reactiveElementVersions)!==null&&Nf!==void 0?Nf:F0.reactiveElementVersions=[]).push("1.4.2");/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/var Hf;const B0=window,s1=B0.trustedTypes,
|
|
28
|
-
\f\r]`,mu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
29
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
27
|
+
*/var Hf;const B0=window,s1=B0.trustedTypes,i2=s1?s1.createPolicy("lit-html",{createHTML:o=>o}):void 0,oh="$lit$",Ba=`lit$${(Math.random()+"").slice(9)}$`,E5="?"+Ba,bv=`<${E5}>`,qs=document,Au=()=>qs.createComment(""),$u=o=>o===null||typeof o!="object"&&typeof o!="function",k5=Array.isArray,mv=o=>k5(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ff=`[
|
|
28
|
+
\f\r]`,mu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,o2=/-->/g,a2=/>/g,As=RegExp(`>|${Ff}(?:([^\\s"'>=/]+)(${Ff}*=${Ff}*(?:[^
|
|
29
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),s2=/'/g,l2=/"/g,I5=/^(?:script|style|textarea|title)$/i,A5=o=>(t,...n)=>({_$litType$:o,strings:t,values:n}),j=A5(1),G=A5(2),l1=Symbol.for("lit-noChange"),$r=Symbol.for("lit-nothing"),u2=new WeakMap,Vs=qs.createTreeWalker(qs,129,null,!1),yv=(o,t)=>{const n=o.length-1,l=[];let c,g=t===2?"<svg>":"",h=mu;for(let z=0;z<n;z++){const S=o[z];let k,D,B=-1,R=0;for(;R<S.length&&(h.lastIndex=R,D=h.exec(S),D!==null);)R=h.lastIndex,h===mu?D[1]==="!--"?h=o2:D[1]!==void 0?h=a2:D[2]!==void 0?(I5.test(D[2])&&(c=RegExp("</"+D[2],"g")),h=As):D[3]!==void 0&&(h=As):h===As?D[0]===">"?(h=c!=null?c:mu,B=-1):D[1]===void 0?B=-2:(B=h.lastIndex-D[2].length,k=D[1],h=D[3]===void 0?As:D[3]==='"'?l2:s2):h===l2||h===s2?h=As:h===o2||h===a2?h=mu:(h=As,c=void 0);const J=h===As&&o[z+1].startsWith("/>")?" ":"";g+=h===mu?S+bv:B>=0?(l.push(k),S.slice(0,B)+oh+S.slice(B)+Ba+J):S+Ba+(B===-2?(l.push(void 0),z):J)}const w=g+(o[n]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[i2!==void 0?i2.createHTML(w):w,l]};class Pu{constructor({strings:t,_$litType$:n},l){let c;this.parts=[];let g=0,h=0;const w=t.length-1,z=this.parts,[S,k]=yv(t,n);if(this.el=Pu.createElement(S,l),Vs.currentNode=this.el.content,n===2){const D=this.el.content,B=D.firstChild;B.remove(),D.append(...B.childNodes)}for(;(c=Vs.nextNode())!==null&&z.length<w;){if(c.nodeType===1){if(c.hasAttributes()){const D=[];for(const B of c.getAttributeNames())if(B.endsWith(oh)||B.startsWith(Ba)){const R=k[h++];if(D.push(B),R!==void 0){const J=c.getAttribute(R.toLowerCase()+oh).split(Ba),pe=/([.?@])?(.*)/.exec(R);z.push({type:1,index:g,name:pe[2],strings:J,ctor:pe[1]==="."?wv:pe[1]==="?"?zv:pe[1]==="@"?Lv:od})}else z.push({type:6,index:g})}for(const B of D)c.removeAttribute(B)}if(I5.test(c.tagName)){const D=c.textContent.split(Ba),B=D.length-1;if(B>0){c.textContent=s1?s1.emptyScript:"";for(let R=0;R<B;R++)c.append(D[R],Au()),Vs.nextNode(),z.push({type:2,index:++g});c.append(D[B],Au())}}}else if(c.nodeType===8)if(c.data===E5)z.push({type:2,index:g});else{let D=-1;for(;(D=c.data.indexOf(Ba,D+1))!==-1;)z.push({type:7,index:g}),D+=Ba.length-1}g++}}static createElement(t,n){const l=qs.createElement("template");return l.innerHTML=t,l}}function u1(o,t,n=o,l){var c,g,h,w;if(t===l1)return t;let z=l!==void 0?(c=n._$Co)===null||c===void 0?void 0:c[l]:n._$Cl;const S=$u(t)?void 0:t._$litDirective$;return(z==null?void 0:z.constructor)!==S&&((g=z==null?void 0:z._$AO)===null||g===void 0||g.call(z,!1),S===void 0?z=void 0:(z=new S(o),z._$AT(o,n,l)),l!==void 0?((h=(w=n)._$Co)!==null&&h!==void 0?h:w._$Co=[])[l]=z:n._$Cl=z),z!==void 0&&(t=u1(o,z._$AS(o,t.values),z,l)),t}class Cv{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var n;const{el:{content:l},parts:c}=this._$AD,g=((n=t==null?void 0:t.creationScope)!==null&&n!==void 0?n:qs).importNode(l,!0);Vs.currentNode=g;let h=Vs.nextNode(),w=0,z=0,S=c[0];for(;S!==void 0;){if(w===S.index){let k;S.type===2?k=new Fu(h,h.nextSibling,this,t):S.type===1?k=new S.ctor(h,S.name,S.strings,this,t):S.type===6&&(k=new Sv(h,this,t)),this._$AV.push(k),S=c[++z]}w!==(S==null?void 0:S.index)&&(h=Vs.nextNode(),w++)}return Vs.currentNode=qs,g}v(t){let n=0;for(const l of this._$AV)l!==void 0&&(l.strings!==void 0?(l._$AI(t,l,n),n+=l.strings.length-2):l._$AI(t[n])),n++}}class Fu{constructor(t,n,l,c){var g;this.type=2,this._$AH=$r,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=l,this.options=c,this._$Cp=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var t,n;return(n=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=u1(this,t,n),$u(t)?t===$r||t==null||t===""?(this._$AH!==$r&&this._$AR(),this._$AH=$r):t!==this._$AH&&t!==l1&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):mv(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$r&&$u(this._$AH)?this._$AA.nextSibling.data=t:this.$(qs.createTextNode(t)),this._$AH=t}g(t){var n;const{values:l,_$litType$:c}=t,g=typeof c=="number"?this._$AC(t):(c.el===void 0&&(c.el=Pu.createElement(c.h,this.options)),c);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===g)this._$AH.v(l);else{const h=new Cv(g,this),w=h.u(this.options);h.v(l),this.$(w),this._$AH=h}}_$AC(t){let n=u2.get(t.strings);return n===void 0&&u2.set(t.strings,n=new Pu(t)),n}T(t){k5(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let l,c=0;for(const g of t)c===n.length?n.push(l=new Fu(this.k(Au()),this.k(Au()),this,this.options)):l=n[c],l._$AI(g),c++;c<n.length&&(this._$AR(l&&l._$AB.nextSibling,c),n.length=c)}_$AR(t=this._$AA.nextSibling,n){var l;for((l=this._$AP)===null||l===void 0||l.call(this,!1,!0,n);t&&t!==this._$AB;){const c=t.nextSibling;t.remove(),t=c}}setConnected(t){var n;this._$AM===void 0&&(this._$Cp=t,(n=this._$AP)===null||n===void 0||n.call(this,t))}}class od{constructor(t,n,l,c,g){this.type=1,this._$AH=$r,this._$AN=void 0,this.element=t,this.name=n,this._$AM=c,this.options=g,l.length>2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=$r}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,l,c){const g=this.strings;let h=!1;if(g===void 0)t=u1(this,t,n,0),h=!$u(t)||t!==this._$AH&&t!==l1,h&&(this._$AH=t);else{const w=t;let z,S;for(t=g[0],z=0;z<g.length-1;z++)S=u1(this,w[l+z],n,z),S===l1&&(S=this._$AH[z]),h||(h=!$u(S)||S!==this._$AH[z]),S===$r?t=$r:t!==$r&&(t+=(S!=null?S:"")+g[z+1]),this._$AH[z]=S}h&&!c&&this.j(t)}j(t){t===$r?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class wv extends od{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$r?void 0:t}}const xv=s1?s1.emptyScript:"";class zv extends od{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$r?this.element.setAttribute(this.name,xv):this.element.removeAttribute(this.name)}}class Lv extends od{constructor(t,n,l,c,g){super(t,n,l,c,g),this.type=5}_$AI(t,n=this){var l;if((t=(l=u1(this,t,n,0))!==null&&l!==void 0?l:$r)===l1)return;const c=this._$AH,g=t===$r&&c!==$r||t.capture!==c.capture||t.once!==c.once||t.passive!==c.passive,h=t!==$r&&(c===$r||g);g&&this.element.removeEventListener(this.name,this,c),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,l;typeof this._$AH=="function"?this._$AH.call((l=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&l!==void 0?l:this.element,t):this._$AH.handleEvent(t)}}class Sv{constructor(t,n,l){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=l}get _$AU(){return this._$AM._$AU}_$AI(t){u1(this,t)}}const c2=B0.litHtmlPolyfillSupport;c2==null||c2(Pu,Fu),((Hf=B0.litHtmlVersions)!==null&&Hf!==void 0?Hf:B0.litHtmlVersions=[]).push("2.7.4");const $5=(o,t,n)=>{var l,c;const g=(l=n==null?void 0:n.renderBefore)!==null&&l!==void 0?l:t;let h=g._$litPart$;if(h===void 0){const w=(c=n==null?void 0:n.renderBefore)!==null&&c!==void 0?c:null;g._$litPart$=h=new Fu(t.insertBefore(Au(),w),w,void 0,n!=null?n:{})}return h._$AI(o),h};/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/var Bf,
|
|
33
|
+
*/var Bf,Vf;let We=class extends n1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const l=super.createRenderRoot();return(t=(n=this.renderOptions).renderBefore)!==null&&t!==void 0||(n.renderBefore=l.firstChild),l}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=$5(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return l1}};We.finalized=!0,We._$litElement$=!0,(Bf=globalThis.litElementHydrateSupport)===null||Bf===void 0||Bf.call(globalThis,{LitElement:We});const d2=globalThis.litElementPolyfillSupport;d2==null||d2({LitElement:We});((Vf=globalThis.litElementVersions)!==null&&Vf!==void 0?Vf:globalThis.litElementVersions=[]).push("3.3.2");/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const
|
|
41
|
+
*/const Mv=(o,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,o)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,o)}},_v=(o,t,n)=>{t.constructor.createProperty(n,o)};function F(o){return(t,n)=>n!==void 0?_v(o,t,n):Mv(o,t)}/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2017 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/const ad=({finisher:o,descriptor:t})=>(n,l)=>{var c;if(l===void 0){const g=(c=n.originalKey)!==null&&c!==void 0?c:n.key,h=t!=null?{kind:"method",placement:"prototype",key:g,descriptor:t(n.key)}:{...n,key:g};return o!=null&&(h.finisher=function(
|
|
49
|
+
*/const ad=({finisher:o,descriptor:t})=>(n,l)=>{var c;if(l===void 0){const g=(c=n.originalKey)!==null&&c!==void 0?c:n.key,h=t!=null?{kind:"method",placement:"prototype",key:g,descriptor:t(n.key)}:{...n,key:g};return o!=null&&(h.finisher=function(w){o(w,g)}),h}{const g=n.constructor;t!==void 0&&Object.defineProperty(n,l,t(l)),o==null||o(g,l)}};/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/function
|
|
57
|
+
*/function Tv(o){return ad({descriptor:t=>({async get(){var n;return await this.updateComplete,(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(o)},enumerable:!0,configurable:!0})})}/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var
|
|
61
|
+
*/var Wf;const Ov=((Wf=window.HTMLSlotElement)===null||Wf===void 0?void 0:Wf.prototype.assignedElements)!=null?(o,t)=>o.assignedElements(t):(o,t)=>o.assignedNodes(t).filter(n=>n.nodeType===Node.ELEMENT_NODE);function Jo(o){const{slot:t,selector:n}=o!=null?o:{};return ad({descriptor:l=>({get(){var c;const g="slot"+(t?`[name=${t}]`:":not([name])"),h=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(g),w=h!=null?Ov(h,o):[];return n?w.filter(z=>z.matches(n)):w},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 Th(o,t,n){let l,c=o;return typeof o=="object"?(c=o.slot,l=o):l={flatten:t},n?Jo({slot:c,flatten:t,selector:n}):ad({descriptor:g=>({get(){var h,w;const z="slot"+(c?`[name=${c}]`:":not([name])"),S=(h=this.renderRoot)===null||h===void 0?void 0:h.querySelector(z);return(w=S==null?void 0:S.assignedNodes(l))!==null&&w!==void 0?w:[]},enumerable:!0,configurable:!0})})}function ah(o,t){if(o){if(o instanceof t)return o;if(o instanceof ShadowRoot)return ah(o.host,t);if("parentNode"in o)return ah(o.parentElement||o.parentNode,t)}return null}const Le=o=>`brz-${o.toLowerCase()}`,ee=o=>customElements.get(o)?(console.warn(`Breeze UI 💨 :: ${o} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...t)=>{}):Bu(o);var Ev=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,Oh=(o,t,n,l)=>{for(var c=l>1?void 0:l?kv(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Ev(t,n,c),c};const P5=Le("fade-in-out");exports.FadeInOut=class extends We{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(t){t.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?j``:j`<slot></slot>`}};exports.FadeInOut.styles=fe`
|
|
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
|
+
`;Oh([F({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Oh([Be()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Oh([ee(P5)],exports.FadeInOut);/**
|
|
83
83
|
* @license
|
|
84
84
|
* Copyright 2017 Google LLC
|
|
85
85
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -87,31 +87,31 @@
|
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2018 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
|
-
*/const
|
|
90
|
+
*/const En=ld(class extends ud{constructor(o){var t;if(super(o),o.type!==sd.ATTRIBUTE||o.name!=="class"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var n,l;if(this.it===void 0){this.it=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(g=>g!=="")));for(const g in t)t[g]&&!(!((n=this.nt)===null||n===void 0)&&n.has(g))&&this.it.add(g);return this.render(t)}const c=o.element.classList;this.it.forEach(g=>{g in t||(c.remove(g),this.it.delete(g))});for(const g in t){const h=!!t[g];h===this.it.has(g)||!((l=this.nt)===null||l===void 0)&&l.has(g)||(h?(c.add(g),this.it.add(g)):(c.remove(g),this.it.delete(g)))}return Yo}});/**
|
|
91
91
|
* @license
|
|
92
92
|
* Copyright 2018 Google LLC
|
|
93
93
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
-
*/const
|
|
94
|
+
*/const _t=o=>o!=null?o:pr,js=(o,t=fe``)=>{const n=fe`
|
|
95
95
|
outline: var(--brz-outline-color) var(--brz-outline-style)
|
|
96
96
|
var(--brz-outline-width);
|
|
97
97
|
outline-offset: var(--brz-outline-offset);
|
|
98
98
|
transition: var(--brz-outline-transition);
|
|
99
99
|
${t};
|
|
100
100
|
`;return fe`
|
|
101
|
-
:host ${
|
|
101
|
+
:host ${Wa(o)} {
|
|
102
102
|
outline-color: transparent;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
:host ${
|
|
105
|
+
:host ${Wa(o)}:focus-visible {
|
|
106
106
|
${n};
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
@supports not selector(:focus-visible) {
|
|
110
|
-
:host ${
|
|
110
|
+
:host ${Wa(o)}:focus {
|
|
111
111
|
${n};
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`},
|
|
114
|
+
`},D5=fe`
|
|
115
115
|
background: none;
|
|
116
116
|
border: 0;
|
|
117
117
|
border-radius: var(--brz-border-radius-default);
|
|
@@ -121,22 +121,22 @@
|
|
|
121
121
|
font: inherit;
|
|
122
122
|
margin: 0;
|
|
123
123
|
padding: 0;
|
|
124
|
-
`,
|
|
125
|
-
:host ${
|
|
126
|
-
${
|
|
124
|
+
`,N5=(o,t=fe``)=>fe`
|
|
125
|
+
:host ${Wa(o)} {
|
|
126
|
+
${D5};
|
|
127
127
|
${t};
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
:host ${
|
|
130
|
+
:host ${Wa(o)}:hover {
|
|
131
131
|
color: var(--brz-color-neutral-850);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
${
|
|
135
|
-
`;var
|
|
134
|
+
${js(o)}
|
|
135
|
+
`;var kn="top",hi="bottom",pi="right",In="left",cd="auto",Vu=[kn,hi,pi,In],c1="start",Du="end",Iv="clippingParents",R5="viewport",yu="popper",Av="reference",f2=Vu.reduce(function(o,t){return o.concat([t+"-"+c1,t+"-"+Du])},[]),H5=[].concat(Vu,[cd]).reduce(function(o,t){return o.concat([t,t+"-"+c1,t+"-"+Du])},[]),$v="beforeRead",Pv="read",Dv="afterRead",Nv="beforeMain",Rv="main",Hv="afterMain",Fv="beforeWrite",Bv="write",Vv="afterWrite",sh=[$v,Pv,Dv,Nv,Rv,Hv,Fv,Bv,Vv];function vo(o){return o?(o.nodeName||"").toLowerCase():null}function gi(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var t=o.ownerDocument;return t&&t.defaultView||window}return o}function Ks(o){var t=gi(o).Element;return o instanceof t||o instanceof Element}function jn(o){var t=gi(o).HTMLElement;return o instanceof t||o instanceof HTMLElement}function Eh(o){if(typeof ShadowRoot=="undefined")return!1;var t=gi(o).ShadowRoot;return o instanceof t||o instanceof ShadowRoot}function Wv(o){var t=o.state;Object.keys(t.elements).forEach(function(n){var l=t.styles[n]||{},c=t.attributes[n]||{},g=t.elements[n];!jn(g)||!vo(g)||(Object.assign(g.style,l),Object.keys(c).forEach(function(h){var w=c[h];w===!1?g.removeAttribute(h):g.setAttribute(h,w===!0?"":w)}))})}function Zv(o){var t=o.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(l){var c=t.elements[l],g=t.attributes[l]||{},h=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:n[l]),w=h.reduce(function(z,S){return z[S]="",z},{});!jn(c)||!vo(c)||(Object.assign(c.style,w),Object.keys(g).forEach(function(z){c.removeAttribute(z)}))})}}const Uv={name:"applyStyles",enabled:!0,phase:"write",fn:Wv,effect:Zv,requires:["computeStyles"]};function Pi(o){return o.split("-")[0]}var Ws=Math.max,V0=Math.min,d1=Math.round;function lh(){var o=navigator.userAgentData;return o!=null&&o.brands?o.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function F5(){return!/^((?!chrome|android).)*safari/i.test(lh())}function f1(o,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var l=o.getBoundingClientRect(),c=1,g=1;t&&jn(o)&&(c=o.offsetWidth>0&&d1(l.width)/o.offsetWidth||1,g=o.offsetHeight>0&&d1(l.height)/o.offsetHeight||1);var h=Ks(o)?gi(o):window,w=h.visualViewport,z=!F5()&&n,S=(l.left+(z&&w?w.offsetLeft:0))/c,k=(l.top+(z&&w?w.offsetTop:0))/g,D=l.width/c,B=l.height/g;return{width:D,height:B,top:k,right:S+D,bottom:k+B,left:S,x:S,y:k}}function kh(o){var t=f1(o),n=o.offsetWidth,l=o.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:o.offsetLeft,y:o.offsetTop,width:n,height:l}}function B5(o,t){var n=t.getRootNode&&t.getRootNode();if(o.contains(t))return!0;if(n&&Eh(n)){var l=t;do{if(l&&o.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Di(o){return gi(o).getComputedStyle(o)}function Gv(o){return["table","td","th"].indexOf(vo(o))>=0}function Za(o){return((Ks(o)?o.ownerDocument:o.document)||window.document).documentElement}function dd(o){return vo(o)==="html"?o:o.assignedSlot||o.parentNode||(Eh(o)?o.host:null)||Za(o)}function h2(o){return!jn(o)||Di(o).position==="fixed"?null:o.offsetParent}function qv(o){var t=/firefox/i.test(lh()),n=/Trident/i.test(lh());if(n&&jn(o)){var l=Di(o);if(l.position==="fixed")return null}var c=dd(o);for(Eh(c)&&(c=c.host);jn(c)&&["html","body"].indexOf(vo(c))<0;){var g=Di(c);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||t&&g.willChange==="filter"||t&&g.filter&&g.filter!=="none")return c;c=c.parentNode}return null}function Wu(o){for(var t=gi(o),n=h2(o);n&&Gv(n)&&Di(n).position==="static";)n=h2(n);return n&&(vo(n)==="html"||vo(n)==="body"&&Di(n).position==="static")?t:n||qv(o)||t}function Ih(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function _u(o,t,n){return Ws(o,V0(t,n))}function jv(o,t,n){var l=_u(o,t,n);return l>n?n:l}function V5(){return{top:0,right:0,bottom:0,left:0}}function W5(o){return Object.assign({},V5(),o)}function Z5(o,t){return t.reduce(function(n,l){return n[l]=o,n},{})}var Kv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,W5(typeof t!="number"?t:Z5(t,Vu))};function Yv(o){var t,n=o.state,l=o.name,c=o.options,g=n.elements.arrow,h=n.modifiersData.popperOffsets,w=Pi(n.placement),z=Ih(w),S=[In,pi].indexOf(w)>=0,k=S?"height":"width";if(!(!g||!h)){var D=Kv(c.padding,n),B=kh(g),R=z==="y"?kn:In,J=z==="y"?hi:pi,pe=n.rects.reference[k]+n.rects.reference[z]-h[z]-n.rects.popper[k],ge=h[z]-n.rects.reference[z],Te=Wu(g),Ie=Te?z==="y"?Te.clientHeight||0:Te.clientWidth||0:0,be=pe/2-ge/2,ve=D[R],Oe=Ie-B[k]-D[J],$e=Ie/2-B[k]/2+be,De=_u(ve,$e,Oe),je=z;n.modifiersData[l]=(t={},t[je]=De,t.centerOffset=De-$e,t)}}function Xv(o){var t=o.state,n=o.options,l=n.element,c=l===void 0?"[data-popper-arrow]":l;if(c!=null&&!(typeof c=="string"&&(c=t.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&(jn(c)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!B5(t.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=c}}const Jv={name:"arrow",enabled:!0,phase:"main",fn:Yv,effect:Xv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function h1(o){return o.split("-")[1]}var Qv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eb(o){var t=o.x,n=o.y,l=window,c=l.devicePixelRatio||1;return{x:d1(t*c)/c||0,y:d1(n*c)/c||0}}function p2(o){var t,n=o.popper,l=o.popperRect,c=o.placement,g=o.variation,h=o.offsets,w=o.position,z=o.gpuAcceleration,S=o.adaptive,k=o.roundOffsets,D=o.isFixed,B=h.x,R=B===void 0?0:B,J=h.y,pe=J===void 0?0:J,ge=typeof k=="function"?k({x:R,y:pe}):{x:R,y:pe};R=ge.x,pe=ge.y;var Te=h.hasOwnProperty("x"),Ie=h.hasOwnProperty("y"),be=In,ve=kn,Oe=window;if(S){var $e=Wu(n),De="clientHeight",je="clientWidth";if($e===gi(n)&&($e=Za(n),Di($e).position!=="static"&&w==="absolute"&&(De="scrollHeight",je="scrollWidth")),$e=$e,c===kn||(c===In||c===pi)&&g===Du){ve=hi;var Ye=D&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.height:$e[De];pe-=Ye-l.height,pe*=z?1:-1}if(c===In||(c===kn||c===hi)&&g===Du){be=pi;var Ce=D&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.width:$e[je];R-=Ce-l.width,R*=z?1:-1}}var le=Object.assign({position:w},S&&Qv),Q=k===!0?eb({x:R,y:pe}):{x:R,y:pe};if(R=Q.x,pe=Q.y,z){var $;return Object.assign({},le,($={},$[ve]=Ie?"0":"",$[be]=Te?"0":"",$.transform=(Oe.devicePixelRatio||1)<=1?"translate("+R+"px, "+pe+"px)":"translate3d("+R+"px, "+pe+"px, 0)",$))}return Object.assign({},le,(t={},t[ve]=Ie?pe+"px":"",t[be]=Te?R+"px":"",t.transform="",t))}function tb(o){var t=o.state,n=o.options,l=n.gpuAcceleration,c=l===void 0?!0:l,g=n.adaptive,h=g===void 0?!0:g,w=n.roundOffsets,z=w===void 0?!0:w;if({}.NODE_ENV!=="production"){var S=Di(t.elements.popper).transitionProperty||"";h&&["transform","top","right","bottom","left"].some(function(D){return S.indexOf(D)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
136
136
|
|
|
137
137
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
138
138
|
|
|
139
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:Pi(t.placement),variation:h1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,h2(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h2(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eb,data:{}};var x0={passive:!0};function rb(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,x=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(E){E.addEventListener("scroll",n.update,x0)}),x&&z.addEventListener("resize",n.update,x0),function(){g&&S.forEach(function(E){E.removeEventListener("scroll",n.update,x0)}),x&&z.removeEventListener("resize",n.update,x0)}}const nb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rb,data:{}};var ib={left:"right",right:"left",bottom:"top",top:"bottom"};function A0(o){return o.replace(/left|right|bottom|top/g,function(t){return ib[t]})}var ob={start:"end",end:"start"};function p2(o){return o.replace(/start|end/g,function(t){return ob[t]})}function Ih(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function Ah(o){return f1(Za(o)).left+Ih(o).scrollLeft}function ab(o,t){var n=gi(o),l=Za(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,x=0,z=0;if(c){g=c.width,h=c.height;var S=H5();(S||!S&&t==="fixed")&&(x=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:x+Ah(o),y:z}}function sb(o){var t,n=Za(o),l=Ih(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Ws(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Ws(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),x=-l.scrollLeft+Ah(o),z=-l.scrollTop;return Di(c||n).direction==="rtl"&&(x+=Ws(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x,y:z}}function $h(o){var t=Di(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function Z5(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:jn(o)&&$h(o)?o:Z5(dd(o))}function Tu(o,t){var n;t===void 0&&(t=[]);var l=Z5(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],$h(l)?l:[]):l,x=t.concat(h);return c?x:x.concat(Tu(dd(h)))}function uh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function lb(o,t){var n=f1(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function g2(o,t,n){return t===N5?uh(ab(o,n)):js(t)?lb(t,n):uh(sb(Za(o)))}function ub(o){var t=Tu(dd(o)),n=["absolute","fixed"].indexOf(Di(o).position)>=0,l=n&&jn(o)?Vu(o):o;return js(l)?t.filter(function(c){return js(c)&&F5(c,l)&&vo(c)!=="body"}):[]}function cb(o,t,n,l){var c=t==="clippingParents"?ub(o):[].concat(t),g=[].concat(c,[n]),h=g[0],x=g.reduce(function(z,S){var E=g2(o,S,l);return z.top=Ws(E.top,z.top),z.right=W0(E.right,z.right),z.bottom=W0(E.bottom,z.bottom),z.left=Ws(E.left,z.left),z},g2(o,h,l));return x.width=x.right-x.left,x.height=x.bottom-x.top,x.x=x.left,x.y=x.top,x}function U5(o){var t=o.reference,n=o.element,l=o.placement,c=l?Pi(l):null,g=l?h1(l):null,h=t.x+t.width/2-n.width/2,x=t.y+t.height/2-n.height/2,z;switch(c){case En:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:x};break;case In:z={x:t.x-n.width,y:x};break;default:z={x:t.x,y:t.y}}var S=c?Eh(c):null;if(S!=null){var E=S==="y"?"height":"width";switch(g){case c1:z[S]=z[S]-(t[E]/2-n[E]/2);break;case Du:z[S]=z[S]+(t[E]/2-n[E]/2);break}}return z}function Nu(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,x=n.boundary,z=x===void 0?Ev:x,S=n.rootBoundary,E=S===void 0?N5:S,D=n.elementContext,B=D===void 0?yu:D,R=n.altBoundary,J=R===void 0?!1:R,pe=n.padding,ge=pe===void 0?0:pe,Te=W5(typeof ge!="number"?ge:V5(ge,Wu)),Ie=B===yu?Iv:yu,be=o.rects.popper,ve=o.elements[J?Ie:B],Oe=cb(js(ve)?ve:ve.contextElement||Za(o.elements.popper),z,E,h),$e=f1(o.elements.reference),De=U5({reference:$e,element:be,strategy:"absolute",placement:c}),je=uh(Object.assign({},be,De)),Ye=B===yu?je:$e,Ce={top:Oe.top-Ye.top+Te.top,bottom:Ye.bottom-Oe.bottom+Te.bottom,left:Oe.left-Ye.left+Te.left,right:Ye.right-Oe.right+Te.right},le=o.modifiersData.offset;if(B===yu&&le){var Q=le[c];Object.keys(Ce).forEach(function($){var O=[pi,hi].indexOf($)>=0?1:-1,k=[En,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[k]*O})}return Ce}function db(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,x=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?R5:z,E=h1(l),D=E?x?d2:d2.filter(function(J){return h1(J)===E}):Wu,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var R=B.reduce(function(J,pe){return J[pe]=Nu(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Pi(pe)],J},{});return Object.keys(R).sort(function(J,pe){return R[J]-R[pe]})}function fb(o){if(Pi(o)===cd)return[];var t=A0(o);return[p2(o),t,p2(t)]}function hb(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,x=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,E=n.boundary,D=n.rootBoundary,B=n.altBoundary,R=n.flipVariations,J=R===void 0?!0:R,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Pi(ge),Ie=Te===ge,be=z||(Ie||!J?[A0(ge)]:fb(ge)),ve=[ge].concat(be).reduce(function(xt,rt){return xt.concat(Pi(rt)===cd?db(t,{placement:rt,boundary:E,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),Oe=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var le=ve[Ce],Q=Pi(le),$=h1(le)===c1,O=[En,hi].indexOf(Q)>=0,k=O?"width":"height",X=Nu(t,{placement:le,boundary:E,rootBoundary:D,altBoundary:B,padding:S}),ue=O?$?pi:In:$?hi:En;Oe[k]>$e[k]&&(ue=A0(ue));var Ae=A0(ue),et=[];if(g&&et.push(X[Q]<=0),x&&et.push(X[ue]<=0,X[Ae]<=0),et.every(function(xt){return xt})){Ye=le,je=!1;break}De.set(le,et)}if(je)for(var pt=J?3:1,yt=function(rt){var ze=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(ze)return Ye=ze,"break"},or=pt;or>0;or--){var _t=yt(or);if(_t==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const pb={name:"flip",enabled:!0,phase:"main",fn:hb,requiresIfExists:["offset"],data:{_skip:!1}};function v2(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function b2(o){return[En,pi,hi,In].some(function(t){return o[t]>=0})}function gb(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Nu(t,{elementContext:"reference"}),x=Nu(t,{altBoundary:!0}),z=v2(h,l),S=v2(x,c,g),E=b2(z),D=b2(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:E,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":D})}const vb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gb};function bb(o,t,n){var l=Pi(o),c=[In,En].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],x=g[1];return h=h||0,x=(x||0)*c,[In,pi].indexOf(l)>=0?{x,y:h}:{x:h,y:x}}function mb(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=R5.reduce(function(E,D){return E[D]=bb(D,t.rects,g),E},{}),x=h[t.placement],z=x.x,S=x.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const yb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mb};function Cb(o){var t=o.state,n=o.name;t.modifiersData[n]=U5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const wb={name:"popperOffsets",enabled:!0,phase:"read",fn:Cb,data:{}};function xb(o){return o==="x"?"y":"x"}function zb(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,x=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,E=n.altBoundary,D=n.padding,B=n.tether,R=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Nu(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:E}),Te=Pi(t.placement),Ie=h1(t.placement),be=!Ie,ve=Eh(Te),Oe=xb(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,O=ve==="y"?En:In,k=ve==="y"?hi:pi,X=ve==="y"?"height":"width",ue=$e[ve],Ae=ue+ge[O],et=ue-ge[k],pt=R?-je[X]/2:0,yt=Ie===c1?De[X]:je[X],or=Ie===c1?-je[X]:-De[X],_t=t.elements.arrow,xt=R&&_t?kh(_t):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B5(),ze=rt[O],Ne=rt[k],Ge=_u(0,De[X],xt[X]),st=be?De[X]/2-pt-Ge-ze-Ce.mainAxis:yt-Ge-ze-Ce.mainAxis,lt=be?-De[X]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ue=t.elements.arrow&&Vu(t.elements.arrow),Zt=Ue?ve==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Ur=($=le==null?void 0:le[ve])!=null?$:0,tr=ue+st-Ur-Zt,Qe=ue+lt-Ur,bt=_u(R?W0(Ae,tr):Ae,ue,R?Ws(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ue}if(x){var Et,Pr=ve==="x"?En:In,en=ve==="x"?hi:pi,ar=$e[Oe],it=Oe==="y"?"height":"width",U=ar+ge[Pr],se=ar-ge[en],Y=[En,In].indexOf(Te)!==-1,tt=(Et=le==null?void 0:le[Oe])!=null?Et:0,sr=Y?U:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=Y?ar+De[it]+je[it]-tt-Ce.altAxis:se,$n=R&&Y?qv(sr,ar,Lr):_u(R?sr:U,ar,R?Lr:se);$e[Oe]=$n,Q[Oe]=$n-ar}t.modifiersData[l]=Q}}const Lb={name:"preventOverflow",enabled:!0,phase:"main",fn:zb,requiresIfExists:["offset"]};function Sb(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Mb(o){return o===gi(o)||!jn(o)?Ih(o):Sb(o)}function _b(o){var t=o.getBoundingClientRect(),n=d1(t.width)/o.offsetWidth||1,l=d1(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Tb(o,t,n){n===void 0&&(n=!1);var l=jn(t),c=jn(t)&&_b(t),g=Za(t),h=f1(o,c,n),x={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||$h(g))&&(x=Mb(t)),jn(t)?(z=f1(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=Ah(g))),{x:h.left+x.scrollLeft-z.x,y:h.top+x.scrollTop-z.y,width:h.width,height:h.height}}function Ob(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(x){if(!n.has(x)){var z=t.get(x);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function kb(o){var t=Ob(o);return sh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Eb(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Na(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var As='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ib='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',m2=["name","enabled","phase","fn","effect","requires","options"];function Ab(o){o.forEach(function(t){[].concat(Object.keys(t),m2).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Na(As,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Na(As,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":sh.indexOf(t.phase)<0&&console.error(Na(As,t.name,'"phase"',"either "+sh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Na(As,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Na(As,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Na(As,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Na(As,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+m2.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Na(Ib,String(t.name),l,l))})})})}function $b(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Pb(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var y2="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Db="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",C2={placement:"bottom",modifiers:[],strategy:"absolute"};function w2(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Nb(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?C2:c;return function(x,z,S){S===void 0&&(S=g);var E={placement:"bottom",orderedModifiers:[],options:Object.assign({},C2,g),modifiersData:{},elements:{reference:x,popper:z},attributes:{},styles:{}},D=[],B=!1,R={state:E,setOptions:function(Te){var Ie=typeof Te=="function"?Te(E.options):Te;pe(),E.options=Object.assign({},g,E.options,Ie),E.scrollParents={reference:js(x)?Tu(x):x.contextElement?Tu(x.contextElement):[],popper:Tu(z)};var be=kb(Pb([].concat(l,E.options.modifiers)));if(E.orderedModifiers=be.filter(function(le){return le.enabled}),{}.NODE_ENV!=="production"){var ve=$b([].concat(be,E.options.modifiers),function(le){var Q=le.name;return Q});if(Ab(ve),Pi(E.options.placement)===cd){var Oe=E.orderedModifiers.find(function(le){var Q=le.name;return Q==="flip"});Oe||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Di(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(le){return parseFloat(le)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return J(),R.update()},forceUpdate:function(){if(!B){var Te=E.elements,Ie=Te.reference,be=Te.popper;if(!w2(Ie,be)){({}).NODE_ENV!=="production"&&console.error(y2);return}E.rects={reference:Tb(Ie,Vu(be),E.options.strategy==="fixed"),popper:kh(be)},E.reset=!1,E.placement=E.options.placement,E.orderedModifiers.forEach(function(le){return E.modifiersData[le.name]=Object.assign({},le.data)});for(var ve=0,Oe=0;Oe<E.orderedModifiers.length;Oe++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Db);break}if(E.reset===!0){E.reset=!1,Oe=-1;continue}var $e=E.orderedModifiers[Oe],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(E=De({state:E,options:Ye,name:Ce,instance:R})||E)}}},update:Eb(function(){return new Promise(function(ge){R.forceUpdate(),ge(E)})}),destroy:function(){pe(),B=!0}};if(!w2(x,z))return{}.NODE_ENV!=="production"&&console.error(y2),R;R.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){E.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var Oe=ve({state:E,name:Te,instance:R,options:be}),$e=function(){};D.push(Oe||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return R}}var Rb=[nb,wb,tb,Zv,yb,pb,Lb,Xv,vb],Hb=Nb({defaultModifiers:Rb}),Fb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Jr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Bb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fb(t,n,c),c};let Wb=0;const Ph=Le("popover"),G5=Le("pure-popover"),q5=["click","hover","focus"],[V0,ch,Rs]=q5,Dh=["dialog","tooltip","menu"],[Vb]=Dh;class j5 extends CustomEvent{constructor(t){super(`${Ph}-${t}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ve{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=Vb,this.disabled=!1,this.popoverId=`popover-${++Wb}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Hb(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){this.popperInstance&&await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new j5(t))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return j`
|
|
139
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var k={placement:Pi(t.placement),variation:h1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p2(Object.assign({},k,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p2(Object.assign({},k,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tb,data:{}};var x0={passive:!0};function nb(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,w=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(k){k.addEventListener("scroll",n.update,x0)}),w&&z.addEventListener("resize",n.update,x0),function(){g&&S.forEach(function(k){k.removeEventListener("scroll",n.update,x0)}),w&&z.removeEventListener("resize",n.update,x0)}}const ib={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nb,data:{}};var ob={left:"right",right:"left",bottom:"top",top:"bottom"};function A0(o){return o.replace(/left|right|bottom|top/g,function(t){return ob[t]})}var ab={start:"end",end:"start"};function g2(o){return o.replace(/start|end/g,function(t){return ab[t]})}function Ah(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function $h(o){return f1(Za(o)).left+Ah(o).scrollLeft}function sb(o,t){var n=gi(o),l=Za(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,w=0,z=0;if(c){g=c.width,h=c.height;var S=F5();(S||!S&&t==="fixed")&&(w=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:w+$h(o),y:z}}function lb(o){var t,n=Za(o),l=Ah(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Ws(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Ws(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),w=-l.scrollLeft+$h(o),z=-l.scrollTop;return Di(c||n).direction==="rtl"&&(w+=Ws(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x:w,y:z}}function Ph(o){var t=Di(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function U5(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:jn(o)&&Ph(o)?o:U5(dd(o))}function Tu(o,t){var n;t===void 0&&(t=[]);var l=U5(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],Ph(l)?l:[]):l,w=t.concat(h);return c?w:w.concat(Tu(dd(h)))}function uh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function ub(o,t){var n=f1(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function v2(o,t,n){return t===R5?uh(sb(o,n)):Ks(t)?ub(t,n):uh(lb(Za(o)))}function cb(o){var t=Tu(dd(o)),n=["absolute","fixed"].indexOf(Di(o).position)>=0,l=n&&jn(o)?Wu(o):o;return Ks(l)?t.filter(function(c){return Ks(c)&&B5(c,l)&&vo(c)!=="body"}):[]}function db(o,t,n,l){var c=t==="clippingParents"?cb(o):[].concat(t),g=[].concat(c,[n]),h=g[0],w=g.reduce(function(z,S){var k=v2(o,S,l);return z.top=Ws(k.top,z.top),z.right=V0(k.right,z.right),z.bottom=V0(k.bottom,z.bottom),z.left=Ws(k.left,z.left),z},v2(o,h,l));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}function G5(o){var t=o.reference,n=o.element,l=o.placement,c=l?Pi(l):null,g=l?h1(l):null,h=t.x+t.width/2-n.width/2,w=t.y+t.height/2-n.height/2,z;switch(c){case kn:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:w};break;case In:z={x:t.x-n.width,y:w};break;default:z={x:t.x,y:t.y}}var S=c?Ih(c):null;if(S!=null){var k=S==="y"?"height":"width";switch(g){case c1:z[S]=z[S]-(t[k]/2-n[k]/2);break;case Du:z[S]=z[S]+(t[k]/2-n[k]/2);break}}return z}function Nu(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,w=n.boundary,z=w===void 0?Iv:w,S=n.rootBoundary,k=S===void 0?R5:S,D=n.elementContext,B=D===void 0?yu:D,R=n.altBoundary,J=R===void 0?!1:R,pe=n.padding,ge=pe===void 0?0:pe,Te=W5(typeof ge!="number"?ge:Z5(ge,Vu)),Ie=B===yu?Av:yu,be=o.rects.popper,ve=o.elements[J?Ie:B],Oe=db(Ks(ve)?ve:ve.contextElement||Za(o.elements.popper),z,k,h),$e=f1(o.elements.reference),De=G5({reference:$e,element:be,strategy:"absolute",placement:c}),je=uh(Object.assign({},be,De)),Ye=B===yu?je:$e,Ce={top:Oe.top-Ye.top+Te.top,bottom:Ye.bottom-Oe.bottom+Te.bottom,left:Oe.left-Ye.left+Te.left,right:Ye.right-Oe.right+Te.right},le=o.modifiersData.offset;if(B===yu&&le){var Q=le[c];Object.keys(Ce).forEach(function($){var O=[pi,hi].indexOf($)>=0?1:-1,E=[kn,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[E]*O})}return Ce}function fb(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,w=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?H5:z,k=h1(l),D=k?w?f2:f2.filter(function(J){return h1(J)===k}):Vu,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var R=B.reduce(function(J,pe){return J[pe]=Nu(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Pi(pe)],J},{});return Object.keys(R).sort(function(J,pe){return R[J]-R[pe]})}function hb(o){if(Pi(o)===cd)return[];var t=A0(o);return[g2(o),t,g2(t)]}function pb(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,k=n.boundary,D=n.rootBoundary,B=n.altBoundary,R=n.flipVariations,J=R===void 0?!0:R,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Pi(ge),Ie=Te===ge,be=z||(Ie||!J?[A0(ge)]:hb(ge)),ve=[ge].concat(be).reduce(function(xt,rt){return xt.concat(Pi(rt)===cd?fb(t,{placement:rt,boundary:k,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),Oe=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var le=ve[Ce],Q=Pi(le),$=h1(le)===c1,O=[kn,hi].indexOf(Q)>=0,E=O?"width":"height",X=Nu(t,{placement:le,boundary:k,rootBoundary:D,altBoundary:B,padding:S}),ue=O?$?pi:In:$?hi:kn;Oe[E]>$e[E]&&(ue=A0(ue));var Ae=A0(ue),et=[];if(g&&et.push(X[Q]<=0),w&&et.push(X[ue]<=0,X[Ae]<=0),et.every(function(xt){return xt})){Ye=le,je=!1;break}De.set(le,et)}if(je)for(var pt=J?3:1,yt=function(rt){var ze=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(ze)return Ye=ze,"break"},or=pt;or>0;or--){var Tt=yt(or);if(Tt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const gb={name:"flip",enabled:!0,phase:"main",fn:pb,requiresIfExists:["offset"],data:{_skip:!1}};function b2(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function m2(o){return[kn,pi,hi,In].some(function(t){return o[t]>=0})}function vb(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Nu(t,{elementContext:"reference"}),w=Nu(t,{altBoundary:!0}),z=b2(h,l),S=b2(w,c,g),k=m2(z),D=m2(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:k,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":k,"data-popper-escaped":D})}const bb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vb};function mb(o,t,n){var l=Pi(o),c=[In,kn].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],w=g[1];return h=h||0,w=(w||0)*c,[In,pi].indexOf(l)>=0?{x:w,y:h}:{x:h,y:w}}function yb(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=H5.reduce(function(k,D){return k[D]=mb(D,t.rects,g),k},{}),w=h[t.placement],z=w.x,S=w.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const Cb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yb};function wb(o){var t=o.state,n=o.name;t.modifiersData[n]=G5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xb={name:"popperOffsets",enabled:!0,phase:"read",fn:wb,data:{}};function zb(o){return o==="x"?"y":"x"}function Lb(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,k=n.altBoundary,D=n.padding,B=n.tether,R=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Nu(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:k}),Te=Pi(t.placement),Ie=h1(t.placement),be=!Ie,ve=Ih(Te),Oe=zb(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,O=ve==="y"?kn:In,E=ve==="y"?hi:pi,X=ve==="y"?"height":"width",ue=$e[ve],Ae=ue+ge[O],et=ue-ge[E],pt=R?-je[X]/2:0,yt=Ie===c1?De[X]:je[X],or=Ie===c1?-je[X]:-De[X],Tt=t.elements.arrow,xt=R&&Tt?kh(Tt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V5(),ze=rt[O],Ne=rt[E],Ge=_u(0,De[X],xt[X]),st=be?De[X]/2-pt-Ge-ze-Ce.mainAxis:yt-Ge-ze-Ce.mainAxis,lt=be?-De[X]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ue=t.elements.arrow&&Wu(t.elements.arrow),Zt=Ue?ve==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Ur=($=le==null?void 0:le[ve])!=null?$:0,tr=ue+st-Ur-Zt,Qe=ue+lt-Ur,bt=_u(R?V0(Ae,tr):Ae,ue,R?Ws(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ue}if(w){var kt,Pr=ve==="x"?kn:In,en=ve==="x"?hi:pi,ar=$e[Oe],it=Oe==="y"?"height":"width",U=ar+ge[Pr],se=ar-ge[en],Y=[kn,In].indexOf(Te)!==-1,tt=(kt=le==null?void 0:le[Oe])!=null?kt:0,sr=Y?U:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=Y?ar+De[it]+je[it]-tt-Ce.altAxis:se,$n=R&&Y?jv(sr,ar,Lr):_u(R?sr:U,ar,R?Lr:se);$e[Oe]=$n,Q[Oe]=$n-ar}t.modifiersData[l]=Q}}const Sb={name:"preventOverflow",enabled:!0,phase:"main",fn:Lb,requiresIfExists:["offset"]};function Mb(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function _b(o){return o===gi(o)||!jn(o)?Ah(o):Mb(o)}function Tb(o){var t=o.getBoundingClientRect(),n=d1(t.width)/o.offsetWidth||1,l=d1(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Ob(o,t,n){n===void 0&&(n=!1);var l=jn(t),c=jn(t)&&Tb(t),g=Za(t),h=f1(o,c,n),w={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||Ph(g))&&(w=_b(t)),jn(t)?(z=f1(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=$h(g))),{x:h.left+w.scrollLeft-z.x,y:h.top+w.scrollTop-z.y,width:h.width,height:h.height}}function Eb(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(w){if(!n.has(w)){var z=t.get(w);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function kb(o){var t=Eb(o);return sh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Ib(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Na(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var $s='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ab='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',y2=["name","enabled","phase","fn","effect","requires","options"];function $b(o){o.forEach(function(t){[].concat(Object.keys(t),y2).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Na($s,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Na($s,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":sh.indexOf(t.phase)<0&&console.error(Na($s,t.name,'"phase"',"either "+sh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Na($s,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Na($s,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Na($s,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Na($s,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+y2.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Na(Ab,String(t.name),l,l))})})})}function Pb(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Db(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var C2="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Nb="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",w2={placement:"bottom",modifiers:[],strategy:"absolute"};function x2(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Rb(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?w2:c;return function(w,z,S){S===void 0&&(S=g);var k={placement:"bottom",orderedModifiers:[],options:Object.assign({},w2,g),modifiersData:{},elements:{reference:w,popper:z},attributes:{},styles:{}},D=[],B=!1,R={state:k,setOptions:function(Te){var Ie=typeof Te=="function"?Te(k.options):Te;pe(),k.options=Object.assign({},g,k.options,Ie),k.scrollParents={reference:Ks(w)?Tu(w):w.contextElement?Tu(w.contextElement):[],popper:Tu(z)};var be=kb(Db([].concat(l,k.options.modifiers)));if(k.orderedModifiers=be.filter(function(le){return le.enabled}),{}.NODE_ENV!=="production"){var ve=Pb([].concat(be,k.options.modifiers),function(le){var Q=le.name;return Q});if($b(ve),Pi(k.options.placement)===cd){var Oe=k.orderedModifiers.find(function(le){var Q=le.name;return Q==="flip"});Oe||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Di(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(le){return parseFloat(le)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return J(),R.update()},forceUpdate:function(){if(!B){var Te=k.elements,Ie=Te.reference,be=Te.popper;if(!x2(Ie,be)){({}).NODE_ENV!=="production"&&console.error(C2);return}k.rects={reference:Ob(Ie,Wu(be),k.options.strategy==="fixed"),popper:kh(be)},k.reset=!1,k.placement=k.options.placement,k.orderedModifiers.forEach(function(le){return k.modifiersData[le.name]=Object.assign({},le.data)});for(var ve=0,Oe=0;Oe<k.orderedModifiers.length;Oe++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Nb);break}if(k.reset===!0){k.reset=!1,Oe=-1;continue}var $e=k.orderedModifiers[Oe],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(k=De({state:k,options:Ye,name:Ce,instance:R})||k)}}},update:Ib(function(){return new Promise(function(ge){R.forceUpdate(),ge(k)})}),destroy:function(){pe(),B=!0}};if(!x2(w,z))return{}.NODE_ENV!=="production"&&console.error(C2),R;R.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){k.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var Oe=ve({state:k,name:Te,instance:R,options:be}),$e=function(){};D.push(Oe||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return R}}var Hb=[ib,xb,rb,Uv,Cb,gb,Sb,Jv,bb],Fb=Rb({defaultModifiers:Hb}),Bb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,Jr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Vb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Bb(t,n,c),c};let Wb=0;const Dh=Le("popover"),q5=Le("pure-popover"),j5=["click","hover","focus"],[W0,ch,Hs]=j5,Nh=["dialog","tooltip","menu"],[Zb]=Nh;class K5 extends CustomEvent{constructor(t){super(`${Dh}-${t}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends We{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=Zb,this.disabled=!1,this.popoverId=`popover-${++Wb}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Fb(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){this.popperInstance&&await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new K5(t))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return j`
|
|
140
140
|
<slot></slot>
|
|
141
141
|
|
|
142
142
|
<brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
.popover-container {
|
|
156
156
|
z-index: var(--brz-z-index-dialog);
|
|
157
157
|
}
|
|
158
|
-
`;Jr([F({type:Number})],exports.PurePopover.prototype,"distance",2);Jr([F({type:Number})],exports.PurePopover.prototype,"skidding",2);Jr([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Jr([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Jr([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Jr([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Jr([F({type:String})],exports.PurePopover.prototype,"placement",2);Jr([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Jr([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Jr([Be()],exports.PurePopover.prototype,"popoverId",2);Jr([Be()],exports.PurePopover.prototype,"popperInstance",2);Jr([Be()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Jr([ee(
|
|
158
|
+
`;Jr([F({type:Number})],exports.PurePopover.prototype,"distance",2);Jr([F({type:Number})],exports.PurePopover.prototype,"skidding",2);Jr([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Jr([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Jr([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Jr([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Jr([F({type:String})],exports.PurePopover.prototype,"placement",2);Jr([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Jr([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Jr([Be()],exports.PurePopover.prototype,"popoverId",2);Jr([Be()],exports.PurePopover.prototype,"popperInstance",2);Jr([Be()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Jr([ee(q5)],exports.PurePopover);const Z0=["blur","mouseenter","mouseleave","keydown",W0,Hs],[Zf,Ub,Gb,qb]=Z0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[W0]:this.handleClick,[Hs]:this.handleFocus,[Zf]:this.handleBlur,[Ub]:this.handleMouseEnter,[Gb]:this.handleMouseLeave,[qb]: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(){Z0.forEach(t=>this.addEventListener(t,this.listenableEventHandlers[t],{capture:[Hs,Zf].includes(t)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Z0.forEach(t=>this.removeEventListener(t,this.listenableEventHandlers[t],{capture:[Hs,Zf].includes(t)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(t){return this.triggers.includes(t)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(t){!this.isOpen||this.contains(t.target)||this.hasPointer||await this.close()}async handleClick(t){var n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(t.target)))){if(!this.hasTrigger(W0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(Hs)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Hs)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(ch)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(ch)||this.hasFocus)&&await this.close()}async handleKeyDown(t){t.stopPropagation(),["Escape","Esc"].includes(t.key)&&await this.close()}};Jr([F({type:String})],exports.Popover.prototype,"trigger",2);Jr([Be()],exports.Popover.prototype,"hasFocus",2);Jr([Be()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Jr([ee(Dh)],exports.Popover);var jb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,Qo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Kb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&jb(t,n,c),c};const Y5=Le("tooltip"),[,Yb]=Nh;var X5=(o=>(o[o.dark=0]="dark",o[o.light=1]="light",o))(X5||{});exports.Tooltip=class extends We{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return j`
|
|
159
159
|
<brz-popover
|
|
160
|
-
.popoverRole=${
|
|
160
|
+
.popoverRole=${Yb}
|
|
161
161
|
.distance=${8}
|
|
162
162
|
.delayOnClose=${this.delayOnClose}
|
|
163
163
|
.delayOnOpen=${this.delayOnOpen}
|
|
@@ -189,21 +189,21 @@
|
|
|
189
189
|
background-color: var(--brz-color-white);
|
|
190
190
|
color: var(--brz-color-text);
|
|
191
191
|
}
|
|
192
|
-
`;Qo([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Qo([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Qo([F({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);Qo([F({type:String})],exports.Tooltip.prototype,"placement",2);Qo([F({type:String})],exports.Tooltip.prototype,"trigger",2);Qo([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Qo([F({type:String})],exports.Tooltip.prototype,"content",2);Qo([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Qo([ee(
|
|
192
|
+
`;Qo([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Qo([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Qo([F({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);Qo([F({type:String})],exports.Tooltip.prototype,"placement",2);Qo([F({type:String})],exports.Tooltip.prototype,"trigger",2);Qo([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Qo([F({type:String})],exports.Tooltip.prototype,"content",2);Qo([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Qo([ee(Y5)],exports.Tooltip);var Xb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,Hi=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xb(t,n,c),c};const J5=Le("avatar"),Q5=Le("avatar-group");var U0=(o=>(o[o.tiny=0]="tiny",o[o.small=1]="small",o[o.medium=2]="medium",o[o.large=3]="large",o))(U0||{}),e6=(o=>(o[o.solid=0]="solid",o[o.subtle=1]="subtle",o[o.border=2]="border",o))(e6||{});exports.Avatar=class extends We{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:t}){const n=t==null?void 0:t.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=U0[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const t=U0[this.size],n=()=>{switch(t){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return j`
|
|
193
193
|
<span class="icon" aria-label=${this.label}>
|
|
194
|
-
<brz-icon size=${n()} icon=${
|
|
194
|
+
<brz-icon size=${n()} icon=${_t(this.icon)}></brz-icon>
|
|
195
195
|
</span>
|
|
196
196
|
`}get textTemplate(){return j`
|
|
197
197
|
<span aria-label=${this.label}>
|
|
198
198
|
${this.slottedElementsCount?`+${this.slottedElementsCount}`:this.abbreviatedLabel}
|
|
199
199
|
</span>
|
|
200
200
|
`}get imageTemplate(){return j`<img
|
|
201
|
-
src=${
|
|
201
|
+
src=${_t(this.imageSrc)}
|
|
202
202
|
alt=${this.label}
|
|
203
203
|
@error=${()=>{console.warn(`An invalid URL or missing resource was provided for the avatar of "${this.label}": ${this.imageSrc}`),this.removeAttribute("image-src")}}
|
|
204
204
|
/>`}get slotTemplate(){return j`
|
|
205
205
|
<div
|
|
206
|
-
class=${
|
|
206
|
+
class=${En({overflow:!0,hidden:!0})}
|
|
207
207
|
>
|
|
208
208
|
<slot @slotchange=${this.handleSlotChange} />
|
|
209
209
|
</div>
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
width: var(--brz-avatar-diameter);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
${
|
|
254
|
+
${js(".container",fe`
|
|
255
255
|
z-index: 1;
|
|
256
256
|
`)}
|
|
257
257
|
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
:host .hidden {
|
|
351
351
|
display: none;
|
|
352
352
|
}
|
|
353
|
-
`;Hi([F({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);Hi([F({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);Hi([F({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);Hi([F({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);Hi([F({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);Hi([F({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);Hi([F({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);Hi([F({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);Hi([Be()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=Hi([ee(
|
|
353
|
+
`;Hi([F({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);Hi([F({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);Hi([F({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);Hi([F({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);Hi([F({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);Hi([F({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);Hi([F({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);Hi([F({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);Hi([Be()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=Hi([ee(J5)],exports.Avatar);exports.AvatarGroup=class extends We{render(){return j` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=fe`
|
|
354
354
|
:host .container {
|
|
355
355
|
align-items: center;
|
|
356
356
|
display: inline-flex;
|
|
@@ -361,16 +361,16 @@
|
|
|
361
361
|
::slotted(sp-avatar:not(:first-child)) {
|
|
362
362
|
margin-left: -0.6em;
|
|
363
363
|
}
|
|
364
|
-
`;exports.AvatarGroup=Hi([ee(
|
|
365
|
-
--brz-spacing-${o}: ${o*
|
|
366
|
-
`),
|
|
364
|
+
`;exports.AvatarGroup=Hi([ee(Q5)],exports.AvatarGroup);const Rh=.25,Zu=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],Qb=Zu.map(o=>fe`
|
|
365
|
+
--brz-spacing-${o}: ${o*Rh}rem;
|
|
366
|
+
`),t6=fe`
|
|
367
367
|
:host {
|
|
368
368
|
--brz-spacing-px: 1px;
|
|
369
|
-
--brz-spacing-half: ${.5*
|
|
369
|
+
--brz-spacing-half: ${.5*Rh}rem;
|
|
370
370
|
|
|
371
|
-
${
|
|
371
|
+
${Wa(Qb.join(""))};
|
|
372
372
|
}
|
|
373
|
-
`,
|
|
373
|
+
`,em=["m","p"],tm=["x","y"],rm=["t","r","b","l"],nm=em.flatMap(o=>[o,...tm.map(t=>`${o}${t}`),...rm.map(t=>`${o}${t}`)]),im=nm.reduce((o,t)=>({...o,[t]:{type:Number,reflect:!0}}),{}),om=o=>fe`
|
|
374
374
|
:host([m='${o}']),
|
|
375
375
|
:host([my='${o}']),
|
|
376
376
|
:host([mt='${o}']) {
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
:host([pr='${o}']) {
|
|
419
419
|
padding-right: var(--brz-spacing-${o});
|
|
420
420
|
}
|
|
421
|
-
`,
|
|
421
|
+
`,am=Zu.map(om),sm=o=>{var n,l;class t extends o{}return t.styles=[(n=o.styles)!=null?n:[],...am],t.properties={...(l=o.properties)!=null?l:{},...im},t},g1=sm(We),lm=o=>o.viewBox!==void 0,um={arrowDown:{svg:G`
|
|
422
422
|
<title>Asset 36</title>
|
|
423
423
|
<g data-name="Layer 2">
|
|
424
424
|
<g data-name="Layer 1">
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
C7,14.1,7,14.1,7,14.1z"/>
|
|
729
729
|
<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
|
|
730
730
|
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
|
|
731
|
-
c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:G`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:G`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},
|
|
731
|
+
c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:G`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:G`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},cm="0 0 18 18",r6=o=>lm(o)?o:{svg:o,viewBox:cm},Hh={actions:G`
|
|
732
732
|
<g stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
733
733
|
<g transform="translate(-0.002970, 0.000000)">
|
|
734
734
|
<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>
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
<circle class="st0" cx="9" cy="13" r="1"/>
|
|
1194
1194
|
<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"/>
|
|
1195
1195
|
</g>
|
|
1196
|
-
<path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:G`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:G`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...
|
|
1196
|
+
<path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:G`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:G`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...um},dm=Object.keys(Hh);var fm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,Fh=(o,t,n,l)=>{for(var c=l>1?void 0:l?hm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fm(t,n,c),c};const n6=Le("icon");exports.Icon=class extends We{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:t,viewBox:n}=r6(Hh[this.icon]);return j`
|
|
1197
1197
|
<svg
|
|
1198
1198
|
role="presentation"
|
|
1199
1199
|
width=${this.size}
|
|
@@ -1211,7 +1211,7 @@
|
|
|
1211
1211
|
svg {
|
|
1212
1212
|
fill: currentColor;
|
|
1213
1213
|
}
|
|
1214
|
-
`;
|
|
1214
|
+
`;Fh([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Fh([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Fh([ee(n6)],exports.Icon);var pm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,ea=(o,t,n,l)=>{for(var c=l>1?void 0:l?gm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&pm(t,n,c),c};const i6=Le("link"),o6=Le("link-button"),vm=["a","button"],bm=fe`
|
|
1215
1215
|
:host {
|
|
1216
1216
|
display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
|
|
1217
1217
|
align-items: center;
|
|
@@ -1219,11 +1219,11 @@
|
|
|
1219
1219
|
font-weight: var(--brz-font-weight-medium);
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
|
-
${
|
|
1222
|
+
${js("a",fe`
|
|
1223
1223
|
border-radius: var(--brz-outline-border-radius);
|
|
1224
1224
|
`)}
|
|
1225
1225
|
|
|
1226
|
-
${
|
|
1226
|
+
${js("button",fe`
|
|
1227
1227
|
border-radius: var(--brz-outline-border-radius);
|
|
1228
1228
|
`)}
|
|
1229
1229
|
|
|
@@ -1245,12 +1245,12 @@
|
|
|
1245
1245
|
:host([link-type='secondary']:hover) {
|
|
1246
1246
|
text-decoration: none;
|
|
1247
1247
|
}
|
|
1248
|
-
`,
|
|
1248
|
+
`,Bh=fe`
|
|
1249
1249
|
a {
|
|
1250
1250
|
color: inherit;
|
|
1251
1251
|
text-decoration: inherit;
|
|
1252
1252
|
}
|
|
1253
|
-
`,
|
|
1253
|
+
`,mm=fe`
|
|
1254
1254
|
button {
|
|
1255
1255
|
font-family: inherit;
|
|
1256
1256
|
font-size: inherit;
|
|
@@ -1262,11 +1262,11 @@
|
|
|
1262
1262
|
color: inherit;
|
|
1263
1263
|
cursor: pointer;
|
|
1264
1264
|
}
|
|
1265
|
-
`,
|
|
1265
|
+
`,ym=["primary","secondary"];exports.Link=class extends We{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(t){this.virtual&&t.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?j`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return j`
|
|
1266
1266
|
<a
|
|
1267
|
-
href=${
|
|
1268
|
-
target=${
|
|
1269
|
-
rel=${
|
|
1267
|
+
href=${_t(this.href)}
|
|
1268
|
+
target=${_t(this.target)}
|
|
1269
|
+
rel=${_t(this.rel)}
|
|
1270
1270
|
@click=${this.handleClick}
|
|
1271
1271
|
>
|
|
1272
1272
|
<slot></slot>
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
</button>
|
|
1280
1280
|
|
|
1281
1281
|
${this.externalIcon}
|
|
1282
|
-
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[
|
|
1282
|
+
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Bh,mm,bm];ea([F()],exports.Link.prototype,"element",2);ea([F({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ea([F({type:String,reflect:!0})],exports.Link.prototype,"href",2);ea([F({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ea([F({type:String,reflect:!0})],exports.Link.prototype,"target",2);ea([F({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ea([F({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ea([ee(i6)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=ea([ee(o6)],exports.LinkButton);var Cm=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,fd=(o,t,n,l)=>{for(var c=l>1?void 0:l?wm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Cm(t,n,c),c};const a6=Le("row"),s6=Le("column");exports.Row=class extends We{render(){return j`<slot></slot>`}};exports.Row.styles=fe`
|
|
1283
1283
|
:host {
|
|
1284
1284
|
display: flex;
|
|
1285
1285
|
flex-direction: row;
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
:host([vertical-align='bottom']) {
|
|
1299
1299
|
align-items: flex-end;
|
|
1300
1300
|
}
|
|
1301
|
-
`;fd([F({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=fd([ee(
|
|
1301
|
+
`;fd([F({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=fd([ee(a6)],exports.Row);exports.Column=class extends We{render(){return j`<slot></slot>`}};exports.Column.styles=fe`
|
|
1302
1302
|
:host {
|
|
1303
1303
|
display: flex;
|
|
1304
1304
|
flex-direction: column;
|
|
@@ -1317,7 +1317,7 @@
|
|
|
1317
1317
|
:host([align='right']) {
|
|
1318
1318
|
align-items: flex-end;
|
|
1319
1319
|
}
|
|
1320
|
-
`;fd([F({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=fd([ee(
|
|
1320
|
+
`;fd([F({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=fd([ee(s6)],exports.Column);var xm=Object.defineProperty,zm=Object.getOwnPropertyDescriptor,l6=(o,t,n,l)=>{for(var c=l>1?void 0:l?zm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&xm(t,n,c),c};const u6=Le("loading-spinner");exports.LoadingSpinner=class extends We{constructor(){super(...arguments),this.size=24}render(){return j`
|
|
1321
1321
|
<div class="loading-spinner">
|
|
1322
1322
|
<svg
|
|
1323
1323
|
class="loading-spinner--circular"
|
|
@@ -1372,14 +1372,14 @@
|
|
|
1372
1372
|
stroke-dashoffset: -124px;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
`;
|
|
1376
|
-
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(t){this.buttonElement.focus(t)}emit(t){this.dispatchEvent(new
|
|
1375
|
+
`;l6([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=l6([ee(u6)],exports.LoadingSpinner);var Lm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Qr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Sm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Lm(t,n,c),c};const Vh=Le("button"),c6=Le("button-group");class d6 extends CustomEvent{constructor(t){super(`${Vh}-${t}`,{bubbles:!0,composed:!0})}}const Mm=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends g1{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(n=>{var l;return!!((l=n.textContent)!=null&&l.replace(`
|
|
1376
|
+
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(t){this.buttonElement.focus(t)}emit(t){this.dispatchEvent(new d6(t))}get classes(){return En({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 j`
|
|
1377
1377
|
<a
|
|
1378
1378
|
part="button"
|
|
1379
1379
|
role="button"
|
|
1380
|
-
href=${
|
|
1381
|
-
target=${
|
|
1382
|
-
rel=${
|
|
1380
|
+
href=${_t(this.href)}
|
|
1381
|
+
target=${_t(this.target)}
|
|
1382
|
+
rel=${_t(this.rel)}
|
|
1383
1383
|
@click=${this.handleClick}
|
|
1384
1384
|
tabindex=${this.disabled?-1:0}
|
|
1385
1385
|
?aria-disabled=${this.disabled}
|
|
@@ -1402,20 +1402,20 @@
|
|
|
1402
1402
|
${this.leadingIcon?j`<brz-icon
|
|
1403
1403
|
part="icon-left"
|
|
1404
1404
|
class="pre-icon"
|
|
1405
|
-
size=${
|
|
1405
|
+
size=${_t(this.iconSize)}
|
|
1406
1406
|
icon="${this.leadingIcon}"
|
|
1407
1407
|
></brz-icon>`:null}
|
|
1408
1408
|
<slot></slot>
|
|
1409
1409
|
${this.trailingIcon?j`<brz-icon
|
|
1410
1410
|
part="icon-right"
|
|
1411
1411
|
class="post-icon"
|
|
1412
|
-
size=${
|
|
1412
|
+
size=${_t(this.iconSize)}
|
|
1413
1413
|
icon="${this.trailingIcon}"
|
|
1414
1414
|
></brz-icon>`:null}
|
|
1415
1415
|
</div>
|
|
1416
1416
|
|
|
1417
1417
|
${this.loading?j`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
|
|
1418
|
-
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var
|
|
1418
|
+
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var f5;exports.Button.styles=[(f5=g1.styles)!=null?f5:[],Bh,fe`
|
|
1419
1419
|
:host {
|
|
1420
1420
|
--brz-button-background-color: transparent;
|
|
1421
1421
|
--brz-button-border-width: var(--brz-spacing-px);
|
|
@@ -1480,7 +1480,7 @@
|
|
|
1480
1480
|
);
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
|
-
${
|
|
1483
|
+
${js(".button")}
|
|
1484
1484
|
|
|
1485
1485
|
:host([leading-icon][icon-only]) .button,
|
|
1486
1486
|
:host([trailing-icon][icon-only]) .button {
|
|
@@ -1611,7 +1611,7 @@
|
|
|
1611
1611
|
color: var(--brz-button-icon-color);
|
|
1612
1612
|
padding: var(--brz-spacing-px);
|
|
1613
1613
|
}
|
|
1614
|
-
`];Qr([F()],exports.Button.prototype,"element",2);Qr([F({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);Qr([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Qr([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Qr([F({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Qr([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Qr([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Qr([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Qr([F()],exports.Button.prototype,"href",2);Qr([F()],exports.Button.prototype,"target",2);Qr([F()],exports.Button.prototype,"rel",2);Qr([F({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Qr([Ri("button")],exports.Button.prototype,"buttonElement",2);Qr([
|
|
1614
|
+
`];Qr([F()],exports.Button.prototype,"element",2);Qr([F({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);Qr([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Qr([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Qr([F({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Qr([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Qr([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Qr([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Qr([F()],exports.Button.prototype,"href",2);Qr([F()],exports.Button.prototype,"target",2);Qr([F()],exports.Button.prototype,"rel",2);Qr([F({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Qr([Ri("button")],exports.Button.prototype,"buttonElement",2);Qr([Th()],exports.Button.prototype,"defaultSlot",2);exports.Button=Qr([ee(Vh)],exports.Button);exports.ButtonGroup=class extends We{constructor(){super(...arguments),this.compact=!1}render(){return j`<brz-row class=${En({compact:this.compact})}
|
|
1615
1615
|
><slot></slot
|
|
1616
1616
|
></brz-row>`}};exports.ButtonGroup.styles=fe`
|
|
1617
1617
|
brz-row {
|
|
@@ -1630,7 +1630,7 @@
|
|
|
1630
1630
|
--brz-button-r-radius: 0;
|
|
1631
1631
|
--brz-border-r-width: 0;
|
|
1632
1632
|
}
|
|
1633
|
-
`;Qr([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Qr([ee(
|
|
1633
|
+
`;Qr([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Qr([ee(c6)],exports.ButtonGroup);const _m=["small","medium","large"];var Tm=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,bo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Om(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Tm(t,n,c),c};const f6=Le("dropdown-menu"),Em=[..._m,"fluid"];exports.DropdownMenu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(t){super.updated(t),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:t,offsetWidth:n}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?t:n}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 t;(t=this.popover)==null||t.updatePosition()}render(){return j`
|
|
1634
1634
|
<brz-popover
|
|
1635
1635
|
trigger="click"
|
|
1636
1636
|
placement="bottom-start"
|
|
@@ -1655,18 +1655,18 @@
|
|
|
1655
1655
|
</brz-menu>
|
|
1656
1656
|
</brz-popover>
|
|
1657
1657
|
`}};exports.DropdownMenu.styles=fe`
|
|
1658
|
-
${
|
|
1659
|
-
`;bo([F({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);bo([F({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);bo([F({type:Array})],exports.DropdownMenu.prototype,"selected",2);bo([F()],exports.DropdownMenu.prototype,"size",2);bo([Be()],exports.DropdownMenu.prototype,"fluidWidth",2);bo([Be()],exports.DropdownMenu.prototype,"disabled",2);bo([Ri("brz-menu")],exports.DropdownMenu.prototype,"menu",2);bo([Ri("brz-popover")],exports.DropdownMenu.prototype,"popover",2);bo([Jo()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=bo([ee(
|
|
1658
|
+
${js(":focus-within brz-menu:focus-visible")};
|
|
1659
|
+
`;bo([F({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);bo([F({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);bo([F({type:Array})],exports.DropdownMenu.prototype,"selected",2);bo([F()],exports.DropdownMenu.prototype,"size",2);bo([Be()],exports.DropdownMenu.prototype,"fluidWidth",2);bo([Be()],exports.DropdownMenu.prototype,"disabled",2);bo([Ri("brz-menu")],exports.DropdownMenu.prototype,"menu",2);bo([Ri("brz-popover")],exports.DropdownMenu.prototype,"popover",2);bo([Jo()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=bo([ee(f6)],exports.DropdownMenu);var i1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function h6(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var G0={exports:{}};/**
|
|
1660
1660
|
* @license
|
|
1661
1661
|
* Lodash <https://lodash.com/>
|
|
1662
1662
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1663
1663
|
* Released under MIT license <https://lodash.com/license>
|
|
1664
1664
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1665
1665
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1666
|
-
*/G0.exports;(function(o,t){(function(){var n,l="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",z="__lodash_hash_undefined__",S=500,E="__lodash_placeholder__",D=1,B=2,R=4,J=1,pe=2,ge=1,Te=2,Ie=4,be=8,ve=16,Oe=32,$e=64,De=128,je=256,Ye=512,Ce=30,le="...",Q=800,$=16,O=1,k=2,X=3,ue=1/0,Ae=9007199254740991,et=17976931348623157e292,pt=0/0,yt=4294967295,or=yt-1,_t=yt>>>1,xt=[["ary",De],["bind",ge],["bindKey",Te],["curry",be],["curryRight",ve],["flip",Ye],["partial",Oe],["partialRight",$e],["rearg",je]],rt="[object Arguments]",ze="[object Array]",Ne="[object AsyncFunction]",Ge="[object Boolean]",st="[object Date]",lt="[object DOMException]",Ue="[object Error]",Zt="[object Function]",Ur="[object GeneratorFunction]",tr="[object Map]",Qe="[object Number]",bt="[object Null]",Et="[object Object]",Pr="[object Promise]",en="[object Proxy]",ar="[object RegExp]",it="[object Set]",U="[object String]",se="[object Symbol]",Y="[object Undefined]",tt="[object WeakMap]",sr="[object WeakSet]",Lr="[object ArrayBuffer]",$n="[object DataView]",Gr="[object Float32Array]",Vt="[object Float64Array]",bi="[object Int8Array]",Dr="[object Int16Array]",Pn="[object Int32Array]",We="[object Uint8Array]",Wi="[object Uint8ClampedArray]",Sr="[object Uint16Array]",qe="[object Uint32Array]",Jt=/\b__p \+= '';/g,na=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dn=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,ia=RegExp(Dn.source),ln=RegExp(vr.source),wo=/<%-([\s\S]+?)%>/g,Vi=/<%([\s\S]+?)%>/g,ja=/<%=([\s\S]+?)%>/g,Ka=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(xo.source),zo=/^\s+/,nl=/\s/,il=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ya=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,Cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,ol=/\\(\\)?/g,mi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lo=/\w*$/,oa=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Rn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,Xa=/^(?:0|[1-9]\d*)$/,Ja=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",Qa="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Hn=Qa+tn+zt,Ui="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",te=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",gt=ae+w+A+te,we="['’]",Mr="["+dn+"]",rn="["+gt+"]",yi="["+Hn+"]",Fn="\\d+",tc="["+Ui+"]",x1="["+aa+"]",sa="[^"+dn+gt+Fn+Ui+aa+ce+"]",es="\\ud83c[\\udffb-\\udfff]",rc="(?:"+yi+"|"+es+")",al="[^"+dn+"]",sl="(?:\\ud83c[\\udde6-\\uddff]){2}",ll="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+ce+"]",z1="\\u200d",nc="(?:"+x1+"|"+sa+")",Id="(?:"+So+"|"+sa+")",L1="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",Jn="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",ic=rc+"?",oc="["+Ke+"]?",ul="(?:"+z1+"(?:"+[al,sl,ll].join("|")+")"+oc+ic+")*",ts="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ad="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ac=oc+ic+ul,$d="(?:"+[tc,sl,ll].join("|")+")"+ac,Pd="(?:"+[al+yi+"?",yi,sl,ll,Mr].join("|")+")",S1=RegExp(we,"g"),sc=RegExp(yi,"g"),M1=RegExp(es+"(?="+es+")|"+Pd+ac,"g"),lc=RegExp([So+"?"+x1+"+"+L1+"(?="+[rn,So,"$"].join("|")+")",Id+"+"+Jn+"(?="+[rn,So+nc,"$"].join("|")+")",So+"?"+nc+"+"+L1,So+"+"+Jn,Ad,ts,Fn,$d].join("|"),"g"),uc=RegExp("["+z1+dn+Hn+Ke+"]"),cl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_1=-1,Wt={};Wt[Gr]=Wt[Vt]=Wt[bi]=Wt[Dr]=Wt[Pn]=Wt[We]=Wt[Wi]=Wt[Sr]=Wt[qe]=!0,Wt[rt]=Wt[ze]=Wt[Lr]=Wt[Ge]=Wt[$n]=Wt[st]=Wt[Ue]=Wt[Zt]=Wt[tr]=Wt[Qe]=Wt[Et]=Wt[ar]=Wt[it]=Wt[U]=Wt[tt]=!1;var Ht={};Ht[rt]=Ht[ze]=Ht[Lr]=Ht[$n]=Ht[Ge]=Ht[st]=Ht[Gr]=Ht[Vt]=Ht[bi]=Ht[Dr]=Ht[Pn]=Ht[tr]=Ht[Qe]=Ht[Et]=Ht[ar]=Ht[it]=Ht[U]=Ht[se]=Ht[We]=Ht[Wi]=Ht[Sr]=Ht[qe]=!0,Ht[Ue]=Ht[Zt]=Ht[tt]=!1;var fl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Dd={"&":"&","<":"<",">":">",'"':""","'":"'"},cc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nd=parseFloat,Rd=parseInt,hl=typeof i1=="object"&&i1&&i1.Object===Object&&i1,dc=typeof self=="object"&&self&&self.Object===Object&&self,Ut=hl||dc||Function("return this")(),rs=t&&!t.nodeType&&t,jr=rs&&!0&&o&&!o.nodeType&&o,ns=jr&&jr.exports===rs,is=ns&&hl.process,_r=function(){try{var V=jr&&jr.require&&jr.require("util").types;return V||is&&is.binding&&is.binding("util")}catch{}}(),fc=_r&&_r.isArrayBuffer,hc=_r&&_r.isDate,pc=_r&&_r.isMap,gc=_r&&_r.isRegExp,T1=_r&&_r.isSet,O1=_r&&_r.isTypedArray;function fn(V,re,q){switch(q.length){case 0:return V.call(re);case 1:return V.call(re,q[0]);case 2:return V.call(re,q[0],q[1]);case 3:return V.call(re,q[0],q[1],q[2])}return V.apply(re,q)}function Hd(V,re,q,ke){for(var nt=-1,Tt=V==null?0:V.length;++nt<Tt;){var ur=V[nt];re(ke,ur,q(ur),V)}return ke}function wn(V,re){for(var q=-1,ke=V==null?0:V.length;++q<ke&&re(V[q],q,V)!==!1;);return V}function Fd(V,re){for(var q=V==null?0:V.length;q--&&re(V[q],q,V)!==!1;);return V}function k1(V,re){for(var q=-1,ke=V==null?0:V.length;++q<ke;)if(!re(V[q],q,V))return!1;return!0}function Gi(V,re){for(var q=-1,ke=V==null?0:V.length,nt=0,Tt=[];++q<ke;){var ur=V[q];re(ur,q,V)&&(Tt[nt++]=ur)}return Tt}function os(V,re){var q=V==null?0:V.length;return!!q&&_o(V,re,0)>-1}function la(V,re,q){for(var ke=-1,nt=V==null?0:V.length;++ke<nt;)if(q(re,V[ke]))return!0;return!1}function At(V,re){for(var q=-1,ke=V==null?0:V.length,nt=Array(ke);++q<ke;)nt[q]=re(V[q],q,V);return nt}function qi(V,re){for(var q=-1,ke=re.length,nt=V.length;++q<ke;)V[nt+q]=re[q];return V}function E1(V,re,q,ke){var nt=-1,Tt=V==null?0:V.length;for(ke&&Tt&&(q=V[++nt]);++nt<Tt;)q=re(q,V[nt],nt,V);return q}function Bd(V,re,q,ke){var nt=V==null?0:V.length;for(ke&&nt&&(q=V[--nt]);nt--;)q=re(q,V[nt],nt,V);return q}function Mo(V,re){for(var q=-1,ke=V==null?0:V.length;++q<ke;)if(re(V[q],q,V))return!0;return!1}var lr=A1("length");function Wd(V){return V.split("")}function vc(V){return V.match(Cn)||[]}function ua(V,re,q){var ke;return q(V,function(nt,Tt,ur){if(re(nt,Tt,ur))return ke=Tt,!1}),ke}function pl(V,re,q,ke){for(var nt=V.length,Tt=q+(ke?1:-1);ke?Tt--:++Tt<nt;)if(re(V[Tt],Tt,V))return Tt;return-1}function _o(V,re,q){return re===re?zc(V,re,q):pl(V,gl,q)}function Vd(V,re,q,ke){for(var nt=q-1,Tt=V.length;++nt<Tt;)if(ke(V[nt],re))return nt;return-1}function gl(V){return V!==V}function I1(V,re){var q=V==null?0:V.length;return q?D1(V,re)/q:pt}function A1(V){return function(re){return re==null?n:re[V]}}function $1(V){return function(re){return V==null?n:V[re]}}function P1(V,re,q,ke,nt){return nt(V,function(Tt,ur,Ct){q=ke?(ke=!1,Tt):re(q,Tt,ur,Ct)}),q}function bc(V,re){var q=V.length;for(V.sort(re);q--;)V[q]=V[q].value;return V}function D1(V,re){for(var q,ke=-1,nt=V.length;++ke<nt;){var Tt=re(V[ke]);Tt!==n&&(q=q===n?Tt:q+Tt)}return q}function To(V,re){for(var q=-1,ke=Array(V);++q<V;)ke[q]=re(q);return ke}function Ci(V,re){return At(re,function(q){return[q,V[q]]})}function as(V){return V&&V.slice(0,Cl(V)+1).replace(zo,"")}function Kr(V){return function(re){return V(re)}}function vl(V,re){return At(re,function(q){return V[q]})}function nn(V,re){return V.has(re)}function ji(V,re){for(var q=-1,ke=V.length;++q<ke&&_o(re,V[q],0)>-1;);return q}function bl(V,re){for(var q=V.length;q--&&_o(re,V[q],0)>-1;);return q}function Zd(V,re){for(var q=V.length,ke=0;q--;)V[q]===re&&++ke;return ke}var mc=$1(fl),Ud=$1(Dd);function yc(V){return"\\"+Qn[V]}function N1(V,re){return V==null?n:V[re]}function Bn(V){return uc.test(V)}function ei(V){return cl.test(V)}function Cc(V){for(var re,q=[];!(re=V.next()).done;)q.push(re.value);return q}function ml(V){var re=-1,q=Array(V.size);return V.forEach(function(ke,nt){q[++re]=[nt,ke]}),q}function wc(V,re){return function(q){return V(re(q))}}function Ki(V,re){for(var q=-1,ke=V.length,nt=0,Tt=[];++q<ke;){var ur=V[q];(ur===re||ur===E)&&(V[q]=E,Tt[nt++]=q)}return Tt}function yl(V){var re=-1,q=Array(V.size);return V.forEach(function(ke){q[++re]=ke}),q}function xc(V){var re=-1,q=Array(V.size);return V.forEach(function(ke){q[++re]=[ke,ke]}),q}function zc(V,re,q){for(var ke=q-1,nt=V.length;++ke<nt;)if(V[ke]===re)return ke;return-1}function ss(V,re,q){for(var ke=q+1;ke--;)if(V[ke]===re)return ke;return ke}function Oo(V){return Bn(V)?Lc(V):lr(V)}function xn(V){return Bn(V)?xl(V):Wd(V)}function Cl(V){for(var re=V.length;re--&&nl.test(V.charAt(re)););return re}var wl=$1(cc);function Lc(V){for(var re=M1.lastIndex=0;M1.test(V);)++re;return re}function xl(V){return V.match(M1)||[]}function Wn(V){return V.match(lc)||[]}var Sc=function V(re){re=re==null?Ut:Yi.defaults(Ut.Object(),re,Yi.pick(Ut,dl));var q=re.Array,ke=re.Date,nt=re.Error,Tt=re.Function,ur=re.Math,Ct=re.Object,Xi=re.RegExp,ca=re.String,on=re.TypeError,da=q.prototype,Mc=Tt.prototype,Ji=Ct.prototype,ti=re["__core-js_shared__"],ri=Mc.toString,ot=Ji.hasOwnProperty,Qi=0,wi=function(){var i=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ko=Ji.toString,Gd=ri.call(Ct),_c=Ut._,ls=Xi("^"+ri.call(ot).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),us=ns?re.Buffer:n,xi=re.Symbol,Eo=re.Uint8Array,Tc=us?us.allocUnsafe:n,fa=wc(Ct.getPrototypeOf,Ct),R1=Ct.create,zl=Ji.propertyIsEnumerable,ha=da.splice,Io=xi?xi.isConcatSpreadable:n,eo=xi?xi.iterator:n,to=xi?xi.toStringTag:n,Ao=function(){try{var i=Wo(Ct,"defineProperty");return i({},"",{}),i}catch{}}(),qd=re.clearTimeout!==Ut.clearTimeout&&re.clearTimeout,jd=ke&&ke.now!==Ut.Date.now&&ke.now,Kd=re.setTimeout!==Ut.setTimeout&&re.setTimeout,pa=ur.ceil,ga=ur.floor,ro=Ct.getOwnPropertySymbols,cs=us?us.isBuffer:n,Oc=re.isFinite,Ll=da.join,kc=wc(Ct.keys,Ct),Gt=ur.max,Tr=ur.min,$o=ke.now,ds=re.parseInt,no=ur.random,fs=da.reverse,io=Wo(re,"DataView"),va=Wo(re,"Map"),Sl=Wo(re,"Promise"),Po=Wo(re,"Set"),hs=Wo(re,"WeakMap"),Vn=Wo(Ct,"create"),ni=hs&&new hs,ba={},Yd=Ft(io),Xd=Ft(va),Jd=Ft(Sl),Qd=Ft(Po),ef=Ft(hs),Or=xi?xi.prototype:n,qt=Or?Or.valueOf:n,kr=Or?Or.toString:n;function M(i){if(nr(i)&&!ct(i)&&!(i instanceof vt)){if(i instanceof Yr)return i;if(ot.call(i,"__wrapped__"))return Wr(i)}return new Yr(i)}var ii=function(){function i(){}return function(u){if(!er(u))return{};if(R1)return R1(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function Ml(){}function Yr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}M.templateSettings={escape:wo,evaluate:Vi,interpolate:ja,variable:"",imports:{_:M}},M.prototype=Ml.prototype,M.prototype.constructor=M,Yr.prototype=ii(Ml.prototype),Yr.prototype.constructor=Yr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function tf(){var i=new vt(this.__wrapped__);return i.__actions__=yr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=yr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=yr(this.__views__),i}function rf(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function H1(){var i=this.__wrapped__.value(),u=this.__dir__,f=ct(i),b=u<0,L=f?i.length:0,_=Yl(0,L,this.__views__),P=_.start,N=_.end,Z=N-P,ie=b?N:P-1,oe=this.__iteratees__,de=oe.length,Me=0,Fe=Tr(Z,this.__takeCount__);if(!f||!b&&L==Z&&Fe==Z)return Xc(i,this.__actions__);var Xe=[];e:for(;Z--&&Me<Fe;){ie+=u;for(var ht=-1,Je=i[ie];++ht<de;){var mt=oe[ht],wt=mt.iteratee,Gn=mt.type,bn=wt(Je);if(Gn==k)Je=bn;else if(!bn){if(Gn==O)continue e;break e}}Xe[Me++]=Je}return Xe}vt.prototype=ii(Ml.prototype),vt.prototype.constructor=vt;function oo(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function F1(){this.__data__=Vn?Vn(null):{},this.size=0}function nf(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function B1(i){var u=this.__data__;if(Vn){var f=u[i];return f===z?n:f}return ot.call(u,i)?u[i]:n}function W1(i){var u=this.__data__;return Vn?u[i]!==n:ot.call(u,i)}function Ec(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Vn&&u===n?z:u,this}oo.prototype.clear=F1,oo.prototype.delete=nf,oo.prototype.get=B1,oo.prototype.has=W1,oo.prototype.set=Ec;function oi(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function V1(){this.__data__=[],this.size=0}function Ic(i){var u=this.__data__,f=Do(u,i);if(f<0)return!1;var b=u.length-1;return f==b?u.pop():ha.call(u,f,1),--this.size,!0}function ps(i){var u=this.__data__,f=Do(u,i);return f<0?n:u[f][1]}function of(i){return Do(this.__data__,i)>-1}function _l(i,u){var f=this.__data__,b=Do(f,i);return b<0?(++this.size,f.push([i,u])):f[b][1]=u,this}oi.prototype.clear=V1,oi.prototype.delete=Ic,oi.prototype.get=ps,oi.prototype.has=of,oi.prototype.set=_l;function Qt(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Ac(){this.size=0,this.__data__={hash:new oo,map:new(va||oi),string:new oo}}function af(i){var u=Kl(this,i).delete(i);return this.size-=u?1:0,u}function $c(i){return Kl(this,i).get(i)}function hn(i){return Kl(this,i).has(i)}function Lt(i,u){var f=Kl(this,i),b=f.size;return f.set(i,u),this.size+=f.size==b?0:1,this}Qt.prototype.clear=Ac,Qt.prototype.delete=af,Qt.prototype.get=$c,Qt.prototype.has=hn,Qt.prototype.set=Lt;function Er(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new Qt;++u<f;)this.add(i[u])}function ao(i){return this.__data__.set(i,z),this}function so(i){return this.__data__.has(i)}Er.prototype.add=Er.prototype.push=ao,Er.prototype.has=so;function zn(i){var u=this.__data__=new oi(i);this.size=u.size}function Z1(){this.__data__=new oi,this.size=0}function Pc(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function sf(i){return this.__data__.get(i)}function U1(i){return this.__data__.has(i)}function gs(i,u){var f=this.__data__;if(f instanceof oi){var b=f.__data__;if(!va||b.length<c-1)return b.push([i,u]),this.size=++f.size,this;f=this.__data__=new Qt(b)}return f.set(i,u),this.size=f.size,this}zn.prototype.clear=Z1,zn.prototype.delete=Pc,zn.prototype.get=sf,zn.prototype.has=U1,zn.prototype.set=gs;function G1(i,u){var f=ct(i),b=!f&&ks(i),L=!f&&!b&&Da(i),_=!f&&!b&&!L&&Jl(i),P=f||b||L||_,N=P?To(i.length,ca):[],Z=N.length;for(var ie in i)(u||ot.call(i,ie))&&!(P&&(ie=="length"||L&&(ie=="offset"||ie=="parent")||_&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||m(ie,Z)))&&N.push(ie);return N}function Tl(i){var u=i.length;return u?i[Hl(0,u-1)]:n}function lo(i,u){return Cr(yr(i),No(u,0,i.length))}function Dc(i){return Cr(yr(i))}function Ol(i,u,f){(f!==n&&!Ti(i[u],f)||f===n&&!(u in i))&&ai(i,u,f)}function vs(i,u,f){var b=i[u];(!(ot.call(i,u)&&Ti(b,f))||f===n&&!(u in i))&&ai(i,u,f)}function Do(i,u){for(var f=i.length;f--;)if(Ti(i[f][0],u))return f;return-1}function q1(i,u,f,b){return pn(i,function(L,_,P){u(b,L,f(L),P)}),b}function j1(i,u){return i&&an(u,Zr(u),i)}function lf(i,u){return i&&an(u,Tn(u),i)}function ai(i,u,f){u=="__proto__"&&Ao?Ao(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function K1(i,u){for(var f=-1,b=u.length,L=q(b),_=i==null;++f<b;)L[f]=_?n:Lf(i,u[f]);return L}function No(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Xr(i,u,f,b,L,_){var P,N=u&D,Z=u&B,ie=u&R;if(f&&(P=L?f(i,b,L,_):f(i)),P!==n)return P;if(!er(i))return i;var oe=ct(i);if(oe){if(P=s(i),!N)return yr(i,P)}else{var de=Hr(i),Me=de==Zt||de==Ur;if(Da(i))return au(i,N);if(de==Et||de==rt||Me&&!L){if(P=Z||Me?{}:a(i),!N)return Z?r0(i,lf(P,i)):vf(i,j1(P,i))}else{if(!Ht[de])return L?i:{};P=d(i,de,N)}}_||(_=new zn);var Fe=_.get(i);if(Fe)return Fe;_.set(i,P),_p(i)?i.forEach(function(Je){P.add(Xr(Je,u,f,Je,i,_))}):Sp(i)&&i.forEach(function(Je,mt){P.set(mt,Xr(Je,u,f,mt,i,_))});var Xe=ie?Z?jl:Ts:Z?Tn:Zr,ht=oe?n:Xe(i);return wn(ht||i,function(Je,mt){ht&&(mt=Je,Je=i[mt]),vs(P,mt,Xr(Je,u,f,mt,i,_))}),P}function Nc(i){var u=Zr(i);return function(f){return Rc(f,i,u)}}function Rc(i,u,f){var b=f.length;if(i==null)return!b;for(i=Ct(i);b--;){var L=f[b],_=u[L],P=i[L];if(P===n&&!(L in i)||!_(P))return!1}return!0}function Hc(i,u,f){if(typeof i!="function")throw new on(h);return Nt(function(){i.apply(n,f)},u)}function ma(i,u,f,b){var L=-1,_=os,P=!0,N=i.length,Z=[],ie=u.length;if(!N)return Z;f&&(u=At(u,Kr(f))),b?(_=la,P=!1):u.length>=c&&(_=nn,P=!1,u=new Er(u));e:for(;++L<N;){var oe=i[L],de=f==null?oe:f(oe);if(oe=b||oe!==0?oe:0,P&&de===de){for(var Me=ie;Me--;)if(u[Me]===de)continue e;Z.push(oe)}else _(u,de,b)||Z.push(oe)}return Z}var pn=n0(gn),kl=n0(Al,!0);function El(i,u){var f=!0;return pn(i,function(b,L,_){return f=!!u(b,L,_),f}),f}function bs(i,u,f){for(var b=-1,L=i.length;++b<L;){var _=i[b],P=u(_);if(P!=null&&(N===n?P===P&&!Un(P):f(P,N)))var N=P,Z=_}return Z}function Y1(i,u,f,b){var L=i.length;for(f=ft(f),f<0&&(f=-f>L?0:L+f),b=b===n||b>L?L:ft(b),b<0&&(b+=L),b=f>b?0:Op(b);f<b;)i[f++]=u;return i}function X1(i,u){var f=[];return pn(i,function(b,L,_){u(b,L,_)&&f.push(b)}),f}function Ir(i,u,f,b,L){var _=-1,P=i.length;for(f||(f=v),L||(L=[]);++_<P;){var N=i[_];u>0&&f(N)?u>1?Ir(N,u-1,f,b,L):qi(L,N):b||(L[L.length]=N)}return L}var Il=i0(),br=i0(!0);function gn(i,u){return i&&Il(i,u,Zr)}function Al(i,u){return i&&br(i,u,Zr)}function ms(i,u){return Gi(u,function(f){return Uo(i[f])})}function uo(i,u){u=Zn(u,i);for(var f=0,b=u.length;i!=null&&f<b;)i=i[$t(u[f++])];return f&&f==b?i:n}function Ro(i,u,f){var b=u(i);return ct(i)?b:qi(b,f(i))}function mr(i){return i==null?i===n?Y:bt:to&&to in Ct(i)?Yt(i):Se(i)}function $l(i,u){return i>u}function Fc(i,u){return i!=null&&ot.call(i,u)}function Bc(i,u){return i!=null&&u in Ct(i)}function ya(i,u,f){return i>=Tr(u,f)&&i<Gt(u,f)}function Pl(i,u,f){for(var b=f?la:os,L=i[0].length,_=i.length,P=_,N=q(_),Z=1/0,ie=[];P--;){var oe=i[P];P&&u&&(oe=At(oe,Kr(u))),Z=Tr(oe.length,Z),N[P]=!f&&(u||L>=120&&oe.length>=120)?new Er(P&&oe):n}oe=i[0];var de=-1,Me=N[0];e:for(;++de<L&&ie.length<Z;){var Fe=oe[de],Xe=u?u(Fe):Fe;if(Fe=f||Fe!==0?Fe:0,!(Me?nn(Me,Xe):b(ie,Xe,f))){for(P=_;--P;){var ht=N[P];if(!(ht?nn(ht,Xe):b(i[P],Xe,f)))continue e}Me&&Me.push(Xe),ie.push(Fe)}}return ie}function Dl(i,u,f,b){return gn(i,function(L,_,P){u(b,f(L),_,P)}),b}function Ca(i,u,f){u=Zn(u,i),i=Pe(i,u);var b=i==null?i:i[$t(li(u))];return b==null?n:fn(b,i,f)}function wa(i){return nr(i)&&mr(i)==rt}function uf(i){return nr(i)&&mr(i)==Lr}function xa(i){return nr(i)&&mr(i)==st}function za(i,u,f,b,L){return i===u?!0:i==null||u==null||!nr(i)&&!nr(u)?i!==i&&u!==u:Wc(i,u,f,b,za,L)}function Wc(i,u,f,b,L,_){var P=ct(i),N=ct(u),Z=P?ze:Hr(i),ie=N?ze:Hr(u);Z=Z==rt?Et:Z,ie=ie==rt?Et:ie;var oe=Z==Et,de=ie==Et,Me=Z==ie;if(Me&&Da(i)){if(!Da(u))return!1;P=!0,oe=!1}if(Me&&!oe)return _||(_=new zn),P||Jl(i)?fu(i,u,f,b,L,_):d0(i,u,Z,f,b,L,_);if(!(f&J)){var Fe=oe&&ot.call(i,"__wrapped__"),Xe=de&&ot.call(u,"__wrapped__");if(Fe||Xe){var ht=Fe?i.value():i,Je=Xe?u.value():u;return _||(_=new zn),L(ht,Je,f,b,_)}}return Me?(_||(_=new zn),f0(i,u,f,b,L,_)):!1}function Vc(i){return nr(i)&&Hr(i)==tr}function Ho(i,u,f,b){var L=f.length,_=L,P=!b;if(i==null)return!_;for(i=Ct(i);L--;){var N=f[L];if(P&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++L<_;){N=f[L];var Z=N[0],ie=i[Z],oe=N[1];if(P&&N[2]){if(ie===n&&!(Z in i))return!1}else{var de=new zn;if(b)var Me=b(ie,oe,Z,i,u,de);if(!(Me===n?za(oe,ie,J|pe,b,de):Me))return!1}}return!0}function La(i){if(!er(i)||W(i))return!1;var u=Uo(i)?ls:Rn;return u.test(Ft(i))}function ys(i){return nr(i)&&mr(i)==ar}function Cs(i){return nr(i)&&Hr(i)==it}function Zc(i){return nr(i)&&y0(i.length)&&!!Wt[mr(i)]}function Uc(i){return typeof i=="function"?i:i==null?On:typeof i=="object"?ct(i)?J1(i[0],i[1]):Gc(i):Fp(i)}function Nl(i){if(!K(i))return kc(i);var u=[];for(var f in Ct(i))ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function co(i){if(!er(i))return ye(i);var u=K(i),f=[];for(var b in i)b=="constructor"&&(u||!ot.call(i,b))||f.push(b);return f}function fo(i,u){return i<u}function Sa(i,u){var f=-1,b=_n(i)?q(i.length):[];return pn(i,function(L,_,P){b[++f]=u(L,_,P)}),b}function Gc(i){var u=Aa(i);return u.length==1&&u[0][2]?he(u[0][0],u[0][1]):function(f){return f===i||Ho(f,i,u)}}function J1(i,u){return C(i)&&ne(u)?he($t(i),u):function(f){var b=Lf(f,i);return b===n&&b===u?Sf(f,i):za(u,b,J|pe)}}function Rl(i,u,f,b,L){i!==u&&Il(u,function(_,P){if(L||(L=new zn),er(_))cf(i,u,P,f,Rl,b,L);else{var N=b?b(It(i,P),_,P+"",i,u,L):n;N===n&&(N=_),Ol(i,P,N)}},Tn)}function cf(i,u,f,b,L,_,P){var N=It(i,f),Z=It(u,f),ie=P.get(Z);if(ie){Ol(i,f,ie);return}var oe=_?_(N,Z,f+"",i,u,P):n,de=oe===n;if(de){var Me=ct(Z),Fe=!Me&&Da(Z),Xe=!Me&&!Fe&&Jl(Z);oe=Z,Me||Fe||Xe?ct(N)?oe=N:fr(N)?oe=yr(N):Fe?(de=!1,oe=au(Z,!0)):Xe?(de=!1,oe=Qc(Z,!0)):oe=[]:gu(Z)||ks(Z)?(oe=N,ks(N)?oe=kp(N):(!er(N)||Uo(N))&&(oe=a(Z))):de=!1}de&&(P.set(Z,oe),L(oe,Z,b,_,P),P.delete(Z)),Ol(i,f,oe)}function qc(i,u){var f=i.length;if(f)return u+=u<0?f:0,m(u,f)?i[u]:n}function Nr(i,u,f){u.length?u=At(u,function(_){return ct(_)?function(P){return uo(P,_.length===1?_[0]:_)}:_}):u=[On];var b=-1;u=At(u,Kr(Ze()));var L=Sa(i,function(_,P,N){var Z=At(u,function(ie){return ie(_)});return{criteria:Z,index:++b,value:_}});return bc(L,function(_,P){return e0(_,P,f)})}function jc(i,u){return Kc(i,u,function(f,b){return Sf(i,b)})}function Kc(i,u,f){for(var b=-1,L=u.length,_={};++b<L;){var P=u[b],N=uo(i,P);f(N,P)&&zi(_,Zn(P,i),N)}return _}function df(i){return function(u){return uo(u,i)}}function Q1(i,u,f,b){var L=b?Vd:_o,_=-1,P=u.length,N=i;for(i===u&&(u=yr(u)),f&&(N=At(i,Kr(f)));++_<P;)for(var Z=0,ie=u[_],oe=f?f(ie):ie;(Z=L(N,oe,Z,b))>-1;)N!==i&&ha.call(N,Z,1),ha.call(i,Z,1);return i}function eu(i,u){for(var f=i?u.length:0,b=f-1;f--;){var L=u[f];if(f==b||L!==_){var _=L;m(L)?ha.call(i,L,1):zs(i,L)}}return i}function Hl(i,u){return i+ga(no()*(u-i+1))}function Yc(i,u,f,b){for(var L=-1,_=Gt(pa((u-i)/(f||1)),0),P=q(_);_--;)P[b?_:++L]=i,i+=f;return P}function tu(i,u){var f="";if(!i||u<1||u>Ae)return f;do u%2&&(f+=i),u=ga(u/2),u&&(i+=i);while(u);return f}function dt(i,u){return Fr(He(i,u,On),i+"")}function ff(i){return Tl(Ql(i))}function ho(i,u){var f=Ql(i);return Cr(f,No(u,0,f.length))}function zi(i,u,f,b){if(!er(i))return i;u=Zn(u,i);for(var L=-1,_=u.length,P=_-1,N=i;N!=null&&++L<_;){var Z=$t(u[L]),ie=f;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return i;if(L!=P){var oe=N[Z];ie=b?b(oe,Z,N):n,ie===n&&(ie=er(oe)?oe:m(u[L+1])?[]:{})}vs(N,Z,ie),N=N[Z]}return i}var ws=ni?function(i,u){return ni.set(i,u),i}:On,xs=Ao?function(i,u){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:_f(u),writable:!0})}:On;function Li(i){return Cr(Ql(i))}function Ln(i,u,f){var b=-1,L=i.length;u<0&&(u=-u>L?0:L+u),f=f>L?L:f,f<0&&(f+=L),L=u>f?0:f-u>>>0,u>>>=0;for(var _=q(L);++b<L;)_[b]=i[b+u];return _}function hf(i,u){var f;return pn(i,function(b,L,_){return f=u(b,L,_),!f}),!!f}function Si(i,u,f){var b=0,L=i==null?b:i.length;if(typeof u=="number"&&u===u&&L<=_t){for(;b<L;){var _=b+L>>>1,P=i[_];P!==null&&!Un(P)&&(f?P<=u:P<u)?b=_+1:L=_}return L}return Fl(i,u,On,f)}function Fl(i,u,f,b){var L=0,_=i==null?0:i.length;if(_===0)return 0;u=f(u);for(var P=u!==u,N=u===null,Z=Un(u),ie=u===n;L<_;){var oe=ga((L+_)/2),de=f(i[oe]),Me=de!==n,Fe=de===null,Xe=de===de,ht=Un(de);if(P)var Je=b||Xe;else ie?Je=Xe&&(b||Me):N?Je=Xe&&Me&&(b||!Fe):Z?Je=Xe&&Me&&!Fe&&(b||!ht):Fe||ht?Je=!1:Je=b?de<=u:de<u;Je?L=oe+1:_=oe}return Tr(_,or)}function ru(i,u){for(var f=-1,b=i.length,L=0,_=[];++f<b;){var P=i[f],N=u?u(P):P;if(!f||!Ti(N,Z)){var Z=N;_[L++]=P===0?0:P}}return _}function nu(i){return typeof i=="number"?i:Un(i)?pt:+i}function Rr(i){if(typeof i=="string")return i;if(ct(i))return At(i,Rr)+"";if(Un(i))return kr?kr.call(i):"";var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function vn(i,u,f){var b=-1,L=os,_=i.length,P=!0,N=[],Z=N;if(f)P=!1,L=la;else if(_>=c){var ie=u?null:_s(i);if(ie)return yl(ie);P=!1,L=nn,Z=new Er}else Z=u?[]:N;e:for(;++b<_;){var oe=i[b],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,P&&de===de){for(var Me=Z.length;Me--;)if(Z[Me]===de)continue e;u&&Z.push(de),N.push(oe)}else L(Z,de,f)||(Z!==N&&Z.push(de),N.push(oe))}return N}function zs(i,u){return u=Zn(u,i),i=Pe(i,u),i==null||delete i[$t(li(u))]}function Bl(i,u,f,b){return zi(i,u,f(uo(i,u)),b)}function Ma(i,u,f,b){for(var L=i.length,_=b?L:-1;(b?_--:++_<L)&&u(i[_],_,i););return f?Ln(i,b?0:_,b?_+1:L):Ln(i,b?_+1:0,b?L:_)}function Xc(i,u){var f=i;return f instanceof vt&&(f=f.value()),E1(u,function(b,L){return L.func.apply(L.thisArg,qi([b],L.args))},f)}function Fo(i,u,f){var b=i.length;if(b<2)return b?vn(i[0]):[];for(var L=-1,_=q(b);++L<b;)for(var P=i[L],N=-1;++N<b;)N!=L&&(_[L]=ma(_[L]||P,i[N],u,f));return vn(Ir(_,1),u,f)}function iu(i,u,f){for(var b=-1,L=i.length,_=u.length,P={};++b<L;){var N=b<_?u[b]:n;f(P,i[b],N)}return P}function ou(i){return fr(i)?i:[]}function Wl(i){return typeof i=="function"?i:On}function Zn(i,u){return ct(i)?i:C(i,u)?[i]:cr(Rt(i))}var pf=dt;function po(i,u,f){var b=i.length;return f=f===n?b:f,!u&&f>=b?i:Ln(i,u,f)}var _a=qd||function(i){return Ut.clearTimeout(i)};function au(i,u){if(u)return i.slice();var f=i.length,b=Tc?Tc(f):new i.constructor(f);return i.copy(b),b}function Vl(i){var u=new i.constructor(i.byteLength);return new Eo(u).set(new Eo(i)),u}function gf(i,u){var f=u?Vl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function su(i){var u=new i.constructor(i.source,Lo.exec(i));return u.lastIndex=i.lastIndex,u}function Jc(i){return qt?Ct(qt.call(i)):{}}function Qc(i,u){var f=u?Vl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function lu(i,u){if(i!==u){var f=i!==n,b=i===null,L=i===i,_=Un(i),P=u!==n,N=u===null,Z=u===u,ie=Un(u);if(!N&&!ie&&!_&&i>u||_&&P&&Z&&!N&&!ie||b&&P&&Z||!f&&Z||!L)return 1;if(!b&&!_&&!ie&&i<u||ie&&f&&L&&!b&&!_||N&&f&&L||!P&&L||!Z)return-1}return 0}function e0(i,u,f){for(var b=-1,L=i.criteria,_=u.criteria,P=L.length,N=f.length;++b<P;){var Z=lu(L[b],_[b]);if(Z){if(b>=N)return Z;var ie=f[b];return Z*(ie=="desc"?-1:1)}}return i.index-u.index}function t0(i,u,f,b){for(var L=-1,_=i.length,P=f.length,N=-1,Z=u.length,ie=Gt(_-P,0),oe=q(Z+ie),de=!b;++N<Z;)oe[N]=u[N];for(;++L<P;)(de||L<_)&&(oe[f[L]]=i[L]);for(;ie--;)oe[N++]=i[L++];return oe}function Zl(i,u,f,b){for(var L=-1,_=i.length,P=-1,N=f.length,Z=-1,ie=u.length,oe=Gt(_-N,0),de=q(oe+ie),Me=!b;++L<oe;)de[L]=i[L];for(var Fe=L;++Z<ie;)de[Fe+Z]=u[Z];for(;++P<N;)(Me||L<_)&&(de[Fe+f[P]]=i[L++]);return de}function yr(i,u){var f=-1,b=i.length;for(u||(u=q(b));++f<b;)u[f]=i[f];return u}function an(i,u,f,b){var L=!f;f||(f={});for(var _=-1,P=u.length;++_<P;){var N=u[_],Z=b?b(f[N],i[N],N,f,i):n;Z===n&&(Z=i[N]),L?ai(f,N,Z):vs(f,N,Z)}return f}function vf(i,u){return an(i,hu(i),u)}function r0(i,u){return an(i,h0(i),u)}function Ul(i,u){return function(f,b){var L=ct(f)?Hd:q1,_=u?u():{};return L(f,i,Ze(b,2),_)}}function Ta(i){return dt(function(u,f){var b=-1,L=f.length,_=L>1?f[L-1]:n,P=L>2?f[2]:n;for(_=i.length>3&&typeof _=="function"?(L--,_):n,P&&y(f[0],f[1],P)&&(_=L<3?n:_,L=1),u=Ct(u);++b<L;){var N=f[b];N&&i(u,N,b,_)}return u})}function n0(i,u){return function(f,b){if(f==null)return f;if(!_n(f))return i(f,b);for(var L=f.length,_=u?L:-1,P=Ct(f);(u?_--:++_<L)&&b(P[_],_,P)!==!1;);return f}}function i0(i){return function(u,f,b){for(var L=-1,_=Ct(u),P=b(u),N=P.length;N--;){var Z=P[i?N:++L];if(f(_[Z],Z,_)===!1)break}return u}}function o0(i,u,f){var b=u&ge,L=ka(i);function _(){var P=this&&this!==Ut&&this instanceof _?L:i;return P.apply(b?f:this,arguments)}return _}function a0(i){return function(u){u=Rt(u);var f=Bn(u)?xn(u):n,b=f?f[0]:u.charAt(0),L=f?po(f,1).join(""):u.slice(1);return b[i]()+L}}function Oa(i){return function(u){return E1(Rp(Np(u).replace(S1,"")),i,"")}}function ka(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ii(i.prototype),b=i.apply(f,u);return er(b)?b:f}}function uu(i,u,f){var b=ka(i);function L(){for(var _=arguments.length,P=q(_),N=_,Z=Ia(L);N--;)P[N]=arguments[N];var ie=_<3&&P[0]!==Z&&P[_-1]!==Z?[]:Ki(P,Z);if(_-=ie.length,_<f)return u0(i,u,Ls,L.placeholder,n,P,ie,n,n,f-_);var oe=this&&this!==Ut&&this instanceof L?b:i;return fn(oe,this,P)}return L}function cu(i){return function(u,f,b){var L=Ct(u);if(!_n(u)){var _=Ze(f,3);u=Zr(u),f=function(N){return _(L[N],N,L)}}var P=i(u,f,b);return P>-1?L[_?u[P]:P]:n}}function s0(i){return Mi(function(u){var f=u.length,b=f,L=Yr.prototype.thru;for(i&&u.reverse();b--;){var _=u[b];if(typeof _!="function")throw new on(h);if(L&&!P&&Os(_)=="wrapper")var P=new Yr([],!0)}for(b=P?b:f;++b<f;){_=u[b];var N=Os(_),Z=N=="wrapper"?St(_):n;Z&&I(Z[0])&&Z[1]==(De|be|Oe|je)&&!Z[4].length&&Z[9]==1?P=P[Os(Z[0])].apply(P,Z[3]):P=_.length==1&&I(_)?P[N]():P.thru(_)}return function(){var ie=arguments,oe=ie[0];if(P&&ie.length==1&&ct(oe))return P.plant(oe).value();for(var de=0,Me=f?u[de].apply(this,ie):oe;++de<f;)Me=u[de].call(this,Me);return Me}})}function Ls(i,u,f,b,L,_,P,N,Z,ie){var oe=u&De,de=u&ge,Me=u&Te,Fe=u&(be|ve),Xe=u&Ye,ht=Me?n:ka(i);function Je(){for(var mt=arguments.length,wt=q(mt),Gn=mt;Gn--;)wt[Gn]=arguments[Gn];if(Fe)var bn=Ia(Je),qn=Zd(wt,bn);if(b&&(wt=t0(wt,b,L,Fe)),_&&(wt=Zl(wt,_,P,Fe)),mt-=qn,Fe&&mt<ie){var hr=Ki(wt,bn);return u0(i,u,Ls,Je.placeholder,f,wt,hr,N,Z,ie-mt)}var Oi=de?f:this,qo=Me?Oi[i]:i;return mt=wt.length,N?wt=ut(wt,N):Xe&&mt>1&&wt.reverse(),oe&&Z<mt&&(wt.length=Z),this&&this!==Ut&&this instanceof Je&&(qo=ht||ka(qo)),qo.apply(Oi,wt)}return Je}function Bo(i,u){return function(f,b){return Dl(f,i,u(b),{})}}function Ss(i,u){return function(f,b){var L;if(f===n&&b===n)return u;if(f!==n&&(L=f),b!==n){if(L===n)return b;typeof f=="string"||typeof b=="string"?(f=Rr(f),b=Rr(b)):(f=nu(f),b=nu(b)),L=i(f,b)}return L}}function Ea(i){return Mi(function(u){return u=At(u,Kr(Ze())),dt(function(f){var b=this;return i(u,function(L){return fn(L,b,f)})})})}function Gl(i,u){u=u===n?" ":Rr(u);var f=u.length;if(f<2)return f?tu(u,i):u;var b=tu(u,pa(i/Oo(u)));return Bn(u)?po(xn(b),0,i).join(""):b.slice(0,i)}function bf(i,u,f,b){var L=u&ge,_=ka(i);function P(){for(var N=-1,Z=arguments.length,ie=-1,oe=b.length,de=q(oe+Z),Me=this&&this!==Ut&&this instanceof P?_:i;++ie<oe;)de[ie]=b[ie];for(;Z--;)de[ie++]=arguments[++N];return fn(Me,L?f:this,de)}return P}function l0(i){return function(u,f,b){return b&&typeof b!="number"&&y(u,f,b)&&(f=b=n),u=Go(u),f===n?(f=u,u=0):f=Go(f),b=b===n?u<f?1:-1:Go(b),Yc(u,f,b,i)}}function Dt(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=ui(u),f=ui(f)),i(u,f)}}function u0(i,u,f,b,L,_,P,N,Z,ie){var oe=u&be,de=oe?P:n,Me=oe?n:P,Fe=oe?_:n,Xe=oe?n:_;u|=oe?Oe:$e,u&=~(oe?$e:Oe),u&Ie||(u&=~(ge|Te));var ht=[i,u,L,Fe,de,Xe,Me,N,Z,ie],Je=f.apply(n,ht);return I(i)&&rr(Je,ht),Je.placeholder=b,Br(Je,i,u)}function Ms(i){var u=ur[i];return function(f,b){if(f=ui(f),b=b==null?0:Tr(ft(b),292),b&&Oc(f)){var L=(Rt(f)+"e").split("e"),_=u(L[0]+"e"+(+L[1]+b));return L=(Rt(_)+"e").split("e"),+(L[0]+"e"+(+L[1]-b))}return u(f)}}var _s=Po&&1/yl(new Po([,-0]))[1]==ue?function(i){return new Po(i)}:kf;function Sn(i){return function(u){var f=Hr(u);return f==tr?ml(u):f==it?xc(u):Ci(u,i(u))}}function Mn(i,u,f,b,L,_,P,N){var Z=u&Te;if(!Z&&typeof i!="function")throw new on(h);var ie=b?b.length:0;if(ie||(u&=~(Oe|$e),b=L=n),P=P===n?P:Gt(ft(P),0),N=N===n?N:ft(N),ie-=L?L.length:0,u&$e){var oe=b,de=L;b=L=n}var Me=Z?n:St(i),Fe=[i,u,f,b,L,oe,de,_,P,N];if(Me&&xe(Fe,Me),i=Fe[0],u=Fe[1],f=Fe[2],b=Fe[3],L=Fe[4],N=Fe[9]=Fe[9]===n?Z?0:i.length:Gt(Fe[9]-ie,0),!N&&u&(be|ve)&&(u&=~(be|ve)),!u||u==ge)var Xe=o0(i,u,f);else u==be||u==ve?Xe=uu(i,u,N):(u==Oe||u==(ge|Oe))&&!L.length?Xe=bf(i,u,f,b):Xe=Ls.apply(n,Fe);var ht=Me?ws:rr;return Br(ht(Xe,Fe),i,u)}function ql(i,u,f,b){return i===n||Ti(i,Ji[f])&&!ot.call(b,f)?u:i}function du(i,u,f,b,L,_){return er(i)&&er(u)&&(_.set(u,i),Rl(i,u,n,du,_),_.delete(u)),i}function c0(i){return gu(i)?n:i}function fu(i,u,f,b,L,_){var P=f&J,N=i.length,Z=u.length;if(N!=Z&&!(P&&Z>N))return!1;var ie=_.get(i),oe=_.get(u);if(ie&&oe)return ie==u&&oe==i;var de=-1,Me=!0,Fe=f&pe?new Er:n;for(_.set(i,u),_.set(u,i);++de<N;){var Xe=i[de],ht=u[de];if(b)var Je=P?b(ht,Xe,de,u,i,_):b(Xe,ht,de,i,u,_);if(Je!==n){if(Je)continue;Me=!1;break}if(Fe){if(!Mo(u,function(mt,wt){if(!nn(Fe,wt)&&(Xe===mt||L(Xe,mt,f,b,_)))return Fe.push(wt)})){Me=!1;break}}else if(!(Xe===ht||L(Xe,ht,f,b,_))){Me=!1;break}}return _.delete(i),_.delete(u),Me}function d0(i,u,f,b,L,_,P){switch(f){case $n:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Lr:return!(i.byteLength!=u.byteLength||!_(new Eo(i),new Eo(u)));case Ge:case st:case Qe:return Ti(+i,+u);case Ue:return i.name==u.name&&i.message==u.message;case ar:case U:return i==u+"";case tr:var N=ml;case it:var Z=b&J;if(N||(N=yl),i.size!=u.size&&!Z)return!1;var ie=P.get(i);if(ie)return ie==u;b|=pe,P.set(i,u);var oe=fu(N(i),N(u),b,L,_,P);return P.delete(i),oe;case se:if(qt)return qt.call(i)==qt.call(u)}return!1}function f0(i,u,f,b,L,_){var P=f&J,N=Ts(i),Z=N.length,ie=Ts(u),oe=ie.length;if(Z!=oe&&!P)return!1;for(var de=Z;de--;){var Me=N[de];if(!(P?Me in u:ot.call(u,Me)))return!1}var Fe=_.get(i),Xe=_.get(u);if(Fe&&Xe)return Fe==u&&Xe==i;var ht=!0;_.set(i,u),_.set(u,i);for(var Je=P;++de<Z;){Me=N[de];var mt=i[Me],wt=u[Me];if(b)var Gn=P?b(wt,mt,Me,u,i,_):b(mt,wt,Me,i,u,_);if(!(Gn===n?mt===wt||L(mt,wt,f,b,_):Gn)){ht=!1;break}Je||(Je=Me=="constructor")}if(ht&&!Je){var bn=i.constructor,qn=u.constructor;bn!=qn&&"constructor"in i&&"constructor"in u&&!(typeof bn=="function"&&bn instanceof bn&&typeof qn=="function"&&qn instanceof qn)&&(ht=!1)}return _.delete(i),_.delete(u),ht}function Mi(i){return Fr(He(i,n,cp),i+"")}function Ts(i){return Ro(i,Zr,hu)}function jl(i){return Ro(i,Tn,h0)}var St=ni?function(i){return ni.get(i)}:kf;function Os(i){for(var u=i.name+"",f=ba[u],b=ot.call(ba,u)?f.length:0;b--;){var L=f[b],_=L.func;if(_==null||_==i)return L.name}return u}function Ia(i){var u=ot.call(M,"placeholder")?M:i;return u.placeholder}function Ze(){var i=M.iteratee||Tf;return i=i===Tf?Uc:i,arguments.length?i(arguments[0],arguments[1]):i}function Kl(i,u){var f=i.__data__;return T(u)?f[typeof u=="string"?"string":"hash"]:f.map}function Aa(i){for(var u=Zr(i),f=u.length;f--;){var b=u[f],L=i[b];u[f]=[b,L,ne(L)]}return u}function Wo(i,u){var f=N1(i,u);return La(f)?f:n}function Yt(i){var u=ot.call(i,to),f=i[to];try{i[to]=n;var b=!0}catch{}var L=ko.call(i);return b&&(u?i[to]=f:delete i[to]),L}var hu=ro?function(i){return i==null?[]:(i=Ct(i),Gi(ro(i),function(u){return zl.call(i,u)}))}:Ef,h0=ro?function(i){for(var u=[];i;)qi(u,hu(i)),i=fa(i);return u}:Ef,Hr=mr;(io&&Hr(new io(new ArrayBuffer(1)))!=$n||va&&Hr(new va)!=tr||Sl&&Hr(Sl.resolve())!=Pr||Po&&Hr(new Po)!=it||hs&&Hr(new hs)!=tt)&&(Hr=function(i){var u=mr(i),f=u==Et?i.constructor:n,b=f?Ft(f):"";if(b)switch(b){case Yd:return $n;case Xd:return tr;case Jd:return Pr;case Qd:return it;case ef:return tt}return u});function Yl(i,u,f){for(var b=-1,L=f.length;++b<L;){var _=f[b],P=_.size;switch(_.type){case"drop":i+=P;break;case"dropRight":u-=P;break;case"take":u=Tr(u,i+P);break;case"takeRight":i=Gt(i,u-P);break}}return{start:i,end:u}}function e(i){var u=i.match(Ya);return u?u[1].split(Zi):[]}function r(i,u,f){u=Zn(u,i);for(var b=-1,L=u.length,_=!1;++b<L;){var P=$t(u[b]);if(!(_=i!=null&&f(i,P)))break;i=i[P]}return _||++b!=L?_:(L=i==null?0:i.length,!!L&&y0(L)&&m(P,L)&&(ct(i)||ks(i)))}function s(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function a(i){return typeof i.constructor=="function"&&!K(i)?ii(fa(i)):{}}function d(i,u,f){var b=i.constructor;switch(u){case Lr:return Vl(i);case Ge:case st:return new b(+i);case $n:return gf(i,f);case Gr:case Vt:case bi:case Dr:case Pn:case We:case Wi:case Sr:case qe:return Qc(i,f);case tr:return new b;case Qe:case U:return new b(i);case ar:return su(i);case it:return new b;case se:return Jc(i)}}function p(i,u){var f=u.length;if(!f)return i;var b=f-1;return u[b]=(f>1?"& ":"")+u[b],u=u.join(f>2?", ":" "),i.replace(il,`{
|
|
1666
|
+
*/G0.exports;(function(o,t){(function(){var n,l="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",w="Invalid `variable` option passed into `_.template`",z="__lodash_hash_undefined__",S=500,k="__lodash_placeholder__",D=1,B=2,R=4,J=1,pe=2,ge=1,Te=2,Ie=4,be=8,ve=16,Oe=32,$e=64,De=128,je=256,Ye=512,Ce=30,le="...",Q=800,$=16,O=1,E=2,X=3,ue=1/0,Ae=9007199254740991,et=17976931348623157e292,pt=0/0,yt=4294967295,or=yt-1,Tt=yt>>>1,xt=[["ary",De],["bind",ge],["bindKey",Te],["curry",be],["curryRight",ve],["flip",Ye],["partial",Oe],["partialRight",$e],["rearg",je]],rt="[object Arguments]",ze="[object Array]",Ne="[object AsyncFunction]",Ge="[object Boolean]",st="[object Date]",lt="[object DOMException]",Ue="[object Error]",Zt="[object Function]",Ur="[object GeneratorFunction]",tr="[object Map]",Qe="[object Number]",bt="[object Null]",kt="[object Object]",Pr="[object Promise]",en="[object Proxy]",ar="[object RegExp]",it="[object Set]",U="[object String]",se="[object Symbol]",Y="[object Undefined]",tt="[object WeakMap]",sr="[object WeakSet]",Lr="[object ArrayBuffer]",$n="[object DataView]",Gr="[object Float32Array]",Wt="[object Float64Array]",bi="[object Int8Array]",Dr="[object Int16Array]",Pn="[object Int32Array]",Ve="[object Uint8Array]",Vi="[object Uint8ClampedArray]",Sr="[object Uint16Array]",qe="[object Uint32Array]",Jt=/\b__p \+= '';/g,na=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dn=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,ia=RegExp(Dn.source),ln=RegExp(vr.source),wo=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,Ka=/<%=([\s\S]+?)%>/g,Ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(xo.source),zo=/^\s+/,nl=/\s/,il=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xa=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,Cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,ol=/\\(\\)?/g,mi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lo=/\w*$/,oa=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Rn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,Ja=/^(?:0|[1-9]\d*)$/,Qa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",es="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Hn=es+tn+zt,Ui="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",x="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",te=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",gt=ae+x+A+te,we="['’]",Mr="["+dn+"]",rn="["+gt+"]",yi="["+Hn+"]",Fn="\\d+",tc="["+Ui+"]",x1="["+aa+"]",sa="[^"+dn+gt+Fn+Ui+aa+ce+"]",ts="\\ud83c[\\udffb-\\udfff]",rc="(?:"+yi+"|"+ts+")",al="[^"+dn+"]",sl="(?:\\ud83c[\\udde6-\\uddff]){2}",ll="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+ce+"]",z1="\\u200d",nc="(?:"+x1+"|"+sa+")",Id="(?:"+So+"|"+sa+")",L1="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",Jn="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",ic=rc+"?",oc="["+Ke+"]?",ul="(?:"+z1+"(?:"+[al,sl,ll].join("|")+")"+oc+ic+")*",rs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ad="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ac=oc+ic+ul,$d="(?:"+[tc,sl,ll].join("|")+")"+ac,Pd="(?:"+[al+yi+"?",yi,sl,ll,Mr].join("|")+")",S1=RegExp(we,"g"),sc=RegExp(yi,"g"),M1=RegExp(ts+"(?="+ts+")|"+Pd+ac,"g"),lc=RegExp([So+"?"+x1+"+"+L1+"(?="+[rn,So,"$"].join("|")+")",Id+"+"+Jn+"(?="+[rn,So+nc,"$"].join("|")+")",So+"?"+nc+"+"+L1,So+"+"+Jn,Ad,rs,Fn,$d].join("|"),"g"),uc=RegExp("["+z1+dn+Hn+Ke+"]"),cl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_1=-1,Vt={};Vt[Gr]=Vt[Wt]=Vt[bi]=Vt[Dr]=Vt[Pn]=Vt[Ve]=Vt[Vi]=Vt[Sr]=Vt[qe]=!0,Vt[rt]=Vt[ze]=Vt[Lr]=Vt[Ge]=Vt[$n]=Vt[st]=Vt[Ue]=Vt[Zt]=Vt[tr]=Vt[Qe]=Vt[kt]=Vt[ar]=Vt[it]=Vt[U]=Vt[tt]=!1;var Ht={};Ht[rt]=Ht[ze]=Ht[Lr]=Ht[$n]=Ht[Ge]=Ht[st]=Ht[Gr]=Ht[Wt]=Ht[bi]=Ht[Dr]=Ht[Pn]=Ht[tr]=Ht[Qe]=Ht[kt]=Ht[ar]=Ht[it]=Ht[U]=Ht[se]=Ht[Ve]=Ht[Vi]=Ht[Sr]=Ht[qe]=!0,Ht[Ue]=Ht[Zt]=Ht[tt]=!1;var fl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Dd={"&":"&","<":"<",">":">",'"':""","'":"'"},cc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nd=parseFloat,Rd=parseInt,hl=typeof i1=="object"&&i1&&i1.Object===Object&&i1,dc=typeof self=="object"&&self&&self.Object===Object&&self,Ut=hl||dc||Function("return this")(),ns=t&&!t.nodeType&&t,jr=ns&&!0&&o&&!o.nodeType&&o,is=jr&&jr.exports===ns,os=is&&hl.process,_r=function(){try{var W=jr&&jr.require&&jr.require("util").types;return W||os&&os.binding&&os.binding("util")}catch{}}(),fc=_r&&_r.isArrayBuffer,hc=_r&&_r.isDate,pc=_r&&_r.isMap,gc=_r&&_r.isRegExp,T1=_r&&_r.isSet,O1=_r&&_r.isTypedArray;function fn(W,re,q){switch(q.length){case 0:return W.call(re);case 1:return W.call(re,q[0]);case 2:return W.call(re,q[0],q[1]);case 3:return W.call(re,q[0],q[1],q[2])}return W.apply(re,q)}function Hd(W,re,q,Ee){for(var nt=-1,Ot=W==null?0:W.length;++nt<Ot;){var ur=W[nt];re(Ee,ur,q(ur),W)}return Ee}function wn(W,re){for(var q=-1,Ee=W==null?0:W.length;++q<Ee&&re(W[q],q,W)!==!1;);return W}function Fd(W,re){for(var q=W==null?0:W.length;q--&&re(W[q],q,W)!==!1;);return W}function E1(W,re){for(var q=-1,Ee=W==null?0:W.length;++q<Ee;)if(!re(W[q],q,W))return!1;return!0}function Gi(W,re){for(var q=-1,Ee=W==null?0:W.length,nt=0,Ot=[];++q<Ee;){var ur=W[q];re(ur,q,W)&&(Ot[nt++]=ur)}return Ot}function as(W,re){var q=W==null?0:W.length;return!!q&&_o(W,re,0)>-1}function la(W,re,q){for(var Ee=-1,nt=W==null?0:W.length;++Ee<nt;)if(q(re,W[Ee]))return!0;return!1}function At(W,re){for(var q=-1,Ee=W==null?0:W.length,nt=Array(Ee);++q<Ee;)nt[q]=re(W[q],q,W);return nt}function qi(W,re){for(var q=-1,Ee=re.length,nt=W.length;++q<Ee;)W[nt+q]=re[q];return W}function k1(W,re,q,Ee){var nt=-1,Ot=W==null?0:W.length;for(Ee&&Ot&&(q=W[++nt]);++nt<Ot;)q=re(q,W[nt],nt,W);return q}function Bd(W,re,q,Ee){var nt=W==null?0:W.length;for(Ee&&nt&&(q=W[--nt]);nt--;)q=re(q,W[nt],nt,W);return q}function Mo(W,re){for(var q=-1,Ee=W==null?0:W.length;++q<Ee;)if(re(W[q],q,W))return!0;return!1}var lr=A1("length");function Vd(W){return W.split("")}function vc(W){return W.match(Cn)||[]}function ua(W,re,q){var Ee;return q(W,function(nt,Ot,ur){if(re(nt,Ot,ur))return Ee=Ot,!1}),Ee}function pl(W,re,q,Ee){for(var nt=W.length,Ot=q+(Ee?1:-1);Ee?Ot--:++Ot<nt;)if(re(W[Ot],Ot,W))return Ot;return-1}function _o(W,re,q){return re===re?zc(W,re,q):pl(W,gl,q)}function Wd(W,re,q,Ee){for(var nt=q-1,Ot=W.length;++nt<Ot;)if(Ee(W[nt],re))return nt;return-1}function gl(W){return W!==W}function I1(W,re){var q=W==null?0:W.length;return q?D1(W,re)/q:pt}function A1(W){return function(re){return re==null?n:re[W]}}function $1(W){return function(re){return W==null?n:W[re]}}function P1(W,re,q,Ee,nt){return nt(W,function(Ot,ur,Ct){q=Ee?(Ee=!1,Ot):re(q,Ot,ur,Ct)}),q}function bc(W,re){var q=W.length;for(W.sort(re);q--;)W[q]=W[q].value;return W}function D1(W,re){for(var q,Ee=-1,nt=W.length;++Ee<nt;){var Ot=re(W[Ee]);Ot!==n&&(q=q===n?Ot:q+Ot)}return q}function To(W,re){for(var q=-1,Ee=Array(W);++q<W;)Ee[q]=re(q);return Ee}function Ci(W,re){return At(re,function(q){return[q,W[q]]})}function ss(W){return W&&W.slice(0,Cl(W)+1).replace(zo,"")}function Kr(W){return function(re){return W(re)}}function vl(W,re){return At(re,function(q){return W[q]})}function nn(W,re){return W.has(re)}function ji(W,re){for(var q=-1,Ee=W.length;++q<Ee&&_o(re,W[q],0)>-1;);return q}function bl(W,re){for(var q=W.length;q--&&_o(re,W[q],0)>-1;);return q}function Zd(W,re){for(var q=W.length,Ee=0;q--;)W[q]===re&&++Ee;return Ee}var mc=$1(fl),Ud=$1(Dd);function yc(W){return"\\"+Qn[W]}function N1(W,re){return W==null?n:W[re]}function Bn(W){return uc.test(W)}function ei(W){return cl.test(W)}function Cc(W){for(var re,q=[];!(re=W.next()).done;)q.push(re.value);return q}function ml(W){var re=-1,q=Array(W.size);return W.forEach(function(Ee,nt){q[++re]=[nt,Ee]}),q}function wc(W,re){return function(q){return W(re(q))}}function Ki(W,re){for(var q=-1,Ee=W.length,nt=0,Ot=[];++q<Ee;){var ur=W[q];(ur===re||ur===k)&&(W[q]=k,Ot[nt++]=q)}return Ot}function yl(W){var re=-1,q=Array(W.size);return W.forEach(function(Ee){q[++re]=Ee}),q}function xc(W){var re=-1,q=Array(W.size);return W.forEach(function(Ee){q[++re]=[Ee,Ee]}),q}function zc(W,re,q){for(var Ee=q-1,nt=W.length;++Ee<nt;)if(W[Ee]===re)return Ee;return-1}function ls(W,re,q){for(var Ee=q+1;Ee--;)if(W[Ee]===re)return Ee;return Ee}function Oo(W){return Bn(W)?Lc(W):lr(W)}function xn(W){return Bn(W)?xl(W):Vd(W)}function Cl(W){for(var re=W.length;re--&&nl.test(W.charAt(re)););return re}var wl=$1(cc);function Lc(W){for(var re=M1.lastIndex=0;M1.test(W);)++re;return re}function xl(W){return W.match(M1)||[]}function Vn(W){return W.match(lc)||[]}var Sc=function W(re){re=re==null?Ut:Yi.defaults(Ut.Object(),re,Yi.pick(Ut,dl));var q=re.Array,Ee=re.Date,nt=re.Error,Ot=re.Function,ur=re.Math,Ct=re.Object,Xi=re.RegExp,ca=re.String,on=re.TypeError,da=q.prototype,Mc=Ot.prototype,Ji=Ct.prototype,ti=re["__core-js_shared__"],ri=Mc.toString,ot=Ji.hasOwnProperty,Qi=0,wi=function(){var i=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Eo=Ji.toString,Gd=ri.call(Ct),_c=Ut._,us=Xi("^"+ri.call(ot).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cs=is?re.Buffer:n,xi=re.Symbol,ko=re.Uint8Array,Tc=cs?cs.allocUnsafe:n,fa=wc(Ct.getPrototypeOf,Ct),R1=Ct.create,zl=Ji.propertyIsEnumerable,ha=da.splice,Io=xi?xi.isConcatSpreadable:n,eo=xi?xi.iterator:n,to=xi?xi.toStringTag:n,Ao=function(){try{var i=Vo(Ct,"defineProperty");return i({},"",{}),i}catch{}}(),qd=re.clearTimeout!==Ut.clearTimeout&&re.clearTimeout,jd=Ee&&Ee.now!==Ut.Date.now&&Ee.now,Kd=re.setTimeout!==Ut.setTimeout&&re.setTimeout,pa=ur.ceil,ga=ur.floor,ro=Ct.getOwnPropertySymbols,ds=cs?cs.isBuffer:n,Oc=re.isFinite,Ll=da.join,Ec=wc(Ct.keys,Ct),Gt=ur.max,Tr=ur.min,$o=Ee.now,fs=re.parseInt,no=ur.random,hs=da.reverse,io=Vo(re,"DataView"),va=Vo(re,"Map"),Sl=Vo(re,"Promise"),Po=Vo(re,"Set"),ps=Vo(re,"WeakMap"),Wn=Vo(Ct,"create"),ni=ps&&new ps,ba={},Yd=Ft(io),Xd=Ft(va),Jd=Ft(Sl),Qd=Ft(Po),ef=Ft(ps),Or=xi?xi.prototype:n,qt=Or?Or.valueOf:n,Er=Or?Or.toString:n;function M(i){if(nr(i)&&!ct(i)&&!(i instanceof vt)){if(i instanceof Yr)return i;if(ot.call(i,"__wrapped__"))return Vr(i)}return new Yr(i)}var ii=function(){function i(){}return function(u){if(!er(u))return{};if(R1)return R1(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function Ml(){}function Yr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}M.templateSettings={escape:wo,evaluate:Wi,interpolate:Ka,variable:"",imports:{_:M}},M.prototype=Ml.prototype,M.prototype.constructor=M,Yr.prototype=ii(Ml.prototype),Yr.prototype.constructor=Yr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function tf(){var i=new vt(this.__wrapped__);return i.__actions__=yr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=yr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=yr(this.__views__),i}function rf(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function H1(){var i=this.__wrapped__.value(),u=this.__dir__,f=ct(i),b=u<0,L=f?i.length:0,_=Yl(0,L,this.__views__),P=_.start,N=_.end,Z=N-P,ie=b?N:P-1,oe=this.__iteratees__,de=oe.length,Me=0,Fe=Tr(Z,this.__takeCount__);if(!f||!b&&L==Z&&Fe==Z)return Xc(i,this.__actions__);var Xe=[];e:for(;Z--&&Me<Fe;){ie+=u;for(var ht=-1,Je=i[ie];++ht<de;){var mt=oe[ht],wt=mt.iteratee,Gn=mt.type,bn=wt(Je);if(Gn==E)Je=bn;else if(!bn){if(Gn==O)continue e;break e}}Xe[Me++]=Je}return Xe}vt.prototype=ii(Ml.prototype),vt.prototype.constructor=vt;function oo(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function F1(){this.__data__=Wn?Wn(null):{},this.size=0}function nf(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function B1(i){var u=this.__data__;if(Wn){var f=u[i];return f===z?n:f}return ot.call(u,i)?u[i]:n}function V1(i){var u=this.__data__;return Wn?u[i]!==n:ot.call(u,i)}function kc(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Wn&&u===n?z:u,this}oo.prototype.clear=F1,oo.prototype.delete=nf,oo.prototype.get=B1,oo.prototype.has=V1,oo.prototype.set=kc;function oi(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function W1(){this.__data__=[],this.size=0}function Ic(i){var u=this.__data__,f=Do(u,i);if(f<0)return!1;var b=u.length-1;return f==b?u.pop():ha.call(u,f,1),--this.size,!0}function gs(i){var u=this.__data__,f=Do(u,i);return f<0?n:u[f][1]}function of(i){return Do(this.__data__,i)>-1}function _l(i,u){var f=this.__data__,b=Do(f,i);return b<0?(++this.size,f.push([i,u])):f[b][1]=u,this}oi.prototype.clear=W1,oi.prototype.delete=Ic,oi.prototype.get=gs,oi.prototype.has=of,oi.prototype.set=_l;function Qt(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Ac(){this.size=0,this.__data__={hash:new oo,map:new(va||oi),string:new oo}}function af(i){var u=Kl(this,i).delete(i);return this.size-=u?1:0,u}function $c(i){return Kl(this,i).get(i)}function hn(i){return Kl(this,i).has(i)}function Lt(i,u){var f=Kl(this,i),b=f.size;return f.set(i,u),this.size+=f.size==b?0:1,this}Qt.prototype.clear=Ac,Qt.prototype.delete=af,Qt.prototype.get=$c,Qt.prototype.has=hn,Qt.prototype.set=Lt;function kr(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new Qt;++u<f;)this.add(i[u])}function ao(i){return this.__data__.set(i,z),this}function so(i){return this.__data__.has(i)}kr.prototype.add=kr.prototype.push=ao,kr.prototype.has=so;function zn(i){var u=this.__data__=new oi(i);this.size=u.size}function Z1(){this.__data__=new oi,this.size=0}function Pc(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function sf(i){return this.__data__.get(i)}function U1(i){return this.__data__.has(i)}function vs(i,u){var f=this.__data__;if(f instanceof oi){var b=f.__data__;if(!va||b.length<c-1)return b.push([i,u]),this.size=++f.size,this;f=this.__data__=new Qt(b)}return f.set(i,u),this.size=f.size,this}zn.prototype.clear=Z1,zn.prototype.delete=Pc,zn.prototype.get=sf,zn.prototype.has=U1,zn.prototype.set=vs;function G1(i,u){var f=ct(i),b=!f&&ks(i),L=!f&&!b&&Da(i),_=!f&&!b&&!L&&Jl(i),P=f||b||L||_,N=P?To(i.length,ca):[],Z=N.length;for(var ie in i)(u||ot.call(i,ie))&&!(P&&(ie=="length"||L&&(ie=="offset"||ie=="parent")||_&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||m(ie,Z)))&&N.push(ie);return N}function Tl(i){var u=i.length;return u?i[Hl(0,u-1)]:n}function lo(i,u){return Cr(yr(i),No(u,0,i.length))}function Dc(i){return Cr(yr(i))}function Ol(i,u,f){(f!==n&&!Ti(i[u],f)||f===n&&!(u in i))&&ai(i,u,f)}function bs(i,u,f){var b=i[u];(!(ot.call(i,u)&&Ti(b,f))||f===n&&!(u in i))&&ai(i,u,f)}function Do(i,u){for(var f=i.length;f--;)if(Ti(i[f][0],u))return f;return-1}function q1(i,u,f,b){return pn(i,function(L,_,P){u(b,L,f(L),P)}),b}function j1(i,u){return i&&an(u,Zr(u),i)}function lf(i,u){return i&&an(u,Tn(u),i)}function ai(i,u,f){u=="__proto__"&&Ao?Ao(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function K1(i,u){for(var f=-1,b=u.length,L=q(b),_=i==null;++f<b;)L[f]=_?n:Lf(i,u[f]);return L}function No(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Xr(i,u,f,b,L,_){var P,N=u&D,Z=u&B,ie=u&R;if(f&&(P=L?f(i,b,L,_):f(i)),P!==n)return P;if(!er(i))return i;var oe=ct(i);if(oe){if(P=s(i),!N)return yr(i,P)}else{var de=Hr(i),Me=de==Zt||de==Ur;if(Da(i))return au(i,N);if(de==kt||de==rt||Me&&!L){if(P=Z||Me?{}:a(i),!N)return Z?r0(i,lf(P,i)):vf(i,j1(P,i))}else{if(!Ht[de])return L?i:{};P=d(i,de,N)}}_||(_=new zn);var Fe=_.get(i);if(Fe)return Fe;_.set(i,P),Tp(i)?i.forEach(function(Je){P.add(Xr(Je,u,f,Je,i,_))}):Mp(i)&&i.forEach(function(Je,mt){P.set(mt,Xr(Je,u,f,mt,i,_))});var Xe=ie?Z?jl:Os:Z?Tn:Zr,ht=oe?n:Xe(i);return wn(ht||i,function(Je,mt){ht&&(mt=Je,Je=i[mt]),bs(P,mt,Xr(Je,u,f,mt,i,_))}),P}function Nc(i){var u=Zr(i);return function(f){return Rc(f,i,u)}}function Rc(i,u,f){var b=f.length;if(i==null)return!b;for(i=Ct(i);b--;){var L=f[b],_=u[L],P=i[L];if(P===n&&!(L in i)||!_(P))return!1}return!0}function Hc(i,u,f){if(typeof i!="function")throw new on(h);return Nt(function(){i.apply(n,f)},u)}function ma(i,u,f,b){var L=-1,_=as,P=!0,N=i.length,Z=[],ie=u.length;if(!N)return Z;f&&(u=At(u,Kr(f))),b?(_=la,P=!1):u.length>=c&&(_=nn,P=!1,u=new kr(u));e:for(;++L<N;){var oe=i[L],de=f==null?oe:f(oe);if(oe=b||oe!==0?oe:0,P&&de===de){for(var Me=ie;Me--;)if(u[Me]===de)continue e;Z.push(oe)}else _(u,de,b)||Z.push(oe)}return Z}var pn=n0(gn),El=n0(Al,!0);function kl(i,u){var f=!0;return pn(i,function(b,L,_){return f=!!u(b,L,_),f}),f}function ms(i,u,f){for(var b=-1,L=i.length;++b<L;){var _=i[b],P=u(_);if(P!=null&&(N===n?P===P&&!Un(P):f(P,N)))var N=P,Z=_}return Z}function Y1(i,u,f,b){var L=i.length;for(f=ft(f),f<0&&(f=-f>L?0:L+f),b=b===n||b>L?L:ft(b),b<0&&(b+=L),b=f>b?0:Ep(b);f<b;)i[f++]=u;return i}function X1(i,u){var f=[];return pn(i,function(b,L,_){u(b,L,_)&&f.push(b)}),f}function Ir(i,u,f,b,L){var _=-1,P=i.length;for(f||(f=v),L||(L=[]);++_<P;){var N=i[_];u>0&&f(N)?u>1?Ir(N,u-1,f,b,L):qi(L,N):b||(L[L.length]=N)}return L}var Il=i0(),br=i0(!0);function gn(i,u){return i&&Il(i,u,Zr)}function Al(i,u){return i&&br(i,u,Zr)}function ys(i,u){return Gi(u,function(f){return Uo(i[f])})}function uo(i,u){u=Zn(u,i);for(var f=0,b=u.length;i!=null&&f<b;)i=i[$t(u[f++])];return f&&f==b?i:n}function Ro(i,u,f){var b=u(i);return ct(i)?b:qi(b,f(i))}function mr(i){return i==null?i===n?Y:bt:to&&to in Ct(i)?Yt(i):Se(i)}function $l(i,u){return i>u}function Fc(i,u){return i!=null&&ot.call(i,u)}function Bc(i,u){return i!=null&&u in Ct(i)}function ya(i,u,f){return i>=Tr(u,f)&&i<Gt(u,f)}function Pl(i,u,f){for(var b=f?la:as,L=i[0].length,_=i.length,P=_,N=q(_),Z=1/0,ie=[];P--;){var oe=i[P];P&&u&&(oe=At(oe,Kr(u))),Z=Tr(oe.length,Z),N[P]=!f&&(u||L>=120&&oe.length>=120)?new kr(P&&oe):n}oe=i[0];var de=-1,Me=N[0];e:for(;++de<L&&ie.length<Z;){var Fe=oe[de],Xe=u?u(Fe):Fe;if(Fe=f||Fe!==0?Fe:0,!(Me?nn(Me,Xe):b(ie,Xe,f))){for(P=_;--P;){var ht=N[P];if(!(ht?nn(ht,Xe):b(i[P],Xe,f)))continue e}Me&&Me.push(Xe),ie.push(Fe)}}return ie}function Dl(i,u,f,b){return gn(i,function(L,_,P){u(b,f(L),_,P)}),b}function Ca(i,u,f){u=Zn(u,i),i=Pe(i,u);var b=i==null?i:i[$t(li(u))];return b==null?n:fn(b,i,f)}function wa(i){return nr(i)&&mr(i)==rt}function uf(i){return nr(i)&&mr(i)==Lr}function xa(i){return nr(i)&&mr(i)==st}function za(i,u,f,b,L){return i===u?!0:i==null||u==null||!nr(i)&&!nr(u)?i!==i&&u!==u:Vc(i,u,f,b,za,L)}function Vc(i,u,f,b,L,_){var P=ct(i),N=ct(u),Z=P?ze:Hr(i),ie=N?ze:Hr(u);Z=Z==rt?kt:Z,ie=ie==rt?kt:ie;var oe=Z==kt,de=ie==kt,Me=Z==ie;if(Me&&Da(i)){if(!Da(u))return!1;P=!0,oe=!1}if(Me&&!oe)return _||(_=new zn),P||Jl(i)?fu(i,u,f,b,L,_):d0(i,u,Z,f,b,L,_);if(!(f&J)){var Fe=oe&&ot.call(i,"__wrapped__"),Xe=de&&ot.call(u,"__wrapped__");if(Fe||Xe){var ht=Fe?i.value():i,Je=Xe?u.value():u;return _||(_=new zn),L(ht,Je,f,b,_)}}return Me?(_||(_=new zn),f0(i,u,f,b,L,_)):!1}function Wc(i){return nr(i)&&Hr(i)==tr}function Ho(i,u,f,b){var L=f.length,_=L,P=!b;if(i==null)return!_;for(i=Ct(i);L--;){var N=f[L];if(P&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++L<_;){N=f[L];var Z=N[0],ie=i[Z],oe=N[1];if(P&&N[2]){if(ie===n&&!(Z in i))return!1}else{var de=new zn;if(b)var Me=b(ie,oe,Z,i,u,de);if(!(Me===n?za(oe,ie,J|pe,b,de):Me))return!1}}return!0}function La(i){if(!er(i)||V(i))return!1;var u=Uo(i)?us:Rn;return u.test(Ft(i))}function Cs(i){return nr(i)&&mr(i)==ar}function ws(i){return nr(i)&&Hr(i)==it}function Zc(i){return nr(i)&&y0(i.length)&&!!Vt[mr(i)]}function Uc(i){return typeof i=="function"?i:i==null?On:typeof i=="object"?ct(i)?J1(i[0],i[1]):Gc(i):Bp(i)}function Nl(i){if(!K(i))return Ec(i);var u=[];for(var f in Ct(i))ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function co(i){if(!er(i))return ye(i);var u=K(i),f=[];for(var b in i)b=="constructor"&&(u||!ot.call(i,b))||f.push(b);return f}function fo(i,u){return i<u}function Sa(i,u){var f=-1,b=_n(i)?q(i.length):[];return pn(i,function(L,_,P){b[++f]=u(L,_,P)}),b}function Gc(i){var u=Aa(i);return u.length==1&&u[0][2]?he(u[0][0],u[0][1]):function(f){return f===i||Ho(f,i,u)}}function J1(i,u){return C(i)&&ne(u)?he($t(i),u):function(f){var b=Lf(f,i);return b===n&&b===u?Sf(f,i):za(u,b,J|pe)}}function Rl(i,u,f,b,L){i!==u&&Il(u,function(_,P){if(L||(L=new zn),er(_))cf(i,u,P,f,Rl,b,L);else{var N=b?b(It(i,P),_,P+"",i,u,L):n;N===n&&(N=_),Ol(i,P,N)}},Tn)}function cf(i,u,f,b,L,_,P){var N=It(i,f),Z=It(u,f),ie=P.get(Z);if(ie){Ol(i,f,ie);return}var oe=_?_(N,Z,f+"",i,u,P):n,de=oe===n;if(de){var Me=ct(Z),Fe=!Me&&Da(Z),Xe=!Me&&!Fe&&Jl(Z);oe=Z,Me||Fe||Xe?ct(N)?oe=N:fr(N)?oe=yr(N):Fe?(de=!1,oe=au(Z,!0)):Xe?(de=!1,oe=Qc(Z,!0)):oe=[]:gu(Z)||ks(Z)?(oe=N,ks(N)?oe=kp(N):(!er(N)||Uo(N))&&(oe=a(Z))):de=!1}de&&(P.set(Z,oe),L(oe,Z,b,_,P),P.delete(Z)),Ol(i,f,oe)}function qc(i,u){var f=i.length;if(f)return u+=u<0?f:0,m(u,f)?i[u]:n}function Nr(i,u,f){u.length?u=At(u,function(_){return ct(_)?function(P){return uo(P,_.length===1?_[0]:_)}:_}):u=[On];var b=-1;u=At(u,Kr(Ze()));var L=Sa(i,function(_,P,N){var Z=At(u,function(ie){return ie(_)});return{criteria:Z,index:++b,value:_}});return bc(L,function(_,P){return e0(_,P,f)})}function jc(i,u){return Kc(i,u,function(f,b){return Sf(i,b)})}function Kc(i,u,f){for(var b=-1,L=u.length,_={};++b<L;){var P=u[b],N=uo(i,P);f(N,P)&&zi(_,Zn(P,i),N)}return _}function df(i){return function(u){return uo(u,i)}}function Q1(i,u,f,b){var L=b?Wd:_o,_=-1,P=u.length,N=i;for(i===u&&(u=yr(u)),f&&(N=At(i,Kr(f)));++_<P;)for(var Z=0,ie=u[_],oe=f?f(ie):ie;(Z=L(N,oe,Z,b))>-1;)N!==i&&ha.call(N,Z,1),ha.call(i,Z,1);return i}function eu(i,u){for(var f=i?u.length:0,b=f-1;f--;){var L=u[f];if(f==b||L!==_){var _=L;m(L)?ha.call(i,L,1):Ls(i,L)}}return i}function Hl(i,u){return i+ga(no()*(u-i+1))}function Yc(i,u,f,b){for(var L=-1,_=Gt(pa((u-i)/(f||1)),0),P=q(_);_--;)P[b?_:++L]=i,i+=f;return P}function tu(i,u){var f="";if(!i||u<1||u>Ae)return f;do u%2&&(f+=i),u=ga(u/2),u&&(i+=i);while(u);return f}function dt(i,u){return Fr(He(i,u,On),i+"")}function ff(i){return Tl(Ql(i))}function ho(i,u){var f=Ql(i);return Cr(f,No(u,0,f.length))}function zi(i,u,f,b){if(!er(i))return i;u=Zn(u,i);for(var L=-1,_=u.length,P=_-1,N=i;N!=null&&++L<_;){var Z=$t(u[L]),ie=f;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return i;if(L!=P){var oe=N[Z];ie=b?b(oe,Z,N):n,ie===n&&(ie=er(oe)?oe:m(u[L+1])?[]:{})}bs(N,Z,ie),N=N[Z]}return i}var xs=ni?function(i,u){return ni.set(i,u),i}:On,zs=Ao?function(i,u){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:_f(u),writable:!0})}:On;function Li(i){return Cr(Ql(i))}function Ln(i,u,f){var b=-1,L=i.length;u<0&&(u=-u>L?0:L+u),f=f>L?L:f,f<0&&(f+=L),L=u>f?0:f-u>>>0,u>>>=0;for(var _=q(L);++b<L;)_[b]=i[b+u];return _}function hf(i,u){var f;return pn(i,function(b,L,_){return f=u(b,L,_),!f}),!!f}function Si(i,u,f){var b=0,L=i==null?b:i.length;if(typeof u=="number"&&u===u&&L<=Tt){for(;b<L;){var _=b+L>>>1,P=i[_];P!==null&&!Un(P)&&(f?P<=u:P<u)?b=_+1:L=_}return L}return Fl(i,u,On,f)}function Fl(i,u,f,b){var L=0,_=i==null?0:i.length;if(_===0)return 0;u=f(u);for(var P=u!==u,N=u===null,Z=Un(u),ie=u===n;L<_;){var oe=ga((L+_)/2),de=f(i[oe]),Me=de!==n,Fe=de===null,Xe=de===de,ht=Un(de);if(P)var Je=b||Xe;else ie?Je=Xe&&(b||Me):N?Je=Xe&&Me&&(b||!Fe):Z?Je=Xe&&Me&&!Fe&&(b||!ht):Fe||ht?Je=!1:Je=b?de<=u:de<u;Je?L=oe+1:_=oe}return Tr(_,or)}function ru(i,u){for(var f=-1,b=i.length,L=0,_=[];++f<b;){var P=i[f],N=u?u(P):P;if(!f||!Ti(N,Z)){var Z=N;_[L++]=P===0?0:P}}return _}function nu(i){return typeof i=="number"?i:Un(i)?pt:+i}function Rr(i){if(typeof i=="string")return i;if(ct(i))return At(i,Rr)+"";if(Un(i))return Er?Er.call(i):"";var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function vn(i,u,f){var b=-1,L=as,_=i.length,P=!0,N=[],Z=N;if(f)P=!1,L=la;else if(_>=c){var ie=u?null:Ts(i);if(ie)return yl(ie);P=!1,L=nn,Z=new kr}else Z=u?[]:N;e:for(;++b<_;){var oe=i[b],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,P&&de===de){for(var Me=Z.length;Me--;)if(Z[Me]===de)continue e;u&&Z.push(de),N.push(oe)}else L(Z,de,f)||(Z!==N&&Z.push(de),N.push(oe))}return N}function Ls(i,u){return u=Zn(u,i),i=Pe(i,u),i==null||delete i[$t(li(u))]}function Bl(i,u,f,b){return zi(i,u,f(uo(i,u)),b)}function Ma(i,u,f,b){for(var L=i.length,_=b?L:-1;(b?_--:++_<L)&&u(i[_],_,i););return f?Ln(i,b?0:_,b?_+1:L):Ln(i,b?_+1:0,b?L:_)}function Xc(i,u){var f=i;return f instanceof vt&&(f=f.value()),k1(u,function(b,L){return L.func.apply(L.thisArg,qi([b],L.args))},f)}function Fo(i,u,f){var b=i.length;if(b<2)return b?vn(i[0]):[];for(var L=-1,_=q(b);++L<b;)for(var P=i[L],N=-1;++N<b;)N!=L&&(_[L]=ma(_[L]||P,i[N],u,f));return vn(Ir(_,1),u,f)}function iu(i,u,f){for(var b=-1,L=i.length,_=u.length,P={};++b<L;){var N=b<_?u[b]:n;f(P,i[b],N)}return P}function ou(i){return fr(i)?i:[]}function Vl(i){return typeof i=="function"?i:On}function Zn(i,u){return ct(i)?i:C(i,u)?[i]:cr(Rt(i))}var pf=dt;function po(i,u,f){var b=i.length;return f=f===n?b:f,!u&&f>=b?i:Ln(i,u,f)}var _a=qd||function(i){return Ut.clearTimeout(i)};function au(i,u){if(u)return i.slice();var f=i.length,b=Tc?Tc(f):new i.constructor(f);return i.copy(b),b}function Wl(i){var u=new i.constructor(i.byteLength);return new ko(u).set(new ko(i)),u}function gf(i,u){var f=u?Wl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function su(i){var u=new i.constructor(i.source,Lo.exec(i));return u.lastIndex=i.lastIndex,u}function Jc(i){return qt?Ct(qt.call(i)):{}}function Qc(i,u){var f=u?Wl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function lu(i,u){if(i!==u){var f=i!==n,b=i===null,L=i===i,_=Un(i),P=u!==n,N=u===null,Z=u===u,ie=Un(u);if(!N&&!ie&&!_&&i>u||_&&P&&Z&&!N&&!ie||b&&P&&Z||!f&&Z||!L)return 1;if(!b&&!_&&!ie&&i<u||ie&&f&&L&&!b&&!_||N&&f&&L||!P&&L||!Z)return-1}return 0}function e0(i,u,f){for(var b=-1,L=i.criteria,_=u.criteria,P=L.length,N=f.length;++b<P;){var Z=lu(L[b],_[b]);if(Z){if(b>=N)return Z;var ie=f[b];return Z*(ie=="desc"?-1:1)}}return i.index-u.index}function t0(i,u,f,b){for(var L=-1,_=i.length,P=f.length,N=-1,Z=u.length,ie=Gt(_-P,0),oe=q(Z+ie),de=!b;++N<Z;)oe[N]=u[N];for(;++L<P;)(de||L<_)&&(oe[f[L]]=i[L]);for(;ie--;)oe[N++]=i[L++];return oe}function Zl(i,u,f,b){for(var L=-1,_=i.length,P=-1,N=f.length,Z=-1,ie=u.length,oe=Gt(_-N,0),de=q(oe+ie),Me=!b;++L<oe;)de[L]=i[L];for(var Fe=L;++Z<ie;)de[Fe+Z]=u[Z];for(;++P<N;)(Me||L<_)&&(de[Fe+f[P]]=i[L++]);return de}function yr(i,u){var f=-1,b=i.length;for(u||(u=q(b));++f<b;)u[f]=i[f];return u}function an(i,u,f,b){var L=!f;f||(f={});for(var _=-1,P=u.length;++_<P;){var N=u[_],Z=b?b(f[N],i[N],N,f,i):n;Z===n&&(Z=i[N]),L?ai(f,N,Z):bs(f,N,Z)}return f}function vf(i,u){return an(i,hu(i),u)}function r0(i,u){return an(i,h0(i),u)}function Ul(i,u){return function(f,b){var L=ct(f)?Hd:q1,_=u?u():{};return L(f,i,Ze(b,2),_)}}function Ta(i){return dt(function(u,f){var b=-1,L=f.length,_=L>1?f[L-1]:n,P=L>2?f[2]:n;for(_=i.length>3&&typeof _=="function"?(L--,_):n,P&&y(f[0],f[1],P)&&(_=L<3?n:_,L=1),u=Ct(u);++b<L;){var N=f[b];N&&i(u,N,b,_)}return u})}function n0(i,u){return function(f,b){if(f==null)return f;if(!_n(f))return i(f,b);for(var L=f.length,_=u?L:-1,P=Ct(f);(u?_--:++_<L)&&b(P[_],_,P)!==!1;);return f}}function i0(i){return function(u,f,b){for(var L=-1,_=Ct(u),P=b(u),N=P.length;N--;){var Z=P[i?N:++L];if(f(_[Z],Z,_)===!1)break}return u}}function o0(i,u,f){var b=u&ge,L=Ea(i);function _(){var P=this&&this!==Ut&&this instanceof _?L:i;return P.apply(b?f:this,arguments)}return _}function a0(i){return function(u){u=Rt(u);var f=Bn(u)?xn(u):n,b=f?f[0]:u.charAt(0),L=f?po(f,1).join(""):u.slice(1);return b[i]()+L}}function Oa(i){return function(u){return k1(Hp(Rp(u).replace(S1,"")),i,"")}}function Ea(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ii(i.prototype),b=i.apply(f,u);return er(b)?b:f}}function uu(i,u,f){var b=Ea(i);function L(){for(var _=arguments.length,P=q(_),N=_,Z=Ia(L);N--;)P[N]=arguments[N];var ie=_<3&&P[0]!==Z&&P[_-1]!==Z?[]:Ki(P,Z);if(_-=ie.length,_<f)return u0(i,u,Ss,L.placeholder,n,P,ie,n,n,f-_);var oe=this&&this!==Ut&&this instanceof L?b:i;return fn(oe,this,P)}return L}function cu(i){return function(u,f,b){var L=Ct(u);if(!_n(u)){var _=Ze(f,3);u=Zr(u),f=function(N){return _(L[N],N,L)}}var P=i(u,f,b);return P>-1?L[_?u[P]:P]:n}}function s0(i){return Mi(function(u){var f=u.length,b=f,L=Yr.prototype.thru;for(i&&u.reverse();b--;){var _=u[b];if(typeof _!="function")throw new on(h);if(L&&!P&&Es(_)=="wrapper")var P=new Yr([],!0)}for(b=P?b:f;++b<f;){_=u[b];var N=Es(_),Z=N=="wrapper"?St(_):n;Z&&I(Z[0])&&Z[1]==(De|be|Oe|je)&&!Z[4].length&&Z[9]==1?P=P[Es(Z[0])].apply(P,Z[3]):P=_.length==1&&I(_)?P[N]():P.thru(_)}return function(){var ie=arguments,oe=ie[0];if(P&&ie.length==1&&ct(oe))return P.plant(oe).value();for(var de=0,Me=f?u[de].apply(this,ie):oe;++de<f;)Me=u[de].call(this,Me);return Me}})}function Ss(i,u,f,b,L,_,P,N,Z,ie){var oe=u&De,de=u&ge,Me=u&Te,Fe=u&(be|ve),Xe=u&Ye,ht=Me?n:Ea(i);function Je(){for(var mt=arguments.length,wt=q(mt),Gn=mt;Gn--;)wt[Gn]=arguments[Gn];if(Fe)var bn=Ia(Je),qn=Zd(wt,bn);if(b&&(wt=t0(wt,b,L,Fe)),_&&(wt=Zl(wt,_,P,Fe)),mt-=qn,Fe&&mt<ie){var hr=Ki(wt,bn);return u0(i,u,Ss,Je.placeholder,f,wt,hr,N,Z,ie-mt)}var Oi=de?f:this,qo=Me?Oi[i]:i;return mt=wt.length,N?wt=ut(wt,N):Xe&&mt>1&&wt.reverse(),oe&&Z<mt&&(wt.length=Z),this&&this!==Ut&&this instanceof Je&&(qo=ht||Ea(qo)),qo.apply(Oi,wt)}return Je}function Bo(i,u){return function(f,b){return Dl(f,i,u(b),{})}}function Ms(i,u){return function(f,b){var L;if(f===n&&b===n)return u;if(f!==n&&(L=f),b!==n){if(L===n)return b;typeof f=="string"||typeof b=="string"?(f=Rr(f),b=Rr(b)):(f=nu(f),b=nu(b)),L=i(f,b)}return L}}function ka(i){return Mi(function(u){return u=At(u,Kr(Ze())),dt(function(f){var b=this;return i(u,function(L){return fn(L,b,f)})})})}function Gl(i,u){u=u===n?" ":Rr(u);var f=u.length;if(f<2)return f?tu(u,i):u;var b=tu(u,pa(i/Oo(u)));return Bn(u)?po(xn(b),0,i).join(""):b.slice(0,i)}function bf(i,u,f,b){var L=u&ge,_=Ea(i);function P(){for(var N=-1,Z=arguments.length,ie=-1,oe=b.length,de=q(oe+Z),Me=this&&this!==Ut&&this instanceof P?_:i;++ie<oe;)de[ie]=b[ie];for(;Z--;)de[ie++]=arguments[++N];return fn(Me,L?f:this,de)}return P}function l0(i){return function(u,f,b){return b&&typeof b!="number"&&y(u,f,b)&&(f=b=n),u=Go(u),f===n?(f=u,u=0):f=Go(f),b=b===n?u<f?1:-1:Go(b),Yc(u,f,b,i)}}function Dt(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=ui(u),f=ui(f)),i(u,f)}}function u0(i,u,f,b,L,_,P,N,Z,ie){var oe=u&be,de=oe?P:n,Me=oe?n:P,Fe=oe?_:n,Xe=oe?n:_;u|=oe?Oe:$e,u&=~(oe?$e:Oe),u&Ie||(u&=~(ge|Te));var ht=[i,u,L,Fe,de,Xe,Me,N,Z,ie],Je=f.apply(n,ht);return I(i)&&rr(Je,ht),Je.placeholder=b,Br(Je,i,u)}function _s(i){var u=ur[i];return function(f,b){if(f=ui(f),b=b==null?0:Tr(ft(b),292),b&&Oc(f)){var L=(Rt(f)+"e").split("e"),_=u(L[0]+"e"+(+L[1]+b));return L=(Rt(_)+"e").split("e"),+(L[0]+"e"+(+L[1]-b))}return u(f)}}var Ts=Po&&1/yl(new Po([,-0]))[1]==ue?function(i){return new Po(i)}:Ef;function Sn(i){return function(u){var f=Hr(u);return f==tr?ml(u):f==it?xc(u):Ci(u,i(u))}}function Mn(i,u,f,b,L,_,P,N){var Z=u&Te;if(!Z&&typeof i!="function")throw new on(h);var ie=b?b.length:0;if(ie||(u&=~(Oe|$e),b=L=n),P=P===n?P:Gt(ft(P),0),N=N===n?N:ft(N),ie-=L?L.length:0,u&$e){var oe=b,de=L;b=L=n}var Me=Z?n:St(i),Fe=[i,u,f,b,L,oe,de,_,P,N];if(Me&&xe(Fe,Me),i=Fe[0],u=Fe[1],f=Fe[2],b=Fe[3],L=Fe[4],N=Fe[9]=Fe[9]===n?Z?0:i.length:Gt(Fe[9]-ie,0),!N&&u&(be|ve)&&(u&=~(be|ve)),!u||u==ge)var Xe=o0(i,u,f);else u==be||u==ve?Xe=uu(i,u,N):(u==Oe||u==(ge|Oe))&&!L.length?Xe=bf(i,u,f,b):Xe=Ss.apply(n,Fe);var ht=Me?xs:rr;return Br(ht(Xe,Fe),i,u)}function ql(i,u,f,b){return i===n||Ti(i,Ji[f])&&!ot.call(b,f)?u:i}function du(i,u,f,b,L,_){return er(i)&&er(u)&&(_.set(u,i),Rl(i,u,n,du,_),_.delete(u)),i}function c0(i){return gu(i)?n:i}function fu(i,u,f,b,L,_){var P=f&J,N=i.length,Z=u.length;if(N!=Z&&!(P&&Z>N))return!1;var ie=_.get(i),oe=_.get(u);if(ie&&oe)return ie==u&&oe==i;var de=-1,Me=!0,Fe=f&pe?new kr:n;for(_.set(i,u),_.set(u,i);++de<N;){var Xe=i[de],ht=u[de];if(b)var Je=P?b(ht,Xe,de,u,i,_):b(Xe,ht,de,i,u,_);if(Je!==n){if(Je)continue;Me=!1;break}if(Fe){if(!Mo(u,function(mt,wt){if(!nn(Fe,wt)&&(Xe===mt||L(Xe,mt,f,b,_)))return Fe.push(wt)})){Me=!1;break}}else if(!(Xe===ht||L(Xe,ht,f,b,_))){Me=!1;break}}return _.delete(i),_.delete(u),Me}function d0(i,u,f,b,L,_,P){switch(f){case $n:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Lr:return!(i.byteLength!=u.byteLength||!_(new ko(i),new ko(u)));case Ge:case st:case Qe:return Ti(+i,+u);case Ue:return i.name==u.name&&i.message==u.message;case ar:case U:return i==u+"";case tr:var N=ml;case it:var Z=b&J;if(N||(N=yl),i.size!=u.size&&!Z)return!1;var ie=P.get(i);if(ie)return ie==u;b|=pe,P.set(i,u);var oe=fu(N(i),N(u),b,L,_,P);return P.delete(i),oe;case se:if(qt)return qt.call(i)==qt.call(u)}return!1}function f0(i,u,f,b,L,_){var P=f&J,N=Os(i),Z=N.length,ie=Os(u),oe=ie.length;if(Z!=oe&&!P)return!1;for(var de=Z;de--;){var Me=N[de];if(!(P?Me in u:ot.call(u,Me)))return!1}var Fe=_.get(i),Xe=_.get(u);if(Fe&&Xe)return Fe==u&&Xe==i;var ht=!0;_.set(i,u),_.set(u,i);for(var Je=P;++de<Z;){Me=N[de];var mt=i[Me],wt=u[Me];if(b)var Gn=P?b(wt,mt,Me,u,i,_):b(mt,wt,Me,i,u,_);if(!(Gn===n?mt===wt||L(mt,wt,f,b,_):Gn)){ht=!1;break}Je||(Je=Me=="constructor")}if(ht&&!Je){var bn=i.constructor,qn=u.constructor;bn!=qn&&"constructor"in i&&"constructor"in u&&!(typeof bn=="function"&&bn instanceof bn&&typeof qn=="function"&&qn instanceof qn)&&(ht=!1)}return _.delete(i),_.delete(u),ht}function Mi(i){return Fr(He(i,n,dp),i+"")}function Os(i){return Ro(i,Zr,hu)}function jl(i){return Ro(i,Tn,h0)}var St=ni?function(i){return ni.get(i)}:Ef;function Es(i){for(var u=i.name+"",f=ba[u],b=ot.call(ba,u)?f.length:0;b--;){var L=f[b],_=L.func;if(_==null||_==i)return L.name}return u}function Ia(i){var u=ot.call(M,"placeholder")?M:i;return u.placeholder}function Ze(){var i=M.iteratee||Tf;return i=i===Tf?Uc:i,arguments.length?i(arguments[0],arguments[1]):i}function Kl(i,u){var f=i.__data__;return T(u)?f[typeof u=="string"?"string":"hash"]:f.map}function Aa(i){for(var u=Zr(i),f=u.length;f--;){var b=u[f],L=i[b];u[f]=[b,L,ne(L)]}return u}function Vo(i,u){var f=N1(i,u);return La(f)?f:n}function Yt(i){var u=ot.call(i,to),f=i[to];try{i[to]=n;var b=!0}catch{}var L=Eo.call(i);return b&&(u?i[to]=f:delete i[to]),L}var hu=ro?function(i){return i==null?[]:(i=Ct(i),Gi(ro(i),function(u){return zl.call(i,u)}))}:kf,h0=ro?function(i){for(var u=[];i;)qi(u,hu(i)),i=fa(i);return u}:kf,Hr=mr;(io&&Hr(new io(new ArrayBuffer(1)))!=$n||va&&Hr(new va)!=tr||Sl&&Hr(Sl.resolve())!=Pr||Po&&Hr(new Po)!=it||ps&&Hr(new ps)!=tt)&&(Hr=function(i){var u=mr(i),f=u==kt?i.constructor:n,b=f?Ft(f):"";if(b)switch(b){case Yd:return $n;case Xd:return tr;case Jd:return Pr;case Qd:return it;case ef:return tt}return u});function Yl(i,u,f){for(var b=-1,L=f.length;++b<L;){var _=f[b],P=_.size;switch(_.type){case"drop":i+=P;break;case"dropRight":u-=P;break;case"take":u=Tr(u,i+P);break;case"takeRight":i=Gt(i,u-P);break}}return{start:i,end:u}}function e(i){var u=i.match(Xa);return u?u[1].split(Zi):[]}function r(i,u,f){u=Zn(u,i);for(var b=-1,L=u.length,_=!1;++b<L;){var P=$t(u[b]);if(!(_=i!=null&&f(i,P)))break;i=i[P]}return _||++b!=L?_:(L=i==null?0:i.length,!!L&&y0(L)&&m(P,L)&&(ct(i)||ks(i)))}function s(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function a(i){return typeof i.constructor=="function"&&!K(i)?ii(fa(i)):{}}function d(i,u,f){var b=i.constructor;switch(u){case Lr:return Wl(i);case Ge:case st:return new b(+i);case $n:return gf(i,f);case Gr:case Wt:case bi:case Dr:case Pn:case Ve:case Vi:case Sr:case qe:return Qc(i,f);case tr:return new b;case Qe:case U:return new b(i);case ar:return su(i);case it:return new b;case se:return Jc(i)}}function p(i,u){var f=u.length;if(!f)return i;var b=f-1;return u[b]=(f>1?"& ":"")+u[b],u=u.join(f>2?", ":" "),i.replace(il,`{
|
|
1667
1667
|
/* [wrapped with `+u+`] */
|
|
1668
|
-
`)}function v(i){return ct(i)||ks(i)||!!(Io&&i&&i[Io])}function m(i,u){var f=typeof i;return u=u==null?Ae:u,!!u&&(f=="number"||f!="symbol"&&Xa.test(i))&&i>-1&&i%1==0&&i<u}function y(i,u,f){if(!er(f))return!1;var b=typeof u;return(b=="number"?_n(f)&&m(u,f.length):b=="string"&&u in f)?Ti(f[u],i):!1}function C(i,u){if(ct(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Un(i)?!0:qr.test(i)||!Ka.test(i)||u!=null&&i in Ct(u)}function T(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function I(i){var u=Os(i),f=M[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(i===f)return!0;var b=St(f);return!!b&&i===b[0]}function W(i){return!!wi&&wi in i}var H=ti?Uo:If;function K(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||Ji;return i===f}function ne(i){return i===i&&!er(i)}function he(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in Ct(f))}}function me(i){var u=b0(i,function(b){return f.size===S&&f.clear(),b}),f=u.cache;return u}function xe(i,u){var f=i[1],b=u[1],L=f|b,_=L<(ge|Te|De),P=b==De&&f==be||b==De&&f==je&&i[7].length<=u[8]||b==(De|je)&&u[7].length<=u[8]&&f==be;if(!(_||P))return i;b&ge&&(i[2]=u[2],L|=f&ge?0:Ie);var N=u[3];if(N){var Z=i[3];i[3]=Z?t0(Z,N,u[4]):N,i[4]=Z?Ki(i[3],E):u[4]}return N=u[5],N&&(Z=i[5],i[5]=Z?Zl(Z,N,u[6]):N,i[6]=Z?Ki(i[5],E):u[6]),N=u[7],N&&(i[7]=N),b&De&&(i[8]=i[8]==null?u[8]:Tr(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=L,i}function ye(i){var u=[];if(i!=null)for(var f in Ct(i))u.push(f);return u}function Se(i){return ko.call(i)}function He(i,u,f){return u=Gt(u===n?i.length-1:u,0),function(){for(var b=arguments,L=-1,_=Gt(b.length-u,0),P=q(_);++L<_;)P[L]=b[u+L];L=-1;for(var N=q(u+1);++L<u;)N[L]=b[L];return N[u]=f(P),fn(i,this,N)}}function Pe(i,u){return u.length<2?i:uo(i,Ln(u,0,-1))}function ut(i,u){for(var f=i.length,b=Tr(u.length,f),L=yr(i);b--;){var _=u[b];i[b]=m(_,f)?L[_]:n}return i}function It(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var rr=Xt(ws),Nt=Kd||function(i,u){return Ut.setTimeout(i,u)},Fr=Xt(xs);function Br(i,u,f){var b=u+"";return Fr(i,p(b,jt(e(b),f)))}function Xt(i){var u=0,f=0;return function(){var b=$o(),L=$-(b-f);if(f=b,L>0){if(++u>=Q)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Cr(i,u){var f=-1,b=i.length,L=b-1;for(u=u===n?b:u;++f<u;){var _=Hl(f,L),P=i[_];i[_]=i[f],i[f]=P}return i.length=u,i}var cr=me(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(rl,function(f,b,L,_){u.push(L?_.replace(ol,"$1"):b||f)}),u});function $t(i){if(typeof i=="string"||Un(i))return i;var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function Ft(i){if(i!=null){try{return ri.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,u){return wn(xt,function(f){var b="_."+f[0];u&f[1]&&!os(i,b)&&i.push(b)}),i.sort()}function Wr(i){if(i instanceof vt)return i.clone();var u=new Yr(i.__wrapped__,i.__chain__);return u.__actions__=yr(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function $a(i,u,f){(f?y(i,u,f):u===n)?u=1:u=Gt(ft(u),0);var b=i==null?0:i.length;if(!b||u<1)return[];for(var L=0,_=0,P=q(pa(b/u));L<b;)P[_++]=Ln(i,L,L+=u);return P}function go(i){for(var u=-1,f=i==null?0:i.length,b=0,L=[];++u<f;){var _=i[u];_&&(L[b++]=_)}return L}function Ar(){var i=arguments.length;if(!i)return[];for(var u=q(i-1),f=arguments[0],b=i;b--;)u[b-1]=arguments[b];return qi(ct(f)?yr(f):[f],Ir(u,1))}var si=dt(function(i,u){return fr(i)?ma(i,Ir(u,1,fr,!0)):[]}),dr=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),Ze(f,2)):[]}),pu=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),n,f):[]});function _i(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),Ln(i,u<0?0:u,b)):[]}function Vo(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,0,u<0?0:u)):[]}function Zo(i,u){return i&&i.length?Ma(i,Ze(u,3),!0,!0):[]}function Vr(i,u){return i&&i.length?Ma(i,Ze(u,3),!0):[]}function Pa(i,u,f,b){var L=i==null?0:i.length;return L?(f&&typeof f!="number"&&y(i,u,f)&&(f=0,b=L),Y1(i,u,f,b)):[]}function Xl(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),pl(i,Ze(u,3),L)}function up(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b-1;return f!==n&&(L=ft(f),L=f<0?Gt(b+L,0):Tr(L,b-1)),pl(i,Ze(u,3),L,!0)}function cp(i){var u=i==null?0:i.length;return u?Ir(i,1):[]}function o7(i){var u=i==null?0:i.length;return u?Ir(i,ue):[]}function a7(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ft(u),Ir(i,u)):[]}function s7(i){for(var u=-1,f=i==null?0:i.length,b={};++u<f;){var L=i[u];b[L[0]]=L[1]}return b}function dp(i){return i&&i.length?i[0]:n}function l7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),_o(i,u,L)}function u7(i){var u=i==null?0:i.length;return u?Ln(i,0,-1):[]}var c7=dt(function(i){var u=At(i,ou);return u.length&&u[0]===i[0]?Pl(u):[]}),d7=dt(function(i){var u=li(i),f=At(i,ou);return u===li(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Pl(f,Ze(u,2)):[]}),f7=dt(function(i){var u=li(i),f=At(i,ou);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Pl(f,n,u):[]});function h7(i,u){return i==null?"":Ll.call(i,u)}function li(i){var u=i==null?0:i.length;return u?i[u-1]:n}function p7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b;return f!==n&&(L=ft(f),L=L<0?Gt(b+L,0):Tr(L,b-1)),u===u?ss(i,u,L):pl(i,gl,L,!0)}function g7(i,u){return i&&i.length?qc(i,ft(u)):n}var v7=dt(fp);function fp(i,u){return i&&i.length&&u&&u.length?Q1(i,u):i}function b7(i,u,f){return i&&i.length&&u&&u.length?Q1(i,u,Ze(f,2)):i}function m7(i,u,f){return i&&i.length&&u&&u.length?Q1(i,u,n,f):i}var y7=Mi(function(i,u){var f=i==null?0:i.length,b=K1(i,u);return eu(i,At(u,function(L){return m(L,f)?+L:L}).sort(lu)),b});function C7(i,u){var f=[];if(!(i&&i.length))return f;var b=-1,L=[],_=i.length;for(u=Ze(u,3);++b<_;){var P=i[b];u(P,b,i)&&(f.push(P),L.push(b))}return eu(i,L),f}function mf(i){return i==null?i:fs.call(i)}function w7(i,u,f){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&y(i,u,f)?(u=0,f=b):(u=u==null?0:ft(u),f=f===n?b:ft(f)),Ln(i,u,f)):[]}function x7(i,u){return Si(i,u)}function z7(i,u,f){return Fl(i,u,Ze(f,2))}function L7(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u);if(b<f&&Ti(i[b],u))return b}return-1}function S7(i,u){return Si(i,u,!0)}function M7(i,u,f){return Fl(i,u,Ze(f,2),!0)}function _7(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u,!0)-1;if(Ti(i[b],u))return b}return-1}function T7(i){return i&&i.length?ru(i):[]}function O7(i,u){return i&&i.length?ru(i,Ze(u,2)):[]}function k7(i){var u=i==null?0:i.length;return u?Ln(i,1,u):[]}function E7(i,u,f){return i&&i.length?(u=f||u===n?1:ft(u),Ln(i,0,u<0?0:u)):[]}function I7(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,u<0?0:u,b)):[]}function A7(i,u){return i&&i.length?Ma(i,Ze(u,3),!1,!0):[]}function $7(i,u){return i&&i.length?Ma(i,Ze(u,3)):[]}var P7=dt(function(i){return vn(Ir(i,1,fr,!0))}),D7=dt(function(i){var u=li(i);return fr(u)&&(u=n),vn(Ir(i,1,fr,!0),Ze(u,2))}),N7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,vn(Ir(i,1,fr,!0),n,u)});function R7(i){return i&&i.length?vn(i):[]}function H7(i,u){return i&&i.length?vn(i,Ze(u,2)):[]}function F7(i,u){return u=typeof u=="function"?u:n,i&&i.length?vn(i,n,u):[]}function yf(i){if(!(i&&i.length))return[];var u=0;return i=Gi(i,function(f){if(fr(f))return u=Gt(f.length,u),!0}),To(u,function(f){return At(i,A1(f))})}function hp(i,u){if(!(i&&i.length))return[];var f=yf(i);return u==null?f:At(f,function(b){return fn(u,n,b)})}var B7=dt(function(i,u){return fr(i)?ma(i,u):[]}),W7=dt(function(i){return Fo(Gi(i,fr))}),V7=dt(function(i){var u=li(i);return fr(u)&&(u=n),Fo(Gi(i,fr),Ze(u,2))}),Z7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,Fo(Gi(i,fr),n,u)}),U7=dt(yf);function G7(i,u){return iu(i||[],u||[],vs)}function q7(i,u){return iu(i||[],u||[],zi)}var j7=dt(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,hp(i,f)});function pp(i){var u=M(i);return u.__chain__=!0,u}function K7(i,u){return u(i),i}function p0(i,u){return u(i)}var Y7=Mi(function(i){var u=i.length,f=u?i[0]:0,b=this.__wrapped__,L=function(_){return K1(_,i)};return u>1||this.__actions__.length||!(b instanceof vt)||!m(f)?this.thru(L):(b=b.slice(f,+f+(u?1:0)),b.__actions__.push({func:p0,args:[L],thisArg:n}),new Yr(b,this.__chain__).thru(function(_){return u&&!_.length&&_.push(n),_}))});function X7(){return pp(this)}function J7(){return new Yr(this.value(),this.__chain__)}function Q7(){this.__values__===n&&(this.__values__=Tp(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function e9(){return this}function t9(i){for(var u,f=this;f instanceof Ml;){var b=Wr(f);b.__index__=0,b.__values__=n,u?L.__wrapped__=b:u=b;var L=b;f=f.__wrapped__}return L.__wrapped__=i,u}function r9(){var i=this.__wrapped__;if(i instanceof vt){var u=i;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:p0,args:[mf],thisArg:n}),new Yr(u,this.__chain__)}return this.thru(mf)}function n9(){return Xc(this.__wrapped__,this.__actions__)}var i9=Ul(function(i,u,f){ot.call(i,f)?++i[f]:ai(i,f,1)});function o9(i,u,f){var b=ct(i)?k1:El;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}function a9(i,u){var f=ct(i)?Gi:X1;return f(i,Ze(u,3))}var s9=cu(Xl),l9=cu(up);function u9(i,u){return Ir(g0(i,u),1)}function c9(i,u){return Ir(g0(i,u),ue)}function d9(i,u,f){return f=f===n?1:ft(f),Ir(g0(i,u),f)}function gp(i,u){var f=ct(i)?wn:pn;return f(i,Ze(u,3))}function vp(i,u){var f=ct(i)?Fd:kl;return f(i,Ze(u,3))}var f9=Ul(function(i,u,f){ot.call(i,f)?i[f].push(u):ai(i,f,[u])});function h9(i,u,f,b){i=_n(i)?i:Ql(i),f=f&&!b?ft(f):0;var L=i.length;return f<0&&(f=Gt(L+f,0)),C0(i)?f<=L&&i.indexOf(u,f)>-1:!!L&&_o(i,u,f)>-1}var p9=dt(function(i,u,f){var b=-1,L=typeof u=="function",_=_n(i)?q(i.length):[];return pn(i,function(P){_[++b]=L?fn(u,P,f):Ca(P,u,f)}),_}),g9=Ul(function(i,u,f){ai(i,f,u)});function g0(i,u){var f=ct(i)?At:Sa;return f(i,Ze(u,3))}function v9(i,u,f,b){return i==null?[]:(ct(u)||(u=u==null?[]:[u]),f=b?n:f,ct(f)||(f=f==null?[]:[f]),Nr(i,u,f))}var b9=Ul(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function m9(i,u,f){var b=ct(i)?E1:P1,L=arguments.length<3;return b(i,Ze(u,4),f,L,pn)}function y9(i,u,f){var b=ct(i)?Bd:P1,L=arguments.length<3;return b(i,Ze(u,4),f,L,kl)}function C9(i,u){var f=ct(i)?Gi:X1;return f(i,m0(Ze(u,3)))}function w9(i){var u=ct(i)?Tl:ff;return u(i)}function x9(i,u,f){(f?y(i,u,f):u===n)?u=1:u=ft(u);var b=ct(i)?lo:ho;return b(i,u)}function z9(i){var u=ct(i)?Dc:Li;return u(i)}function L9(i){if(i==null)return 0;if(_n(i))return C0(i)?Oo(i):i.length;var u=Hr(i);return u==tr||u==it?i.size:Nl(i).length}function S9(i,u,f){var b=ct(i)?Mo:hf;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}var M9=dt(function(i,u){if(i==null)return[];var f=u.length;return f>1&&y(i,u[0],u[1])?u=[]:f>2&&y(u[0],u[1],u[2])&&(u=[u[0]]),Nr(i,Ir(u,1),[])}),v0=jd||function(){return Ut.Date.now()};function _9(i,u){if(typeof u!="function")throw new on(h);return i=ft(i),function(){if(--i<1)return u.apply(this,arguments)}}function bp(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Mn(i,De,n,n,n,n,u)}function mp(i,u){var f;if(typeof u!="function")throw new on(h);return i=ft(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var Cf=dt(function(i,u,f){var b=ge;if(f.length){var L=Ki(f,Ia(Cf));b|=Oe}return Mn(i,b,u,f,L)}),yp=dt(function(i,u,f){var b=ge|Te;if(f.length){var L=Ki(f,Ia(yp));b|=Oe}return Mn(u,b,i,f,L)});function Cp(i,u,f){u=f?n:u;var b=Mn(i,be,n,n,n,n,n,u);return b.placeholder=Cp.placeholder,b}function wp(i,u,f){u=f?n:u;var b=Mn(i,ve,n,n,n,n,n,u);return b.placeholder=wp.placeholder,b}function xp(i,u,f){var b,L,_,P,N,Z,ie=0,oe=!1,de=!1,Me=!0;if(typeof i!="function")throw new on(h);u=ui(u)||0,er(f)&&(oe=!!f.leading,de="maxWait"in f,_=de?Gt(ui(f.maxWait)||0,u):_,Me="trailing"in f?!!f.trailing:Me);function Fe(hr){var Oi=b,qo=L;return b=L=n,ie=hr,P=i.apply(qo,Oi),P}function Xe(hr){return ie=hr,N=Nt(mt,u),oe?Fe(hr):P}function ht(hr){var Oi=hr-Z,qo=hr-ie,Bp=u-Oi;return de?Tr(Bp,_-qo):Bp}function Je(hr){var Oi=hr-Z,qo=hr-ie;return Z===n||Oi>=u||Oi<0||de&&qo>=_}function mt(){var hr=v0();if(Je(hr))return wt(hr);N=Nt(mt,ht(hr))}function wt(hr){return N=n,Me&&b?Fe(hr):(b=L=n,P)}function Gn(){N!==n&&_a(N),ie=0,b=Z=L=N=n}function bn(){return N===n?P:wt(v0())}function qn(){var hr=v0(),Oi=Je(hr);if(b=arguments,L=this,Z=hr,Oi){if(N===n)return Xe(Z);if(de)return _a(N),N=Nt(mt,u),Fe(Z)}return N===n&&(N=Nt(mt,u)),P}return qn.cancel=Gn,qn.flush=bn,qn}var T9=dt(function(i,u){return Hc(i,1,u)}),O9=dt(function(i,u,f){return Hc(i,ui(u)||0,f)});function k9(i){return Mn(i,Ye)}function b0(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new on(h);var f=function(){var b=arguments,L=u?u.apply(this,b):b[0],_=f.cache;if(_.has(L))return _.get(L);var P=i.apply(this,b);return f.cache=_.set(L,P)||_,P};return f.cache=new(b0.Cache||Qt),f}b0.Cache=Qt;function m0(i){if(typeof i!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function E9(i){return mp(2,i)}var I9=pf(function(i,u){u=u.length==1&&ct(u[0])?At(u[0],Kr(Ze())):At(Ir(u,1),Kr(Ze()));var f=u.length;return dt(function(b){for(var L=-1,_=Tr(b.length,f);++L<_;)b[L]=u[L].call(this,b[L]);return fn(i,this,b)})}),wf=dt(function(i,u){var f=Ki(u,Ia(wf));return Mn(i,Oe,n,u,f)}),zp=dt(function(i,u){var f=Ki(u,Ia(zp));return Mn(i,$e,n,u,f)}),A9=Mi(function(i,u){return Mn(i,je,n,n,n,u)});function $9(i,u){if(typeof i!="function")throw new on(h);return u=u===n?u:ft(u),dt(i,u)}function P9(i,u){if(typeof i!="function")throw new on(h);return u=u==null?0:Gt(ft(u),0),dt(function(f){var b=f[u],L=po(f,0,u);return b&&qi(L,b),fn(i,this,L)})}function D9(i,u,f){var b=!0,L=!0;if(typeof i!="function")throw new on(h);return er(f)&&(b="leading"in f?!!f.leading:b,L="trailing"in f?!!f.trailing:L),xp(i,u,{leading:b,maxWait:u,trailing:L})}function N9(i){return bp(i,1)}function R9(i,u){return wf(Wl(u),i)}function H9(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function F9(i){return Xr(i,R)}function B9(i,u){return u=typeof u=="function"?u:n,Xr(i,R,u)}function W9(i){return Xr(i,D|R)}function V9(i,u){return u=typeof u=="function"?u:n,Xr(i,D|R,u)}function Z9(i,u){return u==null||Rc(i,u,Zr(u))}function Ti(i,u){return i===u||i!==i&&u!==u}var U9=Dt($l),G9=Dt(function(i,u){return i>=u}),ks=wa(function(){return arguments}())?wa:function(i){return nr(i)&&ot.call(i,"callee")&&!zl.call(i,"callee")},ct=q.isArray,q9=fc?Kr(fc):uf;function _n(i){return i!=null&&y0(i.length)&&!Uo(i)}function fr(i){return nr(i)&&_n(i)}function j9(i){return i===!0||i===!1||nr(i)&&mr(i)==Ge}var Da=cs||If,K9=hc?Kr(hc):xa;function Y9(i){return nr(i)&&i.nodeType===1&&!gu(i)}function X9(i){if(i==null)return!0;if(_n(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Da(i)||Jl(i)||ks(i)))return!i.length;var u=Hr(i);if(u==tr||u==it)return!i.size;if(K(i))return!Nl(i).length;for(var f in i)if(ot.call(i,f))return!1;return!0}function J9(i,u){return za(i,u)}function Q9(i,u,f){f=typeof f=="function"?f:n;var b=f?f(i,u):n;return b===n?za(i,u,n,f):!!b}function xf(i){if(!nr(i))return!1;var u=mr(i);return u==Ue||u==lt||typeof i.message=="string"&&typeof i.name=="string"&&!gu(i)}function e8(i){return typeof i=="number"&&Oc(i)}function Uo(i){if(!er(i))return!1;var u=mr(i);return u==Zt||u==Ur||u==Ne||u==en}function Lp(i){return typeof i=="number"&&i==ft(i)}function y0(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ae}function er(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function nr(i){return i!=null&&typeof i=="object"}var Sp=pc?Kr(pc):Vc;function t8(i,u){return i===u||Ho(i,u,Aa(u))}function r8(i,u,f){return f=typeof f=="function"?f:n,Ho(i,u,Aa(u),f)}function n8(i){return Mp(i)&&i!=+i}function i8(i){if(H(i))throw new nt(g);return La(i)}function o8(i){return i===null}function a8(i){return i==null}function Mp(i){return typeof i=="number"||nr(i)&&mr(i)==Qe}function gu(i){if(!nr(i)||mr(i)!=Et)return!1;var u=fa(i);if(u===null)return!0;var f=ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ri.call(f)==Gd}var zf=gc?Kr(gc):ys;function s8(i){return Lp(i)&&i>=-Ae&&i<=Ae}var _p=T1?Kr(T1):Cs;function C0(i){return typeof i=="string"||!ct(i)&&nr(i)&&mr(i)==U}function Un(i){return typeof i=="symbol"||nr(i)&&mr(i)==se}var Jl=O1?Kr(O1):Zc;function l8(i){return i===n}function u8(i){return nr(i)&&Hr(i)==tt}function c8(i){return nr(i)&&mr(i)==sr}var d8=Dt(fo),f8=Dt(function(i,u){return i<=u});function Tp(i){if(!i)return[];if(_n(i))return C0(i)?xn(i):yr(i);if(eo&&i[eo])return Cc(i[eo]());var u=Hr(i),f=u==tr?ml:u==it?yl:Ql;return f(i)}function Go(i){if(!i)return i===0?i:0;if(i=ui(i),i===ue||i===-ue){var u=i<0?-1:1;return u*et}return i===i?i:0}function ft(i){var u=Go(i),f=u%1;return u===u?f?u-f:u:0}function Op(i){return i?No(ft(i),0,yt):0}function ui(i){if(typeof i=="number")return i;if(Un(i))return pt;if(er(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=er(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=as(i);var f=Nn.test(i);return f||cn.test(i)?Rd(i.slice(2),f?2:8):oa.test(i)?pt:+i}function kp(i){return an(i,Tn(i))}function h8(i){return i?No(ft(i),-Ae,Ae):i===0?i:0}function Rt(i){return i==null?"":Rr(i)}var p8=Ta(function(i,u){if(K(u)||_n(u)){an(u,Zr(u),i);return}for(var f in u)ot.call(u,f)&&vs(i,f,u[f])}),Ep=Ta(function(i,u){an(u,Tn(u),i)}),w0=Ta(function(i,u,f,b){an(u,Tn(u),i,b)}),g8=Ta(function(i,u,f,b){an(u,Zr(u),i,b)}),v8=Mi(K1);function b8(i,u){var f=ii(i);return u==null?f:j1(f,u)}var m8=dt(function(i,u){i=Ct(i);var f=-1,b=u.length,L=b>2?u[2]:n;for(L&&y(u[0],u[1],L)&&(b=1);++f<b;)for(var _=u[f],P=Tn(_),N=-1,Z=P.length;++N<Z;){var ie=P[N],oe=i[ie];(oe===n||Ti(oe,Ji[ie])&&!ot.call(i,ie))&&(i[ie]=_[ie])}return i}),y8=dt(function(i){return i.push(n,du),fn(Ip,n,i)});function C8(i,u){return ua(i,Ze(u,3),gn)}function w8(i,u){return ua(i,Ze(u,3),Al)}function x8(i,u){return i==null?i:Il(i,Ze(u,3),Tn)}function z8(i,u){return i==null?i:br(i,Ze(u,3),Tn)}function L8(i,u){return i&&gn(i,Ze(u,3))}function S8(i,u){return i&&Al(i,Ze(u,3))}function M8(i){return i==null?[]:ms(i,Zr(i))}function _8(i){return i==null?[]:ms(i,Tn(i))}function Lf(i,u,f){var b=i==null?n:uo(i,u);return b===n?f:b}function T8(i,u){return i!=null&&r(i,u,Fc)}function Sf(i,u){return i!=null&&r(i,u,Bc)}var O8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ko.call(u)),i[u]=f},_f(On)),k8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ko.call(u)),ot.call(i,u)?i[u].push(f):i[u]=[f]},Ze),E8=dt(Ca);function Zr(i){return _n(i)?G1(i):Nl(i)}function Tn(i){return _n(i)?G1(i,!0):co(i)}function I8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,u(b,L,_),b)}),f}function A8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,L,u(b,L,_))}),f}var $8=Ta(function(i,u,f){Rl(i,u,f)}),Ip=Ta(function(i,u,f,b){Rl(i,u,f,b)}),P8=Mi(function(i,u){var f={};if(i==null)return f;var b=!1;u=At(u,function(_){return _=Zn(_,i),b||(b=_.length>1),_}),an(i,jl(i),f),b&&(f=Xr(f,D|B|R,c0));for(var L=u.length;L--;)zs(f,u[L]);return f});function D8(i,u){return Ap(i,m0(Ze(u)))}var N8=Mi(function(i,u){return i==null?{}:jc(i,u)});function Ap(i,u){if(i==null)return{};var f=At(jl(i),function(b){return[b]});return u=Ze(u),Kc(i,f,function(b,L){return u(b,L[0])})}function R8(i,u,f){u=Zn(u,i);var b=-1,L=u.length;for(L||(L=1,i=n);++b<L;){var _=i==null?n:i[$t(u[b])];_===n&&(b=L,_=f),i=Uo(_)?_.call(i):_}return i}function H8(i,u,f){return i==null?i:zi(i,u,f)}function F8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:zi(i,u,f,b)}var $p=Sn(Zr),Pp=Sn(Tn);function B8(i,u,f){var b=ct(i),L=b||Da(i)||Jl(i);if(u=Ze(u,4),f==null){var _=i&&i.constructor;L?f=b?new _:[]:er(i)?f=Uo(_)?ii(fa(i)):{}:f={}}return(L?wn:gn)(i,function(P,N,Z){return u(f,P,N,Z)}),f}function W8(i,u){return i==null?!0:zs(i,u)}function V8(i,u,f){return i==null?i:Bl(i,u,Wl(f))}function Z8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Bl(i,u,Wl(f),b)}function Ql(i){return i==null?[]:vl(i,Zr(i))}function U8(i){return i==null?[]:vl(i,Tn(i))}function G8(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=ui(f),f=f===f?f:0),u!==n&&(u=ui(u),u=u===u?u:0),No(ui(i),u,f)}function q8(i,u,f){return u=Go(u),f===n?(f=u,u=0):f=Go(f),i=ui(i),ya(i,u,f)}function j8(i,u,f){if(f&&typeof f!="boolean"&&y(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Go(i),u===n?(u=i,i=0):u=Go(u)),i>u){var b=i;i=u,u=b}if(f||i%1||u%1){var L=no();return Tr(i+L*(u-i+Nd("1e-"+((L+"").length-1))),u)}return Hl(i,u)}var K8=Oa(function(i,u,f){return u=u.toLowerCase(),i+(f?Dp(u):u)});function Dp(i){return Mf(Rt(i).toLowerCase())}function Np(i){return i=Rt(i),i&&i.replace(Ja,mc).replace(sc,"")}function Y8(i,u,f){i=Rt(i),u=Rr(u);var b=i.length;f=f===n?b:No(ft(f),0,b);var L=f;return f-=u.length,f>=0&&i.slice(f,L)==u}function X8(i){return i=Rt(i),i&&ln.test(i)?i.replace(vr,Ud):i}function J8(i){return i=Rt(i),i&&Xn.test(i)?i.replace(xo,"\\$&"):i}var Q8=Oa(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),eg=Oa(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),tg=a0("toLowerCase");function rg(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;if(!u||b>=u)return i;var L=(u-b)/2;return Gl(ga(L),f)+i+Gl(pa(L),f)}function ng(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?i+Gl(u-b,f):i}function ig(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?Gl(u-b,f)+i:i}function og(i,u,f){return f||u==null?u=0:u&&(u=+u),ds(Rt(i).replace(zo,""),u||0)}function ag(i,u,f){return(f?y(i,u,f):u===n)?u=1:u=ft(u),tu(Rt(i),u)}function sg(){var i=arguments,u=Rt(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var lg=Oa(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function ug(i,u,f){return f&&typeof f!="number"&&y(i,u,f)&&(u=f=n),f=f===n?yt:f>>>0,f?(i=Rt(i),i&&(typeof u=="string"||u!=null&&!zf(u))&&(u=Rr(u),!u&&Bn(i))?po(xn(i),0,f):i.split(u,f)):[]}var cg=Oa(function(i,u,f){return i+(f?" ":"")+Mf(u)});function dg(i,u,f){return i=Rt(i),f=f==null?0:No(ft(f),0,i.length),u=Rr(u),i.slice(f,f+u.length)==u}function fg(i,u,f){var b=M.templateSettings;f&&y(i,u,f)&&(u=n),i=Rt(i),u=w0({},u,b,ql);var L=w0({},u.imports,b.imports,ql),_=Zr(L),P=vl(L,_),N,Z,ie=0,oe=u.interpolate||Bt,de="__p += '",Me=Xi((u.escape||Bt).source+"|"+oe.source+"|"+(oe===ja?mi:Bt).source+"|"+(u.evaluate||Bt).source+"|$","g"),Fe="//# sourceURL="+(ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_1+"]")+`
|
|
1669
|
-
`;i.replace(Me,function(Je,mt,wt,Gn,bn,qn){return wt||(wt=Gn),de+=i.slice(ie,qn).replace(
|
|
1668
|
+
`)}function v(i){return ct(i)||ks(i)||!!(Io&&i&&i[Io])}function m(i,u){var f=typeof i;return u=u==null?Ae:u,!!u&&(f=="number"||f!="symbol"&&Ja.test(i))&&i>-1&&i%1==0&&i<u}function y(i,u,f){if(!er(f))return!1;var b=typeof u;return(b=="number"?_n(f)&&m(u,f.length):b=="string"&&u in f)?Ti(f[u],i):!1}function C(i,u){if(ct(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Un(i)?!0:qr.test(i)||!Ya.test(i)||u!=null&&i in Ct(u)}function T(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function I(i){var u=Es(i),f=M[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(i===f)return!0;var b=St(f);return!!b&&i===b[0]}function V(i){return!!wi&&wi in i}var H=ti?Uo:If;function K(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||Ji;return i===f}function ne(i){return i===i&&!er(i)}function he(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in Ct(f))}}function me(i){var u=b0(i,function(b){return f.size===S&&f.clear(),b}),f=u.cache;return u}function xe(i,u){var f=i[1],b=u[1],L=f|b,_=L<(ge|Te|De),P=b==De&&f==be||b==De&&f==je&&i[7].length<=u[8]||b==(De|je)&&u[7].length<=u[8]&&f==be;if(!(_||P))return i;b&ge&&(i[2]=u[2],L|=f&ge?0:Ie);var N=u[3];if(N){var Z=i[3];i[3]=Z?t0(Z,N,u[4]):N,i[4]=Z?Ki(i[3],k):u[4]}return N=u[5],N&&(Z=i[5],i[5]=Z?Zl(Z,N,u[6]):N,i[6]=Z?Ki(i[5],k):u[6]),N=u[7],N&&(i[7]=N),b&De&&(i[8]=i[8]==null?u[8]:Tr(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=L,i}function ye(i){var u=[];if(i!=null)for(var f in Ct(i))u.push(f);return u}function Se(i){return Eo.call(i)}function He(i,u,f){return u=Gt(u===n?i.length-1:u,0),function(){for(var b=arguments,L=-1,_=Gt(b.length-u,0),P=q(_);++L<_;)P[L]=b[u+L];L=-1;for(var N=q(u+1);++L<u;)N[L]=b[L];return N[u]=f(P),fn(i,this,N)}}function Pe(i,u){return u.length<2?i:uo(i,Ln(u,0,-1))}function ut(i,u){for(var f=i.length,b=Tr(u.length,f),L=yr(i);b--;){var _=u[b];i[b]=m(_,f)?L[_]:n}return i}function It(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var rr=Xt(xs),Nt=Kd||function(i,u){return Ut.setTimeout(i,u)},Fr=Xt(zs);function Br(i,u,f){var b=u+"";return Fr(i,p(b,jt(e(b),f)))}function Xt(i){var u=0,f=0;return function(){var b=$o(),L=$-(b-f);if(f=b,L>0){if(++u>=Q)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Cr(i,u){var f=-1,b=i.length,L=b-1;for(u=u===n?b:u;++f<u;){var _=Hl(f,L),P=i[_];i[_]=i[f],i[f]=P}return i.length=u,i}var cr=me(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(rl,function(f,b,L,_){u.push(L?_.replace(ol,"$1"):b||f)}),u});function $t(i){if(typeof i=="string"||Un(i))return i;var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function Ft(i){if(i!=null){try{return ri.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,u){return wn(xt,function(f){var b="_."+f[0];u&f[1]&&!as(i,b)&&i.push(b)}),i.sort()}function Vr(i){if(i instanceof vt)return i.clone();var u=new Yr(i.__wrapped__,i.__chain__);return u.__actions__=yr(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function $a(i,u,f){(f?y(i,u,f):u===n)?u=1:u=Gt(ft(u),0);var b=i==null?0:i.length;if(!b||u<1)return[];for(var L=0,_=0,P=q(pa(b/u));L<b;)P[_++]=Ln(i,L,L+=u);return P}function go(i){for(var u=-1,f=i==null?0:i.length,b=0,L=[];++u<f;){var _=i[u];_&&(L[b++]=_)}return L}function Ar(){var i=arguments.length;if(!i)return[];for(var u=q(i-1),f=arguments[0],b=i;b--;)u[b-1]=arguments[b];return qi(ct(f)?yr(f):[f],Ir(u,1))}var si=dt(function(i,u){return fr(i)?ma(i,Ir(u,1,fr,!0)):[]}),dr=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),Ze(f,2)):[]}),pu=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),n,f):[]});function _i(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),Ln(i,u<0?0:u,b)):[]}function Wo(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,0,u<0?0:u)):[]}function Zo(i,u){return i&&i.length?Ma(i,Ze(u,3),!0,!0):[]}function Wr(i,u){return i&&i.length?Ma(i,Ze(u,3),!0):[]}function Pa(i,u,f,b){var L=i==null?0:i.length;return L?(f&&typeof f!="number"&&y(i,u,f)&&(f=0,b=L),Y1(i,u,f,b)):[]}function Xl(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),pl(i,Ze(u,3),L)}function cp(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b-1;return f!==n&&(L=ft(f),L=f<0?Gt(b+L,0):Tr(L,b-1)),pl(i,Ze(u,3),L,!0)}function dp(i){var u=i==null?0:i.length;return u?Ir(i,1):[]}function a7(i){var u=i==null?0:i.length;return u?Ir(i,ue):[]}function s7(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ft(u),Ir(i,u)):[]}function l7(i){for(var u=-1,f=i==null?0:i.length,b={};++u<f;){var L=i[u];b[L[0]]=L[1]}return b}function fp(i){return i&&i.length?i[0]:n}function u7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),_o(i,u,L)}function c7(i){var u=i==null?0:i.length;return u?Ln(i,0,-1):[]}var d7=dt(function(i){var u=At(i,ou);return u.length&&u[0]===i[0]?Pl(u):[]}),f7=dt(function(i){var u=li(i),f=At(i,ou);return u===li(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Pl(f,Ze(u,2)):[]}),h7=dt(function(i){var u=li(i),f=At(i,ou);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Pl(f,n,u):[]});function p7(i,u){return i==null?"":Ll.call(i,u)}function li(i){var u=i==null?0:i.length;return u?i[u-1]:n}function g7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b;return f!==n&&(L=ft(f),L=L<0?Gt(b+L,0):Tr(L,b-1)),u===u?ls(i,u,L):pl(i,gl,L,!0)}function v7(i,u){return i&&i.length?qc(i,ft(u)):n}var b7=dt(hp);function hp(i,u){return i&&i.length&&u&&u.length?Q1(i,u):i}function m7(i,u,f){return i&&i.length&&u&&u.length?Q1(i,u,Ze(f,2)):i}function y7(i,u,f){return i&&i.length&&u&&u.length?Q1(i,u,n,f):i}var C7=Mi(function(i,u){var f=i==null?0:i.length,b=K1(i,u);return eu(i,At(u,function(L){return m(L,f)?+L:L}).sort(lu)),b});function w7(i,u){var f=[];if(!(i&&i.length))return f;var b=-1,L=[],_=i.length;for(u=Ze(u,3);++b<_;){var P=i[b];u(P,b,i)&&(f.push(P),L.push(b))}return eu(i,L),f}function mf(i){return i==null?i:hs.call(i)}function x7(i,u,f){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&y(i,u,f)?(u=0,f=b):(u=u==null?0:ft(u),f=f===n?b:ft(f)),Ln(i,u,f)):[]}function z7(i,u){return Si(i,u)}function L7(i,u,f){return Fl(i,u,Ze(f,2))}function S7(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u);if(b<f&&Ti(i[b],u))return b}return-1}function M7(i,u){return Si(i,u,!0)}function _7(i,u,f){return Fl(i,u,Ze(f,2),!0)}function T7(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u,!0)-1;if(Ti(i[b],u))return b}return-1}function O7(i){return i&&i.length?ru(i):[]}function E7(i,u){return i&&i.length?ru(i,Ze(u,2)):[]}function k7(i){var u=i==null?0:i.length;return u?Ln(i,1,u):[]}function I7(i,u,f){return i&&i.length?(u=f||u===n?1:ft(u),Ln(i,0,u<0?0:u)):[]}function A7(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,u<0?0:u,b)):[]}function $7(i,u){return i&&i.length?Ma(i,Ze(u,3),!1,!0):[]}function P7(i,u){return i&&i.length?Ma(i,Ze(u,3)):[]}var D7=dt(function(i){return vn(Ir(i,1,fr,!0))}),N7=dt(function(i){var u=li(i);return fr(u)&&(u=n),vn(Ir(i,1,fr,!0),Ze(u,2))}),R7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,vn(Ir(i,1,fr,!0),n,u)});function H7(i){return i&&i.length?vn(i):[]}function F7(i,u){return i&&i.length?vn(i,Ze(u,2)):[]}function B7(i,u){return u=typeof u=="function"?u:n,i&&i.length?vn(i,n,u):[]}function yf(i){if(!(i&&i.length))return[];var u=0;return i=Gi(i,function(f){if(fr(f))return u=Gt(f.length,u),!0}),To(u,function(f){return At(i,A1(f))})}function pp(i,u){if(!(i&&i.length))return[];var f=yf(i);return u==null?f:At(f,function(b){return fn(u,n,b)})}var V7=dt(function(i,u){return fr(i)?ma(i,u):[]}),W7=dt(function(i){return Fo(Gi(i,fr))}),Z7=dt(function(i){var u=li(i);return fr(u)&&(u=n),Fo(Gi(i,fr),Ze(u,2))}),U7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,Fo(Gi(i,fr),n,u)}),G7=dt(yf);function q7(i,u){return iu(i||[],u||[],bs)}function j7(i,u){return iu(i||[],u||[],zi)}var K7=dt(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,pp(i,f)});function gp(i){var u=M(i);return u.__chain__=!0,u}function Y7(i,u){return u(i),i}function p0(i,u){return u(i)}var X7=Mi(function(i){var u=i.length,f=u?i[0]:0,b=this.__wrapped__,L=function(_){return K1(_,i)};return u>1||this.__actions__.length||!(b instanceof vt)||!m(f)?this.thru(L):(b=b.slice(f,+f+(u?1:0)),b.__actions__.push({func:p0,args:[L],thisArg:n}),new Yr(b,this.__chain__).thru(function(_){return u&&!_.length&&_.push(n),_}))});function J7(){return gp(this)}function Q7(){return new Yr(this.value(),this.__chain__)}function e9(){this.__values__===n&&(this.__values__=Op(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function t9(){return this}function r9(i){for(var u,f=this;f instanceof Ml;){var b=Vr(f);b.__index__=0,b.__values__=n,u?L.__wrapped__=b:u=b;var L=b;f=f.__wrapped__}return L.__wrapped__=i,u}function n9(){var i=this.__wrapped__;if(i instanceof vt){var u=i;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:p0,args:[mf],thisArg:n}),new Yr(u,this.__chain__)}return this.thru(mf)}function i9(){return Xc(this.__wrapped__,this.__actions__)}var o9=Ul(function(i,u,f){ot.call(i,f)?++i[f]:ai(i,f,1)});function a9(i,u,f){var b=ct(i)?E1:kl;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}function s9(i,u){var f=ct(i)?Gi:X1;return f(i,Ze(u,3))}var l9=cu(Xl),u9=cu(cp);function c9(i,u){return Ir(g0(i,u),1)}function d9(i,u){return Ir(g0(i,u),ue)}function f9(i,u,f){return f=f===n?1:ft(f),Ir(g0(i,u),f)}function vp(i,u){var f=ct(i)?wn:pn;return f(i,Ze(u,3))}function bp(i,u){var f=ct(i)?Fd:El;return f(i,Ze(u,3))}var h9=Ul(function(i,u,f){ot.call(i,f)?i[f].push(u):ai(i,f,[u])});function p9(i,u,f,b){i=_n(i)?i:Ql(i),f=f&&!b?ft(f):0;var L=i.length;return f<0&&(f=Gt(L+f,0)),C0(i)?f<=L&&i.indexOf(u,f)>-1:!!L&&_o(i,u,f)>-1}var g9=dt(function(i,u,f){var b=-1,L=typeof u=="function",_=_n(i)?q(i.length):[];return pn(i,function(P){_[++b]=L?fn(u,P,f):Ca(P,u,f)}),_}),v9=Ul(function(i,u,f){ai(i,f,u)});function g0(i,u){var f=ct(i)?At:Sa;return f(i,Ze(u,3))}function b9(i,u,f,b){return i==null?[]:(ct(u)||(u=u==null?[]:[u]),f=b?n:f,ct(f)||(f=f==null?[]:[f]),Nr(i,u,f))}var m9=Ul(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function y9(i,u,f){var b=ct(i)?k1:P1,L=arguments.length<3;return b(i,Ze(u,4),f,L,pn)}function C9(i,u,f){var b=ct(i)?Bd:P1,L=arguments.length<3;return b(i,Ze(u,4),f,L,El)}function w9(i,u){var f=ct(i)?Gi:X1;return f(i,m0(Ze(u,3)))}function x9(i){var u=ct(i)?Tl:ff;return u(i)}function z9(i,u,f){(f?y(i,u,f):u===n)?u=1:u=ft(u);var b=ct(i)?lo:ho;return b(i,u)}function L9(i){var u=ct(i)?Dc:Li;return u(i)}function S9(i){if(i==null)return 0;if(_n(i))return C0(i)?Oo(i):i.length;var u=Hr(i);return u==tr||u==it?i.size:Nl(i).length}function M9(i,u,f){var b=ct(i)?Mo:hf;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}var _9=dt(function(i,u){if(i==null)return[];var f=u.length;return f>1&&y(i,u[0],u[1])?u=[]:f>2&&y(u[0],u[1],u[2])&&(u=[u[0]]),Nr(i,Ir(u,1),[])}),v0=jd||function(){return Ut.Date.now()};function T9(i,u){if(typeof u!="function")throw new on(h);return i=ft(i),function(){if(--i<1)return u.apply(this,arguments)}}function mp(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Mn(i,De,n,n,n,n,u)}function yp(i,u){var f;if(typeof u!="function")throw new on(h);return i=ft(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var Cf=dt(function(i,u,f){var b=ge;if(f.length){var L=Ki(f,Ia(Cf));b|=Oe}return Mn(i,b,u,f,L)}),Cp=dt(function(i,u,f){var b=ge|Te;if(f.length){var L=Ki(f,Ia(Cp));b|=Oe}return Mn(u,b,i,f,L)});function wp(i,u,f){u=f?n:u;var b=Mn(i,be,n,n,n,n,n,u);return b.placeholder=wp.placeholder,b}function xp(i,u,f){u=f?n:u;var b=Mn(i,ve,n,n,n,n,n,u);return b.placeholder=xp.placeholder,b}function zp(i,u,f){var b,L,_,P,N,Z,ie=0,oe=!1,de=!1,Me=!0;if(typeof i!="function")throw new on(h);u=ui(u)||0,er(f)&&(oe=!!f.leading,de="maxWait"in f,_=de?Gt(ui(f.maxWait)||0,u):_,Me="trailing"in f?!!f.trailing:Me);function Fe(hr){var Oi=b,qo=L;return b=L=n,ie=hr,P=i.apply(qo,Oi),P}function Xe(hr){return ie=hr,N=Nt(mt,u),oe?Fe(hr):P}function ht(hr){var Oi=hr-Z,qo=hr-ie,Vp=u-Oi;return de?Tr(Vp,_-qo):Vp}function Je(hr){var Oi=hr-Z,qo=hr-ie;return Z===n||Oi>=u||Oi<0||de&&qo>=_}function mt(){var hr=v0();if(Je(hr))return wt(hr);N=Nt(mt,ht(hr))}function wt(hr){return N=n,Me&&b?Fe(hr):(b=L=n,P)}function Gn(){N!==n&&_a(N),ie=0,b=Z=L=N=n}function bn(){return N===n?P:wt(v0())}function qn(){var hr=v0(),Oi=Je(hr);if(b=arguments,L=this,Z=hr,Oi){if(N===n)return Xe(Z);if(de)return _a(N),N=Nt(mt,u),Fe(Z)}return N===n&&(N=Nt(mt,u)),P}return qn.cancel=Gn,qn.flush=bn,qn}var O9=dt(function(i,u){return Hc(i,1,u)}),E9=dt(function(i,u,f){return Hc(i,ui(u)||0,f)});function k9(i){return Mn(i,Ye)}function b0(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new on(h);var f=function(){var b=arguments,L=u?u.apply(this,b):b[0],_=f.cache;if(_.has(L))return _.get(L);var P=i.apply(this,b);return f.cache=_.set(L,P)||_,P};return f.cache=new(b0.Cache||Qt),f}b0.Cache=Qt;function m0(i){if(typeof i!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function I9(i){return yp(2,i)}var A9=pf(function(i,u){u=u.length==1&&ct(u[0])?At(u[0],Kr(Ze())):At(Ir(u,1),Kr(Ze()));var f=u.length;return dt(function(b){for(var L=-1,_=Tr(b.length,f);++L<_;)b[L]=u[L].call(this,b[L]);return fn(i,this,b)})}),wf=dt(function(i,u){var f=Ki(u,Ia(wf));return Mn(i,Oe,n,u,f)}),Lp=dt(function(i,u){var f=Ki(u,Ia(Lp));return Mn(i,$e,n,u,f)}),$9=Mi(function(i,u){return Mn(i,je,n,n,n,u)});function P9(i,u){if(typeof i!="function")throw new on(h);return u=u===n?u:ft(u),dt(i,u)}function D9(i,u){if(typeof i!="function")throw new on(h);return u=u==null?0:Gt(ft(u),0),dt(function(f){var b=f[u],L=po(f,0,u);return b&&qi(L,b),fn(i,this,L)})}function N9(i,u,f){var b=!0,L=!0;if(typeof i!="function")throw new on(h);return er(f)&&(b="leading"in f?!!f.leading:b,L="trailing"in f?!!f.trailing:L),zp(i,u,{leading:b,maxWait:u,trailing:L})}function R9(i){return mp(i,1)}function H9(i,u){return wf(Vl(u),i)}function F9(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function B9(i){return Xr(i,R)}function V9(i,u){return u=typeof u=="function"?u:n,Xr(i,R,u)}function W9(i){return Xr(i,D|R)}function Z9(i,u){return u=typeof u=="function"?u:n,Xr(i,D|R,u)}function U9(i,u){return u==null||Rc(i,u,Zr(u))}function Ti(i,u){return i===u||i!==i&&u!==u}var G9=Dt($l),q9=Dt(function(i,u){return i>=u}),ks=wa(function(){return arguments}())?wa:function(i){return nr(i)&&ot.call(i,"callee")&&!zl.call(i,"callee")},ct=q.isArray,j9=fc?Kr(fc):uf;function _n(i){return i!=null&&y0(i.length)&&!Uo(i)}function fr(i){return nr(i)&&_n(i)}function K9(i){return i===!0||i===!1||nr(i)&&mr(i)==Ge}var Da=ds||If,Y9=hc?Kr(hc):xa;function X9(i){return nr(i)&&i.nodeType===1&&!gu(i)}function J9(i){if(i==null)return!0;if(_n(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Da(i)||Jl(i)||ks(i)))return!i.length;var u=Hr(i);if(u==tr||u==it)return!i.size;if(K(i))return!Nl(i).length;for(var f in i)if(ot.call(i,f))return!1;return!0}function Q9(i,u){return za(i,u)}function e8(i,u,f){f=typeof f=="function"?f:n;var b=f?f(i,u):n;return b===n?za(i,u,n,f):!!b}function xf(i){if(!nr(i))return!1;var u=mr(i);return u==Ue||u==lt||typeof i.message=="string"&&typeof i.name=="string"&&!gu(i)}function t8(i){return typeof i=="number"&&Oc(i)}function Uo(i){if(!er(i))return!1;var u=mr(i);return u==Zt||u==Ur||u==Ne||u==en}function Sp(i){return typeof i=="number"&&i==ft(i)}function y0(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ae}function er(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function nr(i){return i!=null&&typeof i=="object"}var Mp=pc?Kr(pc):Wc;function r8(i,u){return i===u||Ho(i,u,Aa(u))}function n8(i,u,f){return f=typeof f=="function"?f:n,Ho(i,u,Aa(u),f)}function i8(i){return _p(i)&&i!=+i}function o8(i){if(H(i))throw new nt(g);return La(i)}function a8(i){return i===null}function s8(i){return i==null}function _p(i){return typeof i=="number"||nr(i)&&mr(i)==Qe}function gu(i){if(!nr(i)||mr(i)!=kt)return!1;var u=fa(i);if(u===null)return!0;var f=ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ri.call(f)==Gd}var zf=gc?Kr(gc):Cs;function l8(i){return Sp(i)&&i>=-Ae&&i<=Ae}var Tp=T1?Kr(T1):ws;function C0(i){return typeof i=="string"||!ct(i)&&nr(i)&&mr(i)==U}function Un(i){return typeof i=="symbol"||nr(i)&&mr(i)==se}var Jl=O1?Kr(O1):Zc;function u8(i){return i===n}function c8(i){return nr(i)&&Hr(i)==tt}function d8(i){return nr(i)&&mr(i)==sr}var f8=Dt(fo),h8=Dt(function(i,u){return i<=u});function Op(i){if(!i)return[];if(_n(i))return C0(i)?xn(i):yr(i);if(eo&&i[eo])return Cc(i[eo]());var u=Hr(i),f=u==tr?ml:u==it?yl:Ql;return f(i)}function Go(i){if(!i)return i===0?i:0;if(i=ui(i),i===ue||i===-ue){var u=i<0?-1:1;return u*et}return i===i?i:0}function ft(i){var u=Go(i),f=u%1;return u===u?f?u-f:u:0}function Ep(i){return i?No(ft(i),0,yt):0}function ui(i){if(typeof i=="number")return i;if(Un(i))return pt;if(er(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=er(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=ss(i);var f=Nn.test(i);return f||cn.test(i)?Rd(i.slice(2),f?2:8):oa.test(i)?pt:+i}function kp(i){return an(i,Tn(i))}function p8(i){return i?No(ft(i),-Ae,Ae):i===0?i:0}function Rt(i){return i==null?"":Rr(i)}var g8=Ta(function(i,u){if(K(u)||_n(u)){an(u,Zr(u),i);return}for(var f in u)ot.call(u,f)&&bs(i,f,u[f])}),Ip=Ta(function(i,u){an(u,Tn(u),i)}),w0=Ta(function(i,u,f,b){an(u,Tn(u),i,b)}),v8=Ta(function(i,u,f,b){an(u,Zr(u),i,b)}),b8=Mi(K1);function m8(i,u){var f=ii(i);return u==null?f:j1(f,u)}var y8=dt(function(i,u){i=Ct(i);var f=-1,b=u.length,L=b>2?u[2]:n;for(L&&y(u[0],u[1],L)&&(b=1);++f<b;)for(var _=u[f],P=Tn(_),N=-1,Z=P.length;++N<Z;){var ie=P[N],oe=i[ie];(oe===n||Ti(oe,Ji[ie])&&!ot.call(i,ie))&&(i[ie]=_[ie])}return i}),C8=dt(function(i){return i.push(n,du),fn(Ap,n,i)});function w8(i,u){return ua(i,Ze(u,3),gn)}function x8(i,u){return ua(i,Ze(u,3),Al)}function z8(i,u){return i==null?i:Il(i,Ze(u,3),Tn)}function L8(i,u){return i==null?i:br(i,Ze(u,3),Tn)}function S8(i,u){return i&&gn(i,Ze(u,3))}function M8(i,u){return i&&Al(i,Ze(u,3))}function _8(i){return i==null?[]:ys(i,Zr(i))}function T8(i){return i==null?[]:ys(i,Tn(i))}function Lf(i,u,f){var b=i==null?n:uo(i,u);return b===n?f:b}function O8(i,u){return i!=null&&r(i,u,Fc)}function Sf(i,u){return i!=null&&r(i,u,Bc)}var E8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Eo.call(u)),i[u]=f},_f(On)),k8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Eo.call(u)),ot.call(i,u)?i[u].push(f):i[u]=[f]},Ze),I8=dt(Ca);function Zr(i){return _n(i)?G1(i):Nl(i)}function Tn(i){return _n(i)?G1(i,!0):co(i)}function A8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,u(b,L,_),b)}),f}function $8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,L,u(b,L,_))}),f}var P8=Ta(function(i,u,f){Rl(i,u,f)}),Ap=Ta(function(i,u,f,b){Rl(i,u,f,b)}),D8=Mi(function(i,u){var f={};if(i==null)return f;var b=!1;u=At(u,function(_){return _=Zn(_,i),b||(b=_.length>1),_}),an(i,jl(i),f),b&&(f=Xr(f,D|B|R,c0));for(var L=u.length;L--;)Ls(f,u[L]);return f});function N8(i,u){return $p(i,m0(Ze(u)))}var R8=Mi(function(i,u){return i==null?{}:jc(i,u)});function $p(i,u){if(i==null)return{};var f=At(jl(i),function(b){return[b]});return u=Ze(u),Kc(i,f,function(b,L){return u(b,L[0])})}function H8(i,u,f){u=Zn(u,i);var b=-1,L=u.length;for(L||(L=1,i=n);++b<L;){var _=i==null?n:i[$t(u[b])];_===n&&(b=L,_=f),i=Uo(_)?_.call(i):_}return i}function F8(i,u,f){return i==null?i:zi(i,u,f)}function B8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:zi(i,u,f,b)}var Pp=Sn(Zr),Dp=Sn(Tn);function V8(i,u,f){var b=ct(i),L=b||Da(i)||Jl(i);if(u=Ze(u,4),f==null){var _=i&&i.constructor;L?f=b?new _:[]:er(i)?f=Uo(_)?ii(fa(i)):{}:f={}}return(L?wn:gn)(i,function(P,N,Z){return u(f,P,N,Z)}),f}function W8(i,u){return i==null?!0:Ls(i,u)}function Z8(i,u,f){return i==null?i:Bl(i,u,Vl(f))}function U8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Bl(i,u,Vl(f),b)}function Ql(i){return i==null?[]:vl(i,Zr(i))}function G8(i){return i==null?[]:vl(i,Tn(i))}function q8(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=ui(f),f=f===f?f:0),u!==n&&(u=ui(u),u=u===u?u:0),No(ui(i),u,f)}function j8(i,u,f){return u=Go(u),f===n?(f=u,u=0):f=Go(f),i=ui(i),ya(i,u,f)}function K8(i,u,f){if(f&&typeof f!="boolean"&&y(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Go(i),u===n?(u=i,i=0):u=Go(u)),i>u){var b=i;i=u,u=b}if(f||i%1||u%1){var L=no();return Tr(i+L*(u-i+Nd("1e-"+((L+"").length-1))),u)}return Hl(i,u)}var Y8=Oa(function(i,u,f){return u=u.toLowerCase(),i+(f?Np(u):u)});function Np(i){return Mf(Rt(i).toLowerCase())}function Rp(i){return i=Rt(i),i&&i.replace(Qa,mc).replace(sc,"")}function X8(i,u,f){i=Rt(i),u=Rr(u);var b=i.length;f=f===n?b:No(ft(f),0,b);var L=f;return f-=u.length,f>=0&&i.slice(f,L)==u}function J8(i){return i=Rt(i),i&&ln.test(i)?i.replace(vr,Ud):i}function Q8(i){return i=Rt(i),i&&Xn.test(i)?i.replace(xo,"\\$&"):i}var eg=Oa(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),tg=Oa(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),rg=a0("toLowerCase");function ng(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;if(!u||b>=u)return i;var L=(u-b)/2;return Gl(ga(L),f)+i+Gl(pa(L),f)}function ig(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?i+Gl(u-b,f):i}function og(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?Gl(u-b,f)+i:i}function ag(i,u,f){return f||u==null?u=0:u&&(u=+u),fs(Rt(i).replace(zo,""),u||0)}function sg(i,u,f){return(f?y(i,u,f):u===n)?u=1:u=ft(u),tu(Rt(i),u)}function lg(){var i=arguments,u=Rt(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var ug=Oa(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function cg(i,u,f){return f&&typeof f!="number"&&y(i,u,f)&&(u=f=n),f=f===n?yt:f>>>0,f?(i=Rt(i),i&&(typeof u=="string"||u!=null&&!zf(u))&&(u=Rr(u),!u&&Bn(i))?po(xn(i),0,f):i.split(u,f)):[]}var dg=Oa(function(i,u,f){return i+(f?" ":"")+Mf(u)});function fg(i,u,f){return i=Rt(i),f=f==null?0:No(ft(f),0,i.length),u=Rr(u),i.slice(f,f+u.length)==u}function hg(i,u,f){var b=M.templateSettings;f&&y(i,u,f)&&(u=n),i=Rt(i),u=w0({},u,b,ql);var L=w0({},u.imports,b.imports,ql),_=Zr(L),P=vl(L,_),N,Z,ie=0,oe=u.interpolate||Bt,de="__p += '",Me=Xi((u.escape||Bt).source+"|"+oe.source+"|"+(oe===Ka?mi:Bt).source+"|"+(u.evaluate||Bt).source+"|$","g"),Fe="//# sourceURL="+(ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_1+"]")+`
|
|
1669
|
+
`;i.replace(Me,function(Je,mt,wt,Gn,bn,qn){return wt||(wt=Gn),de+=i.slice(ie,qn).replace(ke,yc),mt&&(N=!0,de+=`' +
|
|
1670
1670
|
__e(`+mt+`) +
|
|
1671
1671
|
'`),bn&&(Z=!0,de+=`';
|
|
1672
1672
|
`+bn+`;
|
|
@@ -1676,39 +1676,39 @@ __p += '`),wt&&(de+=`' +
|
|
|
1676
1676
|
`;var Xe=ot.call(u,"variable")&&u.variable;if(!Xe)de=`with (obj) {
|
|
1677
1677
|
`+de+`
|
|
1678
1678
|
}
|
|
1679
|
-
`;else if(un.test(Xe))throw new nt(
|
|
1679
|
+
`;else if(un.test(Xe))throw new nt(w);de=(Z?de.replace(Jt,""):de).replace(na,"$1").replace(gr,"$1;"),de="function("+(Xe||"obj")+`) {
|
|
1680
1680
|
`+(Xe?"":`obj || (obj = {});
|
|
1681
1681
|
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
|
|
1682
1682
|
function print() { __p += __j.call(arguments, '') }
|
|
1683
1683
|
`:`;
|
|
1684
1684
|
`)+de+`return __p
|
|
1685
|
-
}`;var ht=Hp(function(){return Tt(_,Fe+"return "+de).apply(n,P)});if(ht.source=de,xf(ht))throw ht;return ht}function hg(i){return Rt(i).toLowerCase()}function pg(i){return Rt(i).toUpperCase()}function gg(i,u,f){if(i=Rt(i),i&&(f||u===n))return as(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),_=ji(b,L),P=bl(b,L)+1;return po(b,_,P).join("")}function vg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,Cl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=bl(b,xn(u))+1;return po(b,0,L).join("")}function bg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function mg(i,u){var f=Ce,b=le;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var _=i.length;if(Bn(i)){var P=xn(i);_=P.length}if(f>=_)return i;var N=f-Oo(b);if(N<1)return b;var Z=P?po(P,0,N).join(""):i.slice(0,N);if(L===n)return Z+b;if(P&&(N+=Z.length-N),zf(L)){if(i.slice(N).search(L)){var ie,oe=Z;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var de=ie.index;Z=Z.slice(0,de===n?N:de)}}else if(i.indexOf(Rr(L),N)!=N){var Me=Z.lastIndexOf(L);Me>-1&&(Z=Z.slice(0,Me))}return Z+b}function yg(i){return i=Rt(i),i&&ia.test(i)?i.replace(Dn,wl):i}var Cg=Oa(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),Mf=a0("toUpperCase");function Rp(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):vc(i):i.match(u)||[]}var Hp=dt(function(i,u){try{return fn(i,n,u)}catch(f){return xf(f)?f:new nt(f)}}),wg=Mi(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,Cf(i[f],i))}),i});function xg(i){var u=i==null?0:i.length,f=Ze();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var _=i[L];if(fn(_[0],this,b))return fn(_[1],this,b)}})}function zg(i){return Nc(Xr(i,D))}function _f(i){return function(){return i}}function Lg(i,u){return i==null||i!==i?u:i}var Sg=s0(),Mg=s0(!0);function On(i){return i}function Tf(i){return Uc(typeof i=="function"?i:Xr(i,D))}function _g(i){return Gc(Xr(i,D))}function Tg(i,u){return J1(i,Xr(u,D))}var Og=dt(function(i,u){return function(f){return Ca(f,i,u)}}),kg=dt(function(i,u){return function(f){return Ca(i,f,u)}});function Of(i,u,f){var b=Zr(u),L=ms(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ms(u,Zr(u)));var _=!(er(f)&&"chain"in f)||!!f.chain,P=Uo(i);return wn(L,function(N){var Z=u[N];i[N]=Z,P&&(i.prototype[N]=function(){var ie=this.__chain__;if(_||ie){var oe=i(this.__wrapped__),de=oe.__actions__=yr(this.__actions__);return de.push({func:Z,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return Z.apply(i,qi([this.value()],arguments))})}),i}function Eg(){return Ut._===this&&(Ut._=_c),this}function kf(){}function Ig(i){return i=ft(i),dt(function(u){return qc(u,i)})}var Ag=Ea(At),$g=Ea(k1),Pg=Ea(Mo);function Fp(i){return C(i)?A1($t(i)):df(i)}function Dg(i){return function(u){return i==null?n:uo(i,u)}}var Ng=l0(),Rg=l0(!0);function Ef(){return[]}function If(){return!1}function Hg(){return{}}function Fg(){return""}function Bg(){return!0}function Wg(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=yt,b=Tr(i,yt);u=Ze(u),i-=yt;for(var L=To(b,u);++f<i;)u(f);return L}function Vg(i){return ct(i)?At(i,$t):Un(i)?[i]:yr(cr(Rt(i)))}function Zg(i){var u=++Qi;return Rt(i)+u}var Ug=Ss(function(i,u){return i+u},0),Gg=Ms("ceil"),qg=Ss(function(i,u){return i/u},1),jg=Ms("floor");function Kg(i){return i&&i.length?bs(i,On,$l):n}function Yg(i,u){return i&&i.length?bs(i,Ze(u,2),$l):n}function Xg(i){return I1(i,On)}function Jg(i,u){return I1(i,Ze(u,2))}function Qg(i){return i&&i.length?bs(i,On,fo):n}function ev(i,u){return i&&i.length?bs(i,Ze(u,2),fo):n}var tv=Ss(function(i,u){return i*u},1),rv=Ms("round"),nv=Ss(function(i,u){return i-u},0);function iv(i){return i&&i.length?D1(i,On):0}function ov(i,u){return i&&i.length?D1(i,Ze(u,2)):0}return M.after=_9,M.ary=bp,M.assign=p8,M.assignIn=Ep,M.assignInWith=w0,M.assignWith=g8,M.at=v8,M.before=mp,M.bind=Cf,M.bindAll=wg,M.bindKey=yp,M.castArray=H9,M.chain=pp,M.chunk=$a,M.compact=go,M.concat=Ar,M.cond=xg,M.conforms=zg,M.constant=_f,M.countBy=i9,M.create=b8,M.curry=Cp,M.curryRight=wp,M.debounce=xp,M.defaults=m8,M.defaultsDeep=y8,M.defer=T9,M.delay=O9,M.difference=si,M.differenceBy=dr,M.differenceWith=pu,M.drop=_i,M.dropRight=Vo,M.dropRightWhile=Zo,M.dropWhile=Vr,M.fill=Pa,M.filter=a9,M.flatMap=u9,M.flatMapDeep=c9,M.flatMapDepth=d9,M.flatten=cp,M.flattenDeep=o7,M.flattenDepth=a7,M.flip=k9,M.flow=Sg,M.flowRight=Mg,M.fromPairs=s7,M.functions=M8,M.functionsIn=_8,M.groupBy=f9,M.initial=u7,M.intersection=c7,M.intersectionBy=d7,M.intersectionWith=f7,M.invert=O8,M.invertBy=k8,M.invokeMap=p9,M.iteratee=Tf,M.keyBy=g9,M.keys=Zr,M.keysIn=Tn,M.map=g0,M.mapKeys=I8,M.mapValues=A8,M.matches=_g,M.matchesProperty=Tg,M.memoize=b0,M.merge=$8,M.mergeWith=Ip,M.method=Og,M.methodOf=kg,M.mixin=Of,M.negate=m0,M.nthArg=Ig,M.omit=P8,M.omitBy=D8,M.once=E9,M.orderBy=v9,M.over=Ag,M.overArgs=I9,M.overEvery=$g,M.overSome=Pg,M.partial=wf,M.partialRight=zp,M.partition=b9,M.pick=N8,M.pickBy=Ap,M.property=Fp,M.propertyOf=Dg,M.pull=v7,M.pullAll=fp,M.pullAllBy=b7,M.pullAllWith=m7,M.pullAt=y7,M.range=Ng,M.rangeRight=Rg,M.rearg=A9,M.reject=C9,M.remove=C7,M.rest=$9,M.reverse=mf,M.sampleSize=x9,M.set=H8,M.setWith=F8,M.shuffle=z9,M.slice=w7,M.sortBy=M9,M.sortedUniq=T7,M.sortedUniqBy=O7,M.split=ug,M.spread=P9,M.tail=k7,M.take=E7,M.takeRight=I7,M.takeRightWhile=A7,M.takeWhile=$7,M.tap=K7,M.throttle=D9,M.thru=p0,M.toArray=Tp,M.toPairs=$p,M.toPairsIn=Pp,M.toPath=Vg,M.toPlainObject=kp,M.transform=B8,M.unary=N9,M.union=P7,M.unionBy=D7,M.unionWith=N7,M.uniq=R7,M.uniqBy=H7,M.uniqWith=F7,M.unset=W8,M.unzip=yf,M.unzipWith=hp,M.update=V8,M.updateWith=Z8,M.values=Ql,M.valuesIn=U8,M.without=B7,M.words=Rp,M.wrap=R9,M.xor=W7,M.xorBy=V7,M.xorWith=Z7,M.zip=U7,M.zipObject=G7,M.zipObjectDeep=q7,M.zipWith=j7,M.entries=$p,M.entriesIn=Pp,M.extend=Ep,M.extendWith=w0,Of(M,M),M.add=Ug,M.attempt=Hp,M.camelCase=K8,M.capitalize=Dp,M.ceil=Gg,M.clamp=G8,M.clone=F9,M.cloneDeep=W9,M.cloneDeepWith=V9,M.cloneWith=B9,M.conformsTo=Z9,M.deburr=Np,M.defaultTo=Lg,M.divide=qg,M.endsWith=Y8,M.eq=Ti,M.escape=X8,M.escapeRegExp=J8,M.every=o9,M.find=s9,M.findIndex=Xl,M.findKey=C8,M.findLast=l9,M.findLastIndex=up,M.findLastKey=w8,M.floor=jg,M.forEach=gp,M.forEachRight=vp,M.forIn=x8,M.forInRight=z8,M.forOwn=L8,M.forOwnRight=S8,M.get=Lf,M.gt=U9,M.gte=G9,M.has=T8,M.hasIn=Sf,M.head=dp,M.identity=On,M.includes=h9,M.indexOf=l7,M.inRange=q8,M.invoke=E8,M.isArguments=ks,M.isArray=ct,M.isArrayBuffer=q9,M.isArrayLike=_n,M.isArrayLikeObject=fr,M.isBoolean=j9,M.isBuffer=Da,M.isDate=K9,M.isElement=Y9,M.isEmpty=X9,M.isEqual=J9,M.isEqualWith=Q9,M.isError=xf,M.isFinite=e8,M.isFunction=Uo,M.isInteger=Lp,M.isLength=y0,M.isMap=Sp,M.isMatch=t8,M.isMatchWith=r8,M.isNaN=n8,M.isNative=i8,M.isNil=a8,M.isNull=o8,M.isNumber=Mp,M.isObject=er,M.isObjectLike=nr,M.isPlainObject=gu,M.isRegExp=zf,M.isSafeInteger=s8,M.isSet=_p,M.isString=C0,M.isSymbol=Un,M.isTypedArray=Jl,M.isUndefined=l8,M.isWeakMap=u8,M.isWeakSet=c8,M.join=h7,M.kebabCase=Q8,M.last=li,M.lastIndexOf=p7,M.lowerCase=eg,M.lowerFirst=tg,M.lt=d8,M.lte=f8,M.max=Kg,M.maxBy=Yg,M.mean=Xg,M.meanBy=Jg,M.min=Qg,M.minBy=ev,M.stubArray=Ef,M.stubFalse=If,M.stubObject=Hg,M.stubString=Fg,M.stubTrue=Bg,M.multiply=tv,M.nth=g7,M.noConflict=Eg,M.noop=kf,M.now=v0,M.pad=rg,M.padEnd=ng,M.padStart=ig,M.parseInt=og,M.random=j8,M.reduce=m9,M.reduceRight=y9,M.repeat=ag,M.replace=sg,M.result=R8,M.round=rv,M.runInContext=V,M.sample=w9,M.size=L9,M.snakeCase=lg,M.some=S9,M.sortedIndex=x7,M.sortedIndexBy=z7,M.sortedIndexOf=L7,M.sortedLastIndex=S7,M.sortedLastIndexBy=M7,M.sortedLastIndexOf=_7,M.startCase=cg,M.startsWith=dg,M.subtract=nv,M.sum=iv,M.sumBy=ov,M.template=fg,M.times=Wg,M.toFinite=Go,M.toInteger=ft,M.toLength=Op,M.toLower=hg,M.toNumber=ui,M.toSafeInteger=h8,M.toString=Rt,M.toUpper=pg,M.trim=gg,M.trimEnd=vg,M.trimStart=bg,M.truncate=mg,M.unescape=yg,M.uniqueId=Zg,M.upperCase=Cg,M.upperFirst=Mf,M.each=gp,M.eachRight=vp,M.first=dp,Of(M,function(){var i={};return gn(M,function(u,f){ot.call(M.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),M.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){M[i].placeholder=M}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,yt),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==O||f==X;vt.prototype[i]=function(L){var _=this.clone();return _.__iteratees__.push({iteratee:Ze(L,3),type:f}),_.__filtered__=_.__filtered__||b,_}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(On)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return Ca(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(m0(Ze(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(yt)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=M[b?"take"+(u=="last"?"Right":""):u],_=b||/^find/.test(u);L&&(M.prototype[u]=function(){var P=this.__wrapped__,N=b?[1]:arguments,Z=P instanceof vt,ie=N[0],oe=Z||ct(P),de=function(mt){var wt=L.apply(M,qi([mt],N));return b&&Me?wt[0]:wt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(Z=oe=!1);var Me=this.__chain__,Fe=!!this.__actions__.length,Xe=_&&!Me,ht=Z&&!Fe;if(!_&&oe){P=ht?P:new vt(this);var Je=i.apply(P,N);return Je.__actions__.push({func:p0,args:[de],thisArg:n}),new Yr(Je,Me)}return Xe&&ht?i.apply(this,N):(Je=this.thru(de),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=da[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);M.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var _=this.value();return u.apply(ct(_)?_:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=M[u];if(f){var b=f.name+"";ot.call(ba,b)||(ba[b]=[]),ba[b].push({name:u,func:f})}}),ba[Ls(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=tf,vt.prototype.reverse=rf,vt.prototype.value=H1,M.prototype.at=Y7,M.prototype.chain=X7,M.prototype.commit=J7,M.prototype.next=Q7,M.prototype.plant=t9,M.prototype.reverse=r9,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=n9,M.prototype.first=M.prototype.head,eo&&(M.prototype[eo]=e9),M},Yi=Sc();jr?((jr.exports=Yi)._=Yi,rs._=Yi):Ut._=Yi}).call(i1)})(G0,G0.exports);var Wh=G0.exports;const km=f6(Wh),Em=av({__proto__:null,default:km},[Wh]);let dh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
|
|
1685
|
+
}`;var ht=Fp(function(){return Ot(_,Fe+"return "+de).apply(n,P)});if(ht.source=de,xf(ht))throw ht;return ht}function pg(i){return Rt(i).toLowerCase()}function gg(i){return Rt(i).toUpperCase()}function vg(i,u,f){if(i=Rt(i),i&&(f||u===n))return ss(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),_=ji(b,L),P=bl(b,L)+1;return po(b,_,P).join("")}function bg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,Cl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=bl(b,xn(u))+1;return po(b,0,L).join("")}function mg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function yg(i,u){var f=Ce,b=le;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var _=i.length;if(Bn(i)){var P=xn(i);_=P.length}if(f>=_)return i;var N=f-Oo(b);if(N<1)return b;var Z=P?po(P,0,N).join(""):i.slice(0,N);if(L===n)return Z+b;if(P&&(N+=Z.length-N),zf(L)){if(i.slice(N).search(L)){var ie,oe=Z;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var de=ie.index;Z=Z.slice(0,de===n?N:de)}}else if(i.indexOf(Rr(L),N)!=N){var Me=Z.lastIndexOf(L);Me>-1&&(Z=Z.slice(0,Me))}return Z+b}function Cg(i){return i=Rt(i),i&&ia.test(i)?i.replace(Dn,wl):i}var wg=Oa(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),Mf=a0("toUpperCase");function Hp(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Vn(i):vc(i):i.match(u)||[]}var Fp=dt(function(i,u){try{return fn(i,n,u)}catch(f){return xf(f)?f:new nt(f)}}),xg=Mi(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,Cf(i[f],i))}),i});function zg(i){var u=i==null?0:i.length,f=Ze();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var _=i[L];if(fn(_[0],this,b))return fn(_[1],this,b)}})}function Lg(i){return Nc(Xr(i,D))}function _f(i){return function(){return i}}function Sg(i,u){return i==null||i!==i?u:i}var Mg=s0(),_g=s0(!0);function On(i){return i}function Tf(i){return Uc(typeof i=="function"?i:Xr(i,D))}function Tg(i){return Gc(Xr(i,D))}function Og(i,u){return J1(i,Xr(u,D))}var Eg=dt(function(i,u){return function(f){return Ca(f,i,u)}}),kg=dt(function(i,u){return function(f){return Ca(i,f,u)}});function Of(i,u,f){var b=Zr(u),L=ys(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ys(u,Zr(u)));var _=!(er(f)&&"chain"in f)||!!f.chain,P=Uo(i);return wn(L,function(N){var Z=u[N];i[N]=Z,P&&(i.prototype[N]=function(){var ie=this.__chain__;if(_||ie){var oe=i(this.__wrapped__),de=oe.__actions__=yr(this.__actions__);return de.push({func:Z,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return Z.apply(i,qi([this.value()],arguments))})}),i}function Ig(){return Ut._===this&&(Ut._=_c),this}function Ef(){}function Ag(i){return i=ft(i),dt(function(u){return qc(u,i)})}var $g=ka(At),Pg=ka(E1),Dg=ka(Mo);function Bp(i){return C(i)?A1($t(i)):df(i)}function Ng(i){return function(u){return i==null?n:uo(i,u)}}var Rg=l0(),Hg=l0(!0);function kf(){return[]}function If(){return!1}function Fg(){return{}}function Bg(){return""}function Vg(){return!0}function Wg(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=yt,b=Tr(i,yt);u=Ze(u),i-=yt;for(var L=To(b,u);++f<i;)u(f);return L}function Zg(i){return ct(i)?At(i,$t):Un(i)?[i]:yr(cr(Rt(i)))}function Ug(i){var u=++Qi;return Rt(i)+u}var Gg=Ms(function(i,u){return i+u},0),qg=_s("ceil"),jg=Ms(function(i,u){return i/u},1),Kg=_s("floor");function Yg(i){return i&&i.length?ms(i,On,$l):n}function Xg(i,u){return i&&i.length?ms(i,Ze(u,2),$l):n}function Jg(i){return I1(i,On)}function Qg(i,u){return I1(i,Ze(u,2))}function ev(i){return i&&i.length?ms(i,On,fo):n}function tv(i,u){return i&&i.length?ms(i,Ze(u,2),fo):n}var rv=Ms(function(i,u){return i*u},1),nv=_s("round"),iv=Ms(function(i,u){return i-u},0);function ov(i){return i&&i.length?D1(i,On):0}function av(i,u){return i&&i.length?D1(i,Ze(u,2)):0}return M.after=T9,M.ary=mp,M.assign=g8,M.assignIn=Ip,M.assignInWith=w0,M.assignWith=v8,M.at=b8,M.before=yp,M.bind=Cf,M.bindAll=xg,M.bindKey=Cp,M.castArray=F9,M.chain=gp,M.chunk=$a,M.compact=go,M.concat=Ar,M.cond=zg,M.conforms=Lg,M.constant=_f,M.countBy=o9,M.create=m8,M.curry=wp,M.curryRight=xp,M.debounce=zp,M.defaults=y8,M.defaultsDeep=C8,M.defer=O9,M.delay=E9,M.difference=si,M.differenceBy=dr,M.differenceWith=pu,M.drop=_i,M.dropRight=Wo,M.dropRightWhile=Zo,M.dropWhile=Wr,M.fill=Pa,M.filter=s9,M.flatMap=c9,M.flatMapDeep=d9,M.flatMapDepth=f9,M.flatten=dp,M.flattenDeep=a7,M.flattenDepth=s7,M.flip=k9,M.flow=Mg,M.flowRight=_g,M.fromPairs=l7,M.functions=_8,M.functionsIn=T8,M.groupBy=h9,M.initial=c7,M.intersection=d7,M.intersectionBy=f7,M.intersectionWith=h7,M.invert=E8,M.invertBy=k8,M.invokeMap=g9,M.iteratee=Tf,M.keyBy=v9,M.keys=Zr,M.keysIn=Tn,M.map=g0,M.mapKeys=A8,M.mapValues=$8,M.matches=Tg,M.matchesProperty=Og,M.memoize=b0,M.merge=P8,M.mergeWith=Ap,M.method=Eg,M.methodOf=kg,M.mixin=Of,M.negate=m0,M.nthArg=Ag,M.omit=D8,M.omitBy=N8,M.once=I9,M.orderBy=b9,M.over=$g,M.overArgs=A9,M.overEvery=Pg,M.overSome=Dg,M.partial=wf,M.partialRight=Lp,M.partition=m9,M.pick=R8,M.pickBy=$p,M.property=Bp,M.propertyOf=Ng,M.pull=b7,M.pullAll=hp,M.pullAllBy=m7,M.pullAllWith=y7,M.pullAt=C7,M.range=Rg,M.rangeRight=Hg,M.rearg=$9,M.reject=w9,M.remove=w7,M.rest=P9,M.reverse=mf,M.sampleSize=z9,M.set=F8,M.setWith=B8,M.shuffle=L9,M.slice=x7,M.sortBy=_9,M.sortedUniq=O7,M.sortedUniqBy=E7,M.split=cg,M.spread=D9,M.tail=k7,M.take=I7,M.takeRight=A7,M.takeRightWhile=$7,M.takeWhile=P7,M.tap=Y7,M.throttle=N9,M.thru=p0,M.toArray=Op,M.toPairs=Pp,M.toPairsIn=Dp,M.toPath=Zg,M.toPlainObject=kp,M.transform=V8,M.unary=R9,M.union=D7,M.unionBy=N7,M.unionWith=R7,M.uniq=H7,M.uniqBy=F7,M.uniqWith=B7,M.unset=W8,M.unzip=yf,M.unzipWith=pp,M.update=Z8,M.updateWith=U8,M.values=Ql,M.valuesIn=G8,M.without=V7,M.words=Hp,M.wrap=H9,M.xor=W7,M.xorBy=Z7,M.xorWith=U7,M.zip=G7,M.zipObject=q7,M.zipObjectDeep=j7,M.zipWith=K7,M.entries=Pp,M.entriesIn=Dp,M.extend=Ip,M.extendWith=w0,Of(M,M),M.add=Gg,M.attempt=Fp,M.camelCase=Y8,M.capitalize=Np,M.ceil=qg,M.clamp=q8,M.clone=B9,M.cloneDeep=W9,M.cloneDeepWith=Z9,M.cloneWith=V9,M.conformsTo=U9,M.deburr=Rp,M.defaultTo=Sg,M.divide=jg,M.endsWith=X8,M.eq=Ti,M.escape=J8,M.escapeRegExp=Q8,M.every=a9,M.find=l9,M.findIndex=Xl,M.findKey=w8,M.findLast=u9,M.findLastIndex=cp,M.findLastKey=x8,M.floor=Kg,M.forEach=vp,M.forEachRight=bp,M.forIn=z8,M.forInRight=L8,M.forOwn=S8,M.forOwnRight=M8,M.get=Lf,M.gt=G9,M.gte=q9,M.has=O8,M.hasIn=Sf,M.head=fp,M.identity=On,M.includes=p9,M.indexOf=u7,M.inRange=j8,M.invoke=I8,M.isArguments=ks,M.isArray=ct,M.isArrayBuffer=j9,M.isArrayLike=_n,M.isArrayLikeObject=fr,M.isBoolean=K9,M.isBuffer=Da,M.isDate=Y9,M.isElement=X9,M.isEmpty=J9,M.isEqual=Q9,M.isEqualWith=e8,M.isError=xf,M.isFinite=t8,M.isFunction=Uo,M.isInteger=Sp,M.isLength=y0,M.isMap=Mp,M.isMatch=r8,M.isMatchWith=n8,M.isNaN=i8,M.isNative=o8,M.isNil=s8,M.isNull=a8,M.isNumber=_p,M.isObject=er,M.isObjectLike=nr,M.isPlainObject=gu,M.isRegExp=zf,M.isSafeInteger=l8,M.isSet=Tp,M.isString=C0,M.isSymbol=Un,M.isTypedArray=Jl,M.isUndefined=u8,M.isWeakMap=c8,M.isWeakSet=d8,M.join=p7,M.kebabCase=eg,M.last=li,M.lastIndexOf=g7,M.lowerCase=tg,M.lowerFirst=rg,M.lt=f8,M.lte=h8,M.max=Yg,M.maxBy=Xg,M.mean=Jg,M.meanBy=Qg,M.min=ev,M.minBy=tv,M.stubArray=kf,M.stubFalse=If,M.stubObject=Fg,M.stubString=Bg,M.stubTrue=Vg,M.multiply=rv,M.nth=v7,M.noConflict=Ig,M.noop=Ef,M.now=v0,M.pad=ng,M.padEnd=ig,M.padStart=og,M.parseInt=ag,M.random=K8,M.reduce=y9,M.reduceRight=C9,M.repeat=sg,M.replace=lg,M.result=H8,M.round=nv,M.runInContext=W,M.sample=x9,M.size=S9,M.snakeCase=ug,M.some=M9,M.sortedIndex=z7,M.sortedIndexBy=L7,M.sortedIndexOf=S7,M.sortedLastIndex=M7,M.sortedLastIndexBy=_7,M.sortedLastIndexOf=T7,M.startCase=dg,M.startsWith=fg,M.subtract=iv,M.sum=ov,M.sumBy=av,M.template=hg,M.times=Wg,M.toFinite=Go,M.toInteger=ft,M.toLength=Ep,M.toLower=pg,M.toNumber=ui,M.toSafeInteger=p8,M.toString=Rt,M.toUpper=gg,M.trim=vg,M.trimEnd=bg,M.trimStart=mg,M.truncate=yg,M.unescape=Cg,M.uniqueId=Ug,M.upperCase=wg,M.upperFirst=Mf,M.each=vp,M.eachRight=bp,M.first=fp,Of(M,function(){var i={};return gn(M,function(u,f){ot.call(M.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),M.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){M[i].placeholder=M}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,yt),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==O||f==X;vt.prototype[i]=function(L){var _=this.clone();return _.__iteratees__.push({iteratee:Ze(L,3),type:f}),_.__filtered__=_.__filtered__||b,_}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(On)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return Ca(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(m0(Ze(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(yt)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=M[b?"take"+(u=="last"?"Right":""):u],_=b||/^find/.test(u);L&&(M.prototype[u]=function(){var P=this.__wrapped__,N=b?[1]:arguments,Z=P instanceof vt,ie=N[0],oe=Z||ct(P),de=function(mt){var wt=L.apply(M,qi([mt],N));return b&&Me?wt[0]:wt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(Z=oe=!1);var Me=this.__chain__,Fe=!!this.__actions__.length,Xe=_&&!Me,ht=Z&&!Fe;if(!_&&oe){P=ht?P:new vt(this);var Je=i.apply(P,N);return Je.__actions__.push({func:p0,args:[de],thisArg:n}),new Yr(Je,Me)}return Xe&&ht?i.apply(this,N):(Je=this.thru(de),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=da[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);M.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var _=this.value();return u.apply(ct(_)?_:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=M[u];if(f){var b=f.name+"";ot.call(ba,b)||(ba[b]=[]),ba[b].push({name:u,func:f})}}),ba[Ss(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=tf,vt.prototype.reverse=rf,vt.prototype.value=H1,M.prototype.at=X7,M.prototype.chain=J7,M.prototype.commit=Q7,M.prototype.next=e9,M.prototype.plant=r9,M.prototype.reverse=n9,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=i9,M.prototype.first=M.prototype.head,eo&&(M.prototype[eo]=t9),M},Yi=Sc();jr?((jr.exports=Yi)._=Yi,ns._=Yi):Ut._=Yi}).call(i1)})(G0,G0.exports);var Wh=G0.exports;const km=h6(Wh),Im=sv({__proto__:null,default:km},[Wh]);let dh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
|
|
1686
1686
|
* @license
|
|
1687
1687
|
* Copyright 2020 Google LLC
|
|
1688
1688
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1689
|
-
*/const{I:
|
|
1689
|
+
*/const{I:Am}=pv,z2=()=>document.createComment(""),Cu=(o,t,n)=>{var l;const c=o._$AA.parentNode,g=t===void 0?o._$AB:t._$AA;if(n===void 0){const h=c.insertBefore(z2(),g),w=c.insertBefore(z2(),g);n=new Am(h,w,o,o.options)}else{const h=n._$AB.nextSibling,w=n._$AM,z=w!==o;if(z){let S;(l=n._$AQ)===null||l===void 0||l.call(n,o),n._$AM=o,n._$AP!==void 0&&(S=o._$AU)!==w._$AU&&n._$AP(S)}if(h!==g||z){let S=n._$AA;for(;S!==h;){const k=S.nextSibling;c.insertBefore(S,g),S=k}}}return n},Ps=(o,t,n=o)=>(o._$AI(t,n),o),$m={},Pm=(o,t=$m)=>o._$AH=t,Dm=o=>o._$AH,Uf=o=>{var t;(t=o._$AP)===null||t===void 0||t.call(o,!1,!0);let n=o._$AA;const l=o._$AB.nextSibling;for(;n!==l;){const c=n.nextSibling;n.remove(),n=c}};/**
|
|
1690
1690
|
* @license
|
|
1691
1691
|
* Copyright 2017 Google LLC
|
|
1692
1692
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1693
|
-
*/const
|
|
1693
|
+
*/const L2=(o,t,n)=>{const l=new Map;for(let c=t;c<=n;c++)l.set(o[c],c);return l},Nm=ld(class extends ud{constructor(o){if(super(o),o.type!==sd.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,t,n){let l;n===void 0?n=t:t!==void 0&&(l=t);const c=[],g=[];let h=0;for(const w of o)c[h]=l?l(w,h):h,g[h]=n(w,h),h++;return{values:g,keys:c}}render(o,t,n){return this.dt(o,t,n).values}update(o,[t,n,l]){var c;const g=Dm(o),{values:h,keys:w}=this.dt(t,n,l);if(!Array.isArray(g))return this.ht=w,h;const z=(c=this.ht)!==null&&c!==void 0?c:this.ht=[],S=[];let k,D,B=0,R=g.length-1,J=0,pe=h.length-1;for(;B<=R&&J<=pe;)if(g[B]===null)B++;else if(g[R]===null)R--;else if(z[B]===w[J])S[J]=Ps(g[B],h[J]),B++,J++;else if(z[R]===w[pe])S[pe]=Ps(g[R],h[pe]),R--,pe--;else if(z[B]===w[pe])S[pe]=Ps(g[B],h[pe]),Cu(o,S[pe+1],g[B]),B++,pe--;else if(z[R]===w[J])S[J]=Ps(g[R],h[J]),Cu(o,g[B],g[R]),R--,J++;else if(k===void 0&&(k=L2(w,J,pe),D=L2(z,B,R)),k.has(z[B]))if(k.has(z[R])){const ge=D.get(w[J]),Te=ge!==void 0?g[ge]:null;if(Te===null){const Ie=Cu(o,g[B]);Ps(Ie,h[J]),S[J]=Ie}else S[J]=Ps(Te,h[J]),Cu(o,g[B],Te),g[ge]=null;J++}else Uf(g[R]),R--;else Uf(g[B]),B++;for(;J<=pe;){const ge=Cu(o,S[pe+1]);Ps(ge,h[J]),S[J++]=ge}for(;B<=R;){const ge=g[B++];ge!==null&&Uf(ge)}return this.ht=w,Pm(o,S),Yo}});/**
|
|
1694
1694
|
* @license
|
|
1695
1695
|
* Copyright 2018 Google LLC
|
|
1696
1696
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1697
|
-
*/const
|
|
1697
|
+
*/const p6="important",Rm=" !"+p6,Hm=ld(class extends ud{constructor(o){var t;if(super(o),o.type!==sd.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,n)=>{const l=o[n];return l==null?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${l};`},"")}update(o,[t]){const{style:n}=o.element;if(this.ut===void 0){this.ut=new Set;for(const l in t)this.ut.add(l);return this.render(t)}this.ut.forEach(l=>{t[l]==null&&(this.ut.delete(l),l.includes("-")?n.removeProperty(l):n[l]="")});for(const l in t){const c=t[l];if(c!=null){this.ut.add(l);const g=typeof c=="string"&&c.endsWith(Rm);l.includes("-")||g?n.setProperty(l,g?c.slice(0,-11):c,g?p6:""):n[l]=c}}return Yo}});var Fm=Object.defineProperty,Bm=Object.getOwnPropertyDescriptor,An=(o,t,n,l)=>{for(var c=l>1?void 0:l?Bm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fm(t,n,c),c};const Zh=Le("virtual-list");exports.VirtualList=class extends We{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(t,n)=>j`
|
|
1698
1698
|
<div
|
|
1699
1699
|
class="default-render-item"
|
|
1700
1700
|
style="min-height: ${this.itemMinHeight}px"
|
|
1701
1701
|
>
|
|
1702
1702
|
Item ${n}: ${JSON.stringify(t)}
|
|
1703
1703
|
</div>
|
|
1704
|
-
`,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(t){super.updated(t),this.canSync(t)&&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((t,n)=>t+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const t={};let n=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{t[c]?t[c]++:t[c]=1,t[c]>l&&(n=c,l=t[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(t){return["items","renderItem"].reduce((n,l)=>n||t.has(l),!1)}sumOfHeightsToIndex(t){return this.itemHeights.slice(0,t).reduce((n,l)=>(n+=l,n),0)}syncVisibleItems(){this.resetItems();for(let t=this.rollingStartIndex;t<=this.rollingEndIndex;t++){const n={position:"absolute",top:`${this.sumOfHeightsToIndex(t)}px`,width:"100%"},l=this.renderItem(this.items[t],t);if(!this.itemIdentifier){const h
|
|
1705
|
-
<div class="item-wrapper" style=${
|
|
1704
|
+
`,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(t){super.updated(t),this.canSync(t)&&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((t,n)=>t+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const t={};let n=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{t[c]?t[c]++:t[c]=1,t[c]>l&&(n=c,l=t[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(t){return["items","renderItem"].reduce((n,l)=>n||t.has(l),!1)}sumOfHeightsToIndex(t){return this.itemHeights.slice(0,t).reduce((n,l)=>(n+=l,n),0)}syncVisibleItems(){this.resetItems();for(let t=this.rollingStartIndex;t<=this.rollingEndIndex;t++){const n={position:"absolute",top:`${this.sumOfHeightsToIndex(t)}px`,width:"100%"},l=this.renderItem(this.items[t],t);if(!this.itemIdentifier){const h=$5(l,new DocumentFragment).parentNode.firstElementChild,w=h==null?void 0:h.tagName.toLowerCase(),z=h==null?void 0:h.className;this.itemIdentifier=`${w}${z?`.${z}`:""}`}const c=j`
|
|
1705
|
+
<div class="item-wrapper" style=${Hm(n)}>
|
|
1706
1706
|
${l}
|
|
1707
1707
|
</div>
|
|
1708
|
-
`;this.visibleItems.push({index:t,item:c})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const t=[...this.list.children].map(n=>n.firstElementChild);this.dispatchEvent(new
|
|
1708
|
+
`;this.visibleItems.push({index:t,item:c})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const t=[...this.list.children].map(n=>n.firstElementChild);this.dispatchEvent(new g6({detail:{itemElements:t}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:t},n)=>{var l,c;this.itemHeights[t]=((c=(l=this.visibleItemElements)==null?void 0:l[n])==null?void 0:c.getBoundingClientRect().height)||this.itemHeights[t]})}get visibleItemElements(){var t;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(t=this.shadowRoot)==null?void 0:t.querySelectorAll(this.itemIdentifier)}handleScroll(t){var n;this.currentScrollTop=(n=t.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const t=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,t);return t-n}get rollingEndIndex(){const t=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-t);return t+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),j`
|
|
1709
1709
|
<div class="container" @scroll=${this.handleScroll}>
|
|
1710
1710
|
<div class="list" style="height: ${this.innerHeight}px">
|
|
1711
|
-
${
|
|
1711
|
+
${Nm(this.visibleItems,({index:t})=>t,({item:t})=>t)}
|
|
1712
1712
|
</div>
|
|
1713
1713
|
</div>
|
|
1714
1714
|
`}};exports.VirtualList.styles=[fe`
|
|
@@ -1725,7 +1725,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1725
1725
|
.list {
|
|
1726
1726
|
position: relative;
|
|
1727
1727
|
}
|
|
1728
|
-
`];An([F({type:Array})],exports.VirtualList.prototype,"items",2);An([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);An([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);An([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);An([Be()],exports.VirtualList.prototype,"currentScrollTop",2);An([Be()],exports.VirtualList.prototype,"endIndex",2);An([Be()],exports.VirtualList.prototype,"innerHeight",2);An([Be()],exports.VirtualList.prototype,"itemHeights",2);An([Be()],exports.VirtualList.prototype,"itemIdentifier",2);An([Be()],exports.VirtualList.prototype,"originalItemsCount",2);An([Be()],exports.VirtualList.prototype,"currentItemsCount",2);An([Be()],exports.VirtualList.prototype,"visibleItems",2);An([Ri(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=An([ee(
|
|
1728
|
+
`];An([F({type:Array})],exports.VirtualList.prototype,"items",2);An([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);An([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);An([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);An([Be()],exports.VirtualList.prototype,"currentScrollTop",2);An([Be()],exports.VirtualList.prototype,"endIndex",2);An([Be()],exports.VirtualList.prototype,"innerHeight",2);An([Be()],exports.VirtualList.prototype,"itemHeights",2);An([Be()],exports.VirtualList.prototype,"itemIdentifier",2);An([Be()],exports.VirtualList.prototype,"originalItemsCount",2);An([Be()],exports.VirtualList.prototype,"currentItemsCount",2);An([Be()],exports.VirtualList.prototype,"visibleItems",2);An([Ri(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=An([ee(Zh)],exports.VirtualList);class g6 extends CustomEvent{constructor(t={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...t})}}const v6=Le("record-field"),b6=Le("record-field-label"),Vm=["x-small","small","medium","large","x-large","auto","full"],Wm=["side","top"],Zm=fe`
|
|
1729
1729
|
.size-x-small {
|
|
1730
1730
|
width: 80px;
|
|
1731
1731
|
}
|
|
@@ -1749,7 +1749,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1749
1749
|
.size-full {
|
|
1750
1750
|
width: 100%;
|
|
1751
1751
|
}
|
|
1752
|
-
`,
|
|
1752
|
+
`,Um=fe`
|
|
1753
1753
|
:host {
|
|
1754
1754
|
display: block;
|
|
1755
1755
|
}
|
|
@@ -1823,7 +1823,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1823
1823
|
:host([label-position='side']) .value.size-auto {
|
|
1824
1824
|
flex-grow: 1;
|
|
1825
1825
|
}
|
|
1826
|
-
`,
|
|
1826
|
+
`,Gm=fe`
|
|
1827
1827
|
:host {
|
|
1828
1828
|
display: inline-flex;
|
|
1829
1829
|
color: var(--brz-color-neutral-850);
|
|
@@ -1831,9 +1831,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1831
1831
|
line-height: var(--brz-line-height);
|
|
1832
1832
|
gap: var(--brz-spacing-1);
|
|
1833
1833
|
}
|
|
1834
|
-
`;var
|
|
1834
|
+
`;var qm=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,ta=(o,t,n,l)=>{for(var c=l>1?void 0:l?jm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&qm(t,n,c),c};exports.RecordField=class extends We{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(t){super.updated(t),t.has("labelPosition")&&this.setLabelState(),t.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelRightRowTemplate(){return j`
|
|
1835
1835
|
<brz-split-row
|
|
1836
|
-
class=${
|
|
1836
|
+
class=${En({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
|
|
1837
1837
|
>
|
|
1838
1838
|
${this.labelRightTemplate}
|
|
1839
1839
|
</brz-split-row>
|
|
@@ -1842,28 +1842,28 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1842
1842
|
|
|
1843
1843
|
<div class=${this.labelPosition==="top"?this.sizeClass:"container"}>
|
|
1844
1844
|
<brz-split-row
|
|
1845
|
-
class=${
|
|
1845
|
+
class=${En({label:!0,hidden:this.labelPosition==="top"&&!this.hasLabel&&!this.hasLabelRight,[this.sizeClass]:this.labelPosition==="top"&&this.hasLabelRight})}
|
|
1846
1846
|
>
|
|
1847
1847
|
<slot name="label" slot="left"></slot>
|
|
1848
1848
|
${this.labelPosition==="top"?this.labelRightTemplate:null}
|
|
1849
1849
|
</brz-split-row>
|
|
1850
1850
|
|
|
1851
1851
|
<div
|
|
1852
|
-
class=${
|
|
1852
|
+
class=${En({value:!0,multiline:this.isValueMultiline,[this.sizeClass]:!0})}
|
|
1853
1853
|
>
|
|
1854
1854
|
${this.valueTemplate}
|
|
1855
1855
|
</div>
|
|
1856
1856
|
</div>
|
|
1857
|
-
`}};exports.RecordField.styles=[Zm
|
|
1857
|
+
`}};exports.RecordField.styles=[Um,Zm];ta([F({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);ta([F({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);ta([Be()],exports.RecordField.prototype,"hasLabel",2);ta([Be()],exports.RecordField.prototype,"hasLabelRight",2);ta([Be()],exports.RecordField.prototype,"isValueMultiline",2);ta([Ri(".value")],exports.RecordField.prototype,"value",2);ta([Jo({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);ta([Jo({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=ta([ee(v6)],exports.RecordField);var Km=Object.defineProperty,Ym=Object.getOwnPropertyDescriptor,Uh=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ym(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Km(t,n,c),c};exports.RecordFieldLabel=class extends We{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(t){super.updated(t),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return j` <slot></slot> `}};exports.RecordFieldLabel.styles=[Gm];Uh([Be()],exports.RecordFieldLabel.prototype,"hasContent",2);Uh([Jo()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=Uh([ee(b6)],exports.RecordFieldLabel);var Xm=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Ua=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xm(t,n,c),c};class Yn extends We{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(t){this.value=t.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(t){super.updated(t),this.useProxy&&this.updateProxyInput()}}Yn.shadowRootOptions={mode:"open",delegatesFocus:!0};Ua([F({type:Boolean,reflect:!0})],Yn.prototype,"disabled",2);Ua([F({type:Boolean,reflect:!0})],Yn.prototype,"required",2);Ua([F({type:Boolean,reflect:!0})],Yn.prototype,"invalid",2);Ua([F({type:String})],Yn.prototype,"name",2);Ua([F({type:String})],Yn.prototype,"id",2);Ua([F({type:String})],Yn.prototype,"value",2);Ua([Be()],Yn.prototype,"proxyInput",2);Ua([Be()],Yn.prototype,"useProxy",2);var Qm=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,ty=(o,t,n,l)=>{for(var c=l>1?void 0:l?ey(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qm(t,n,c),c};const ry=Le("input-guide");let q0=class extends We{render(){return j` <slot></slot> `}};q0.styles=fe`
|
|
1858
1858
|
:host {
|
|
1859
1859
|
font-size: var(--brz-font-size-xs);
|
|
1860
1860
|
}
|
|
1861
|
-
`;q0=
|
|
1861
|
+
`;q0=ty([ee(ry)],q0);var ny=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,oy=(o,t,n,l)=>{for(var c=l>1?void 0:l?iy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ny(t,n,c),c};const m6=Le("input-error");exports.InputError=class extends We{render(){return j` <slot></slot> `}};exports.InputError.styles=fe`
|
|
1862
1862
|
:host {
|
|
1863
1863
|
font-size: var(--brz-font-size);
|
|
1864
1864
|
color: var(--brz-color-error);
|
|
1865
1865
|
}
|
|
1866
|
-
`;exports.InputError=
|
|
1866
|
+
`;exports.InputError=oy([ee(m6)],exports.InputError);var ay=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,mo=(o,t,n,l)=>{for(var c=l>1?void 0:l?sy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ay(t,n,c),c};const y6=Le("labeled-input"),C6=Le("input-label"),ly=fe`
|
|
1867
1867
|
.guide {
|
|
1868
1868
|
display: flex;
|
|
1869
1869
|
}
|
|
@@ -1896,7 +1896,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1896
1896
|
${this.renderInputContainer()}
|
|
1897
1897
|
|
|
1898
1898
|
<div
|
|
1899
|
-
class=${
|
|
1899
|
+
class=${En({guide:!0,"has-error":this.hasError})}
|
|
1900
1900
|
>
|
|
1901
1901
|
<brz-input-error>
|
|
1902
1902
|
<slot @slotchange=${this.handleErrorChange} name="error"></slot>
|
|
@@ -1922,7 +1922,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1922
1922
|
:host([optional]:not([required])) .label-flag {
|
|
1923
1923
|
color: var(--brz-color-text-placeholder);
|
|
1924
1924
|
}
|
|
1925
|
-
`,
|
|
1925
|
+
`,ly];mo([F({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);mo([F({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);mo([F({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);mo([Be()],exports.LabeledInput.prototype,"hasPrompt",2);mo([Be()],exports.LabeledInput.prototype,"hasError",2);mo([Be()],exports.LabeledInput.prototype,"hasLabel",2);mo([Jo({slot:"label"})],exports.LabeledInput.prototype,"label",2);mo([Jo({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=mo([ee(y6)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=mo([ee(C6)],exports.InputLabel);var uy=Object.defineProperty,cy=Object.getOwnPropertyDescriptor,hd=(o,t,n,l)=>{for(var c=l>1?void 0:l?cy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&uy(t,n,c),c};const dy=fe`
|
|
1926
1926
|
:host {
|
|
1927
1927
|
--input-text-color: var(--brz-color-neutral-850);
|
|
1928
1928
|
--input-font: var(--brz-font-family);
|
|
@@ -2026,7 +2026,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2026
2026
|
class="trailing"
|
|
2027
2027
|
></brz-icon>`:null}
|
|
2028
2028
|
</div>
|
|
2029
|
-
`}}yn.styles=[...exports.LabeledInput.styles,
|
|
2029
|
+
`}}yn.styles=[...exports.LabeledInput.styles,dy];hd([F({type:Boolean,reflect:!0})],yn.prototype,"readonly",2);hd([F({type:String,reflect:!0})],yn.prototype,"placeholder",2);hd([F({type:String,reflect:!0,attribute:"leading-icon"})],yn.prototype,"leadingIcon",2);hd([F({type:String,reflect:!0,attribute:"trailing-icon"})],yn.prototype,"trailingIcon",2);var fy=Object.defineProperty,hy=Object.getOwnPropertyDescriptor,vi=(o,t,n,l)=>{for(var c=l>1?void 0:l?hy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fy(t,n,c),c};const Ru="searchMessage";class zr extends yn{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(t=>({...t,id:`option-${dh()}`}))]:[]}updated(t){super.updated(t),t.has("options")&&this.setInnerOptions(),t.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(t){var n,l;return t?t instanceof exports.MenuItem?(l=(n=t.textContent)==null?void 0:n.trim())!=null?l:"":t.label:""}handleKeyDown(t){["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.dropdown.open())}handleKeyUp(t){t.key===" "&&this.canSearch&&(t.preventDefault(),this.dropdown.open())}get defaultSlot(){var t,n;return(n=(t=this.renderRoot)==null?void 0:t.querySelector("slot:not([name])"))==null?void 0:n.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var t;return this.isDataDriven?(t=this.virtualListElement)==null?void 0:t.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Zh)}get optionElements(){var n,l,c;const t=(n=this.optionElementsRenderRoot)!=null&&n.querySelectorAll(j0).length?(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll(j0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(t!=null?t:[])}setValue(t){this.value=t,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(t){this.isMenuOpen&&t.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var t;(t=this.dropdown)==null||t.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():j`
|
|
2030
2030
|
<brz-dropdown-menu
|
|
2031
2031
|
@brz-menu-select=${this.handleSelect}
|
|
2032
2032
|
@brz-menu-item-select=${this.handleItemSelect}
|
|
@@ -2057,7 +2057,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2057
2057
|
</brz-menu-item>
|
|
2058
2058
|
`}
|
|
2059
2059
|
></brz-virtual-list>
|
|
2060
|
-
`:null}isQueryMatch(t){return this.query?this.getItemLabel(t).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(t):!1}isCustomQueryMatch(t){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(t){}handleItemSelect(t){}handleValueChange(){}handleQueryInput(t){const n=t.target;this.query=n==null?void 0:n.value,this.dispatchEvent(new
|
|
2060
|
+
`:null}isQueryMatch(t){return this.query?this.getItemLabel(t).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(t):!1}isCustomQueryMatch(t){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(t){}handleItemSelect(t){}handleValueChange(){}handleQueryInput(t){const n=t.target;this.query=n==null?void 0:n.value,this.dispatchEvent(new Gh({detail:{query:this.query}}))}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var t;return!!((t=this.options)!=null&&t.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}zr.styles=[...yn.styles,fe`
|
|
2061
2061
|
:host {
|
|
2062
2062
|
/** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
|
|
2063
2063
|
--dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
|
|
@@ -2102,7 +2102,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
2104
2104
|
button.wrapper {
|
|
2105
|
-
${
|
|
2105
|
+
${D5};
|
|
2106
2106
|
align-items: center;
|
|
2107
2107
|
background-color: var(--brz-color-white);
|
|
2108
2108
|
border: var(--input-border);
|
|
@@ -2140,7 +2140,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2140
2140
|
border-color: var(--input-focus-border-color);
|
|
2141
2141
|
outline: none;
|
|
2142
2142
|
}
|
|
2143
|
-
`];vi([F({type:Boolean})],zr.prototype,"controlled",2);vi([F({attribute:"can-search",type:Boolean,reflect:!0})],zr.prototype,"canSearch",2);vi([F({type:Boolean,reflect:!0})],zr.prototype,"loading",2);vi([F({type:String,reflect:!0,attribute:"trailing-icon"})],zr.prototype,"trailingIcon",2);vi([F({type:Array})],zr.prototype,"options",2);vi([F({attribute:"search-message"})],zr.prototype,"searchMessage",2);vi([Be()],zr.prototype,"isMenuOpen",2);vi([Be()],zr.prototype,"hasResults",2);vi([Be()],zr.prototype,"query",2);vi([Be()],zr.prototype,"innerOptions",2);vi([Ri("brz-dropdown-menu")],zr.prototype,"dropdown",2);vi([Ri("#selectSearch")],zr.prototype,"queryInput",2);class
|
|
2143
|
+
`];vi([F({type:Boolean})],zr.prototype,"controlled",2);vi([F({attribute:"can-search",type:Boolean,reflect:!0})],zr.prototype,"canSearch",2);vi([F({type:Boolean,reflect:!0})],zr.prototype,"loading",2);vi([F({type:String,reflect:!0,attribute:"trailing-icon"})],zr.prototype,"trailingIcon",2);vi([F({type:Array})],zr.prototype,"options",2);vi([F({attribute:"search-message"})],zr.prototype,"searchMessage",2);vi([Be()],zr.prototype,"isMenuOpen",2);vi([Be()],zr.prototype,"hasResults",2);vi([Be()],zr.prototype,"query",2);vi([Be()],zr.prototype,"innerOptions",2);vi([Ri("brz-dropdown-menu")],zr.prototype,"dropdown",2);vi([Ri("#selectSearch")],zr.prototype,"queryInput",2);class Gh extends CustomEvent{constructor(t={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...t})}}var py=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,Xs=(o,t,n,l)=>{for(var c=l>1?void 0:l?gy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&py(t,n,c),c};const j0=Le("menu-item");exports.MenuItem=class extends We{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new w6({detail:{item:this}}))}handleClick(t){t.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&t.stopPropagation()}handleKeyDown(){}get labelTemplate(){return j` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?j`
|
|
2144
2144
|
<brz-input-checkbox
|
|
2145
2145
|
?disabled=${this.disabled}
|
|
2146
2146
|
?checked=${this.selected}
|
|
@@ -2217,7 +2217,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2217
2217
|
padding-left: var(--menu-item-label-gutter);
|
|
2218
2218
|
position: relative;
|
|
2219
2219
|
}
|
|
2220
|
-
`;
|
|
2220
|
+
`;Xs([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Xs([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Xs([F({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Xs([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Xs([F({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Xs([F({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Xs([ee(j0)],exports.MenuItem);class w6 extends CustomEvent{constructor(t={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...t})}}var vy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,Ga=(o,t,n,l)=>{for(var c=l>1?void 0:l?by(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&vy(t,n,c),c};const x6=Le("menu"),Ai="selectAll";exports.Menu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(t){var n;super.updated(t),t.has("highlightedIndex")&&((n=this.highlightedItem)==null||n.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(t){t.preventDefault();const{key:n}=t,l=({before:g,after:h})=>(w,z)=>w.hidden?!1:g===void 0&&h===void 0||g!==void 0&&z<g||h!==void 0&&z>h;this.clearHighlightedItem();const c=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,c[this.highlightedIndex].highlighted=!0;return}n==="ArrowUp"&&(this.highlightedIndex=Wh.findLastIndex(c,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=c.length-1)),n==="ArrowDown"&&(this.highlightedIndex=c.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),c[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(t){if(t.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(t=>t.selected)}getActiveMenuItem(t){return t?t.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(t){if(!this.selectable)return this.bypassSelectedState();if(t.value===void 0)throw new Error("No value found for MenuItem");if(!t.disabled){if(this.multiselect)t.toggle();else{const[n]=this.selectedItems;n==null||n.deselect(),t.select()}this.updateSelected(t.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(t){const n=this.selected.some(c=>t===c);if(this.multiselect&&n){this.selected=this.selected.filter(c=>t!==c);return}n||(this.selected=this.multiselect?[...this.selected,t]:[t])}handleMenuItemSelect(t){t.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(t))}emitSelection(){this.dispatchEvent(new L6({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(t){var n,l;(l=(n=this.keyBindings)[t.key])==null||l.call(n,t)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new z6),this.reset()}handleTabKey(t){t.preventDefault(),this.emitBlur()}applyPropsToChildren(t){my(t)&&t.forEach(n=>{var l;n.selectable=this.selectable&&n.id!==Ru,n.toggleable=this.multiselect&&n.id!==Ru,n.id!==Ai&&(n.selected=n.value!==void 0?(l=this.selected)==null?void 0:l.includes(n.value):!1)})}handleSlotChange(t){const n=t.target.assignedElements({flatten:!0});this.applyPropsToChildren(n)}handleVirtualListUpdate({detail:{itemElements:t}}){this.applyPropsToChildren(t),this.virtualListMenuItems=t}render(){return j`
|
|
2221
2221
|
<ul
|
|
2222
2222
|
class="menu"
|
|
2223
2223
|
role="menu"
|
|
@@ -2263,17 +2263,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2263
2263
|
width: var(--brz-menu-width, 10rem);
|
|
2264
2264
|
padding: 0;
|
|
2265
2265
|
}
|
|
2266
|
-
`;Ga([F({type:Boolean})],exports.Menu.prototype,"multiselect",2);Ga([F({type:Boolean})],exports.Menu.prototype,"selectable",2);Ga([F({type:Array})],exports.Menu.prototype,"selected",2);Ga([F({reflect:!0})],exports.Menu.prototype,"size",2);Ga([Be()],exports.Menu.prototype,"highlightedIndex",2);Ga([Be()],exports.Menu.prototype,"virtualListMenuItems",2);Ga([Jo({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=Ga([ee(
|
|
2266
|
+
`;Ga([F({type:Boolean})],exports.Menu.prototype,"multiselect",2);Ga([F({type:Boolean})],exports.Menu.prototype,"selectable",2);Ga([F({type:Array})],exports.Menu.prototype,"selected",2);Ga([F({reflect:!0})],exports.Menu.prototype,"size",2);Ga([Be()],exports.Menu.prototype,"highlightedIndex",2);Ga([Be()],exports.Menu.prototype,"virtualListMenuItems",2);Ga([Jo({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=Ga([ee(x6)],exports.Menu);const my=o=>o[0]instanceof exports.MenuItem;class z6 extends CustomEvent{constructor(t={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...t})}}class L6 extends CustomEvent{constructor(t={}){super("brz-menu-select",{bubbles:!0,composed:!0,...t})}}var yy=Object.defineProperty,Cy=Object.getOwnPropertyDescriptor,S6=(o,t,n,l)=>{for(var c=l>1?void 0:l?Cy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&yy(t,n,c),c};const M6=Le("combo-box"),_6=Le("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=S6([ee(M6)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=S6([ee(_6)],exports.ComboBoxOption);/*!
|
|
2267
2267
|
* tabbable 6.2.0
|
|
2268
2268
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2269
|
-
*/var
|
|
2269
|
+
*/var T6=["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])"],K0=T6.join(","),O6=typeof Element=="undefined",Ys=O6?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Y0=!O6&&Element.prototype.getRootNode?function(o){var t;return o==null||(t=o.getRootNode)===null||t===void 0?void 0:t.call(o)}:function(o){return o==null?void 0:o.ownerDocument},X0=function o(t,n){var l;n===void 0&&(n=!0);var c=t==null||(l=t.getAttribute)===null||l===void 0?void 0:l.call(t,"inert"),g=c===""||c==="true",h=g||n&&t&&o(t.parentNode);return h},wy=function(t){var n,l=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return l===""||l==="true"},E6=function(t,n,l){if(X0(t))return[];var c=Array.prototype.slice.apply(t.querySelectorAll(K0));return n&&Ys.call(t,K0)&&c.unshift(t),c=c.filter(l),c},k6=function o(t,n,l){for(var c=[],g=Array.from(t);g.length;){var h=g.shift();if(!X0(h,!1))if(h.tagName==="SLOT"){var w=h.assignedElements(),z=w.length?w:h.children,S=o(z,!0,l);l.flatten?c.push.apply(c,S):c.push({scopeParent:h,candidates:S})}else{var k=Ys.call(h,K0);k&&l.filter(h)&&(n||!t.includes(h))&&c.push(h);var D=h.shadowRoot||typeof l.getShadowRoot=="function"&&l.getShadowRoot(h),B=!X0(D,!1)&&(!l.shadowRootFilter||l.shadowRootFilter(h));if(D&&B){var R=o(D===!0?h.children:D.children,!0,l);l.flatten?c.push.apply(c,R):c.push({scopeParent:h,candidates:R})}else g.unshift.apply(g,h.children)}}return c},I6=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Fs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||wy(t))&&!I6(t)?0:t.tabIndex},xy=function(t,n){var l=Fs(t);return l<0&&n&&!I6(t)?0:l},zy=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},A6=function(t){return t.tagName==="INPUT"},Ly=function(t){return A6(t)&&t.type==="hidden"},Sy=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(l){return l.tagName==="SUMMARY"});return n},My=function(t,n){for(var l=0;l<t.length;l++)if(t[l].checked&&t[l].form===n)return t[l]},_y=function(t){if(!t.name)return!0;var n=t.form||Y0(t),l=function(w){return n.querySelectorAll('input[type="radio"][name="'+w+'"]')},c;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")c=l(window.CSS.escape(t.name));else try{c=l(t.name)}catch(h){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",h.message),!1}var g=My(c,t.form);return!g||g===t},Ty=function(t){return A6(t)&&t.type==="radio"},Oy=function(t){return Ty(t)&&!_y(t)},Ey=function(t){var n,l=t&&Y0(t),c=(n=l)===null||n===void 0?void 0:n.host,g=!1;if(l&&l!==t){var h,w,z;for(g=!!((h=c)!==null&&h!==void 0&&(w=h.ownerDocument)!==null&&w!==void 0&&w.contains(c)||t!=null&&(z=t.ownerDocument)!==null&&z!==void 0&&z.contains(t));!g&&c;){var S,k,D;l=Y0(c),c=(S=l)===null||S===void 0?void 0:S.host,g=!!((k=c)!==null&&k!==void 0&&(D=k.ownerDocument)!==null&&D!==void 0&&D.contains(c))}}return g},S2=function(t){var n=t.getBoundingClientRect(),l=n.width,c=n.height;return l===0&&c===0},ky=function(t,n){var l=n.displayCheck,c=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var g=Ys.call(t,"details>summary:first-of-type"),h=g?t.parentElement:t;if(Ys.call(h,"details:not([open]) *"))return!0;if(!l||l==="full"||l==="legacy-full"){if(typeof c=="function"){for(var w=t;t;){var z=t.parentElement,S=Y0(t);if(z&&!z.shadowRoot&&c(z)===!0)return S2(t);t.assignedSlot?t=t.assignedSlot:!z&&S!==t.ownerDocument?t=S.host:t=z}t=w}if(Ey(t))return!t.getClientRects().length;if(l!=="legacy-full")return!0}else if(l==="non-zero-area")return S2(t);return!1},Iy=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var l=0;l<n.children.length;l++){var c=n.children.item(l);if(c.tagName==="LEGEND")return Ys.call(n,"fieldset[disabled] *")?!0:!c.contains(t)}return!0}n=n.parentElement}return!1},J0=function(t,n){return!(n.disabled||X0(n)||Ly(n)||ky(n,t)||Sy(n)||Iy(n))},fh=function(t,n){return!(Oy(n)||Fs(n)<0||!J0(t,n))},Ay=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},$y=function o(t){var n=[],l=[];return t.forEach(function(c,g){var h=!!c.scopeParent,w=h?c.scopeParent:c,z=xy(w,h),S=h?o(c.candidates):w;z===0?h?n.push.apply(n,S):n.push(w):l.push({documentOrder:g,tabIndex:z,item:c,isScope:h,content:S})}),l.sort(zy).reduce(function(c,g){return g.isScope?c.push.apply(c,g.content):c.push(g.content),c},[]).concat(n)},Py=function(t,n){n=n||{};var l;return n.getShadowRoot?l=k6([t],n.includeContainer,{filter:fh.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ay}):l=E6(t,n.includeContainer,fh.bind(null,n)),$y(l)},Dy=function(t,n){n=n||{};var l;return n.getShadowRoot?l=k6([t],n.includeContainer,{filter:J0.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):l=E6(t,n.includeContainer,J0.bind(null,n)),l},e1=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ys.call(t,K0)===!1?!1:fh(n,t)},Ny=T6.concat("iframe").join(","),Gf=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ys.call(t,Ny)===!1?!1:J0(n,t)};/*!
|
|
2270
2270
|
* focus-trap 7.5.4
|
|
2271
2271
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2272
|
-
*/function S2(o,t){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),n.push.apply(n,l)}return n}function M2(o){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S2(Object(n),!0).forEach(function(l){Ny(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):S2(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Ny(o,t,n){return t=Hy(t),t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o}function Ry(o,t){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function Hy(o){var t=Ry(o,"string");return typeof t=="symbol"?t:String(t)}var _2={activateTrap:function(t,n){if(t.length>0){var l=t[t.length-1];l!==n&&l.pause()}var c=t.indexOf(n);c===-1||t.splice(c,1),t.push(n)},deactivateTrap:function(t,n){var l=t.indexOf(n);l!==-1&&t.splice(l,1),t.length>0&&t[t.length-1].unpause()}},Fy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},By=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Ou=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Wy=function(t){return Ou(t)&&!t.shiftKey},Vy=function(t){return Ou(t)&&t.shiftKey},T2=function(t){return setTimeout(t,0)},O2=function(t,n){var l=-1;return t.every(function(c,g){return n(c)?(l=g,!1):!0}),l},wu=function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,l):t},z0=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Zy=[],Uy=function(t,n){var l=(n==null?void 0:n.document)||document,c=(n==null?void 0:n.trapStack)||Zy,g=M2({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Wy,isKeyBackward:Vy},n),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},x,z=function(Q,$,O){return Q&&Q[$]!==void 0?Q[$]:g[O||$]},S=function(Q,$){var O=typeof($==null?void 0:$.composedPath)=="function"?$.composedPath():void 0;return h.containerGroups.findIndex(function(k){var X=k.container,ue=k.tabbableNodes;return X.contains(Q)||(O==null?void 0:O.includes(X))||ue.find(function(Ae){return Ae===Q})})},E=function(Q){var $=g[Q];if(typeof $=="function"){for(var O=arguments.length,k=new Array(O>1?O-1:0),X=1;X<O;X++)k[X-1]=arguments[X];$=$.apply(void 0,k)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ue=$;if(typeof $=="string"&&(ue=l.querySelector($),!ue))throw new Error("`".concat(Q,"` as selector refers to no known node"));return ue},D=function(){var Q=E("initialFocus");if(Q===!1)return!1;if(Q===void 0||!Gf(Q,g.tabbableOptions))if(S(l.activeElement)>=0)Q=l.activeElement;else{var $=h.tabbableGroups[0],O=$&&$.firstTabbableNode;Q=O||E("fallbackFocus")}if(!Q)throw new Error("Your focus-trap needs to have at least one focusable element");return Q},B=function(){if(h.containerGroups=h.containers.map(function(Q){var $=$y(Q,g.tabbableOptions),O=Py(Q,g.tabbableOptions),k=$.length>0?$[0]:void 0,X=$.length>0?$[$.length-1]:void 0,ue=O.find(function(pt){return e1(pt)}),Ae=O.slice().reverse().find(function(pt){return e1(pt)}),et=!!$.find(function(pt){return Hs(pt)>0});return{container:Q,tabbableNodes:$,focusableNodes:O,posTabIndexesFound:et,firstTabbableNode:k,lastTabbableNode:X,firstDomTabbableNode:ue,lastDomTabbableNode:Ae,nextTabbableNode:function(yt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_t=$.indexOf(yt);return _t<0?or?O.slice(O.indexOf(yt)+1).find(function(xt){return e1(xt)}):O.slice(0,O.indexOf(yt)).reverse().find(function(xt){return e1(xt)}):$[_t+(or?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(Q){return Q.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!E("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(h.containerGroups.find(function(Q){return Q.posTabIndexesFound})&&h.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.")},R=function le(Q){var $=Q.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?le($.shadowRoot):$},J=function le(Q){if(Q!==!1&&Q!==R(document)){if(!Q||!Q.focus){le(D());return}Q.focus({preventScroll:!!g.preventScroll}),h.mostRecentlyFocusedNode=Q,Fy(Q)&&Q.select()}},pe=function(Q){var $=E("setReturnFocus",Q);return $||($===!1?!1:Q)},ge=function(Q){var $=Q.target,O=Q.event,k=Q.isBackward,X=k===void 0?!1:k;$=$||z0(O),B();var ue=null;if(h.tabbableGroups.length>0){var Ae=S($,O),et=Ae>=0?h.containerGroups[Ae]:void 0;if(Ae<0)X?ue=h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:ue=h.tabbableGroups[0].firstTabbableNode;else if(X){var pt=O2(h.tabbableGroups,function(ze){var Ne=ze.firstTabbableNode;return $===Ne});if(pt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!e1($,g.tabbableOptions)&&!et.nextTabbableNode($,!1))&&(pt=Ae),pt>=0){var yt=pt===0?h.tabbableGroups.length-1:pt-1,or=h.tabbableGroups[yt];ue=Hs($)>=0?or.lastTabbableNode:or.lastDomTabbableNode}else Ou(O)||(ue=et.nextTabbableNode($,!1))}else{var _t=O2(h.tabbableGroups,function(ze){var Ne=ze.lastTabbableNode;return $===Ne});if(_t<0&&(et.container===$||Gf($,g.tabbableOptions)&&!e1($,g.tabbableOptions)&&!et.nextTabbableNode($))&&(_t=Ae),_t>=0){var xt=_t===h.tabbableGroups.length-1?0:_t+1,rt=h.tabbableGroups[xt];ue=Hs($)>=0?rt.firstTabbableNode:rt.firstDomTabbableNode}else Ou(O)||(ue=et.nextTabbableNode($))}}else ue=E("fallbackFocus");return ue},Te=function(Q){var $=z0(Q);if(!(S($,Q)>=0)){if(wu(g.clickOutsideDeactivates,Q)){x.deactivate({returnFocus:g.returnFocusOnDeactivate});return}wu(g.allowOutsideClick,Q)||Q.preventDefault()}},Ie=function(Q){var $=z0(Q),O=S($,Q)>=0;if(O||$ instanceof Document)O&&(h.mostRecentlyFocusedNode=$);else{Q.stopImmediatePropagation();var k,X=!0;if(h.mostRecentlyFocusedNode)if(Hs(h.mostRecentlyFocusedNode)>0){var ue=S(h.mostRecentlyFocusedNode),Ae=h.containerGroups[ue].tabbableNodes;if(Ae.length>0){var et=Ae.findIndex(function(pt){return pt===h.mostRecentlyFocusedNode});et>=0&&(g.isKeyForward(h.recentNavEvent)?et+1<Ae.length&&(k=Ae[et+1],X=!1):et-1>=0&&(k=Ae[et-1],X=!1))}}else h.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(yt){return Hs(yt)>0})})||(X=!1);else X=!1;X&&(k=ge({target:h.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(h.recentNavEvent)})),J(k||h.mostRecentlyFocusedNode||D())}h.recentNavEvent=void 0},be=function(Q){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h.recentNavEvent=Q;var O=ge({event:Q,isBackward:$});O&&(Ou(Q)&&Q.preventDefault(),J(O))},ve=function(Q){if(By(Q)&&wu(g.escapeDeactivates,Q)!==!1){Q.preventDefault(),x.deactivate();return}(g.isKeyForward(Q)||g.isKeyBackward(Q))&&be(Q,g.isKeyBackward(Q))},Oe=function(Q){var $=z0(Q);S($,Q)>=0||wu(g.clickOutsideDeactivates,Q)||wu(g.allowOutsideClick,Q)||(Q.preventDefault(),Q.stopImmediatePropagation())},$e=function(){if(h.active)return _2.activateTrap(c,x),h.delayInitialFocusTimer=g.delayInitialFocus?T2(function(){J(D())}):J(D()),l.addEventListener("focusin",Ie,!0),l.addEventListener("mousedown",Te,{capture:!0,passive:!1}),l.addEventListener("touchstart",Te,{capture:!0,passive:!1}),l.addEventListener("click",Oe,{capture:!0,passive:!1}),l.addEventListener("keydown",ve,{capture:!0,passive:!1}),x},De=function(){if(h.active)return l.removeEventListener("focusin",Ie,!0),l.removeEventListener("mousedown",Te,!0),l.removeEventListener("touchstart",Te,!0),l.removeEventListener("click",Oe,!0),l.removeEventListener("keydown",ve,!0),x},je=function(Q){var $=Q.some(function(O){var k=Array.from(O.removedNodes);return k.some(function(X){return X===h.mostRecentlyFocusedNode})});$&&J(D())},Ye=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(je):void 0,Ce=function(){Ye&&(Ye.disconnect(),h.active&&!h.paused&&h.containers.map(function(Q){Ye.observe(Q,{subtree:!0,childList:!0})}))};return x={get active(){return h.active},get paused(){return h.paused},activate:function(Q){if(h.active)return this;var $=z(Q,"onActivate"),O=z(Q,"onPostActivate"),k=z(Q,"checkCanFocusTrap");k||B(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=l.activeElement,$==null||$();var X=function(){k&&B(),$e(),Ce(),O==null||O()};return k?(k(h.containers.concat()).then(X,X),this):(X(),this)},deactivate:function(Q){if(!h.active)return this;var $=M2({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},Q);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,De(),h.active=!1,h.paused=!1,Ce(),_2.deactivateTrap(c,x);var O=z($,"onDeactivate"),k=z($,"onPostDeactivate"),X=z($,"checkCanReturnFocus"),ue=z($,"returnFocus","returnFocusOnDeactivate");O==null||O();var Ae=function(){T2(function(){ue&&J(pe(h.nodeFocusedBeforeActivation)),k==null||k()})};return ue&&X?(X(pe(h.nodeFocusedBeforeActivation)).then(Ae,Ae),this):(Ae(),this)},pause:function(Q){if(h.paused||!h.active)return this;var $=z(Q,"onPause"),O=z(Q,"onPostPause");return h.paused=!0,$==null||$(),De(),Ce(),O==null||O(),this},unpause:function(Q){if(!h.paused||!h.active)return this;var $=z(Q,"onUnpause"),O=z(Q,"onPostUnpause");return h.paused=!1,$==null||$(),B(),$e(),Ce(),O==null||O(),this},updateContainerElements:function(Q){var $=[].concat(Q).filter(Boolean);return h.containers=$.map(function(O){return typeof O=="string"?l.querySelector(O):O}),h.active&&B(),Ce(),this}},x.updateContainerElements(t),x},Gy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,Xs=(o,t,n,l)=>{for(var c=l>1?void 0:l?qy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Gy(t,n,c),c};const A6=Le("modal"),jy=["small","medium","large","x-large"];class Gh extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ve{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=t=>{if(t.key==="Escape")return this.handleClose(t)},this.handleClose=t=>{!this.open||t instanceof MouseEvent&&this.noClose||t instanceof MouseEvent&&t.target!==this.overlay||(t.stopPropagation(),this.dispatchEvent(new Gh))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Uy(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(t){super.updated(t),this.updateComplete.then(()=>{this.focusTrap&&t.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(t=this.focusTrap)==null||t.deactivate()}handleTransitionEnd(t){t.target===this.overlay&&(this.open=!1)}render(){return j`
|
|
2272
|
+
*/function M2(o,t){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),n.push.apply(n,l)}return n}function _2(o){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M2(Object(n),!0).forEach(function(l){Ry(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):M2(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Ry(o,t,n){return t=Fy(t),t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o}function Hy(o,t){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function Fy(o){var t=Hy(o,"string");return typeof t=="symbol"?t:String(t)}var T2={activateTrap:function(t,n){if(t.length>0){var l=t[t.length-1];l!==n&&l.pause()}var c=t.indexOf(n);c===-1||t.splice(c,1),t.push(n)},deactivateTrap:function(t,n){var l=t.indexOf(n);l!==-1&&t.splice(l,1),t.length>0&&t[t.length-1].unpause()}},By=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Vy=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Ou=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Wy=function(t){return Ou(t)&&!t.shiftKey},Zy=function(t){return Ou(t)&&t.shiftKey},O2=function(t){return setTimeout(t,0)},E2=function(t,n){var l=-1;return t.every(function(c,g){return n(c)?(l=g,!1):!0}),l},wu=function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,l):t},z0=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Uy=[],Gy=function(t,n){var l=(n==null?void 0:n.document)||document,c=(n==null?void 0:n.trapStack)||Uy,g=_2({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Wy,isKeyBackward:Zy},n),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},w,z=function(Q,$,O){return Q&&Q[$]!==void 0?Q[$]:g[O||$]},S=function(Q,$){var O=typeof($==null?void 0:$.composedPath)=="function"?$.composedPath():void 0;return h.containerGroups.findIndex(function(E){var X=E.container,ue=E.tabbableNodes;return X.contains(Q)||(O==null?void 0:O.includes(X))||ue.find(function(Ae){return Ae===Q})})},k=function(Q){var $=g[Q];if(typeof $=="function"){for(var O=arguments.length,E=new Array(O>1?O-1:0),X=1;X<O;X++)E[X-1]=arguments[X];$=$.apply(void 0,E)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ue=$;if(typeof $=="string"&&(ue=l.querySelector($),!ue))throw new Error("`".concat(Q,"` as selector refers to no known node"));return ue},D=function(){var Q=k("initialFocus");if(Q===!1)return!1;if(Q===void 0||!Gf(Q,g.tabbableOptions))if(S(l.activeElement)>=0)Q=l.activeElement;else{var $=h.tabbableGroups[0],O=$&&$.firstTabbableNode;Q=O||k("fallbackFocus")}if(!Q)throw new Error("Your focus-trap needs to have at least one focusable element");return Q},B=function(){if(h.containerGroups=h.containers.map(function(Q){var $=Py(Q,g.tabbableOptions),O=Dy(Q,g.tabbableOptions),E=$.length>0?$[0]:void 0,X=$.length>0?$[$.length-1]:void 0,ue=O.find(function(pt){return e1(pt)}),Ae=O.slice().reverse().find(function(pt){return e1(pt)}),et=!!$.find(function(pt){return Fs(pt)>0});return{container:Q,tabbableNodes:$,focusableNodes:O,posTabIndexesFound:et,firstTabbableNode:E,lastTabbableNode:X,firstDomTabbableNode:ue,lastDomTabbableNode:Ae,nextTabbableNode:function(yt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Tt=$.indexOf(yt);return Tt<0?or?O.slice(O.indexOf(yt)+1).find(function(xt){return e1(xt)}):O.slice(0,O.indexOf(yt)).reverse().find(function(xt){return e1(xt)}):$[Tt+(or?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(Q){return Q.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!k("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(h.containerGroups.find(function(Q){return Q.posTabIndexesFound})&&h.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.")},R=function le(Q){var $=Q.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?le($.shadowRoot):$},J=function le(Q){if(Q!==!1&&Q!==R(document)){if(!Q||!Q.focus){le(D());return}Q.focus({preventScroll:!!g.preventScroll}),h.mostRecentlyFocusedNode=Q,By(Q)&&Q.select()}},pe=function(Q){var $=k("setReturnFocus",Q);return $||($===!1?!1:Q)},ge=function(Q){var $=Q.target,O=Q.event,E=Q.isBackward,X=E===void 0?!1:E;$=$||z0(O),B();var ue=null;if(h.tabbableGroups.length>0){var Ae=S($,O),et=Ae>=0?h.containerGroups[Ae]:void 0;if(Ae<0)X?ue=h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:ue=h.tabbableGroups[0].firstTabbableNode;else if(X){var pt=E2(h.tabbableGroups,function(ze){var Ne=ze.firstTabbableNode;return $===Ne});if(pt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!e1($,g.tabbableOptions)&&!et.nextTabbableNode($,!1))&&(pt=Ae),pt>=0){var yt=pt===0?h.tabbableGroups.length-1:pt-1,or=h.tabbableGroups[yt];ue=Fs($)>=0?or.lastTabbableNode:or.lastDomTabbableNode}else Ou(O)||(ue=et.nextTabbableNode($,!1))}else{var Tt=E2(h.tabbableGroups,function(ze){var Ne=ze.lastTabbableNode;return $===Ne});if(Tt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!e1($,g.tabbableOptions)&&!et.nextTabbableNode($))&&(Tt=Ae),Tt>=0){var xt=Tt===h.tabbableGroups.length-1?0:Tt+1,rt=h.tabbableGroups[xt];ue=Fs($)>=0?rt.firstTabbableNode:rt.firstDomTabbableNode}else Ou(O)||(ue=et.nextTabbableNode($))}}else ue=k("fallbackFocus");return ue},Te=function(Q){var $=z0(Q);if(!(S($,Q)>=0)){if(wu(g.clickOutsideDeactivates,Q)){w.deactivate({returnFocus:g.returnFocusOnDeactivate});return}wu(g.allowOutsideClick,Q)||Q.preventDefault()}},Ie=function(Q){var $=z0(Q),O=S($,Q)>=0;if(O||$ instanceof Document)O&&(h.mostRecentlyFocusedNode=$);else{Q.stopImmediatePropagation();var E,X=!0;if(h.mostRecentlyFocusedNode)if(Fs(h.mostRecentlyFocusedNode)>0){var ue=S(h.mostRecentlyFocusedNode),Ae=h.containerGroups[ue].tabbableNodes;if(Ae.length>0){var et=Ae.findIndex(function(pt){return pt===h.mostRecentlyFocusedNode});et>=0&&(g.isKeyForward(h.recentNavEvent)?et+1<Ae.length&&(E=Ae[et+1],X=!1):et-1>=0&&(E=Ae[et-1],X=!1))}}else h.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(yt){return Fs(yt)>0})})||(X=!1);else X=!1;X&&(E=ge({target:h.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(h.recentNavEvent)})),J(E||h.mostRecentlyFocusedNode||D())}h.recentNavEvent=void 0},be=function(Q){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h.recentNavEvent=Q;var O=ge({event:Q,isBackward:$});O&&(Ou(Q)&&Q.preventDefault(),J(O))},ve=function(Q){if(Vy(Q)&&wu(g.escapeDeactivates,Q)!==!1){Q.preventDefault(),w.deactivate();return}(g.isKeyForward(Q)||g.isKeyBackward(Q))&&be(Q,g.isKeyBackward(Q))},Oe=function(Q){var $=z0(Q);S($,Q)>=0||wu(g.clickOutsideDeactivates,Q)||wu(g.allowOutsideClick,Q)||(Q.preventDefault(),Q.stopImmediatePropagation())},$e=function(){if(h.active)return T2.activateTrap(c,w),h.delayInitialFocusTimer=g.delayInitialFocus?O2(function(){J(D())}):J(D()),l.addEventListener("focusin",Ie,!0),l.addEventListener("mousedown",Te,{capture:!0,passive:!1}),l.addEventListener("touchstart",Te,{capture:!0,passive:!1}),l.addEventListener("click",Oe,{capture:!0,passive:!1}),l.addEventListener("keydown",ve,{capture:!0,passive:!1}),w},De=function(){if(h.active)return l.removeEventListener("focusin",Ie,!0),l.removeEventListener("mousedown",Te,!0),l.removeEventListener("touchstart",Te,!0),l.removeEventListener("click",Oe,!0),l.removeEventListener("keydown",ve,!0),w},je=function(Q){var $=Q.some(function(O){var E=Array.from(O.removedNodes);return E.some(function(X){return X===h.mostRecentlyFocusedNode})});$&&J(D())},Ye=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(je):void 0,Ce=function(){Ye&&(Ye.disconnect(),h.active&&!h.paused&&h.containers.map(function(Q){Ye.observe(Q,{subtree:!0,childList:!0})}))};return w={get active(){return h.active},get paused(){return h.paused},activate:function(Q){if(h.active)return this;var $=z(Q,"onActivate"),O=z(Q,"onPostActivate"),E=z(Q,"checkCanFocusTrap");E||B(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=l.activeElement,$==null||$();var X=function(){E&&B(),$e(),Ce(),O==null||O()};return E?(E(h.containers.concat()).then(X,X),this):(X(),this)},deactivate:function(Q){if(!h.active)return this;var $=_2({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},Q);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,De(),h.active=!1,h.paused=!1,Ce(),T2.deactivateTrap(c,w);var O=z($,"onDeactivate"),E=z($,"onPostDeactivate"),X=z($,"checkCanReturnFocus"),ue=z($,"returnFocus","returnFocusOnDeactivate");O==null||O();var Ae=function(){O2(function(){ue&&J(pe(h.nodeFocusedBeforeActivation)),E==null||E()})};return ue&&X?(X(pe(h.nodeFocusedBeforeActivation)).then(Ae,Ae),this):(Ae(),this)},pause:function(Q){if(h.paused||!h.active)return this;var $=z(Q,"onPause"),O=z(Q,"onPostPause");return h.paused=!0,$==null||$(),De(),Ce(),O==null||O(),this},unpause:function(Q){if(!h.paused||!h.active)return this;var $=z(Q,"onUnpause"),O=z(Q,"onPostUnpause");return h.paused=!1,$==null||$(),B(),$e(),Ce(),O==null||O(),this},updateContainerElements:function(Q){var $=[].concat(Q).filter(Boolean);return h.containers=$.map(function(O){return typeof O=="string"?l.querySelector(O):O}),h.active&&B(),Ce(),this}},w.updateContainerElements(t),w},qy=Object.defineProperty,jy=Object.getOwnPropertyDescriptor,Js=(o,t,n,l)=>{for(var c=l>1?void 0:l?jy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&qy(t,n,c),c};const $6=Le("modal"),Ky=["small","medium","large","x-large"];class qh extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends We{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=t=>{if(t.key==="Escape")return this.handleClose(t)},this.handleClose=t=>{!this.open||t instanceof MouseEvent&&this.noClose||t instanceof MouseEvent&&t.target!==this.overlay||(t.stopPropagation(),this.dispatchEvent(new qh))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Gy(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(t){super.updated(t),this.updateComplete.then(()=>{this.focusTrap&&t.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(t=this.focusTrap)==null||t.deactivate()}handleTransitionEnd(t){t.target===this.overlay&&(this.open=!1)}render(){return j`
|
|
2273
2273
|
<brz-fade-in-out ?shown=${this.open}>
|
|
2274
2274
|
<div
|
|
2275
2275
|
id="overlay"
|
|
2276
|
-
class="${
|
|
2276
|
+
class="${En({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
|
|
2277
2277
|
@mousedown=${this.handleClose}
|
|
2278
2278
|
@keyup=${()=>{}}
|
|
2279
2279
|
@transitionend=${this.handleTransitionEnd}
|
|
@@ -2351,7 +2351,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2351
2351
|
::slotted(sp-modal-body:first-child) {
|
|
2352
2352
|
padding-top: var(--brz-spacing-10);
|
|
2353
2353
|
}
|
|
2354
|
-
`;
|
|
2354
|
+
`;Js([F({type:String})],exports.Modal.prototype,"size",2);Js([F({type:Boolean})],exports.Modal.prototype,"open",2);Js([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Js([Be()],exports.Modal.prototype,"focusTrap",2);Js([Ri("#overlay")],exports.Modal.prototype,"overlay",2);Js([Ri(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=Js([ee($6)],exports.Modal);var Yy=Object.defineProperty,Xy=Object.getOwnPropertyDescriptor,yo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Yy(t,n,c),c};const P6=Le("split-row"),D6=Le("action-bar");exports.SplitRow=class extends We{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return j`
|
|
2355
2355
|
<brz-row vertical-align=${this.verticalAlign}>
|
|
2356
2356
|
<div class="left">
|
|
2357
2357
|
<slot name="left"></slot>
|
|
@@ -2390,7 +2390,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2390
2390
|
:host([right-expand]) .right {
|
|
2391
2391
|
flex: 1;
|
|
2392
2392
|
}
|
|
2393
|
-
`;yo([F({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);yo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);yo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);yo([F({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);yo([F({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=yo([ee(
|
|
2393
|
+
`;yo([F({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);yo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);yo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);yo([F({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);yo([F({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=yo([ee(P6)],exports.SplitRow);exports.ActionBar=class extends We{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return j`
|
|
2394
2394
|
<brz-split-row
|
|
2395
2395
|
vertical-align="middle"
|
|
2396
2396
|
?left-expand=${this.leftExpand}
|
|
@@ -2409,7 +2409,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2409
2409
|
:host([no-border]) brz-split-row {
|
|
2410
2410
|
box-shadow: none;
|
|
2411
2411
|
}
|
|
2412
|
-
`;yo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);yo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);yo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=yo([ee(
|
|
2412
|
+
`;yo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);yo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);yo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=yo([ee(D6)],exports.ActionBar);var Jy=Object.defineProperty,Qy=Object.getOwnPropertyDescriptor,pd=(o,t,n,l)=>{for(var c=l>1?void 0:l?Qy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Jy(t,n,c),c};const N6=Le("modal-header"),R6=Le("modal-body"),H6=Le("modal-footer");exports.ModalHeader=class extends We{get _noClose(){var t;return(t=ah(this.parentElement,exports.Modal))==null?void 0:t.noClose}_handleClickClose(){this.dispatchEvent(new qh)}render(){return j`
|
|
2413
2413
|
<brz-heading size="xl"><slot></slot></brz-heading>
|
|
2414
2414
|
${this._noClose?void 0:j`
|
|
2415
2415
|
<brz-button
|
|
@@ -2438,7 +2438,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2438
2438
|
brz-button.close {
|
|
2439
2439
|
margin-right: calc(0px - var(--brz-spacing-2));
|
|
2440
2440
|
}
|
|
2441
|
-
`;exports.ModalHeader=pd([ee(
|
|
2441
|
+
`;exports.ModalHeader=pd([ee(N6)],exports.ModalHeader);exports.ModalBody=class extends We{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return j`<slot></slot>`}};exports.ModalBody.styles=fe`
|
|
2442
2442
|
:host {
|
|
2443
2443
|
display: block;
|
|
2444
2444
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
@@ -2448,7 +2448,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2448
2448
|
:host([scrollable]) {
|
|
2449
2449
|
border-bottom: 1px solid var(--brz-color-neutral-300);
|
|
2450
2450
|
}
|
|
2451
|
-
`;pd([F({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=pd([ee(
|
|
2451
|
+
`;pd([F({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=pd([ee(R6)],exports.ModalBody);exports.ModalFooter=class extends We{render(){return j`
|
|
2452
2452
|
<brz-split-row vertical-align="middle">
|
|
2453
2453
|
<slot slot="left" name="left"></slot>
|
|
2454
2454
|
<slot slot="right" name="right"></slot>
|
|
@@ -2458,7 +2458,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2458
2458
|
display: block;
|
|
2459
2459
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
2460
2460
|
}
|
|
2461
|
-
`;exports.ModalFooter=pd([ee(
|
|
2461
|
+
`;exports.ModalFooter=pd([ee(H6)],exports.ModalFooter);var eC=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,F6=(o,t,n,l)=>{for(var c=l>1?void 0:l?tC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&eC(t,n,c),c};const B6=Le("confirmation-dialog");class V6 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class W6 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends We{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new V6)}handleConfirm(){this.dispatchEvent(new W6)}render(){return j`<brz-modal size="small" ?open=${this.open} noClose>
|
|
2462
2462
|
<brz-modal-body>
|
|
2463
2463
|
<slot name="body"></slot>
|
|
2464
2464
|
</brz-modal-body>
|
|
@@ -2472,12 +2472,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2472
2472
|
</brz-button>
|
|
2473
2473
|
</brz-button-group>
|
|
2474
2474
|
</brz-modal-footer>
|
|
2475
|
-
</brz-modal>`}};
|
|
2475
|
+
</brz-modal>`}};F6([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=F6([ee(B6)],exports.ConfirmationDialog);var rC=Object.defineProperty,nC=Object.getOwnPropertyDescriptor,Z6=(o,t,n,l)=>{for(var c=l>1?void 0:l?nC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rC(t,n,c),c};const U6=Le("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(t){if(super.updated(t),t.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;t.has("trailingIcon")&&t.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return j`
|
|
2476
2476
|
<brz-dropdown-menu .size=${this.menuSize}>
|
|
2477
2477
|
${super.render()}
|
|
2478
2478
|
<slot name="options" slot="options"></slot>
|
|
2479
2479
|
</brz-dropdown-menu>
|
|
2480
|
-
`}};
|
|
2480
|
+
`}};Z6([F({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=Z6([ee(U6)],exports.DropdownButton);var iC=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,Qs=(o,t,n,l)=>{for(var c=l>1?void 0:l?oC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&iC(t,n,c),c};const G6=Le("input-checkbox"),Ei={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Yn{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Ei.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(t){t.preventDefault(),t.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Ei.Checked:this.checked=!1;break;case Ei.Empty:this.checked=!0;break;case Ei.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 Ei.Checked:return j`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Ei.Indeterminate:return j`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Ei.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Ei.Checked:this.indeterminate?Ei.Indeterminate:Ei.Empty,j`
|
|
2481
2481
|
<label>
|
|
2482
2482
|
<div class="checkbox-left">
|
|
2483
2483
|
<div
|
|
@@ -2493,8 +2493,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2493
2493
|
@change=${this.onInput}
|
|
2494
2494
|
.value=${this.value}
|
|
2495
2495
|
type="checkbox"
|
|
2496
|
-
?checked=${this.checkboxState===
|
|
2497
|
-
aria-invalid=${
|
|
2496
|
+
?checked=${this.checkboxState===Ei.Checked}
|
|
2497
|
+
aria-invalid=${_t(this.invalid?this.invalid:void 0)}
|
|
2498
2498
|
id=${this.id}
|
|
2499
2499
|
?disabled=${this.disabled}
|
|
2500
2500
|
/>
|
|
@@ -2559,7 +2559,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2559
2559
|
margin-right: var(--brz-spacing-2);
|
|
2560
2560
|
}
|
|
2561
2561
|
|
|
2562
|
-
${
|
|
2562
|
+
${js(".checkbox")}
|
|
2563
2563
|
|
|
2564
2564
|
.checkbox {
|
|
2565
2565
|
width: var(--brz-checkbox-size);
|
|
@@ -2581,15 +2581,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2581
2581
|
position: absolute;
|
|
2582
2582
|
left: 0;
|
|
2583
2583
|
}
|
|
2584
|
-
`];
|
|
2584
|
+
`];Qs([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Qs([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Qs([F()],exports.InputCheckbox.prototype,"value",2);Qs([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Qs([Be()],exports.InputCheckbox.prototype,"checkboxState",2);Qs([Be()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Qs([ee(G6)],exports.InputCheckbox);var aC=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,gd=(o,t,n,l)=>{for(var c=l>1?void 0:l?sC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&aC(t,n,c),c};const q6=Le("input-text");exports.InputText=class extends yn{constructor(){super(...arguments),this.size="medium"}renderInput(){return j`
|
|
2585
2585
|
<input
|
|
2586
2586
|
@input=${this.onInput}
|
|
2587
|
-
.value=${
|
|
2587
|
+
.value=${_t(this.value)}
|
|
2588
2588
|
id=${this.id}
|
|
2589
2589
|
type="text"
|
|
2590
|
-
placeholder=${
|
|
2591
|
-
aria-invalid=${
|
|
2592
|
-
maxlength=${
|
|
2590
|
+
placeholder=${_t(this.placeholder)}
|
|
2591
|
+
aria-invalid=${_t(this.invalid?this.invalid:void 0)}
|
|
2592
|
+
maxlength=${_t(this.maxlength)}
|
|
2593
2593
|
?disabled=${this.disabled}
|
|
2594
2594
|
?readonly=${this.readonly}
|
|
2595
2595
|
/>
|
|
@@ -2597,14 +2597,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2597
2597
|
input {
|
|
2598
2598
|
height: 36px;
|
|
2599
2599
|
}
|
|
2600
|
-
`];gd([F({type:String})],exports.InputText.prototype,"value",2);gd([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);gd([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=gd([ee(
|
|
2600
|
+
`];gd([F({type:String})],exports.InputText.prototype,"value",2);gd([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);gd([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=gd([ee(q6)],exports.InputText);var lC=Object.defineProperty,uC=Object.getOwnPropertyDescriptor,vd=(o,t,n,l)=>{for(var c=l>1?void 0:l?uC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lC(t,n,c),c};const j6=Le("input-textarea");exports.InputTextarea=class extends yn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const t=((l=this.value)==null?void 0:l.length)||0,n=j`${t} of ${this.maxlength}`;return t>=this.maxlength?j`<brz-input-error>${n}</brz-input-error>`:j`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var t;return j`
|
|
2601
2601
|
<textarea
|
|
2602
2602
|
@input=${this.onInput}
|
|
2603
2603
|
.value=${(t=this.value)!=null?t:""}
|
|
2604
2604
|
id=${this.id}
|
|
2605
|
-
placeholder=${
|
|
2606
|
-
aria-invalid=${
|
|
2607
|
-
maxlength=${
|
|
2605
|
+
placeholder=${_t(this.placeholder)}
|
|
2606
|
+
aria-invalid=${_t(this.invalid?this.invalid:void 0)}
|
|
2607
|
+
maxlength=${_t(this.maxlength)}
|
|
2608
2608
|
?disabled=${this.disabled}
|
|
2609
2609
|
?readonly=${this.readonly}
|
|
2610
2610
|
/>
|
|
@@ -2613,7 +2613,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2613
2613
|
height: 100px;
|
|
2614
2614
|
resize: none;
|
|
2615
2615
|
}
|
|
2616
|
-
`];vd([F({type:String})],exports.InputTextarea.prototype,"value",2);vd([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);vd([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=vd([ee(
|
|
2616
|
+
`];vd([F({type:String})],exports.InputTextarea.prototype,"value",2);vd([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);vd([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=vd([ee(j6)],exports.InputTextarea);var cC=Object.defineProperty,dC=Object.getOwnPropertyDescriptor,qa=(o,t,n,l)=>{for(var c=l>1?void 0:l?dC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&cC(t,n,c),c};const K6=Le("input-number"),fC=fe`
|
|
2617
2617
|
/* Chrome, Safari, Edge, Opera */
|
|
2618
2618
|
input::-webkit-outer-spin-button,
|
|
2619
2619
|
input::-webkit-inner-spin-button {
|
|
@@ -2625,7 +2625,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2625
2625
|
input[type='number'] {
|
|
2626
2626
|
-moz-appearance: textfield;
|
|
2627
2627
|
}
|
|
2628
|
-
`,
|
|
2628
|
+
`,Y6=["e","+"],hh=(o,t,n=!1)=>{const l=n?"-?":"",c=t?"([0-9]{0,"+t+"})":"([0-9]+)?",g=o===0?"":"(.([0-9]{0,"+o+"}))?";return new RegExp("^"+l+c+g+"$")},X6=o=>Y6.includes(o.toLowerCase()),hC=o=>!!Y6.find(t=>o.toLowerCase().includes(t)),pC=o=>{var n,l;X6(o.key)&&o.preventDefault();const t=o.target;((n=t==null?void 0:t.value)==null?void 0:n.length)===0&&o.key==="-"&&(t.value=""),((l=t==null?void 0:t.value)==null?void 0:l.length)>0&&o.key==="-"&&o.preventDefault()},gC=(o,t)=>{var h;const n=hh(t,void 0,!0),{clipboardData:l}=o,c=(h=l==null?void 0:l.getData("text"))==null?void 0:h.toLowerCase();if(!c)return;const g=o.target;(!(g!=null&&g.value)||!n.test(g.value+c)&&n.test(c))&&(g.value=""),(X6(c)||hC(c)||!n.test(c))&&(o.stopPropagation(),o.preventDefault())};exports.InputNumber=class extends yn{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var t;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleDecrease(){var t;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleSteppedChange(t){this.value=t,this.dispatchChange()}onInput(t){var l;const n=typeof t.target.value=="string"?parseFloat(t.target.value):t.target.value;if(t.target.value===""||t.target.value==="-"){super.onInput({target:{value:n}});return}if(this.allowValueUpdate(n)){const c=this.decimalPlaces?parseFloat(Number(n).toFixed(this.decimalPlaces)):n;super.onInput({target:{value:c}})}else t.target.value=(l=this.value)!=null?l:"0"}allowValueUpdate(t){const n=this.max?parseInt(this.max.toString()).toString().length:void 0,l=this.min?parseInt(this.min.toString()).toString().length:void 0,c=t<0,g=c?!0:hh(this.decimalPlaces,n).test(t.toString()),h=c?hh(this.decimalPlaces,l,!0).test(t.toString()):!0,w=this.min?t>=this.min:!0,z=this.max?t<=this.max:!0;return!!(g&&h&&w&&z)}handleKeyDown(t){pC(t)}handlePaste(t){gC(t,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:j`
|
|
2629
2629
|
<div class="stepper-container">
|
|
2630
2630
|
<button
|
|
2631
2631
|
@click=${this.handleDecrease}
|
|
@@ -2652,18 +2652,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2652
2652
|
@keydown=${this.handleKeyDown}
|
|
2653
2653
|
@paste=${this.handlePaste}
|
|
2654
2654
|
@input=${this.onInput}
|
|
2655
|
-
.value=${
|
|
2655
|
+
.value=${_t(this.value)}
|
|
2656
2656
|
.step=${this.step}
|
|
2657
2657
|
type="number"
|
|
2658
2658
|
?disabled=${this.disabled}
|
|
2659
2659
|
?readonly=${this.readonly}
|
|
2660
|
-
placeholder=${
|
|
2661
|
-
aria-invalid=${
|
|
2660
|
+
placeholder=${_t(this.placeholder)}
|
|
2661
|
+
aria-invalid=${_t(this.invalid?this.invalid:void 0)}
|
|
2662
2662
|
id=${this.id}
|
|
2663
|
-
min=${
|
|
2664
|
-
max=${
|
|
2663
|
+
min=${_t(this.min)}
|
|
2664
|
+
max=${_t(this.max)}
|
|
2665
|
+
decimal-places=${_t(this.decimalPlaces)}
|
|
2665
2666
|
/>
|
|
2666
|
-
</div>`}};exports.InputNumber.styles=[...yn.styles,
|
|
2667
|
+
</div>`}};exports.InputNumber.styles=[...yn.styles,fC,fe`
|
|
2667
2668
|
:host(:not[has-no-stepper]) input {
|
|
2668
2669
|
padding-right: var(--brz-spacing-20);
|
|
2669
2670
|
}
|
|
@@ -2707,11 +2708,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2707
2708
|
cursor: unset;
|
|
2708
2709
|
background-color: var(--brz-color-neutral-250);
|
|
2709
2710
|
}
|
|
2710
|
-
`];
|
|
2711
|
+
`];qa([F({type:Number})],exports.InputNumber.prototype,"value",2);qa([F({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);qa([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);qa([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);qa([F({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);qa([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);qa([Ri('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=qa([ee(K6)],exports.InputNumber);/**
|
|
2711
2712
|
* @license
|
|
2712
2713
|
* Copyright 2017 Google LLC
|
|
2713
2714
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2714
|
-
*/class
|
|
2715
|
+
*/class ph extends ud{constructor(t){if(super(t),this.et=pr,t.type!==sd.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===pr||t==null)return this.ft=void 0,this.et=t;if(t===Yo)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const n=[t];return n.raw=n,this.ft={_$litType$:this.constructor.resultType,strings:n,values:[]}}}ph.directiveName="unsafeHTML",ph.resultType=1;const vC=ld(ph);var bC=Object.defineProperty,mC=Object.getOwnPropertyDescriptor,el=(o,t,n,l)=>{for(var c=l>1?void 0:l?mC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&bC(t,n,c),c};const J6=Le("input-radio-group"),Q6=Le("input-radio-option"),yC=["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 n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(t.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(t){const n=t.target;this.value=n.value,this.dispatchChange()}renderInput(){return j`
|
|
2715
2716
|
<slot
|
|
2716
2717
|
id="options"
|
|
2717
2718
|
style="display: none;"
|
|
@@ -2726,11 +2727,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2726
2727
|
type="radio"
|
|
2727
2728
|
name=${this.name}
|
|
2728
2729
|
value=${t.value}
|
|
2729
|
-
aria-invalid=${
|
|
2730
|
+
aria-invalid=${_t(this.invalid?this.invalid:void 0)}
|
|
2730
2731
|
?checked=${n}
|
|
2731
2732
|
?disabled=${t.disabled||this.disabled}
|
|
2732
2733
|
/>
|
|
2733
|
-
<label for=${t.value}>${
|
|
2734
|
+
<label for=${t.value}>${vC(t.innerHTML)}</label>
|
|
2734
2735
|
</div>
|
|
2735
2736
|
`})}
|
|
2736
2737
|
</fieldset>
|
|
@@ -2886,31 +2887,31 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2886
2887
|
input[type='radio'][aria-invalid='true'] + label {
|
|
2887
2888
|
color: var(--brz-input-radio-invalid-color);
|
|
2888
2889
|
}
|
|
2889
|
-
`];el([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);el([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);el([Be()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=el([ee(X6)],exports.InputRadio);exports.InputRadioOption=class extends Ve{render(){}};el([F({type:String})],exports.InputRadioOption.prototype,"value",2);el([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=el([ee(J6)],exports.InputRadioOption);var Q6={exports:{}};(function(o,t){(function(n,l){o.exports=l()})(i1,function(){var n=navigator.userAgent,l=navigator.platform,c=/gecko\/\d/i.test(n),g=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),x=/Edge\/(\d+)/.exec(n),z=g||h||x,S=z&&(g?document.documentMode||6:+(x||h)[1]),E=!x&&/WebKit\//.test(n),D=E&&/Qt\/\d+\.\d+/.test(n),B=!x&&/Chrome\//.test(n),R=/Opera\//.test(n),J=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),ge=/PhantomJS/.test(n),Te=J&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Ie=/Android/.test(n),be=Te||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ve=Te||/Mac/.test(l),Oe=/\bCrOS\b/.test(n),$e=/win/i.test(l),De=R&&n.match(/Version\/(\d*\.\d*)/);De&&(De=Number(De[1])),De&&De>=15&&(R=!1,E=!0);var je=ve&&(D||R&&(De==null||De<12.11)),Ye=c||z&&S>=9;function Ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var le=function(e,r){var s=e.className,a=Ce(r).exec(s);if(a){var d=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(d?a[1]+d:"")}};function Q(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function $(e,r){return Q(e).appendChild(r)}function O(e,r,s,a){var d=document.createElement(e);if(s&&(d.className=s),a&&(d.style.cssText=a),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var p=0;p<r.length;++p)d.appendChild(r[p]);return d}function k(e,r,s,a){var d=O(e,r,s,a);return d.setAttribute("role","presentation"),d}var X;document.createRange?X=function(e,r,s,a){var d=document.createRange();return d.setEnd(a||e,s),d.setStart(e,r),d}:X=function(e,r,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ue(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function Ae(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function et(e,r){var s=e.className;Ce(r).test(s)||(e.className+=(s?" ":"")+r)}function pt(e,r){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!Ce(s[a]).test(r)&&(r+=" "+s[a]);return r}var yt=function(e){e.select()};Te?yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:z&&(yt=function(e){try{e.select()}catch{}});function or(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function _t(e,r,s){r||(r={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=e[a]);return r}function xt(e,r,s,a,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var p=a||0,v=d||0;;){var m=e.indexOf(" ",p);if(m<0||m>=r)return v+(r-p);v+=m-p,v+=s-v%s,p=m+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=or(this.onTimeout,this)};rt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},rt.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function ze(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ne=50,Ge={toString:function(){return"CodeMirror.Pass"}},st={scroll:!1},lt={origin:"*mouse"},Ue={origin:"+move"};function Zt(e,r,s){for(var a=0,d=0;;){var p=e.indexOf(" ",a);p==-1&&(p=e.length);var v=p-a;if(p==e.length||d+v>=r)return a+Math.min(v,r-d);if(d+=p-a,d+=s-d%s,a=p+1,d>=r)return a}}var Ur=[""];function tr(e){for(;Ur.length<=e;)Ur.push(Qe(Ur)+" ");return Ur[e]}function Qe(e){return e[e.length-1]}function bt(e,r){for(var s=[],a=0;a<e.length;a++)s[a]=r(e[a],a);return s}function Et(e,r,s){for(var a=0,d=s(r);a<e.length&&s(e[a])<=d;)a++;e.splice(a,0,r)}function Pr(){}function en(e,r){var s;return Object.create?s=Object.create(e):(Pr.prototype=e,s=new Pr),r&&_t(r,s),s}var ar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ar.test(e))}function U(e,r){return r?r.source.indexOf("\\w")>-1&&it(e)?!0:r.test(e):it(e)}function se(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Y=/[\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 tt(e){return e.charCodeAt(0)>=768&&Y.test(e)}function sr(e,r,s){for(;(s<0?r>0:r<e.length)&&tt(e.charAt(r));)r+=s;return r}function Lr(e,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,p=a<0?Math.ceil(d):Math.floor(d);if(p==r)return e(p)?r:s;e(p)?s=p:r=p+a}}function $n(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var d=!1,p=0;p<e.length;++p){var v=e[p];(v.from<s&&v.to>r||r==s&&v.to==r)&&(a(Math.max(v.from,r),Math.min(v.to,s),v.level==1?"rtl":"ltr",p),d=!0)}d||a(r,s,"ltr")}var Gr=null;function Vt(e,r,s){var a;Gr=null;for(var d=0;d<e.length;++d){var p=e[d];if(p.from<r&&p.to>r)return d;p.to==r&&(p.from!=p.to&&s=="before"?a=d:Gr=d),p.from==r&&(p.from!=p.to&&s!="before"?a=d:Gr=d)}return a!=null?a:Gr}var bi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?r.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,p=/[LRr]/,v=/[Lb1n]/,m=/[1n]/;function y(C,T,I){this.level=C,this.from=T,this.to=I}return function(C,T){var I=T=="ltr"?"L":"R";if(C.length==0||T=="ltr"&&!a.test(C))return!1;for(var W=C.length,H=[],K=0;K<W;++K)H.push(s(C.charCodeAt(K)));for(var ne=0,he=I;ne<W;++ne){var me=H[ne];me=="m"?H[ne]=he:he=me}for(var xe=0,ye=I;xe<W;++xe){var Se=H[xe];Se=="1"&&ye=="r"?H[xe]="n":p.test(Se)&&(ye=Se,Se=="r"&&(H[xe]="R"))}for(var He=1,Pe=H[0];He<W-1;++He){var ut=H[He];ut=="+"&&Pe=="1"&&H[He+1]=="1"?H[He]="1":ut==","&&Pe==H[He+1]&&(Pe=="1"||Pe=="n")&&(H[He]=Pe),Pe=ut}for(var It=0;It<W;++It){var rr=H[It];if(rr==",")H[It]="N";else if(rr=="%"){var Nt=void 0;for(Nt=It+1;Nt<W&&H[Nt]=="%";++Nt);for(var Fr=It&&H[It-1]=="!"||Nt<W&&H[Nt]=="1"?"1":"N",Br=It;Br<Nt;++Br)H[Br]=Fr;It=Nt-1}}for(var Xt=0,Cr=I;Xt<W;++Xt){var cr=H[Xt];Cr=="L"&&cr=="1"?H[Xt]="L":p.test(cr)&&(Cr=cr)}for(var $t=0;$t<W;++$t)if(d.test(H[$t])){var Ft=void 0;for(Ft=$t+1;Ft<W&&d.test(H[Ft]);++Ft);for(var jt=($t?H[$t-1]:I)=="L",Wr=(Ft<W?H[Ft]:I)=="L",$a=jt==Wr?jt?"L":"R":I,go=$t;go<Ft;++go)H[go]=$a;$t=Ft-1}for(var Ar=[],si,dr=0;dr<W;)if(v.test(H[dr])){var pu=dr;for(++dr;dr<W&&v.test(H[dr]);++dr);Ar.push(new y(0,pu,dr))}else{var _i=dr,Vo=Ar.length,Zo=T=="rtl"?1:0;for(++dr;dr<W&&H[dr]!="L";++dr);for(var Vr=_i;Vr<dr;)if(m.test(H[Vr])){_i<Vr&&(Ar.splice(Vo,0,new y(1,_i,Vr)),Vo+=Zo);var Pa=Vr;for(++Vr;Vr<dr&&m.test(H[Vr]);++Vr);Ar.splice(Vo,0,new y(2,Pa,Vr)),Vo+=Zo,_i=Vr}else++Vr;_i<dr&&Ar.splice(Vo,0,new y(1,_i,dr))}return T=="ltr"&&(Ar[0].level==1&&(si=C.match(/^\s+/))&&(Ar[0].from=si[0].length,Ar.unshift(new y(0,0,si[0].length))),Qe(Ar).level==1&&(si=C.match(/\s+$/))&&(Qe(Ar).to-=si[0].length,Ar.push(new y(0,W-si[0].length,W)))),T=="rtl"?Ar.reverse():Ar}}();function Dr(e,r){var s=e.order;return s==null&&(s=e.order=bi(e.text,r)),s}var Pn=[],We=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var a=e._handlers||(e._handlers={});a[r]=(a[r]||Pn).concat(s)}};function Wi(e,r){return e._handlers&&e._handlers[r]||Pn}function Sr(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var a=e._handlers,d=a&&a[r];if(d){var p=ze(d,s);p>-1&&(a[r]=d.slice(0,p).concat(d.slice(p+1)))}}}function qe(e,r){var s=Wi(e,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,a)}function Jt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,s||r.type,e,r),ln(r)||r.codemirrorIgnore}function na(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ze(s,r[a])==-1&&s.push(r[a])}function gr(e,r){return Wi(e,r).length>0}function Dn(e){e.prototype.on=function(r,s){We(this,r,s)},e.prototype.off=function(r,s){Sr(this,r,s)}}function vr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ia(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wo(e){vr(e),ia(e)}function Vi(e){return e.target||e.srcElement}function ja(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),ve&&e.ctrlKey&&r==1&&(r=3),r}var Ka=function(){if(z&&S<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),qr;function rl(e){if(qr==null){var r=O("span","");$(e,O("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qr=r.offsetWidth<=1&&r.offsetHeight>2&&!(z&&S<8))}var s=qr?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var xo;function Xn(e){if(xo!=null)return xo;var r=$(e,document.createTextNode("AخA")),s=X(r,0,1).getBoundingClientRect(),a=X(r,1,2).getBoundingClientRect();return Q(e),!s||s.left==s.right?!1:xo=a.right-s.right<3}var zo=`
|
|
2890
|
+
`];el([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);el([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);el([Be()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=el([ee(J6)],exports.InputRadio);exports.InputRadioOption=class extends We{render(){}};el([F({type:String})],exports.InputRadioOption.prototype,"value",2);el([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=el([ee(Q6)],exports.InputRadioOption);var e4={exports:{}};(function(o,t){(function(n,l){o.exports=l()})(i1,function(){var n=navigator.userAgent,l=navigator.platform,c=/gecko\/\d/i.test(n),g=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),w=/Edge\/(\d+)/.exec(n),z=g||h||w,S=z&&(g?document.documentMode||6:+(w||h)[1]),k=!w&&/WebKit\//.test(n),D=k&&/Qt\/\d+\.\d+/.test(n),B=!w&&/Chrome\//.test(n),R=/Opera\//.test(n),J=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),ge=/PhantomJS/.test(n),Te=J&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Ie=/Android/.test(n),be=Te||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ve=Te||/Mac/.test(l),Oe=/\bCrOS\b/.test(n),$e=/win/i.test(l),De=R&&n.match(/Version\/(\d*\.\d*)/);De&&(De=Number(De[1])),De&&De>=15&&(R=!1,k=!0);var je=ve&&(D||R&&(De==null||De<12.11)),Ye=c||z&&S>=9;function Ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var le=function(e,r){var s=e.className,a=Ce(r).exec(s);if(a){var d=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(d?a[1]+d:"")}};function Q(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function $(e,r){return Q(e).appendChild(r)}function O(e,r,s,a){var d=document.createElement(e);if(s&&(d.className=s),a&&(d.style.cssText=a),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var p=0;p<r.length;++p)d.appendChild(r[p]);return d}function E(e,r,s,a){var d=O(e,r,s,a);return d.setAttribute("role","presentation"),d}var X;document.createRange?X=function(e,r,s,a){var d=document.createRange();return d.setEnd(a||e,s),d.setStart(e,r),d}:X=function(e,r,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ue(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function Ae(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function et(e,r){var s=e.className;Ce(r).test(s)||(e.className+=(s?" ":"")+r)}function pt(e,r){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!Ce(s[a]).test(r)&&(r+=" "+s[a]);return r}var yt=function(e){e.select()};Te?yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:z&&(yt=function(e){try{e.select()}catch{}});function or(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function Tt(e,r,s){r||(r={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=e[a]);return r}function xt(e,r,s,a,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var p=a||0,v=d||0;;){var m=e.indexOf(" ",p);if(m<0||m>=r)return v+(r-p);v+=m-p,v+=s-v%s,p=m+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=or(this.onTimeout,this)};rt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},rt.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function ze(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ne=50,Ge={toString:function(){return"CodeMirror.Pass"}},st={scroll:!1},lt={origin:"*mouse"},Ue={origin:"+move"};function Zt(e,r,s){for(var a=0,d=0;;){var p=e.indexOf(" ",a);p==-1&&(p=e.length);var v=p-a;if(p==e.length||d+v>=r)return a+Math.min(v,r-d);if(d+=p-a,d+=s-d%s,a=p+1,d>=r)return a}}var Ur=[""];function tr(e){for(;Ur.length<=e;)Ur.push(Qe(Ur)+" ");return Ur[e]}function Qe(e){return e[e.length-1]}function bt(e,r){for(var s=[],a=0;a<e.length;a++)s[a]=r(e[a],a);return s}function kt(e,r,s){for(var a=0,d=s(r);a<e.length&&s(e[a])<=d;)a++;e.splice(a,0,r)}function Pr(){}function en(e,r){var s;return Object.create?s=Object.create(e):(Pr.prototype=e,s=new Pr),r&&Tt(r,s),s}var ar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ar.test(e))}function U(e,r){return r?r.source.indexOf("\\w")>-1&&it(e)?!0:r.test(e):it(e)}function se(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Y=/[\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 tt(e){return e.charCodeAt(0)>=768&&Y.test(e)}function sr(e,r,s){for(;(s<0?r>0:r<e.length)&&tt(e.charAt(r));)r+=s;return r}function Lr(e,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,p=a<0?Math.ceil(d):Math.floor(d);if(p==r)return e(p)?r:s;e(p)?s=p:r=p+a}}function $n(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var d=!1,p=0;p<e.length;++p){var v=e[p];(v.from<s&&v.to>r||r==s&&v.to==r)&&(a(Math.max(v.from,r),Math.min(v.to,s),v.level==1?"rtl":"ltr",p),d=!0)}d||a(r,s,"ltr")}var Gr=null;function Wt(e,r,s){var a;Gr=null;for(var d=0;d<e.length;++d){var p=e[d];if(p.from<r&&p.to>r)return d;p.to==r&&(p.from!=p.to&&s=="before"?a=d:Gr=d),p.from==r&&(p.from!=p.to&&s!="before"?a=d:Gr=d)}return a!=null?a:Gr}var bi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?r.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,p=/[LRr]/,v=/[Lb1n]/,m=/[1n]/;function y(C,T,I){this.level=C,this.from=T,this.to=I}return function(C,T){var I=T=="ltr"?"L":"R";if(C.length==0||T=="ltr"&&!a.test(C))return!1;for(var V=C.length,H=[],K=0;K<V;++K)H.push(s(C.charCodeAt(K)));for(var ne=0,he=I;ne<V;++ne){var me=H[ne];me=="m"?H[ne]=he:he=me}for(var xe=0,ye=I;xe<V;++xe){var Se=H[xe];Se=="1"&&ye=="r"?H[xe]="n":p.test(Se)&&(ye=Se,Se=="r"&&(H[xe]="R"))}for(var He=1,Pe=H[0];He<V-1;++He){var ut=H[He];ut=="+"&&Pe=="1"&&H[He+1]=="1"?H[He]="1":ut==","&&Pe==H[He+1]&&(Pe=="1"||Pe=="n")&&(H[He]=Pe),Pe=ut}for(var It=0;It<V;++It){var rr=H[It];if(rr==",")H[It]="N";else if(rr=="%"){var Nt=void 0;for(Nt=It+1;Nt<V&&H[Nt]=="%";++Nt);for(var Fr=It&&H[It-1]=="!"||Nt<V&&H[Nt]=="1"?"1":"N",Br=It;Br<Nt;++Br)H[Br]=Fr;It=Nt-1}}for(var Xt=0,Cr=I;Xt<V;++Xt){var cr=H[Xt];Cr=="L"&&cr=="1"?H[Xt]="L":p.test(cr)&&(Cr=cr)}for(var $t=0;$t<V;++$t)if(d.test(H[$t])){var Ft=void 0;for(Ft=$t+1;Ft<V&&d.test(H[Ft]);++Ft);for(var jt=($t?H[$t-1]:I)=="L",Vr=(Ft<V?H[Ft]:I)=="L",$a=jt==Vr?jt?"L":"R":I,go=$t;go<Ft;++go)H[go]=$a;$t=Ft-1}for(var Ar=[],si,dr=0;dr<V;)if(v.test(H[dr])){var pu=dr;for(++dr;dr<V&&v.test(H[dr]);++dr);Ar.push(new y(0,pu,dr))}else{var _i=dr,Wo=Ar.length,Zo=T=="rtl"?1:0;for(++dr;dr<V&&H[dr]!="L";++dr);for(var Wr=_i;Wr<dr;)if(m.test(H[Wr])){_i<Wr&&(Ar.splice(Wo,0,new y(1,_i,Wr)),Wo+=Zo);var Pa=Wr;for(++Wr;Wr<dr&&m.test(H[Wr]);++Wr);Ar.splice(Wo,0,new y(2,Pa,Wr)),Wo+=Zo,_i=Wr}else++Wr;_i<dr&&Ar.splice(Wo,0,new y(1,_i,dr))}return T=="ltr"&&(Ar[0].level==1&&(si=C.match(/^\s+/))&&(Ar[0].from=si[0].length,Ar.unshift(new y(0,0,si[0].length))),Qe(Ar).level==1&&(si=C.match(/\s+$/))&&(Qe(Ar).to-=si[0].length,Ar.push(new y(0,V-si[0].length,V)))),T=="rtl"?Ar.reverse():Ar}}();function Dr(e,r){var s=e.order;return s==null&&(s=e.order=bi(e.text,r)),s}var Pn=[],Ve=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var a=e._handlers||(e._handlers={});a[r]=(a[r]||Pn).concat(s)}};function Vi(e,r){return e._handlers&&e._handlers[r]||Pn}function Sr(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var a=e._handlers,d=a&&a[r];if(d){var p=ze(d,s);p>-1&&(a[r]=d.slice(0,p).concat(d.slice(p+1)))}}}function qe(e,r){var s=Vi(e,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,a)}function Jt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,s||r.type,e,r),ln(r)||r.codemirrorIgnore}function na(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ze(s,r[a])==-1&&s.push(r[a])}function gr(e,r){return Vi(e,r).length>0}function Dn(e){e.prototype.on=function(r,s){Ve(this,r,s)},e.prototype.off=function(r,s){Sr(this,r,s)}}function vr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ia(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wo(e){vr(e),ia(e)}function Wi(e){return e.target||e.srcElement}function Ka(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),ve&&e.ctrlKey&&r==1&&(r=3),r}var Ya=function(){if(z&&S<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),qr;function rl(e){if(qr==null){var r=O("span","");$(e,O("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qr=r.offsetWidth<=1&&r.offsetHeight>2&&!(z&&S<8))}var s=qr?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var xo;function Xn(e){if(xo!=null)return xo;var r=$(e,document.createTextNode("AخA")),s=X(r,0,1).getBoundingClientRect(),a=X(r,1,2).getBoundingClientRect();return Q(e),!s||s.left==s.right?!1:xo=a.right-s.right<3}var zo=`
|
|
2890
2891
|
|
|
2891
2892
|
b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.indexOf(`
|
|
2892
|
-
`,r);d==-1&&(d=e.length);var p=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),v=p.indexOf("\r");v!=-1?(s.push(p.slice(0,v)),r+=v+1):(s.push(p),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},nl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},il=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ya=null;function Zi(e){if(Ya!=null)return Ya;var r=$(e,O("span","x")),s=r.getBoundingClientRect(),a=X(r,0,1).getBoundingClientRect();return Ya=Math.abs(s.left-a.left)>1}var Cn={},un={};function ol(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Cn[e]=r}function mi(e,r){un[e]=r}function Lo(e){if(typeof e=="string"&&un.hasOwnProperty(e))e=un[e];else if(e&&typeof e.name=="string"&&un.hasOwnProperty(e.name)){var r=un[e.name];typeof r=="string"&&(r={name:r}),e=en(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oa(e,r){r=Lo(r);var s=Cn[r.name];if(!s)return oa(e,"text/plain");var a=s(e,r);if(Nn.hasOwnProperty(r.name)){var d=Nn[r.name];for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)&&(a["_"+p]=a[p]),a[p]=d[p])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var v in r.modeProps)a[v]=r.modeProps[v];return a}var Nn={};function Rn(e,r){var s=Nn.hasOwnProperty(e)?Nn[e]:Nn[e]={};_t(r,s)}function cn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var d=r[a];d instanceof Array&&(d=d.concat([])),s[a]=d}return s}function Xa(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function Ja(e,r,s){return e.startState?e.startState(r,s):!0}var Bt=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Bt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return xt(this.string,null,this.tabSize)-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,r,s){if(typeof e=="string"){var a=function(v){return s?v.toLowerCase():v},d=this.string.substr(this.pos,e.length);if(a(d)==a(e))return r!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&r!==!1&&(this.pos+=p[0].length),p)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ee(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var d=s.children[a],p=d.chunkSize();if(r<p){s=d;break}r-=p}return s.lines[r]}function dn(e,r,s){var a=[],d=r.line;return e.iter(r.line,s.line+1,function(p){var v=p.text;d==s.line&&(v=v.slice(0,s.ch)),d==r.line&&(v=v.slice(r.ch)),a.push(v),++d}),a}function Qa(e,r,s){var a=[];return e.iter(r,s,function(d){a.push(d.text)}),a}function tn(e,r){var s=r-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var r=e.parent,s=ze(r.lines,e),a=r.parent;a;r=a,a=a.parent)for(var d=0;a.children[d]!=r;++d)s+=a.children[d].chunkSize();return s+r.first}function Hn(e,r){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var d=e.children[a],p=d.height;if(r<p){e=d;continue e}r-=p,s+=d.chunkSize()}return s}while(!e.lines);for(var v=0;v<e.lines.length;++v){var m=e.lines[v],y=m.height;if(r<y)break;r-=y}return s+v}function Ui(e,r){return r>=e.first&&r<e.first+e.size}function aa(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,s){if(s===void 0&&(s=null),!(this instanceof ae))return new ae(e,r,s);this.line=e,this.ch=r,this.sticky=s}function w(e,r){return e.line-r.line||e.ch-r.ch}function A(e,r){return e.sticky==r.sticky&&w(e,r)==0}function te(e){return ae(e.line,e.ch)}function ce(e,r){return w(e,r)<0?r:e}function Ke(e,r){return w(e,r)<0?e:r}function gt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function we(e,r){if(r.line<e.first)return ae(e.first,0);var s=e.first+e.size-1;return r.line>s?ae(s,Ee(e,s).text.length):Mr(r,Ee(e,r.line).text.length)}function Mr(e,r){var s=e.ch;return s==null||s>r?ae(e.line,r):s<0?ae(e.line,0):e}function rn(e,r){for(var s=[],a=0;a<r.length;a++)s[a]=we(e,r[a]);return s}var yi=function(e,r){this.state=e,this.lookAhead=r},Fn=function(e,r,s,a){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Fn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Fn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Fn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Fn.fromSaved=function(e,r,s){return r instanceof yi?new Fn(e,cn(e.mode,r.state),s,r.lookAhead):new Fn(e,cn(e.mode,r),s)},Fn.prototype.save=function(e){var r=e!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yi(r,this.maxLookAhead):r};function tc(e,r,s,a){var d=[e.state.modeGen],p={};z1(e,r.text,e.doc.mode,s,function(C,T){return d.push(C,T)},p,a);for(var v=s.state,m=function(C){s.baseTokens=d;var T=e.state.overlays[C],I=1,W=0;s.state=!0,z1(e,r.text,T.mode,s,function(H,K){for(var ne=I;W<H;){var he=d[I];he>H&&d.splice(I,1,H,d[I+1],he),I+=2,W=Math.min(H,he)}if(K)if(T.opaque)d.splice(ne,I-ne,H,"overlay "+K),I=ne+2;else for(;ne<I;ne+=2){var me=d[ne+1];d[ne+1]=(me?me+" ":"")+"overlay "+K}},p),s.state=v,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:d,classes:p.bgClass||p.textClass?p:null}}function x1(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var a=sa(e,zt(r)),d=r.text.length>e.options.maxHighlightLength&&cn(e.doc.mode,a.state),p=tc(e,r,a);d&&(a.state=d),r.stateAfter=a.save(!d),r.styles=p.styles,p.classes?r.styleClasses=p.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function sa(e,r,s){var a=e.doc,d=e.display;if(!a.mode.startState)return new Fn(a,!0,r);var p=nc(e,r,s),v=p>a.first&&Ee(a,p-1).stateAfter,m=v?Fn.fromSaved(a,v,p):new Fn(a,Ja(a.mode),p);return a.iter(p,r,function(y){es(e,y.text,m);var C=m.line;y.stateAfter=C==r-1||C%5==0||C>=d.viewFrom&&C<d.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function es(e,r,s,a){var d=e.doc.mode,p=new Bt(r,e.options.tabSize,s);for(p.start=p.pos=a||0,r==""&&rc(d,s.state);!p.eol();)al(d,p,s.state),p.start=p.pos}function rc(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=Xa(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function al(e,r,s,a){for(var d=0;d<10;d++){a&&(a[0]=Xa(e,s).mode);var p=e.token(r,s);if(r.pos>r.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var sl=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function ll(e,r,s,a){var d=e.doc,p=d.mode,v;r=we(d,r);var m=Ee(d,r.line),y=sa(e,r.line,s),C=new Bt(m.text,e.options.tabSize,y),T;for(a&&(T=[]);(a||C.pos<r.ch)&&!C.eol();)C.start=C.pos,v=al(p,C,y.state),a&&T.push(new sl(C,v,cn(d.mode,y.state)));return a?T:new sl(C,v,y.state)}function So(e,r){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return e}function z1(e,r,s,a,d,p,v){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,T=new Bt(r,e.options.tabSize,a),I,W=e.options.addModeClass&&[null];for(r==""&&So(rc(s,a.state),p);!T.eol();){if(T.pos>e.options.maxHighlightLength?(m=!1,v&&es(e,r,a,T.pos),T.pos=r.length,I=null):I=So(al(s,T,a.state,W),p),W){var H=W[0].name;H&&(I="m-"+(I?H+" "+I:H))}if(!m||C!=I){for(;y<T.start;)y=Math.min(T.start,y+5e3),d(y,C);C=I}T.start=T.pos}for(;y<T.pos;){var K=Math.min(T.pos,y+5e3);d(K,C),y=K}}function nc(e,r,s){for(var a,d,p=e.doc,v=s?-1:r-(e.doc.mode.innerMode?1e3:100),m=r;m>v;--m){if(m<=p.first)return p.first;var y=Ee(p,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof yi?C.lookAhead:0)<=p.modeFrontier))return m;var T=xt(y.text,null,e.options.tabSize);(d==null||a>T)&&(d=m-1,a=T)}return d}function Id(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,a=r-1;a>s;a--){var d=Ee(e,a).stateAfter;if(d&&(!(d instanceof yi)||a+d.lookAhead<r)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var L1=!1,Jn=!1;function ic(){L1=!0}function oc(){Jn=!0}function ul(e,r,s){this.marker=e,this.from=r,this.to=s}function ts(e,r){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==r)return a}}function Ad(e,r){for(var s,a=0;a<e.length;++a)e[a]!=r&&(s||(s=[])).push(e[a]);return s}function ac(e,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],a&&a.add(e.markedSpans)),r.marker.attachLine(e)}function $d(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);if(m||p.from==r&&v.type=="bookmark"&&(!s||!p.marker.insertLeft)){var y=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);(a||(a=[])).push(new ul(v,p.from,y?null:p.to))}}return a}function Pd(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);if(m||p.from==r&&v.type=="bookmark"&&(!s||p.marker.insertLeft)){var y=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);(a||(a=[])).push(new ul(v,y?null:p.from-r,p.to==null?null:p.to-r))}}return a}function S1(e,r){if(r.full)return null;var s=Ui(e,r.from.line)&&Ee(e,r.from.line).markedSpans,a=Ui(e,r.to.line)&&Ee(e,r.to.line).markedSpans;if(!s&&!a)return null;var d=r.from.ch,p=r.to.ch,v=w(r.from,r.to)==0,m=$d(s,d,v),y=Pd(a,p,v),C=r.text.length==1,T=Qe(r.text).length+(C?d:0);if(m)for(var I=0;I<m.length;++I){var W=m[I];if(W.to==null){var H=ts(y,W.marker);H?C&&(W.to=H.to==null?null:H.to+T):W.to=d}}if(y)for(var K=0;K<y.length;++K){var ne=y[K];if(ne.to!=null&&(ne.to+=T),ne.from==null){var he=ts(m,ne.marker);he||(ne.from=T,C&&(m||(m=[])).push(ne))}else ne.from+=T,C&&(m||(m=[])).push(ne)}m&&(m=sc(m)),y&&y!=m&&(y=sc(y));var me=[m];if(!C){var xe=r.text.length-2,ye;if(xe>0&&m)for(var Se=0;Se<m.length;++Se)m[Se].to==null&&(ye||(ye=[])).push(new ul(m[Se].marker,null,null));for(var He=0;He<xe;++He)me.push(ye);me.push(y)}return me}function sc(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function M1(e,r,s){var a=null;if(e.iter(r.line,s.line+1,function(H){if(H.markedSpans)for(var K=0;K<H.markedSpans.length;++K){var ne=H.markedSpans[K].marker;ne.readOnly&&(!a||ze(a,ne)==-1)&&(a||(a=[])).push(ne)}}),!a)return null;for(var d=[{from:r,to:s}],p=0;p<a.length;++p)for(var v=a[p],m=v.find(0),y=0;y<d.length;++y){var C=d[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var T=[y,1],I=w(C.from,m.from),W=w(C.to,m.to);(I<0||!v.inclusiveLeft&&!I)&&T.push({from:C.from,to:m.from}),(W>0||!v.inclusiveRight&&!W)&&T.push({from:m.to,to:C.to}),d.splice.apply(d,T),y+=T.length-3}}return d}function lc(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function uc(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function cl(e){return e.inclusiveLeft?-1:0}function dl(e){return e.inclusiveRight?1:0}function _1(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var a=e.find(),d=r.find(),p=w(a.from,d.from)||cl(e)-cl(r);if(p)return-p;var v=w(a.to,d.to)||dl(e)-dl(r);return v||r.id-e.id}function Wt(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=void 0,p=0;p<s.length;++p)d=s[p],d.marker.collapsed&&(r?d.from:d.to)==null&&(!a||_1(a,d.marker)<0)&&(a=d.marker);return a}function Ht(e){return Wt(e,!0)}function fl(e){return Wt(e,!1)}function Dd(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=0;d<s.length;++d){var p=s[d];p.marker.collapsed&&(p.from==null||p.from<r)&&(p.to==null||p.to>r)&&(!a||_1(a,p.marker)<0)&&(a=p.marker)}return a}function cc(e,r,s,a,d){var p=Ee(e,r),v=Jn&&p.markedSpans;if(v)for(var m=0;m<v.length;++m){var y=v[m];if(y.marker.collapsed){var C=y.marker.find(0),T=w(C.from,s)||cl(y.marker)-cl(d),I=w(C.to,a)||dl(y.marker)-dl(d);if(!(T>=0&&I<=0||T<=0&&I>=0)&&(T<=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||T>=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function Qn(e){for(var r;r=Ht(e);)e=r.find(-1,!0).line;return e}function Nd(e){for(var r;r=fl(e);)e=r.find(1,!0).line;return e}function Rd(e){for(var r,s;r=fl(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function hl(e,r){var s=Ee(e,r),a=Qn(s);return s==a?r:zt(a)}function dc(e,r){if(r>e.lastLine())return r;var s=Ee(e,r),a;if(!Ut(e,s))return r;for(;a=fl(s);)s=a.find(1,!0).line;return zt(s)+1}function Ut(e,r){var s=Jn&&r.markedSpans;if(s){for(var a=void 0,d=0;d<s.length;++d)if(a=s[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&rs(e,r,a))return!0}}}function rs(e,r,s){if(s.to==null){var a=s.marker.find(1,!0);return rs(e,a.line,ts(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,p=0;p<r.markedSpans.length;++p)if(d=r.markedSpans[p],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&rs(e,r,d))return!0}function jr(e){e=Qn(e);for(var r=0,s=e.parent,a=0;a<s.lines.length;++a){var d=s.lines[a];if(d==e)break;r+=d.height}for(var p=s.parent;p;s=p,p=s.parent)for(var v=0;v<p.children.length;++v){var m=p.children[v];if(m==s)break;r+=m.height}return r}function ns(e){if(e.height==0)return 0;for(var r=e.text.length,s,a=e;s=Ht(a);){var d=s.find(0,!0);a=d.from.line,r+=d.from.ch-d.to.ch}for(a=e;s=fl(a);){var p=s.find(0,!0);r-=a.text.length-p.from.ch,a=p.to.line,r+=a.text.length-p.to.ch}return r}function is(e){var r=e.display,s=e.doc;r.maxLine=Ee(s,s.first),r.maxLineLength=ns(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var d=ns(a);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=a)})}var _r=function(e,r,s){this.text=e,uc(this,r),this.height=s?s(this):1};_r.prototype.lineNo=function(){return zt(this)},Dn(_r);function fc(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),lc(e),uc(e,s);var d=a?a(e):1;d!=e.height&&tn(e,d)}function hc(e){e.parent=null,lc(e)}var pc={},gc={};function T1(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?gc:pc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function O1(e,r){var s=k("span",null,null,E?"padding-right: .1px":null),a={pre:k("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var p=d?r.rest[d-1]:r.line,v=void 0;a.pos=0,a.addToken=Hd,Xn(e.display.measure)&&(v=Dr(p,e.doc.direction))&&(a.addToken=Fd(a.addToken,v)),a.map=[];var m=r!=e.display.externalMeasured&&zt(p);Gi(p,a,x1(e,p,m)),p.styleClasses&&(p.styleClasses.bgClass&&(a.bgClass=pt(p.styleClasses.bgClass,a.bgClass||"")),p.styleClasses.textClass&&(a.textClass=pt(p.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(rl(e.display.measure))),d==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(E){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return qe(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=pt(a.pre.className,a.textClass||"")),a}function fn(e){var r=O("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Hd(e,r,s,a,d,p,v){if(r){var m=e.splitSpaces?wn(r,e.trailingSpace):r,y=e.cm.state.specialChars,C=!1,T;if(!y.test(r))e.col+=r.length,T=document.createTextNode(m),e.map.push(e.pos,e.pos+r.length,T),z&&S<9&&(C=!0),e.pos+=r.length;else{T=document.createDocumentFragment();for(var I=0;;){y.lastIndex=I;var W=y.exec(r),H=W?W.index-I:r.length-I;if(H){var K=document.createTextNode(m.slice(I,I+H));z&&S<9?T.appendChild(O("span",[K])):T.appendChild(K),e.map.push(e.pos,e.pos+H,K),e.col+=H,e.pos+=H}if(!W)break;I+=H+1;var ne=void 0;if(W[0]==" "){var he=e.cm.options.tabSize,me=he-e.col%he;ne=T.appendChild(O("span",tr(me),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),e.col+=me}else W[0]=="\r"||W[0]==`
|
|
2893
|
-
`?(ne=T.appendChild(O("span",W[0]=="\r"?"␍":"","cm-invalidchar")),ne.setAttribute("cm-text",W[0]),e.col+=1):(ne=e.cm.options.specialCharPlaceholder(W[0]),ne.setAttribute("cm-text",W[0]),z&&S<9?T.appendChild(O("span",[ne])):T.appendChild(ne),e.col+=1);e.map.push(e.pos,e.pos+1,ne),e.pos++}}if(e.trailingSpace=m.charCodeAt(r.length-1)==32,s||a||d||C||p||v){var xe=s||"";a&&(xe+=a),d&&(xe+=d);var ye=O("span",[T],xe,p);if(v)for(var Se in v)v.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&ye.setAttribute(Se,v[Se]);return e.content.appendChild(ye)}e.content.appendChild(T)}}function wn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",d=0;d<e.length;d++){var p=e.charAt(d);p==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(p=" "),a+=p,s=p==" "}return a}function Fd(e,r){return function(s,a,d,p,v,m,y){d=d?d+" cm-force-border":"cm-force-border";for(var C=s.pos,T=C+a.length;;){for(var I=void 0,W=0;W<r.length&&(I=r[W],!(I.to>C&&I.from<=C));W++);if(I.to>=T)return e(s,a,d,p,v,m,y);e(s,a.slice(0,I.to-C),d,p,null,m,y),p=null,a=a.slice(I.to-C),C=I.to}}}function k1(e,r,s,a){var d=!a&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!a&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function Gi(e,r,s){var a=e.markedSpans,d=e.text,p=0;if(!a){for(var v=1;v<s.length;v+=2)r.addToken(r,d.slice(p,p=s[v]),T1(s[v+1],r.cm.options));return}for(var m=d.length,y=0,C=1,T="",I,W,H=0,K,ne,he,me,xe;;){if(H==y){K=ne=he=W="",xe=null,me=null,H=1/0;for(var ye=[],Se=void 0,He=0;He<a.length;++He){var Pe=a[He],ut=Pe.marker;if(ut.type=="bookmark"&&Pe.from==y&&ut.widgetNode)ye.push(ut);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ut.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&H>Pe.to&&(H=Pe.to,ne=""),ut.className&&(K+=" "+ut.className),ut.css&&(W=(W?W+";":"")+ut.css),ut.startStyle&&Pe.from==y&&(he+=" "+ut.startStyle),ut.endStyle&&Pe.to==H&&(Se||(Se=[])).push(ut.endStyle,Pe.to),ut.title&&((xe||(xe={})).title=ut.title),ut.attributes)for(var It in ut.attributes)(xe||(xe={}))[It]=ut.attributes[It];ut.collapsed&&(!me||_1(me.marker,ut)<0)&&(me=Pe)}else Pe.from>y&&H>Pe.from&&(H=Pe.from)}if(Se)for(var rr=0;rr<Se.length;rr+=2)Se[rr+1]==H&&(ne+=" "+Se[rr]);if(!me||me.from==y)for(var Nt=0;Nt<ye.length;++Nt)k1(r,0,ye[Nt]);if(me&&(me.from||0)==y){if(k1(r,(me.to==null?m+1:me.to)-y,me.marker,me.from==null),me.to==null)return;me.to==y&&(me=!1)}}if(y>=m)break;for(var Fr=Math.min(m,H);;){if(T){var Br=y+T.length;if(!me){var Xt=Br>Fr?T.slice(0,Fr-y):T;r.addToken(r,Xt,I?I+K:K,he,y+Xt.length==H?ne:"",W,xe)}if(Br>=Fr){T=T.slice(Fr-y),y=Fr;break}y=Br,he=""}T=d.slice(p,p=s[C++]),I=T1(s[C++],r.cm.options)}}}function os(e,r,s){this.line=r,this.rest=Rd(r),this.size=this.rest?zt(Qe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Ut(e,r)}function la(e,r,s){for(var a=[],d,p=r;p<s;p=d){var v=new os(e.doc,Ee(e.doc,p),p);d=p+v.size,a.push(v)}return a}var At=null;function qi(e){At?At.ops.push(e):e.ownsGroup=At={ops:[e],delayedCallbacks:[]}}function E1(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<e.ops.length;a++){var d=e.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function Bd(e,r){var s=e.ownsGroup;if(s)try{E1(s)}finally{At=null,r(s)}}var Mo=null;function lr(e,r){var s=Wi(e,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),d;At?d=At.delayedCallbacks:Mo?d=Mo:(d=Mo=[],setTimeout(Wd,0));for(var p=function(m){d.push(function(){return s[m].apply(null,a)})},v=0;v<s.length;++v)p(v)}}function Wd(){var e=Mo;Mo=null;for(var r=0;r<e.length;++r)e[r]()}function vc(e,r,s,a){for(var d=0;d<r.changes.length;d++){var p=r.changes[d];p=="text"?Vd(e,r):p=="gutter"?I1(e,r,s,a):p=="class"?gl(e,r):p=="widget"&&A1(e,r,a)}r.changes=null}function ua(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),z&&S<8&&(e.node.style.zIndex=2)),e.node}function pl(e,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=ua(r);r.background=a.insertBefore(O("div",null,s),a.firstChild),e.display.input.setUneditable(r.background)}}function _o(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):O1(e,r)}function Vd(e,r){var s=r.text.className,a=_o(e,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,gl(e,r)):s&&(r.text.className=s)}function gl(e,r){pl(e,r),r.line.wrapClass?ua(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 I1(e,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 d=ua(r);r.gutterBackground=O("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var p=r.line.gutterMarkers;if(e.options.lineNumbers||p){var v=ua(r),m=r.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),v.insertBefore(m,r.text),r.line.gutterClass&&(m.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(r.lineNumber=m.appendChild(O("div",aa(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,T=p.hasOwnProperty(C)&&p[C];T&&m.appendChild(O("div",[T],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function A1(e,r,s){r.alignable&&(r.alignable=null);for(var a=Ce("CodeMirror-linewidget"),d=r.node.firstChild,p=void 0;d;d=p)p=d.nextSibling,a.test(d.className)&&r.node.removeChild(d);P1(e,r,s)}function $1(e,r,s,a){var d=_o(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),gl(e,r),I1(e,r,s,a),P1(e,r,a),r.node}function P1(e,r,s){if(bc(e,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)bc(e,r.rest[a],r,s,!1)}function bc(e,r,s,a,d){if(r.widgets)for(var p=ua(s),v=0,m=r.widgets;v<m.length;++v){var y=m[v],C=O("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),D1(y,C,s,a),e.display.input.setUneditable(C),d&&y.above?p.insertBefore(C,s.gutter||s.text):p.appendChild(C),lr(y,"redraw")}}function D1(e,r,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=a.wrapperWidth;r.style.left=a.fixedPos+"px",e.coverGutter||(d-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function To(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!ue(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),$(r.display.measure,O("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Ci(e,r){for(var s=Vi(r);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function as(e){return e.lineSpace.offsetTop}function Kr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function vl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=$(e.measure,O("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)&&(e.cachedPaddingH=a),a}function nn(e){return Ne-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function bl(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function Zd(e,r,s){var a=e.options.lineWrapping,d=a&&ji(e);if(!r.measure.heights||a&&r.measure.width!=d){var p=r.measure.heights=[];if(a){r.measure.width=d;for(var v=r.text.firstChild.getClientRects(),m=0;m<v.length-1;m++){var y=v[m],C=v[m+1];Math.abs(y.bottom-C.bottom)>2&&p.push((y.bottom+C.top)/2-s.top)}}p.push(s.bottom-s.top)}}function mc(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==r)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var d=0;d<e.rest.length;d++)if(zt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Ud(e,r){r=Qn(r);var s=zt(r),a=e.display.externalMeasured=new os(e.doc,r,s);a.lineN=s;var d=a.built=O1(e,a);return a.text=d.pre,$(e.display.lineMeasure,d.pre),a}function yc(e,r,s,a){return ei(e,Bn(e,r),s,a)}function N1(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[ri(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Bn(e,r){var s=zt(r),a=N1(e,s);a&&!a.text?a=null:a&&a.changes&&(vc(e,a,s,on(e)),e.curOp.forceUpdate=!0),a||(a=Ud(e,r));var d=mc(a,r,s);return{line:r,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ei(e,r,s,a,d){r.before&&(s=-1);var p=s+(a||""),v;return r.cache.hasOwnProperty(p)?v=r.cache[p]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Zd(e,r.view,r.rect),r.hasHeights=!0),v=Ki(e,r,s,a),v.bogus||(r.cache[p]=v)),{left:v.left,right:v.right,top:d?v.rtop:v.top,bottom:d?v.rbottom:v.bottom}}var Cc={left:0,right:0,top:0,bottom:0};function ml(e,r,s){for(var a,d,p,v,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],r<m?(d=0,p=1,v="left"):r<y?(d=r-m,p=d+1):(C==e.length-3||r==y&&e[C+3]>r)&&(p=y-m,d=p-1,r>=y&&(v="right")),d!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(v=s),s=="left"&&d==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],v="left";if(s=="right"&&d==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],v="right";break}return{node:a,start:d,end:p,collapse:v,coverStart:m,coverEnd:y}}function wc(e,r){var s=Cc;if(r=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function Ki(e,r,s,a){var d=ml(r.map,s,a),p=d.node,v=d.start,m=d.end,y=d.collapse,C;if(p.nodeType==3){for(var T=0;T<4;T++){for(;v&&tt(r.line.text.charAt(d.coverStart+v));)--v;for(;d.coverStart+m<d.coverEnd&&tt(r.line.text.charAt(d.coverStart+m));)++m;if(z&&S<9&&v==0&&m==d.coverEnd-d.coverStart?C=p.parentNode.getBoundingClientRect():C=wc(X(p,v,m).getClientRects(),a),C.left||C.right||v==0)break;m=v,v=v-1,y="right"}z&&S<11&&(C=yl(e.display.measure,C))}else{v>0&&(y=a="right");var I;e.options.lineWrapping&&(I=p.getClientRects()).length>1?C=I[a=="right"?I.length-1:0]:C=p.getBoundingClientRect()}if(z&&S<9&&!v&&(!C||!C.left&&!C.right)){var W=p.parentNode.getClientRects()[0];W?C={left:W.left,right:W.left+ca(e.display),top:W.top,bottom:W.bottom}:C=Cc}for(var H=C.top-r.rect.top,K=C.bottom-r.rect.top,ne=(H+K)/2,he=r.view.measure.heights,me=0;me<he.length-1&&!(ne<he[me]);me++);var xe=me?he[me-1]:0,ye=he[me],Se={left:(y=="right"?C.right:C.left)-r.rect.left,right:(y=="left"?C.left:C.right)-r.rect.left,top:xe,bottom:ye};return!C.left&&!C.right&&(Se.bogus=!0),e.options.singleCursorHeightPerLine||(Se.rtop=H,Se.rbottom=K),Se}function yl(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zi(e))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 xc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function zc(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)xc(e.display.view[r])}function ss(e){zc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Oo(){return B&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function xn(){return B&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Cl(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=To(e.widgets[s]));return r}function wl(e,r,s,a,d){if(!d){var p=Cl(r);s.top+=p,s.bottom+=p}if(a=="line")return s;a||(a="local");var v=jr(r);if(a=="local"?v+=as(e.display):v-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();v+=m.top+(a=="window"?0:xn());var y=m.left+(a=="window"?0:Oo());s.left+=y,s.right+=y}return s.top+=v,s.bottom+=v,s}function Lc(e,r,s){if(s=="div")return r;var a=r.left,d=r.top;if(s=="page")a-=Oo(),d-=xn();else if(s=="local"||!s){var p=e.display.sizer.getBoundingClientRect();a+=p.left,d+=p.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:a-v.left,top:d-v.top}}function xl(e,r,s,a,d){return a||(a=Ee(e.doc,r.line)),wl(e,a,yc(e,a,r.ch,d),s)}function Wn(e,r,s,a,d,p){a=a||Ee(e.doc,r.line),d||(d=Bn(e,a));function v(K,ne){var he=ei(e,d,K,ne?"right":"left",p);return ne?he.left=he.right:he.right=he.left,wl(e,a,he,s)}var m=Dr(a,e.doc.direction),y=r.ch,C=r.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return v(C=="before"?y-1:y,C=="before");function T(K,ne,he){var me=m[ne],xe=me.level==1;return v(he?K-1:K,xe!=he)}var I=Vt(m,y,C),W=Gr,H=T(y,I,C=="before");return W!=null&&(H.other=T(y,W,C!="before")),H}function Sc(e,r){var s=0;r=we(e.doc,r),e.options.lineWrapping||(s=ca(e.display)*r.ch);var a=Ee(e.doc,r.line),d=jr(a)+as(e.display);return{left:s,right:s,top:d,bottom:d+a.height}}function Yi(e,r,s,a,d){var p=ae(e,r,s);return p.xRel=d,a&&(p.outside=a),p}function V(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Yi(a.first,0,null,-1,-1);var d=Hn(a,s),p=a.first+a.size-1;if(d>p)return Yi(a.first+a.size-1,Ee(a,p).text.length,null,1,1);r<0&&(r=0);for(var v=Ee(a,d);;){var m=nt(e,v,d,r,s),y=Dd(v,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==d)return C;v=Ee(a,d=C.line)}}function re(e,r,s,a){a-=Cl(r);var d=r.text.length,p=Lr(function(v){return ei(e,s,v-1).bottom<=a},d,0);return d=Lr(function(v){return ei(e,s,v).top>a},p,d),{begin:p,end:d}}function q(e,r,s,a){s||(s=Bn(e,r));var d=wl(e,r,ei(e,s,a),"line").top;return re(e,r,s,d)}function ke(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function nt(e,r,s,a,d){d-=jr(r);var p=Bn(e,r),v=Cl(r),m=0,y=r.text.length,C=!0,T=Dr(r,e.doc.direction);if(T){var I=(e.options.lineWrapping?ur:Tt)(e,r,s,p,T,a,d);C=I.level!=1,m=C?I.from:I.to-1,y=C?I.to:I.from-1}var W=null,H=null,K=Lr(function(He){var Pe=ei(e,p,He);return Pe.top+=v,Pe.bottom+=v,ke(Pe,a,d,!1)?(Pe.top<=d&&Pe.left<=a&&(W=He,H=Pe),!0):!1},m,y),ne,he,me=!1;if(H){var xe=a-H.left<H.right-a,ye=xe==C;K=W+(ye?0:1),he=ye?"after":"before",ne=xe?H.left:H.right}else{!C&&(K==y||K==m)&&K++,he=K==0?"after":K==r.text.length?"before":ei(e,p,K-(C?1:0)).bottom+v<=d==C?"after":"before";var Se=Wn(e,ae(s,K,he),"line",r,p);ne=Se.left,me=d<Se.top?-1:d>=Se.bottom?1:0}return K=sr(r.text,K,1),Yi(s,K,he,me,a-ne)}function Tt(e,r,s,a,d,p,v){var m=Lr(function(I){var W=d[I],H=W.level!=1;return ke(Wn(e,ae(s,H?W.to:W.from,H?"before":"after"),"line",r,a),p,v,!0)},0,d.length-1),y=d[m];if(m>0){var C=y.level!=1,T=Wn(e,ae(s,C?y.from:y.to,C?"after":"before"),"line",r,a);ke(T,p,v,!0)&&T.top>v&&(y=d[m-1])}return y}function ur(e,r,s,a,d,p,v){var m=re(e,r,a,v),y=m.begin,C=m.end;/\s/.test(r.text.charAt(C-1))&&C--;for(var T=null,I=null,W=0;W<d.length;W++){var H=d[W];if(!(H.from>=C||H.to<=y)){var K=H.level!=1,ne=ei(e,a,K?Math.min(C,H.to)-1:Math.max(y,H.from)).right,he=ne<p?p-ne+1e9:ne-p;(!T||I>he)&&(T=H,I=he)}}return T||(T=d[d.length-1]),T.from<y&&(T={from:y,to:T.to,level:T.level}),T.to>C&&(T={from:T.from,to:C,level:T.level}),T}var Ct;function Xi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ct==null){Ct=O("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ct.appendChild(document.createTextNode("x")),Ct.appendChild(O("br"));Ct.appendChild(document.createTextNode("x"))}$(e.measure,Ct);var s=Ct.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),Q(e.measure),s||1}function ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=O("span","xxxxxxxxxx"),s=O("pre",[r],"CodeMirror-line-like");$(e.measure,s);var a=r.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function on(e){for(var r=e.display,s={},a={},d=r.gutters.clientLeft,p=r.gutters.firstChild,v=0;p;p=p.nextSibling,++v){var m=e.display.gutterSpecs[v].className;s[m]=p.offsetLeft+p.clientLeft+d,a[m]=p.clientWidth}return{fixedPos:da(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Mc(e){var r=Xi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/ca(e.display)-3);return function(d){if(Ut(e.doc,d))return 0;var p=0;if(d.widgets)for(var v=0;v<d.widgets.length;v++)d.widgets[v].height&&(p+=d.widgets[v].height);return s?p+(Math.ceil(d.text.length/a)||1)*r:p+r}}function Ji(e){var r=e.doc,s=Mc(e);r.iter(function(a){var d=s(a);d!=a.height&&tn(a,d)})}function ti(e,r,s,a){var d=e.display;if(!s&&Vi(r).getAttribute("cm-not-content")=="true")return null;var p,v,m=d.lineSpace.getBoundingClientRect();try{p=r.clientX-m.left,v=r.clientY-m.top}catch{return null}var y=V(e,p,v),C;if(a&&y.xRel>0&&(C=Ee(e.doc,y.line).text).length==y.ch){var T=xt(C,C.length,e.options.tabSize)-C.length;y=ae(y.line,Math.max(0,Math.round((p-vl(e.display).left)/ca(e.display))-T))}return y}function ri(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function ot(e,r,s,a){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var d=e.display;if(a&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)Jn&&hl(e.doc,r)<d.viewTo&&wi(e);else if(s<=d.viewFrom)Jn&&dc(e.doc,s+a)>d.viewFrom?wi(e):(d.viewFrom+=a,d.viewTo+=a);else if(r<=d.viewFrom&&s>=d.viewTo)wi(e);else if(r<=d.viewFrom){var p=ko(e,s,s+a,1);p?(d.view=d.view.slice(p.index),d.viewFrom=p.lineN,d.viewTo+=a):wi(e)}else if(s>=d.viewTo){var v=ko(e,r,r,-1);v?(d.view=d.view.slice(0,v.index),d.viewTo=v.lineN):wi(e)}else{var m=ko(e,r,r,-1),y=ko(e,s,s+a,1);m&&y?(d.view=d.view.slice(0,m.index).concat(la(e,m.lineN,y.lineN)).concat(d.view.slice(y.index)),d.viewTo+=a):wi(e)}var C=d.externalMeasured;C&&(s<C.lineN?C.lineN+=a:r<C.lineN+C.size&&(d.externalMeasured=null))}function Qi(e,r,s){e.curOp.viewChanged=!0;var a=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var p=a.view[ri(e,r)];if(p.node!=null){var v=p.changes||(p.changes=[]);ze(v,s)==-1&&v.push(s)}}}function wi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ko(e,r,s,a){var d=ri(e,r),p,v=e.display.view;if(!Jn||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var m=e.display.viewFrom,y=0;y<d;y++)m+=v[y].size;if(m!=r){if(a>0){if(d==v.length-1)return null;p=m+v[d].size-r,d++}else p=m-r;r+=p,s+=p}for(;hl(e.doc,s)!=s;){if(d==(a<0?0:v.length-1))return null;s+=a*v[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:s}}function Gd(e,r,s){var a=e.display,d=a.view;d.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=la(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=la(e,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(ri(e,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(la(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,ri(e,s)))),a.viewTo=s}function _c(e){for(var r=e.display.view,s=0,a=0;a<r.length;a++){var d=r[a];!d.hidden&&(!d.node||d.changes)&&++s}return s}function ls(e){e.display.input.showSelection(e.display.input.prepareSelection())}function us(e,r){r===void 0&&(r=!0);for(var s=e.doc,a={},d=a.cursors=document.createDocumentFragment(),p=a.selection=document.createDocumentFragment(),v=0;v<s.sel.ranges.length;v++)if(!(!r&&v==s.sel.primIndex)){var m=s.sel.ranges[v];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&xi(e,m.head,d),y||Tc(e,m,p)}}return a}function xi(e,r,s){var a=Wn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(O("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=xl(e,r,"div",null,null);d.style.width=Math.max(0,p.right-p.left)+"px"}if(a.other){var v=s.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=a.other.left+"px",v.style.top=a.other.top+"px",v.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function Eo(e,r){return e.top-r.top||e.left-r.left}function Tc(e,r,s){var a=e.display,d=e.doc,p=document.createDocumentFragment(),v=vl(e.display),m=v.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-v.right,C=d.direction=="ltr";function T(ye,Se,He,Pe){Se<0&&(Se=0),Se=Math.round(Se),Pe=Math.round(Pe),p.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
|
|
2893
|
+
`,r);d==-1&&(d=e.length);var p=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),v=p.indexOf("\r");v!=-1?(s.push(p.slice(0,v)),r+=v+1):(s.push(p),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},nl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},il=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Xa=null;function Zi(e){if(Xa!=null)return Xa;var r=$(e,O("span","x")),s=r.getBoundingClientRect(),a=X(r,0,1).getBoundingClientRect();return Xa=Math.abs(s.left-a.left)>1}var Cn={},un={};function ol(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Cn[e]=r}function mi(e,r){un[e]=r}function Lo(e){if(typeof e=="string"&&un.hasOwnProperty(e))e=un[e];else if(e&&typeof e.name=="string"&&un.hasOwnProperty(e.name)){var r=un[e.name];typeof r=="string"&&(r={name:r}),e=en(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oa(e,r){r=Lo(r);var s=Cn[r.name];if(!s)return oa(e,"text/plain");var a=s(e,r);if(Nn.hasOwnProperty(r.name)){var d=Nn[r.name];for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)&&(a["_"+p]=a[p]),a[p]=d[p])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var v in r.modeProps)a[v]=r.modeProps[v];return a}var Nn={};function Rn(e,r){var s=Nn.hasOwnProperty(e)?Nn[e]:Nn[e]={};Tt(r,s)}function cn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var d=r[a];d instanceof Array&&(d=d.concat([])),s[a]=d}return s}function Ja(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function Qa(e,r,s){return e.startState?e.startState(r,s):!0}var Bt=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Bt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return xt(this.string,null,this.tabSize)-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,r,s){if(typeof e=="string"){var a=function(v){return s?v.toLowerCase():v},d=this.string.substr(this.pos,e.length);if(a(d)==a(e))return r!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&r!==!1&&(this.pos+=p[0].length),p)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var d=s.children[a],p=d.chunkSize();if(r<p){s=d;break}r-=p}return s.lines[r]}function dn(e,r,s){var a=[],d=r.line;return e.iter(r.line,s.line+1,function(p){var v=p.text;d==s.line&&(v=v.slice(0,s.ch)),d==r.line&&(v=v.slice(r.ch)),a.push(v),++d}),a}function es(e,r,s){var a=[];return e.iter(r,s,function(d){a.push(d.text)}),a}function tn(e,r){var s=r-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var r=e.parent,s=ze(r.lines,e),a=r.parent;a;r=a,a=a.parent)for(var d=0;a.children[d]!=r;++d)s+=a.children[d].chunkSize();return s+r.first}function Hn(e,r){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var d=e.children[a],p=d.height;if(r<p){e=d;continue e}r-=p,s+=d.chunkSize()}return s}while(!e.lines);for(var v=0;v<e.lines.length;++v){var m=e.lines[v],y=m.height;if(r<y)break;r-=y}return s+v}function Ui(e,r){return r>=e.first&&r<e.first+e.size}function aa(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,s){if(s===void 0&&(s=null),!(this instanceof ae))return new ae(e,r,s);this.line=e,this.ch=r,this.sticky=s}function x(e,r){return e.line-r.line||e.ch-r.ch}function A(e,r){return e.sticky==r.sticky&&x(e,r)==0}function te(e){return ae(e.line,e.ch)}function ce(e,r){return x(e,r)<0?r:e}function Ke(e,r){return x(e,r)<0?e:r}function gt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function we(e,r){if(r.line<e.first)return ae(e.first,0);var s=e.first+e.size-1;return r.line>s?ae(s,ke(e,s).text.length):Mr(r,ke(e,r.line).text.length)}function Mr(e,r){var s=e.ch;return s==null||s>r?ae(e.line,r):s<0?ae(e.line,0):e}function rn(e,r){for(var s=[],a=0;a<r.length;a++)s[a]=we(e,r[a]);return s}var yi=function(e,r){this.state=e,this.lookAhead=r},Fn=function(e,r,s,a){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Fn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Fn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Fn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Fn.fromSaved=function(e,r,s){return r instanceof yi?new Fn(e,cn(e.mode,r.state),s,r.lookAhead):new Fn(e,cn(e.mode,r),s)},Fn.prototype.save=function(e){var r=e!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yi(r,this.maxLookAhead):r};function tc(e,r,s,a){var d=[e.state.modeGen],p={};z1(e,r.text,e.doc.mode,s,function(C,T){return d.push(C,T)},p,a);for(var v=s.state,m=function(C){s.baseTokens=d;var T=e.state.overlays[C],I=1,V=0;s.state=!0,z1(e,r.text,T.mode,s,function(H,K){for(var ne=I;V<H;){var he=d[I];he>H&&d.splice(I,1,H,d[I+1],he),I+=2,V=Math.min(H,he)}if(K)if(T.opaque)d.splice(ne,I-ne,H,"overlay "+K),I=ne+2;else for(;ne<I;ne+=2){var me=d[ne+1];d[ne+1]=(me?me+" ":"")+"overlay "+K}},p),s.state=v,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:d,classes:p.bgClass||p.textClass?p:null}}function x1(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var a=sa(e,zt(r)),d=r.text.length>e.options.maxHighlightLength&&cn(e.doc.mode,a.state),p=tc(e,r,a);d&&(a.state=d),r.stateAfter=a.save(!d),r.styles=p.styles,p.classes?r.styleClasses=p.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function sa(e,r,s){var a=e.doc,d=e.display;if(!a.mode.startState)return new Fn(a,!0,r);var p=nc(e,r,s),v=p>a.first&&ke(a,p-1).stateAfter,m=v?Fn.fromSaved(a,v,p):new Fn(a,Qa(a.mode),p);return a.iter(p,r,function(y){ts(e,y.text,m);var C=m.line;y.stateAfter=C==r-1||C%5==0||C>=d.viewFrom&&C<d.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ts(e,r,s,a){var d=e.doc.mode,p=new Bt(r,e.options.tabSize,s);for(p.start=p.pos=a||0,r==""&&rc(d,s.state);!p.eol();)al(d,p,s.state),p.start=p.pos}function rc(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=Ja(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function al(e,r,s,a){for(var d=0;d<10;d++){a&&(a[0]=Ja(e,s).mode);var p=e.token(r,s);if(r.pos>r.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var sl=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function ll(e,r,s,a){var d=e.doc,p=d.mode,v;r=we(d,r);var m=ke(d,r.line),y=sa(e,r.line,s),C=new Bt(m.text,e.options.tabSize,y),T;for(a&&(T=[]);(a||C.pos<r.ch)&&!C.eol();)C.start=C.pos,v=al(p,C,y.state),a&&T.push(new sl(C,v,cn(d.mode,y.state)));return a?T:new sl(C,v,y.state)}function So(e,r){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return e}function z1(e,r,s,a,d,p,v){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,T=new Bt(r,e.options.tabSize,a),I,V=e.options.addModeClass&&[null];for(r==""&&So(rc(s,a.state),p);!T.eol();){if(T.pos>e.options.maxHighlightLength?(m=!1,v&&ts(e,r,a,T.pos),T.pos=r.length,I=null):I=So(al(s,T,a.state,V),p),V){var H=V[0].name;H&&(I="m-"+(I?H+" "+I:H))}if(!m||C!=I){for(;y<T.start;)y=Math.min(T.start,y+5e3),d(y,C);C=I}T.start=T.pos}for(;y<T.pos;){var K=Math.min(T.pos,y+5e3);d(K,C),y=K}}function nc(e,r,s){for(var a,d,p=e.doc,v=s?-1:r-(e.doc.mode.innerMode?1e3:100),m=r;m>v;--m){if(m<=p.first)return p.first;var y=ke(p,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof yi?C.lookAhead:0)<=p.modeFrontier))return m;var T=xt(y.text,null,e.options.tabSize);(d==null||a>T)&&(d=m-1,a=T)}return d}function Id(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,a=r-1;a>s;a--){var d=ke(e,a).stateAfter;if(d&&(!(d instanceof yi)||a+d.lookAhead<r)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var L1=!1,Jn=!1;function ic(){L1=!0}function oc(){Jn=!0}function ul(e,r,s){this.marker=e,this.from=r,this.to=s}function rs(e,r){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==r)return a}}function Ad(e,r){for(var s,a=0;a<e.length;++a)e[a]!=r&&(s||(s=[])).push(e[a]);return s}function ac(e,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],a&&a.add(e.markedSpans)),r.marker.attachLine(e)}function $d(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);if(m||p.from==r&&v.type=="bookmark"&&(!s||!p.marker.insertLeft)){var y=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);(a||(a=[])).push(new ul(v,p.from,y?null:p.to))}}return a}function Pd(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);if(m||p.from==r&&v.type=="bookmark"&&(!s||p.marker.insertLeft)){var y=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);(a||(a=[])).push(new ul(v,y?null:p.from-r,p.to==null?null:p.to-r))}}return a}function S1(e,r){if(r.full)return null;var s=Ui(e,r.from.line)&&ke(e,r.from.line).markedSpans,a=Ui(e,r.to.line)&&ke(e,r.to.line).markedSpans;if(!s&&!a)return null;var d=r.from.ch,p=r.to.ch,v=x(r.from,r.to)==0,m=$d(s,d,v),y=Pd(a,p,v),C=r.text.length==1,T=Qe(r.text).length+(C?d:0);if(m)for(var I=0;I<m.length;++I){var V=m[I];if(V.to==null){var H=rs(y,V.marker);H?C&&(V.to=H.to==null?null:H.to+T):V.to=d}}if(y)for(var K=0;K<y.length;++K){var ne=y[K];if(ne.to!=null&&(ne.to+=T),ne.from==null){var he=rs(m,ne.marker);he||(ne.from=T,C&&(m||(m=[])).push(ne))}else ne.from+=T,C&&(m||(m=[])).push(ne)}m&&(m=sc(m)),y&&y!=m&&(y=sc(y));var me=[m];if(!C){var xe=r.text.length-2,ye;if(xe>0&&m)for(var Se=0;Se<m.length;++Se)m[Se].to==null&&(ye||(ye=[])).push(new ul(m[Se].marker,null,null));for(var He=0;He<xe;++He)me.push(ye);me.push(y)}return me}function sc(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function M1(e,r,s){var a=null;if(e.iter(r.line,s.line+1,function(H){if(H.markedSpans)for(var K=0;K<H.markedSpans.length;++K){var ne=H.markedSpans[K].marker;ne.readOnly&&(!a||ze(a,ne)==-1)&&(a||(a=[])).push(ne)}}),!a)return null;for(var d=[{from:r,to:s}],p=0;p<a.length;++p)for(var v=a[p],m=v.find(0),y=0;y<d.length;++y){var C=d[y];if(!(x(C.to,m.from)<0||x(C.from,m.to)>0)){var T=[y,1],I=x(C.from,m.from),V=x(C.to,m.to);(I<0||!v.inclusiveLeft&&!I)&&T.push({from:C.from,to:m.from}),(V>0||!v.inclusiveRight&&!V)&&T.push({from:m.to,to:C.to}),d.splice.apply(d,T),y+=T.length-3}}return d}function lc(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function uc(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function cl(e){return e.inclusiveLeft?-1:0}function dl(e){return e.inclusiveRight?1:0}function _1(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var a=e.find(),d=r.find(),p=x(a.from,d.from)||cl(e)-cl(r);if(p)return-p;var v=x(a.to,d.to)||dl(e)-dl(r);return v||r.id-e.id}function Vt(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=void 0,p=0;p<s.length;++p)d=s[p],d.marker.collapsed&&(r?d.from:d.to)==null&&(!a||_1(a,d.marker)<0)&&(a=d.marker);return a}function Ht(e){return Vt(e,!0)}function fl(e){return Vt(e,!1)}function Dd(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=0;d<s.length;++d){var p=s[d];p.marker.collapsed&&(p.from==null||p.from<r)&&(p.to==null||p.to>r)&&(!a||_1(a,p.marker)<0)&&(a=p.marker)}return a}function cc(e,r,s,a,d){var p=ke(e,r),v=Jn&&p.markedSpans;if(v)for(var m=0;m<v.length;++m){var y=v[m];if(y.marker.collapsed){var C=y.marker.find(0),T=x(C.from,s)||cl(y.marker)-cl(d),I=x(C.to,a)||dl(y.marker)-dl(d);if(!(T>=0&&I<=0||T<=0&&I>=0)&&(T<=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?x(C.to,s)>=0:x(C.to,s)>0)||T>=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?x(C.from,a)<=0:x(C.from,a)<0)))return!0}}}function Qn(e){for(var r;r=Ht(e);)e=r.find(-1,!0).line;return e}function Nd(e){for(var r;r=fl(e);)e=r.find(1,!0).line;return e}function Rd(e){for(var r,s;r=fl(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function hl(e,r){var s=ke(e,r),a=Qn(s);return s==a?r:zt(a)}function dc(e,r){if(r>e.lastLine())return r;var s=ke(e,r),a;if(!Ut(e,s))return r;for(;a=fl(s);)s=a.find(1,!0).line;return zt(s)+1}function Ut(e,r){var s=Jn&&r.markedSpans;if(s){for(var a=void 0,d=0;d<s.length;++d)if(a=s[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&ns(e,r,a))return!0}}}function ns(e,r,s){if(s.to==null){var a=s.marker.find(1,!0);return ns(e,a.line,rs(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,p=0;p<r.markedSpans.length;++p)if(d=r.markedSpans[p],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&ns(e,r,d))return!0}function jr(e){e=Qn(e);for(var r=0,s=e.parent,a=0;a<s.lines.length;++a){var d=s.lines[a];if(d==e)break;r+=d.height}for(var p=s.parent;p;s=p,p=s.parent)for(var v=0;v<p.children.length;++v){var m=p.children[v];if(m==s)break;r+=m.height}return r}function is(e){if(e.height==0)return 0;for(var r=e.text.length,s,a=e;s=Ht(a);){var d=s.find(0,!0);a=d.from.line,r+=d.from.ch-d.to.ch}for(a=e;s=fl(a);){var p=s.find(0,!0);r-=a.text.length-p.from.ch,a=p.to.line,r+=a.text.length-p.to.ch}return r}function os(e){var r=e.display,s=e.doc;r.maxLine=ke(s,s.first),r.maxLineLength=is(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var d=is(a);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=a)})}var _r=function(e,r,s){this.text=e,uc(this,r),this.height=s?s(this):1};_r.prototype.lineNo=function(){return zt(this)},Dn(_r);function fc(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),lc(e),uc(e,s);var d=a?a(e):1;d!=e.height&&tn(e,d)}function hc(e){e.parent=null,lc(e)}var pc={},gc={};function T1(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?gc:pc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function O1(e,r){var s=E("span",null,null,k?"padding-right: .1px":null),a={pre:E("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var p=d?r.rest[d-1]:r.line,v=void 0;a.pos=0,a.addToken=Hd,Xn(e.display.measure)&&(v=Dr(p,e.doc.direction))&&(a.addToken=Fd(a.addToken,v)),a.map=[];var m=r!=e.display.externalMeasured&&zt(p);Gi(p,a,x1(e,p,m)),p.styleClasses&&(p.styleClasses.bgClass&&(a.bgClass=pt(p.styleClasses.bgClass,a.bgClass||"")),p.styleClasses.textClass&&(a.textClass=pt(p.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(rl(e.display.measure))),d==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(k){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return qe(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=pt(a.pre.className,a.textClass||"")),a}function fn(e){var r=O("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Hd(e,r,s,a,d,p,v){if(r){var m=e.splitSpaces?wn(r,e.trailingSpace):r,y=e.cm.state.specialChars,C=!1,T;if(!y.test(r))e.col+=r.length,T=document.createTextNode(m),e.map.push(e.pos,e.pos+r.length,T),z&&S<9&&(C=!0),e.pos+=r.length;else{T=document.createDocumentFragment();for(var I=0;;){y.lastIndex=I;var V=y.exec(r),H=V?V.index-I:r.length-I;if(H){var K=document.createTextNode(m.slice(I,I+H));z&&S<9?T.appendChild(O("span",[K])):T.appendChild(K),e.map.push(e.pos,e.pos+H,K),e.col+=H,e.pos+=H}if(!V)break;I+=H+1;var ne=void 0;if(V[0]==" "){var he=e.cm.options.tabSize,me=he-e.col%he;ne=T.appendChild(O("span",tr(me),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),e.col+=me}else V[0]=="\r"||V[0]==`
|
|
2894
|
+
`?(ne=T.appendChild(O("span",V[0]=="\r"?"␍":"","cm-invalidchar")),ne.setAttribute("cm-text",V[0]),e.col+=1):(ne=e.cm.options.specialCharPlaceholder(V[0]),ne.setAttribute("cm-text",V[0]),z&&S<9?T.appendChild(O("span",[ne])):T.appendChild(ne),e.col+=1);e.map.push(e.pos,e.pos+1,ne),e.pos++}}if(e.trailingSpace=m.charCodeAt(r.length-1)==32,s||a||d||C||p||v){var xe=s||"";a&&(xe+=a),d&&(xe+=d);var ye=O("span",[T],xe,p);if(v)for(var Se in v)v.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&ye.setAttribute(Se,v[Se]);return e.content.appendChild(ye)}e.content.appendChild(T)}}function wn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",d=0;d<e.length;d++){var p=e.charAt(d);p==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(p=" "),a+=p,s=p==" "}return a}function Fd(e,r){return function(s,a,d,p,v,m,y){d=d?d+" cm-force-border":"cm-force-border";for(var C=s.pos,T=C+a.length;;){for(var I=void 0,V=0;V<r.length&&(I=r[V],!(I.to>C&&I.from<=C));V++);if(I.to>=T)return e(s,a,d,p,v,m,y);e(s,a.slice(0,I.to-C),d,p,null,m,y),p=null,a=a.slice(I.to-C),C=I.to}}}function E1(e,r,s,a){var d=!a&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!a&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function Gi(e,r,s){var a=e.markedSpans,d=e.text,p=0;if(!a){for(var v=1;v<s.length;v+=2)r.addToken(r,d.slice(p,p=s[v]),T1(s[v+1],r.cm.options));return}for(var m=d.length,y=0,C=1,T="",I,V,H=0,K,ne,he,me,xe;;){if(H==y){K=ne=he=V="",xe=null,me=null,H=1/0;for(var ye=[],Se=void 0,He=0;He<a.length;++He){var Pe=a[He],ut=Pe.marker;if(ut.type=="bookmark"&&Pe.from==y&&ut.widgetNode)ye.push(ut);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ut.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&H>Pe.to&&(H=Pe.to,ne=""),ut.className&&(K+=" "+ut.className),ut.css&&(V=(V?V+";":"")+ut.css),ut.startStyle&&Pe.from==y&&(he+=" "+ut.startStyle),ut.endStyle&&Pe.to==H&&(Se||(Se=[])).push(ut.endStyle,Pe.to),ut.title&&((xe||(xe={})).title=ut.title),ut.attributes)for(var It in ut.attributes)(xe||(xe={}))[It]=ut.attributes[It];ut.collapsed&&(!me||_1(me.marker,ut)<0)&&(me=Pe)}else Pe.from>y&&H>Pe.from&&(H=Pe.from)}if(Se)for(var rr=0;rr<Se.length;rr+=2)Se[rr+1]==H&&(ne+=" "+Se[rr]);if(!me||me.from==y)for(var Nt=0;Nt<ye.length;++Nt)E1(r,0,ye[Nt]);if(me&&(me.from||0)==y){if(E1(r,(me.to==null?m+1:me.to)-y,me.marker,me.from==null),me.to==null)return;me.to==y&&(me=!1)}}if(y>=m)break;for(var Fr=Math.min(m,H);;){if(T){var Br=y+T.length;if(!me){var Xt=Br>Fr?T.slice(0,Fr-y):T;r.addToken(r,Xt,I?I+K:K,he,y+Xt.length==H?ne:"",V,xe)}if(Br>=Fr){T=T.slice(Fr-y),y=Fr;break}y=Br,he=""}T=d.slice(p,p=s[C++]),I=T1(s[C++],r.cm.options)}}}function as(e,r,s){this.line=r,this.rest=Rd(r),this.size=this.rest?zt(Qe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Ut(e,r)}function la(e,r,s){for(var a=[],d,p=r;p<s;p=d){var v=new as(e.doc,ke(e.doc,p),p);d=p+v.size,a.push(v)}return a}var At=null;function qi(e){At?At.ops.push(e):e.ownsGroup=At={ops:[e],delayedCallbacks:[]}}function k1(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<e.ops.length;a++){var d=e.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function Bd(e,r){var s=e.ownsGroup;if(s)try{k1(s)}finally{At=null,r(s)}}var Mo=null;function lr(e,r){var s=Vi(e,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),d;At?d=At.delayedCallbacks:Mo?d=Mo:(d=Mo=[],setTimeout(Vd,0));for(var p=function(m){d.push(function(){return s[m].apply(null,a)})},v=0;v<s.length;++v)p(v)}}function Vd(){var e=Mo;Mo=null;for(var r=0;r<e.length;++r)e[r]()}function vc(e,r,s,a){for(var d=0;d<r.changes.length;d++){var p=r.changes[d];p=="text"?Wd(e,r):p=="gutter"?I1(e,r,s,a):p=="class"?gl(e,r):p=="widget"&&A1(e,r,a)}r.changes=null}function ua(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),z&&S<8&&(e.node.style.zIndex=2)),e.node}function pl(e,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=ua(r);r.background=a.insertBefore(O("div",null,s),a.firstChild),e.display.input.setUneditable(r.background)}}function _o(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):O1(e,r)}function Wd(e,r){var s=r.text.className,a=_o(e,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,gl(e,r)):s&&(r.text.className=s)}function gl(e,r){pl(e,r),r.line.wrapClass?ua(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 I1(e,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 d=ua(r);r.gutterBackground=O("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var p=r.line.gutterMarkers;if(e.options.lineNumbers||p){var v=ua(r),m=r.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),v.insertBefore(m,r.text),r.line.gutterClass&&(m.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(r.lineNumber=m.appendChild(O("div",aa(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,T=p.hasOwnProperty(C)&&p[C];T&&m.appendChild(O("div",[T],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function A1(e,r,s){r.alignable&&(r.alignable=null);for(var a=Ce("CodeMirror-linewidget"),d=r.node.firstChild,p=void 0;d;d=p)p=d.nextSibling,a.test(d.className)&&r.node.removeChild(d);P1(e,r,s)}function $1(e,r,s,a){var d=_o(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),gl(e,r),I1(e,r,s,a),P1(e,r,a),r.node}function P1(e,r,s){if(bc(e,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)bc(e,r.rest[a],r,s,!1)}function bc(e,r,s,a,d){if(r.widgets)for(var p=ua(s),v=0,m=r.widgets;v<m.length;++v){var y=m[v],C=O("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),D1(y,C,s,a),e.display.input.setUneditable(C),d&&y.above?p.insertBefore(C,s.gutter||s.text):p.appendChild(C),lr(y,"redraw")}}function D1(e,r,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=a.wrapperWidth;r.style.left=a.fixedPos+"px",e.coverGutter||(d-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function To(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!ue(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),$(r.display.measure,O("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Ci(e,r){for(var s=Wi(r);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function ss(e){return e.lineSpace.offsetTop}function Kr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function vl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=$(e.measure,O("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)&&(e.cachedPaddingH=a),a}function nn(e){return Ne-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function bl(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function Zd(e,r,s){var a=e.options.lineWrapping,d=a&&ji(e);if(!r.measure.heights||a&&r.measure.width!=d){var p=r.measure.heights=[];if(a){r.measure.width=d;for(var v=r.text.firstChild.getClientRects(),m=0;m<v.length-1;m++){var y=v[m],C=v[m+1];Math.abs(y.bottom-C.bottom)>2&&p.push((y.bottom+C.top)/2-s.top)}}p.push(s.bottom-s.top)}}function mc(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==r)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var d=0;d<e.rest.length;d++)if(zt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Ud(e,r){r=Qn(r);var s=zt(r),a=e.display.externalMeasured=new as(e.doc,r,s);a.lineN=s;var d=a.built=O1(e,a);return a.text=d.pre,$(e.display.lineMeasure,d.pre),a}function yc(e,r,s,a){return ei(e,Bn(e,r),s,a)}function N1(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[ri(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Bn(e,r){var s=zt(r),a=N1(e,s);a&&!a.text?a=null:a&&a.changes&&(vc(e,a,s,on(e)),e.curOp.forceUpdate=!0),a||(a=Ud(e,r));var d=mc(a,r,s);return{line:r,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ei(e,r,s,a,d){r.before&&(s=-1);var p=s+(a||""),v;return r.cache.hasOwnProperty(p)?v=r.cache[p]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Zd(e,r.view,r.rect),r.hasHeights=!0),v=Ki(e,r,s,a),v.bogus||(r.cache[p]=v)),{left:v.left,right:v.right,top:d?v.rtop:v.top,bottom:d?v.rbottom:v.bottom}}var Cc={left:0,right:0,top:0,bottom:0};function ml(e,r,s){for(var a,d,p,v,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],r<m?(d=0,p=1,v="left"):r<y?(d=r-m,p=d+1):(C==e.length-3||r==y&&e[C+3]>r)&&(p=y-m,d=p-1,r>=y&&(v="right")),d!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(v=s),s=="left"&&d==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],v="left";if(s=="right"&&d==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],v="right";break}return{node:a,start:d,end:p,collapse:v,coverStart:m,coverEnd:y}}function wc(e,r){var s=Cc;if(r=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function Ki(e,r,s,a){var d=ml(r.map,s,a),p=d.node,v=d.start,m=d.end,y=d.collapse,C;if(p.nodeType==3){for(var T=0;T<4;T++){for(;v&&tt(r.line.text.charAt(d.coverStart+v));)--v;for(;d.coverStart+m<d.coverEnd&&tt(r.line.text.charAt(d.coverStart+m));)++m;if(z&&S<9&&v==0&&m==d.coverEnd-d.coverStart?C=p.parentNode.getBoundingClientRect():C=wc(X(p,v,m).getClientRects(),a),C.left||C.right||v==0)break;m=v,v=v-1,y="right"}z&&S<11&&(C=yl(e.display.measure,C))}else{v>0&&(y=a="right");var I;e.options.lineWrapping&&(I=p.getClientRects()).length>1?C=I[a=="right"?I.length-1:0]:C=p.getBoundingClientRect()}if(z&&S<9&&!v&&(!C||!C.left&&!C.right)){var V=p.parentNode.getClientRects()[0];V?C={left:V.left,right:V.left+ca(e.display),top:V.top,bottom:V.bottom}:C=Cc}for(var H=C.top-r.rect.top,K=C.bottom-r.rect.top,ne=(H+K)/2,he=r.view.measure.heights,me=0;me<he.length-1&&!(ne<he[me]);me++);var xe=me?he[me-1]:0,ye=he[me],Se={left:(y=="right"?C.right:C.left)-r.rect.left,right:(y=="left"?C.left:C.right)-r.rect.left,top:xe,bottom:ye};return!C.left&&!C.right&&(Se.bogus=!0),e.options.singleCursorHeightPerLine||(Se.rtop=H,Se.rbottom=K),Se}function yl(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zi(e))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 xc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function zc(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)xc(e.display.view[r])}function ls(e){zc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Oo(){return B&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function xn(){return B&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Cl(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=To(e.widgets[s]));return r}function wl(e,r,s,a,d){if(!d){var p=Cl(r);s.top+=p,s.bottom+=p}if(a=="line")return s;a||(a="local");var v=jr(r);if(a=="local"?v+=ss(e.display):v-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();v+=m.top+(a=="window"?0:xn());var y=m.left+(a=="window"?0:Oo());s.left+=y,s.right+=y}return s.top+=v,s.bottom+=v,s}function Lc(e,r,s){if(s=="div")return r;var a=r.left,d=r.top;if(s=="page")a-=Oo(),d-=xn();else if(s=="local"||!s){var p=e.display.sizer.getBoundingClientRect();a+=p.left,d+=p.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:a-v.left,top:d-v.top}}function xl(e,r,s,a,d){return a||(a=ke(e.doc,r.line)),wl(e,a,yc(e,a,r.ch,d),s)}function Vn(e,r,s,a,d,p){a=a||ke(e.doc,r.line),d||(d=Bn(e,a));function v(K,ne){var he=ei(e,d,K,ne?"right":"left",p);return ne?he.left=he.right:he.right=he.left,wl(e,a,he,s)}var m=Dr(a,e.doc.direction),y=r.ch,C=r.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return v(C=="before"?y-1:y,C=="before");function T(K,ne,he){var me=m[ne],xe=me.level==1;return v(he?K-1:K,xe!=he)}var I=Wt(m,y,C),V=Gr,H=T(y,I,C=="before");return V!=null&&(H.other=T(y,V,C!="before")),H}function Sc(e,r){var s=0;r=we(e.doc,r),e.options.lineWrapping||(s=ca(e.display)*r.ch);var a=ke(e.doc,r.line),d=jr(a)+ss(e.display);return{left:s,right:s,top:d,bottom:d+a.height}}function Yi(e,r,s,a,d){var p=ae(e,r,s);return p.xRel=d,a&&(p.outside=a),p}function W(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Yi(a.first,0,null,-1,-1);var d=Hn(a,s),p=a.first+a.size-1;if(d>p)return Yi(a.first+a.size-1,ke(a,p).text.length,null,1,1);r<0&&(r=0);for(var v=ke(a,d);;){var m=nt(e,v,d,r,s),y=Dd(v,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==d)return C;v=ke(a,d=C.line)}}function re(e,r,s,a){a-=Cl(r);var d=r.text.length,p=Lr(function(v){return ei(e,s,v-1).bottom<=a},d,0);return d=Lr(function(v){return ei(e,s,v).top>a},p,d),{begin:p,end:d}}function q(e,r,s,a){s||(s=Bn(e,r));var d=wl(e,r,ei(e,s,a),"line").top;return re(e,r,s,d)}function Ee(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function nt(e,r,s,a,d){d-=jr(r);var p=Bn(e,r),v=Cl(r),m=0,y=r.text.length,C=!0,T=Dr(r,e.doc.direction);if(T){var I=(e.options.lineWrapping?ur:Ot)(e,r,s,p,T,a,d);C=I.level!=1,m=C?I.from:I.to-1,y=C?I.to:I.from-1}var V=null,H=null,K=Lr(function(He){var Pe=ei(e,p,He);return Pe.top+=v,Pe.bottom+=v,Ee(Pe,a,d,!1)?(Pe.top<=d&&Pe.left<=a&&(V=He,H=Pe),!0):!1},m,y),ne,he,me=!1;if(H){var xe=a-H.left<H.right-a,ye=xe==C;K=V+(ye?0:1),he=ye?"after":"before",ne=xe?H.left:H.right}else{!C&&(K==y||K==m)&&K++,he=K==0?"after":K==r.text.length?"before":ei(e,p,K-(C?1:0)).bottom+v<=d==C?"after":"before";var Se=Vn(e,ae(s,K,he),"line",r,p);ne=Se.left,me=d<Se.top?-1:d>=Se.bottom?1:0}return K=sr(r.text,K,1),Yi(s,K,he,me,a-ne)}function Ot(e,r,s,a,d,p,v){var m=Lr(function(I){var V=d[I],H=V.level!=1;return Ee(Vn(e,ae(s,H?V.to:V.from,H?"before":"after"),"line",r,a),p,v,!0)},0,d.length-1),y=d[m];if(m>0){var C=y.level!=1,T=Vn(e,ae(s,C?y.from:y.to,C?"after":"before"),"line",r,a);Ee(T,p,v,!0)&&T.top>v&&(y=d[m-1])}return y}function ur(e,r,s,a,d,p,v){var m=re(e,r,a,v),y=m.begin,C=m.end;/\s/.test(r.text.charAt(C-1))&&C--;for(var T=null,I=null,V=0;V<d.length;V++){var H=d[V];if(!(H.from>=C||H.to<=y)){var K=H.level!=1,ne=ei(e,a,K?Math.min(C,H.to)-1:Math.max(y,H.from)).right,he=ne<p?p-ne+1e9:ne-p;(!T||I>he)&&(T=H,I=he)}}return T||(T=d[d.length-1]),T.from<y&&(T={from:y,to:T.to,level:T.level}),T.to>C&&(T={from:T.from,to:C,level:T.level}),T}var Ct;function Xi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ct==null){Ct=O("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ct.appendChild(document.createTextNode("x")),Ct.appendChild(O("br"));Ct.appendChild(document.createTextNode("x"))}$(e.measure,Ct);var s=Ct.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),Q(e.measure),s||1}function ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=O("span","xxxxxxxxxx"),s=O("pre",[r],"CodeMirror-line-like");$(e.measure,s);var a=r.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function on(e){for(var r=e.display,s={},a={},d=r.gutters.clientLeft,p=r.gutters.firstChild,v=0;p;p=p.nextSibling,++v){var m=e.display.gutterSpecs[v].className;s[m]=p.offsetLeft+p.clientLeft+d,a[m]=p.clientWidth}return{fixedPos:da(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Mc(e){var r=Xi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/ca(e.display)-3);return function(d){if(Ut(e.doc,d))return 0;var p=0;if(d.widgets)for(var v=0;v<d.widgets.length;v++)d.widgets[v].height&&(p+=d.widgets[v].height);return s?p+(Math.ceil(d.text.length/a)||1)*r:p+r}}function Ji(e){var r=e.doc,s=Mc(e);r.iter(function(a){var d=s(a);d!=a.height&&tn(a,d)})}function ti(e,r,s,a){var d=e.display;if(!s&&Wi(r).getAttribute("cm-not-content")=="true")return null;var p,v,m=d.lineSpace.getBoundingClientRect();try{p=r.clientX-m.left,v=r.clientY-m.top}catch{return null}var y=W(e,p,v),C;if(a&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var T=xt(C,C.length,e.options.tabSize)-C.length;y=ae(y.line,Math.max(0,Math.round((p-vl(e.display).left)/ca(e.display))-T))}return y}function ri(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function ot(e,r,s,a){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var d=e.display;if(a&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)Jn&&hl(e.doc,r)<d.viewTo&&wi(e);else if(s<=d.viewFrom)Jn&&dc(e.doc,s+a)>d.viewFrom?wi(e):(d.viewFrom+=a,d.viewTo+=a);else if(r<=d.viewFrom&&s>=d.viewTo)wi(e);else if(r<=d.viewFrom){var p=Eo(e,s,s+a,1);p?(d.view=d.view.slice(p.index),d.viewFrom=p.lineN,d.viewTo+=a):wi(e)}else if(s>=d.viewTo){var v=Eo(e,r,r,-1);v?(d.view=d.view.slice(0,v.index),d.viewTo=v.lineN):wi(e)}else{var m=Eo(e,r,r,-1),y=Eo(e,s,s+a,1);m&&y?(d.view=d.view.slice(0,m.index).concat(la(e,m.lineN,y.lineN)).concat(d.view.slice(y.index)),d.viewTo+=a):wi(e)}var C=d.externalMeasured;C&&(s<C.lineN?C.lineN+=a:r<C.lineN+C.size&&(d.externalMeasured=null))}function Qi(e,r,s){e.curOp.viewChanged=!0;var a=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var p=a.view[ri(e,r)];if(p.node!=null){var v=p.changes||(p.changes=[]);ze(v,s)==-1&&v.push(s)}}}function wi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Eo(e,r,s,a){var d=ri(e,r),p,v=e.display.view;if(!Jn||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var m=e.display.viewFrom,y=0;y<d;y++)m+=v[y].size;if(m!=r){if(a>0){if(d==v.length-1)return null;p=m+v[d].size-r,d++}else p=m-r;r+=p,s+=p}for(;hl(e.doc,s)!=s;){if(d==(a<0?0:v.length-1))return null;s+=a*v[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:s}}function Gd(e,r,s){var a=e.display,d=a.view;d.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=la(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=la(e,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(ri(e,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(la(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,ri(e,s)))),a.viewTo=s}function _c(e){for(var r=e.display.view,s=0,a=0;a<r.length;a++){var d=r[a];!d.hidden&&(!d.node||d.changes)&&++s}return s}function us(e){e.display.input.showSelection(e.display.input.prepareSelection())}function cs(e,r){r===void 0&&(r=!0);for(var s=e.doc,a={},d=a.cursors=document.createDocumentFragment(),p=a.selection=document.createDocumentFragment(),v=0;v<s.sel.ranges.length;v++)if(!(!r&&v==s.sel.primIndex)){var m=s.sel.ranges[v];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&xi(e,m.head,d),y||Tc(e,m,p)}}return a}function xi(e,r,s){var a=Vn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(O("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=xl(e,r,"div",null,null);d.style.width=Math.max(0,p.right-p.left)+"px"}if(a.other){var v=s.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=a.other.left+"px",v.style.top=a.other.top+"px",v.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function ko(e,r){return e.top-r.top||e.left-r.left}function Tc(e,r,s){var a=e.display,d=e.doc,p=document.createDocumentFragment(),v=vl(e.display),m=v.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-v.right,C=d.direction=="ltr";function T(ye,Se,He,Pe){Se<0&&(Se=0),Se=Math.round(Se),Pe=Math.round(Pe),p.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
|
|
2894
2895
|
top: `+Se+"px; width: "+(He==null?y-ye:He)+`px;
|
|
2895
|
-
height: `+(Pe-Se)+"px"))}function I(ye,Se,He){var Pe=
|
|
2896
|
-
top: `+(r.top-s.viewOffset-
|
|
2896
|
+
height: `+(Pe-Se)+"px"))}function I(ye,Se,He){var Pe=ke(d,ye),ut=Pe.text.length,It,rr;function Nt(Xt,Cr){return xl(e,ae(ye,Xt),"div",Pe,Cr)}function Fr(Xt,Cr,cr){var $t=q(e,Pe,null,Xt),Ft=Cr=="ltr"==(cr=="after")?"left":"right",jt=cr=="after"?$t.begin:$t.end-(/\s/.test(Pe.text.charAt($t.end-1))?2:1);return Nt(jt,Ft)[Ft]}var Br=Dr(Pe,d.direction);return $n(Br,Se||0,He==null?ut:He,function(Xt,Cr,cr,$t){var Ft=cr=="ltr",jt=Nt(Xt,Ft?"left":"right"),Vr=Nt(Cr-1,Ft?"right":"left"),$a=Se==null&&Xt==0,go=He==null&&Cr==ut,Ar=$t==0,si=!Br||$t==Br.length-1;if(Vr.top-jt.top<=3){var dr=(C?$a:go)&&Ar,pu=(C?go:$a)&&si,_i=dr?m:(Ft?jt:Vr).left,Wo=pu?y:(Ft?Vr:jt).right;T(_i,jt.top,Wo-_i,jt.bottom)}else{var Zo,Wr,Pa,Xl;Ft?(Zo=C&&$a&&Ar?m:jt.left,Wr=C?y:Fr(Xt,cr,"before"),Pa=C?m:Fr(Cr,cr,"after"),Xl=C&&go&&si?y:Vr.right):(Zo=C?Fr(Xt,cr,"before"):m,Wr=!C&&$a&&Ar?y:jt.right,Pa=!C&&go&&si?m:Vr.left,Xl=C?Fr(Cr,cr,"after"):y),T(Zo,jt.top,Wr-Zo,jt.bottom),jt.bottom<Vr.top&&T(m,jt.bottom,null,Vr.top),T(Pa,Vr.top,Xl-Pa,Vr.bottom)}(!It||ko(jt,It)<0)&&(It=jt),ko(Vr,It)<0&&(It=Vr),(!rr||ko(jt,rr)<0)&&(rr=jt),ko(Vr,rr)<0&&(rr=Vr)}),{start:It,end:rr}}var V=r.from(),H=r.to();if(V.line==H.line)I(V.line,V.ch,H.ch);else{var K=ke(d,V.line),ne=ke(d,H.line),he=Qn(K)==Qn(ne),me=I(V.line,V.ch,he?K.text.length+1:null).end,xe=I(H.line,he?0:null,H.ch).start;he&&(me.top<xe.top-2?(T(me.right,me.top,null,me.bottom),T(m,xe.top,xe.left,xe.bottom)):T(me.right,me.top,xe.left-me.right,me.bottom)),me.bottom<xe.top&&T(m,me.bottom,null,xe.top)}s.appendChild(p)}function fa(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Io(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function R1(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ha(e))}function zl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Io(e))},100)}function ha(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(qe(e,"focus",e,r),e.state.focused=!0,et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),k&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),fa(e))}function Io(e,r){e.state.delayingBlurEvent||(e.state.focused&&(qe(e,"blur",e,r),e.state.focused=!1,le(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function eo(e){for(var r=e.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var d=r.view[a],p=e.options.lineWrapping,v=void 0,m=0;if(!d.hidden){if(z&&S<8){var y=d.node.offsetTop+d.node.offsetHeight;v=y-s,s=y}else{var C=d.node.getBoundingClientRect();v=C.bottom-C.top,!p&&d.text.firstChild&&(m=d.text.firstChild.getBoundingClientRect().right-C.left-1)}var T=d.line.height-v;if((T>.005||T<-.005)&&(tn(d.line,v),to(d.line),d.rest))for(var I=0;I<d.rest.length;I++)to(d.rest[I]);if(m>e.display.sizerWidth){var V=Math.ceil(m/ca(e.display));V>e.display.maxLineLength&&(e.display.maxLineLength=V,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}}function to(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var s=e.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Ao(e,r,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-ss(e));var d=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,p=Hn(r,a),v=Hn(r,d);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<p?(p=m,v=Hn(r,jr(ke(r,m))+e.wrapper.clientHeight)):Math.min(y,r.lastLine())>=v&&(p=Hn(r,jr(ke(r,y))-e.wrapper.clientHeight),v=y)}return{from:p,to:Math.max(v,p+1)}}function qd(e,r){if(!Jt(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),d=null;if(r.top+a.top<0?d=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!ge){var p=O("div","",null,`position: absolute;
|
|
2897
|
+
top: `+(r.top-s.viewOffset-ss(e.display))+`px;
|
|
2897
2898
|
height: `+(r.bottom-r.top+nn(e)+s.barHeight)+`px;
|
|
2898
|
-
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(d),e.display.lineSpace.removeChild(p)}}}function jd(e,r,s,a){a==null&&(a=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var p=0;p<5;p++){var v=!1,m=Wn(e,r),y=!s||s==r?m:Wn(e,s);d={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=pa(e,d),T=e.doc.scrollTop,I=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(v=!0)),C.scrollLeft!=null&&($o(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(v=!0)),!v)break}return d}function Kd(e,r){var s=pa(e,r);s.scrollTop!=null&&Gt(e,s.scrollTop),s.scrollLeft!=null&&$o(e,s.scrollLeft)}function pa(e,r){var s=e.display,a=Xi(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,p=bl(e),v={};r.bottom-r.top>p&&(r.bottom=r.top+p);var m=e.doc.height+Kr(s),y=r.top<a,C=r.bottom>m-a;if(r.top<d)v.scrollTop=y?0:r.top;else if(r.bottom>d+p){var T=Math.min(r.top,(C?m:r.bottom)-p);T!=d&&(v.scrollTop=T)}var I=e.options.fixedGutter?0:s.gutters.offsetWidth,W=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-I,H=ji(e)-s.gutters.offsetWidth,K=r.right-r.left>H;return K&&(r.right=r.left+H),r.left<10?v.scrollLeft=0:r.left<W?v.scrollLeft=Math.max(0,r.left+I-(K?0:10)):r.right>H+W-3&&(v.scrollLeft=r.right+(K?0:10)-H),v}function ga(e,r){r!=null&&(Ll(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function ro(e){Ll(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function cs(e,r,s){(r!=null||s!=null)&&Ll(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function Oc(e,r){Ll(e),e.curOp.scrollToPos=r}function Ll(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=Sc(e,r.from),a=Sc(e,r.to);kc(e,s,a,r.margin)}}function kc(e,r,s,a){var d=pa(e,{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});cs(e,d.scrollLeft,d.scrollTop)}function Gt(e,r){Math.abs(e.doc.scrollTop-r)<2||(c||F1(e,{top:r}),Tr(e,r,!0),c&&F1(e),ii(e,100))}function Tr(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function $o(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,Ec(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function ds(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Kr(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+nn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var no=function(e,r,s){this.cm=s;var a=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,e(a),e(d),We(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),We(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,z&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var d=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"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=e.barLeft+"px";var p=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},no.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},no.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},no.prototype.zeroWidthHack=function(){var e=ve&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},no.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var d=e.getBoundingClientRect(),p=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);p!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},no.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fs=function(){};fs.prototype.update=function(){return{bottom:0,right:0}},fs.prototype.setScrollLeft=function(){},fs.prototype.setScrollTop=function(){},fs.prototype.clear=function(){};function io(e,r){r||(r=ds(e));var s=e.display.barWidth,a=e.display.barHeight;va(e,r);for(var d=0;d<4&&s!=e.display.barWidth||a!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&eo(e),va(e,ds(e)),s=e.display.barWidth,a=e.display.barHeight}function va(e,r){var s=e.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&&e.options.coverGutterNextToScrollbar&&e.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 Sl={native:no,null:fs};function Po(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&le(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Sl[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),We(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?$o(e,r):Gt(e,r)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var hs=0;function Vn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++hs,markArrays:null},qi(e.curOp)}function ni(e){var r=e.curOp;r&&Bd(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ba(s)})}function ba(e){for(var r=e.ops,s=0;s<r.length;s++)Yd(r[s]);for(var a=0;a<r.length;a++)Xd(r[a]);for(var d=0;d<r.length;d++)Jd(r[d]);for(var p=0;p<r.length;p++)Qd(r[p]);for(var v=0;v<r.length;v++)ef(r[v])}function Yd(e){var r=e.cm,s=r.display;vt(r),e.updateMaxLine&&is(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Yr(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Xd(e){e.updatedDisplay=e.mustUpdate&&H1(e.cm,e.update)}function Jd(e){var r=e.cm,s=r.display;e.updatedDisplay&&eo(r),e.barMeasure=ds(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=yc(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+nn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function Qd(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&$o(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==Ae();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&io(r,e.barMeasure),e.updatedDisplay&&W1(r,e.barMeasure),e.selectionChanged&&fa(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&R1(e.cm)}function ef(e){var r=e.cm,s=r.display,a=r.doc;if(e.updatedDisplay&&oo(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tr(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$o(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=jd(r,we(a,e.scrollToPos.from),we(a,e.scrollToPos.to),e.scrollToPos.margin);qd(r,d)}var p=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(p)for(var m=0;m<p.length;++m)p[m].lines.length||qe(p[m],"hide");if(v)for(var y=0;y<v.length;++y)v[y].lines.length&&qe(v[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&qe(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Or(e,r){if(e.curOp)return r();Vn(e);try{return r()}finally{ni(e)}}function qt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Vn(e);try{return r.apply(e,arguments)}finally{ni(e)}}}function kr(e){return function(){if(this.curOp)return e.apply(this,arguments);Vn(this);try{return e.apply(this,arguments)}finally{ni(this)}}}function M(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Vn(r);try{return e.apply(this,arguments)}finally{ni(r)}}}function ii(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,or(Ml,e))}function Ml(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=sa(e,r.highlightFrontier),d=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(p){if(a.line>=e.display.viewFrom){var v=p.styles,m=p.text.length>e.options.maxHighlightLength?cn(r.mode,a.state):null,y=tc(e,p,a,!0);m&&(a.state=m),p.styles=y.styles;var C=p.styleClasses,T=y.classes;T?p.styleClasses=T:C&&(p.styleClasses=null);for(var I=!v||v.length!=p.styles.length||C!=T&&(!C||!T||C.bgClass!=T.bgClass||C.textClass!=T.textClass),W=0;!I&&W<v.length;++W)I=v[W]!=p.styles[W];I&&d.push(a.line),p.stateAfter=a.save(),a.nextLine()}else p.text.length<=e.options.maxHighlightLength&&es(e,p.text,a),p.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ii(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),d.length&&Or(e,function(){for(var p=0;p<d.length;p++)Qi(e,d[p],"text")})}}var Yr=function(e,r,s){var a=e.display;this.viewport=r,this.visible=Ao(a,e.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=on(e),this.events=[]};Yr.prototype.signal=function(e,r){gr(e,r)&&this.events.push(arguments)},Yr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function vt(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=nn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=nn(e)+"px",r.scrollbarsClipped=!0)}function tf(e){if(e.hasFocus())return null;var r=Ae();if(!r||!ue(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ue(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function rf(e){if(!(!e||!e.activeElt||e.activeElt==Ae())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ue(document.body,e.anchorNode)&&ue(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function H1(e,r){var s=e.display,a=e.doc;if(r.editorIsHidden)return wi(e),!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&&_c(e)==0)return!1;oi(e)&&(wi(e),r.dims=on(e));var d=a.first+a.size,p=Math.max(r.visible.from-e.options.viewportMargin,a.first),v=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<p&&p-s.viewFrom<20&&(p=Math.max(a.first,s.viewFrom)),s.viewTo>v&&s.viewTo-v<20&&(v=Math.min(d,s.viewTo)),Jn&&(p=hl(e.doc,p),v=dc(e.doc,v));var m=p!=s.viewFrom||v!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;Gd(e,p,v),s.viewOffset=jr(Ee(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=_c(e);if(!m&&y==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=tf(e);return y>4&&(s.lineDiv.style.display="none"),nf(e,s.updateLineNumbers,r.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,rf(C),Q(s.cursorDiv),Q(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,ii(e,400)),s.updateLineNumbers=null,!0}function oo(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Kr(e.display)-bl(e),s.top)}),r.visible=Ao(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Ao(e.display,e.doc,s));if(!H1(e,r))break;eo(e);var d=ds(e);ls(e),io(e,d),W1(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function F1(e,r){var s=new Yr(e,r);if(H1(e,s)){eo(e),oo(e,s);var a=ds(e);ls(e),io(e,a),W1(e,a),s.finish()}}function nf(e,r,s){var a=e.display,d=e.options.lineNumbers,p=a.lineDiv,v=p.firstChild;function m(K){var ne=K.nextSibling;return E&&ve&&e.display.currentWheelTarget==K?K.style.display="none":K.parentNode.removeChild(K),ne}for(var y=a.view,C=a.viewFrom,T=0;T<y.length;T++){var I=y[T];if(!I.hidden)if(!I.node||I.node.parentNode!=p){var W=$1(e,I,C,s);p.insertBefore(W,v)}else{for(;v!=I.node;)v=m(v);var H=d&&r!=null&&r<=C&&I.lineNumber;I.changes&&(ze(I.changes,"gutter")>-1&&(H=!1),vc(e,I,C,s)),H&&(Q(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(aa(e.options,C)))),v=I.node.nextSibling}C+=I.size}for(;v;)v=m(v)}function B1(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",lr(e,"gutterChanged",e)}function W1(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+nn(e)+"px"}function Ec(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=da(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,p=a+"px",v=0;v<s.length;v++)if(!s[v].hidden){e.options.fixedGutter&&(s[v].gutter&&(s[v].gutter.style.left=p),s[v].gutterBackground&&(s[v].gutterBackground.style.left=p));var m=s[v].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=p}e.options.fixedGutter&&(r.gutters.style.left=a+d+"px")}}function oi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=aa(e.options,r.first+r.size-1),a=e.display;if(s.length!=a.lineNumChars){var d=a.measure.appendChild(O("div",[O("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=d.firstChild.offsetWidth,v=d.offsetWidth-p;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(p,a.lineGutter.offsetWidth-v)+1,a.lineNumWidth=a.lineNumInnerWidth+v,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",B1(e.display),!0}return!1}function V1(e,r){for(var s=[],a=!1,d=0;d<e.length;d++){var p=e[d],v=null;if(typeof p!="string"&&(v=p.style,p=p.className),p=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:p,style:v})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Ic(e){var r=e.gutters,s=e.gutterSpecs;Q(r),e.lineGutter=null;for(var a=0;a<s.length;++a){var d=s[a],p=d.className,v=d.style,m=r.appendChild(O("div",null,"CodeMirror-gutter "+p));v&&(m.style.cssText=v),p=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",B1(e)}function ps(e){Ic(e.display),ot(e),Ec(e)}function of(e,r,s,a){var d=this;this.input=s,d.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=k("div",null,"CodeMirror-code"),d.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=O("div",null,"CodeMirror-cursors"),d.measure=O("div",null,"CodeMirror-measure"),d.lineMeasure=O("div",null,"CodeMirror-measure"),d.lineSpace=k("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var p=k("div",[d.lineSpace],"CodeMirror-lines");d.mover=O("div",[p],null,"position: relative"),d.sizer=O("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=O("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),d.gutters=O("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=O("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=O("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),z&&S<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!E&&!(c&&be)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=V1(a.gutters,a.lineNumbers),Ic(d),s.init(d)}var _l=0,Qt=null;z?Qt=-.53:c?Qt=15:B?Qt=-.7:J&&(Qt=-1/3);function Ac(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function af(e){var r=Ac(e);return r.x*=Qt,r.y*=Qt,r}function $c(e,r){var s=Ac(r),a=s.x,d=s.y,p=e.display,v=p.scroller,m=v.scrollWidth>v.clientWidth,y=v.scrollHeight>v.clientHeight;if(a&&m||d&&y){if(d&&ve&&E){e:for(var C=r.target,T=p.view;C!=v;C=C.parentNode)for(var I=0;I<T.length;I++)if(T[I].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!c&&!R&&Qt!=null){d&&y&&Gt(e,Math.max(0,v.scrollTop+d*Qt)),$o(e,Math.max(0,v.scrollLeft+a*Qt)),(!d||d&&y)&&vr(r),p.wheelStartX=null;return}if(d&&Qt!=null){var W=d*Qt,H=e.doc.scrollTop,K=H+p.wrapper.clientHeight;W<0?H=Math.max(0,H+W-50):K=Math.min(e.doc.height,K+W+50),F1(e,{top:H,bottom:K})}_l<20&&(p.wheelStartX==null?(p.wheelStartX=v.scrollLeft,p.wheelStartY=v.scrollTop,p.wheelDX=a,p.wheelDY=d,setTimeout(function(){if(p.wheelStartX!=null){var ne=v.scrollLeft-p.wheelStartX,he=v.scrollTop-p.wheelStartY,me=he&&p.wheelDY&&he/p.wheelDY||ne&&p.wheelDX&&ne/p.wheelDX;p.wheelStartX=p.wheelStartY=null,me&&(Qt=(Qt*_l+me)/(_l+1),++_l)}},200)):(p.wheelDX+=a,p.wheelDY+=d))}}var hn=function(e,r){this.ranges=e,this.primIndex=r};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=e.ranges[r];if(!A(s.anchor,a.anchor)||!A(s.head,a.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Lt(te(this.ranges[r].anchor),te(this.ranges[r].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(r,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var Lt=function(e,r){this.anchor=e,this.head=r};Lt.prototype.from=function(){return Ke(this.anchor,this.head)},Lt.prototype.to=function(){return ce(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(e,r,s){var a=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(W,H){return w(W.from(),H.from())}),s=ze(r,d);for(var p=1;p<r.length;p++){var v=r[p],m=r[p-1],y=w(m.to(),v.from());if(a&&!v.empty()?y>0:y>=0){var C=Ke(m.from(),v.from()),T=ce(m.to(),v.to()),I=m.empty()?v.from()==v.head:m.from()==m.head;p<=s&&--s,r.splice(--p,2,new Lt(I?T:C,I?C:T))}}return new hn(r,s)}function ao(e,r){return new hn([new Lt(e,r||e)],0)}function so(e){return e.text?ae(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zn(e,r){if(w(e,r.from)<0)return e;if(w(e,r.to)<=0)return so(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=so(r).ch-r.to.ch),ae(s,a)}function Z1(e,r){for(var s=[],a=0;a<e.sel.ranges.length;a++){var d=e.sel.ranges[a];s.push(new Lt(zn(d.anchor,r),zn(d.head,r)))}return Er(e.cm,s,e.sel.primIndex)}function Pc(e,r,s){return e.line==r.line?ae(s.line,e.ch-r.ch+s.ch):ae(s.line+(e.line-r.line),e.ch)}function sf(e,r,s){for(var a=[],d=ae(e.first,0),p=d,v=0;v<r.length;v++){var m=r[v],y=Pc(m.from,d,p),C=Pc(so(m),d,p);if(d=m.to,p=C,s=="around"){var T=e.sel.ranges[v],I=w(T.head,T.anchor)<0;a[v]=new Lt(I?C:y,I?y:C)}else a[v]=new Lt(y,y)}return new hn(a,e.sel.primIndex)}function U1(e){e.doc.mode=oa(e.options,e.doc.modeOption),gs(e)}function gs(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ii(e,100),e.state.modeGen++,e.curOp&&ot(e)}function G1(e,r){return r.from.ch==0&&r.to.ch==0&&Qe(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Tl(e,r,s,a){function d(xe){return s?s[xe]:null}function p(xe,ye,Se){fc(xe,ye,Se,a),lr(xe,"change",xe,r)}function v(xe,ye){for(var Se=[],He=xe;He<ye;++He)Se.push(new _r(C[He],d(He),a));return Se}var m=r.from,y=r.to,C=r.text,T=Ee(e,m.line),I=Ee(e,y.line),W=Qe(C),H=d(C.length-1),K=y.line-m.line;if(r.full)e.insert(0,v(0,C.length)),e.remove(C.length,e.size-C.length);else if(G1(e,r)){var ne=v(0,C.length-1);p(I,I.text,H),K&&e.remove(m.line,K),ne.length&&e.insert(m.line,ne)}else if(T==I)if(C.length==1)p(T,T.text.slice(0,m.ch)+W+T.text.slice(y.ch),H);else{var he=v(1,C.length-1);he.push(new _r(W+T.text.slice(y.ch),H,a)),p(T,T.text.slice(0,m.ch)+C[0],d(0)),e.insert(m.line+1,he)}else if(C.length==1)p(T,T.text.slice(0,m.ch)+C[0]+I.text.slice(y.ch),d(0)),e.remove(m.line+1,K);else{p(T,T.text.slice(0,m.ch)+C[0],d(0)),p(I,W+I.text.slice(y.ch),H);var me=v(1,C.length-1);K>1&&e.remove(m.line+1,K-1),e.insert(m.line+1,me)}lr(e,"change",e,r)}function lo(e,r,s){function a(d,p,v){if(d.linked)for(var m=0;m<d.linked.length;++m){var y=d.linked[m];if(y.doc!=p){var C=v&&y.sharedHist;s&&!C||(r(y.doc,C),a(y.doc,d,C))}}}a(e,null,!0)}function Dc(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ji(e),U1(e),Ol(e),e.options.direction=r.direction,e.options.lineWrapping||is(e),e.options.mode=r.modeOption,ot(e)}function Ol(e){(e.doc.direction=="rtl"?et:le)(e.display.lineDiv,"CodeMirror-rtl")}function vs(e){Or(e,function(){Ol(e),ot(e)})}function Do(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function q1(e,r){var s={from:te(r.from),to:so(r),text:dn(e,r.from,r.to)};return Nc(e,s,r.from.line,r.to.line+1),lo(e,function(a){return Nc(a,s,r.from.line,r.to.line+1)},!0),s}function j1(e){for(;e.length;){var r=Qe(e);if(r.ranges)e.pop();else break}}function lf(e,r){if(r)return j1(e.done),Qe(e.done);if(e.done.length&&!Qe(e.done).ranges)return Qe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function ai(e,r,s,a){var d=e.history;d.undone.length=0;var p=+new Date,v,m;if((d.lastOp==a||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(v=lf(d,d.lastOp==a)))m=Qe(v.changes),w(r.from,r.to)==0&&w(r.from,m.to)==0?m.to=so(r):v.changes.push(q1(e,r));else{var y=Qe(d.done);for((!y||!y.ranges)&&Xr(e.sel,d.done),v={changes:[q1(e,r)],generation:d.generation},d.done.push(v);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=p,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=r.origin,m||qe(e,"historyAdded")}function K1(e,r,s,a){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,r,s,a){var d=e.history,p=a&&a.origin;s==d.lastSelOp||p&&d.lastSelOrigin==p&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==p||K1(e,p,Qe(d.done),r))?d.done[d.done.length-1]=r:Xr(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=p,d.lastSelOp=s,a&&a.clearRedo!==!1&&j1(d.undone)}function Xr(e,r){var s=Qe(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Nc(e,r,s,a){var d=r["spans_"+e.id],p=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(v){v.markedSpans&&((d||(d=r["spans_"+e.id]={}))[p]=v.markedSpans),++p})}function Rc(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function Hc(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var a=[],d=0;d<r.text.length;++d)a.push(Rc(s[d]));return a}function ma(e,r){var s=Hc(e,r),a=S1(e,r);if(!s)return a;if(!a)return s;for(var d=0;d<s.length;++d){var p=s[d],v=a[d];if(p&&v)e:for(var m=0;m<v.length;++m){for(var y=v[m],C=0;C<p.length;++C)if(p[C].marker==y.marker)continue e;p.push(y)}else v&&(s[d]=v)}return s}function pn(e,r,s){for(var a=[],d=0;d<e.length;++d){var p=e[d];if(p.ranges){a.push(s?hn.prototype.deepCopy.call(p):p);continue}var v=p.changes,m=[];a.push({changes:m});for(var y=0;y<v.length;++y){var C=v[y],T=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),r)for(var I in C)(T=I.match(/^spans_(\d+)$/))&&ze(r,Number(T[1]))>-1&&(Qe(m)[I]=C[I],delete C[I])}}return a}function kl(e,r,s,a){if(a){var d=e.anchor;if(s){var p=w(r,d)<0;p!=w(s,d)<0?(d=r,r=s):p!=w(r,s)<0&&(r=s)}return new Lt(d,r)}else return new Lt(s||r,r)}function El(e,r,s,a,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),br(e,new hn([kl(e.sel.primary(),r,s,d)],0),a)}function bs(e,r,s){for(var a=[],d=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)a[p]=kl(e.sel.ranges[p],r[p],null,d);var v=Er(e.cm,a,e.sel.primIndex);br(e,v,s)}function Y1(e,r,s,a){var d=e.sel.ranges.slice(0);d[r]=s,br(e,Er(e.cm,d,e.sel.primIndex),a)}function X1(e,r,s,a){br(e,ao(r,s),a)}function Ir(e,r,s){var a={ranges:r.ranges,update:function(d){this.ranges=[];for(var p=0;p<d.length;p++)this.ranges[p]=new Lt(we(e,d[p].anchor),we(e,d[p].head))},origin:s&&s.origin};return qe(e,"beforeSelectionChange",e,a),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=r.ranges?Er(e.cm,a.ranges,a.ranges.length-1):r}function Il(e,r,s){var a=e.history.done,d=Qe(a);d&&d.ranges?(a[a.length-1]=r,gn(e,r,s)):br(e,r,s)}function br(e,r,s){gn(e,r,s),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function gn(e,r,s){(gr(e,"beforeSelectionChange")||e.cm&&gr(e.cm,"beforeSelectionChange"))&&(r=Ir(e,r,s));var a=s&&s.bias||(w(r.primary().head,e.sel.primary().head)<0?-1:1);Al(e,uo(e,r,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ro(e.cm)}function Al(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,na(e.cm)),lr(e,"cursorActivity",e))}function ms(e){Al(e,uo(e,e.sel,null,!1))}function uo(e,r,s,a){for(var d,p=0;p<r.ranges.length;p++){var v=r.ranges[p],m=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],y=mr(e,v.anchor,m&&m.anchor,s,a),C=mr(e,v.head,m&&m.head,s,a);(d||y!=v.anchor||C!=v.head)&&(d||(d=r.ranges.slice(0,p)),d[p]=new Lt(y,C))}return d?Er(e.cm,d,r.primIndex):r}function Ro(e,r,s,a,d){var p=Ee(e,r.line);if(p.markedSpans)for(var v=0;v<p.markedSpans.length;++v){var m=p.markedSpans[v],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,T="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=r.ch:m.from<r.ch))&&(m.to==null||(T?m.to>=r.ch:m.to>r.ch))){if(d&&(qe(y,"beforeCursorEnter"),y.explicitlyCleared))if(p.markedSpans){--v;continue}else break;if(!y.atomic)continue;if(s){var I=y.find(a<0?1:-1),W=void 0;if((a<0?T:C)&&(I=$l(e,I,-a,I&&I.line==r.line?p:null)),I&&I.line==r.line&&(W=w(I,s))&&(a<0?W<0:W>0))return Ro(e,I,r,a,d)}var H=y.find(a<0?-1:1);return(a<0?C:T)&&(H=$l(e,H,a,H.line==r.line?p:null)),H?Ro(e,H,r,a,d):null}}return r}function mr(e,r,s,a,d){var p=a||1,v=Ro(e,r,s,p,d)||!d&&Ro(e,r,s,p,!0)||Ro(e,r,s,-p,d)||!d&&Ro(e,r,s,-p,!0);return v||(e.cantEdit=!0,ae(e.first,0))}function $l(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?we(e,ae(r.line-1)):null:s>0&&r.ch==(a||Ee(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+s)}function Fc(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),st)}function Bc(e,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(d,p,v,m){d&&(a.from=we(e,d)),p&&(a.to=we(e,p)),v&&(a.text=v),m!==void 0&&(a.origin=m)}),qe(e,"beforeChange",e,a),e.cm&&qe(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function ya(e,r,s){if(e.cm){if(!e.cm.curOp)return qt(e.cm,ya)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"))&&(r=Bc(e,r,!0),!r))){var a=L1&&!s&&M1(e,r.from,r.to);if(a)for(var d=a.length-1;d>=0;--d)Pl(e,{from:a[d].from,to:a[d].to,text:d?[""]:r.text,origin:r.origin});else Pl(e,r)}}function Pl(e,r){if(!(r.text.length==1&&r.text[0]==""&&w(r.from,r.to)==0)){var s=Z1(e,r);ai(e,r,s,e.cm?e.cm.curOp.id:NaN),wa(e,r,s,S1(e,r));var a=[];lo(e,function(d,p){!p&&ze(a,d.history)==-1&&(Vc(d.history,r),a.push(d.history)),wa(d,r,null,S1(d,r))})}}function Dl(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var d=e.history,p,v=e.sel,m=r=="undo"?d.done:d.undone,y=r=="undo"?d.undone:d.done,C=0;C<m.length&&(p=m[C],!(s?p.ranges&&!p.equals(e.sel):!p.ranges));C++);if(C!=m.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(p=m.pop(),p.ranges){if(Xr(p,y),s&&!p.equals(e.sel)){br(e,p,{clearRedo:!1});return}v=p}else if(a){m.push(p);return}else break;var T=[];Xr(v,y),y.push({changes:T,generation:d.generation}),d.generation=p.generation||++d.maxGeneration;for(var I=gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"),W=function(ne){var he=p.changes[ne];if(he.origin=r,I&&!Bc(e,he,!1))return m.length=0,{};T.push(q1(e,he));var me=ne?Z1(e,he):Qe(m);wa(e,he,me,ma(e,he)),!ne&&e.cm&&e.cm.scrollIntoView({from:he.from,to:so(he)});var xe=[];lo(e,function(ye,Se){!Se&&ze(xe,ye.history)==-1&&(Vc(ye.history,he),xe.push(ye.history)),wa(ye,he,null,ma(ye,he))})},H=p.changes.length-1;H>=0;--H){var K=W(H);if(K)return K.v}}}}function Ca(e,r){if(r!=0&&(e.first+=r,e.sel=new hn(bt(e.sel.ranges,function(d){return new Lt(ae(d.anchor.line+r,d.anchor.ch),ae(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){ot(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Qi(e.cm,a,"gutter")}}function wa(e,r,s,a){if(e.cm&&!e.cm.curOp)return qt(e.cm,wa)(e,r,s,a);if(r.to.line<e.first){Ca(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);Ca(e,d),r={from:ae(e.first,0),to:ae(r.to.line+d,r.to.ch),text:[Qe(r.text)],origin:r.origin}}var p=e.lastLine();r.to.line>p&&(r={from:r.from,to:ae(p,Ee(e,p).text.length),text:[r.text[0]],origin:r.origin}),r.removed=dn(e,r.from,r.to),s||(s=Z1(e,r)),e.cm?uf(e.cm,r,a):Tl(e,r,a),gn(e,s,st),e.cantEdit&&mr(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function uf(e,r,s){var a=e.doc,d=e.display,p=r.from,v=r.to,m=!1,y=p.line;e.options.lineWrapping||(y=zt(Qn(Ee(a,p.line))),a.iter(y,v.line+1,function(H){if(H==d.maxLine)return m=!0,!0})),a.sel.contains(r.from,r.to)>-1&&na(e),Tl(a,r,s,Mc(e)),e.options.lineWrapping||(a.iter(y,p.line+r.text.length,function(H){var K=ns(H);K>d.maxLineLength&&(d.maxLine=H,d.maxLineLength=K,d.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),Id(a,p.line),ii(e,400);var C=r.text.length-(v.line-p.line)-1;r.full?ot(e):p.line==v.line&&r.text.length==1&&!G1(e.doc,r)?Qi(e,p.line,"text"):ot(e,p.line,v.line+1,C);var T=gr(e,"changes"),I=gr(e,"change");if(I||T){var W={from:p,to:v,text:r.text,removed:r.removed,origin:r.origin};I&&lr(e,"change",e,W),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(W)}e.display.selForContextMenu=null}function xa(e,r,s,a,d){var p;a||(a=s),w(a,s)<0&&(p=[a,s],s=p[0],a=p[1]),typeof r=="string"&&(r=e.splitLines(r)),ya(e,{from:s,to:a,text:r,origin:d})}function za(e,r,s,a){s<e.line?e.line+=a:r<e.line&&(e.line=r,e.ch=0)}function Wc(e,r,s,a){for(var d=0;d<e.length;++d){var p=e[d],v=!0;if(p.ranges){p.copied||(p=e[d]=p.deepCopy(),p.copied=!0);for(var m=0;m<p.ranges.length;m++)za(p.ranges[m].anchor,r,s,a),za(p.ranges[m].head,r,s,a);continue}for(var y=0;y<p.changes.length;++y){var C=p.changes[y];if(s<C.from.line)C.from=ae(C.from.line+a,C.from.ch),C.to=ae(C.to.line+a,C.to.ch);else if(r<=C.to.line){v=!1;break}}v||(e.splice(0,d+1),d=0)}}function Vc(e,r){var s=r.from.line,a=r.to.line,d=r.text.length-(a-s)-1;Wc(e.done,s,a,d),Wc(e.undone,s,a,d)}function Ho(e,r,s,a){var d=r,p=r;return typeof r=="number"?p=Ee(e,gt(e,r)):d=zt(r),d==null?null:(a(p,d)&&e.cm&&Qi(e.cm,d,s),p)}function La(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}La.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,a=e+r;s<a;++s){var d=this.lines[s];this.height-=d.height,hc(d),lr(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(e,r,s){for(var a=e+r;e<a;++e)if(s(this.lines[e]))return!0}};function ys(e){this.children=e;for(var r=0,s=0,a=0;a<e.length;++a){var d=e[a];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}ys.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],d=a.chunkSize();if(e<d){var p=Math.min(r,d-e),v=a.height;if(a.removeInner(e,p),this.height-=v-a.height,d==p&&(this.children.splice(s--,1),a.parent=null),(r-=p)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof La))){var m=[];this.collapse(m),this.children=[new La(m)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<=p){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var v=d.lines.length%25+25,m=v;m<d.lines.length;){var y=new La(d.lines.slice(m,m+=25));d.height-=y.height,this.children.splice(++a,0,y),y.parent=this}d.lines=d.lines.slice(0,v),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new ys(r);if(e.parent){e.size-=s.size,e.height-=s.height;var d=ze(e.parent.children,e);e.parent.children.splice(d+1,0,s)}else{var a=new ys(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<p){var v=Math.min(r,p-e);if(d.iterN(e,v,s))return!0;if((r-=v)==0)break;e=0}else e-=p}}};var Cs=function(e,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=r};Cs.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var p=To(this);tn(s,Math.max(0,s.height-p)),e&&(Or(e,function(){Zc(e,s,-p),Qi(e,a,"widget")}),lr(e,"lineWidgetCleared",e,this,a))}},Cs.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var d=To(this)-r;d&&(Ut(this.doc,a)||tn(a,a.height+d),s&&Or(s,function(){s.curOp.forceUpdate=!0,Zc(s,a,d),lr(s,"lineWidgetChanged",s,e,zt(a))}))},Dn(Cs);function Zc(e,r,s){jr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ga(e,s)}function Uc(e,r,s,a){var d=new Cs(e,s,a),p=e.cm;return p&&d.noHScroll&&(p.display.alignWidgets=!0),Ho(e,r,"widget",function(v){var m=v.widgets||(v.widgets=[]);if(d.insertAt==null?m.push(d):m.splice(Math.min(m.length,Math.max(0,d.insertAt)),0,d),d.line=v,p&&!Ut(e,v)){var y=jr(v)<e.scrollTop;tn(v,v.height+To(d)),y&&ga(p,d.height),p.curOp.forceUpdate=!0}return!0}),p&&lr(p,"lineWidgetAdded",p,d,typeof r=="number"?r:zt(r)),d}var Nl=0,co=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Nl};co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Vn(e),gr(this,"clear")){var s=this.find();s&&lr(this,"clear",s.from,s.to)}for(var a=null,d=null,p=0;p<this.lines.length;++p){var v=this.lines[p],m=ts(v.markedSpans,this);e&&!this.collapsed?Qi(e,zt(v),"text"):e&&(m.to!=null&&(d=zt(v)),m.from!=null&&(a=zt(v))),v.markedSpans=Ad(v.markedSpans,m),m.from==null&&this.collapsed&&!Ut(this.doc,v)&&e&&tn(v,Xi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Qn(this.lines[y]),T=ns(C);T>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&ot(e,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ms(e.doc)),e&&lr(e,"markerCleared",e,this,a,d),r&&ni(e),this.parent&&this.parent.clear()}},co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,d=0;d<this.lines.length;++d){var p=this.lines[d],v=ts(p.markedSpans,this);if(v.from!=null&&(s=ae(r?p:zt(p),v.from),e==-1))return s;if(v.to!=null&&(a=ae(r?p:zt(p),v.to),e==1))return a}return s&&{from:s,to:a}},co.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Or(a,function(){var d=r.line,p=zt(r.line),v=N1(a,p);if(v&&(xc(v),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Ut(s.doc,d)&&s.height!=null){var m=s.height;s.height=null;var y=To(s)-m;y&&tn(d,d.height+y)}lr(a,"markerChanged",a,e)})},co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ze(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},co.prototype.detachLine=function(e){if(this.lines.splice(ze(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Dn(co);function fo(e,r,s,a,d){if(a&&a.shared)return Gc(e,r,s,a,d);if(e.cm&&!e.cm.curOp)return qt(e.cm,fo)(e,r,s,a,d);var p=new co(e,d),v=w(r,s);if(a&&_t(a,p,!1),v>0||v==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=k("span",[p.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(cc(e,r.line,r,s,p)||r.line!=s.line&&cc(e,s.line,r,s,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");oc()}p.addToHistory&&ai(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var m=r.line,y=e.cm,C;if(e.iter(m,s.line+1,function(I){y&&p.collapsed&&!y.options.lineWrapping&&Qn(I)==y.display.maxLine&&(C=!0),p.collapsed&&m!=r.line&&tn(I,0),ac(I,new ul(p,m==r.line?r.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),p.collapsed&&e.iter(r.line,s.line+1,function(I){Ut(e,I)&&tn(I,0)}),p.clearOnEnter&&We(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(ic(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Nl,p.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),p.collapsed)ot(y,r.line,s.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var T=r.line;T<=s.line;T++)Qi(y,T,"text");p.atomic&&ms(y.doc),lr(y,"markerAdded",y,p)}return p}var Sa=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};Sa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Sa.prototype.find=function(e,r){return this.primary.find(e,r)},Dn(Sa);function Gc(e,r,s,a,d){a=_t(a),a.shared=!1;var p=[fo(e,r,s,a,d)],v=p[0],m=a.widgetNode;return lo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),p.push(fo(y,we(y,r),we(y,s),a,d));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;v=Qe(p)}),new Sa(p,v)}function J1(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function Rl(e,r){for(var s=0;s<r.length;s++){var a=r[s],d=a.find(),p=e.clipPos(d.from),v=e.clipPos(d.to);if(w(p,v)){var m=fo(e,p,v,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function cf(e){for(var r=function(a){var d=e[a],p=[d.primary.doc];lo(d.primary.doc,function(y){return p.push(y)});for(var v=0;v<d.markers.length;v++){var m=d.markers[v];ze(p,m.doc)==-1&&(m.parent=null,d.markers.splice(v--,1))}},s=0;s<e.length;s++)r(s)}var qc=0,Nr=function(e,r,s,a,d){if(!(this instanceof Nr))return new Nr(e,r,s,a,d);s==null&&(s=0),ys.call(this,[new La([new _r("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var p=ae(s,0);this.sel=ao(p),this.history=new Do(null),this.id=++qc,this.modeOption=r,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Tl(this,{from:p,to:p,text:e}),br(this,ao(p),st)};Nr.prototype=en(ys.prototype,{constructor:Nr,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Qa(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:M(function(e){var r=ae(this.first,0),s=this.first+this.size-1;ya(this,{from:r,to:ae(s,Ee(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&cs(this.cm,0,0),br(this,ao(r),st)}),replaceRange:function(e,r,s,a){r=we(this,r),s=s?we(this,s):r,xa(this,e,r,s,a)},getRange:function(e,r,s){var a=dn(this,we(this,e),we(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Ui(this,e))return Ee(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ee(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:M(function(e,r,s){X1(this,we(this,typeof e=="number"?ae(e,r||0):e),null,s)}),setSelection:M(function(e,r,s){X1(this,we(this,e),we(this,r||e),s)}),extendSelection:M(function(e,r,s){El(this,we(this,e),r&&we(this,r),s)}),extendSelections:M(function(e,r){bs(this,rn(this,e),r)}),extendSelectionsBy:M(function(e,r){var s=bt(this.sel.ranges,e);bs(this,rn(this,s),r)}),setSelections:M(function(e,r,s){if(e.length){for(var a=[],d=0;d<e.length;d++)a[d]=new Lt(we(this,e[d].anchor),we(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),br(this,Er(this.cm,a,r),s)}}),addSelection:M(function(e,r,s){var a=this.sel.ranges.slice(0);a.push(new Lt(we(this,e),we(this,r||e))),br(this,Er(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var d=dn(this,r[a].from(),r[a].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var d=dn(this,s[a].from(),s[a].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[a]=d}return r},replaceSelection:function(e,r,s){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=e;this.replaceSelections(a,r,s||"+input")},replaceSelections:M(function(e,r,s){for(var a=[],d=this.sel,p=0;p<d.ranges.length;p++){var v=d.ranges[p];a[p]={from:v.from(),to:v.to(),text:this.splitLines(e[p]),origin:s}}for(var m=r&&r!="end"&&sf(this,a,r),y=a.length-1;y>=0;y--)ya(this,a[y]);m?Il(this,m):this.cm&&ro(this.cm)}),undo:M(function(){Dl(this,"undo")}),redo:M(function(){Dl(this,"redo")}),undoSelection:M(function(){Dl(this,"undo",!0)}),redoSelection:M(function(){Dl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Do(this.history),lo(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:pn(this.history.done),undone:pn(this.history.undone)}},setHistory:function(e){var r=this.history=new Do(this.history);r.done=pn(e.done.slice(0),null,!0),r.undone=pn(e.undone.slice(0),null,!0)},setGutterMarker:M(function(e,r,s){return Ho(this,e,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[r]=s,!s&&se(d)&&(a.gutterMarkers=null),!0})}),clearGutter:M(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Ho(r,s,"gutter",function(){return s.gutterMarkers[e]=null,se(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Ui(this,e)||(r=e,e=Ee(this,e),!e))return null}else if(r=zt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=s;else{if(Ce(s).test(a[d]))return!1;a[d]+=" "+s}return!0})}),removeLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",p=a[d];if(p)if(s==null)a[d]=null;else{var v=p.match(Ce(s));if(!v)return!1;var m=v.index+v[0].length;a[d]=p.slice(0,v.index)+(!v.index||m==p.length?"":" ")+p.slice(m)||null}else return!1;return!0})}),addLineWidget:M(function(e,r,s){return Uc(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return fo(this,we(this,e),we(this,r),s,s&&s.type||"range")},setBookmark:function(e,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 e=we(this,e),fo(this,e,e,s,"bookmark")},findMarksAt:function(e){e=we(this,e);var r=[],s=Ee(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var d=s[a];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=we(this,e),r=we(this,r);var a=[],d=e.line;return this.iter(e.line,r.line+1,function(p){var v=p.markedSpans;if(v)for(var m=0;m<v.length;m++){var y=v[m];!(y.to!=null&&d==e.line&&e.ch>=y.to||y.from==null&&d!=e.line||y.from!=null&&d==r.line&&y.from>=r.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++d}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(d){var p=d.text.length+a;if(p>e)return r=e,!0;e-=p,++s}),we(this,ae(s,r))},indexFromPos:function(e){e=we(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){r+=a.text.length+s}),r},copy:function(e){var r=new Nr(Qa(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,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Nr(Qa(this,r,s),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Rl(a,J1(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),cf(J1(this));break}}if(e.history==this.history){var a=[e.id];lo(e,function(d){return a.push(d.id)},!0),e.history=new Do(null),e.history.done=pn(this.history.done,a),e.history.undone=pn(this.history.undone,a)}},iterLinkedDocs:function(e){lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zo(e)},lineSeparator:function(){return this.lineSep||`
|
|
2899
|
-
`},setDirection:M(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&vs(this.cm))})}),Nr.prototype.eachLine=Nr.prototype.iter;var jc=0;function Kc(e){var r=this;if(eu(r),!(Jt(r,e)||Ci(r.display,e))){vr(e),z&&(jc=+new Date);var s=ti(r,e,!0),a=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,p=Array(d),v=0,m=function(){++v==d&&qt(r,function(){s=we(r.doc,s);var H={from:s,to:s,text:r.doc.splitLines(p.filter(function(K){return K!=null}).join(r.doc.lineSeparator())),origin:"paste"};ya(r.doc,H),Il(r.doc,ao(we(r.doc,s),we(r.doc,so(H))))})()},y=function(H,K){if(r.options.allowDropFileTypes&&ze(r.options.allowDropFileTypes,H.type)==-1){m();return}var ne=new FileReader;ne.onerror=function(){return m()},ne.onload=function(){var he=ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){m();return}p[K]=he,m()},ne.readAsText(H)},C=0;C<a.length;C++)y(a[C],C);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var T=e.dataTransfer.getData("Text");if(T){var I;if(r.state.draggingText&&!r.state.draggingText.copy&&(I=r.listSelections()),gn(r.doc,ao(s,s)),I)for(var W=0;W<I.length;++W)xa(r.doc,"",I[W].anchor,I[W].head,"drag");r.replaceSelection(T,"around","paste"),r.display.input.focus()}}catch{}}}}function df(e,r){if(z&&(!e.state.draggingText||+new Date-jc<100)){wo(r);return}if(!(Jt(e,r)||Ci(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!J)){var s=O("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),R&&s.parentNode.removeChild(s)}}function Q1(e,r){var s=ti(e,r);if(s){var a=document.createDocumentFragment();xi(e,s,a),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),$(e.display.dragCursor,a)}}function eu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Hl(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var d=r[a].CodeMirror;d&&s.push(d)}s.length&&s[0].operation(function(){for(var p=0;p<s.length;p++)e(s[p])})}}var Yc=!1;function tu(){Yc||(dt(),Yc=!0)}function dt(){var e;We(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Hl(ff)},100))}),We(window,"blur",function(){return Hl(Io)})}function ff(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var ho={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"},zi=0;zi<10;zi++)ho[zi+48]=ho[zi+96]=String(zi);for(var ws=65;ws<=90;ws++)ho[ws]=String.fromCharCode(ws);for(var xs=1;xs<=12;xs++)ho[xs+111]=ho[xs+63235]="F"+xs;var Li={};Li.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Li.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Li.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Li.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Li.default=ve?Li.macDefault:Li.pcDefault;function Ln(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,a,d,p,v=0;v<r.length-1;v++){var m=r[v];if(/^(cmd|meta|m)$/i.test(m))p=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))d=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),p&&(e="Cmd-"+e),d&&(e="Shift-"+e),e}function hf(e){var r={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var d=bt(s.split(" "),Ln),p=0;p<d.length;p++){var v=void 0,m=void 0;p==d.length-1?(m=d.join(" "),v=a):(m=d.slice(0,p+1).join(" "),v="...");var y=r[m];if(!y)r[m]=v;else if(y!=v)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in r)e[C]=r[C];return e}function Si(e,r,s,a){r=Rr(r);var d=r.call?r.call(e,a):r[e];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&s(d))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Si(e,r.fallthrough,s,a);for(var p=0;p<r.fallthrough.length;p++){var v=Si(e,r.fallthrough[p],s,a);if(v)return v}}}function Fl(e){var r=typeof e=="string"?e:ho[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function ru(e,r,s){var a=e;return r.altKey&&a!="Alt"&&(e="Alt-"+e),(je?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(je?r.ctrlKey:r.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function nu(e,r){if(R&&e.keyCode==34&&e.char)return!1;var s=ho[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),ru(s,e,r))}function Rr(e){return typeof e=="string"?Li[e]:e}function vn(e,r){for(var s=e.doc.sel.ranges,a=[],d=0;d<s.length;d++){for(var p=r(s[d]);a.length&&w(p.from,Qe(a).to)<=0;){var v=a.pop();if(w(v.from,p.from)<0){p.from=v.from;break}}a.push(p)}Or(e,function(){for(var m=a.length-1;m>=0;m--)xa(e.doc,"",a[m].from,a[m].to,"+delete");ro(e)})}function zs(e,r,s){var a=sr(e.text,r+s,s);return a<0||a>e.text.length?null:a}function Bl(e,r,s){var a=zs(e,r.ch,s);return a==null?null:new ae(r.line,a,s<0?"after":"before")}function Ma(e,r,s,a,d){if(e){r.doc.direction=="rtl"&&(d=-d);var p=Dr(s,r.doc.direction);if(p){var v=d<0?Qe(p):p[0],m=d<0==(v.level==1),y=m?"after":"before",C;if(v.level>0||r.doc.direction=="rtl"){var T=Bn(r,s);C=d<0?s.text.length-1:0;var I=ei(r,T,C).top;C=Lr(function(W){return ei(r,T,W).top==I},d<0==(v.level==1)?v.from:v.to-1,C),y=="before"&&(C=zs(s,C,1))}else C=d<0?v.to:v.from;return new ae(a,C,y)}}return new ae(a,d<0?s.text.length:0,d<0?"before":"after")}function Xc(e,r,s,a){var d=Dr(r,e.doc.direction);if(!d)return Bl(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 p=Vt(d,s.ch,s.sticky),v=d[p];if(e.doc.direction=="ltr"&&v.level%2==0&&(a>0?v.to>s.ch:v.from<s.ch))return Bl(r,s,a);var m=function(me,xe){return zs(r,me instanceof ae?me.ch:me,xe)},y,C=function(me){return e.options.lineWrapping?(y=y||Bn(e,r),q(e,r,y,me)):{begin:0,end:r.text.length}},T=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||v.level==1){var I=v.level==1==a<0,W=m(s,I?1:-1);if(W!=null&&(I?W<=v.to&&W<=T.end:W>=v.from&&W>=T.begin)){var H=I?"before":"after";return new ae(s.line,W,H)}}var K=function(me,xe,ye){for(var Se=function(It,rr){return rr?new ae(s.line,m(It,1),"before"):new ae(s.line,It,"after")};me>=0&&me<d.length;me+=xe){var He=d[me],Pe=xe>0==(He.level!=1),ut=Pe?ye.begin:m(ye.end,-1);if(He.from<=ut&&ut<He.to||(ut=Pe?He.from:m(He.to,-1),ye.begin<=ut&&ut<ye.end))return Se(ut,Pe)}},ne=K(p+a,a,T);if(ne)return ne;var he=a>0?T.end:m(T.begin,-1);return he!=null&&!(a>0&&he==r.text.length)&&(ne=K(a>0?0:d.length-1,a,C(he)),ne)?ne:null}var Fo={selectAll:Fc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),st)},killLine:function(e){return vn(e,function(r){if(r.empty()){var s=Ee(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:ae(r.head.line+1,0)}:{from:r.head,to:ae(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:we(e.doc,ae(r.to().line+1,0))}})},delLineLeft:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return iu(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Wl(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return ou(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},Ue)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},Ue)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Wl(e,r.head):a},Ue)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],s=e.listSelections(),a=e.options.tabSize,d=0;d<s.length;d++){var p=s[d].from(),v=xt(e.getLine(p.line),p.ch,a);r.push(tr(a-v%a))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Or(e,function(){for(var r=e.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var d=r[a].head,p=Ee(e.doc,d.line).text;if(p){if(d.ch==p.length&&(d=new ae(d.line,d.ch-1)),d.ch>0)d=new ae(d.line,d.ch+1),e.replaceRange(p.charAt(d.ch-1)+p.charAt(d.ch-2),ae(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var v=Ee(e.doc,d.line-1).text;v&&(d=new ae(d.line,1),e.replaceRange(p.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),ae(d.line-1,v.length-1),d,"+transpose"))}}s.push(new Lt(d,d))}e.setSelections(s)})},newlineAndIndent:function(e){return Or(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var a=0;a<r.length;a++)e.indentLine(r[a].from().line,null,!0);ro(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2900
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function iu(e,r){var s=Ee(e.doc,r),a=Qn(s);return a!=s&&(r=zt(a)),Ma(!0,e,a,r,1)}function ou(e,r){var s=Ee(e.doc,r),a=Nd(s);return a!=s&&(r=zt(a)),Ma(!0,e,s,r,-1)}function Wl(e,r){var s=iu(e,r.line),a=Ee(e.doc,s.line),d=Dr(a,e.doc.direction);if(!d||d[0].level==0){var p=Math.max(s.ch,a.text.search(/\S/)),v=r.line==s.line&&r.ch<=p&&r.ch;return ae(s.line,v?0:p,s.sticky)}return s}function Zn(e,r,s){if(typeof r=="string"&&(r=Fo[r],!r))return!1;e.display.input.ensurePolled();var a=e.display.shift,d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),d=r(e)!=Ge}finally{e.display.shift=a,e.state.suppressEdits=!1}return d}function pf(e,r,s){for(var a=0;a<e.state.keyMaps.length;a++){var d=Si(r,e.state.keyMaps[a],s,e);if(d)return d}return e.options.extraKeys&&Si(r,e.options.extraKeys,s,e)||Si(r,e.options.keyMap,s,e)}var po=new rt;function _a(e,r,s,a){var d=e.state.keySeq;if(d){if(Fl(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:po.set(50,function(){e.state.keySeq==d&&(e.state.keySeq=null,e.display.input.reset())}),au(e,d+" "+r,s,a))return!0}return au(e,r,s,a)}function au(e,r,s,a){var d=pf(e,r,a);return d=="multi"&&(e.state.keySeq=r),d=="handled"&&lr(e,"keyHandled",e,r,s),(d=="handled"||d=="multi")&&(vr(s),fa(e)),!!d}function Vl(e,r){var s=nu(r,!0);return s?r.shiftKey&&!e.state.keySeq?_a(e,"Shift-"+s,r,function(a){return Zn(e,a,!0)})||_a(e,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Zn(e,a)}):_a(e,s,r,function(a){return Zn(e,a)}):!1}function gf(e,r,s){return _a(e,"'"+s+"'",r,function(a){return Zn(e,a,!0)})}var su=null;function Jc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=Ae(),!Jt(r,e))){z&&S<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var a=Vl(r,e);R&&(su=a?s:null,!a&&s==88&&!il&&(ve?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),c&&!ve&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Qc(r)}}function Qc(e){var r=e.display.lineDiv;et(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(le(r,"CodeMirror-crosshair"),Sr(document,"keyup",s),Sr(document,"mouseover",s))}We(document,"keyup",s),We(document,"mouseover",s)}function lu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,e)}function e0(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(Ci(r.display,e)||Jt(r,e)||e.ctrlKey&&!e.altKey||ve&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(R&&s==su){su=null,vr(e);return}if(!(R&&(!e.which||e.which<10)&&Vl(r,e))){var d=String.fromCharCode(a==null?s:a);d!="\b"&&(gf(r,e,d)||r.display.input.onKeyPress(e))}}}var t0=400,Zl=function(e,r,s){this.time=e,this.pos=r,this.button=s};Zl.prototype.compare=function(e,r,s){return this.time+t0>e&&w(r,this.pos)==0&&s==this.button};var yr,an;function vf(e,r){var s=+new Date;return an&&an.compare(s,e,r)?(yr=an=null,"triple"):yr&&yr.compare(s,e,r)?(an=new Zl(s,e,r),yr=null,"double"):(yr=new Zl(s,e,r),an=null,"single")}function r0(e){var r=this,s=r.display;if(!(Jt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Ci(s,e)){E||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!uu(r,e)){var a=ti(r,e),d=ja(e),p=a?vf(a,d):"single";window.focus(),d==1&&r.state.selectingText&&r.state.selectingText(e),!(a&&Ul(r,d,a,p,e))&&(d==1?a?n0(r,a,p,e):Vi(e)==s.scroller&&vr(e):d==2?(a&&El(r.doc,a),setTimeout(function(){return s.input.focus()},20)):d==3&&(Ye?r.display.input.onContextMenu(e):zl(r)))}}}function Ul(e,r,s,a,d){var p="Click";return a=="double"?p="Double"+p:a=="triple"&&(p="Triple"+p),p=(r==1?"Left":r==2?"Middle":"Right")+p,_a(e,ru(p,d),d,function(v){if(typeof v=="string"&&(v=Fo[v]),!v)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=v(e,s)!=Ge}finally{e.state.suppressEdits=!1}return m})}function Ta(e,r,s){var a=e.getOption("configureMouse"),d=a?a(e,r,s):{};if(d.unit==null){var p=Oe?s.shiftKey&&s.metaKey:s.altKey;d.unit=p?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||s.shiftKey),d.addNew==null&&(d.addNew=ve?s.metaKey:s.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(ve?s.altKey:s.ctrlKey)),d}function n0(e,r,s,a){z?setTimeout(or(R1,e),0):e.curOp.focus=Ae();var d=Ta(e,s,a),p=e.doc.sel,v;e.options.dragDrop&&Ka&&!e.isReadOnly()&&s=="single"&&(v=p.contains(r))>-1&&(w((v=p.ranges[v]).from(),r)<0||r.xRel>0)&&(w(v.to(),r)>0||r.xRel<0)?i0(e,a,r,d):a0(e,a,r,d)}function i0(e,r,s,a){var d=e.display,p=!1,v=qt(e,function(C){E&&(d.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:zl(e)),Sr(d.wrapper.ownerDocument,"mouseup",v),Sr(d.wrapper.ownerDocument,"mousemove",m),Sr(d.scroller,"dragstart",y),Sr(d.scroller,"drop",v),p||(vr(C),a.addNew||El(e.doc,s,null,null,a.extend),E&&!J||z&&S==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),m=function(C){p=p||Math.abs(r.clientX-C.clientX)+Math.abs(r.clientY-C.clientY)>=10},y=function(){return p=!0};E&&(d.scroller.draggable=!0),e.state.draggingText=v,v.copy=!a.moveOnDrag,We(d.wrapper.ownerDocument,"mouseup",v),We(d.wrapper.ownerDocument,"mousemove",m),We(d.scroller,"dragstart",y),We(d.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function o0(e,r,s){if(s=="char")return new Lt(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new Lt(ae(r.line,0),we(e.doc,ae(r.line+1,0)));var a=s(e,r);return new Lt(a.from,a.to)}function a0(e,r,s,a){z&&zl(e);var d=e.display,p=e.doc;vr(r);var v,m,y=p.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=p.sel.contains(s),m>-1?v=C[m]:v=new Lt(s,s)):(v=p.sel.primary(),m=p.sel.primIndex),a.unit=="rectangle")a.addNew||(v=new Lt(s,s)),s=ti(e,r,!0,!0),m=-1;else{var T=o0(e,s,a.unit);a.extend?v=kl(v,T.anchor,T.head,a.extend):v=T}a.addNew?m==-1?(m=C.length,br(p,Er(e,C.concat([v]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(br(p,Er(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=p.sel):Y1(p,m,v,lt):(m=0,br(p,new hn([v],0),lt),y=p.sel);var I=s;function W(ye){if(w(I,ye)!=0)if(I=ye,a.unit=="rectangle"){for(var Se=[],He=e.options.tabSize,Pe=xt(Ee(p,s.line).text,s.ch,He),ut=xt(Ee(p,ye.line).text,ye.ch,He),It=Math.min(Pe,ut),rr=Math.max(Pe,ut),Nt=Math.min(s.line,ye.line),Fr=Math.min(e.lastLine(),Math.max(s.line,ye.line));Nt<=Fr;Nt++){var Br=Ee(p,Nt).text,Xt=Zt(Br,It,He);It==rr?Se.push(new Lt(ae(Nt,Xt),ae(Nt,Xt))):Br.length>Xt&&Se.push(new Lt(ae(Nt,Xt),ae(Nt,Zt(Br,rr,He))))}Se.length||Se.push(new Lt(s,s)),br(p,Er(e,y.ranges.slice(0,m).concat(Se),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ye)}else{var Cr=v,cr=o0(e,ye,a.unit),$t=Cr.anchor,Ft;w(cr.anchor,$t)>0?(Ft=cr.head,$t=Ke(Cr.from(),cr.anchor)):(Ft=cr.anchor,$t=ce(Cr.to(),cr.head));var jt=y.ranges.slice(0);jt[m]=Oa(e,new Lt(we(p,$t),Ft)),br(p,Er(e,jt,m),lt)}}var H=d.wrapper.getBoundingClientRect(),K=0;function ne(ye){var Se=++K,He=ti(e,ye,!0,a.unit=="rectangle");if(He)if(w(He,I)!=0){e.curOp.focus=Ae(),W(He);var Pe=Ao(d,p);(He.line>=Pe.to||He.line<Pe.from)&&setTimeout(qt(e,function(){K==Se&&ne(ye)}),150)}else{var ut=ye.clientY<H.top?-20:ye.clientY>H.bottom?20:0;ut&&setTimeout(qt(e,function(){K==Se&&(d.scroller.scrollTop+=ut,ne(ye))}),50)}}function he(ye){e.state.selectingText=!1,K=1/0,ye&&(vr(ye),d.input.focus()),Sr(d.wrapper.ownerDocument,"mousemove",me),Sr(d.wrapper.ownerDocument,"mouseup",xe),p.history.lastSelOrigin=null}var me=qt(e,function(ye){ye.buttons===0||!ja(ye)?he(ye):ne(ye)}),xe=qt(e,he);e.state.selectingText=xe,We(d.wrapper.ownerDocument,"mousemove",me),We(d.wrapper.ownerDocument,"mouseup",xe)}function Oa(e,r){var s=r.anchor,a=r.head,d=Ee(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return r;var p=Dr(d);if(!p)return r;var v=Vt(p,s.ch,s.sticky),m=p[v];if(m.from!=s.ch&&m.to!=s.ch)return r;var y=v+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==p.length)return r;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var T=Vt(p,a.ch,a.sticky),I=T-v||(a.ch-s.ch)*(m.level==1?-1:1);T==y-1||T==y?C=I<0:C=I>0}var W=p[y+(C?-1:0)],H=C==(W.level==1),K=H?W.from:W.to,ne=H?"after":"before";return s.ch==K&&s.sticky==ne?r:new Lt(new ae(s.line,K,ne),a)}function ka(e,r,s,a){var d,p;if(r.touches)d=r.touches[0].clientX,p=r.touches[0].clientY;else try{d=r.clientX,p=r.clientY}catch{return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&vr(r);var v=e.display,m=v.lineDiv.getBoundingClientRect();if(p>m.bottom||!gr(e,s))return ln(r);p-=m.top-v.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=v.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=d){var T=Hn(e.doc,p),I=e.display.gutterSpecs[y];return qe(e,s,e,T,I.className,r),ln(r)}}}function uu(e,r){return ka(e,r,"gutterClick",!0)}function cu(e,r){Ci(e.display,r)||s0(e,r)||Jt(e,r,"contextmenu")||Ye||e.display.input.onContextMenu(r)}function s0(e,r){return gr(e,"gutterContextMenu")?ka(e,r,"gutterContextMenu",!1):!1}function Ls(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ss(e)}var Bo={toString:function(){return"CodeMirror.Init"}},Ss={},Ea={};function Gl(e){var r=e.optionHandlers;function s(a,d,p,v){e.defaults[a]=d,p&&(r[a]=v?function(m,y,C){C!=Bo&&p(m,y,C)}:p)}e.defineOption=s,e.Init=Bo,s("value","",function(a,d){return a.setValue(d)},!0),s("mode",null,function(a,d){a.doc.modeOption=d,U1(a)},!0),s("indentUnit",2,U1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){gs(a),ss(a),ot(a)},!0),s("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var p=[],v=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var T=y.text.indexOf(d,C);if(T==-1)break;C=T+d.length,p.push(ae(v,T))}v++});for(var m=p.length-1;m>=0;m--)xa(a.doc,d,p[m],ae(p[m].line,p[m].ch+d.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,d,p){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),p!=Bo&&a.refresh()}),s("specialCharPlaceholder",fn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),s("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),s("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),s("rtlMoveVisually",!$e),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ls(a),ps(a)},!0),s("keyMap","default",function(a,d,p){var v=Rr(d),m=p!=Bo&&Rr(p);m&&m.detach&&m.detach(a,v),v.attach&&v.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,l0,!0),s("gutters",[],function(a,d){a.display.gutterSpecs=V1(d,a.options.lineNumbers),ps(a)},!0),s("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?da(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return io(a)},!0),s("scrollbarStyle","native",function(a){Po(a),io(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,d){a.display.gutterSpecs=V1(a.options.gutters,d),ps(a)},!0),s("firstLineNumber",1,ps,!0),s("lineNumberFormatter",function(a){return a},ps,!0),s("showCursorWhenSelecting",!1,ls,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,d){d=="nocursor"&&(Io(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),s("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),s("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),s("dragDrop",!0,bf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,ls,!0),s("singleCursorHeightPerLine",!0,ls,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,gs,!0),s("addModeClass",!1,gs,!0),s("pollInterval",100),s("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,gs,!0),s("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),s("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),s("autofocus",null),s("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),s("phrases",null)}function bf(e,r,s){var a=s&&s!=Bo;if(!r!=!a){var d=e.display.dragFunctions,p=r?We:Sr;p(e.display.scroller,"dragstart",d.start),p(e.display.scroller,"dragenter",d.enter),p(e.display.scroller,"dragover",d.over),p(e.display.scroller,"dragleave",d.leave),p(e.display.scroller,"drop",d.drop)}}function l0(e){e.options.lineWrapping?(et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(le(e.display.wrapper,"CodeMirror-wrap"),is(e)),Ji(e),ot(e),ss(e),setTimeout(function(){return io(e)},100)}function Dt(e,r){var s=this;if(!(this instanceof Dt))return new Dt(e,r);this.options=r=r?_t(r):{},_t(Ss,r,!1);var a=r.value;typeof a=="string"?a=new Nr(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var d=new Dt.inputStyles[r.inputStyle](this),p=this.display=new of(e,a,d,r);p.wrapper.CodeMirror=this,Ls(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Po(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 rt,keySeq:null,specialChars:null},r.autofocus&&!be&&p.input.focus(),z&&S<11&&setTimeout(function(){return s.display.input.reset(!0)},20),u0(this),tu(),Vn(this),this.curOp.forceUpdate=!0,Dc(this,a),r.autofocus&&!be||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ha(s)},20):Io(this);for(var v in Ea)Ea.hasOwnProperty(v)&&Ea[v](this,r[v],Bo);oi(this),r.finishInit&&r.finishInit(this);for(var m=0;m<Ms.length;++m)Ms[m](this);ni(this),E&&r.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}Dt.defaults=Ss,Dt.optionHandlers=Ea;function u0(e){var r=e.display;We(r.scroller,"mousedown",qt(e,r0)),z&&S<11?We(r.scroller,"dblclick",qt(e,function(y){if(!Jt(e,y)){var C=ti(e,y);if(!(!C||uu(e,y)||Ci(e.display,y))){vr(y);var T=e.findWordAt(C);El(e.doc,T.anchor,T.head)}}})):We(r.scroller,"dblclick",function(y){return Jt(e,y)||vr(y)}),We(r.scroller,"contextmenu",function(y){return cu(e,y)}),We(r.input.getField(),"contextmenu",function(y){r.scroller.contains(y.target)||cu(e,y)});var s,a={end:0};function d(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function p(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function v(y,C){if(C.left==null)return!0;var T=C.left-y.left,I=C.top-y.top;return T*T+I*I>20*20}We(r.scroller,"touchstart",function(y){if(!Jt(e,y)&&!p(y)&&!uu(e,y)){r.input.ensurePolled(),clearTimeout(s);var C=+new Date;r.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(r.activeTouch.left=y.touches[0].pageX,r.activeTouch.top=y.touches[0].pageY)}}),We(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),We(r.scroller,"touchend",function(y){var C=r.activeTouch;if(C&&!Ci(r,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var T=e.coordsChar(r.activeTouch,"page"),I;!C.prev||v(C,C.prev)?I=new Lt(T,T):!C.prev.prev||v(C,C.prev.prev)?I=e.findWordAt(T):I=new Lt(ae(T.line,0),we(e.doc,ae(T.line+1,0))),e.setSelection(I.anchor,I.head),e.focus(),vr(y)}d()}),We(r.scroller,"touchcancel",d),We(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Gt(e,r.scroller.scrollTop),$o(e,r.scroller.scrollLeft,!0),qe(e,"scroll",e))}),We(r.scroller,"mousewheel",function(y){return $c(e,y)}),We(r.scroller,"DOMMouseScroll",function(y){return $c(e,y)}),We(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(y){Jt(e,y)||wo(y)},over:function(y){Jt(e,y)||(Q1(e,y),wo(y))},start:function(y){return df(e,y)},drop:qt(e,Kc),leave:function(y){Jt(e,y)||eu(e)}};var m=r.input.getField();We(m,"keyup",function(y){return lu.call(e,y)}),We(m,"keydown",qt(e,Jc)),We(m,"keypress",qt(e,e0)),We(m,"focus",function(y){return ha(e,y)}),We(m,"blur",function(y){return Io(e,y)})}var Ms=[];Dt.defineInitHook=function(e){return Ms.push(e)};function _s(e,r,s,a){var d=e.doc,p;s==null&&(s="add"),s=="smart"&&(d.mode.indent?p=sa(e,r).state:s="prev");var v=e.options.tabSize,m=Ee(d,r),y=xt(m.text,null,v);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],T;if(!a&&!/\S/.test(m.text))T=0,s="not";else if(s=="smart"&&(T=d.mode.indent(p,m.text.slice(C.length),m.text),T==Ge||T>150)){if(!a)return;s="prev"}s=="prev"?r>d.first?T=xt(Ee(d,r-1).text,null,v):T=0:s=="add"?T=y+e.options.indentUnit:s=="subtract"?T=y-e.options.indentUnit:typeof s=="number"&&(T=y+s),T=Math.max(0,T);var I="",W=0;if(e.options.indentWithTabs)for(var H=Math.floor(T/v);H;--H)W+=v,I+=" ";if(W<T&&(I+=tr(T-W)),I!=C)return xa(d,I,ae(r,0),ae(r,C.length),"+input"),m.stateAfter=null,!0;for(var K=0;K<d.sel.ranges.length;K++){var ne=d.sel.ranges[K];if(ne.head.line==r&&ne.head.ch<C.length){var he=ae(r,C.length);Y1(d,K,new Lt(he,he));break}}}var Sn=null;function Mn(e){Sn=e}function ql(e,r,s,a,d){var p=e.doc;e.display.shift=!1,a||(a=p.sel);var v=+new Date-200,m=d=="paste"||e.state.pasteIncoming>v,y=zo(r),C=null;if(m&&a.ranges.length>1)if(Sn&&Sn.text.join(`
|
|
2901
|
-
`)==r){if(a.ranges.length%Sn.text.length==0){C=[];for(var T=0;T<Sn.text.length;T++)C.push(p.splitLines(Sn.text[T]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=bt(y,function(me){return[me]}));for(var I=e.curOp.updateInput,
|
|
2899
|
+
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(d),e.display.lineSpace.removeChild(p)}}}function jd(e,r,s,a){a==null&&(a=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var p=0;p<5;p++){var v=!1,m=Vn(e,r),y=!s||s==r?m:Vn(e,s);d={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=pa(e,d),T=e.doc.scrollTop,I=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(v=!0)),C.scrollLeft!=null&&($o(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(v=!0)),!v)break}return d}function Kd(e,r){var s=pa(e,r);s.scrollTop!=null&&Gt(e,s.scrollTop),s.scrollLeft!=null&&$o(e,s.scrollLeft)}function pa(e,r){var s=e.display,a=Xi(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,p=bl(e),v={};r.bottom-r.top>p&&(r.bottom=r.top+p);var m=e.doc.height+Kr(s),y=r.top<a,C=r.bottom>m-a;if(r.top<d)v.scrollTop=y?0:r.top;else if(r.bottom>d+p){var T=Math.min(r.top,(C?m:r.bottom)-p);T!=d&&(v.scrollTop=T)}var I=e.options.fixedGutter?0:s.gutters.offsetWidth,V=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-I,H=ji(e)-s.gutters.offsetWidth,K=r.right-r.left>H;return K&&(r.right=r.left+H),r.left<10?v.scrollLeft=0:r.left<V?v.scrollLeft=Math.max(0,r.left+I-(K?0:10)):r.right>H+V-3&&(v.scrollLeft=r.right+(K?0:10)-H),v}function ga(e,r){r!=null&&(Ll(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function ro(e){Ll(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function ds(e,r,s){(r!=null||s!=null)&&Ll(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function Oc(e,r){Ll(e),e.curOp.scrollToPos=r}function Ll(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=Sc(e,r.from),a=Sc(e,r.to);Ec(e,s,a,r.margin)}}function Ec(e,r,s,a){var d=pa(e,{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});ds(e,d.scrollLeft,d.scrollTop)}function Gt(e,r){Math.abs(e.doc.scrollTop-r)<2||(c||F1(e,{top:r}),Tr(e,r,!0),c&&F1(e),ii(e,100))}function Tr(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function $o(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,kc(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function fs(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Kr(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+nn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var no=function(e,r,s){this.cm=s;var a=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,e(a),e(d),Ve(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ve(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,z&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var d=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"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=e.barLeft+"px";var p=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},no.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},no.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},no.prototype.zeroWidthHack=function(){var e=ve&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},no.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var d=e.getBoundingClientRect(),p=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);p!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},no.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var hs=function(){};hs.prototype.update=function(){return{bottom:0,right:0}},hs.prototype.setScrollLeft=function(){},hs.prototype.setScrollTop=function(){},hs.prototype.clear=function(){};function io(e,r){r||(r=fs(e));var s=e.display.barWidth,a=e.display.barHeight;va(e,r);for(var d=0;d<4&&s!=e.display.barWidth||a!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&eo(e),va(e,fs(e)),s=e.display.barWidth,a=e.display.barHeight}function va(e,r){var s=e.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&&e.options.coverGutterNextToScrollbar&&e.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 Sl={native:no,null:hs};function Po(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&le(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Sl[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ve(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?$o(e,r):Gt(e,r)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var ps=0;function Wn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ps,markArrays:null},qi(e.curOp)}function ni(e){var r=e.curOp;r&&Bd(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ba(s)})}function ba(e){for(var r=e.ops,s=0;s<r.length;s++)Yd(r[s]);for(var a=0;a<r.length;a++)Xd(r[a]);for(var d=0;d<r.length;d++)Jd(r[d]);for(var p=0;p<r.length;p++)Qd(r[p]);for(var v=0;v<r.length;v++)ef(r[v])}function Yd(e){var r=e.cm,s=r.display;vt(r),e.updateMaxLine&&os(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Yr(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Xd(e){e.updatedDisplay=e.mustUpdate&&H1(e.cm,e.update)}function Jd(e){var r=e.cm,s=r.display;e.updatedDisplay&&eo(r),e.barMeasure=fs(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=yc(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+nn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function Qd(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&$o(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==Ae();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&io(r,e.barMeasure),e.updatedDisplay&&V1(r,e.barMeasure),e.selectionChanged&&fa(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&R1(e.cm)}function ef(e){var r=e.cm,s=r.display,a=r.doc;if(e.updatedDisplay&&oo(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tr(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$o(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=jd(r,we(a,e.scrollToPos.from),we(a,e.scrollToPos.to),e.scrollToPos.margin);qd(r,d)}var p=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(p)for(var m=0;m<p.length;++m)p[m].lines.length||qe(p[m],"hide");if(v)for(var y=0;y<v.length;++y)v[y].lines.length&&qe(v[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&qe(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Or(e,r){if(e.curOp)return r();Wn(e);try{return r()}finally{ni(e)}}function qt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Wn(e);try{return r.apply(e,arguments)}finally{ni(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Wn(this);try{return e.apply(this,arguments)}finally{ni(this)}}}function M(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Wn(r);try{return e.apply(this,arguments)}finally{ni(r)}}}function ii(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,or(Ml,e))}function Ml(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=sa(e,r.highlightFrontier),d=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(p){if(a.line>=e.display.viewFrom){var v=p.styles,m=p.text.length>e.options.maxHighlightLength?cn(r.mode,a.state):null,y=tc(e,p,a,!0);m&&(a.state=m),p.styles=y.styles;var C=p.styleClasses,T=y.classes;T?p.styleClasses=T:C&&(p.styleClasses=null);for(var I=!v||v.length!=p.styles.length||C!=T&&(!C||!T||C.bgClass!=T.bgClass||C.textClass!=T.textClass),V=0;!I&&V<v.length;++V)I=v[V]!=p.styles[V];I&&d.push(a.line),p.stateAfter=a.save(),a.nextLine()}else p.text.length<=e.options.maxHighlightLength&&ts(e,p.text,a),p.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ii(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),d.length&&Or(e,function(){for(var p=0;p<d.length;p++)Qi(e,d[p],"text")})}}var Yr=function(e,r,s){var a=e.display;this.viewport=r,this.visible=Ao(a,e.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=on(e),this.events=[]};Yr.prototype.signal=function(e,r){gr(e,r)&&this.events.push(arguments)},Yr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function vt(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=nn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=nn(e)+"px",r.scrollbarsClipped=!0)}function tf(e){if(e.hasFocus())return null;var r=Ae();if(!r||!ue(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ue(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function rf(e){if(!(!e||!e.activeElt||e.activeElt==Ae())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ue(document.body,e.anchorNode)&&ue(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function H1(e,r){var s=e.display,a=e.doc;if(r.editorIsHidden)return wi(e),!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&&_c(e)==0)return!1;oi(e)&&(wi(e),r.dims=on(e));var d=a.first+a.size,p=Math.max(r.visible.from-e.options.viewportMargin,a.first),v=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<p&&p-s.viewFrom<20&&(p=Math.max(a.first,s.viewFrom)),s.viewTo>v&&s.viewTo-v<20&&(v=Math.min(d,s.viewTo)),Jn&&(p=hl(e.doc,p),v=dc(e.doc,v));var m=p!=s.viewFrom||v!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;Gd(e,p,v),s.viewOffset=jr(ke(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=_c(e);if(!m&&y==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=tf(e);return y>4&&(s.lineDiv.style.display="none"),nf(e,s.updateLineNumbers,r.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,rf(C),Q(s.cursorDiv),Q(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,ii(e,400)),s.updateLineNumbers=null,!0}function oo(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Kr(e.display)-bl(e),s.top)}),r.visible=Ao(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Ao(e.display,e.doc,s));if(!H1(e,r))break;eo(e);var d=fs(e);us(e),io(e,d),V1(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function F1(e,r){var s=new Yr(e,r);if(H1(e,s)){eo(e),oo(e,s);var a=fs(e);us(e),io(e,a),V1(e,a),s.finish()}}function nf(e,r,s){var a=e.display,d=e.options.lineNumbers,p=a.lineDiv,v=p.firstChild;function m(K){var ne=K.nextSibling;return k&&ve&&e.display.currentWheelTarget==K?K.style.display="none":K.parentNode.removeChild(K),ne}for(var y=a.view,C=a.viewFrom,T=0;T<y.length;T++){var I=y[T];if(!I.hidden)if(!I.node||I.node.parentNode!=p){var V=$1(e,I,C,s);p.insertBefore(V,v)}else{for(;v!=I.node;)v=m(v);var H=d&&r!=null&&r<=C&&I.lineNumber;I.changes&&(ze(I.changes,"gutter")>-1&&(H=!1),vc(e,I,C,s)),H&&(Q(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(aa(e.options,C)))),v=I.node.nextSibling}C+=I.size}for(;v;)v=m(v)}function B1(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",lr(e,"gutterChanged",e)}function V1(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+nn(e)+"px"}function kc(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=da(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,p=a+"px",v=0;v<s.length;v++)if(!s[v].hidden){e.options.fixedGutter&&(s[v].gutter&&(s[v].gutter.style.left=p),s[v].gutterBackground&&(s[v].gutterBackground.style.left=p));var m=s[v].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=p}e.options.fixedGutter&&(r.gutters.style.left=a+d+"px")}}function oi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=aa(e.options,r.first+r.size-1),a=e.display;if(s.length!=a.lineNumChars){var d=a.measure.appendChild(O("div",[O("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=d.firstChild.offsetWidth,v=d.offsetWidth-p;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(p,a.lineGutter.offsetWidth-v)+1,a.lineNumWidth=a.lineNumInnerWidth+v,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",B1(e.display),!0}return!1}function W1(e,r){for(var s=[],a=!1,d=0;d<e.length;d++){var p=e[d],v=null;if(typeof p!="string"&&(v=p.style,p=p.className),p=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:p,style:v})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Ic(e){var r=e.gutters,s=e.gutterSpecs;Q(r),e.lineGutter=null;for(var a=0;a<s.length;++a){var d=s[a],p=d.className,v=d.style,m=r.appendChild(O("div",null,"CodeMirror-gutter "+p));v&&(m.style.cssText=v),p=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",B1(e)}function gs(e){Ic(e.display),ot(e),kc(e)}function of(e,r,s,a){var d=this;this.input=s,d.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=E("div",null,"CodeMirror-code"),d.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=O("div",null,"CodeMirror-cursors"),d.measure=O("div",null,"CodeMirror-measure"),d.lineMeasure=O("div",null,"CodeMirror-measure"),d.lineSpace=E("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var p=E("div",[d.lineSpace],"CodeMirror-lines");d.mover=O("div",[p],null,"position: relative"),d.sizer=O("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=O("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),d.gutters=O("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=O("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=O("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),z&&S<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!k&&!(c&&be)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=W1(a.gutters,a.lineNumbers),Ic(d),s.init(d)}var _l=0,Qt=null;z?Qt=-.53:c?Qt=15:B?Qt=-.7:J&&(Qt=-1/3);function Ac(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function af(e){var r=Ac(e);return r.x*=Qt,r.y*=Qt,r}function $c(e,r){var s=Ac(r),a=s.x,d=s.y,p=e.display,v=p.scroller,m=v.scrollWidth>v.clientWidth,y=v.scrollHeight>v.clientHeight;if(a&&m||d&&y){if(d&&ve&&k){e:for(var C=r.target,T=p.view;C!=v;C=C.parentNode)for(var I=0;I<T.length;I++)if(T[I].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!c&&!R&&Qt!=null){d&&y&&Gt(e,Math.max(0,v.scrollTop+d*Qt)),$o(e,Math.max(0,v.scrollLeft+a*Qt)),(!d||d&&y)&&vr(r),p.wheelStartX=null;return}if(d&&Qt!=null){var V=d*Qt,H=e.doc.scrollTop,K=H+p.wrapper.clientHeight;V<0?H=Math.max(0,H+V-50):K=Math.min(e.doc.height,K+V+50),F1(e,{top:H,bottom:K})}_l<20&&(p.wheelStartX==null?(p.wheelStartX=v.scrollLeft,p.wheelStartY=v.scrollTop,p.wheelDX=a,p.wheelDY=d,setTimeout(function(){if(p.wheelStartX!=null){var ne=v.scrollLeft-p.wheelStartX,he=v.scrollTop-p.wheelStartY,me=he&&p.wheelDY&&he/p.wheelDY||ne&&p.wheelDX&&ne/p.wheelDX;p.wheelStartX=p.wheelStartY=null,me&&(Qt=(Qt*_l+me)/(_l+1),++_l)}},200)):(p.wheelDX+=a,p.wheelDY+=d))}}var hn=function(e,r){this.ranges=e,this.primIndex=r};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=e.ranges[r];if(!A(s.anchor,a.anchor)||!A(s.head,a.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Lt(te(this.ranges[r].anchor),te(this.ranges[r].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(x(r,a.from())>=0&&x(e,a.to())<=0)return s}return-1};var Lt=function(e,r){this.anchor=e,this.head=r};Lt.prototype.from=function(){return Ke(this.anchor,this.head)},Lt.prototype.to=function(){return ce(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kr(e,r,s){var a=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(V,H){return x(V.from(),H.from())}),s=ze(r,d);for(var p=1;p<r.length;p++){var v=r[p],m=r[p-1],y=x(m.to(),v.from());if(a&&!v.empty()?y>0:y>=0){var C=Ke(m.from(),v.from()),T=ce(m.to(),v.to()),I=m.empty()?v.from()==v.head:m.from()==m.head;p<=s&&--s,r.splice(--p,2,new Lt(I?T:C,I?C:T))}}return new hn(r,s)}function ao(e,r){return new hn([new Lt(e,r||e)],0)}function so(e){return e.text?ae(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zn(e,r){if(x(e,r.from)<0)return e;if(x(e,r.to)<=0)return so(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=so(r).ch-r.to.ch),ae(s,a)}function Z1(e,r){for(var s=[],a=0;a<e.sel.ranges.length;a++){var d=e.sel.ranges[a];s.push(new Lt(zn(d.anchor,r),zn(d.head,r)))}return kr(e.cm,s,e.sel.primIndex)}function Pc(e,r,s){return e.line==r.line?ae(s.line,e.ch-r.ch+s.ch):ae(s.line+(e.line-r.line),e.ch)}function sf(e,r,s){for(var a=[],d=ae(e.first,0),p=d,v=0;v<r.length;v++){var m=r[v],y=Pc(m.from,d,p),C=Pc(so(m),d,p);if(d=m.to,p=C,s=="around"){var T=e.sel.ranges[v],I=x(T.head,T.anchor)<0;a[v]=new Lt(I?C:y,I?y:C)}else a[v]=new Lt(y,y)}return new hn(a,e.sel.primIndex)}function U1(e){e.doc.mode=oa(e.options,e.doc.modeOption),vs(e)}function vs(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ii(e,100),e.state.modeGen++,e.curOp&&ot(e)}function G1(e,r){return r.from.ch==0&&r.to.ch==0&&Qe(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Tl(e,r,s,a){function d(xe){return s?s[xe]:null}function p(xe,ye,Se){fc(xe,ye,Se,a),lr(xe,"change",xe,r)}function v(xe,ye){for(var Se=[],He=xe;He<ye;++He)Se.push(new _r(C[He],d(He),a));return Se}var m=r.from,y=r.to,C=r.text,T=ke(e,m.line),I=ke(e,y.line),V=Qe(C),H=d(C.length-1),K=y.line-m.line;if(r.full)e.insert(0,v(0,C.length)),e.remove(C.length,e.size-C.length);else if(G1(e,r)){var ne=v(0,C.length-1);p(I,I.text,H),K&&e.remove(m.line,K),ne.length&&e.insert(m.line,ne)}else if(T==I)if(C.length==1)p(T,T.text.slice(0,m.ch)+V+T.text.slice(y.ch),H);else{var he=v(1,C.length-1);he.push(new _r(V+T.text.slice(y.ch),H,a)),p(T,T.text.slice(0,m.ch)+C[0],d(0)),e.insert(m.line+1,he)}else if(C.length==1)p(T,T.text.slice(0,m.ch)+C[0]+I.text.slice(y.ch),d(0)),e.remove(m.line+1,K);else{p(T,T.text.slice(0,m.ch)+C[0],d(0)),p(I,V+I.text.slice(y.ch),H);var me=v(1,C.length-1);K>1&&e.remove(m.line+1,K-1),e.insert(m.line+1,me)}lr(e,"change",e,r)}function lo(e,r,s){function a(d,p,v){if(d.linked)for(var m=0;m<d.linked.length;++m){var y=d.linked[m];if(y.doc!=p){var C=v&&y.sharedHist;s&&!C||(r(y.doc,C),a(y.doc,d,C))}}}a(e,null,!0)}function Dc(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ji(e),U1(e),Ol(e),e.options.direction=r.direction,e.options.lineWrapping||os(e),e.options.mode=r.modeOption,ot(e)}function Ol(e){(e.doc.direction=="rtl"?et:le)(e.display.lineDiv,"CodeMirror-rtl")}function bs(e){Or(e,function(){Ol(e),ot(e)})}function Do(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function q1(e,r){var s={from:te(r.from),to:so(r),text:dn(e,r.from,r.to)};return Nc(e,s,r.from.line,r.to.line+1),lo(e,function(a){return Nc(a,s,r.from.line,r.to.line+1)},!0),s}function j1(e){for(;e.length;){var r=Qe(e);if(r.ranges)e.pop();else break}}function lf(e,r){if(r)return j1(e.done),Qe(e.done);if(e.done.length&&!Qe(e.done).ranges)return Qe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function ai(e,r,s,a){var d=e.history;d.undone.length=0;var p=+new Date,v,m;if((d.lastOp==a||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(v=lf(d,d.lastOp==a)))m=Qe(v.changes),x(r.from,r.to)==0&&x(r.from,m.to)==0?m.to=so(r):v.changes.push(q1(e,r));else{var y=Qe(d.done);for((!y||!y.ranges)&&Xr(e.sel,d.done),v={changes:[q1(e,r)],generation:d.generation},d.done.push(v);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=p,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=r.origin,m||qe(e,"historyAdded")}function K1(e,r,s,a){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,r,s,a){var d=e.history,p=a&&a.origin;s==d.lastSelOp||p&&d.lastSelOrigin==p&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==p||K1(e,p,Qe(d.done),r))?d.done[d.done.length-1]=r:Xr(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=p,d.lastSelOp=s,a&&a.clearRedo!==!1&&j1(d.undone)}function Xr(e,r){var s=Qe(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Nc(e,r,s,a){var d=r["spans_"+e.id],p=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(v){v.markedSpans&&((d||(d=r["spans_"+e.id]={}))[p]=v.markedSpans),++p})}function Rc(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function Hc(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var a=[],d=0;d<r.text.length;++d)a.push(Rc(s[d]));return a}function ma(e,r){var s=Hc(e,r),a=S1(e,r);if(!s)return a;if(!a)return s;for(var d=0;d<s.length;++d){var p=s[d],v=a[d];if(p&&v)e:for(var m=0;m<v.length;++m){for(var y=v[m],C=0;C<p.length;++C)if(p[C].marker==y.marker)continue e;p.push(y)}else v&&(s[d]=v)}return s}function pn(e,r,s){for(var a=[],d=0;d<e.length;++d){var p=e[d];if(p.ranges){a.push(s?hn.prototype.deepCopy.call(p):p);continue}var v=p.changes,m=[];a.push({changes:m});for(var y=0;y<v.length;++y){var C=v[y],T=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),r)for(var I in C)(T=I.match(/^spans_(\d+)$/))&&ze(r,Number(T[1]))>-1&&(Qe(m)[I]=C[I],delete C[I])}}return a}function El(e,r,s,a){if(a){var d=e.anchor;if(s){var p=x(r,d)<0;p!=x(s,d)<0?(d=r,r=s):p!=x(r,s)<0&&(r=s)}return new Lt(d,r)}else return new Lt(s||r,r)}function kl(e,r,s,a,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),br(e,new hn([El(e.sel.primary(),r,s,d)],0),a)}function ms(e,r,s){for(var a=[],d=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)a[p]=El(e.sel.ranges[p],r[p],null,d);var v=kr(e.cm,a,e.sel.primIndex);br(e,v,s)}function Y1(e,r,s,a){var d=e.sel.ranges.slice(0);d[r]=s,br(e,kr(e.cm,d,e.sel.primIndex),a)}function X1(e,r,s,a){br(e,ao(r,s),a)}function Ir(e,r,s){var a={ranges:r.ranges,update:function(d){this.ranges=[];for(var p=0;p<d.length;p++)this.ranges[p]=new Lt(we(e,d[p].anchor),we(e,d[p].head))},origin:s&&s.origin};return qe(e,"beforeSelectionChange",e,a),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=r.ranges?kr(e.cm,a.ranges,a.ranges.length-1):r}function Il(e,r,s){var a=e.history.done,d=Qe(a);d&&d.ranges?(a[a.length-1]=r,gn(e,r,s)):br(e,r,s)}function br(e,r,s){gn(e,r,s),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function gn(e,r,s){(gr(e,"beforeSelectionChange")||e.cm&&gr(e.cm,"beforeSelectionChange"))&&(r=Ir(e,r,s));var a=s&&s.bias||(x(r.primary().head,e.sel.primary().head)<0?-1:1);Al(e,uo(e,r,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ro(e.cm)}function Al(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,na(e.cm)),lr(e,"cursorActivity",e))}function ys(e){Al(e,uo(e,e.sel,null,!1))}function uo(e,r,s,a){for(var d,p=0;p<r.ranges.length;p++){var v=r.ranges[p],m=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],y=mr(e,v.anchor,m&&m.anchor,s,a),C=mr(e,v.head,m&&m.head,s,a);(d||y!=v.anchor||C!=v.head)&&(d||(d=r.ranges.slice(0,p)),d[p]=new Lt(y,C))}return d?kr(e.cm,d,r.primIndex):r}function Ro(e,r,s,a,d){var p=ke(e,r.line);if(p.markedSpans)for(var v=0;v<p.markedSpans.length;++v){var m=p.markedSpans[v],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,T="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=r.ch:m.from<r.ch))&&(m.to==null||(T?m.to>=r.ch:m.to>r.ch))){if(d&&(qe(y,"beforeCursorEnter"),y.explicitlyCleared))if(p.markedSpans){--v;continue}else break;if(!y.atomic)continue;if(s){var I=y.find(a<0?1:-1),V=void 0;if((a<0?T:C)&&(I=$l(e,I,-a,I&&I.line==r.line?p:null)),I&&I.line==r.line&&(V=x(I,s))&&(a<0?V<0:V>0))return Ro(e,I,r,a,d)}var H=y.find(a<0?-1:1);return(a<0?C:T)&&(H=$l(e,H,a,H.line==r.line?p:null)),H?Ro(e,H,r,a,d):null}}return r}function mr(e,r,s,a,d){var p=a||1,v=Ro(e,r,s,p,d)||!d&&Ro(e,r,s,p,!0)||Ro(e,r,s,-p,d)||!d&&Ro(e,r,s,-p,!0);return v||(e.cantEdit=!0,ae(e.first,0))}function $l(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?we(e,ae(r.line-1)):null:s>0&&r.ch==(a||ke(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+s)}function Fc(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),st)}function Bc(e,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(d,p,v,m){d&&(a.from=we(e,d)),p&&(a.to=we(e,p)),v&&(a.text=v),m!==void 0&&(a.origin=m)}),qe(e,"beforeChange",e,a),e.cm&&qe(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function ya(e,r,s){if(e.cm){if(!e.cm.curOp)return qt(e.cm,ya)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"))&&(r=Bc(e,r,!0),!r))){var a=L1&&!s&&M1(e,r.from,r.to);if(a)for(var d=a.length-1;d>=0;--d)Pl(e,{from:a[d].from,to:a[d].to,text:d?[""]:r.text,origin:r.origin});else Pl(e,r)}}function Pl(e,r){if(!(r.text.length==1&&r.text[0]==""&&x(r.from,r.to)==0)){var s=Z1(e,r);ai(e,r,s,e.cm?e.cm.curOp.id:NaN),wa(e,r,s,S1(e,r));var a=[];lo(e,function(d,p){!p&&ze(a,d.history)==-1&&(Wc(d.history,r),a.push(d.history)),wa(d,r,null,S1(d,r))})}}function Dl(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var d=e.history,p,v=e.sel,m=r=="undo"?d.done:d.undone,y=r=="undo"?d.undone:d.done,C=0;C<m.length&&(p=m[C],!(s?p.ranges&&!p.equals(e.sel):!p.ranges));C++);if(C!=m.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(p=m.pop(),p.ranges){if(Xr(p,y),s&&!p.equals(e.sel)){br(e,p,{clearRedo:!1});return}v=p}else if(a){m.push(p);return}else break;var T=[];Xr(v,y),y.push({changes:T,generation:d.generation}),d.generation=p.generation||++d.maxGeneration;for(var I=gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"),V=function(ne){var he=p.changes[ne];if(he.origin=r,I&&!Bc(e,he,!1))return m.length=0,{};T.push(q1(e,he));var me=ne?Z1(e,he):Qe(m);wa(e,he,me,ma(e,he)),!ne&&e.cm&&e.cm.scrollIntoView({from:he.from,to:so(he)});var xe=[];lo(e,function(ye,Se){!Se&&ze(xe,ye.history)==-1&&(Wc(ye.history,he),xe.push(ye.history)),wa(ye,he,null,ma(ye,he))})},H=p.changes.length-1;H>=0;--H){var K=V(H);if(K)return K.v}}}}function Ca(e,r){if(r!=0&&(e.first+=r,e.sel=new hn(bt(e.sel.ranges,function(d){return new Lt(ae(d.anchor.line+r,d.anchor.ch),ae(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){ot(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Qi(e.cm,a,"gutter")}}function wa(e,r,s,a){if(e.cm&&!e.cm.curOp)return qt(e.cm,wa)(e,r,s,a);if(r.to.line<e.first){Ca(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);Ca(e,d),r={from:ae(e.first,0),to:ae(r.to.line+d,r.to.ch),text:[Qe(r.text)],origin:r.origin}}var p=e.lastLine();r.to.line>p&&(r={from:r.from,to:ae(p,ke(e,p).text.length),text:[r.text[0]],origin:r.origin}),r.removed=dn(e,r.from,r.to),s||(s=Z1(e,r)),e.cm?uf(e.cm,r,a):Tl(e,r,a),gn(e,s,st),e.cantEdit&&mr(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function uf(e,r,s){var a=e.doc,d=e.display,p=r.from,v=r.to,m=!1,y=p.line;e.options.lineWrapping||(y=zt(Qn(ke(a,p.line))),a.iter(y,v.line+1,function(H){if(H==d.maxLine)return m=!0,!0})),a.sel.contains(r.from,r.to)>-1&&na(e),Tl(a,r,s,Mc(e)),e.options.lineWrapping||(a.iter(y,p.line+r.text.length,function(H){var K=is(H);K>d.maxLineLength&&(d.maxLine=H,d.maxLineLength=K,d.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),Id(a,p.line),ii(e,400);var C=r.text.length-(v.line-p.line)-1;r.full?ot(e):p.line==v.line&&r.text.length==1&&!G1(e.doc,r)?Qi(e,p.line,"text"):ot(e,p.line,v.line+1,C);var T=gr(e,"changes"),I=gr(e,"change");if(I||T){var V={from:p,to:v,text:r.text,removed:r.removed,origin:r.origin};I&&lr(e,"change",e,V),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(V)}e.display.selForContextMenu=null}function xa(e,r,s,a,d){var p;a||(a=s),x(a,s)<0&&(p=[a,s],s=p[0],a=p[1]),typeof r=="string"&&(r=e.splitLines(r)),ya(e,{from:s,to:a,text:r,origin:d})}function za(e,r,s,a){s<e.line?e.line+=a:r<e.line&&(e.line=r,e.ch=0)}function Vc(e,r,s,a){for(var d=0;d<e.length;++d){var p=e[d],v=!0;if(p.ranges){p.copied||(p=e[d]=p.deepCopy(),p.copied=!0);for(var m=0;m<p.ranges.length;m++)za(p.ranges[m].anchor,r,s,a),za(p.ranges[m].head,r,s,a);continue}for(var y=0;y<p.changes.length;++y){var C=p.changes[y];if(s<C.from.line)C.from=ae(C.from.line+a,C.from.ch),C.to=ae(C.to.line+a,C.to.ch);else if(r<=C.to.line){v=!1;break}}v||(e.splice(0,d+1),d=0)}}function Wc(e,r){var s=r.from.line,a=r.to.line,d=r.text.length-(a-s)-1;Vc(e.done,s,a,d),Vc(e.undone,s,a,d)}function Ho(e,r,s,a){var d=r,p=r;return typeof r=="number"?p=ke(e,gt(e,r)):d=zt(r),d==null?null:(a(p,d)&&e.cm&&Qi(e.cm,d,s),p)}function La(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}La.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,a=e+r;s<a;++s){var d=this.lines[s];this.height-=d.height,hc(d),lr(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(e,r,s){for(var a=e+r;e<a;++e)if(s(this.lines[e]))return!0}};function Cs(e){this.children=e;for(var r=0,s=0,a=0;a<e.length;++a){var d=e[a];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}Cs.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],d=a.chunkSize();if(e<d){var p=Math.min(r,d-e),v=a.height;if(a.removeInner(e,p),this.height-=v-a.height,d==p&&(this.children.splice(s--,1),a.parent=null),(r-=p)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof La))){var m=[];this.collapse(m),this.children=[new La(m)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<=p){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var v=d.lines.length%25+25,m=v;m<d.lines.length;){var y=new La(d.lines.slice(m,m+=25));d.height-=y.height,this.children.splice(++a,0,y),y.parent=this}d.lines=d.lines.slice(0,v),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new Cs(r);if(e.parent){e.size-=s.size,e.height-=s.height;var d=ze(e.parent.children,e);e.parent.children.splice(d+1,0,s)}else{var a=new Cs(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<p){var v=Math.min(r,p-e);if(d.iterN(e,v,s))return!0;if((r-=v)==0)break;e=0}else e-=p}}};var ws=function(e,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=r};ws.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var p=To(this);tn(s,Math.max(0,s.height-p)),e&&(Or(e,function(){Zc(e,s,-p),Qi(e,a,"widget")}),lr(e,"lineWidgetCleared",e,this,a))}},ws.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var d=To(this)-r;d&&(Ut(this.doc,a)||tn(a,a.height+d),s&&Or(s,function(){s.curOp.forceUpdate=!0,Zc(s,a,d),lr(s,"lineWidgetChanged",s,e,zt(a))}))},Dn(ws);function Zc(e,r,s){jr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ga(e,s)}function Uc(e,r,s,a){var d=new ws(e,s,a),p=e.cm;return p&&d.noHScroll&&(p.display.alignWidgets=!0),Ho(e,r,"widget",function(v){var m=v.widgets||(v.widgets=[]);if(d.insertAt==null?m.push(d):m.splice(Math.min(m.length,Math.max(0,d.insertAt)),0,d),d.line=v,p&&!Ut(e,v)){var y=jr(v)<e.scrollTop;tn(v,v.height+To(d)),y&&ga(p,d.height),p.curOp.forceUpdate=!0}return!0}),p&&lr(p,"lineWidgetAdded",p,d,typeof r=="number"?r:zt(r)),d}var Nl=0,co=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Nl};co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Wn(e),gr(this,"clear")){var s=this.find();s&&lr(this,"clear",s.from,s.to)}for(var a=null,d=null,p=0;p<this.lines.length;++p){var v=this.lines[p],m=rs(v.markedSpans,this);e&&!this.collapsed?Qi(e,zt(v),"text"):e&&(m.to!=null&&(d=zt(v)),m.from!=null&&(a=zt(v))),v.markedSpans=Ad(v.markedSpans,m),m.from==null&&this.collapsed&&!Ut(this.doc,v)&&e&&tn(v,Xi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Qn(this.lines[y]),T=is(C);T>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&ot(e,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ys(e.doc)),e&&lr(e,"markerCleared",e,this,a,d),r&&ni(e),this.parent&&this.parent.clear()}},co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,d=0;d<this.lines.length;++d){var p=this.lines[d],v=rs(p.markedSpans,this);if(v.from!=null&&(s=ae(r?p:zt(p),v.from),e==-1))return s;if(v.to!=null&&(a=ae(r?p:zt(p),v.to),e==1))return a}return s&&{from:s,to:a}},co.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Or(a,function(){var d=r.line,p=zt(r.line),v=N1(a,p);if(v&&(xc(v),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Ut(s.doc,d)&&s.height!=null){var m=s.height;s.height=null;var y=To(s)-m;y&&tn(d,d.height+y)}lr(a,"markerChanged",a,e)})},co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ze(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},co.prototype.detachLine=function(e){if(this.lines.splice(ze(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Dn(co);function fo(e,r,s,a,d){if(a&&a.shared)return Gc(e,r,s,a,d);if(e.cm&&!e.cm.curOp)return qt(e.cm,fo)(e,r,s,a,d);var p=new co(e,d),v=x(r,s);if(a&&Tt(a,p,!1),v>0||v==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=E("span",[p.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(cc(e,r.line,r,s,p)||r.line!=s.line&&cc(e,s.line,r,s,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");oc()}p.addToHistory&&ai(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var m=r.line,y=e.cm,C;if(e.iter(m,s.line+1,function(I){y&&p.collapsed&&!y.options.lineWrapping&&Qn(I)==y.display.maxLine&&(C=!0),p.collapsed&&m!=r.line&&tn(I,0),ac(I,new ul(p,m==r.line?r.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),p.collapsed&&e.iter(r.line,s.line+1,function(I){Ut(e,I)&&tn(I,0)}),p.clearOnEnter&&Ve(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(ic(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Nl,p.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),p.collapsed)ot(y,r.line,s.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var T=r.line;T<=s.line;T++)Qi(y,T,"text");p.atomic&&ys(y.doc),lr(y,"markerAdded",y,p)}return p}var Sa=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};Sa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Sa.prototype.find=function(e,r){return this.primary.find(e,r)},Dn(Sa);function Gc(e,r,s,a,d){a=Tt(a),a.shared=!1;var p=[fo(e,r,s,a,d)],v=p[0],m=a.widgetNode;return lo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),p.push(fo(y,we(y,r),we(y,s),a,d));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;v=Qe(p)}),new Sa(p,v)}function J1(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function Rl(e,r){for(var s=0;s<r.length;s++){var a=r[s],d=a.find(),p=e.clipPos(d.from),v=e.clipPos(d.to);if(x(p,v)){var m=fo(e,p,v,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function cf(e){for(var r=function(a){var d=e[a],p=[d.primary.doc];lo(d.primary.doc,function(y){return p.push(y)});for(var v=0;v<d.markers.length;v++){var m=d.markers[v];ze(p,m.doc)==-1&&(m.parent=null,d.markers.splice(v--,1))}},s=0;s<e.length;s++)r(s)}var qc=0,Nr=function(e,r,s,a,d){if(!(this instanceof Nr))return new Nr(e,r,s,a,d);s==null&&(s=0),Cs.call(this,[new La([new _r("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var p=ae(s,0);this.sel=ao(p),this.history=new Do(null),this.id=++qc,this.modeOption=r,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Tl(this,{from:p,to:p,text:e}),br(this,ao(p),st)};Nr.prototype=en(Cs.prototype,{constructor:Nr,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=es(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:M(function(e){var r=ae(this.first,0),s=this.first+this.size-1;ya(this,{from:r,to:ae(s,ke(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ds(this.cm,0,0),br(this,ao(r),st)}),replaceRange:function(e,r,s,a){r=we(this,r),s=s?we(this,s):r,xa(this,e,r,s,a)},getRange:function(e,r,s){var a=dn(this,we(this,e),we(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Ui(this,e))return ke(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:M(function(e,r,s){X1(this,we(this,typeof e=="number"?ae(e,r||0):e),null,s)}),setSelection:M(function(e,r,s){X1(this,we(this,e),we(this,r||e),s)}),extendSelection:M(function(e,r,s){kl(this,we(this,e),r&&we(this,r),s)}),extendSelections:M(function(e,r){ms(this,rn(this,e),r)}),extendSelectionsBy:M(function(e,r){var s=bt(this.sel.ranges,e);ms(this,rn(this,s),r)}),setSelections:M(function(e,r,s){if(e.length){for(var a=[],d=0;d<e.length;d++)a[d]=new Lt(we(this,e[d].anchor),we(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),br(this,kr(this.cm,a,r),s)}}),addSelection:M(function(e,r,s){var a=this.sel.ranges.slice(0);a.push(new Lt(we(this,e),we(this,r||e))),br(this,kr(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var d=dn(this,r[a].from(),r[a].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var d=dn(this,s[a].from(),s[a].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[a]=d}return r},replaceSelection:function(e,r,s){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=e;this.replaceSelections(a,r,s||"+input")},replaceSelections:M(function(e,r,s){for(var a=[],d=this.sel,p=0;p<d.ranges.length;p++){var v=d.ranges[p];a[p]={from:v.from(),to:v.to(),text:this.splitLines(e[p]),origin:s}}for(var m=r&&r!="end"&&sf(this,a,r),y=a.length-1;y>=0;y--)ya(this,a[y]);m?Il(this,m):this.cm&&ro(this.cm)}),undo:M(function(){Dl(this,"undo")}),redo:M(function(){Dl(this,"redo")}),undoSelection:M(function(){Dl(this,"undo",!0)}),redoSelection:M(function(){Dl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Do(this.history),lo(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:pn(this.history.done),undone:pn(this.history.undone)}},setHistory:function(e){var r=this.history=new Do(this.history);r.done=pn(e.done.slice(0),null,!0),r.undone=pn(e.undone.slice(0),null,!0)},setGutterMarker:M(function(e,r,s){return Ho(this,e,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[r]=s,!s&&se(d)&&(a.gutterMarkers=null),!0})}),clearGutter:M(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Ho(r,s,"gutter",function(){return s.gutterMarkers[e]=null,se(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Ui(this,e)||(r=e,e=ke(this,e),!e))return null}else if(r=zt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=s;else{if(Ce(s).test(a[d]))return!1;a[d]+=" "+s}return!0})}),removeLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",p=a[d];if(p)if(s==null)a[d]=null;else{var v=p.match(Ce(s));if(!v)return!1;var m=v.index+v[0].length;a[d]=p.slice(0,v.index)+(!v.index||m==p.length?"":" ")+p.slice(m)||null}else return!1;return!0})}),addLineWidget:M(function(e,r,s){return Uc(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return fo(this,we(this,e),we(this,r),s,s&&s.type||"range")},setBookmark:function(e,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 e=we(this,e),fo(this,e,e,s,"bookmark")},findMarksAt:function(e){e=we(this,e);var r=[],s=ke(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var d=s[a];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=we(this,e),r=we(this,r);var a=[],d=e.line;return this.iter(e.line,r.line+1,function(p){var v=p.markedSpans;if(v)for(var m=0;m<v.length;m++){var y=v[m];!(y.to!=null&&d==e.line&&e.ch>=y.to||y.from==null&&d!=e.line||y.from!=null&&d==r.line&&y.from>=r.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++d}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(d){var p=d.text.length+a;if(p>e)return r=e,!0;e-=p,++s}),we(this,ae(s,r))},indexFromPos:function(e){e=we(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){r+=a.text.length+s}),r},copy:function(e){var r=new Nr(es(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,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Nr(es(this,r,s),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Rl(a,J1(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),cf(J1(this));break}}if(e.history==this.history){var a=[e.id];lo(e,function(d){return a.push(d.id)},!0),e.history=new Do(null),e.history.done=pn(this.history.done,a),e.history.undone=pn(this.history.undone,a)}},iterLinkedDocs:function(e){lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zo(e)},lineSeparator:function(){return this.lineSep||`
|
|
2900
|
+
`},setDirection:M(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&bs(this.cm))})}),Nr.prototype.eachLine=Nr.prototype.iter;var jc=0;function Kc(e){var r=this;if(eu(r),!(Jt(r,e)||Ci(r.display,e))){vr(e),z&&(jc=+new Date);var s=ti(r,e,!0),a=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,p=Array(d),v=0,m=function(){++v==d&&qt(r,function(){s=we(r.doc,s);var H={from:s,to:s,text:r.doc.splitLines(p.filter(function(K){return K!=null}).join(r.doc.lineSeparator())),origin:"paste"};ya(r.doc,H),Il(r.doc,ao(we(r.doc,s),we(r.doc,so(H))))})()},y=function(H,K){if(r.options.allowDropFileTypes&&ze(r.options.allowDropFileTypes,H.type)==-1){m();return}var ne=new FileReader;ne.onerror=function(){return m()},ne.onload=function(){var he=ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){m();return}p[K]=he,m()},ne.readAsText(H)},C=0;C<a.length;C++)y(a[C],C);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var T=e.dataTransfer.getData("Text");if(T){var I;if(r.state.draggingText&&!r.state.draggingText.copy&&(I=r.listSelections()),gn(r.doc,ao(s,s)),I)for(var V=0;V<I.length;++V)xa(r.doc,"",I[V].anchor,I[V].head,"drag");r.replaceSelection(T,"around","paste"),r.display.input.focus()}}catch{}}}}function df(e,r){if(z&&(!e.state.draggingText||+new Date-jc<100)){wo(r);return}if(!(Jt(e,r)||Ci(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!J)){var s=O("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),R&&s.parentNode.removeChild(s)}}function Q1(e,r){var s=ti(e,r);if(s){var a=document.createDocumentFragment();xi(e,s,a),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),$(e.display.dragCursor,a)}}function eu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Hl(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var d=r[a].CodeMirror;d&&s.push(d)}s.length&&s[0].operation(function(){for(var p=0;p<s.length;p++)e(s[p])})}}var Yc=!1;function tu(){Yc||(dt(),Yc=!0)}function dt(){var e;Ve(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Hl(ff)},100))}),Ve(window,"blur",function(){return Hl(Io)})}function ff(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var ho={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"},zi=0;zi<10;zi++)ho[zi+48]=ho[zi+96]=String(zi);for(var xs=65;xs<=90;xs++)ho[xs]=String.fromCharCode(xs);for(var zs=1;zs<=12;zs++)ho[zs+111]=ho[zs+63235]="F"+zs;var Li={};Li.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Li.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Li.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Li.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Li.default=ve?Li.macDefault:Li.pcDefault;function Ln(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,a,d,p,v=0;v<r.length-1;v++){var m=r[v];if(/^(cmd|meta|m)$/i.test(m))p=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))d=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),p&&(e="Cmd-"+e),d&&(e="Shift-"+e),e}function hf(e){var r={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var d=bt(s.split(" "),Ln),p=0;p<d.length;p++){var v=void 0,m=void 0;p==d.length-1?(m=d.join(" "),v=a):(m=d.slice(0,p+1).join(" "),v="...");var y=r[m];if(!y)r[m]=v;else if(y!=v)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in r)e[C]=r[C];return e}function Si(e,r,s,a){r=Rr(r);var d=r.call?r.call(e,a):r[e];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&s(d))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Si(e,r.fallthrough,s,a);for(var p=0;p<r.fallthrough.length;p++){var v=Si(e,r.fallthrough[p],s,a);if(v)return v}}}function Fl(e){var r=typeof e=="string"?e:ho[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function ru(e,r,s){var a=e;return r.altKey&&a!="Alt"&&(e="Alt-"+e),(je?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(je?r.ctrlKey:r.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function nu(e,r){if(R&&e.keyCode==34&&e.char)return!1;var s=ho[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),ru(s,e,r))}function Rr(e){return typeof e=="string"?Li[e]:e}function vn(e,r){for(var s=e.doc.sel.ranges,a=[],d=0;d<s.length;d++){for(var p=r(s[d]);a.length&&x(p.from,Qe(a).to)<=0;){var v=a.pop();if(x(v.from,p.from)<0){p.from=v.from;break}}a.push(p)}Or(e,function(){for(var m=a.length-1;m>=0;m--)xa(e.doc,"",a[m].from,a[m].to,"+delete");ro(e)})}function Ls(e,r,s){var a=sr(e.text,r+s,s);return a<0||a>e.text.length?null:a}function Bl(e,r,s){var a=Ls(e,r.ch,s);return a==null?null:new ae(r.line,a,s<0?"after":"before")}function Ma(e,r,s,a,d){if(e){r.doc.direction=="rtl"&&(d=-d);var p=Dr(s,r.doc.direction);if(p){var v=d<0?Qe(p):p[0],m=d<0==(v.level==1),y=m?"after":"before",C;if(v.level>0||r.doc.direction=="rtl"){var T=Bn(r,s);C=d<0?s.text.length-1:0;var I=ei(r,T,C).top;C=Lr(function(V){return ei(r,T,V).top==I},d<0==(v.level==1)?v.from:v.to-1,C),y=="before"&&(C=Ls(s,C,1))}else C=d<0?v.to:v.from;return new ae(a,C,y)}}return new ae(a,d<0?s.text.length:0,d<0?"before":"after")}function Xc(e,r,s,a){var d=Dr(r,e.doc.direction);if(!d)return Bl(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 p=Wt(d,s.ch,s.sticky),v=d[p];if(e.doc.direction=="ltr"&&v.level%2==0&&(a>0?v.to>s.ch:v.from<s.ch))return Bl(r,s,a);var m=function(me,xe){return Ls(r,me instanceof ae?me.ch:me,xe)},y,C=function(me){return e.options.lineWrapping?(y=y||Bn(e,r),q(e,r,y,me)):{begin:0,end:r.text.length}},T=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||v.level==1){var I=v.level==1==a<0,V=m(s,I?1:-1);if(V!=null&&(I?V<=v.to&&V<=T.end:V>=v.from&&V>=T.begin)){var H=I?"before":"after";return new ae(s.line,V,H)}}var K=function(me,xe,ye){for(var Se=function(It,rr){return rr?new ae(s.line,m(It,1),"before"):new ae(s.line,It,"after")};me>=0&&me<d.length;me+=xe){var He=d[me],Pe=xe>0==(He.level!=1),ut=Pe?ye.begin:m(ye.end,-1);if(He.from<=ut&&ut<He.to||(ut=Pe?He.from:m(He.to,-1),ye.begin<=ut&&ut<ye.end))return Se(ut,Pe)}},ne=K(p+a,a,T);if(ne)return ne;var he=a>0?T.end:m(T.begin,-1);return he!=null&&!(a>0&&he==r.text.length)&&(ne=K(a>0?0:d.length-1,a,C(he)),ne)?ne:null}var Fo={selectAll:Fc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),st)},killLine:function(e){return vn(e,function(r){if(r.empty()){var s=ke(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:ae(r.head.line+1,0)}:{from:r.head,to:ae(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:we(e.doc,ae(r.to().line+1,0))}})},delLineLeft:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return iu(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Vl(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return ou(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},Ue)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},Ue)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Vl(e,r.head):a},Ue)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],s=e.listSelections(),a=e.options.tabSize,d=0;d<s.length;d++){var p=s[d].from(),v=xt(e.getLine(p.line),p.ch,a);r.push(tr(a-v%a))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Or(e,function(){for(var r=e.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var d=r[a].head,p=ke(e.doc,d.line).text;if(p){if(d.ch==p.length&&(d=new ae(d.line,d.ch-1)),d.ch>0)d=new ae(d.line,d.ch+1),e.replaceRange(p.charAt(d.ch-1)+p.charAt(d.ch-2),ae(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var v=ke(e.doc,d.line-1).text;v&&(d=new ae(d.line,1),e.replaceRange(p.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),ae(d.line-1,v.length-1),d,"+transpose"))}}s.push(new Lt(d,d))}e.setSelections(s)})},newlineAndIndent:function(e){return Or(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var a=0;a<r.length;a++)e.indentLine(r[a].from().line,null,!0);ro(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2901
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function iu(e,r){var s=ke(e.doc,r),a=Qn(s);return a!=s&&(r=zt(a)),Ma(!0,e,a,r,1)}function ou(e,r){var s=ke(e.doc,r),a=Nd(s);return a!=s&&(r=zt(a)),Ma(!0,e,s,r,-1)}function Vl(e,r){var s=iu(e,r.line),a=ke(e.doc,s.line),d=Dr(a,e.doc.direction);if(!d||d[0].level==0){var p=Math.max(s.ch,a.text.search(/\S/)),v=r.line==s.line&&r.ch<=p&&r.ch;return ae(s.line,v?0:p,s.sticky)}return s}function Zn(e,r,s){if(typeof r=="string"&&(r=Fo[r],!r))return!1;e.display.input.ensurePolled();var a=e.display.shift,d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),d=r(e)!=Ge}finally{e.display.shift=a,e.state.suppressEdits=!1}return d}function pf(e,r,s){for(var a=0;a<e.state.keyMaps.length;a++){var d=Si(r,e.state.keyMaps[a],s,e);if(d)return d}return e.options.extraKeys&&Si(r,e.options.extraKeys,s,e)||Si(r,e.options.keyMap,s,e)}var po=new rt;function _a(e,r,s,a){var d=e.state.keySeq;if(d){if(Fl(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:po.set(50,function(){e.state.keySeq==d&&(e.state.keySeq=null,e.display.input.reset())}),au(e,d+" "+r,s,a))return!0}return au(e,r,s,a)}function au(e,r,s,a){var d=pf(e,r,a);return d=="multi"&&(e.state.keySeq=r),d=="handled"&&lr(e,"keyHandled",e,r,s),(d=="handled"||d=="multi")&&(vr(s),fa(e)),!!d}function Wl(e,r){var s=nu(r,!0);return s?r.shiftKey&&!e.state.keySeq?_a(e,"Shift-"+s,r,function(a){return Zn(e,a,!0)})||_a(e,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Zn(e,a)}):_a(e,s,r,function(a){return Zn(e,a)}):!1}function gf(e,r,s){return _a(e,"'"+s+"'",r,function(a){return Zn(e,a,!0)})}var su=null;function Jc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=Ae(),!Jt(r,e))){z&&S<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var a=Wl(r,e);R&&(su=a?s:null,!a&&s==88&&!il&&(ve?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),c&&!ve&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Qc(r)}}function Qc(e){var r=e.display.lineDiv;et(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(le(r,"CodeMirror-crosshair"),Sr(document,"keyup",s),Sr(document,"mouseover",s))}Ve(document,"keyup",s),Ve(document,"mouseover",s)}function lu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,e)}function e0(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(Ci(r.display,e)||Jt(r,e)||e.ctrlKey&&!e.altKey||ve&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(R&&s==su){su=null,vr(e);return}if(!(R&&(!e.which||e.which<10)&&Wl(r,e))){var d=String.fromCharCode(a==null?s:a);d!="\b"&&(gf(r,e,d)||r.display.input.onKeyPress(e))}}}var t0=400,Zl=function(e,r,s){this.time=e,this.pos=r,this.button=s};Zl.prototype.compare=function(e,r,s){return this.time+t0>e&&x(r,this.pos)==0&&s==this.button};var yr,an;function vf(e,r){var s=+new Date;return an&&an.compare(s,e,r)?(yr=an=null,"triple"):yr&&yr.compare(s,e,r)?(an=new Zl(s,e,r),yr=null,"double"):(yr=new Zl(s,e,r),an=null,"single")}function r0(e){var r=this,s=r.display;if(!(Jt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Ci(s,e)){k||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!uu(r,e)){var a=ti(r,e),d=Ka(e),p=a?vf(a,d):"single";window.focus(),d==1&&r.state.selectingText&&r.state.selectingText(e),!(a&&Ul(r,d,a,p,e))&&(d==1?a?n0(r,a,p,e):Wi(e)==s.scroller&&vr(e):d==2?(a&&kl(r.doc,a),setTimeout(function(){return s.input.focus()},20)):d==3&&(Ye?r.display.input.onContextMenu(e):zl(r)))}}}function Ul(e,r,s,a,d){var p="Click";return a=="double"?p="Double"+p:a=="triple"&&(p="Triple"+p),p=(r==1?"Left":r==2?"Middle":"Right")+p,_a(e,ru(p,d),d,function(v){if(typeof v=="string"&&(v=Fo[v]),!v)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=v(e,s)!=Ge}finally{e.state.suppressEdits=!1}return m})}function Ta(e,r,s){var a=e.getOption("configureMouse"),d=a?a(e,r,s):{};if(d.unit==null){var p=Oe?s.shiftKey&&s.metaKey:s.altKey;d.unit=p?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||s.shiftKey),d.addNew==null&&(d.addNew=ve?s.metaKey:s.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(ve?s.altKey:s.ctrlKey)),d}function n0(e,r,s,a){z?setTimeout(or(R1,e),0):e.curOp.focus=Ae();var d=Ta(e,s,a),p=e.doc.sel,v;e.options.dragDrop&&Ya&&!e.isReadOnly()&&s=="single"&&(v=p.contains(r))>-1&&(x((v=p.ranges[v]).from(),r)<0||r.xRel>0)&&(x(v.to(),r)>0||r.xRel<0)?i0(e,a,r,d):a0(e,a,r,d)}function i0(e,r,s,a){var d=e.display,p=!1,v=qt(e,function(C){k&&(d.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:zl(e)),Sr(d.wrapper.ownerDocument,"mouseup",v),Sr(d.wrapper.ownerDocument,"mousemove",m),Sr(d.scroller,"dragstart",y),Sr(d.scroller,"drop",v),p||(vr(C),a.addNew||kl(e.doc,s,null,null,a.extend),k&&!J||z&&S==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),m=function(C){p=p||Math.abs(r.clientX-C.clientX)+Math.abs(r.clientY-C.clientY)>=10},y=function(){return p=!0};k&&(d.scroller.draggable=!0),e.state.draggingText=v,v.copy=!a.moveOnDrag,Ve(d.wrapper.ownerDocument,"mouseup",v),Ve(d.wrapper.ownerDocument,"mousemove",m),Ve(d.scroller,"dragstart",y),Ve(d.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function o0(e,r,s){if(s=="char")return new Lt(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new Lt(ae(r.line,0),we(e.doc,ae(r.line+1,0)));var a=s(e,r);return new Lt(a.from,a.to)}function a0(e,r,s,a){z&&zl(e);var d=e.display,p=e.doc;vr(r);var v,m,y=p.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=p.sel.contains(s),m>-1?v=C[m]:v=new Lt(s,s)):(v=p.sel.primary(),m=p.sel.primIndex),a.unit=="rectangle")a.addNew||(v=new Lt(s,s)),s=ti(e,r,!0,!0),m=-1;else{var T=o0(e,s,a.unit);a.extend?v=El(v,T.anchor,T.head,a.extend):v=T}a.addNew?m==-1?(m=C.length,br(p,kr(e,C.concat([v]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(br(p,kr(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=p.sel):Y1(p,m,v,lt):(m=0,br(p,new hn([v],0),lt),y=p.sel);var I=s;function V(ye){if(x(I,ye)!=0)if(I=ye,a.unit=="rectangle"){for(var Se=[],He=e.options.tabSize,Pe=xt(ke(p,s.line).text,s.ch,He),ut=xt(ke(p,ye.line).text,ye.ch,He),It=Math.min(Pe,ut),rr=Math.max(Pe,ut),Nt=Math.min(s.line,ye.line),Fr=Math.min(e.lastLine(),Math.max(s.line,ye.line));Nt<=Fr;Nt++){var Br=ke(p,Nt).text,Xt=Zt(Br,It,He);It==rr?Se.push(new Lt(ae(Nt,Xt),ae(Nt,Xt))):Br.length>Xt&&Se.push(new Lt(ae(Nt,Xt),ae(Nt,Zt(Br,rr,He))))}Se.length||Se.push(new Lt(s,s)),br(p,kr(e,y.ranges.slice(0,m).concat(Se),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ye)}else{var Cr=v,cr=o0(e,ye,a.unit),$t=Cr.anchor,Ft;x(cr.anchor,$t)>0?(Ft=cr.head,$t=Ke(Cr.from(),cr.anchor)):(Ft=cr.anchor,$t=ce(Cr.to(),cr.head));var jt=y.ranges.slice(0);jt[m]=Oa(e,new Lt(we(p,$t),Ft)),br(p,kr(e,jt,m),lt)}}var H=d.wrapper.getBoundingClientRect(),K=0;function ne(ye){var Se=++K,He=ti(e,ye,!0,a.unit=="rectangle");if(He)if(x(He,I)!=0){e.curOp.focus=Ae(),V(He);var Pe=Ao(d,p);(He.line>=Pe.to||He.line<Pe.from)&&setTimeout(qt(e,function(){K==Se&&ne(ye)}),150)}else{var ut=ye.clientY<H.top?-20:ye.clientY>H.bottom?20:0;ut&&setTimeout(qt(e,function(){K==Se&&(d.scroller.scrollTop+=ut,ne(ye))}),50)}}function he(ye){e.state.selectingText=!1,K=1/0,ye&&(vr(ye),d.input.focus()),Sr(d.wrapper.ownerDocument,"mousemove",me),Sr(d.wrapper.ownerDocument,"mouseup",xe),p.history.lastSelOrigin=null}var me=qt(e,function(ye){ye.buttons===0||!Ka(ye)?he(ye):ne(ye)}),xe=qt(e,he);e.state.selectingText=xe,Ve(d.wrapper.ownerDocument,"mousemove",me),Ve(d.wrapper.ownerDocument,"mouseup",xe)}function Oa(e,r){var s=r.anchor,a=r.head,d=ke(e.doc,s.line);if(x(s,a)==0&&s.sticky==a.sticky)return r;var p=Dr(d);if(!p)return r;var v=Wt(p,s.ch,s.sticky),m=p[v];if(m.from!=s.ch&&m.to!=s.ch)return r;var y=v+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==p.length)return r;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var T=Wt(p,a.ch,a.sticky),I=T-v||(a.ch-s.ch)*(m.level==1?-1:1);T==y-1||T==y?C=I<0:C=I>0}var V=p[y+(C?-1:0)],H=C==(V.level==1),K=H?V.from:V.to,ne=H?"after":"before";return s.ch==K&&s.sticky==ne?r:new Lt(new ae(s.line,K,ne),a)}function Ea(e,r,s,a){var d,p;if(r.touches)d=r.touches[0].clientX,p=r.touches[0].clientY;else try{d=r.clientX,p=r.clientY}catch{return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&vr(r);var v=e.display,m=v.lineDiv.getBoundingClientRect();if(p>m.bottom||!gr(e,s))return ln(r);p-=m.top-v.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=v.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=d){var T=Hn(e.doc,p),I=e.display.gutterSpecs[y];return qe(e,s,e,T,I.className,r),ln(r)}}}function uu(e,r){return Ea(e,r,"gutterClick",!0)}function cu(e,r){Ci(e.display,r)||s0(e,r)||Jt(e,r,"contextmenu")||Ye||e.display.input.onContextMenu(r)}function s0(e,r){return gr(e,"gutterContextMenu")?Ea(e,r,"gutterContextMenu",!1):!1}function Ss(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ls(e)}var Bo={toString:function(){return"CodeMirror.Init"}},Ms={},ka={};function Gl(e){var r=e.optionHandlers;function s(a,d,p,v){e.defaults[a]=d,p&&(r[a]=v?function(m,y,C){C!=Bo&&p(m,y,C)}:p)}e.defineOption=s,e.Init=Bo,s("value","",function(a,d){return a.setValue(d)},!0),s("mode",null,function(a,d){a.doc.modeOption=d,U1(a)},!0),s("indentUnit",2,U1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){vs(a),ls(a),ot(a)},!0),s("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var p=[],v=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var T=y.text.indexOf(d,C);if(T==-1)break;C=T+d.length,p.push(ae(v,T))}v++});for(var m=p.length-1;m>=0;m--)xa(a.doc,d,p[m],ae(p[m].line,p[m].ch+d.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,d,p){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),p!=Bo&&a.refresh()}),s("specialCharPlaceholder",fn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),s("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),s("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),s("rtlMoveVisually",!$e),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ss(a),gs(a)},!0),s("keyMap","default",function(a,d,p){var v=Rr(d),m=p!=Bo&&Rr(p);m&&m.detach&&m.detach(a,v),v.attach&&v.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,l0,!0),s("gutters",[],function(a,d){a.display.gutterSpecs=W1(d,a.options.lineNumbers),gs(a)},!0),s("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?da(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return io(a)},!0),s("scrollbarStyle","native",function(a){Po(a),io(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,d){a.display.gutterSpecs=W1(a.options.gutters,d),gs(a)},!0),s("firstLineNumber",1,gs,!0),s("lineNumberFormatter",function(a){return a},gs,!0),s("showCursorWhenSelecting",!1,us,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,d){d=="nocursor"&&(Io(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),s("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),s("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),s("dragDrop",!0,bf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,us,!0),s("singleCursorHeightPerLine",!0,us,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,vs,!0),s("addModeClass",!1,vs,!0),s("pollInterval",100),s("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,vs,!0),s("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),s("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),s("autofocus",null),s("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),s("phrases",null)}function bf(e,r,s){var a=s&&s!=Bo;if(!r!=!a){var d=e.display.dragFunctions,p=r?Ve:Sr;p(e.display.scroller,"dragstart",d.start),p(e.display.scroller,"dragenter",d.enter),p(e.display.scroller,"dragover",d.over),p(e.display.scroller,"dragleave",d.leave),p(e.display.scroller,"drop",d.drop)}}function l0(e){e.options.lineWrapping?(et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(le(e.display.wrapper,"CodeMirror-wrap"),os(e)),Ji(e),ot(e),ls(e),setTimeout(function(){return io(e)},100)}function Dt(e,r){var s=this;if(!(this instanceof Dt))return new Dt(e,r);this.options=r=r?Tt(r):{},Tt(Ms,r,!1);var a=r.value;typeof a=="string"?a=new Nr(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var d=new Dt.inputStyles[r.inputStyle](this),p=this.display=new of(e,a,d,r);p.wrapper.CodeMirror=this,Ss(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Po(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 rt,keySeq:null,specialChars:null},r.autofocus&&!be&&p.input.focus(),z&&S<11&&setTimeout(function(){return s.display.input.reset(!0)},20),u0(this),tu(),Wn(this),this.curOp.forceUpdate=!0,Dc(this,a),r.autofocus&&!be||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ha(s)},20):Io(this);for(var v in ka)ka.hasOwnProperty(v)&&ka[v](this,r[v],Bo);oi(this),r.finishInit&&r.finishInit(this);for(var m=0;m<_s.length;++m)_s[m](this);ni(this),k&&r.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}Dt.defaults=Ms,Dt.optionHandlers=ka;function u0(e){var r=e.display;Ve(r.scroller,"mousedown",qt(e,r0)),z&&S<11?Ve(r.scroller,"dblclick",qt(e,function(y){if(!Jt(e,y)){var C=ti(e,y);if(!(!C||uu(e,y)||Ci(e.display,y))){vr(y);var T=e.findWordAt(C);kl(e.doc,T.anchor,T.head)}}})):Ve(r.scroller,"dblclick",function(y){return Jt(e,y)||vr(y)}),Ve(r.scroller,"contextmenu",function(y){return cu(e,y)}),Ve(r.input.getField(),"contextmenu",function(y){r.scroller.contains(y.target)||cu(e,y)});var s,a={end:0};function d(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function p(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function v(y,C){if(C.left==null)return!0;var T=C.left-y.left,I=C.top-y.top;return T*T+I*I>20*20}Ve(r.scroller,"touchstart",function(y){if(!Jt(e,y)&&!p(y)&&!uu(e,y)){r.input.ensurePolled(),clearTimeout(s);var C=+new Date;r.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(r.activeTouch.left=y.touches[0].pageX,r.activeTouch.top=y.touches[0].pageY)}}),Ve(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ve(r.scroller,"touchend",function(y){var C=r.activeTouch;if(C&&!Ci(r,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var T=e.coordsChar(r.activeTouch,"page"),I;!C.prev||v(C,C.prev)?I=new Lt(T,T):!C.prev.prev||v(C,C.prev.prev)?I=e.findWordAt(T):I=new Lt(ae(T.line,0),we(e.doc,ae(T.line+1,0))),e.setSelection(I.anchor,I.head),e.focus(),vr(y)}d()}),Ve(r.scroller,"touchcancel",d),Ve(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Gt(e,r.scroller.scrollTop),$o(e,r.scroller.scrollLeft,!0),qe(e,"scroll",e))}),Ve(r.scroller,"mousewheel",function(y){return $c(e,y)}),Ve(r.scroller,"DOMMouseScroll",function(y){return $c(e,y)}),Ve(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(y){Jt(e,y)||wo(y)},over:function(y){Jt(e,y)||(Q1(e,y),wo(y))},start:function(y){return df(e,y)},drop:qt(e,Kc),leave:function(y){Jt(e,y)||eu(e)}};var m=r.input.getField();Ve(m,"keyup",function(y){return lu.call(e,y)}),Ve(m,"keydown",qt(e,Jc)),Ve(m,"keypress",qt(e,e0)),Ve(m,"focus",function(y){return ha(e,y)}),Ve(m,"blur",function(y){return Io(e,y)})}var _s=[];Dt.defineInitHook=function(e){return _s.push(e)};function Ts(e,r,s,a){var d=e.doc,p;s==null&&(s="add"),s=="smart"&&(d.mode.indent?p=sa(e,r).state:s="prev");var v=e.options.tabSize,m=ke(d,r),y=xt(m.text,null,v);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],T;if(!a&&!/\S/.test(m.text))T=0,s="not";else if(s=="smart"&&(T=d.mode.indent(p,m.text.slice(C.length),m.text),T==Ge||T>150)){if(!a)return;s="prev"}s=="prev"?r>d.first?T=xt(ke(d,r-1).text,null,v):T=0:s=="add"?T=y+e.options.indentUnit:s=="subtract"?T=y-e.options.indentUnit:typeof s=="number"&&(T=y+s),T=Math.max(0,T);var I="",V=0;if(e.options.indentWithTabs)for(var H=Math.floor(T/v);H;--H)V+=v,I+=" ";if(V<T&&(I+=tr(T-V)),I!=C)return xa(d,I,ae(r,0),ae(r,C.length),"+input"),m.stateAfter=null,!0;for(var K=0;K<d.sel.ranges.length;K++){var ne=d.sel.ranges[K];if(ne.head.line==r&&ne.head.ch<C.length){var he=ae(r,C.length);Y1(d,K,new Lt(he,he));break}}}var Sn=null;function Mn(e){Sn=e}function ql(e,r,s,a,d){var p=e.doc;e.display.shift=!1,a||(a=p.sel);var v=+new Date-200,m=d=="paste"||e.state.pasteIncoming>v,y=zo(r),C=null;if(m&&a.ranges.length>1)if(Sn&&Sn.text.join(`
|
|
2902
|
+
`)==r){if(a.ranges.length%Sn.text.length==0){C=[];for(var T=0;T<Sn.text.length;T++)C.push(p.splitLines(Sn.text[T]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=bt(y,function(me){return[me]}));for(var I=e.curOp.updateInput,V=a.ranges.length-1;V>=0;V--){var H=a.ranges[V],K=H.from(),ne=H.to();H.empty()&&(s&&s>0?K=ae(K.line,K.ch-s):e.state.overwrite&&!m?ne=ae(ne.line,Math.min(ke(p,ne.line).text.length,ne.ch+Qe(y).length)):m&&Sn&&Sn.lineWise&&Sn.text.join(`
|
|
2902
2903
|
`)==y.join(`
|
|
2903
|
-
`)&&(K=ne=ae(K.line,0)));var he={from:K,to:ne,text:C?C[W%C.length]:y,origin:d||(m?"paste":e.state.cutIncoming>v?"cut":"+input")};ya(e.doc,he),lr(e,"inputRead",e,he)}r&&!m&&c0(e,r),ro(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function du(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Or(r,function(){return ql(r,s,0,null,"paste")}),!0}function c0(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var d=s.ranges[a];if(!(d.head.ch>100||a&&s.ranges[a-1].head.line==d.head.line)){var p=e.getModeAt(d.head),v=!1;if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(r.indexOf(p.electricChars.charAt(m))>-1){v=_s(e,d.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Ee(e.doc,d.head.line).text.slice(0,d.head.ch))&&(v=_s(e,d.head.line,"smart"));v&&lr(e,"electricInput",e,d.head.line)}}}function fu(e){for(var r=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var d=e.doc.sel.ranges[a].head.line,p={anchor:ae(d,0),head:ae(d+1,0)};s.push(p),r.push(e.getRange(p.anchor,p.head))}return{text:r,ranges:s}}function d0(e,r,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!r)}function f0(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?e.style.width="1000px":e.setAttribute("wrap","off"),Te&&(e.style.border="1px solid black"),d0(e),r}function Mi(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,d){var p=this.options,v=p[a];p[a]==d&&a!="mode"||(p[a]=d,r.hasOwnProperty(a)&&qt(this,r[a])(this,d,v),qe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Rr(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,p=0;p<d.length;++p)if(d[p]==a||d[p].name==a)return d.splice(p,1),!0},addOverlay:kr(function(a,d){var p=a.token?a:e.getMode(this.options,a);if(p.startState)throw new Error("Overlays may not be stateful.");Et(this.state.overlays,{mode:p,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(v){return v.priority}),this.state.modeGen++,ot(this)}),removeOverlay:kr(function(a){for(var d=this.state.overlays,p=0;p<d.length;++p){var v=d[p].modeSpec;if(v==a||typeof a=="string"&&v.name==a){d.splice(p,1),this.state.modeGen++,ot(this);return}}}),indentLine:kr(function(a,d,p){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Ui(this.doc,a)&&_s(this,a,d,p)}),indentSelection:kr(function(a){for(var d=this.doc.sel.ranges,p=-1,v=0;v<d.length;v++){var m=d[v];if(m.empty())m.head.line>p&&(_s(this,m.head.line,a,!0),p=m.head.line,v==this.doc.sel.primIndex&&ro(this));else{var y=m.from(),C=m.to(),T=Math.max(p,y.line);p=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var I=T;I<p;++I)_s(this,I,a);var W=this.doc.sel.ranges;y.ch==0&&d.length==W.length&&W[v].from().ch>0&&Y1(this.doc,v,new Lt(y,W[v].to()),st)}}}),getTokenAt:function(a,d){return ll(this,a,d)},getLineTokens:function(a,d){return ll(this,ae(a),d,!0)},getTokenTypeAt:function(a){a=we(this.doc,a);var d=x1(this,Ee(this.doc,a.line)),p=0,v=(d.length-1)/2,m=a.ch,y;if(m==0)y=d[2];else for(;;){var C=p+v>>1;if((C?d[C*2-1]:0)>=m)v=C;else if(d[C*2+1]<m)p=C+1;else{y=d[C*2+2];break}}var T=y?y.indexOf("overlay "):-1;return T<0?y:T==0?null:y.slice(0,T-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var p=[];if(!s.hasOwnProperty(d))return p;var v=s[d],m=this.getModeAt(a);if(typeof m[d]=="string")v[m[d]]&&p.push(v[m[d]]);else if(m[d])for(var y=0;y<m[d].length;y++){var C=v[m[d][y]];C&&p.push(C)}else m.helperType&&v[m.helperType]?p.push(v[m.helperType]):v[m.name]&&p.push(v[m.name]);for(var T=0;T<v._global.length;T++){var I=v._global[T];I.pred(m,this)&&ze(p,I.val)==-1&&p.push(I.val)}return p},getStateAfter:function(a,d){var p=this.doc;return a=gt(p,a==null?p.first+p.size-1:a),sa(this,a+1,d).state},cursorCoords:function(a,d){var p,v=this.doc.sel.primary();return a==null?p=v.head:typeof a=="object"?p=we(this.doc,a):p=a?v.from():v.to(),Wn(this,p,d||"page")},charCoords:function(a,d){return xl(this,we(this.doc,a),d||"page")},coordsChar:function(a,d){return a=Lc(this,a,d||"page"),V(this,a.left,a.top)},lineAtHeight:function(a,d){return a=Lc(this,{top:a,left:0},d||"page").top,Hn(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,p){var v=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,v=!0),m=Ee(this.doc,a)}else m=a;return wl(this,m,{top:0,left:0},d||"page",p||v).top+(v?this.doc.height-jr(m):0)},defaultTextHeight:function(){return Xi(this.display)},defaultCharWidth:function(){return ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,p,v,m){var y=this.display;a=Wn(this,we(this.doc,a));var C=a.bottom,T=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),y.sizer.appendChild(d),v=="over")C=a.top;else if(v=="above"||v=="near"){var I=Math.max(y.wrapper.clientHeight,this.doc.height),W=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(v=="above"||a.bottom+d.offsetHeight>I)&&a.top>d.offsetHeight?C=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=I&&(C=a.bottom),T+d.offsetWidth>W&&(T=W-d.offsetWidth)}d.style.top=C+"px",d.style.left=d.style.right="",m=="right"?(T=y.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(m=="left"?T=0:m=="middle"&&(T=(y.sizer.clientWidth-d.offsetWidth)/2),d.style.left=T+"px"),p&&Kd(this,{left:T,top:C,right:T+d.offsetWidth,bottom:C+d.offsetHeight})},triggerOnKeyDown:kr(Jc),triggerOnKeyPress:kr(e0),triggerOnKeyUp:lu,triggerOnMouseDown:kr(r0),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:kr(function(a){c0(this,a)}),findPosH:function(a,d,p,v){var m=1;d<0&&(m=-1,d=-d);for(var y=we(this.doc,a),C=0;C<d&&(y=Ts(this.doc,y,m,p,v),!y.hitSide);++C);return y},moveH:kr(function(a,d){var p=this;this.extendSelectionsBy(function(v){return p.display.shift||p.doc.extend||v.empty()?Ts(p.doc,v.head,a,d,p.options.rtlMoveVisually):a<0?v.from():v.to()},Ue)}),deleteH:kr(function(a,d){var p=this.doc.sel,v=this.doc;p.somethingSelected()?v.replaceSelection("",null,"+delete"):vn(this,function(m){var y=Ts(v,m.head,a,d,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,d,p,v){var m=1,y=v;d<0&&(m=-1,d=-d);for(var C=we(this.doc,a),T=0;T<d;++T){var I=Wn(this,C,"div");if(y==null?y=I.left:I.left=y,C=jl(this,I,m,p),C.hitSide)break}return C},moveV:kr(function(a,d){var p=this,v=this.doc,m=[],y=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(T){if(y)return a<0?T.from():T.to();var I=Wn(p,T.head,"div");T.goalColumn!=null&&(I.left=T.goalColumn),m.push(I.left);var W=jl(p,I,a,d);return d=="page"&&T==v.sel.primary()&&ga(p,xl(p,W,"div").top-I.top),W},Ue),m.length)for(var C=0;C<v.sel.ranges.length;C++)v.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var d=this.doc,p=Ee(d,a.line).text,v=a.ch,m=a.ch;if(p){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==p.length)&&v?--v:++m;for(var C=p.charAt(v),T=U(C,y)?function(I){return U(I,y)}:/\s/.test(C)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!U(I)};v>0&&T(p.charAt(v-1));)--v;for(;m<p.length&&T(p.charAt(m));)++m}return new Lt(ae(a.line,v),ae(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):le(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:kr(function(a,d){cs(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-nn(this)-this.display.barHeight,width:a.scrollWidth-nn(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:ji(this)}},scrollIntoView:kr(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ae(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?Oc(this,a):kc(this,a.from,a.to,a.margin)}),setSize:kr(function(a,d){var p=this,v=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=v(a)),d!=null&&(this.display.wrapper.style.height=v(d)),this.options.lineWrapping&&zc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){Qi(p,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(a){return Or(this,a)},startOperation:function(){return Vn(this)},endOperation:function(){return ni(this)},refresh:kr(function(){var a=this.display.cachedTextHeight;ot(this),this.curOp.forceUpdate=!0,ss(this),cs(this,this.doc.scrollLeft,this.doc.scrollTop),B1(this.display),(a==null||Math.abs(a-Xi(this.display))>.5||this.options.lineWrapping)&&Ji(this),qe(this,"refresh",this)}),swapDoc:kr(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Dc(this,a),ss(this),this.display.input.reset(),cs(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[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}},Dn(e),e.registerHelper=function(a,d,p){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][d]=p},e.registerGlobalHelper=function(a,d,p,v){e.registerHelper(a,d,v),s[a]._global.push({pred:p,val:v})}}function Ts(e,r,s,a,d){var p=r,v=s,m=Ee(e,r.line),y=d&&e.direction=="rtl"?-s:s;function C(){var xe=r.line+y;return xe<e.first||xe>=e.first+e.size?!1:(r=new ae(xe,r.ch,r.sticky),m=Ee(e,xe))}function T(xe){var ye;if(a=="codepoint"){var Se=m.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Se))ye=null;else{var He=s>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;ye=new ae(r.line,Math.max(0,Math.min(m.text.length,r.ch+s*(He?2:1))),-s)}}else d?ye=Xc(e.cm,m,r,s):ye=Bl(m,r,s);if(ye==null)if(!xe&&C())r=Ma(d,e.cm,m,r.line,y);else return!1;else r=ye;return!0}if(a=="char"||a=="codepoint")T();else if(a=="column")T(!0);else if(a=="word"||a=="group")for(var I=null,W=a=="group",H=e.cm&&e.cm.getHelper(r,"wordChars"),K=!0;!(s<0&&!T(!K));K=!1){var ne=m.text.charAt(r.ch)||`
|
|
2904
|
-
`,he=U(ne,H)?"w":
|
|
2905
|
-
`?"n":!
|
|
2904
|
+
`)&&(K=ne=ae(K.line,0)));var he={from:K,to:ne,text:C?C[V%C.length]:y,origin:d||(m?"paste":e.state.cutIncoming>v?"cut":"+input")};ya(e.doc,he),lr(e,"inputRead",e,he)}r&&!m&&c0(e,r),ro(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function du(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Or(r,function(){return ql(r,s,0,null,"paste")}),!0}function c0(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var d=s.ranges[a];if(!(d.head.ch>100||a&&s.ranges[a-1].head.line==d.head.line)){var p=e.getModeAt(d.head),v=!1;if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(r.indexOf(p.electricChars.charAt(m))>-1){v=Ts(e,d.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(ke(e.doc,d.head.line).text.slice(0,d.head.ch))&&(v=Ts(e,d.head.line,"smart"));v&&lr(e,"electricInput",e,d.head.line)}}}function fu(e){for(var r=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var d=e.doc.sel.ranges[a].head.line,p={anchor:ae(d,0),head:ae(d+1,0)};s.push(p),r.push(e.getRange(p.anchor,p.head))}return{text:r,ranges:s}}function d0(e,r,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!r)}function f0(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return k?e.style.width="1000px":e.setAttribute("wrap","off"),Te&&(e.style.border="1px solid black"),d0(e),r}function Mi(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,d){var p=this.options,v=p[a];p[a]==d&&a!="mode"||(p[a]=d,r.hasOwnProperty(a)&&qt(this,r[a])(this,d,v),qe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Rr(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,p=0;p<d.length;++p)if(d[p]==a||d[p].name==a)return d.splice(p,1),!0},addOverlay:Er(function(a,d){var p=a.token?a:e.getMode(this.options,a);if(p.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:p,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(v){return v.priority}),this.state.modeGen++,ot(this)}),removeOverlay:Er(function(a){for(var d=this.state.overlays,p=0;p<d.length;++p){var v=d[p].modeSpec;if(v==a||typeof a=="string"&&v.name==a){d.splice(p,1),this.state.modeGen++,ot(this);return}}}),indentLine:Er(function(a,d,p){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Ui(this.doc,a)&&Ts(this,a,d,p)}),indentSelection:Er(function(a){for(var d=this.doc.sel.ranges,p=-1,v=0;v<d.length;v++){var m=d[v];if(m.empty())m.head.line>p&&(Ts(this,m.head.line,a,!0),p=m.head.line,v==this.doc.sel.primIndex&&ro(this));else{var y=m.from(),C=m.to(),T=Math.max(p,y.line);p=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var I=T;I<p;++I)Ts(this,I,a);var V=this.doc.sel.ranges;y.ch==0&&d.length==V.length&&V[v].from().ch>0&&Y1(this.doc,v,new Lt(y,V[v].to()),st)}}}),getTokenAt:function(a,d){return ll(this,a,d)},getLineTokens:function(a,d){return ll(this,ae(a),d,!0)},getTokenTypeAt:function(a){a=we(this.doc,a);var d=x1(this,ke(this.doc,a.line)),p=0,v=(d.length-1)/2,m=a.ch,y;if(m==0)y=d[2];else for(;;){var C=p+v>>1;if((C?d[C*2-1]:0)>=m)v=C;else if(d[C*2+1]<m)p=C+1;else{y=d[C*2+2];break}}var T=y?y.indexOf("overlay "):-1;return T<0?y:T==0?null:y.slice(0,T-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var p=[];if(!s.hasOwnProperty(d))return p;var v=s[d],m=this.getModeAt(a);if(typeof m[d]=="string")v[m[d]]&&p.push(v[m[d]]);else if(m[d])for(var y=0;y<m[d].length;y++){var C=v[m[d][y]];C&&p.push(C)}else m.helperType&&v[m.helperType]?p.push(v[m.helperType]):v[m.name]&&p.push(v[m.name]);for(var T=0;T<v._global.length;T++){var I=v._global[T];I.pred(m,this)&&ze(p,I.val)==-1&&p.push(I.val)}return p},getStateAfter:function(a,d){var p=this.doc;return a=gt(p,a==null?p.first+p.size-1:a),sa(this,a+1,d).state},cursorCoords:function(a,d){var p,v=this.doc.sel.primary();return a==null?p=v.head:typeof a=="object"?p=we(this.doc,a):p=a?v.from():v.to(),Vn(this,p,d||"page")},charCoords:function(a,d){return xl(this,we(this.doc,a),d||"page")},coordsChar:function(a,d){return a=Lc(this,a,d||"page"),W(this,a.left,a.top)},lineAtHeight:function(a,d){return a=Lc(this,{top:a,left:0},d||"page").top,Hn(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,p){var v=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,v=!0),m=ke(this.doc,a)}else m=a;return wl(this,m,{top:0,left:0},d||"page",p||v).top+(v?this.doc.height-jr(m):0)},defaultTextHeight:function(){return Xi(this.display)},defaultCharWidth:function(){return ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,p,v,m){var y=this.display;a=Vn(this,we(this.doc,a));var C=a.bottom,T=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),y.sizer.appendChild(d),v=="over")C=a.top;else if(v=="above"||v=="near"){var I=Math.max(y.wrapper.clientHeight,this.doc.height),V=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(v=="above"||a.bottom+d.offsetHeight>I)&&a.top>d.offsetHeight?C=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=I&&(C=a.bottom),T+d.offsetWidth>V&&(T=V-d.offsetWidth)}d.style.top=C+"px",d.style.left=d.style.right="",m=="right"?(T=y.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(m=="left"?T=0:m=="middle"&&(T=(y.sizer.clientWidth-d.offsetWidth)/2),d.style.left=T+"px"),p&&Kd(this,{left:T,top:C,right:T+d.offsetWidth,bottom:C+d.offsetHeight})},triggerOnKeyDown:Er(Jc),triggerOnKeyPress:Er(e0),triggerOnKeyUp:lu,triggerOnMouseDown:Er(r0),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:Er(function(a){c0(this,a)}),findPosH:function(a,d,p,v){var m=1;d<0&&(m=-1,d=-d);for(var y=we(this.doc,a),C=0;C<d&&(y=Os(this.doc,y,m,p,v),!y.hitSide);++C);return y},moveH:Er(function(a,d){var p=this;this.extendSelectionsBy(function(v){return p.display.shift||p.doc.extend||v.empty()?Os(p.doc,v.head,a,d,p.options.rtlMoveVisually):a<0?v.from():v.to()},Ue)}),deleteH:Er(function(a,d){var p=this.doc.sel,v=this.doc;p.somethingSelected()?v.replaceSelection("",null,"+delete"):vn(this,function(m){var y=Os(v,m.head,a,d,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,d,p,v){var m=1,y=v;d<0&&(m=-1,d=-d);for(var C=we(this.doc,a),T=0;T<d;++T){var I=Vn(this,C,"div");if(y==null?y=I.left:I.left=y,C=jl(this,I,m,p),C.hitSide)break}return C},moveV:Er(function(a,d){var p=this,v=this.doc,m=[],y=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(T){if(y)return a<0?T.from():T.to();var I=Vn(p,T.head,"div");T.goalColumn!=null&&(I.left=T.goalColumn),m.push(I.left);var V=jl(p,I,a,d);return d=="page"&&T==v.sel.primary()&&ga(p,xl(p,V,"div").top-I.top),V},Ue),m.length)for(var C=0;C<v.sel.ranges.length;C++)v.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var d=this.doc,p=ke(d,a.line).text,v=a.ch,m=a.ch;if(p){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==p.length)&&v?--v:++m;for(var C=p.charAt(v),T=U(C,y)?function(I){return U(I,y)}:/\s/.test(C)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!U(I)};v>0&&T(p.charAt(v-1));)--v;for(;m<p.length&&T(p.charAt(m));)++m}return new Lt(ae(a.line,v),ae(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):le(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,d){ds(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-nn(this)-this.display.barHeight,width:a.scrollWidth-nn(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:ji(this)}},scrollIntoView:Er(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ae(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?Oc(this,a):Ec(this,a.from,a.to,a.margin)}),setSize:Er(function(a,d){var p=this,v=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=v(a)),d!=null&&(this.display.wrapper.style.height=v(d)),this.options.lineWrapping&&zc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){Qi(p,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(a){return Or(this,a)},startOperation:function(){return Wn(this)},endOperation:function(){return ni(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;ot(this),this.curOp.forceUpdate=!0,ls(this),ds(this,this.doc.scrollLeft,this.doc.scrollTop),B1(this.display),(a==null||Math.abs(a-Xi(this.display))>.5||this.options.lineWrapping)&&Ji(this),qe(this,"refresh",this)}),swapDoc:Er(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Dc(this,a),ls(this),this.display.input.reset(),ds(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[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}},Dn(e),e.registerHelper=function(a,d,p){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][d]=p},e.registerGlobalHelper=function(a,d,p,v){e.registerHelper(a,d,v),s[a]._global.push({pred:p,val:v})}}function Os(e,r,s,a,d){var p=r,v=s,m=ke(e,r.line),y=d&&e.direction=="rtl"?-s:s;function C(){var xe=r.line+y;return xe<e.first||xe>=e.first+e.size?!1:(r=new ae(xe,r.ch,r.sticky),m=ke(e,xe))}function T(xe){var ye;if(a=="codepoint"){var Se=m.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Se))ye=null;else{var He=s>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;ye=new ae(r.line,Math.max(0,Math.min(m.text.length,r.ch+s*(He?2:1))),-s)}}else d?ye=Xc(e.cm,m,r,s):ye=Bl(m,r,s);if(ye==null)if(!xe&&C())r=Ma(d,e.cm,m,r.line,y);else return!1;else r=ye;return!0}if(a=="char"||a=="codepoint")T();else if(a=="column")T(!0);else if(a=="word"||a=="group")for(var I=null,V=a=="group",H=e.cm&&e.cm.getHelper(r,"wordChars"),K=!0;!(s<0&&!T(!K));K=!1){var ne=m.text.charAt(r.ch)||`
|
|
2905
|
+
`,he=U(ne,H)?"w":V&&ne==`
|
|
2906
|
+
`?"n":!V||/\s/.test(ne)?null:"p";if(V&&!K&&!he&&(he="s"),I&&I!=he){s<0&&(s=1,T(),r.sticky="after");break}if(he&&(I=he),s>0&&!T(!K))break}var me=mr(e,r,p,v,!0);return A(p,me)&&(me.hitSide=!0),me}function jl(e,r,s,a){var d=e.doc,p=r.left,v;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Xi(e.display),3);v=(s>0?r.bottom:r.top)+s*y}else a=="line"&&(v=s>0?r.bottom+3:r.top-3);for(var C;C=W(e,p,v),!!C.outside;){if(s<0?v<=0:v>=d.height){C.hitSide=!0;break}v+=s*5}return C}var St=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new rt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};St.prototype.init=function(e){var r=this,s=this,a=s.cm,d=s.div=e.lineDiv;d.contentEditable=!0,d0(d,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function p(m){for(var y=m.target;y;y=y.parentNode){if(y==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Ve(d,"paste",function(m){!p(m)||Jt(a,m)||du(m,a)||S<=11&&setTimeout(qt(a,function(){return r.updateFromDOM()}),20)}),Ve(d,"compositionstart",function(m){r.composing={data:m.data,done:!1}}),Ve(d,"compositionupdate",function(m){r.composing||(r.composing={data:m.data,done:!1})}),Ve(d,"compositionend",function(m){r.composing&&(m.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ve(d,"touchstart",function(){return s.forceCompositionEnd()}),Ve(d,"input",function(){r.composing||r.readFromDOMSoon()});function v(m){if(!(!p(m)||Jt(a,m))){if(a.somethingSelected())Mn({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=fu(a);Mn({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,st),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=Sn.text.join(`
|
|
2906
2907
|
`);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var T=f0(),I=T.firstChild;a.display.lineSpace.insertBefore(T,a.display.lineSpace.firstChild),I.value=Sn.text.join(`
|
|
2907
|
-
`);var
|
|
2908
|
-
`),yt(d))}else return;v.type=="cut"&&(a.state.cutIncoming=+new Date)}}
|
|
2908
|
+
`);var V=Ae();yt(I),setTimeout(function(){a.display.lineSpace.removeChild(T),V.focus(),V==d&&s.showPrimarySelection()},50)}}Ve(d,"copy",v),Ve(d,"cut",v)},St.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var e=cs(this.cm,!1);return e.focus=Ae()==this.div,e},St.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),d=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||d.line<r.display.viewFrom){e.removeAllRanges();return}var p=Aa(r,e.anchorNode,e.anchorOffset),v=Aa(r,e.focusNode,e.focusOffset);if(!(p&&!p.bad&&v&&!v.bad&&x(Ke(p,v),a)==0&&x(ce(p,v),d)==0)){var m=r.display.view,y=a.line>=r.display.viewFrom&&Es(r,a)||{node:m[0].measure.map[2],offset:0},C=d.line<r.display.viewTo&&Es(r,d);if(!C){var T=m[m.length-1].measure,I=T.maps?T.maps[T.maps.length-1]:T.map;C={node:I[I.length-1],offset:I[I.length-2]-I[I.length-3]}}if(!y||!C){e.removeAllRanges();return}var V=e.rangeCount&&e.getRangeAt(0),H;try{H=X(y.node,y.offset,C.offset,C.node)}catch{}H&&(!c&&r.state.focused?(e.collapse(y.node,y.offset),H.collapsed||(e.removeAllRanges(),e.addRange(H))):(e.removeAllRanges(),e.addRange(H)),V&&e.anchorNode==null?e.addRange(V):c&&this.startGracePeriod()),this.rememberSelection()}},St.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},St.prototype.showMultipleSelections=function(e){$(this.cm.display.cursorDiv,e.cursors),$(this.cm.display.selectionDiv,e.selection)},St.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},St.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return ue(this.div,r)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ae()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Or(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},St.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(Ie&&B&&this.cm.display.gutterSpecs.length&&Ia(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Aa(r,e.anchorNode,e.anchorOffset),a=Aa(r,e.focusNode,e.focusOffset);s&&a&&Or(r,function(){br(r.doc,ao(s,a),st),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},St.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,s=e.doc.sel.primary(),a=s.from(),d=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ae(a.line-1,ke(e.doc,a.line-1).length)),d.ch==ke(e.doc,d.line).text.length&&d.line<e.lastLine()&&(d=ae(d.line+1,0)),a.line<r.viewFrom||d.line>r.viewTo-1)return!1;var p,v,m;a.line==r.viewFrom||(p=ri(e,a.line))==0?(v=zt(r.view[0].line),m=r.view[0].node):(v=zt(r.view[p].line),m=r.view[p-1].node.nextSibling);var y=ri(e,d.line),C,T;if(y==r.view.length-1?(C=r.viewTo-1,T=r.lineDiv.lastChild):(C=zt(r.view[y+1].line)-1,T=r.view[y+1].node.previousSibling),!m)return!1;for(var I=e.doc.splitLines(Kl(e,m,T,v,C)),V=dn(e.doc,ae(v,0),ae(C,ke(e.doc,C).text.length));I.length>1&&V.length>1;)if(Qe(I)==Qe(V))I.pop(),V.pop(),C--;else if(I[0]==V[0])I.shift(),V.shift(),v++;else break;for(var H=0,K=0,ne=I[0],he=V[0],me=Math.min(ne.length,he.length);H<me&&ne.charCodeAt(H)==he.charCodeAt(H);)++H;for(var xe=Qe(I),ye=Qe(V),Se=Math.min(xe.length-(I.length==1?H:0),ye.length-(V.length==1?H:0));K<Se&&xe.charCodeAt(xe.length-K-1)==ye.charCodeAt(ye.length-K-1);)++K;if(I.length==1&&V.length==1&&v==a.line)for(;H&&H>a.ch&&xe.charCodeAt(xe.length-K-1)==ye.charCodeAt(ye.length-K-1);)H--,K++;I[I.length-1]=xe.slice(0,xe.length-K).replace(/^\u200b+/,""),I[0]=I[0].slice(H).replace(/\u200b+$/,"");var He=ae(v,H),Pe=ae(C,V.length?Qe(V).length-K:0);if(I.length>1||I[0]||x(He,Pe))return xa(e.doc,I,He,Pe,"+input"),!0},St.prototype.ensurePolled=function(){this.forceCompositionEnd()},St.prototype.reset=function(){this.forceCompositionEnd()},St.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},St.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},St.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return ot(e.cm)})},St.prototype.setUneditable=function(e){e.contentEditable="false"},St.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||qt(this.cm,ql)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},St.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},St.prototype.onContextMenu=function(){},St.prototype.resetPosition=function(){},St.prototype.needsContentAttribute=!0;function Es(e,r){var s=N1(e,r.line);if(!s||s.hidden)return null;var a=ke(e.doc,r.line),d=mc(s,a,r.line),p=Dr(a,e.doc.direction),v="left";if(p){var m=Wt(p,r.ch);v=m%2?"right":"left"}var y=ml(d.map,r.ch,v);return y.offset=y.collapse=="right"?y.end:y.start,y}function Ia(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Ze(e,r){return r&&(e.bad=!0),e}function Kl(e,r,s,a,d){var p="",v=!1,m=e.doc.lineSeparator(),y=!1;function C(H){return function(K){return K.id==H}}function T(){v&&(p+=m,y&&(p+=m),v=y=!1)}function I(H){H&&(T(),p+=H)}function V(H){if(H.nodeType==1){var K=H.getAttribute("cm-text");if(K){I(K);return}var ne=H.getAttribute("cm-marker"),he;if(ne){var me=e.findMarks(ae(a,0),ae(d+1,0),C(+ne));me.length&&(he=me[0].find(0))&&I(dn(e.doc,he.from,he.to).join(m));return}if(H.getAttribute("contenteditable")=="false")return;var xe=/^(pre|div|p|li|table|br)$/i.test(H.nodeName);if(!/^br$/i.test(H.nodeName)&&H.textContent.length==0)return;xe&&T();for(var ye=0;ye<H.childNodes.length;ye++)V(H.childNodes[ye]);/^(pre|p)$/i.test(H.nodeName)&&(y=!0),xe&&(v=!0)}else H.nodeType==3&&I(H.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;V(r),r!=s;)r=r.nextSibling,y=!1;return p}function Aa(e,r,s){var a;if(r==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Ze(e.clipPos(ae(e.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var d=0;d<e.display.view.length;d++){var p=e.display.view[d];if(p.node==a)return Vo(p,r,s)}}function Vo(e,r,s){var a=e.text.firstChild,d=!1;if(!r||!ue(a,r))return Ze(ae(zt(e.line),0),!0);if(r==a&&(d=!0,r=a.childNodes[s],s=0,!r)){var p=e.rest?Qe(e.rest):e.line;return Ze(ae(zt(p),p.text.length),d)}var v=r.nodeType==3?r:null,m=r;for(!v&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(v=r.firstChild,s&&(s=v.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function T(he,me,xe){for(var ye=-1;ye<(C?C.length:0);ye++)for(var Se=ye<0?y.map:C[ye],He=0;He<Se.length;He+=3){var Pe=Se[He+2];if(Pe==he||Pe==me){var ut=zt(ye<0?e.line:e.rest[ye]),It=Se[He]+xe;return(xe<0||Pe!=he)&&(It=Se[He+(xe?1:0)]),ae(ut,It)}}}var I=T(v,m,s);if(I)return Ze(I,d);for(var V=m.nextSibling,H=v?v.nodeValue.length-s:0;V;V=V.nextSibling){if(I=T(V,V.firstChild,0),I)return Ze(ae(I.line,I.ch-H),d);H+=V.textContent.length}for(var K=m.previousSibling,ne=s;K;K=K.previousSibling){if(I=T(K,K.firstChild,-1),I)return Ze(ae(I.line,I.ch+ne),d);ne+=K.textContent.length}}var Yt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new rt,this.hasSelection=!1,this.composing=null};Yt.prototype.init=function(e){var r=this,s=this,a=this.cm;this.createField(e);var d=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Te&&(d.style.width="0px"),Ve(d,"input",function(){z&&S>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Ve(d,"paste",function(v){Jt(a,v)||du(v,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function p(v){if(!Jt(a,v)){if(a.somethingSelected())Mn({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=fu(a);Mn({lineWise:!0,text:m.text}),v.type=="cut"?a.setSelections(m.ranges,null,st):(s.prevInput="",d.value=m.text.join(`
|
|
2909
|
+
`),yt(d))}else return;v.type=="cut"&&(a.state.cutIncoming=+new Date)}}Ve(d,"cut",p),Ve(d,"copy",p),Ve(e.scroller,"paste",function(v){if(!(Ci(e,v)||Jt(a,v))){if(!d.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=v.clipboardData,d.dispatchEvent(m)}}),Ve(e.lineSpace,"selectstart",function(v){Ci(e,v)||vr(v)}),Ve(d,"compositionstart",function(){var v=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:v,range:a.markText(v,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ve(d,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Yt.prototype.createField=function(e){this.wrapper=f0(),this.textarea=this.wrapper.firstChild},Yt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Yt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,a=cs(e);if(e.options.moveInputWithCursor){var d=Vn(e,s.sel.primary().head,"div"),p=r.wrapper.getBoundingClientRect(),v=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,d.top+v.top-p.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,d.left+v.left-p.left))}return a},Yt.prototype.showSelection=function(e){var r=this.cm,s=r.display;$(s.cursorDiv,e.cursors),$(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Yt.prototype.reset=function(e){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&&yt(this.textarea),z&&S>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",z&&S>=9&&(this.hasSelection=null))}},Yt.prototype.getField=function(){return this.textarea},Yt.prototype.supportsTouch=function(){return!1},Yt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!be||Ae()!=this.textarea))try{this.textarea.focus()}catch{}},Yt.prototype.blur=function(){this.textarea.blur()},Yt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yt.prototype.receivedFocus=function(){this.slowPoll()},Yt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Yt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Yt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||nl(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var d=s.value;if(d==a&&!r.somethingSelected())return!1;if(z&&S>=9&&this.hasSelection===d||ve&&/[\uf700-\uf7ff]/.test(d))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var p=d.charCodeAt(0);if(p==8203&&!a&&(a=""),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var v=0,m=Math.min(a.length,d.length);v<m&&a.charCodeAt(v)==d.charCodeAt(v);)++v;return Or(r,function(){ql(r,d.slice(v),a.length-v,null,e.composing?"*compose":null),d.length>1e3||d.indexOf(`
|
|
2909
2910
|
`)>-1?s.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yt.prototype.onKeyPress=function(){z&&S>=9&&(this.hasSelection=null),this.fastPoll()},Yt.prototype.onContextMenu=function(e){var r=this,s=r.cm,a=s.display,d=r.textarea;r.contextMenuPending&&r.contextMenuPending();var p=ti(s,e),v=a.scroller.scrollTop;if(!p||R)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(p)==-1&&qt(s,br)(s.doc,ao(p),st);var y=d.style.cssText,C=r.wrapper.style.cssText,T=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
2910
2911
|
top: `+(e.clientY-T.top-5)+"px; left: "+(e.clientX-T.left-5)+`px;
|
|
2911
2912
|
z-index: 1000; background: `+(z?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
2912
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var I;
|
|
2913
|
-
`,
|
|
2913
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var I;k&&(I=window.scrollY),a.input.focus(),k&&window.scrollTo(null,I),a.input.reset(),s.somethingSelected()||(d.value=r.prevInput=" "),r.contextMenuPending=H,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function V(){if(d.selectionStart!=null){var ne=s.somethingSelected(),he=""+(ne?d.value:"");d.value="⇚",d.value=he,r.prevInput=ne?"":"",d.selectionStart=1,d.selectionEnd=he.length,a.selForContextMenu=s.doc.sel}}function H(){if(r.contextMenuPending==H&&(r.contextMenuPending=!1,r.wrapper.style.cssText=C,d.style.cssText=y,z&&S<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=v),d.selectionStart!=null)){(!z||z&&S<9)&&V();var ne=0,he=function(){a.selForContextMenu==s.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&r.prevInput==""?qt(s,Fc)(s):ne++<10?a.detectingSelectAll=setTimeout(he,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(he,200)}}if(z&&S>=9&&V(),Ye){wo(e);var K=function(){Sr(window,"mouseup",K),setTimeout(H,20)};Ve(window,"mouseup",K)}else setTimeout(H,50)},Yt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Yt.prototype.setUneditable=function(){},Yt.prototype.needsContentAttribute=!1;function hu(e,r){if(r=r?Tt(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=Ae();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var d;if(e.form&&(Ve(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var p=e.form;d=p.submit;try{var v=p.submit=function(){a(),p.submit=d,p.submit(),p.submit=v}}catch{}}r.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Sr(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},r);return m}function h0(e){e.off=Sr,e.on=Ve,e.wheelEventPixels=af,e.Doc=Nr,e.splitLines=zo,e.countColumn=xt,e.findColumn=Zt,e.isWordChar=it,e.Pass=Ge,e.signal=qe,e.Line=_r,e.changeEnd=so,e.scrollbarModel=Sl,e.Pos=ae,e.cmpPos=x,e.modes=Cn,e.mimeModes=un,e.resolveMode=Lo,e.getMode=oa,e.modeExtensions=Nn,e.extendMode=Rn,e.copyState=cn,e.startState=Qa,e.innerMode=Ja,e.commands=Fo,e.keyMap=Li,e.keyName=nu,e.isModifierKey=Fl,e.lookupKey=Si,e.normalizeKeyMap=hf,e.StringStream=Bt,e.SharedTextMarker=Sa,e.TextMarker=co,e.LineWidget=ws,e.e_preventDefault=vr,e.e_stopPropagation=ia,e.e_stop=wo,e.addClass=et,e.contains=ue,e.rmClass=le,e.keyNames=ho}Gl(Dt),Mi(Dt);var Hr="iter insert remove copy getEditor constructor".split(" ");for(var Yl in Nr.prototype)Nr.prototype.hasOwnProperty(Yl)&&ze(Hr,Yl)<0&&(Dt.prototype[Yl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Nr.prototype[Yl]));return Dn(Nr),Dt.inputStyles={textarea:Yt,contenteditable:St},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),ol.apply(this,arguments)},Dt.defineMIME=mi,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,r){Dt.prototype[e]=r},Dt.defineDocExtension=function(e,r){Nr.prototype[e]=r},Dt.fromTextArea=hu,h0(Dt),Dt.version="5.62.3",Dt})})(e4);var ra=e4.exports;const Lu=h6(ra),CC=`.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}
|
|
2914
|
+
`,wC=fe`
|
|
2914
2915
|
.cm-s-skedulo .cm-header {
|
|
2915
2916
|
color: blue;
|
|
2916
2917
|
}
|
|
@@ -2990,12 +2991,12 @@ b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.
|
|
|
2990
2991
|
.cm-invalidchar {
|
|
2991
2992
|
color: #f00;
|
|
2992
2993
|
}
|
|
2993
|
-
`;(function(o,t){(function(n){n(ra)})(function(n){n.overlayMode=function(l,c,g){return{startState:function(){return{base:n.startState(l),overlay:n.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(h){return{base:n.copyState(l,h.base),overlay:n.copyState(c,h.overlay),basePos:h.basePos,baseCur:null,overlayPos:h.overlayPos,overlayCur:null}},token:function(h,x){return(h!=x.streamSeen||Math.min(x.basePos,x.overlayPos)<h.start)&&(x.streamSeen=h,x.basePos=x.overlayPos=h.start),h.start==x.basePos&&(x.baseCur=l.token(h,x.base),x.basePos=h.pos),h.start==x.overlayPos&&(h.pos=h.start,x.overlayCur=c.token(h,x.overlay),x.overlayPos=h.pos),h.pos=Math.min(x.basePos,x.overlayPos),x.overlayCur==null?x.baseCur:x.baseCur!=null&&x.overlay.combineTokens||g&&x.overlay.combineTokens==null?x.baseCur+" "+x.overlayCur:x.overlayCur},indent:l.indent&&function(h,x,z){return l.indent(h.base,x,z)},electricChars:l.electricChars,innerMode:function(h){return{state:h.base,mode:l}},blankLine:function(h){var x,z;return l.blankLine&&(x=l.blankLine(h.base)),c.blankLine&&(z=c.blankLine(h.overlay)),z==null?x:g&&x!=null?x+" "+z:z}}}})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("jinja2",function(){var l=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,h=["true","false"],x=/^(\d[+\-\*\/])?\d+(\.\d+)?/;l=new RegExp("(("+l.join(")|(")+"))\\b"),h=new RegExp("(("+h.join(")|(")+"))\\b");function z(S,E){var D=S.peek();if(E.incomment)return S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(E.intag){if(E.operator){if(E.operator=!1,S.match(h))return"atom";if(S.match(x))return"number"}if(E.sign){if(E.sign=!1,S.match(h))return"atom";if(S.match(x))return"number"}if(E.instring)return D==E.instring&&(E.instring=!1),S.next(),"string";if(D=="'"||D=='"')return E.instring=D,S.next(),"string";if(S.match(E.intag+"}")||S.eat("-")&&S.match(E.intag+"}"))return E.intag=!1,"tag";if(S.match(c))return E.operator=!0,"operator";if(S.match(g))E.sign=!0;else if(S.eat(" ")||S.sol()){if(S.match(l))return"keyword";if(S.match(h))return"atom";if(S.match(x))return"number";S.sol()&&S.next()}else S.next();return"variable"}else if(S.eat("{")){if(S.eat("#"))return E.incomment=!0,S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(D=S.eat(/\{|%/))return E.intag=D,D=="{"&&(E.intag="}"),S.eat("-"),"tag"}S.next()}return{startState:function(){return{tokenize:z}},token:function(S,E){return E.tokenize(S,E)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var wC={exports:{}};(function(o,t){(function(n){n(ra)})(function(n){var l={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(g,h){var x=g.indentUnit,z={},S=h.htmlMode?l:c;for(var E in S)z[E]=S[E];for(var E in h)z[E]=h[E];var D,B;function R(O,k){function X(et){return k.tokenize=et,et(O,k)}var ue=O.next();if(ue=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?X(ge("atom","]]>")):null:O.match("--")?X(ge("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),X(Te(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),k.tokenize=ge("meta","?>"),"meta"):(D=O.eat("/")?"closeTag":"openTag",k.tokenize=J,"tag bracket");if(ue=="&"){var Ae;return O.eat("#")?O.eat("x")?Ae=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),Ae?"atom":"error"}else return O.eatWhile(/[^&<]/),null}R.isInText=!0;function J(O,k){var X=O.next();if(X==">"||X=="/"&&O.eat(">"))return k.tokenize=R,D=X==">"?"endTag":"selfcloseTag","tag bracket";if(X=="=")return D="equals",null;if(X=="<"){k.tokenize=R,k.state=Oe,k.tagName=k.tagStart=null;var ue=k.tokenize(O,k);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(X)?(k.tokenize=pe(X),k.stringStartCol=O.column(),k.tokenize(O,k)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pe(O){var k=function(X,ue){for(;!X.eol();)if(X.next()==O){ue.tokenize=J;break}return"string"};return k.isInAttribute=!0,k}function ge(O,k){return function(X,ue){for(;!X.eol();){if(X.match(k)){ue.tokenize=R;break}X.next()}return O}}function Te(O){return function(k,X){for(var ue;(ue=k.next())!=null;){if(ue=="<")return X.tokenize=Te(O+1),X.tokenize(k,X);if(ue==">")if(O==1){X.tokenize=R;break}else return X.tokenize=Te(O-1),X.tokenize(k,X)}return"meta"}}function Ie(O,k,X){this.prev=O.context,this.tagName=k||"",this.indent=O.indented,this.startOfLine=X,(z.doNotIndent.hasOwnProperty(k)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function be(O){O.context&&(O.context=O.context.prev)}function ve(O,k){for(var X;;){if(!O.context||(X=O.context.tagName,!z.contextGrabbers.hasOwnProperty(X)||!z.contextGrabbers[X].hasOwnProperty(k)))return;be(O)}}function Oe(O,k,X){return O=="openTag"?(X.tagStart=k.column(),$e):O=="closeTag"?De:Oe}function $e(O,k,X){return O=="word"?(X.tagName=k.current(),B="tag",Ce):z.allowMissingTagName&&O=="endTag"?(B="tag bracket",Ce(O,k,X)):(B="error",$e)}function De(O,k,X){if(O=="word"){var ue=k.current();return X.context&&X.context.tagName!=ue&&z.implicitlyClosed.hasOwnProperty(X.context.tagName)&&be(X),X.context&&X.context.tagName==ue||z.matchClosing===!1?(B="tag",je):(B="tag error",Ye)}else return z.allowMissingTagName&&O=="endTag"?(B="tag bracket",je(O,k,X)):(B="error",Ye)}function je(O,k,X){return O!="endTag"?(B="error",je):(be(X),Oe)}function Ye(O,k,X){return B="error",je(O,k,X)}function Ce(O,k,X){if(O=="word")return B="attribute",le;if(O=="endTag"||O=="selfcloseTag"){var ue=X.tagName,Ae=X.tagStart;return X.tagName=X.tagStart=null,O=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(ue)?ve(X,ue):(ve(X,ue),X.context=new Ie(X,ue,Ae==X.indented)),Oe}return B="error",Ce}function le(O,k,X){return O=="equals"?Q:(z.allowMissing||(B="error"),Ce(O,k,X))}function Q(O,k,X){return O=="string"?$:O=="word"&&z.allowUnquoted?(B="string",Ce):(B="error",Ce(O,k,X))}function $(O,k,X){return O=="string"?$:Ce(O,k,X)}return{startState:function(O){var k={tokenize:R,state:Oe,indented:O||0,tagName:null,tagStart:null,context:null};return O!=null&&(k.baseIndent=O),k},token:function(O,k){if(!k.tagName&&O.sol()&&(k.indented=O.indentation()),O.eatSpace())return null;D=null;var X=k.tokenize(O,k);return(X||D)&&X!="comment"&&(B=null,k.state=k.state(D||X,O,k),B&&(X=B=="error"?X+" error":B)),X},indent:function(O,k,X){var ue=O.context;if(O.tokenize.isInAttribute)return O.tagStart==O.indented?O.stringStartCol+1:O.indented+x;if(ue&&ue.noIndent)return n.Pass;if(O.tokenize!=J&&O.tokenize!=R)return X?X.match(/^(\s*)/)[0].length:0;if(O.tagName)return z.multilineTagIndentPastTag!==!1?O.tagStart+O.tagName.length+2:O.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(k))return 0;var Ae=k&&/^<(\/)?([\w_:\.-]*)/.exec(k);if(Ae&&Ae[1])for(;ue;)if(ue.tagName==Ae[2]){ue=ue.prev;break}else if(z.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Ae)for(;ue;){var et=z.contextGrabbers[ue.tagName];if(et&&et.hasOwnProperty(Ae[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+x:O.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(O){O.state==Q&&(O.state=Ce)},xmlCurrentTag:function(O){return O.tagName?{name:O.tagName,close:O.type=="closeTag"}:null},xmlCurrentContext:function(O){for(var k=[],X=O.context;X;X=X.prev)k.push(X.tagName);return k.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var xC=wC.exports,zC={exports:{}};(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("javascript",function(l,c){var g=l.indentUnit,h=c.statementIndent,x=c.jsonld,z=c.json||x,S=c.trackScope!==!1,E=c.typescript,D=c.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function w(Mr){return{type:Mr,style:"keyword"}}var A=w("keyword a"),te=w("keyword b"),ce=w("keyword c"),Ke=w("keyword d"),gt=w("operator"),we={type:"atom",style:"atom"};return{if:w("if"),while:A,with:A,else:te,do:te,try:te,finally:te,return:Ke,break:Ke,continue:Ke,new:w("new"),delete:ce,void:ce,throw:ce,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:gt,typeof:gt,instanceof:gt,true:we,false:we,null:we,undefined:we,NaN:we,Infinity:we,this:w("this"),class:w("class"),super:w("atom"),yield:ce,export:w("export"),import:w("import"),extends:ce,await:ce}}(),R=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function pe(w){for(var A=!1,te,ce=!1;(te=w.next())!=null;){if(!A){if(te=="/"&&!ce)return;te=="["?ce=!0:ce&&te=="]"&&(ce=!1)}A=!A&&te=="\\"}}var ge,Te;function Ie(w,A,te){return ge=w,Te=te,A}function be(w,A){var te=w.next();if(te=='"'||te=="'")return A.tokenize=ve(te),A.tokenize(w,A);if(te=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(te=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(te))return Ie(te);if(te=="="&&w.eat(">"))return Ie("=>","operator");if(te=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(te))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(te=="/")return w.eat("*")?(A.tokenize=Oe,Oe(w,A)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ae(w,A,1)?(pe(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(te=="`")return A.tokenize=$e,$e(w,A);if(te=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(te=="#"&&w.eatWhile(D))return Ie("variable","property");if(te=="<"&&w.match("!--")||te=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(R.test(te))return(te!=">"||!A.lexical||A.lexical.type!=">")&&(w.eat("=")?(te=="!"||te=="=")&&w.eat("="):/[<>*+\-|&?]/.test(te)&&(w.eat(te),te==">"&&w.eat(te))),te=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(D.test(te)){w.eatWhile(D);var ce=w.current();if(A.lastType!="."){if(B.propertyIsEnumerable(ce)){var Ke=B[ce];return Ie(Ke.type,Ke.style,ce)}if(ce=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ce)}return Ie("variable","variable",ce)}}function ve(w){return function(A,te){var ce=!1,Ke;if(x&&A.peek()=="@"&&A.match(J))return te.tokenize=be,Ie("jsonld-keyword","meta");for(;(Ke=A.next())!=null&&!(Ke==w&&!ce);)ce=!ce&&Ke=="\\";return ce||(te.tokenize=be),Ie("string","string")}}function Oe(w,A){for(var te=!1,ce;ce=w.next();){if(ce=="/"&&te){A.tokenize=be;break}te=ce=="*"}return Ie("comment","comment")}function $e(w,A){for(var te=!1,ce;(ce=w.next())!=null;){if(!te&&(ce=="`"||ce=="$"&&w.eat("{"))){A.tokenize=be;break}te=!te&&ce=="\\"}return Ie("quasi","string-2",w.current())}var De="([{}])";function je(w,A){A.fatArrowAt&&(A.fatArrowAt=null);var te=w.string.indexOf("=>",w.start);if(!(te<0)){if(E){var ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,te));ce&&(te=ce.index)}for(var Ke=0,gt=!1,we=te-1;we>=0;--we){var Mr=w.string.charAt(we),rn=De.indexOf(Mr);if(rn>=0&&rn<3){if(!Ke){++we;break}if(--Ke==0){Mr=="("&&(gt=!0);break}}else if(rn>=3&&rn<6)++Ke;else if(D.test(Mr))gt=!0;else if(/["'\/`]/.test(Mr))for(;;--we){if(we==0)return;var yi=w.string.charAt(we-1);if(yi==Mr&&w.string.charAt(we-2)!="\\"){we--;break}}else if(gt&&!Ke){++we;break}}gt&&!Ke&&(A.fatArrowAt=we)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ce(w,A,te,ce,Ke,gt){this.indented=w,this.column=A,this.type=te,this.prev=Ke,this.info=gt,ce!=null&&(this.align=ce)}function le(w,A){if(!S)return!1;for(var te=w.localVars;te;te=te.next)if(te.name==A)return!0;for(var ce=w.context;ce;ce=ce.prev)for(var te=ce.vars;te;te=te.next)if(te.name==A)return!0}function Q(w,A,te,ce,Ke){var gt=w.cc;for($.state=w,$.stream=Ke,$.marked=null,$.cc=gt,$.style=A,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var we=gt.length?gt.pop():z?Ue:st;if(we(te,ce)){for(;gt.length&>[gt.length-1].lex;)gt.pop()();return $.marked?$.marked:te=="variable"&&le(w,ce)?"variable-2":A}}}var $={state:null,column:null,marked:null,cc:null};function O(){for(var w=arguments.length-1;w>=0;w--)$.cc.push(arguments[w])}function k(){return O.apply(null,arguments),!0}function X(w,A){for(var te=A;te;te=te.next)if(te.name==w)return!0;return!1}function ue(w){var A=$.state;if($.marked="def",!!S){if(A.context){if(A.lexical.info=="var"&&A.context&&A.context.block){var te=Ae(w,A.context);if(te!=null){A.context=te;return}}else if(!X(w,A.localVars)){A.localVars=new yt(w,A.localVars);return}}c.globalVars&&!X(w,A.globalVars)&&(A.globalVars=new yt(w,A.globalVars))}}function Ae(w,A){if(A)if(A.block){var te=Ae(w,A.prev);return te?te==A.prev?A:new pt(te,A.vars,!0):null}else return X(w,A.vars)?A:new pt(A.prev,new yt(w,A.vars),!1);else return null}function et(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function pt(w,A,te){this.prev=w,this.vars=A,this.block=te}function yt(w,A){this.name=w,this.next=A}var or=new yt("this",new yt("arguments",null));function _t(){$.state.context=new pt($.state.context,$.state.localVars,!1),$.state.localVars=or}function xt(){$.state.context=new pt($.state.context,$.state.localVars,!0),$.state.localVars=null}function rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}rt.lex=!0;function ze(w,A){var te=function(){var ce=$.state,Ke=ce.indented;if(ce.lexical.type=="stat")Ke=ce.lexical.indented;else for(var gt=ce.lexical;gt&>.type==")"&>.align;gt=gt.prev)Ke=gt.indented;ce.lexical=new Ce(Ke,$.stream.column(),w,null,ce.lexical,A)};return te.lex=!0,te}function Ne(){var w=$.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Ne.lex=!0;function Ge(w){function A(te){return te==w?k():w==";"||te=="}"||te==")"||te=="]"?O():k(A)}return A}function st(w,A){return w=="var"?k(ze("vardef",A),Ka,Ge(";"),Ne):w=="keyword a"?k(ze("form"),Ur,st,Ne):w=="keyword b"?k(ze("form"),st,Ne):w=="keyword d"?$.stream.match(/^\s*$/,!1)?k():k(ze("stat"),Qe,Ge(";"),Ne):w=="debugger"?k(Ge(";")):w=="{"?k(ze("}"),xt,Dr,Ne,rt):w==";"?k():w=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Ne&&$.state.cc.pop()(),k(ze("form"),Ur,st,Ne,nl)):w=="function"?k(Cn):w=="for"?k(ze("form"),xt,il,st,rt,Ne):w=="class"||E&&A=="interface"?($.marked="keyword",k(ze("form",w=="class"?w:A),oa,Ne)):w=="variable"?E&&A=="declare"?($.marked="keyword",k(st)):E&&(A=="module"||A=="enum"||A=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",A=="enum"?k(Hn):A=="type"?k(ol,Ge("operator"),qe,Ge(";")):k(ze("form"),qr,Ge("{"),ze("}"),Dr,Ne,Ne)):E&&A=="namespace"?($.marked="keyword",k(ze("form"),Ue,st,Ne)):E&&A=="abstract"?($.marked="keyword",k(st)):k(ze("stat"),tt):w=="switch"?k(ze("form"),Ur,Ge("{"),ze("}","switch"),xt,Dr,Ne,Ne,rt):w=="case"?k(Ue,Ge(":")):w=="default"?k(Ge(":")):w=="catch"?k(ze("form"),_t,lt,st,Ne,rt):w=="export"?k(ze("stat"),Xa,Ne):w=="import"?k(ze("stat"),Bt,Ne):w=="async"?k(st):A=="@"?k(Ue,st):O(ze("stat"),Ue,Ge(";"),Ne)}function lt(w){if(w=="(")return k(mi,Ge(")"))}function Ue(w,A){return tr(w,A,!1)}function Zt(w,A){return tr(w,A,!0)}function Ur(w){return w!="("?O():k(ze(")"),Qe,Ge(")"),Ne)}function tr(w,A,te){if($.state.fatArrowAt==$.stream.start){var ce=te?it:ar;if(w=="(")return k(_t,ze(")"),Vt(mi,")"),Ne,Ge("=>"),ce,rt);if(w=="variable")return O(_t,qr,Ge("=>"),ce,rt)}var Ke=te?Et:bt;return Ye.hasOwnProperty(w)?k(Ke):w=="function"?k(Cn,Ke):w=="class"||E&&A=="interface"?($.marked="keyword",k(ze("form"),Lo,Ne)):w=="keyword c"||w=="async"?k(te?Zt:Ue):w=="("?k(ze(")"),Qe,Ge(")"),Ne,Ke):w=="operator"||w=="spread"?k(te?Zt:Ue):w=="["?k(ze("]"),zt,Ne,Ke):w=="{"?bi(Lr,"}",null,Ke):w=="quasi"?O(Pr,Ke):w=="new"?k(U(te)):k()}function Qe(w){return w.match(/[;\}\)\],]/)?O():O(Ue)}function bt(w,A){return w==","?k(Qe):Et(w,A,!1)}function Et(w,A,te){var ce=te==!1?bt:Et,Ke=te==!1?Ue:Zt;if(w=="=>")return k(_t,te?it:ar,rt);if(w=="operator")return/\+\+|--/.test(A)||E&&A=="!"?k(ce):E&&A=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(ze(">"),Vt(qe,">"),Ne,ce):A=="?"?k(Ue,Ge(":"),Ke):k(Ke);if(w=="quasi")return O(Pr,ce);if(w!=";"){if(w=="(")return bi(Zt,")","call",ce);if(w==".")return k(sr,ce);if(w=="[")return k(ze("]"),Qe,Ge("]"),Ne,ce);if(E&&A=="as")return $.marked="keyword",k(qe,ce);if(w=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),k(Ke)}}function Pr(w,A){return w!="quasi"?O():A.slice(A.length-2)!="${"?k(Pr):k(Qe,en)}function en(w){if(w=="}")return $.marked="string-2",$.state.tokenize=$e,k(Pr)}function ar(w){return je($.stream,$.state),O(w=="{"?st:Ue)}function it(w){return je($.stream,$.state),O(w=="{"?st:Zt)}function U(w){return function(A){return A=="."?k(w?Y:se):A=="variable"&&E?k(wo,w?Et:bt):O(w?Zt:Ue)}}function se(w,A){if(A=="target")return $.marked="keyword",k(bt)}function Y(w,A){if(A=="target")return $.marked="keyword",k(Et)}function tt(w){return w==":"?k(Ne,st):O(bt,Ge(";"),Ne)}function sr(w){if(w=="variable")return $.marked="property",k()}function Lr(w,A){if(w=="async")return $.marked="property",k(Lr);if(w=="variable"||$.style=="keyword"){if($.marked="property",A=="get"||A=="set")return k($n);var te;return E&&$.state.fatArrowAt==$.stream.start&&(te=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+te[0].length),k(Gr)}else{if(w=="number"||w=="string")return $.marked=x?"property":$.style+" property",k(Gr);if(w=="jsonld-keyword")return k(Gr);if(E&&et(A))return $.marked="keyword",k(Lr);if(w=="[")return k(Ue,Pn,Ge("]"),Gr);if(w=="spread")return k(Zt,Gr);if(A=="*")return $.marked="keyword",k(Lr);if(w==":")return O(Gr)}}function $n(w){return w!="variable"?O(Gr):($.marked="property",k(Cn))}function Gr(w){if(w==":")return k(Zt);if(w=="(")return O(Cn)}function Vt(w,A,te){function ce(Ke,gt){if(te?te.indexOf(Ke)>-1:Ke==","){var we=$.state.lexical;return we.info=="call"&&(we.pos=(we.pos||0)+1),k(function(Mr,rn){return Mr==A||rn==A?O():O(w)},ce)}return Ke==A||gt==A?k():te&&te.indexOf(";")>-1?O(w):k(Ge(A))}return function(Ke,gt){return Ke==A||gt==A?k():O(w,ce)}}function bi(w,A,te){for(var ce=3;ce<arguments.length;ce++)$.cc.push(arguments[ce]);return k(ze(A,te),Vt(w,A),Ne)}function Dr(w){return w=="}"?k():O(st,Dr)}function Pn(w,A){if(E){if(w==":")return k(qe);if(A=="?")return k(Pn)}}function We(w,A){if(E&&(w==":"||A=="in"))return k(qe)}function Wi(w){if(E&&w==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ue,Sr,qe):k(qe)}function Sr(w,A){if(A=="is")return $.marked="keyword",k()}function qe(w,A){if(A=="keyof"||A=="typeof"||A=="infer"||A=="readonly")return $.marked="keyword",k(A=="typeof"?Zt:qe);if(w=="variable"||A=="void")return $.marked="type",k(ln);if(A=="|"||A=="&")return k(qe);if(w=="string"||w=="number"||w=="atom")return k(ln);if(w=="[")return k(ze("]"),Vt(qe,"]",","),Ne,ln);if(w=="{")return k(ze("}"),na,Ne,ln);if(w=="(")return k(Vt(ia,")"),Jt,ln);if(w=="<")return k(Vt(qe,">"),qe);if(w=="quasi")return O(Dn,ln)}function Jt(w){if(w=="=>")return k(qe)}function na(w){return w.match(/[\}\)\]]/)?k():w==","||w==";"?k(na):O(gr,na)}function gr(w,A){if(w=="variable"||$.style=="keyword")return $.marked="property",k(gr);if(A=="?"||w=="number"||w=="string")return k(gr);if(w==":")return k(qe);if(w=="[")return k(Ge("variable"),We,Ge("]"),gr);if(w=="(")return O(un,gr);if(!w.match(/[;\}\)\],]/))return k()}function Dn(w,A){return w!="quasi"?O():A.slice(A.length-2)!="${"?k(Dn):k(qe,vr)}function vr(w){if(w=="}")return $.marked="string-2",$.state.tokenize=$e,k(Dn)}function ia(w,A){return w=="variable"&&$.stream.match(/^\s*[?:]/,!1)||A=="?"?k(ia):w==":"?k(qe):w=="spread"?k(ia):O(qe)}function ln(w,A){if(A=="<")return k(ze(">"),Vt(qe,">"),Ne,ln);if(A=="|"||w=="."||A=="&")return k(qe);if(w=="[")return k(qe,Ge("]"),ln);if(A=="extends"||A=="implements")return $.marked="keyword",k(qe);if(A=="?")return k(qe,Ge(":"),qe)}function wo(w,A){if(A=="<")return k(ze(">"),Vt(qe,">"),Ne,ln)}function Vi(){return O(qe,ja)}function ja(w,A){if(A=="=")return k(qe)}function Ka(w,A){return A=="enum"?($.marked="keyword",k(Hn)):O(qr,Pn,Xn,zo)}function qr(w,A){if(E&&et(A))return $.marked="keyword",k(qr);if(w=="variable")return ue(A),k();if(w=="spread")return k(qr);if(w=="[")return bi(xo,"]");if(w=="{")return bi(rl,"}")}function rl(w,A){return w=="variable"&&!$.stream.match(/^\s*:/,!1)?(ue(A),k(Xn)):(w=="variable"&&($.marked="property"),w=="spread"?k(qr):w=="}"?O():w=="["?k(Ue,Ge("]"),Ge(":"),rl):k(Ge(":"),qr,Xn))}function xo(){return O(qr,Xn)}function Xn(w,A){if(A=="=")return k(Zt)}function zo(w){if(w==",")return k(Ka)}function nl(w,A){if(w=="keyword b"&&A=="else")return k(ze("form","else"),st,Ne)}function il(w,A){if(A=="await")return k(il);if(w=="(")return k(ze(")"),Ya,Ne)}function Ya(w){return w=="var"?k(Ka,Zi):w=="variable"?k(Zi):O(Zi)}function Zi(w,A){return w==")"?k():w==";"?k(Zi):A=="in"||A=="of"?($.marked="keyword",k(Ue,Zi)):O(Ue,Zi)}function Cn(w,A){if(A=="*")return $.marked="keyword",k(Cn);if(w=="variable")return ue(A),k(Cn);if(w=="(")return k(_t,ze(")"),Vt(mi,")"),Ne,Wi,st,rt);if(E&&A=="<")return k(ze(">"),Vt(Vi,">"),Ne,Cn)}function un(w,A){if(A=="*")return $.marked="keyword",k(un);if(w=="variable")return ue(A),k(un);if(w=="(")return k(_t,ze(")"),Vt(mi,")"),Ne,Wi,rt);if(E&&A=="<")return k(ze(">"),Vt(Vi,">"),Ne,un)}function ol(w,A){if(w=="keyword"||w=="variable")return $.marked="type",k(ol);if(A=="<")return k(ze(">"),Vt(Vi,">"),Ne)}function mi(w,A){return A=="@"&&k(Ue,mi),w=="spread"?k(mi):E&&et(A)?($.marked="keyword",k(mi)):E&&w=="this"?k(Pn,Xn):O(qr,Pn,Xn)}function Lo(w,A){return w=="variable"?oa(w,A):Nn(w,A)}function oa(w,A){if(w=="variable")return ue(A),k(Nn)}function Nn(w,A){if(A=="<")return k(ze(">"),Vt(Vi,">"),Ne,Nn);if(A=="extends"||A=="implements"||E&&w==",")return A=="implements"&&($.marked="keyword"),k(E?qe:Ue,Nn);if(w=="{")return k(ze("}"),Rn,Ne)}function Rn(w,A){if(w=="async"||w=="variable"&&(A=="static"||A=="get"||A=="set"||E&&et(A))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",k(Rn);if(w=="variable"||$.style=="keyword")return $.marked="property",k(cn,Rn);if(w=="number"||w=="string")return k(cn,Rn);if(w=="[")return k(Ue,Pn,Ge("]"),cn,Rn);if(A=="*")return $.marked="keyword",k(Rn);if(E&&w=="(")return O(un,Rn);if(w==";"||w==",")return k(Rn);if(w=="}")return k();if(A=="@")return k(Ue,Rn)}function cn(w,A){if(A=="!"||A=="?")return k(cn);if(w==":")return k(qe,Xn);if(A=="=")return k(Zt);var te=$.state.lexical.prev,ce=te&&te.info=="interface";return O(ce?un:Cn)}function Xa(w,A){return A=="*"?($.marked="keyword",k(tn,Ge(";"))):A=="default"?($.marked="keyword",k(Ue,Ge(";"))):w=="{"?k(Vt(Ja,"}"),tn,Ge(";")):O(st)}function Ja(w,A){if(A=="as")return $.marked="keyword",k(Ge("variable"));if(w=="variable")return O(Zt,Ja)}function Bt(w){return w=="string"?k():w=="("?O(Ue):w=="."?O(bt):O(Ee,dn,tn)}function Ee(w,A){return w=="{"?bi(Ee,"}"):(w=="variable"&&ue(A),A=="*"&&($.marked="keyword"),k(Qa))}function dn(w){if(w==",")return k(Ee,dn)}function Qa(w,A){if(A=="as")return $.marked="keyword",k(Ee)}function tn(w,A){if(A=="from")return $.marked="keyword",k(Ue)}function zt(w){return w=="]"?k():O(Vt(Zt,"]"))}function Hn(){return O(ze("form"),qr,Ge("{"),ze("}"),Vt(Ui,"}"),Ne,Ne)}function Ui(){return O(qr,Xn)}function aa(w,A){return w.lastType=="operator"||w.lastType==","||R.test(A.charAt(0))||/[,.]/.test(A.charAt(0))}function ae(w,A,te){return A.tokenize==be&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(A.lastType)||A.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(te||0)))}return{startState:function(w){var A={tokenize:be,lastType:"sof",cc:[],lexical:new Ce((w||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new pt(null,null,!1),indented:w||0};return c.globalVars&&typeof c.globalVars=="object"&&(A.globalVars=c.globalVars),A},token:function(w,A){if(w.sol()&&(A.lexical.hasOwnProperty("align")||(A.lexical.align=!1),A.indented=w.indentation(),je(w,A)),A.tokenize!=Oe&&w.eatSpace())return null;var te=A.tokenize(w,A);return ge=="comment"?te:(A.lastType=ge=="operator"&&(Te=="++"||Te=="--")?"incdec":ge,Q(A,te,ge,Te,w))},indent:function(w,A){if(w.tokenize==Oe||w.tokenize==$e)return n.Pass;if(w.tokenize!=be)return 0;var te=A&&A.charAt(0),ce=w.lexical,Ke;if(!/^\s*else\b/.test(A))for(var gt=w.cc.length-1;gt>=0;--gt){var we=w.cc[gt];if(we==Ne)ce=ce.prev;else if(we!=nl&&we!=rt)break}for(;(ce.type=="stat"||ce.type=="form")&&(te=="}"||(Ke=w.cc[w.cc.length-1])&&(Ke==bt||Ke==Et)&&!/^[,\.=+\-*:?[\(]/.test(A));)ce=ce.prev;h&&ce.type==")"&&ce.prev.type=="stat"&&(ce=ce.prev);var Mr=ce.type,rn=te==Mr;return Mr=="vardef"?ce.indented+(w.lastType=="operator"||w.lastType==","?ce.info.length+1:0):Mr=="form"&&te=="{"?ce.indented:Mr=="form"?ce.indented+g:Mr=="stat"?ce.indented+(aa(w,A)?h||g:0):ce.info=="switch"&&!rn&&c.doubleIndentSwitch!=!1?ce.indented+(/^(?:case|default)\b/.test(A)?g:2*g):ce.align?ce.column+(rn?0:1):ce.indented+(rn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",blockCommentContinue:z?null:" * ",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:x,jsonMode:z,expressionAllowed:ae,skipExpression:function(w){Q(w,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var LC=zC.exports,k2={exports:{}},E2;function SC(){return E2||(E2=1,function(o,t){(function(n){n(ra)})(function(n){n.defineMode("css",function(Ce,le){var Q=le.inline;le.propertyKeywords||(le=n.resolveMode("text/css"));var $=Ce.indentUnit,O=le.tokenHooks,k=le.documentTypes||{},X=le.mediaTypes||{},ue=le.mediaFeatures||{},Ae=le.mediaValueKeywords||{},et=le.propertyKeywords||{},pt=le.nonStandardPropertyKeywords||{},yt=le.fontProperties||{},or=le.counterDescriptors||{},_t=le.colorKeywords||{},xt=le.valueKeywords||{},rt=le.allowNested,ze=le.lineComment,Ne=le.supportsAtComponent===!0,Ge=Ce.highlightNonStandardPropertyKeywords!==!1,st,lt;function Ue(U,se){return st=se,U}function Zt(U,se){var Y=U.next();if(O[Y]){var tt=O[Y](U,se);if(tt!==!1)return tt}if(Y=="@")return U.eatWhile(/[\w\\\-]/),Ue("def",U.current());if(Y=="="||(Y=="~"||Y=="|")&&U.eat("="))return Ue(null,"compare");if(Y=='"'||Y=="'")return se.tokenize=Ur(Y),se.tokenize(U,se);if(Y=="#")return U.eatWhile(/[\w\\\-]/),Ue("atom","hash");if(Y=="!")return U.match(/^\s*\w*/),Ue("keyword","important");if(/\d/.test(Y)||Y=="."&&U.eat(/\d/))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(Y==="-"){if(/[\d.]/.test(U.peek()))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(U.match(/^-[\w\\\-]*/))return U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?Ue("variable-2","variable-definition"):Ue("variable-2","variable");if(U.match(/^\w+-/))return Ue("meta","meta")}else return/[,+>*\/]/.test(Y)?Ue(null,"select-op"):Y=="."&&U.match(/^-?[_a-z][_a-z0-9-]*/i)?Ue("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Y)?Ue(null,Y):U.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(U.current())&&(se.tokenize=tr),Ue("variable callee","variable")):/[\w\\\-]/.test(Y)?(U.eatWhile(/[\w\\\-]/),Ue("property","word")):Ue(null,null)}function Ur(U){return function(se,Y){for(var tt=!1,sr;(sr=se.next())!=null;){if(sr==U&&!tt){U==")"&&se.backUp(1);break}tt=!tt&&sr=="\\"}return(sr==U||!tt&&U!=")")&&(Y.tokenize=null),Ue("string","string")}}function tr(U,se){return U.next(),U.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Ur(")"),Ue(null,"(")}function Qe(U,se,Y){this.type=U,this.indent=se,this.prev=Y}function bt(U,se,Y,tt){return U.context=new Qe(Y,se.indentation()+(tt===!1?0:$),U.context),Y}function Et(U){return U.context.prev&&(U.context=U.context.prev),U.context.type}function Pr(U,se,Y){return it[Y.context.type](U,se,Y)}function en(U,se,Y,tt){for(var sr=tt||1;sr>0;sr--)Y.context=Y.context.prev;return Pr(U,se,Y)}function ar(U){var se=U.current().toLowerCase();xt.hasOwnProperty(se)?lt="atom":_t.hasOwnProperty(se)?lt="keyword":lt="variable"}var it={};return it.top=function(U,se,Y){if(U=="{")return bt(Y,se,"block");if(U=="}"&&Y.context.prev)return Et(Y);if(Ne&&/@component/i.test(U))return bt(Y,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(U))return bt(Y,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(U))return bt(Y,se,"atBlock");if(/^@(font-face|counter-style)/i.test(U))return Y.stateArg=U,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(U))return"keyframes";if(U&&U.charAt(0)=="@")return bt(Y,se,"at");if(U=="hash")lt="builtin";else if(U=="word")lt="tag";else{if(U=="variable-definition")return"maybeprop";if(U=="interpolation")return bt(Y,se,"interpolation");if(U==":")return"pseudo";if(rt&&U=="(")return bt(Y,se,"parens")}return Y.context.type},it.block=function(U,se,Y){if(U=="word"){var tt=se.current().toLowerCase();return et.hasOwnProperty(tt)?(lt="property","maybeprop"):pt.hasOwnProperty(tt)?(lt=Ge?"string-2":"property","maybeprop"):rt?(lt=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(lt+=" error","maybeprop")}else return U=="meta"?"block":!rt&&(U=="hash"||U=="qualifier")?(lt="error","block"):it.top(U,se,Y)},it.maybeprop=function(U,se,Y){return U==":"?bt(Y,se,"prop"):Pr(U,se,Y)},it.prop=function(U,se,Y){if(U==";")return Et(Y);if(U=="{"&&rt)return bt(Y,se,"propBlock");if(U=="}"||U=="{")return en(U,se,Y);if(U=="(")return bt(Y,se,"parens");if(U=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))lt+=" error";else if(U=="word")ar(se);else if(U=="interpolation")return bt(Y,se,"interpolation");return"prop"},it.propBlock=function(U,se,Y){return U=="}"?Et(Y):U=="word"?(lt="property","maybeprop"):Y.context.type},it.parens=function(U,se,Y){return U=="{"||U=="}"?en(U,se,Y):U==")"?Et(Y):U=="("?bt(Y,se,"parens"):U=="interpolation"?bt(Y,se,"interpolation"):(U=="word"&&ar(se),"parens")},it.pseudo=function(U,se,Y){return U=="meta"?"pseudo":U=="word"?(lt="variable-3",Y.context.type):Pr(U,se,Y)},it.documentTypes=function(U,se,Y){return U=="word"&&k.hasOwnProperty(se.current())?(lt="tag",Y.context.type):it.atBlock(U,se,Y)},it.atBlock=function(U,se,Y){if(U=="(")return bt(Y,se,"atBlock_parens");if(U=="}"||U==";")return en(U,se,Y);if(U=="{")return Et(Y)&&bt(Y,se,rt?"block":"top");if(U=="interpolation")return bt(Y,se,"interpolation");if(U=="word"){var tt=se.current().toLowerCase();tt=="only"||tt=="not"||tt=="and"||tt=="or"?lt="keyword":X.hasOwnProperty(tt)?lt="attribute":ue.hasOwnProperty(tt)?lt="property":Ae.hasOwnProperty(tt)?lt="keyword":et.hasOwnProperty(tt)?lt="property":pt.hasOwnProperty(tt)?lt=Ge?"string-2":"property":xt.hasOwnProperty(tt)?lt="atom":_t.hasOwnProperty(tt)?lt="keyword":lt="error"}return Y.context.type},it.atComponentBlock=function(U,se,Y){return U=="}"?en(U,se,Y):U=="{"?Et(Y)&&bt(Y,se,rt?"block":"top",!1):(U=="word"&&(lt="error"),Y.context.type)},it.atBlock_parens=function(U,se,Y){return U==")"?Et(Y):U=="{"||U=="}"?en(U,se,Y,2):it.atBlock(U,se,Y)},it.restricted_atBlock_before=function(U,se,Y){return U=="{"?bt(Y,se,"restricted_atBlock"):U=="word"&&Y.stateArg=="@counter-style"?(lt="variable","restricted_atBlock_before"):Pr(U,se,Y)},it.restricted_atBlock=function(U,se,Y){return U=="}"?(Y.stateArg=null,Et(Y)):U=="word"?(Y.stateArg=="@font-face"&&!yt.hasOwnProperty(se.current().toLowerCase())||Y.stateArg=="@counter-style"&&!or.hasOwnProperty(se.current().toLowerCase())?lt="error":lt="property","maybeprop"):"restricted_atBlock"},it.keyframes=function(U,se,Y){return U=="word"?(lt="variable","keyframes"):U=="{"?bt(Y,se,"top"):Pr(U,se,Y)},it.at=function(U,se,Y){return U==";"?Et(Y):U=="{"||U=="}"?en(U,se,Y):(U=="word"?lt="tag":U=="hash"&&(lt="builtin"),"at")},it.interpolation=function(U,se,Y){return U=="}"?Et(Y):U=="{"||U==";"?en(U,se,Y):(U=="word"?lt="variable":U!="variable"&&U!="("&&U!=")"&&(lt="error"),"interpolation")},{startState:function(U){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new Qe(Q?"block":"top",U||0,null)}},token:function(U,se){if(!se.tokenize&&U.eatSpace())return null;var Y=(se.tokenize||Zt)(U,se);return Y&&typeof Y=="object"&&(st=Y[1],Y=Y[0]),lt=Y,st!="comment"&&(se.state=it[se.state](st,U,se)),lt},indent:function(U,se){var Y=U.context,tt=se&&se.charAt(0),sr=Y.indent;return Y.type=="prop"&&(tt=="}"||tt==")")&&(Y=Y.prev),Y.prev&&(tt=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")?(Y=Y.prev,sr=Y.indent):(tt==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||tt=="{"&&(Y.type=="at"||Y.type=="atBlock"))&&(sr=Math.max(0,Y.indent-$))),sr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ze,fold:"brace"}});function l(Ce){for(var le={},Q=0;Q<Ce.length;++Q)le[Ce[Q].toLowerCase()]=!0;return le}var c=["domain","regexp","url","url-prefix"],g=l(c),h=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],x=l(h),z=["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"],S=l(z),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],D=l(E),B=["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"],R=l(B),J=["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"],pe=l(J),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Te=l(ge),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],be=l(Ie),ve=["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"],Oe=l(ve),$e=["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"],De=l($e),je=c.concat(h).concat(z).concat(E).concat(B).concat(J).concat(ve).concat($e);n.registerHelper("hintWords","css",je);function Ye(Ce,le){for(var Q=!1,$;($=Ce.next())!=null;){if(Q&&$=="/"){le.tokenize=null;break}Q=$=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:g,mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},":":function(Ce){return Ce.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Ce){return Ce.match(/^[\w-]+/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Ce){return Ce.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},"@":function(Ce){return Ce.eat("{")?[null,"interpolation"]:Ce.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Ce.eatWhile(/[\w\\\-]/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:x,mediaFeatures:S,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,supportsAtComponent:!0,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css",helperType:"gss"})})}()),k2.exports}(function(o,t){(function(n){n(ra,xC,LC,SC())})(function(n){var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function c(D,B,R){var J=D.current(),pe=J.search(B);return pe>-1?D.backUp(J.length-pe):J.match(/<\/?$/)&&(D.backUp(J.length),D.match(B,!1)||D.match(J)),R}var g={};function h(D){var B=g[D];return B||(g[D]=new RegExp("\\s+"+D+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function x(D,B){var R=D.match(h(B));return R?/^\s*(.*?)\s*$/.exec(R[2])[1]:""}function z(D,B){return new RegExp((B?"^":"")+"</s*"+D+"s*>","i")}function S(D,B){for(var R in D)for(var J=B[R]||(B[R]=[]),pe=D[R],ge=pe.length-1;ge>=0;ge--)J.unshift(pe[ge])}function E(D,B){for(var R=0;R<D.length;R++){var J=D[R];if(!J[0]||J[1].test(x(B,J[0])))return J[2]}}n.defineMode("htmlmixed",function(D,B){var R=n.getMode(D,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag,allowMissingTagName:B.allowMissingTagName}),J={},pe=B&&B.tags,ge=B&&B.scriptTypes;if(S(l,J),pe&&S(pe,J),ge)for(var Te=ge.length-1;Te>=0;Te--)J.script.unshift(["type",ge[Te].matches,ge[Te].mode]);function Ie(be,ve){var Oe=R.token(be,ve.htmlState),$e=/\btag\b/.test(Oe),De;if($e&&!/[<>\s\/]/.test(be.current())&&(De=ve.htmlState.tagName&&ve.htmlState.tagName.toLowerCase())&&J.hasOwnProperty(De))ve.inTag=De+" ";else if(ve.inTag&&$e&&/>$/.test(be.current())){var je=/^([\S]+) (.*)/.exec(ve.inTag);ve.inTag=null;var Ye=be.current()==">"&&E(J[je[1]],je[2]),Ce=n.getMode(D,Ye),le=z(je[1],!0),Q=z(je[1],!1);ve.token=function($,O){return $.match(le,!1)?(O.token=Ie,O.localState=O.localMode=null,null):c($,Q,O.localMode.token($,O.localState))},ve.localMode=Ce,ve.localState=n.startState(Ce,R.indent(ve.htmlState,"",""))}else ve.inTag&&(ve.inTag+=be.current(),be.eol()&&(ve.inTag+=" "));return Oe}return{startState:function(){var be=n.startState(R);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:be}},copyState:function(be){var ve;return be.localState&&(ve=n.copyState(be.localMode,be.localState)),{token:be.token,inTag:be.inTag,localMode:be.localMode,localState:ve,htmlState:n.copyState(R,be.htmlState)}},token:function(be,ve){return ve.token(be,ve)},indent:function(be,ve,Oe){return!be.localMode||/^\s*<\//.test(ve)?R.indent(be.htmlState,ve,Oe):be.localMode.indent?be.localMode.indent(be.localState,ve,Oe):n.Pass},innerMode:function(be){return{state:be.localState||be.htmlState,mode:be.localMode||R}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("solr",function(){var l=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function h(D){return parseFloat(D).toString()===D}function x(D){return function(B,R){for(var J=!1,pe;(pe=B.next())!=null&&!(pe==D&&!J);)J=!J&&pe=="\\";return J||(R.tokenize=E),"string"}}function z(D){return function(B,R){var J="operator";return D=="+"?J+=" positive":D=="-"?J+=" negative":D=="|"?B.eat(/\|/):D=="&"?B.eat(/\&/):D=="^"&&(J+=" boost"),R.tokenize=E,J}}function S(D){return function(B,R){for(var J=D;(D=B.peek())&&D.match(l)!=null;)J+=B.next();return R.tokenize=E,g.test(J)?"operator":h(J)?"number":B.peek()==":"?"field":"string"}}function E(D,B){var R=D.next();return R=='"'?B.tokenize=x(R):c.test(R)?B.tokenize=z(R):l.test(R)&&(B.tokenize=S(R)),B.tokenize!=E?B.tokenize(D,B):null}return{startState:function(){return{tokenize:E}},token:function(D,B){return D.eatSpace()?null:B.tokenize(D,B)}}}),n.defineMIME("text/x-solr","solr")})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineOption("placeholder","",function(S,E,D){var B=D&&D!=n.Init;if(E&&!B)S.on("blur",h),S.on("change",x),S.on("swapDoc",x),n.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){g(S)}),x(S);else if(!E&&B){S.off("blur",h),S.off("change",x),S.off("swapDoc",x),n.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),l(S);var R=S.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}E&&!S.hasFocus()&&h(S)});function l(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function c(S){l(S);var E=S.state.placeholder=document.createElement("pre");E.style.cssText="height: 0; overflow: visible",E.style.direction=S.getOption("direction"),E.className="CodeMirror-placeholder CodeMirror-line-like";var D=S.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),E.appendChild(D),S.display.lineSpace.insertBefore(E,S.display.lineSpace.firstChild)}function g(S){setTimeout(function(){var E=!1;if(S.lineCount()==1){var D=S.getInputField();E=D.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)}E?c(S):l(S)},20)}function h(S){z(S)&&c(S)}function x(S){var E=S.getWrapperElement(),D=z(S);E.className=E.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?c(S):l(S)}function z(S){return S.lineCount()===1&&S.getLine(0)===""}})})();var MC=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,v1=(o,t,n,l)=>{for(var c=l>1?void 0:l?_C(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&MC(t,n,c),c};Lu.defineMode("nunjucks",(o,t)=>Lu.overlayMode(Lu.getMode(o,t.backdrop||"text/html"),Lu.getMode(o,"jinja2")));const e4=Le("input-code"),TC=["json","nunjucks","javascript","solr"],OC={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends yn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(t){this.value=t.getValue(),this.dispatchChange()}updated(t){var l,c;super.updated(t);const n=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),n!==((l=this.editor)==null?void 0:l.isReadOnly())&&((c=this.editor)==null||c.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var g;return(g=this.editor)==null?void 0:g.refresh()})}get editorValue(){var t;return((t=this.editor)==null?void 0:t.getDoc().getValue())||""}set editorValue(t){var n;(n=this.editor)==null||n.setValue(t)}firstUpdated(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");t&&(this.editor=Lu.fromTextArea(t,{mode:OC[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const c=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.editor)==null||t.off("change",this.changeHandler)}renderInput(){return j`
|
|
2994
|
-
<textarea class="editor" placeholder="${
|
|
2994
|
+
`;(function(o,t){(function(n){n(ra)})(function(n){n.overlayMode=function(l,c,g){return{startState:function(){return{base:n.startState(l),overlay:n.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(h){return{base:n.copyState(l,h.base),overlay:n.copyState(c,h.overlay),basePos:h.basePos,baseCur:null,overlayPos:h.overlayPos,overlayCur:null}},token:function(h,w){return(h!=w.streamSeen||Math.min(w.basePos,w.overlayPos)<h.start)&&(w.streamSeen=h,w.basePos=w.overlayPos=h.start),h.start==w.basePos&&(w.baseCur=l.token(h,w.base),w.basePos=h.pos),h.start==w.overlayPos&&(h.pos=h.start,w.overlayCur=c.token(h,w.overlay),w.overlayPos=h.pos),h.pos=Math.min(w.basePos,w.overlayPos),w.overlayCur==null?w.baseCur:w.baseCur!=null&&w.overlay.combineTokens||g&&w.overlay.combineTokens==null?w.baseCur+" "+w.overlayCur:w.overlayCur},indent:l.indent&&function(h,w,z){return l.indent(h.base,w,z)},electricChars:l.electricChars,innerMode:function(h){return{state:h.base,mode:l}},blankLine:function(h){var w,z;return l.blankLine&&(w=l.blankLine(h.base)),c.blankLine&&(z=c.blankLine(h.overlay)),z==null?w:g&&w!=null?w+" "+z:z}}}})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("jinja2",function(){var l=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,h=["true","false"],w=/^(\d[+\-\*\/])?\d+(\.\d+)?/;l=new RegExp("(("+l.join(")|(")+"))\\b"),h=new RegExp("(("+h.join(")|(")+"))\\b");function z(S,k){var D=S.peek();if(k.incomment)return S.skipTo("#}")?(S.eatWhile(/\#|}/),k.incomment=!1):S.skipToEnd(),"comment";if(k.intag){if(k.operator){if(k.operator=!1,S.match(h))return"atom";if(S.match(w))return"number"}if(k.sign){if(k.sign=!1,S.match(h))return"atom";if(S.match(w))return"number"}if(k.instring)return D==k.instring&&(k.instring=!1),S.next(),"string";if(D=="'"||D=='"')return k.instring=D,S.next(),"string";if(S.match(k.intag+"}")||S.eat("-")&&S.match(k.intag+"}"))return k.intag=!1,"tag";if(S.match(c))return k.operator=!0,"operator";if(S.match(g))k.sign=!0;else if(S.eat(" ")||S.sol()){if(S.match(l))return"keyword";if(S.match(h))return"atom";if(S.match(w))return"number";S.sol()&&S.next()}else S.next();return"variable"}else if(S.eat("{")){if(S.eat("#"))return k.incomment=!0,S.skipTo("#}")?(S.eatWhile(/\#|}/),k.incomment=!1):S.skipToEnd(),"comment";if(D=S.eat(/\{|%/))return k.intag=D,D=="{"&&(k.intag="}"),S.eat("-"),"tag"}S.next()}return{startState:function(){return{tokenize:z}},token:function(S,k){return k.tokenize(S,k)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var xC={exports:{}};(function(o,t){(function(n){n(ra)})(function(n){var l={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(g,h){var w=g.indentUnit,z={},S=h.htmlMode?l:c;for(var k in S)z[k]=S[k];for(var k in h)z[k]=h[k];var D,B;function R(O,E){function X(et){return E.tokenize=et,et(O,E)}var ue=O.next();if(ue=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?X(ge("atom","]]>")):null:O.match("--")?X(ge("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),X(Te(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),E.tokenize=ge("meta","?>"),"meta"):(D=O.eat("/")?"closeTag":"openTag",E.tokenize=J,"tag bracket");if(ue=="&"){var Ae;return O.eat("#")?O.eat("x")?Ae=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),Ae?"atom":"error"}else return O.eatWhile(/[^&<]/),null}R.isInText=!0;function J(O,E){var X=O.next();if(X==">"||X=="/"&&O.eat(">"))return E.tokenize=R,D=X==">"?"endTag":"selfcloseTag","tag bracket";if(X=="=")return D="equals",null;if(X=="<"){E.tokenize=R,E.state=Oe,E.tagName=E.tagStart=null;var ue=E.tokenize(O,E);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(X)?(E.tokenize=pe(X),E.stringStartCol=O.column(),E.tokenize(O,E)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pe(O){var E=function(X,ue){for(;!X.eol();)if(X.next()==O){ue.tokenize=J;break}return"string"};return E.isInAttribute=!0,E}function ge(O,E){return function(X,ue){for(;!X.eol();){if(X.match(E)){ue.tokenize=R;break}X.next()}return O}}function Te(O){return function(E,X){for(var ue;(ue=E.next())!=null;){if(ue=="<")return X.tokenize=Te(O+1),X.tokenize(E,X);if(ue==">")if(O==1){X.tokenize=R;break}else return X.tokenize=Te(O-1),X.tokenize(E,X)}return"meta"}}function Ie(O,E,X){this.prev=O.context,this.tagName=E||"",this.indent=O.indented,this.startOfLine=X,(z.doNotIndent.hasOwnProperty(E)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function be(O){O.context&&(O.context=O.context.prev)}function ve(O,E){for(var X;;){if(!O.context||(X=O.context.tagName,!z.contextGrabbers.hasOwnProperty(X)||!z.contextGrabbers[X].hasOwnProperty(E)))return;be(O)}}function Oe(O,E,X){return O=="openTag"?(X.tagStart=E.column(),$e):O=="closeTag"?De:Oe}function $e(O,E,X){return O=="word"?(X.tagName=E.current(),B="tag",Ce):z.allowMissingTagName&&O=="endTag"?(B="tag bracket",Ce(O,E,X)):(B="error",$e)}function De(O,E,X){if(O=="word"){var ue=E.current();return X.context&&X.context.tagName!=ue&&z.implicitlyClosed.hasOwnProperty(X.context.tagName)&&be(X),X.context&&X.context.tagName==ue||z.matchClosing===!1?(B="tag",je):(B="tag error",Ye)}else return z.allowMissingTagName&&O=="endTag"?(B="tag bracket",je(O,E,X)):(B="error",Ye)}function je(O,E,X){return O!="endTag"?(B="error",je):(be(X),Oe)}function Ye(O,E,X){return B="error",je(O,E,X)}function Ce(O,E,X){if(O=="word")return B="attribute",le;if(O=="endTag"||O=="selfcloseTag"){var ue=X.tagName,Ae=X.tagStart;return X.tagName=X.tagStart=null,O=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(ue)?ve(X,ue):(ve(X,ue),X.context=new Ie(X,ue,Ae==X.indented)),Oe}return B="error",Ce}function le(O,E,X){return O=="equals"?Q:(z.allowMissing||(B="error"),Ce(O,E,X))}function Q(O,E,X){return O=="string"?$:O=="word"&&z.allowUnquoted?(B="string",Ce):(B="error",Ce(O,E,X))}function $(O,E,X){return O=="string"?$:Ce(O,E,X)}return{startState:function(O){var E={tokenize:R,state:Oe,indented:O||0,tagName:null,tagStart:null,context:null};return O!=null&&(E.baseIndent=O),E},token:function(O,E){if(!E.tagName&&O.sol()&&(E.indented=O.indentation()),O.eatSpace())return null;D=null;var X=E.tokenize(O,E);return(X||D)&&X!="comment"&&(B=null,E.state=E.state(D||X,O,E),B&&(X=B=="error"?X+" error":B)),X},indent:function(O,E,X){var ue=O.context;if(O.tokenize.isInAttribute)return O.tagStart==O.indented?O.stringStartCol+1:O.indented+w;if(ue&&ue.noIndent)return n.Pass;if(O.tokenize!=J&&O.tokenize!=R)return X?X.match(/^(\s*)/)[0].length:0;if(O.tagName)return z.multilineTagIndentPastTag!==!1?O.tagStart+O.tagName.length+2:O.tagStart+w*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(E))return 0;var Ae=E&&/^<(\/)?([\w_:\.-]*)/.exec(E);if(Ae&&Ae[1])for(;ue;)if(ue.tagName==Ae[2]){ue=ue.prev;break}else if(z.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Ae)for(;ue;){var et=z.contextGrabbers[ue.tagName];if(et&&et.hasOwnProperty(Ae[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+w:O.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(O){O.state==Q&&(O.state=Ce)},xmlCurrentTag:function(O){return O.tagName?{name:O.tagName,close:O.type=="closeTag"}:null},xmlCurrentContext:function(O){for(var E=[],X=O.context;X;X=X.prev)E.push(X.tagName);return E.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var zC=xC.exports,LC={exports:{}};(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("javascript",function(l,c){var g=l.indentUnit,h=c.statementIndent,w=c.jsonld,z=c.json||w,S=c.trackScope!==!1,k=c.typescript,D=c.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function x(Mr){return{type:Mr,style:"keyword"}}var A=x("keyword a"),te=x("keyword b"),ce=x("keyword c"),Ke=x("keyword d"),gt=x("operator"),we={type:"atom",style:"atom"};return{if:x("if"),while:A,with:A,else:te,do:te,try:te,finally:te,return:Ke,break:Ke,continue:Ke,new:x("new"),delete:ce,void:ce,throw:ce,debugger:x("debugger"),var:x("var"),const:x("var"),let:x("var"),function:x("function"),catch:x("catch"),for:x("for"),switch:x("switch"),case:x("case"),default:x("default"),in:gt,typeof:gt,instanceof:gt,true:we,false:we,null:we,undefined:we,NaN:we,Infinity:we,this:x("this"),class:x("class"),super:x("atom"),yield:ce,export:x("export"),import:x("import"),extends:ce,await:ce}}(),R=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function pe(x){for(var A=!1,te,ce=!1;(te=x.next())!=null;){if(!A){if(te=="/"&&!ce)return;te=="["?ce=!0:ce&&te=="]"&&(ce=!1)}A=!A&&te=="\\"}}var ge,Te;function Ie(x,A,te){return ge=x,Te=te,A}function be(x,A){var te=x.next();if(te=='"'||te=="'")return A.tokenize=ve(te),A.tokenize(x,A);if(te=="."&&x.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(te=="."&&x.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(te))return Ie(te);if(te=="="&&x.eat(">"))return Ie("=>","operator");if(te=="0"&&x.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(te))return x.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(te=="/")return x.eat("*")?(A.tokenize=Oe,Oe(x,A)):x.eat("/")?(x.skipToEnd(),Ie("comment","comment")):ae(x,A,1)?(pe(x),x.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(x.eat("="),Ie("operator","operator",x.current()));if(te=="`")return A.tokenize=$e,$e(x,A);if(te=="#"&&x.peek()=="!")return x.skipToEnd(),Ie("meta","meta");if(te=="#"&&x.eatWhile(D))return Ie("variable","property");if(te=="<"&&x.match("!--")||te=="-"&&x.match("->")&&!/\S/.test(x.string.slice(0,x.start)))return x.skipToEnd(),Ie("comment","comment");if(R.test(te))return(te!=">"||!A.lexical||A.lexical.type!=">")&&(x.eat("=")?(te=="!"||te=="=")&&x.eat("="):/[<>*+\-|&?]/.test(te)&&(x.eat(te),te==">"&&x.eat(te))),te=="?"&&x.eat(".")?Ie("."):Ie("operator","operator",x.current());if(D.test(te)){x.eatWhile(D);var ce=x.current();if(A.lastType!="."){if(B.propertyIsEnumerable(ce)){var Ke=B[ce];return Ie(Ke.type,Ke.style,ce)}if(ce=="async"&&x.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ce)}return Ie("variable","variable",ce)}}function ve(x){return function(A,te){var ce=!1,Ke;if(w&&A.peek()=="@"&&A.match(J))return te.tokenize=be,Ie("jsonld-keyword","meta");for(;(Ke=A.next())!=null&&!(Ke==x&&!ce);)ce=!ce&&Ke=="\\";return ce||(te.tokenize=be),Ie("string","string")}}function Oe(x,A){for(var te=!1,ce;ce=x.next();){if(ce=="/"&&te){A.tokenize=be;break}te=ce=="*"}return Ie("comment","comment")}function $e(x,A){for(var te=!1,ce;(ce=x.next())!=null;){if(!te&&(ce=="`"||ce=="$"&&x.eat("{"))){A.tokenize=be;break}te=!te&&ce=="\\"}return Ie("quasi","string-2",x.current())}var De="([{}])";function je(x,A){A.fatArrowAt&&(A.fatArrowAt=null);var te=x.string.indexOf("=>",x.start);if(!(te<0)){if(k){var ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(x.string.slice(x.start,te));ce&&(te=ce.index)}for(var Ke=0,gt=!1,we=te-1;we>=0;--we){var Mr=x.string.charAt(we),rn=De.indexOf(Mr);if(rn>=0&&rn<3){if(!Ke){++we;break}if(--Ke==0){Mr=="("&&(gt=!0);break}}else if(rn>=3&&rn<6)++Ke;else if(D.test(Mr))gt=!0;else if(/["'\/`]/.test(Mr))for(;;--we){if(we==0)return;var yi=x.string.charAt(we-1);if(yi==Mr&&x.string.charAt(we-2)!="\\"){we--;break}}else if(gt&&!Ke){++we;break}}gt&&!Ke&&(A.fatArrowAt=we)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ce(x,A,te,ce,Ke,gt){this.indented=x,this.column=A,this.type=te,this.prev=Ke,this.info=gt,ce!=null&&(this.align=ce)}function le(x,A){if(!S)return!1;for(var te=x.localVars;te;te=te.next)if(te.name==A)return!0;for(var ce=x.context;ce;ce=ce.prev)for(var te=ce.vars;te;te=te.next)if(te.name==A)return!0}function Q(x,A,te,ce,Ke){var gt=x.cc;for($.state=x,$.stream=Ke,$.marked=null,$.cc=gt,$.style=A,x.lexical.hasOwnProperty("align")||(x.lexical.align=!0);;){var we=gt.length?gt.pop():z?Ue:st;if(we(te,ce)){for(;gt.length&>[gt.length-1].lex;)gt.pop()();return $.marked?$.marked:te=="variable"&&le(x,ce)?"variable-2":A}}}var $={state:null,column:null,marked:null,cc:null};function O(){for(var x=arguments.length-1;x>=0;x--)$.cc.push(arguments[x])}function E(){return O.apply(null,arguments),!0}function X(x,A){for(var te=A;te;te=te.next)if(te.name==x)return!0;return!1}function ue(x){var A=$.state;if($.marked="def",!!S){if(A.context){if(A.lexical.info=="var"&&A.context&&A.context.block){var te=Ae(x,A.context);if(te!=null){A.context=te;return}}else if(!X(x,A.localVars)){A.localVars=new yt(x,A.localVars);return}}c.globalVars&&!X(x,A.globalVars)&&(A.globalVars=new yt(x,A.globalVars))}}function Ae(x,A){if(A)if(A.block){var te=Ae(x,A.prev);return te?te==A.prev?A:new pt(te,A.vars,!0):null}else return X(x,A.vars)?A:new pt(A.prev,new yt(x,A.vars),!1);else return null}function et(x){return x=="public"||x=="private"||x=="protected"||x=="abstract"||x=="readonly"}function pt(x,A,te){this.prev=x,this.vars=A,this.block=te}function yt(x,A){this.name=x,this.next=A}var or=new yt("this",new yt("arguments",null));function Tt(){$.state.context=new pt($.state.context,$.state.localVars,!1),$.state.localVars=or}function xt(){$.state.context=new pt($.state.context,$.state.localVars,!0),$.state.localVars=null}function rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}rt.lex=!0;function ze(x,A){var te=function(){var ce=$.state,Ke=ce.indented;if(ce.lexical.type=="stat")Ke=ce.lexical.indented;else for(var gt=ce.lexical;gt&>.type==")"&>.align;gt=gt.prev)Ke=gt.indented;ce.lexical=new Ce(Ke,$.stream.column(),x,null,ce.lexical,A)};return te.lex=!0,te}function Ne(){var x=$.state;x.lexical.prev&&(x.lexical.type==")"&&(x.indented=x.lexical.indented),x.lexical=x.lexical.prev)}Ne.lex=!0;function Ge(x){function A(te){return te==x?E():x==";"||te=="}"||te==")"||te=="]"?O():E(A)}return A}function st(x,A){return x=="var"?E(ze("vardef",A),Ya,Ge(";"),Ne):x=="keyword a"?E(ze("form"),Ur,st,Ne):x=="keyword b"?E(ze("form"),st,Ne):x=="keyword d"?$.stream.match(/^\s*$/,!1)?E():E(ze("stat"),Qe,Ge(";"),Ne):x=="debugger"?E(Ge(";")):x=="{"?E(ze("}"),xt,Dr,Ne,rt):x==";"?E():x=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Ne&&$.state.cc.pop()(),E(ze("form"),Ur,st,Ne,nl)):x=="function"?E(Cn):x=="for"?E(ze("form"),xt,il,st,rt,Ne):x=="class"||k&&A=="interface"?($.marked="keyword",E(ze("form",x=="class"?x:A),oa,Ne)):x=="variable"?k&&A=="declare"?($.marked="keyword",E(st)):k&&(A=="module"||A=="enum"||A=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",A=="enum"?E(Hn):A=="type"?E(ol,Ge("operator"),qe,Ge(";")):E(ze("form"),qr,Ge("{"),ze("}"),Dr,Ne,Ne)):k&&A=="namespace"?($.marked="keyword",E(ze("form"),Ue,st,Ne)):k&&A=="abstract"?($.marked="keyword",E(st)):E(ze("stat"),tt):x=="switch"?E(ze("form"),Ur,Ge("{"),ze("}","switch"),xt,Dr,Ne,Ne,rt):x=="case"?E(Ue,Ge(":")):x=="default"?E(Ge(":")):x=="catch"?E(ze("form"),Tt,lt,st,Ne,rt):x=="export"?E(ze("stat"),Ja,Ne):x=="import"?E(ze("stat"),Bt,Ne):x=="async"?E(st):A=="@"?E(Ue,st):O(ze("stat"),Ue,Ge(";"),Ne)}function lt(x){if(x=="(")return E(mi,Ge(")"))}function Ue(x,A){return tr(x,A,!1)}function Zt(x,A){return tr(x,A,!0)}function Ur(x){return x!="("?O():E(ze(")"),Qe,Ge(")"),Ne)}function tr(x,A,te){if($.state.fatArrowAt==$.stream.start){var ce=te?it:ar;if(x=="(")return E(Tt,ze(")"),Wt(mi,")"),Ne,Ge("=>"),ce,rt);if(x=="variable")return O(Tt,qr,Ge("=>"),ce,rt)}var Ke=te?kt:bt;return Ye.hasOwnProperty(x)?E(Ke):x=="function"?E(Cn,Ke):x=="class"||k&&A=="interface"?($.marked="keyword",E(ze("form"),Lo,Ne)):x=="keyword c"||x=="async"?E(te?Zt:Ue):x=="("?E(ze(")"),Qe,Ge(")"),Ne,Ke):x=="operator"||x=="spread"?E(te?Zt:Ue):x=="["?E(ze("]"),zt,Ne,Ke):x=="{"?bi(Lr,"}",null,Ke):x=="quasi"?O(Pr,Ke):x=="new"?E(U(te)):E()}function Qe(x){return x.match(/[;\}\)\],]/)?O():O(Ue)}function bt(x,A){return x==","?E(Qe):kt(x,A,!1)}function kt(x,A,te){var ce=te==!1?bt:kt,Ke=te==!1?Ue:Zt;if(x=="=>")return E(Tt,te?it:ar,rt);if(x=="operator")return/\+\+|--/.test(A)||k&&A=="!"?E(ce):k&&A=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(ze(">"),Wt(qe,">"),Ne,ce):A=="?"?E(Ue,Ge(":"),Ke):E(Ke);if(x=="quasi")return O(Pr,ce);if(x!=";"){if(x=="(")return bi(Zt,")","call",ce);if(x==".")return E(sr,ce);if(x=="[")return E(ze("]"),Qe,Ge("]"),Ne,ce);if(k&&A=="as")return $.marked="keyword",E(qe,ce);if(x=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),E(Ke)}}function Pr(x,A){return x!="quasi"?O():A.slice(A.length-2)!="${"?E(Pr):E(Qe,en)}function en(x){if(x=="}")return $.marked="string-2",$.state.tokenize=$e,E(Pr)}function ar(x){return je($.stream,$.state),O(x=="{"?st:Ue)}function it(x){return je($.stream,$.state),O(x=="{"?st:Zt)}function U(x){return function(A){return A=="."?E(x?Y:se):A=="variable"&&k?E(wo,x?kt:bt):O(x?Zt:Ue)}}function se(x,A){if(A=="target")return $.marked="keyword",E(bt)}function Y(x,A){if(A=="target")return $.marked="keyword",E(kt)}function tt(x){return x==":"?E(Ne,st):O(bt,Ge(";"),Ne)}function sr(x){if(x=="variable")return $.marked="property",E()}function Lr(x,A){if(x=="async")return $.marked="property",E(Lr);if(x=="variable"||$.style=="keyword"){if($.marked="property",A=="get"||A=="set")return E($n);var te;return k&&$.state.fatArrowAt==$.stream.start&&(te=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+te[0].length),E(Gr)}else{if(x=="number"||x=="string")return $.marked=w?"property":$.style+" property",E(Gr);if(x=="jsonld-keyword")return E(Gr);if(k&&et(A))return $.marked="keyword",E(Lr);if(x=="[")return E(Ue,Pn,Ge("]"),Gr);if(x=="spread")return E(Zt,Gr);if(A=="*")return $.marked="keyword",E(Lr);if(x==":")return O(Gr)}}function $n(x){return x!="variable"?O(Gr):($.marked="property",E(Cn))}function Gr(x){if(x==":")return E(Zt);if(x=="(")return O(Cn)}function Wt(x,A,te){function ce(Ke,gt){if(te?te.indexOf(Ke)>-1:Ke==","){var we=$.state.lexical;return we.info=="call"&&(we.pos=(we.pos||0)+1),E(function(Mr,rn){return Mr==A||rn==A?O():O(x)},ce)}return Ke==A||gt==A?E():te&&te.indexOf(";")>-1?O(x):E(Ge(A))}return function(Ke,gt){return Ke==A||gt==A?E():O(x,ce)}}function bi(x,A,te){for(var ce=3;ce<arguments.length;ce++)$.cc.push(arguments[ce]);return E(ze(A,te),Wt(x,A),Ne)}function Dr(x){return x=="}"?E():O(st,Dr)}function Pn(x,A){if(k){if(x==":")return E(qe);if(A=="?")return E(Pn)}}function Ve(x,A){if(k&&(x==":"||A=="in"))return E(qe)}function Vi(x){if(k&&x==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?E(Ue,Sr,qe):E(qe)}function Sr(x,A){if(A=="is")return $.marked="keyword",E()}function qe(x,A){if(A=="keyof"||A=="typeof"||A=="infer"||A=="readonly")return $.marked="keyword",E(A=="typeof"?Zt:qe);if(x=="variable"||A=="void")return $.marked="type",E(ln);if(A=="|"||A=="&")return E(qe);if(x=="string"||x=="number"||x=="atom")return E(ln);if(x=="[")return E(ze("]"),Wt(qe,"]",","),Ne,ln);if(x=="{")return E(ze("}"),na,Ne,ln);if(x=="(")return E(Wt(ia,")"),Jt,ln);if(x=="<")return E(Wt(qe,">"),qe);if(x=="quasi")return O(Dn,ln)}function Jt(x){if(x=="=>")return E(qe)}function na(x){return x.match(/[\}\)\]]/)?E():x==","||x==";"?E(na):O(gr,na)}function gr(x,A){if(x=="variable"||$.style=="keyword")return $.marked="property",E(gr);if(A=="?"||x=="number"||x=="string")return E(gr);if(x==":")return E(qe);if(x=="[")return E(Ge("variable"),Ve,Ge("]"),gr);if(x=="(")return O(un,gr);if(!x.match(/[;\}\)\],]/))return E()}function Dn(x,A){return x!="quasi"?O():A.slice(A.length-2)!="${"?E(Dn):E(qe,vr)}function vr(x){if(x=="}")return $.marked="string-2",$.state.tokenize=$e,E(Dn)}function ia(x,A){return x=="variable"&&$.stream.match(/^\s*[?:]/,!1)||A=="?"?E(ia):x==":"?E(qe):x=="spread"?E(ia):O(qe)}function ln(x,A){if(A=="<")return E(ze(">"),Wt(qe,">"),Ne,ln);if(A=="|"||x=="."||A=="&")return E(qe);if(x=="[")return E(qe,Ge("]"),ln);if(A=="extends"||A=="implements")return $.marked="keyword",E(qe);if(A=="?")return E(qe,Ge(":"),qe)}function wo(x,A){if(A=="<")return E(ze(">"),Wt(qe,">"),Ne,ln)}function Wi(){return O(qe,Ka)}function Ka(x,A){if(A=="=")return E(qe)}function Ya(x,A){return A=="enum"?($.marked="keyword",E(Hn)):O(qr,Pn,Xn,zo)}function qr(x,A){if(k&&et(A))return $.marked="keyword",E(qr);if(x=="variable")return ue(A),E();if(x=="spread")return E(qr);if(x=="[")return bi(xo,"]");if(x=="{")return bi(rl,"}")}function rl(x,A){return x=="variable"&&!$.stream.match(/^\s*:/,!1)?(ue(A),E(Xn)):(x=="variable"&&($.marked="property"),x=="spread"?E(qr):x=="}"?O():x=="["?E(Ue,Ge("]"),Ge(":"),rl):E(Ge(":"),qr,Xn))}function xo(){return O(qr,Xn)}function Xn(x,A){if(A=="=")return E(Zt)}function zo(x){if(x==",")return E(Ya)}function nl(x,A){if(x=="keyword b"&&A=="else")return E(ze("form","else"),st,Ne)}function il(x,A){if(A=="await")return E(il);if(x=="(")return E(ze(")"),Xa,Ne)}function Xa(x){return x=="var"?E(Ya,Zi):x=="variable"?E(Zi):O(Zi)}function Zi(x,A){return x==")"?E():x==";"?E(Zi):A=="in"||A=="of"?($.marked="keyword",E(Ue,Zi)):O(Ue,Zi)}function Cn(x,A){if(A=="*")return $.marked="keyword",E(Cn);if(x=="variable")return ue(A),E(Cn);if(x=="(")return E(Tt,ze(")"),Wt(mi,")"),Ne,Vi,st,rt);if(k&&A=="<")return E(ze(">"),Wt(Wi,">"),Ne,Cn)}function un(x,A){if(A=="*")return $.marked="keyword",E(un);if(x=="variable")return ue(A),E(un);if(x=="(")return E(Tt,ze(")"),Wt(mi,")"),Ne,Vi,rt);if(k&&A=="<")return E(ze(">"),Wt(Wi,">"),Ne,un)}function ol(x,A){if(x=="keyword"||x=="variable")return $.marked="type",E(ol);if(A=="<")return E(ze(">"),Wt(Wi,">"),Ne)}function mi(x,A){return A=="@"&&E(Ue,mi),x=="spread"?E(mi):k&&et(A)?($.marked="keyword",E(mi)):k&&x=="this"?E(Pn,Xn):O(qr,Pn,Xn)}function Lo(x,A){return x=="variable"?oa(x,A):Nn(x,A)}function oa(x,A){if(x=="variable")return ue(A),E(Nn)}function Nn(x,A){if(A=="<")return E(ze(">"),Wt(Wi,">"),Ne,Nn);if(A=="extends"||A=="implements"||k&&x==",")return A=="implements"&&($.marked="keyword"),E(k?qe:Ue,Nn);if(x=="{")return E(ze("}"),Rn,Ne)}function Rn(x,A){if(x=="async"||x=="variable"&&(A=="static"||A=="get"||A=="set"||k&&et(A))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",E(Rn);if(x=="variable"||$.style=="keyword")return $.marked="property",E(cn,Rn);if(x=="number"||x=="string")return E(cn,Rn);if(x=="[")return E(Ue,Pn,Ge("]"),cn,Rn);if(A=="*")return $.marked="keyword",E(Rn);if(k&&x=="(")return O(un,Rn);if(x==";"||x==",")return E(Rn);if(x=="}")return E();if(A=="@")return E(Ue,Rn)}function cn(x,A){if(A=="!"||A=="?")return E(cn);if(x==":")return E(qe,Xn);if(A=="=")return E(Zt);var te=$.state.lexical.prev,ce=te&&te.info=="interface";return O(ce?un:Cn)}function Ja(x,A){return A=="*"?($.marked="keyword",E(tn,Ge(";"))):A=="default"?($.marked="keyword",E(Ue,Ge(";"))):x=="{"?E(Wt(Qa,"}"),tn,Ge(";")):O(st)}function Qa(x,A){if(A=="as")return $.marked="keyword",E(Ge("variable"));if(x=="variable")return O(Zt,Qa)}function Bt(x){return x=="string"?E():x=="("?O(Ue):x=="."?O(bt):O(ke,dn,tn)}function ke(x,A){return x=="{"?bi(ke,"}"):(x=="variable"&&ue(A),A=="*"&&($.marked="keyword"),E(es))}function dn(x){if(x==",")return E(ke,dn)}function es(x,A){if(A=="as")return $.marked="keyword",E(ke)}function tn(x,A){if(A=="from")return $.marked="keyword",E(Ue)}function zt(x){return x=="]"?E():O(Wt(Zt,"]"))}function Hn(){return O(ze("form"),qr,Ge("{"),ze("}"),Wt(Ui,"}"),Ne,Ne)}function Ui(){return O(qr,Xn)}function aa(x,A){return x.lastType=="operator"||x.lastType==","||R.test(A.charAt(0))||/[,.]/.test(A.charAt(0))}function ae(x,A,te){return A.tokenize==be&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(A.lastType)||A.lastType=="quasi"&&/\{\s*$/.test(x.string.slice(0,x.pos-(te||0)))}return{startState:function(x){var A={tokenize:be,lastType:"sof",cc:[],lexical:new Ce((x||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new pt(null,null,!1),indented:x||0};return c.globalVars&&typeof c.globalVars=="object"&&(A.globalVars=c.globalVars),A},token:function(x,A){if(x.sol()&&(A.lexical.hasOwnProperty("align")||(A.lexical.align=!1),A.indented=x.indentation(),je(x,A)),A.tokenize!=Oe&&x.eatSpace())return null;var te=A.tokenize(x,A);return ge=="comment"?te:(A.lastType=ge=="operator"&&(Te=="++"||Te=="--")?"incdec":ge,Q(A,te,ge,Te,x))},indent:function(x,A){if(x.tokenize==Oe||x.tokenize==$e)return n.Pass;if(x.tokenize!=be)return 0;var te=A&&A.charAt(0),ce=x.lexical,Ke;if(!/^\s*else\b/.test(A))for(var gt=x.cc.length-1;gt>=0;--gt){var we=x.cc[gt];if(we==Ne)ce=ce.prev;else if(we!=nl&&we!=rt)break}for(;(ce.type=="stat"||ce.type=="form")&&(te=="}"||(Ke=x.cc[x.cc.length-1])&&(Ke==bt||Ke==kt)&&!/^[,\.=+\-*:?[\(]/.test(A));)ce=ce.prev;h&&ce.type==")"&&ce.prev.type=="stat"&&(ce=ce.prev);var Mr=ce.type,rn=te==Mr;return Mr=="vardef"?ce.indented+(x.lastType=="operator"||x.lastType==","?ce.info.length+1:0):Mr=="form"&&te=="{"?ce.indented:Mr=="form"?ce.indented+g:Mr=="stat"?ce.indented+(aa(x,A)?h||g:0):ce.info=="switch"&&!rn&&c.doubleIndentSwitch!=!1?ce.indented+(/^(?:case|default)\b/.test(A)?g:2*g):ce.align?ce.column+(rn?0:1):ce.indented+(rn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",blockCommentContinue:z?null:" * ",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:w,jsonMode:z,expressionAllowed:ae,skipExpression:function(x){Q(x,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var SC=LC.exports,k2={exports:{}},I2;function MC(){return I2||(I2=1,function(o,t){(function(n){n(ra)})(function(n){n.defineMode("css",function(Ce,le){var Q=le.inline;le.propertyKeywords||(le=n.resolveMode("text/css"));var $=Ce.indentUnit,O=le.tokenHooks,E=le.documentTypes||{},X=le.mediaTypes||{},ue=le.mediaFeatures||{},Ae=le.mediaValueKeywords||{},et=le.propertyKeywords||{},pt=le.nonStandardPropertyKeywords||{},yt=le.fontProperties||{},or=le.counterDescriptors||{},Tt=le.colorKeywords||{},xt=le.valueKeywords||{},rt=le.allowNested,ze=le.lineComment,Ne=le.supportsAtComponent===!0,Ge=Ce.highlightNonStandardPropertyKeywords!==!1,st,lt;function Ue(U,se){return st=se,U}function Zt(U,se){var Y=U.next();if(O[Y]){var tt=O[Y](U,se);if(tt!==!1)return tt}if(Y=="@")return U.eatWhile(/[\w\\\-]/),Ue("def",U.current());if(Y=="="||(Y=="~"||Y=="|")&&U.eat("="))return Ue(null,"compare");if(Y=='"'||Y=="'")return se.tokenize=Ur(Y),se.tokenize(U,se);if(Y=="#")return U.eatWhile(/[\w\\\-]/),Ue("atom","hash");if(Y=="!")return U.match(/^\s*\w*/),Ue("keyword","important");if(/\d/.test(Y)||Y=="."&&U.eat(/\d/))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(Y==="-"){if(/[\d.]/.test(U.peek()))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(U.match(/^-[\w\\\-]*/))return U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?Ue("variable-2","variable-definition"):Ue("variable-2","variable");if(U.match(/^\w+-/))return Ue("meta","meta")}else return/[,+>*\/]/.test(Y)?Ue(null,"select-op"):Y=="."&&U.match(/^-?[_a-z][_a-z0-9-]*/i)?Ue("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Y)?Ue(null,Y):U.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(U.current())&&(se.tokenize=tr),Ue("variable callee","variable")):/[\w\\\-]/.test(Y)?(U.eatWhile(/[\w\\\-]/),Ue("property","word")):Ue(null,null)}function Ur(U){return function(se,Y){for(var tt=!1,sr;(sr=se.next())!=null;){if(sr==U&&!tt){U==")"&&se.backUp(1);break}tt=!tt&&sr=="\\"}return(sr==U||!tt&&U!=")")&&(Y.tokenize=null),Ue("string","string")}}function tr(U,se){return U.next(),U.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Ur(")"),Ue(null,"(")}function Qe(U,se,Y){this.type=U,this.indent=se,this.prev=Y}function bt(U,se,Y,tt){return U.context=new Qe(Y,se.indentation()+(tt===!1?0:$),U.context),Y}function kt(U){return U.context.prev&&(U.context=U.context.prev),U.context.type}function Pr(U,se,Y){return it[Y.context.type](U,se,Y)}function en(U,se,Y,tt){for(var sr=tt||1;sr>0;sr--)Y.context=Y.context.prev;return Pr(U,se,Y)}function ar(U){var se=U.current().toLowerCase();xt.hasOwnProperty(se)?lt="atom":Tt.hasOwnProperty(se)?lt="keyword":lt="variable"}var it={};return it.top=function(U,se,Y){if(U=="{")return bt(Y,se,"block");if(U=="}"&&Y.context.prev)return kt(Y);if(Ne&&/@component/i.test(U))return bt(Y,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(U))return bt(Y,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(U))return bt(Y,se,"atBlock");if(/^@(font-face|counter-style)/i.test(U))return Y.stateArg=U,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(U))return"keyframes";if(U&&U.charAt(0)=="@")return bt(Y,se,"at");if(U=="hash")lt="builtin";else if(U=="word")lt="tag";else{if(U=="variable-definition")return"maybeprop";if(U=="interpolation")return bt(Y,se,"interpolation");if(U==":")return"pseudo";if(rt&&U=="(")return bt(Y,se,"parens")}return Y.context.type},it.block=function(U,se,Y){if(U=="word"){var tt=se.current().toLowerCase();return et.hasOwnProperty(tt)?(lt="property","maybeprop"):pt.hasOwnProperty(tt)?(lt=Ge?"string-2":"property","maybeprop"):rt?(lt=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(lt+=" error","maybeprop")}else return U=="meta"?"block":!rt&&(U=="hash"||U=="qualifier")?(lt="error","block"):it.top(U,se,Y)},it.maybeprop=function(U,se,Y){return U==":"?bt(Y,se,"prop"):Pr(U,se,Y)},it.prop=function(U,se,Y){if(U==";")return kt(Y);if(U=="{"&&rt)return bt(Y,se,"propBlock");if(U=="}"||U=="{")return en(U,se,Y);if(U=="(")return bt(Y,se,"parens");if(U=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))lt+=" error";else if(U=="word")ar(se);else if(U=="interpolation")return bt(Y,se,"interpolation");return"prop"},it.propBlock=function(U,se,Y){return U=="}"?kt(Y):U=="word"?(lt="property","maybeprop"):Y.context.type},it.parens=function(U,se,Y){return U=="{"||U=="}"?en(U,se,Y):U==")"?kt(Y):U=="("?bt(Y,se,"parens"):U=="interpolation"?bt(Y,se,"interpolation"):(U=="word"&&ar(se),"parens")},it.pseudo=function(U,se,Y){return U=="meta"?"pseudo":U=="word"?(lt="variable-3",Y.context.type):Pr(U,se,Y)},it.documentTypes=function(U,se,Y){return U=="word"&&E.hasOwnProperty(se.current())?(lt="tag",Y.context.type):it.atBlock(U,se,Y)},it.atBlock=function(U,se,Y){if(U=="(")return bt(Y,se,"atBlock_parens");if(U=="}"||U==";")return en(U,se,Y);if(U=="{")return kt(Y)&&bt(Y,se,rt?"block":"top");if(U=="interpolation")return bt(Y,se,"interpolation");if(U=="word"){var tt=se.current().toLowerCase();tt=="only"||tt=="not"||tt=="and"||tt=="or"?lt="keyword":X.hasOwnProperty(tt)?lt="attribute":ue.hasOwnProperty(tt)?lt="property":Ae.hasOwnProperty(tt)?lt="keyword":et.hasOwnProperty(tt)?lt="property":pt.hasOwnProperty(tt)?lt=Ge?"string-2":"property":xt.hasOwnProperty(tt)?lt="atom":Tt.hasOwnProperty(tt)?lt="keyword":lt="error"}return Y.context.type},it.atComponentBlock=function(U,se,Y){return U=="}"?en(U,se,Y):U=="{"?kt(Y)&&bt(Y,se,rt?"block":"top",!1):(U=="word"&&(lt="error"),Y.context.type)},it.atBlock_parens=function(U,se,Y){return U==")"?kt(Y):U=="{"||U=="}"?en(U,se,Y,2):it.atBlock(U,se,Y)},it.restricted_atBlock_before=function(U,se,Y){return U=="{"?bt(Y,se,"restricted_atBlock"):U=="word"&&Y.stateArg=="@counter-style"?(lt="variable","restricted_atBlock_before"):Pr(U,se,Y)},it.restricted_atBlock=function(U,se,Y){return U=="}"?(Y.stateArg=null,kt(Y)):U=="word"?(Y.stateArg=="@font-face"&&!yt.hasOwnProperty(se.current().toLowerCase())||Y.stateArg=="@counter-style"&&!or.hasOwnProperty(se.current().toLowerCase())?lt="error":lt="property","maybeprop"):"restricted_atBlock"},it.keyframes=function(U,se,Y){return U=="word"?(lt="variable","keyframes"):U=="{"?bt(Y,se,"top"):Pr(U,se,Y)},it.at=function(U,se,Y){return U==";"?kt(Y):U=="{"||U=="}"?en(U,se,Y):(U=="word"?lt="tag":U=="hash"&&(lt="builtin"),"at")},it.interpolation=function(U,se,Y){return U=="}"?kt(Y):U=="{"||U==";"?en(U,se,Y):(U=="word"?lt="variable":U!="variable"&&U!="("&&U!=")"&&(lt="error"),"interpolation")},{startState:function(U){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new Qe(Q?"block":"top",U||0,null)}},token:function(U,se){if(!se.tokenize&&U.eatSpace())return null;var Y=(se.tokenize||Zt)(U,se);return Y&&typeof Y=="object"&&(st=Y[1],Y=Y[0]),lt=Y,st!="comment"&&(se.state=it[se.state](st,U,se)),lt},indent:function(U,se){var Y=U.context,tt=se&&se.charAt(0),sr=Y.indent;return Y.type=="prop"&&(tt=="}"||tt==")")&&(Y=Y.prev),Y.prev&&(tt=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")?(Y=Y.prev,sr=Y.indent):(tt==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||tt=="{"&&(Y.type=="at"||Y.type=="atBlock"))&&(sr=Math.max(0,Y.indent-$))),sr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ze,fold:"brace"}});function l(Ce){for(var le={},Q=0;Q<Ce.length;++Q)le[Ce[Q].toLowerCase()]=!0;return le}var c=["domain","regexp","url","url-prefix"],g=l(c),h=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],w=l(h),z=["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"],S=l(z),k=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],D=l(k),B=["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"],R=l(B),J=["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"],pe=l(J),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Te=l(ge),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],be=l(Ie),ve=["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"],Oe=l(ve),$e=["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"],De=l($e),je=c.concat(h).concat(z).concat(k).concat(B).concat(J).concat(ve).concat($e);n.registerHelper("hintWords","css",je);function Ye(Ce,le){for(var Q=!1,$;($=Ce.next())!=null;){if(Q&&$=="/"){le.tokenize=null;break}Q=$=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:g,mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},":":function(Ce){return Ce.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Ce){return Ce.match(/^[\w-]+/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Ce){return Ce.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},"@":function(Ce){return Ce.eat("{")?[null,"interpolation"]:Ce.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Ce.eatWhile(/[\w\\\-]/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:w,mediaFeatures:S,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,supportsAtComponent:!0,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css",helperType:"gss"})})}()),k2.exports}(function(o,t){(function(n){n(ra,zC,SC,MC())})(function(n){var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function c(D,B,R){var J=D.current(),pe=J.search(B);return pe>-1?D.backUp(J.length-pe):J.match(/<\/?$/)&&(D.backUp(J.length),D.match(B,!1)||D.match(J)),R}var g={};function h(D){var B=g[D];return B||(g[D]=new RegExp("\\s+"+D+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function w(D,B){var R=D.match(h(B));return R?/^\s*(.*?)\s*$/.exec(R[2])[1]:""}function z(D,B){return new RegExp((B?"^":"")+"</s*"+D+"s*>","i")}function S(D,B){for(var R in D)for(var J=B[R]||(B[R]=[]),pe=D[R],ge=pe.length-1;ge>=0;ge--)J.unshift(pe[ge])}function k(D,B){for(var R=0;R<D.length;R++){var J=D[R];if(!J[0]||J[1].test(w(B,J[0])))return J[2]}}n.defineMode("htmlmixed",function(D,B){var R=n.getMode(D,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag,allowMissingTagName:B.allowMissingTagName}),J={},pe=B&&B.tags,ge=B&&B.scriptTypes;if(S(l,J),pe&&S(pe,J),ge)for(var Te=ge.length-1;Te>=0;Te--)J.script.unshift(["type",ge[Te].matches,ge[Te].mode]);function Ie(be,ve){var Oe=R.token(be,ve.htmlState),$e=/\btag\b/.test(Oe),De;if($e&&!/[<>\s\/]/.test(be.current())&&(De=ve.htmlState.tagName&&ve.htmlState.tagName.toLowerCase())&&J.hasOwnProperty(De))ve.inTag=De+" ";else if(ve.inTag&&$e&&/>$/.test(be.current())){var je=/^([\S]+) (.*)/.exec(ve.inTag);ve.inTag=null;var Ye=be.current()==">"&&k(J[je[1]],je[2]),Ce=n.getMode(D,Ye),le=z(je[1],!0),Q=z(je[1],!1);ve.token=function($,O){return $.match(le,!1)?(O.token=Ie,O.localState=O.localMode=null,null):c($,Q,O.localMode.token($,O.localState))},ve.localMode=Ce,ve.localState=n.startState(Ce,R.indent(ve.htmlState,"",""))}else ve.inTag&&(ve.inTag+=be.current(),be.eol()&&(ve.inTag+=" "));return Oe}return{startState:function(){var be=n.startState(R);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:be}},copyState:function(be){var ve;return be.localState&&(ve=n.copyState(be.localMode,be.localState)),{token:be.token,inTag:be.inTag,localMode:be.localMode,localState:ve,htmlState:n.copyState(R,be.htmlState)}},token:function(be,ve){return ve.token(be,ve)},indent:function(be,ve,Oe){return!be.localMode||/^\s*<\//.test(ve)?R.indent(be.htmlState,ve,Oe):be.localMode.indent?be.localMode.indent(be.localState,ve,Oe):n.Pass},innerMode:function(be){return{state:be.localState||be.htmlState,mode:be.localMode||R}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("solr",function(){var l=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function h(D){return parseFloat(D).toString()===D}function w(D){return function(B,R){for(var J=!1,pe;(pe=B.next())!=null&&!(pe==D&&!J);)J=!J&&pe=="\\";return J||(R.tokenize=k),"string"}}function z(D){return function(B,R){var J="operator";return D=="+"?J+=" positive":D=="-"?J+=" negative":D=="|"?B.eat(/\|/):D=="&"?B.eat(/\&/):D=="^"&&(J+=" boost"),R.tokenize=k,J}}function S(D){return function(B,R){for(var J=D;(D=B.peek())&&D.match(l)!=null;)J+=B.next();return R.tokenize=k,g.test(J)?"operator":h(J)?"number":B.peek()==":"?"field":"string"}}function k(D,B){var R=D.next();return R=='"'?B.tokenize=w(R):c.test(R)?B.tokenize=z(R):l.test(R)&&(B.tokenize=S(R)),B.tokenize!=k?B.tokenize(D,B):null}return{startState:function(){return{tokenize:k}},token:function(D,B){return D.eatSpace()?null:B.tokenize(D,B)}}}),n.defineMIME("text/x-solr","solr")})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineOption("placeholder","",function(S,k,D){var B=D&&D!=n.Init;if(k&&!B)S.on("blur",h),S.on("change",w),S.on("swapDoc",w),n.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){g(S)}),w(S);else if(!k&&B){S.off("blur",h),S.off("change",w),S.off("swapDoc",w),n.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),l(S);var R=S.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}k&&!S.hasFocus()&&h(S)});function l(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function c(S){l(S);var k=S.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=S.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var D=S.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),k.appendChild(D),S.display.lineSpace.insertBefore(k,S.display.lineSpace.firstChild)}function g(S){setTimeout(function(){var k=!1;if(S.lineCount()==1){var D=S.getInputField();k=D.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)}k?c(S):l(S)},20)}function h(S){z(S)&&c(S)}function w(S){var k=S.getWrapperElement(),D=z(S);k.className=k.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?c(S):l(S)}function z(S){return S.lineCount()===1&&S.getLine(0)===""}})})();var _C=Object.defineProperty,TC=Object.getOwnPropertyDescriptor,v1=(o,t,n,l)=>{for(var c=l>1?void 0:l?TC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&_C(t,n,c),c};Lu.defineMode("nunjucks",(o,t)=>Lu.overlayMode(Lu.getMode(o,t.backdrop||"text/html"),Lu.getMode(o,"jinja2")));const t4=Le("input-code"),OC=["json","nunjucks","javascript","solr"],EC={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends yn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(t){this.value=t.getValue(),this.dispatchChange()}updated(t){var l,c;super.updated(t);const n=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),n!==((l=this.editor)==null?void 0:l.isReadOnly())&&((c=this.editor)==null||c.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var g;return(g=this.editor)==null?void 0:g.refresh()})}get editorValue(){var t;return((t=this.editor)==null?void 0:t.getDoc().getValue())||""}set editorValue(t){var n;(n=this.editor)==null||n.setValue(t)}firstUpdated(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");t&&(this.editor=Lu.fromTextArea(t,{mode:EC[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const c=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.editor)==null||t.off("change",this.changeHandler)}renderInput(){return j`
|
|
2995
|
+
<textarea class="editor" placeholder="${_t(this.placeholder)}">
|
|
2995
2996
|
${this.value}</textarea
|
|
2996
2997
|
>
|
|
2997
2998
|
`}};exports.InputCode.styles=[...yn.styles,fe`
|
|
2998
|
-
${
|
|
2999
|
+
${Wa(CC)}
|
|
2999
3000
|
|
|
3000
3001
|
:host([size="full"]) {
|
|
3001
3002
|
width: 100%;
|
|
@@ -3059,14 +3060,14 @@ ${this.value}</textarea
|
|
|
3059
3060
|
.CodeMirror pre.CodeMirror-placeholder {
|
|
3060
3061
|
color: var(--brz-color-neutral-500);
|
|
3061
3062
|
}
|
|
3062
|
-
`,
|
|
3063
|
+
`,wC];v1([F()],exports.InputCode.prototype,"mode",2);v1([F({reflect:!0})],exports.InputCode.prototype,"size",2);v1([F({type:Number})],exports.InputCode.prototype,"height",2);v1([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);v1([Be()],exports.InputCode.prototype,"editor",2);exports.InputCode=v1([ee(t4)],exports.InputCode);var kC=Object.defineProperty,IC=Object.getOwnPropertyDescriptor,Uu=(o,t,n,l)=>{for(var c=l>1?void 0:l?IC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&kC(t,n,c),c};const r4=Le("input-select");exports.InputSelect=class extends zr{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch()}handleSelect(t){this.setValue(t.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(t=>{t.selected=this.value===t.value})}renderReferenceElement(){var t;return this.applySelectedStatusToChildren(),this.controlled||this.search(),j`
|
|
3063
3064
|
<button
|
|
3064
3065
|
type="button"
|
|
3065
3066
|
class="wrapper"
|
|
3066
3067
|
tabindex=${this.disabled?-1:0}
|
|
3067
3068
|
@keydown=${this.handleKeyDown}
|
|
3068
3069
|
@keyup=${this.handleKeyUp}
|
|
3069
|
-
aria-required=${
|
|
3070
|
+
aria-required=${_t(this.required)}
|
|
3070
3071
|
>
|
|
3071
3072
|
${this.canSearch?null:j`
|
|
3072
3073
|
<span class=${this.value&&this.valueLabel?"":"placeholder"}>
|
|
@@ -3077,13 +3078,13 @@ ${this.value}</textarea
|
|
|
3077
3078
|
<input
|
|
3078
3079
|
id="selectSearch"
|
|
3079
3080
|
type="search"
|
|
3080
|
-
placeholder=${
|
|
3081
|
+
placeholder=${_t(this.placeholder)}
|
|
3081
3082
|
@click=${this.handleSearchInputClick}
|
|
3082
3083
|
@input=${this.handleQueryInput}
|
|
3083
3084
|
?disabled=${this.disabled}
|
|
3084
3085
|
?readonly=${this.readonly}
|
|
3085
3086
|
value=${(t=this.valueLabel)!=null?t:""}
|
|
3086
|
-
aria-invalid=${
|
|
3087
|
+
aria-invalid=${_t(this.invalid?this.invalid:void 0)}
|
|
3087
3088
|
class="search-area"
|
|
3088
3089
|
/>
|
|
3089
3090
|
`:null}
|
|
@@ -3126,7 +3127,7 @@ ${this.value}</textarea
|
|
|
3126
3127
|
.placeholder {
|
|
3127
3128
|
color: var(--input-placeholder-font-color);
|
|
3128
3129
|
}
|
|
3129
|
-
`];Uu([F({type:String})],exports.InputSelect.prototype,"value",2);Uu([Be()],exports.InputSelect.prototype,"query",2);Uu([Be()],exports.InputSelect.prototype,"valueLabel",2);Uu([Be()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Uu([ee(
|
|
3130
|
+
`];Uu([F({type:String})],exports.InputSelect.prototype,"value",2);Uu([Be()],exports.InputSelect.prototype,"query",2);Uu([Be()],exports.InputSelect.prototype,"valueLabel",2);Uu([Be()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Uu([ee(r4)],exports.InputSelect);var AC=Object.defineProperty,$C=Object.getOwnPropertyDescriptor,Fi=(o,t,n,l)=>{for(var c=l>1?void 0:l?$C(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&AC(t,n,c),c};const n4=Le("lozenge"),PC=["neutral","green","orange","red","cyan","purple","sapphire"],DC=["solid","subtle","border"],NC=["small","medium","large"];class i4 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends We{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(t){t.stopPropagation(),this.dispatchEvent(new i4)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var t;return this.updateComplete.then(()=>this.checkOverflow()),j`
|
|
3130
3131
|
<brz-tooltip
|
|
3131
3132
|
content=${(t=this.defaultSlot[0])==null?void 0:t.textContent}
|
|
3132
3133
|
?disabled=${!this.isOverflowing}
|
|
@@ -3278,7 +3279,7 @@ ${this.value}</textarea
|
|
|
3278
3279
|
margin-right: var(--brz-spacing-2);
|
|
3279
3280
|
}
|
|
3280
3281
|
|
|
3281
|
-
${
|
|
3282
|
+
${N5(".close",fe`
|
|
3282
3283
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
3283
3284
|
`)}
|
|
3284
3285
|
|
|
@@ -3296,7 +3297,7 @@ ${this.value}</textarea
|
|
|
3296
3297
|
color: var(--brz-color-neutral-550);
|
|
3297
3298
|
cursor: unset;
|
|
3298
3299
|
}
|
|
3299
|
-
`;Fi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Fi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Fi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Fi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Fi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Fi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Fi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Fi([
|
|
3300
|
+
`;Fi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Fi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Fi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Fi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Fi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Fi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Fi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Fi([Th()],exports.Lozenge.prototype,"defaultSlot",2);Fi([Tv(".message")],exports.Lozenge.prototype,"message",2);Fi([Be()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Fi([ee(n4)],exports.Lozenge);var RC=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,Gu=(o,t,n,l)=>{for(var c=l>1?void 0:l?HC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&RC(t,n,c),c};const o4=Le("input-multiselect");exports.InputMultiselect=class extends zr{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(t){super.updated(t),this.dropdown&&(this.dropdown.multiselect=!0),(t.has("value")||t.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(n=>n.id===Ai)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:t,toggled:n}=[...this.getItems()].reduce((l,c)=>c.id===Ai?l:{enabled:c.disabled?l.enabled:l.enabled+1,toggled:c.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return t===n}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 Gh({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(t){this.setValue(t.detail.selected)}handleItemSelect({detail:{item:t}}){t.id===Ai&&this.toggleAllSelected()}toggleAllSelected(){const t=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==Ai&&t.push(n.value)}),this.setValue(t),this.handleValueChange()}toggleSelection(t){const n=this.value?[...this.value]:[],l=n.indexOf(t);l>-1&&n.splice(l,1),l===-1&&n.push(t),this.setValue(n)}syncSelected(){this.getItems().forEach(t=>{const n=this.value&&this.value.includes(t.value);t.selected=t.id===Ai?this.allSelected:n})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?j`<span class="truncation"
|
|
3300
3301
|
>+${this.value.length-this.truncateValuesAfter} more</span
|
|
3301
3302
|
>`:null}handleKeyDown(t){super.handleKeyDown(t),t.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),j`
|
|
3302
3303
|
<button
|
|
@@ -3325,10 +3326,10 @@ ${this.value}</textarea
|
|
|
3325
3326
|
<input
|
|
3326
3327
|
id="selectSearch"
|
|
3327
3328
|
type="search"
|
|
3328
|
-
value=${
|
|
3329
|
+
value=${_t(this.query)}
|
|
3329
3330
|
@click=${this.handleSearchInputClick}
|
|
3330
3331
|
@input=${this.handleQueryInput}
|
|
3331
|
-
placeholder="${
|
|
3332
|
+
placeholder="${_t(this.placeholder)}"
|
|
3332
3333
|
class="search-area"
|
|
3333
3334
|
/>
|
|
3334
3335
|
`:null}
|
|
@@ -3407,10 +3408,10 @@ ${this.value}</textarea
|
|
|
3407
3408
|
brz-icon[icon='chevronDown'] {
|
|
3408
3409
|
color: var(--brz-color-neutral-750);
|
|
3409
3410
|
}
|
|
3410
|
-
`];Gu([F({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Gu([F({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Gu([F({type:Array})],exports.InputMultiselect.prototype,"value",2);Gu([Be()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Gu([ee(i4)],exports.InputMultiselect);class tl extends Error{}class HC extends tl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class FC extends tl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class BC extends tl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Su extends tl{}class o4 extends tl{constructor(t){super(`Invalid unit ${t}`)}}class di extends tl{}class Ra extends tl{constructor(){super("Zone is an abstract class")}}const _e="numeric",Ni="short",Kn="long",Q0={year:_e,month:_e,day:_e},a4={year:_e,month:Ni,day:_e},WC={year:_e,month:Ni,day:_e,weekday:Ni},s4={year:_e,month:Kn,day:_e},l4={year:_e,month:Kn,day:_e,weekday:Kn},u4={hour:_e,minute:_e},c4={hour:_e,minute:_e,second:_e},d4={hour:_e,minute:_e,second:_e,timeZoneName:Ni},f4={hour:_e,minute:_e,second:_e,timeZoneName:Kn},h4={hour:_e,minute:_e,hourCycle:"h23"},p4={hour:_e,minute:_e,second:_e,hourCycle:"h23"},g4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Ni},v4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Kn},b4={year:_e,month:_e,day:_e,hour:_e,minute:_e},m4={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},y4={year:_e,month:Ni,day:_e,hour:_e,minute:_e},C4={year:_e,month:Ni,day:_e,hour:_e,minute:_e,second:_e},VC={year:_e,month:Ni,day:_e,weekday:Ni,hour:_e,minute:_e},w4={year:_e,month:Kn,day:_e,hour:_e,minute:_e,timeZoneName:Ni},x4={year:_e,month:Kn,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:Ni},z4={year:_e,month:Kn,day:_e,weekday:Kn,hour:_e,minute:_e,timeZoneName:Kn},L4={year:_e,month:Kn,day:_e,weekday:Kn,hour:_e,minute:_e,second:_e,timeZoneName:Kn};class qu{get type(){throw new Ra}get name(){throw new Ra}get ianaName(){return this.name}get isUniversal(){throw new Ra}offsetName(t,n){throw new Ra}formatOffset(t,n){throw new Ra}offset(t){throw new Ra}equals(t){throw new Ra}get isValid(){throw new Ra}}let qf=null;class bd extends qu{static get instance(){return qf===null&&(qf=new bd),qf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return M4(t,n,l)}formatOffset(t,n){return Eu(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let $0={};function ZC(o){return $0[o]||($0[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$0[o]}const UC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function GC(o,t){const n=o.format(t).replace(/\u200E/g,""),l=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,g,h,x,z,S,E]=l;return[h,c,g,x,z,S,E]}function qC(o,t){const n=o.formatToParts(t),l=[];for(let c=0;c<n.length;c++){const{type:g,value:h}=n[c],x=UC[g];g==="era"?l[x]=h:Mt(x)||(l[x]=parseInt(h,10))}return l}let L0={};class Xo extends qu{static create(t){return L0[t]||(L0[t]=new Xo(t)),L0[t]}static resetCache(){L0={},$0={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return M4(t,n,l,this.name)}formatOffset(t,n){return Eu(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const l=ZC(this.name);let[c,g,h,x,z,S,E]=l.formatToParts?qC(l,n):GC(l,n);x==="BC"&&(c=-Math.abs(c)+1);const B=yd({year:c,month:g,day:h,hour:z===24?0:z,minute:S,second:E,millisecond:0});let R=+n;const J=R%1e3;return R-=J>=0?J:1e3+J,(B-R)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let I2={};function jC(o,t={}){const n=JSON.stringify([o,t]);let l=I2[n];return l||(l=new Intl.ListFormat(o,t),I2[n]=l),l}let ph={};function gh(o,t={}){const n=JSON.stringify([o,t]);let l=ph[n];return l||(l=new Intl.DateTimeFormat(o,t),ph[n]=l),l}let vh={};function KC(o,t={}){const n=JSON.stringify([o,t]);let l=vh[n];return l||(l=new Intl.NumberFormat(o,t),vh[n]=l),l}let bh={};function YC(o,t={}){const{base:n,...l}=t,c=JSON.stringify([o,l]);let g=bh[c];return g||(g=new Intl.RelativeTimeFormat(o,t),bh[c]=g),g}let Mu=null;function XC(){return Mu||(Mu=new Intl.DateTimeFormat().resolvedOptions().locale,Mu)}function JC(o){const t=o.indexOf("-x-");t!==-1&&(o=o.substring(0,t));const n=o.indexOf("-u-");if(n===-1)return[o];{let l,c;try{l=gh(o).resolvedOptions(),c=o}catch{const z=o.substring(0,n);l=gh(z).resolvedOptions(),c=z}const{numberingSystem:g,calendar:h}=l;return[c,g,h]}}function QC(o,t,n){return(n||t)&&(o.includes("-u-")||(o+="-u"),n&&(o+=`-ca-${n}`),t&&(o+=`-nu-${t}`)),o}function ew(o){const t=[];for(let n=1;n<=12;n++){const l=at.utc(2009,n,1);t.push(o(l))}return t}function tw(o){const t=[];for(let n=1;n<=7;n++){const l=at.utc(2016,11,13+n);t.push(o(l))}return t}function S0(o,t,n,l){const c=o.listingMode();return c==="error"?null:c==="en"?n(t):l(t)}function rw(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||new Intl.DateTimeFormat(o.intl).resolvedOptions().numberingSystem==="latn"}class nw{constructor(t,n,l){this.padTo=l.padTo||0,this.floor=l.floor||!1;const{padTo:c,floor:g,...h}=l;if(!n||Object.keys(h).length>0){const x={useGrouping:!1,...l};l.padTo>0&&(x.minimumIntegerDigits=l.padTo),this.inf=KC(t,x)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):jh(t,3);return xr(n,this.padTo)}}}class iw{constructor(t,n,l){this.opts=l,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const h=-1*(t.offset/60),x=h>=0?`Etc/GMT+${h}`:`Etc/GMT${h}`;t.offset!==0&&Xo.create(x).valid?(c=x,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const g={...this.opts};g.timeZone=g.timeZone||c,this.dtf=gh(n,g)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const l=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:l}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class ow{constructor(t,n,l){this.opts={style:"long",...l},!n&&S4()&&(this.rtf=YC(t,l))}format(t,n){return this.rtf?this.rtf.format(t,n):xw(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Kt{static fromOpts(t){return Kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,l,c=!1){const g=t||wr.defaultLocale,h=g||(c?"en-US":XC()),x=n||wr.defaultNumberingSystem,z=l||wr.defaultOutputCalendar;return new Kt(h,x,z,g)}static resetCache(){Mu=null,ph={},vh={},bh={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:l}={}){return Kt.create(t,n,l)}constructor(t,n,l,c){const[g,h,x]=JC(t);this.locale=g,this.numberingSystem=n||h||null,this.outputCalendar=l||x||null,this.intl=QC(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=rw(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return S0(this,t,O4,()=>{const l=n?{month:t,day:"numeric"}:{month:t},c=n?"format":"standalone";return this.monthsCache[c][t]||(this.monthsCache[c][t]=ew(g=>this.extract(g,l,"month"))),this.monthsCache[c][t]})}weekdays(t,n=!1){return S0(this,t,I4,()=>{const l=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=n?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=tw(g=>this.extract(g,l,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return S0(this,void 0,()=>A4,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[at.utc(2016,11,13,9),at.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return S0(this,t,$4,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[at.utc(-40,1,1),at.utc(2017,1,1)].map(l=>this.extract(l,n,"era"))),this.eraCache[t]})}extract(t,n,l){const c=this.dtFormatter(t,n),g=c.formatToParts(),h=g.find(x=>x.type.toLowerCase()===l);return h?h.value:null}numberFormatter(t={}){return new nw(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new iw(t,this.intl,n)}relFormatter(t={}){return new ow(this.intl,this.isEnglish(),t)}listFormatter(t={}){return jC(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let jf=null;class mn extends qu{static get utcInstance(){return jf===null&&(jf=new mn(0)),jf}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(Cd(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Eu(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Eu(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Eu(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class aw extends qu{constructor(t){super(),this.zoneName=t}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 Wa(o,t){if(Mt(o)||o===null)return t;if(o instanceof qu)return o;if(sw(o)){const n=o.toLowerCase();return n==="default"?t:n==="local"||n==="system"?bd.instance:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||Xo.create(o)}else return Vs(o)?mn.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new aw(o)}let A2=()=>Date.now(),$2="system",P2=null,D2=null,N2=null,R2=60,H2;class wr{static get now(){return A2}static set now(t){A2=t}static set defaultZone(t){$2=t}static get defaultZone(){return Wa($2,bd.instance)}static get defaultLocale(){return P2}static set defaultLocale(t){P2=t}static get defaultNumberingSystem(){return D2}static set defaultNumberingSystem(t){D2=t}static get defaultOutputCalendar(){return N2}static set defaultOutputCalendar(t){N2=t}static get twoDigitCutoffYear(){return R2}static set twoDigitCutoffYear(t){R2=t%100}static get throwOnInvalid(){return H2}static set throwOnInvalid(t){H2=t}static resetCaches(){Kt.resetCache(),Xo.resetCache()}}function Mt(o){return typeof o=="undefined"}function Vs(o){return typeof o=="number"}function md(o){return typeof o=="number"&&o%1===0}function sw(o){return typeof o=="string"}function lw(o){return Object.prototype.toString.call(o)==="[object Date]"}function S4(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function uw(o){return Array.isArray(o)?o:[o]}function F2(o,t,n){if(o.length!==0)return o.reduce((l,c)=>{const g=[t(c),c];return l&&n(l[0],g[0])===l[0]?l:g},null)[1]}function cw(o,t){return t.reduce((n,l)=>(n[l]=o[l],n),{})}function p1(o,t){return Object.prototype.hasOwnProperty.call(o,t)}function Ko(o,t,n){return md(o)&&o>=t&&o<=n}function dw(o,t){return o-t*Math.floor(o/t)}function xr(o,t=2){const n=o<0;let l;return n?l="-"+(""+-o).padStart(t,"0"):l=(""+o).padStart(t,"0"),l}function Fa(o){if(!(Mt(o)||o===null||o===""))return parseInt(o,10)}function Ps(o){if(!(Mt(o)||o===null||o===""))return parseFloat(o)}function qh(o){if(!(Mt(o)||o===null||o==="")){const t=parseFloat("0."+o)*1e3;return Math.floor(t)}}function jh(o,t,n=!1){const l=10**t;return(n?Math.trunc:Math.round)(o*l)/l}function ju(o){return o%4===0&&(o%100!==0||o%400===0)}function ku(o){return ju(o)?366:365}function ed(o,t){const n=dw(t-1,12)+1,l=o+(t-n)/12;return n===2?ju(l)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function yd(o){let t=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(t=new Date(t),t.setUTCFullYear(o.year,o.month-1,o.day)),+t}function td(o){const t=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,n=o-1,l=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||l===3?53:52}function mh(o){return o>99?o:o>wr.twoDigitCutoffYear?1900+o:2e3+o}function M4(o,t,n,l=null){const c=new Date(o),g={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};l&&(g.timeZone=l);const h={timeZoneName:t,...g},x=new Intl.DateTimeFormat(n,h).formatToParts(c).find(z=>z.type.toLowerCase()==="timezonename");return x?x.value:null}function Cd(o,t){let n=parseInt(o,10);Number.isNaN(n)&&(n=0);const l=parseInt(t,10)||0,c=n<0||Object.is(n,-0)?-l:l;return n*60+c}function _4(o){const t=Number(o);if(typeof o=="boolean"||o===""||Number.isNaN(t))throw new di(`Invalid unit value ${o}`);return t}function rd(o,t){const n={};for(const l in o)if(p1(o,l)){const c=o[l];if(c==null)continue;n[t(l)]=_4(c)}return n}function Eu(o,t){const n=Math.trunc(Math.abs(o/60)),l=Math.trunc(Math.abs(o%60)),c=o>=0?"+":"-";switch(t){case"short":return`${c}${xr(n,2)}:${xr(l,2)}`;case"narrow":return`${c}${n}${l>0?`:${l}`:""}`;case"techie":return`${c}${xr(n,2)}${xr(l,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function wd(o){return cw(o,["hour","minute","second","millisecond"])}const fw=["January","February","March","April","May","June","July","August","September","October","November","December"],T4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hw=["J","F","M","A","M","J","J","A","S","O","N","D"];function O4(o){switch(o){case"narrow":return[...hw];case"short":return[...T4];case"long":return[...fw];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 k4=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],E4=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],pw=["M","T","W","T","F","S","S"];function I4(o){switch(o){case"narrow":return[...pw];case"short":return[...E4];case"long":return[...k4];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const A4=["AM","PM"],gw=["Before Christ","Anno Domini"],vw=["BC","AD"],bw=["B","A"];function $4(o){switch(o){case"narrow":return[...bw];case"short":return[...vw];case"long":return[...gw];default:return null}}function mw(o){return A4[o.hour<12?0:1]}function yw(o,t){return I4(t)[o.weekday-1]}function Cw(o,t){return O4(t)[o.month-1]}function ww(o,t){return $4(t)[o.year<0?0:1]}function xw(o,t,n="always",l=!1){const c={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."]},g=["hours","minutes","seconds"].indexOf(o)===-1;if(n==="auto"&&g){const D=o==="days";switch(t){case 1:return D?"tomorrow":`next ${c[o][0]}`;case-1:return D?"yesterday":`last ${c[o][0]}`;case 0:return D?"today":`this ${c[o][0]}`}}const h=Object.is(t,-0)||t<0,x=Math.abs(t),z=x===1,S=c[o],E=l?z?S[1]:S[2]||S[1]:z?c[o][0]:o;return h?`${x} ${E} ago`:`in ${x} ${E}`}function B2(o,t){let n="";for(const l of o)l.literal?n+=l.val:n+=t(l.val);return n}const zw={D:Q0,DD:a4,DDD:s4,DDDD:l4,t:u4,tt:c4,ttt:d4,tttt:f4,T:h4,TT:p4,TTT:g4,TTTT:v4,f:b4,ff:y4,fff:w4,ffff:z4,F:m4,FF:C4,FFF:x4,FFFF:L4};class sn{static create(t,n={}){return new sn(t,n)}static parseFormat(t){let n=null,l="",c=!1;const g=[];for(let h=0;h<t.length;h++){const x=t.charAt(h);x==="'"?(l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),n=null,l="",c=!c):c||x===n?l+=x:(l.length>0&&g.push({literal:/^\s+$/.test(l),val:l}),l=x,n=x)}return l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),g}static macroTokenToFormatOpts(t){return zw[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return xr(t,n);const l={...this.opts};return n>0&&(l.padTo=n),this.loc.numberFormatter(l).format(t)}formatDateTimeFromString(t,n){const l=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",g=(R,J)=>this.loc.extract(t,R,J),h=R=>t.isOffsetFixed&&t.offset===0&&R.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,R.format):"",x=()=>l?mw(t):g({hour:"numeric",hourCycle:"h12"},"dayperiod"),z=(R,J)=>l?Cw(t,R):g(J?{month:R}:{month:R,day:"numeric"},"month"),S=(R,J)=>l?yw(t,R):g(J?{weekday:R}:{weekday:R,month:"long",day:"numeric"},"weekday"),E=R=>{const J=sn.macroTokenToFormatOpts(R);return J?this.formatWithSystemDefault(t,J):R},D=R=>l?ww(t,R):g({era:R},"era"),B=R=>{switch(R){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return h({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return h({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return h({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return x();case"d":return c?g({day:"numeric"},"day"):this.num(t.day);case"dd":return c?g({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return c?g({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?g({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return z("short",!0);case"LLLL":return z("long",!0);case"LLLLL":return z("narrow",!0);case"M":return c?g({month:"numeric"},"month"):this.num(t.month);case"MM":return c?g({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return z("short",!1);case"MMMM":return z("long",!1);case"MMMMM":return z("narrow",!1);case"y":return c?g({year:"numeric"},"year"):this.num(t.year);case"yy":return c?g({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?g({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?g({year:"numeric"},"year"):this.num(t.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(R)}};return B2(sn.parseFormat(n),B)}formatDurationFromString(t,n){const l=z=>{switch(z[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}},c=z=>S=>{const E=l(S);return E?this.num(z.get(E),S.length):S},g=sn.parseFormat(n),h=g.reduce((z,{literal:S,val:E})=>S?z:z.concat(E),[]),x=t.shiftTo(...h.map(l).filter(z=>z));return B2(g,c(x))}}class $i{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const P4=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function b1(...o){const t=o.reduce((n,l)=>n+l.source,"");return RegExp(`^${t}$`)}function m1(...o){return t=>o.reduce(([n,l,c],g)=>{const[h,x,z]=g(t,c);return[{...n,...h},x||l,z]},[{},null,1]).slice(0,2)}function y1(o,...t){if(o==null)return[null,null];for(const[n,l]of t){const c=n.exec(o);if(c)return l(c)}return[null,null]}function D4(...o){return(t,n)=>{const l={};let c;for(c=0;c<o.length;c++)l[o[c]]=Fa(t[n+c]);return[l,null,n+c]}}const N4=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Lw=`(?:${N4.source}?(?:\\[(${P4.source})\\])?)?`,Kh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,R4=RegExp(`${Kh.source}${Lw}`),Yh=RegExp(`(?:T${R4.source})?`),Sw=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Mw=/(\d{4})-?W(\d\d)(?:-?(\d))?/,_w=/(\d{4})-?(\d{3})/,Tw=D4("weekYear","weekNumber","weekDay"),Ow=D4("year","ordinal"),kw=/(\d{4})-(\d\d)-(\d\d)/,H4=RegExp(`${Kh.source} ?(?:${N4.source}|(${P4.source}))?`),Ew=RegExp(`(?: ${H4.source})?`);function o1(o,t,n){const l=o[t];return Mt(l)?n:Fa(l)}function Iw(o,t){return[{year:o1(o,t),month:o1(o,t+1,1),day:o1(o,t+2,1)},null,t+3]}function C1(o,t){return[{hours:o1(o,t,0),minutes:o1(o,t+1,0),seconds:o1(o,t+2,0),milliseconds:qh(o[t+3])},null,t+4]}function Ku(o,t){const n=!o[t]&&!o[t+1],l=Cd(o[t+1],o[t+2]),c=n?null:mn.instance(l);return[{},c,t+3]}function Yu(o,t){const n=o[t]?Xo.create(o[t]):null;return[{},n,t+1]}const Aw=RegExp(`^T?${Kh.source}$`),$w=/^-?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 Pw(o){const[t,n,l,c,g,h,x,z,S]=o,E=t[0]==="-",D=z&&z[0]==="-",B=(R,J=!1)=>R!==void 0&&(J||R&&E)?-R:R;return[{years:B(Ps(n)),months:B(Ps(l)),weeks:B(Ps(c)),days:B(Ps(g)),hours:B(Ps(h)),minutes:B(Ps(x)),seconds:B(Ps(z),z==="-0"),milliseconds:B(qh(S),D)}]}const Dw={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 Xh(o,t,n,l,c,g,h){const x={year:t.length===2?mh(Fa(t)):Fa(t),month:T4.indexOf(n)+1,day:Fa(l),hour:Fa(c),minute:Fa(g)};return h&&(x.second=Fa(h)),o&&(x.weekday=o.length>3?k4.indexOf(o)+1:E4.indexOf(o)+1),x}const Nw=/^(?:(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 Rw(o){const[,t,n,l,c,g,h,x,z,S,E,D]=o,B=Xh(t,c,l,n,g,h,x);let R;return z?R=Dw[z]:S?R=0:R=Cd(E,D),[B,new mn(R)]}function Hw(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Fw=/^(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$/,Bw=/^(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$/,Ww=/^(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 W2(o){const[,t,n,l,c,g,h,x]=o;return[Xh(t,c,l,n,g,h,x),mn.utcInstance]}function Vw(o){const[,t,n,l,c,g,h,x]=o;return[Xh(t,x,n,l,c,g,h),mn.utcInstance]}const Zw=b1(Sw,Yh),Uw=b1(Mw,Yh),Gw=b1(_w,Yh),qw=b1(R4),F4=m1(Iw,C1,Ku,Yu),jw=m1(Tw,C1,Ku,Yu),Kw=m1(Ow,C1,Ku,Yu),Yw=m1(C1,Ku,Yu);function Xw(o){return y1(o,[Zw,F4],[Uw,jw],[Gw,Kw],[qw,Yw])}function Jw(o){return y1(Hw(o),[Nw,Rw])}function Qw(o){return y1(o,[Fw,W2],[Bw,W2],[Ww,Vw])}function ex(o){return y1(o,[$w,Pw])}const tx=m1(C1);function rx(o){return y1(o,[Aw,tx])}const nx=b1(kw,Ew),ix=b1(H4),ox=m1(C1,Ku,Yu);function ax(o){return y1(o,[nx,F4],[ix,ox])}const sx="Invalid Duration",B4={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}},lx={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},...B4},ci=146097/400,t1=146097/4800,ux={years:{quarters:4,months:12,weeks:ci/7,days:ci,hours:ci*24,minutes:ci*24*60,seconds:ci*24*60*60,milliseconds:ci*24*60*60*1e3},quarters:{months:3,weeks:ci/28,days:ci/4,hours:ci*24/4,minutes:ci*24*60/4,seconds:ci*24*60*60/4,milliseconds:ci*24*60*60*1e3/4},months:{weeks:t1/7,days:t1,hours:t1*24,minutes:t1*24*60,seconds:t1*24*60*60,milliseconds:t1*24*60*60*1e3},...B4},Ns=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],W4=Ns.slice(0).reverse();function Ha(o,t,n=!1){const l={values:n?t.values:{...o.values,...t.values||{}},loc:o.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||o.conversionAccuracy,matrix:t.matrix||o.matrix};return new Ot(l)}function V2(o){return Math.trunc(o*1e3)/1e3}function V4(o,t,n,l,c){const g=o[c][n],h=t[n]/g,x=Math.floor(h);l[c]=V2(l[c]+x),t[n]=V2(t[n]-x*g)}function cx(o,t){W4.reduce((n,l)=>Mt(t[l])?n:(n&&V4(o,t,n,t,l),l),null)}function dx(o){const t={};for(const[n,l]of Object.entries(o))l!==0&&(t[n]=l);return t}class Ot{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let l=n?ux:lx;t.matrix&&(l=t.matrix),this.values=t.values,this.loc=t.loc||Kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=l,this.isLuxonDuration=!0}static fromMillis(t,n){return Ot.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ot({values:rd(t,Ot.normalizeUnit),loc:Kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Vs(t))return Ot.fromMillis(t);if(Ot.isDuration(t))return t;if(typeof t=="object")return Ot.fromObject(t);throw new di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[l]=ex(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[l]=rx(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Duration is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new BC(l);return new Ot({invalid:l})}static normalizeUnit(t){const n={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"}[t&&t.toLowerCase()];if(!n)throw new o4(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const l={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sn.create(this.loc,l).formatDurationFromString(this,t):sx}toHuman(t={}){const n=Ns.map(l=>{const c=this.values[l];return Mt(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:l.slice(0,-1)}).format(c)}).filter(l=>l);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=jh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},at.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,l;let t=(n=this.values.milliseconds)!=null?n:0;for(let c of W4.slice(1))(l=this.values)!=null&&l[c]&&(t+=this.values[c]*this.matrix[c].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t),l={};for(const c of Ns)(p1(n.values,c)||p1(this.values,c))&&(l[c]=n.get(c)+this.get(c));return Ha(this,{values:l},!0)}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const l of Object.keys(this.values))n[l]=_4(t(this.values[l],l));return Ha(this,{values:n},!0)}get(t){return this[Ot.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...rd(t,Ot.normalizeUnit)};return Ha(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:l,matrix:c}={}){const h={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:c,conversionAccuracy:l};return Ha(this,h)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(cx(this.matrix,t),Ha(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const t=dx(this.normalize().shiftToAll().toObject());return Ha(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(h=>Ot.normalizeUnit(h));const n={},l={},c=this.toObject();let g;for(const h of Ns)if(t.indexOf(h)>=0){g=h;let x=0;for(const S in l)x+=this.matrix[S][h]*l[S],l[S]=0;Vs(c[h])&&(x+=c[h]);const z=Math.trunc(x);n[h]=z,l[h]=(x*1e3-z*1e3)/1e3;for(const S in c)Ns.indexOf(S)>Ns.indexOf(h)&&V4(this.matrix,c,S,n,h)}else Vs(c[h])&&(l[h]=c[h]);for(const h in l)l[h]!==0&&(n[g]+=h===g?l[h]:l[h]/this.matrix[g][h]);return Ha(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ha(this,{values:t},!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(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(l,c){return l===void 0||l===0?c===void 0||c===0:l===c}for(const l of Ns)if(!n(this.values[l],t.values[l]))return!1;return!0}}const r1="Invalid Interval";function fx(o,t){return!o||!o.isValid?ir.invalid("missing or invalid start"):!t||!t.isValid?ir.invalid("missing or invalid end"):t<o?ir.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${t.toISO()}`):null}class ir{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Interval is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new FC(l);return new ir({invalid:l})}static fromDateTimes(t,n){const l=zu(t),c=zu(n),g=fx(l,c);return g==null?new ir({start:l,end:c}):g}static after(t,n){const l=Ot.fromDurationLike(n),c=zu(t);return ir.fromDateTimes(c,c.plus(l))}static before(t,n){const l=Ot.fromDurationLike(n),c=zu(t);return ir.fromDateTimes(c.minus(l),c)}static fromISO(t,n){const[l,c]=(t||"").split("/",2);if(l&&c){let g,h;try{g=at.fromISO(l,n),h=g.isValid}catch{h=!1}let x,z;try{x=at.fromISO(c,n),z=x.isValid}catch{z=!1}if(h&&z)return ir.fromDateTimes(g,x);if(h){const S=Ot.fromISO(c,n);if(S.isValid)return ir.after(g,S)}else if(z){const S=Ot.fromISO(l,n);if(S.isValid)return ir.before(x,S)}}return ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),l=this.end.startOf(t);return Math.floor(l.diff(n,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ir.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(zu).filter(h=>this.contains(h)).sort(),l=[];let{s:c}=this,g=0;for(;c<this.e;){const h=n[g]||this.e,x=+h>+this.e?this.e:h;l.push(ir.fromDateTimes(c,x)),c=x,g+=1}return l}splitBy(t){const n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:l}=this,c=1,g;const h=[];for(;l<this.e;){const x=this.start.plus(n.mapUnits(z=>z*c));g=+x>+this.e?this.e:x,h.push(ir.fromDateTimes(l,g)),l=g,c+=1}return h}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,l=this.e<t.e?this.e:t.e;return n>=l?null:ir.fromDateTimes(n,l)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,l=this.e>t.e?this.e:t.e;return ir.fromDateTimes(n,l)}static merge(t){const[n,l]=t.sort((c,g)=>c.s-g.s).reduce(([c,g],h)=>g?g.overlaps(h)||g.abutsStart(h)?[c,g.union(h)]:[c.concat([g]),h]:[c,h],[[],null]);return l&&n.push(l),n}static xor(t){let n=null,l=0;const c=[],g=t.map(z=>[{time:z.s,type:"s"},{time:z.e,type:"e"}]),h=Array.prototype.concat(...g),x=h.sort((z,S)=>z.time-S.time);for(const z of x)l+=z.type==="s"?1:-1,l===1?n=z.time:(n&&+n!=+z.time&&c.push(ir.fromDateTimes(n,z.time)),n=null);return ir.merge(c)}difference(...t){return ir.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:r1}toLocaleString(t=Q0,n={}){return this.isValid?sn.create(this.s.loc.clone(n),t).formatInterval(this):r1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:r1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:r1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:r1}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:r1}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return ir.fromDateTimes(t(this.s),t(this.e))}}class M0{static hasDST(t=wr.defaultZone){const n=at.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xo.isValidZone(t)}static normalizeZone(t){return Wa(t,wr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Kt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Kt.create(n,null,"gregory").eras(t)}static features(){return{relative:S4()}}}function Z2(o,t){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),l=n(t)-n(o);return Math.floor(Ot.fromMillis(l).as("days"))}function hx(o,t,n){const l=[["years",(z,S)=>S.year-z.year],["quarters",(z,S)=>S.quarter-z.quarter+(S.year-z.year)*4],["months",(z,S)=>S.month-z.month+(S.year-z.year)*12],["weeks",(z,S)=>{const E=Z2(z,S);return(E-E%7)/7}],["days",Z2]],c={},g=o;let h,x;for(const[z,S]of l)n.indexOf(z)>=0&&(h=z,c[z]=S(o,t),x=g.plus(c),x>t?(c[z]--,o=g.plus(c),o>t&&(x=o,c[z]--,o=g.plus(c))):o=x);return[o,c,x,h]}function px(o,t,n,l){let[c,g,h,x]=hx(o,t,n);const z=t-c,S=n.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(h<t&&(h=c.plus({[x]:1})),h!==c&&(g[x]=(g[x]||0)+z/(h-c)));const E=Ot.fromObject(g,l);return S.length>0?Ot.fromMillis(z,l).shiftTo(...S).plus(E):E}const Jh={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},U2={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]},gx=Jh.hanidec.replace(/[\[|\]]/g,"").split("");function vx(o){let t=parseInt(o,10);if(isNaN(t)){t="";for(let n=0;n<o.length;n++){const l=o.charCodeAt(n);if(o[n].search(Jh.hanidec)!==-1)t+=gx.indexOf(o[n]);else for(const c in U2){const[g,h]=U2[c];l>=g&&l<=h&&(t+=l-g)}}return parseInt(t,10)}else return t}function Ei({numberingSystem:o},t=""){return new RegExp(`${Jh[o||"latn"]}${t}`)}const bx="missing Intl.DateTimeFormat.formatToParts support";function Pt(o,t=n=>n){return{regex:o,deser:([n])=>t(vx(n))}}const mx=String.fromCharCode(160),Z4=`[ ${mx}]`,U4=new RegExp(Z4,"g");function yx(o){return o.replace(/\./g,"\\.?").replace(U4,Z4)}function G2(o){return o.replace(/\./g,"").replace(U4," ").toLowerCase()}function Ii(o,t){return o===null?null:{regex:RegExp(o.map(yx).join("|")),deser:([n])=>o.findIndex(l=>G2(n)===G2(l))+t}}function q2(o,t){return{regex:o,deser:([,n,l])=>Cd(n,l),groups:t}}function _0(o){return{regex:o,deser:([t])=>t}}function Cx(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function wx(o,t){const n=Ei(t),l=Ei(t,"{2}"),c=Ei(t,"{3}"),g=Ei(t,"{4}"),h=Ei(t,"{6}"),x=Ei(t,"{1,2}"),z=Ei(t,"{1,3}"),S=Ei(t,"{1,6}"),E=Ei(t,"{1,9}"),D=Ei(t,"{2,4}"),B=Ei(t,"{4,6}"),R=ge=>({regex:RegExp(Cx(ge.val)),deser:([Te])=>Te,literal:!0}),pe=(ge=>{if(o.literal)return R(ge);switch(ge.val){case"G":return Ii(t.eras("short"),0);case"GG":return Ii(t.eras("long"),0);case"y":return Pt(S);case"yy":return Pt(D,mh);case"yyyy":return Pt(g);case"yyyyy":return Pt(B);case"yyyyyy":return Pt(h);case"M":return Pt(x);case"MM":return Pt(l);case"MMM":return Ii(t.months("short",!0),1);case"MMMM":return Ii(t.months("long",!0),1);case"L":return Pt(x);case"LL":return Pt(l);case"LLL":return Ii(t.months("short",!1),1);case"LLLL":return Ii(t.months("long",!1),1);case"d":return Pt(x);case"dd":return Pt(l);case"o":return Pt(z);case"ooo":return Pt(c);case"HH":return Pt(l);case"H":return Pt(x);case"hh":return Pt(l);case"h":return Pt(x);case"mm":return Pt(l);case"m":return Pt(x);case"q":return Pt(x);case"qq":return Pt(l);case"s":return Pt(x);case"ss":return Pt(l);case"S":return Pt(z);case"SSS":return Pt(c);case"u":return _0(E);case"uu":return _0(x);case"uuu":return Pt(n);case"a":return Ii(t.meridiems(),0);case"kkkk":return Pt(g);case"kk":return Pt(D,mh);case"W":return Pt(x);case"WW":return Pt(l);case"E":case"c":return Pt(n);case"EEE":return Ii(t.weekdays("short",!1),1);case"EEEE":return Ii(t.weekdays("long",!1),1);case"ccc":return Ii(t.weekdays("short",!0),1);case"cccc":return Ii(t.weekdays("long",!0),1);case"Z":case"ZZ":return q2(new RegExp(`([+-]${x.source})(?::(${l.source}))?`),2);case"ZZZ":return q2(new RegExp(`([+-]${x.source})(${l.source})?`),2);case"z":return _0(/[a-z_+-/]{1,256}?/i);case" ":return _0(/[^\S\n\r]/);default:return R(ge)}})(o)||{invalidReason:bx};return pe.token=o,pe}const xx={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 zx(o,t,n){const{type:l,value:c}=o;if(l==="literal"){const z=/^\s+$/.test(c);return{literal:!z,val:z?" ":c}}const g=t[l];let h=l;l==="hour"&&(t.hour12!=null?h=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?h="hour12":h="hour24":h=n.hour12?"hour12":"hour24");let x=xx[h];if(typeof x=="object"&&(x=x[g]),x)return{literal:!1,val:x}}function Lx(o){return[`^${o.map(n=>n.regex).reduce((n,l)=>`${n}(${l.source})`,"")}$`,o]}function Sx(o,t,n){const l=o.match(t);if(l){const c={};let g=1;for(const h in n)if(p1(n,h)){const x=n[h],z=x.groups?x.groups+1:1;!x.literal&&x.token&&(c[x.token.val[0]]=x.deser(l.slice(g,g+z))),g+=z}return[l,c]}else return[l,{}]}function Mx(o){const t=g=>{switch(g){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 n=null,l;return Mt(o.z)||(n=Xo.create(o.z)),Mt(o.Z)||(n||(n=new mn(o.Z)),l=o.Z),Mt(o.q)||(o.M=(o.q-1)*3+1),Mt(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),Mt(o.u)||(o.S=qh(o.u)),[Object.keys(o).reduce((g,h)=>{const x=t(h);return x&&(g[x]=o[h]),g},{}),n,l]}let Kf=null;function _x(){return Kf||(Kf=at.fromMillis(1555555555555)),Kf}function Tx(o,t){if(o.literal)return o;const n=sn.macroTokenToFormatOpts(o.val),l=j4(n,t);return l==null||l.includes(void 0)?o:l}function G4(o,t){return Array.prototype.concat(...o.map(n=>Tx(n,t)))}function q4(o,t,n){const l=G4(sn.parseFormat(n),o),c=l.map(h=>wx(h,o)),g=c.find(h=>h.invalidReason);if(g)return{input:t,tokens:l,invalidReason:g.invalidReason};{const[h,x]=Lx(c),z=RegExp(h,"i"),[S,E]=Sx(t,z,x),[D,B,R]=E?Mx(E):[null,null,void 0];if(p1(E,"a")&&p1(E,"H"))throw new Su("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:l,regex:z,rawMatches:S,matches:E,result:D,zone:B,specificOffset:R}}}function Ox(o,t,n){const{result:l,zone:c,specificOffset:g,invalidReason:h}=q4(o,t,n);return[l,c,g,h]}function j4(o,t){if(!o)return null;const l=sn.create(t,o).dtFormatter(_x()),c=l.formatToParts(),g=l.resolvedOptions();return c.map(h=>zx(h,o,g))}const K4=[0,31,59,90,120,151,181,212,243,273,304,334],Y4=[0,31,60,91,121,152,182,213,244,274,305,335];function fi(o,t){return new $i("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${o}, which is invalid`)}function X4(o,t,n){const l=new Date(Date.UTC(o,t-1,n));o<100&&o>=0&&l.setUTCFullYear(l.getUTCFullYear()-1900);const c=l.getUTCDay();return c===0?7:c}function J4(o,t,n){return n+(ju(o)?Y4:K4)[t-1]}function Q4(o,t){const n=ju(o)?Y4:K4,l=n.findIndex(g=>g<t),c=t-n[l];return{month:l+1,day:c}}function yh(o){const{year:t,month:n,day:l}=o,c=J4(t,n,l),g=X4(t,n,l);let h=Math.floor((c-g+10)/7),x;return h<1?(x=t-1,h=td(x)):h>td(t)?(x=t+1,h=1):x=t,{weekYear:x,weekNumber:h,weekday:g,...wd(o)}}function j2(o){const{weekYear:t,weekNumber:n,weekday:l}=o,c=X4(t,1,4),g=ku(t);let h=n*7+l-c-3,x;h<1?(x=t-1,h+=ku(x)):h>g?(x=t+1,h-=ku(t)):x=t;const{month:z,day:S}=Q4(x,h);return{year:x,month:z,day:S,...wd(o)}}function Yf(o){const{year:t,month:n,day:l}=o,c=J4(t,n,l);return{year:t,ordinal:c,...wd(o)}}function K2(o){const{year:t,ordinal:n}=o,{month:l,day:c}=Q4(t,n);return{year:t,month:l,day:c,...wd(o)}}function kx(o){const t=md(o.weekYear),n=Ko(o.weekNumber,1,td(o.weekYear)),l=Ko(o.weekday,1,7);return t?n?l?!1:fi("weekday",o.weekday):fi("week",o.week):fi("weekYear",o.weekYear)}function Ex(o){const t=md(o.year),n=Ko(o.ordinal,1,ku(o.year));return t?n?!1:fi("ordinal",o.ordinal):fi("year",o.year)}function e3(o){const t=md(o.year),n=Ko(o.month,1,12),l=Ko(o.day,1,ed(o.year,o.month));return t?n?l?!1:fi("day",o.day):fi("month",o.month):fi("year",o.year)}function t3(o){const{hour:t,minute:n,second:l,millisecond:c}=o,g=Ko(t,0,23)||t===24&&n===0&&l===0&&c===0,h=Ko(n,0,59),x=Ko(l,0,59),z=Ko(c,0,999);return g?h?x?z?!1:fi("millisecond",c):fi("second",l):fi("minute",n):fi("hour",t)}const Xf="Invalid DateTime",Y2=864e13;function T0(o){return new $i("unsupported zone",`the zone "${o.name}" is not supported`)}function Jf(o){return o.weekData===null&&(o.weekData=yh(o.c)),o.weekData}function Ds(o,t){const n={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new at({...n,...t,old:n})}function r3(o,t,n){let l=o-t*60*1e3;const c=n.offset(l);if(t===c)return[l,t];l-=(c-t)*60*1e3;const g=n.offset(l);return c===g?[l,c]:[o-Math.min(c,g)*60*1e3,Math.max(c,g)]}function O0(o,t){o+=t*60*1e3;const n=new Date(o);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function P0(o,t,n){return r3(yd(o),t,n)}function X2(o,t){const n=o.o,l=o.c.year+Math.trunc(t.years),c=o.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,g={...o.c,year:l,month:c,day:Math.min(o.c.day,ed(l,c))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},h=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),x=yd(g);let[z,S]=r3(x,n,o.zone);return h!==0&&(z+=h,S=o.zone.offset(z)),{ts:z,o:S}}function xu(o,t,n,l,c,g){const{setZone:h,zone:x}=n;if(o&&Object.keys(o).length!==0||t){const z=t||x,S=at.fromObject(o,{...n,zone:z,specificOffset:g});return h?S:S.setZone(x)}else return at.invalid(new $i("unparsable",`the input "${c}" can't be parsed as ${l}`))}function k0(o,t,n=!0){return o.isValid?sn.create(Kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(o,t):null}function Qf(o,t){const n=o.c.year>9999||o.c.year<0;let l="";return n&&o.c.year>=0&&(l+="+"),l+=xr(o.c.year,n?6:4),t?(l+="-",l+=xr(o.c.month),l+="-",l+=xr(o.c.day)):(l+=xr(o.c.month),l+=xr(o.c.day)),l}function J2(o,t,n,l,c,g){let h=xr(o.c.hour);return t?(h+=":",h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=":")):h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=xr(o.c.second),(o.c.millisecond!==0||!l)&&(h+=".",h+=xr(o.c.millisecond,3))),c&&(o.isOffsetFixed&&o.offset===0&&!g?h+="Z":o.o<0?(h+="-",h+=xr(Math.trunc(-o.o/60)),h+=":",h+=xr(Math.trunc(-o.o%60))):(h+="+",h+=xr(Math.trunc(o.o/60)),h+=":",h+=xr(Math.trunc(o.o%60)))),g&&(h+="["+o.zone.ianaName+"]"),h}const n3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ix={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ax={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i3=["year","month","day","hour","minute","second","millisecond"],$x=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Px=["year","ordinal","hour","minute","second","millisecond"];function Q2(o){const t={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"}[o.toLowerCase()];if(!t)throw new o4(o);return t}function e5(o,t){const n=Wa(t.zone,wr.defaultZone),l=Kt.fromObject(t),c=wr.now();let g,h;if(Mt(o.year))g=c;else{for(const S of i3)Mt(o[S])&&(o[S]=n3[S]);const x=e3(o)||t3(o);if(x)return at.invalid(x);const z=n.offset(c);[g,h]=P0(o,z,n)}return new at({ts:g,zone:n,loc:l,o:h})}function t5(o,t,n){const l=Mt(n.round)?!0:n.round,c=(h,x)=>(h=jh(h,l||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(h,x)),g=h=>n.calendary?t.hasSame(o,h)?0:t.startOf(h).diff(o.startOf(h),h).get(h):t.diff(o,h).get(h);if(n.unit)return c(g(n.unit),n.unit);for(const h of n.units){const x=g(h);if(Math.abs(x)>=1)return c(x,h)}return c(o>t?-0:0,n.units[n.units.length-1])}function r5(o){let t={},n;return o.length>0&&typeof o[o.length-1]=="object"?(t=o[o.length-1],n=Array.from(o).slice(0,o.length-1)):n=Array.from(o),[t,n]}class at{constructor(t){const n=t.zone||wr.defaultZone;let l=t.invalid||(Number.isNaN(t.ts)?new $i("invalid input"):null)||(n.isValid?null:T0(n));this.ts=Mt(t.ts)?wr.now():t.ts;let c=null,g=null;if(!l)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[c,g]=[t.old.c,t.old.o];else{const x=n.offset(this.ts);c=O0(this.ts,x),l=Number.isNaN(c.year)?new $i("invalid input"):null,c=l?null:c,g=l?null:x}this._zone=n,this.loc=t.loc||Kt.create(),this.invalid=l,this.weekData=null,this.c=c,this.o=g,this.isLuxonDateTime=!0}static now(){return new at({})}static local(){const[t,n]=r5(arguments),[l,c,g,h,x,z,S]=n;return e5({year:l,month:c,day:g,hour:h,minute:x,second:z,millisecond:S},t)}static utc(){const[t,n]=r5(arguments),[l,c,g,h,x,z,S]=n;return t.zone=mn.utcInstance,e5({year:l,month:c,day:g,hour:h,minute:x,second:z,millisecond:S},t)}static fromJSDate(t,n={}){const l=lw(t)?t.valueOf():NaN;if(Number.isNaN(l))return at.invalid("invalid input");const c=Wa(n.zone,wr.defaultZone);return c.isValid?new at({ts:l,zone:c,loc:Kt.fromObject(n)}):at.invalid(T0(c))}static fromMillis(t,n={}){if(Vs(t))return t<-Y2||t>Y2?at.invalid("Timestamp out of range"):new at({ts:t,zone:Wa(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Vs(t))return new at({ts:t*1e3,zone:Wa(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const l=Wa(n.zone,wr.defaultZone);if(!l.isValid)return at.invalid(T0(l));const c=wr.now(),g=Mt(n.specificOffset)?l.offset(c):n.specificOffset,h=rd(t,Q2),x=!Mt(h.ordinal),z=!Mt(h.year),S=!Mt(h.month)||!Mt(h.day),E=z||S,D=h.weekYear||h.weekNumber,B=Kt.fromObject(n);if((E||x)&&D)throw new Su("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&x)throw new Su("Can't mix ordinal dates with month/day");const R=D||h.weekday&&!E;let J,pe,ge=O0(c,g);R?(J=$x,pe=Ix,ge=yh(ge)):x?(J=Px,pe=Ax,ge=Yf(ge)):(J=i3,pe=n3);let Te=!1;for(const je of J){const Ye=h[je];Mt(Ye)?Te?h[je]=pe[je]:h[je]=ge[je]:Te=!0}const Ie=R?kx(h):x?Ex(h):e3(h),be=Ie||t3(h);if(be)return at.invalid(be);const ve=R?j2(h):x?K2(h):h,[Oe,$e]=P0(ve,g,l),De=new at({ts:Oe,zone:l,o:$e,loc:B});return h.weekday&&E&&t.weekday!==De.weekday?at.invalid("mismatched weekday",`you can't specify both a weekday of ${h.weekday} and a date of ${De.toISO()}`):De}static fromISO(t,n={}){const[l,c]=Xw(t);return xu(l,c,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[l,c]=Jw(t);return xu(l,c,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[l,c]=Qw(t);return xu(l,c,n,"HTTP",n)}static fromFormat(t,n,l={}){if(Mt(t)||Mt(n))throw new di("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0}),[x,z,S,E]=Ox(h,t,n);return E?at.invalid(E):xu(x,z,l,`format ${n}`,t,S)}static fromString(t,n,l={}){return at.fromFormat(t,n,l)}static fromSQL(t,n={}){const[l,c]=ax(t);return xu(l,c,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the DateTime is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new HC(l);return new at({invalid:l})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const l=j4(t,Kt.fromObject(n));return l?l.map(c=>c?c.val:null).join(""):null}static expandFormat(t,n={}){return G4(sn.parseFormat(t),Kt.fromObject(n)).map(c=>c.val).join("")}get(t){return this[t]}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?Jf(this).weekYear:NaN}get weekNumber(){return this.isValid?Jf(this).weekNumber:NaN}get weekday(){return this.isValid?Jf(this).weekday:NaN}get ordinal(){return this.isValid?Yf(this.c).ordinal:NaN}get monthShort(){return this.isValid?M0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?M0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?M0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?M0.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 t=864e5,n=6e4,l=yd(this.c),c=this.zone.offset(l-t),g=this.zone.offset(l+t),h=this.zone.offset(l-c*n),x=this.zone.offset(l-g*n);if(h===x)return[this];const z=l-h*n,S=l-x*n,E=O0(z,h),D=O0(S,x);return E.hour===D.hour&&E.minute===D.minute&&E.second===D.second&&E.millisecond===D.millisecond?[Ds(this,{ts:z}),Ds(this,{ts:S})]:[this]}get isInLeapYear(){return ju(this.year)}get daysInMonth(){return ed(this.year,this.month)}get daysInYear(){return this.isValid?ku(this.year):NaN}get weeksInWeekYear(){return this.isValid?td(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:l,calendar:c}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:l,outputCalendar:c}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(wr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:l=!1}={}){if(t=Wa(t,wr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let c=this.ts;if(n||l){const g=t.offset(this.ts),h=this.toObject();[c]=P0(h,g,t)}return Ds(this,{ts:c,zone:t})}else return at.invalid(T0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:l}={}){const c=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:l});return Ds(this,{loc:c})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=rd(t,Q2),l=!Mt(n.weekYear)||!Mt(n.weekNumber)||!Mt(n.weekday),c=!Mt(n.ordinal),g=!Mt(n.year),h=!Mt(n.month)||!Mt(n.day),x=g||h,z=n.weekYear||n.weekNumber;if((x||c)&&z)throw new Su("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Su("Can't mix ordinal dates with month/day");let S;l?S=j2({...yh(this.c),...n}):Mt(n.ordinal)?(S={...this.toObject(),...n},Mt(n.day)&&(S.day=Math.min(ed(S.year,S.month),S.day))):S=K2({...Yf(this.c),...n});const[E,D]=P0(S,this.o,this.zone);return Ds(this,{ts:E,o:D})}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return Ds(this,X2(this,n))}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t).negate();return Ds(this,X2(this,n))}startOf(t){if(!this.isValid)return this;const n={},l=Ot.normalizeUnit(t);switch(l){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(l==="weeks"&&(n.weekday=1),l==="quarters"){const c=Math.ceil(this.month/3);n.month=(c-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?sn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Xf}toLocaleString(t=Q0,n={}){return this.isValid?sn.create(this.loc.clone(n),t).formatDateTime(this):Xf}toLocaleParts(t={}){return this.isValid?sn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:l=!1,includeOffset:c=!0,extendedZone:g=!1}={}){if(!this.isValid)return null;const h=t==="extended";let x=Qf(this,h);return x+="T",x+=J2(this,h,n,l,c,g),x}toISODate({format:t="extended"}={}){return this.isValid?Qf(this,t==="extended"):null}toISOWeekDate(){return k0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:l=!0,includePrefix:c=!1,extendedZone:g=!1,format:h="extended"}={}){return this.isValid?(c?"T":"")+J2(this,h==="extended",n,t,l,g):null}toRFC2822(){return k0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return k0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qf(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:l=!0}={}){let c="HH:mm:ss.SSS";return(n||t)&&(l&&(c+=" "),n?c+="z":t&&(c+="ZZ")),k0(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Xf}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(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",l={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...l},g=uw(n).map(Ot.normalizeUnit),h=t.valueOf()>this.valueOf(),x=h?this:t,z=h?t:this,S=px(x,z,g,c);return h?S.negate():S}diffNow(t="milliseconds",n={}){return this.diff(at.now(),t,n)}until(t){return this.isValid?ir.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const l=t.valueOf(),c=this.setZone(t.zone,{keepLocalTime:!0});return c.startOf(n)<=l&&l<=c.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||at.fromObject({},{zone:this.zone}),l=t.padding?this<n?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],g=t.unit;return Array.isArray(t.unit)&&(c=t.unit,g=void 0),t5(n,this.plus(l),{...t,numeric:"always",units:c,unit:g})}toRelativeCalendar(t={}){return this.isValid?t5(t.base||at.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(at.isDateTime))throw new di("min requires all arguments be DateTimes");return F2(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(at.isDateTime))throw new di("max requires all arguments be DateTimes");return F2(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,l={}){const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0});return q4(h,t,n)}static fromStringExplain(t,n,l={}){return at.fromFormatExplain(t,n,l)}static get DATE_SHORT(){return Q0}static get DATE_MED(){return a4}static get DATE_MED_WITH_WEEKDAY(){return WC}static get DATE_FULL(){return s4}static get DATE_HUGE(){return l4}static get TIME_SIMPLE(){return u4}static get TIME_WITH_SECONDS(){return c4}static get TIME_WITH_SHORT_OFFSET(){return d4}static get TIME_WITH_LONG_OFFSET(){return f4}static get TIME_24_SIMPLE(){return h4}static get TIME_24_WITH_SECONDS(){return p4}static get TIME_24_WITH_SHORT_OFFSET(){return g4}static get TIME_24_WITH_LONG_OFFSET(){return v4}static get DATETIME_SHORT(){return b4}static get DATETIME_SHORT_WITH_SECONDS(){return m4}static get DATETIME_MED(){return y4}static get DATETIME_MED_WITH_SECONDS(){return C4}static get DATETIME_MED_WITH_WEEKDAY(){return VC}static get DATETIME_FULL(){return w4}static get DATETIME_FULL_WITH_SECONDS(){return x4}static get DATETIME_HUGE(){return z4}static get DATETIME_HUGE_WITH_SECONDS(){return L4}}function zu(o){if(at.isDateTime(o))return o;if(o&&o.valueOf&&Vs(o.valueOf()))return at.fromJSDate(o);if(o&&typeof o=="object")return at.fromObject(o);throw new di(`Unknown datetime argument: ${o}, of type ${typeof o}`)}const Dx={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},Nx=o=>at.local().setZone(o).isValid,Ch=o=>o.hour<12,n5=o=>!Ch(o),Rx=(o,t)=>Ch(o)&&Ch(t)||n5(o)&&n5(t),i5=(o,t)=>{var c;const n=t&&Nx(t)?t:"utc",l=(c=Dx[n.split("/")[0]])!=null?c:"en-us";return o.setZone(n).setLocale(l)},o5=o=>Hx(o3(o)),Hx=o=>o.replace(/Sept/,"Sep"),o3=o=>o.replace(/(AM|PM)/,t=>t.toLowerCase());var Fx=Object.defineProperty,Bx=Object.getOwnPropertyDescriptor,qa=(o,t,n,l)=>{for(var c=l>1?void 0:l?Bx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fx(t,n,c),c};const a3=Le("input-time"),s3="h:mma",l3=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,u3=/^(1[3-9]|2[0-3]).*/,c3=/^(\d\d?)(am?|pm?)/,Wx=["UTC","AEST"],d3=(o,t)=>({label:`${o}${t?` (${t})`:""}`,value:o}),a5=(o,t)=>{const l=Math.ceil(1440/o),c=at.local().startOf("day");return Array(l).fill(null).map((g,h)=>{const x=c.plus({minutes:o*h}),z=o3(x.toFormat(s3));return d3(z,t)})},Vx=(o,t)=>{const n=o.trim(),l=o.match(l3);if(!n||!l)return[];const[,c,g,h]=l,x=parseInt(c,10),z=x>12?`${x-12}`:`${x}`,S=`${g}${h||0}`,E=`${z}:${S}`;return["am","pm"].map(D=>d3(`${E}${D}`,t))},Zx=(o,{value:t})=>{const n=o.match(u3);if(!n||!t)return!1;const[,l]=n,c=`${parseInt(l,10)-12}`,g=o.substring(l.length).replace(":",""),h=`${c}:${g}`;return t.startsWith(h)&&t.endsWith("pm")},Ux=(o,{value:t})=>{const n=o.match(c3);if(!n)return!1;const[,l,c]=n;return!!(t!=null&&t.replace(":00","").startsWith(`${l}${c}`))},Gx=(...o)=>Ux(...o)||Zx(...o);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=a5(this.increment,this.suffix)}updated(t){super.updated(t),t.has("increment")&&(this.options=a5(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var t;this.valueLabel=this.value&&this.value!==this.placeholder?(t=this.getItems().find(({value:n})=>n===this.value))==null?void 0:t.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(t){return this.query?Gx(this.query,t):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=Vx(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return j`
|
|
3411
|
+
`];Gu([F({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Gu([F({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Gu([F({type:Array})],exports.InputMultiselect.prototype,"value",2);Gu([Be()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Gu([ee(o4)],exports.InputMultiselect);class tl extends Error{}class FC extends tl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class BC extends tl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class VC extends tl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Su extends tl{}class a4 extends tl{constructor(t){super(`Invalid unit ${t}`)}}class di extends tl{}class Ra extends tl{constructor(){super("Zone is an abstract class")}}const _e="numeric",Ni="short",Kn="long",Q0={year:_e,month:_e,day:_e},s4={year:_e,month:Ni,day:_e},WC={year:_e,month:Ni,day:_e,weekday:Ni},l4={year:_e,month:Kn,day:_e},u4={year:_e,month:Kn,day:_e,weekday:Kn},c4={hour:_e,minute:_e},d4={hour:_e,minute:_e,second:_e},f4={hour:_e,minute:_e,second:_e,timeZoneName:Ni},h4={hour:_e,minute:_e,second:_e,timeZoneName:Kn},p4={hour:_e,minute:_e,hourCycle:"h23"},g4={hour:_e,minute:_e,second:_e,hourCycle:"h23"},v4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Ni},b4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Kn},m4={year:_e,month:_e,day:_e,hour:_e,minute:_e},y4={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},C4={year:_e,month:Ni,day:_e,hour:_e,minute:_e},w4={year:_e,month:Ni,day:_e,hour:_e,minute:_e,second:_e},ZC={year:_e,month:Ni,day:_e,weekday:Ni,hour:_e,minute:_e},x4={year:_e,month:Kn,day:_e,hour:_e,minute:_e,timeZoneName:Ni},z4={year:_e,month:Kn,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:Ni},L4={year:_e,month:Kn,day:_e,weekday:Kn,hour:_e,minute:_e,timeZoneName:Kn},S4={year:_e,month:Kn,day:_e,weekday:Kn,hour:_e,minute:_e,second:_e,timeZoneName:Kn};class qu{get type(){throw new Ra}get name(){throw new Ra}get ianaName(){return this.name}get isUniversal(){throw new Ra}offsetName(t,n){throw new Ra}formatOffset(t,n){throw new Ra}offset(t){throw new Ra}equals(t){throw new Ra}get isValid(){throw new Ra}}let qf=null;class bd extends qu{static get instance(){return qf===null&&(qf=new bd),qf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return _4(t,n,l)}formatOffset(t,n){return ku(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let $0={};function UC(o){return $0[o]||($0[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$0[o]}const GC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function qC(o,t){const n=o.format(t).replace(/\u200E/g,""),l=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,g,h,w,z,S,k]=l;return[h,c,g,w,z,S,k]}function jC(o,t){const n=o.formatToParts(t),l=[];for(let c=0;c<n.length;c++){const{type:g,value:h}=n[c],w=GC[g];g==="era"?l[w]=h:Mt(w)||(l[w]=parseInt(h,10))}return l}let L0={};class Xo extends qu{static create(t){return L0[t]||(L0[t]=new Xo(t)),L0[t]}static resetCache(){L0={},$0={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return _4(t,n,l,this.name)}formatOffset(t,n){return ku(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const l=UC(this.name);let[c,g,h,w,z,S,k]=l.formatToParts?jC(l,n):qC(l,n);w==="BC"&&(c=-Math.abs(c)+1);const B=yd({year:c,month:g,day:h,hour:z===24?0:z,minute:S,second:k,millisecond:0});let R=+n;const J=R%1e3;return R-=J>=0?J:1e3+J,(B-R)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let A2={};function KC(o,t={}){const n=JSON.stringify([o,t]);let l=A2[n];return l||(l=new Intl.ListFormat(o,t),A2[n]=l),l}let gh={};function vh(o,t={}){const n=JSON.stringify([o,t]);let l=gh[n];return l||(l=new Intl.DateTimeFormat(o,t),gh[n]=l),l}let bh={};function YC(o,t={}){const n=JSON.stringify([o,t]);let l=bh[n];return l||(l=new Intl.NumberFormat(o,t),bh[n]=l),l}let mh={};function XC(o,t={}){const{base:n,...l}=t,c=JSON.stringify([o,l]);let g=mh[c];return g||(g=new Intl.RelativeTimeFormat(o,t),mh[c]=g),g}let Mu=null;function JC(){return Mu||(Mu=new Intl.DateTimeFormat().resolvedOptions().locale,Mu)}function QC(o){const t=o.indexOf("-x-");t!==-1&&(o=o.substring(0,t));const n=o.indexOf("-u-");if(n===-1)return[o];{let l,c;try{l=vh(o).resolvedOptions(),c=o}catch{const z=o.substring(0,n);l=vh(z).resolvedOptions(),c=z}const{numberingSystem:g,calendar:h}=l;return[c,g,h]}}function ew(o,t,n){return(n||t)&&(o.includes("-u-")||(o+="-u"),n&&(o+=`-ca-${n}`),t&&(o+=`-nu-${t}`)),o}function tw(o){const t=[];for(let n=1;n<=12;n++){const l=at.utc(2009,n,1);t.push(o(l))}return t}function rw(o){const t=[];for(let n=1;n<=7;n++){const l=at.utc(2016,11,13+n);t.push(o(l))}return t}function S0(o,t,n,l){const c=o.listingMode();return c==="error"?null:c==="en"?n(t):l(t)}function nw(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||new Intl.DateTimeFormat(o.intl).resolvedOptions().numberingSystem==="latn"}class iw{constructor(t,n,l){this.padTo=l.padTo||0,this.floor=l.floor||!1;const{padTo:c,floor:g,...h}=l;if(!n||Object.keys(h).length>0){const w={useGrouping:!1,...l};l.padTo>0&&(w.minimumIntegerDigits=l.padTo),this.inf=YC(t,w)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Kh(t,3);return xr(n,this.padTo)}}}class ow{constructor(t,n,l){this.opts=l,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const h=-1*(t.offset/60),w=h>=0?`Etc/GMT+${h}`:`Etc/GMT${h}`;t.offset!==0&&Xo.create(w).valid?(c=w,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const g={...this.opts};g.timeZone=g.timeZone||c,this.dtf=vh(n,g)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const l=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:l}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class aw{constructor(t,n,l){this.opts={style:"long",...l},!n&&M4()&&(this.rtf=XC(t,l))}format(t,n){return this.rtf?this.rtf.format(t,n):zw(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Kt{static fromOpts(t){return Kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,l,c=!1){const g=t||wr.defaultLocale,h=g||(c?"en-US":JC()),w=n||wr.defaultNumberingSystem,z=l||wr.defaultOutputCalendar;return new Kt(h,w,z,g)}static resetCache(){Mu=null,gh={},bh={},mh={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:l}={}){return Kt.create(t,n,l)}constructor(t,n,l,c){const[g,h,w]=QC(t);this.locale=g,this.numberingSystem=n||h||null,this.outputCalendar=l||w||null,this.intl=ew(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=nw(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return S0(this,t,E4,()=>{const l=n?{month:t,day:"numeric"}:{month:t},c=n?"format":"standalone";return this.monthsCache[c][t]||(this.monthsCache[c][t]=tw(g=>this.extract(g,l,"month"))),this.monthsCache[c][t]})}weekdays(t,n=!1){return S0(this,t,A4,()=>{const l=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=n?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=rw(g=>this.extract(g,l,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return S0(this,void 0,()=>$4,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[at.utc(2016,11,13,9),at.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return S0(this,t,P4,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[at.utc(-40,1,1),at.utc(2017,1,1)].map(l=>this.extract(l,n,"era"))),this.eraCache[t]})}extract(t,n,l){const c=this.dtFormatter(t,n),g=c.formatToParts(),h=g.find(w=>w.type.toLowerCase()===l);return h?h.value:null}numberFormatter(t={}){return new iw(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new ow(t,this.intl,n)}relFormatter(t={}){return new aw(this.intl,this.isEnglish(),t)}listFormatter(t={}){return KC(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let jf=null;class mn extends qu{static get utcInstance(){return jf===null&&(jf=new mn(0)),jf}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(Cd(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ku(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ku(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ku(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class sw extends qu{constructor(t){super(),this.zoneName=t}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 Va(o,t){if(Mt(o)||o===null)return t;if(o instanceof qu)return o;if(lw(o)){const n=o.toLowerCase();return n==="default"?t:n==="local"||n==="system"?bd.instance:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||Xo.create(o)}else return Zs(o)?mn.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new sw(o)}let $2=()=>Date.now(),P2="system",D2=null,N2=null,R2=null,H2=60,F2;class wr{static get now(){return $2}static set now(t){$2=t}static set defaultZone(t){P2=t}static get defaultZone(){return Va(P2,bd.instance)}static get defaultLocale(){return D2}static set defaultLocale(t){D2=t}static get defaultNumberingSystem(){return N2}static set defaultNumberingSystem(t){N2=t}static get defaultOutputCalendar(){return R2}static set defaultOutputCalendar(t){R2=t}static get twoDigitCutoffYear(){return H2}static set twoDigitCutoffYear(t){H2=t%100}static get throwOnInvalid(){return F2}static set throwOnInvalid(t){F2=t}static resetCaches(){Kt.resetCache(),Xo.resetCache()}}function Mt(o){return typeof o=="undefined"}function Zs(o){return typeof o=="number"}function md(o){return typeof o=="number"&&o%1===0}function lw(o){return typeof o=="string"}function uw(o){return Object.prototype.toString.call(o)==="[object Date]"}function M4(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function cw(o){return Array.isArray(o)?o:[o]}function B2(o,t,n){if(o.length!==0)return o.reduce((l,c)=>{const g=[t(c),c];return l&&n(l[0],g[0])===l[0]?l:g},null)[1]}function dw(o,t){return t.reduce((n,l)=>(n[l]=o[l],n),{})}function p1(o,t){return Object.prototype.hasOwnProperty.call(o,t)}function Ko(o,t,n){return md(o)&&o>=t&&o<=n}function fw(o,t){return o-t*Math.floor(o/t)}function xr(o,t=2){const n=o<0;let l;return n?l="-"+(""+-o).padStart(t,"0"):l=(""+o).padStart(t,"0"),l}function Fa(o){if(!(Mt(o)||o===null||o===""))return parseInt(o,10)}function Ds(o){if(!(Mt(o)||o===null||o===""))return parseFloat(o)}function jh(o){if(!(Mt(o)||o===null||o==="")){const t=parseFloat("0."+o)*1e3;return Math.floor(t)}}function Kh(o,t,n=!1){const l=10**t;return(n?Math.trunc:Math.round)(o*l)/l}function ju(o){return o%4===0&&(o%100!==0||o%400===0)}function Eu(o){return ju(o)?366:365}function ed(o,t){const n=fw(t-1,12)+1,l=o+(t-n)/12;return n===2?ju(l)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function yd(o){let t=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(t=new Date(t),t.setUTCFullYear(o.year,o.month-1,o.day)),+t}function td(o){const t=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,n=o-1,l=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||l===3?53:52}function yh(o){return o>99?o:o>wr.twoDigitCutoffYear?1900+o:2e3+o}function _4(o,t,n,l=null){const c=new Date(o),g={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};l&&(g.timeZone=l);const h={timeZoneName:t,...g},w=new Intl.DateTimeFormat(n,h).formatToParts(c).find(z=>z.type.toLowerCase()==="timezonename");return w?w.value:null}function Cd(o,t){let n=parseInt(o,10);Number.isNaN(n)&&(n=0);const l=parseInt(t,10)||0,c=n<0||Object.is(n,-0)?-l:l;return n*60+c}function T4(o){const t=Number(o);if(typeof o=="boolean"||o===""||Number.isNaN(t))throw new di(`Invalid unit value ${o}`);return t}function rd(o,t){const n={};for(const l in o)if(p1(o,l)){const c=o[l];if(c==null)continue;n[t(l)]=T4(c)}return n}function ku(o,t){const n=Math.trunc(Math.abs(o/60)),l=Math.trunc(Math.abs(o%60)),c=o>=0?"+":"-";switch(t){case"short":return`${c}${xr(n,2)}:${xr(l,2)}`;case"narrow":return`${c}${n}${l>0?`:${l}`:""}`;case"techie":return`${c}${xr(n,2)}${xr(l,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function wd(o){return dw(o,["hour","minute","second","millisecond"])}const hw=["January","February","March","April","May","June","July","August","September","October","November","December"],O4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pw=["J","F","M","A","M","J","J","A","S","O","N","D"];function E4(o){switch(o){case"narrow":return[...pw];case"short":return[...O4];case"long":return[...hw];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 k4=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],I4=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],gw=["M","T","W","T","F","S","S"];function A4(o){switch(o){case"narrow":return[...gw];case"short":return[...I4];case"long":return[...k4];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const $4=["AM","PM"],vw=["Before Christ","Anno Domini"],bw=["BC","AD"],mw=["B","A"];function P4(o){switch(o){case"narrow":return[...mw];case"short":return[...bw];case"long":return[...vw];default:return null}}function yw(o){return $4[o.hour<12?0:1]}function Cw(o,t){return A4(t)[o.weekday-1]}function ww(o,t){return E4(t)[o.month-1]}function xw(o,t){return P4(t)[o.year<0?0:1]}function zw(o,t,n="always",l=!1){const c={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."]},g=["hours","minutes","seconds"].indexOf(o)===-1;if(n==="auto"&&g){const D=o==="days";switch(t){case 1:return D?"tomorrow":`next ${c[o][0]}`;case-1:return D?"yesterday":`last ${c[o][0]}`;case 0:return D?"today":`this ${c[o][0]}`}}const h=Object.is(t,-0)||t<0,w=Math.abs(t),z=w===1,S=c[o],k=l?z?S[1]:S[2]||S[1]:z?c[o][0]:o;return h?`${w} ${k} ago`:`in ${w} ${k}`}function V2(o,t){let n="";for(const l of o)l.literal?n+=l.val:n+=t(l.val);return n}const Lw={D:Q0,DD:s4,DDD:l4,DDDD:u4,t:c4,tt:d4,ttt:f4,tttt:h4,T:p4,TT:g4,TTT:v4,TTTT:b4,f:m4,ff:C4,fff:x4,ffff:L4,F:y4,FF:w4,FFF:z4,FFFF:S4};class sn{static create(t,n={}){return new sn(t,n)}static parseFormat(t){let n=null,l="",c=!1;const g=[];for(let h=0;h<t.length;h++){const w=t.charAt(h);w==="'"?(l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),n=null,l="",c=!c):c||w===n?l+=w:(l.length>0&&g.push({literal:/^\s+$/.test(l),val:l}),l=w,n=w)}return l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),g}static macroTokenToFormatOpts(t){return Lw[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return xr(t,n);const l={...this.opts};return n>0&&(l.padTo=n),this.loc.numberFormatter(l).format(t)}formatDateTimeFromString(t,n){const l=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",g=(R,J)=>this.loc.extract(t,R,J),h=R=>t.isOffsetFixed&&t.offset===0&&R.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,R.format):"",w=()=>l?yw(t):g({hour:"numeric",hourCycle:"h12"},"dayperiod"),z=(R,J)=>l?ww(t,R):g(J?{month:R}:{month:R,day:"numeric"},"month"),S=(R,J)=>l?Cw(t,R):g(J?{weekday:R}:{weekday:R,month:"long",day:"numeric"},"weekday"),k=R=>{const J=sn.macroTokenToFormatOpts(R);return J?this.formatWithSystemDefault(t,J):R},D=R=>l?xw(t,R):g({era:R},"era"),B=R=>{switch(R){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return h({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return h({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return h({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return w();case"d":return c?g({day:"numeric"},"day"):this.num(t.day);case"dd":return c?g({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return c?g({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?g({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return z("short",!0);case"LLLL":return z("long",!0);case"LLLLL":return z("narrow",!0);case"M":return c?g({month:"numeric"},"month"):this.num(t.month);case"MM":return c?g({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return z("short",!1);case"MMMM":return z("long",!1);case"MMMMM":return z("narrow",!1);case"y":return c?g({year:"numeric"},"year"):this.num(t.year);case"yy":return c?g({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?g({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?g({year:"numeric"},"year"):this.num(t.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return k(R)}};return V2(sn.parseFormat(n),B)}formatDurationFromString(t,n){const l=z=>{switch(z[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}},c=z=>S=>{const k=l(S);return k?this.num(z.get(k),S.length):S},g=sn.parseFormat(n),h=g.reduce((z,{literal:S,val:k})=>S?z:z.concat(k),[]),w=t.shiftTo(...h.map(l).filter(z=>z));return V2(g,c(w))}}class $i{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const D4=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function b1(...o){const t=o.reduce((n,l)=>n+l.source,"");return RegExp(`^${t}$`)}function m1(...o){return t=>o.reduce(([n,l,c],g)=>{const[h,w,z]=g(t,c);return[{...n,...h},w||l,z]},[{},null,1]).slice(0,2)}function y1(o,...t){if(o==null)return[null,null];for(const[n,l]of t){const c=n.exec(o);if(c)return l(c)}return[null,null]}function N4(...o){return(t,n)=>{const l={};let c;for(c=0;c<o.length;c++)l[o[c]]=Fa(t[n+c]);return[l,null,n+c]}}const R4=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Sw=`(?:${R4.source}?(?:\\[(${D4.source})\\])?)?`,Yh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,H4=RegExp(`${Yh.source}${Sw}`),Xh=RegExp(`(?:T${H4.source})?`),Mw=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_w=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Tw=/(\d{4})-?(\d{3})/,Ow=N4("weekYear","weekNumber","weekDay"),Ew=N4("year","ordinal"),kw=/(\d{4})-(\d\d)-(\d\d)/,F4=RegExp(`${Yh.source} ?(?:${R4.source}|(${D4.source}))?`),Iw=RegExp(`(?: ${F4.source})?`);function o1(o,t,n){const l=o[t];return Mt(l)?n:Fa(l)}function Aw(o,t){return[{year:o1(o,t),month:o1(o,t+1,1),day:o1(o,t+2,1)},null,t+3]}function C1(o,t){return[{hours:o1(o,t,0),minutes:o1(o,t+1,0),seconds:o1(o,t+2,0),milliseconds:jh(o[t+3])},null,t+4]}function Ku(o,t){const n=!o[t]&&!o[t+1],l=Cd(o[t+1],o[t+2]),c=n?null:mn.instance(l);return[{},c,t+3]}function Yu(o,t){const n=o[t]?Xo.create(o[t]):null;return[{},n,t+1]}const $w=RegExp(`^T?${Yh.source}$`),Pw=/^-?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 Dw(o){const[t,n,l,c,g,h,w,z,S]=o,k=t[0]==="-",D=z&&z[0]==="-",B=(R,J=!1)=>R!==void 0&&(J||R&&k)?-R:R;return[{years:B(Ds(n)),months:B(Ds(l)),weeks:B(Ds(c)),days:B(Ds(g)),hours:B(Ds(h)),minutes:B(Ds(w)),seconds:B(Ds(z),z==="-0"),milliseconds:B(jh(S),D)}]}const Nw={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 Jh(o,t,n,l,c,g,h){const w={year:t.length===2?yh(Fa(t)):Fa(t),month:O4.indexOf(n)+1,day:Fa(l),hour:Fa(c),minute:Fa(g)};return h&&(w.second=Fa(h)),o&&(w.weekday=o.length>3?k4.indexOf(o)+1:I4.indexOf(o)+1),w}const Rw=/^(?:(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 Hw(o){const[,t,n,l,c,g,h,w,z,S,k,D]=o,B=Jh(t,c,l,n,g,h,w);let R;return z?R=Nw[z]:S?R=0:R=Cd(k,D),[B,new mn(R)]}function Fw(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Bw=/^(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$/,Vw=/^(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$/,Ww=/^(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 W2(o){const[,t,n,l,c,g,h,w]=o;return[Jh(t,c,l,n,g,h,w),mn.utcInstance]}function Zw(o){const[,t,n,l,c,g,h,w]=o;return[Jh(t,w,n,l,c,g,h),mn.utcInstance]}const Uw=b1(Mw,Xh),Gw=b1(_w,Xh),qw=b1(Tw,Xh),jw=b1(H4),B4=m1(Aw,C1,Ku,Yu),Kw=m1(Ow,C1,Ku,Yu),Yw=m1(Ew,C1,Ku,Yu),Xw=m1(C1,Ku,Yu);function Jw(o){return y1(o,[Uw,B4],[Gw,Kw],[qw,Yw],[jw,Xw])}function Qw(o){return y1(Fw(o),[Rw,Hw])}function ex(o){return y1(o,[Bw,W2],[Vw,W2],[Ww,Zw])}function tx(o){return y1(o,[Pw,Dw])}const rx=m1(C1);function nx(o){return y1(o,[$w,rx])}const ix=b1(kw,Iw),ox=b1(F4),ax=m1(C1,Ku,Yu);function sx(o){return y1(o,[ix,B4],[ox,ax])}const lx="Invalid Duration",V4={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}},ux={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},...V4},ci=146097/400,t1=146097/4800,cx={years:{quarters:4,months:12,weeks:ci/7,days:ci,hours:ci*24,minutes:ci*24*60,seconds:ci*24*60*60,milliseconds:ci*24*60*60*1e3},quarters:{months:3,weeks:ci/28,days:ci/4,hours:ci*24/4,minutes:ci*24*60/4,seconds:ci*24*60*60/4,milliseconds:ci*24*60*60*1e3/4},months:{weeks:t1/7,days:t1,hours:t1*24,minutes:t1*24*60,seconds:t1*24*60*60,milliseconds:t1*24*60*60*1e3},...V4},Rs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],W4=Rs.slice(0).reverse();function Ha(o,t,n=!1){const l={values:n?t.values:{...o.values,...t.values||{}},loc:o.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||o.conversionAccuracy,matrix:t.matrix||o.matrix};return new Et(l)}function Z2(o){return Math.trunc(o*1e3)/1e3}function Z4(o,t,n,l,c){const g=o[c][n],h=t[n]/g,w=Math.floor(h);l[c]=Z2(l[c]+w),t[n]=Z2(t[n]-w*g)}function dx(o,t){W4.reduce((n,l)=>Mt(t[l])?n:(n&&Z4(o,t,n,t,l),l),null)}function fx(o){const t={};for(const[n,l]of Object.entries(o))l!==0&&(t[n]=l);return t}class Et{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let l=n?cx:ux;t.matrix&&(l=t.matrix),this.values=t.values,this.loc=t.loc||Kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=l,this.isLuxonDuration=!0}static fromMillis(t,n){return Et.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Et({values:rd(t,Et.normalizeUnit),loc:Kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Zs(t))return Et.fromMillis(t);if(Et.isDuration(t))return t;if(typeof t=="object")return Et.fromObject(t);throw new di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[l]=tx(t);return l?Et.fromObject(l,n):Et.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[l]=nx(t);return l?Et.fromObject(l,n):Et.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Duration is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new VC(l);return new Et({invalid:l})}static normalizeUnit(t){const n={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"}[t&&t.toLowerCase()];if(!n)throw new a4(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const l={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sn.create(this.loc,l).formatDurationFromString(this,t):lx}toHuman(t={}){const n=Rs.map(l=>{const c=this.values[l];return Mt(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:l.slice(0,-1)}).format(c)}).filter(l=>l);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Kh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},at.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,l;let t=(n=this.values.milliseconds)!=null?n:0;for(let c of W4.slice(1))(l=this.values)!=null&&l[c]&&(t+=this.values[c]*this.matrix[c].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Et.fromDurationLike(t),l={};for(const c of Rs)(p1(n.values,c)||p1(this.values,c))&&(l[c]=n.get(c)+this.get(c));return Ha(this,{values:l},!0)}minus(t){if(!this.isValid)return this;const n=Et.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const l of Object.keys(this.values))n[l]=T4(t(this.values[l],l));return Ha(this,{values:n},!0)}get(t){return this[Et.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...rd(t,Et.normalizeUnit)};return Ha(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:l,matrix:c}={}){const h={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:c,conversionAccuracy:l};return Ha(this,h)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(dx(this.matrix,t),Ha(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const t=fx(this.normalize().shiftToAll().toObject());return Ha(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(h=>Et.normalizeUnit(h));const n={},l={},c=this.toObject();let g;for(const h of Rs)if(t.indexOf(h)>=0){g=h;let w=0;for(const S in l)w+=this.matrix[S][h]*l[S],l[S]=0;Zs(c[h])&&(w+=c[h]);const z=Math.trunc(w);n[h]=z,l[h]=(w*1e3-z*1e3)/1e3;for(const S in c)Rs.indexOf(S)>Rs.indexOf(h)&&Z4(this.matrix,c,S,n,h)}else Zs(c[h])&&(l[h]=c[h]);for(const h in l)l[h]!==0&&(n[g]+=h===g?l[h]:l[h]/this.matrix[g][h]);return Ha(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ha(this,{values:t},!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(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(l,c){return l===void 0||l===0?c===void 0||c===0:l===c}for(const l of Rs)if(!n(this.values[l],t.values[l]))return!1;return!0}}const r1="Invalid Interval";function hx(o,t){return!o||!o.isValid?ir.invalid("missing or invalid start"):!t||!t.isValid?ir.invalid("missing or invalid end"):t<o?ir.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${t.toISO()}`):null}class ir{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Interval is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new BC(l);return new ir({invalid:l})}static fromDateTimes(t,n){const l=zu(t),c=zu(n),g=hx(l,c);return g==null?new ir({start:l,end:c}):g}static after(t,n){const l=Et.fromDurationLike(n),c=zu(t);return ir.fromDateTimes(c,c.plus(l))}static before(t,n){const l=Et.fromDurationLike(n),c=zu(t);return ir.fromDateTimes(c.minus(l),c)}static fromISO(t,n){const[l,c]=(t||"").split("/",2);if(l&&c){let g,h;try{g=at.fromISO(l,n),h=g.isValid}catch{h=!1}let w,z;try{w=at.fromISO(c,n),z=w.isValid}catch{z=!1}if(h&&z)return ir.fromDateTimes(g,w);if(h){const S=Et.fromISO(c,n);if(S.isValid)return ir.after(g,S)}else if(z){const S=Et.fromISO(l,n);if(S.isValid)return ir.before(w,S)}}return ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),l=this.end.startOf(t);return Math.floor(l.diff(n,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ir.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(zu).filter(h=>this.contains(h)).sort(),l=[];let{s:c}=this,g=0;for(;c<this.e;){const h=n[g]||this.e,w=+h>+this.e?this.e:h;l.push(ir.fromDateTimes(c,w)),c=w,g+=1}return l}splitBy(t){const n=Et.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:l}=this,c=1,g;const h=[];for(;l<this.e;){const w=this.start.plus(n.mapUnits(z=>z*c));g=+w>+this.e?this.e:w,h.push(ir.fromDateTimes(l,g)),l=g,c+=1}return h}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,l=this.e<t.e?this.e:t.e;return n>=l?null:ir.fromDateTimes(n,l)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,l=this.e>t.e?this.e:t.e;return ir.fromDateTimes(n,l)}static merge(t){const[n,l]=t.sort((c,g)=>c.s-g.s).reduce(([c,g],h)=>g?g.overlaps(h)||g.abutsStart(h)?[c,g.union(h)]:[c.concat([g]),h]:[c,h],[[],null]);return l&&n.push(l),n}static xor(t){let n=null,l=0;const c=[],g=t.map(z=>[{time:z.s,type:"s"},{time:z.e,type:"e"}]),h=Array.prototype.concat(...g),w=h.sort((z,S)=>z.time-S.time);for(const z of w)l+=z.type==="s"?1:-1,l===1?n=z.time:(n&&+n!=+z.time&&c.push(ir.fromDateTimes(n,z.time)),n=null);return ir.merge(c)}difference(...t){return ir.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:r1}toLocaleString(t=Q0,n={}){return this.isValid?sn.create(this.s.loc.clone(n),t).formatInterval(this):r1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:r1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:r1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:r1}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:r1}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Et.invalid(this.invalidReason)}mapEndpoints(t){return ir.fromDateTimes(t(this.s),t(this.e))}}class M0{static hasDST(t=wr.defaultZone){const n=at.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xo.isValidZone(t)}static normalizeZone(t){return Va(t,wr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Kt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Kt.create(n,null,"gregory").eras(t)}static features(){return{relative:M4()}}}function U2(o,t){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),l=n(t)-n(o);return Math.floor(Et.fromMillis(l).as("days"))}function px(o,t,n){const l=[["years",(z,S)=>S.year-z.year],["quarters",(z,S)=>S.quarter-z.quarter+(S.year-z.year)*4],["months",(z,S)=>S.month-z.month+(S.year-z.year)*12],["weeks",(z,S)=>{const k=U2(z,S);return(k-k%7)/7}],["days",U2]],c={},g=o;let h,w;for(const[z,S]of l)n.indexOf(z)>=0&&(h=z,c[z]=S(o,t),w=g.plus(c),w>t?(c[z]--,o=g.plus(c),o>t&&(w=o,c[z]--,o=g.plus(c))):o=w);return[o,c,w,h]}function gx(o,t,n,l){let[c,g,h,w]=px(o,t,n);const z=t-c,S=n.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(h<t&&(h=c.plus({[w]:1})),h!==c&&(g[w]=(g[w]||0)+z/(h-c)));const k=Et.fromObject(g,l);return S.length>0?Et.fromMillis(z,l).shiftTo(...S).plus(k):k}const Qh={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]},vx=Qh.hanidec.replace(/[\[|\]]/g,"").split("");function bx(o){let t=parseInt(o,10);if(isNaN(t)){t="";for(let n=0;n<o.length;n++){const l=o.charCodeAt(n);if(o[n].search(Qh.hanidec)!==-1)t+=vx.indexOf(o[n]);else for(const c in G2){const[g,h]=G2[c];l>=g&&l<=h&&(t+=l-g)}}return parseInt(t,10)}else return t}function ki({numberingSystem:o},t=""){return new RegExp(`${Qh[o||"latn"]}${t}`)}const mx="missing Intl.DateTimeFormat.formatToParts support";function Pt(o,t=n=>n){return{regex:o,deser:([n])=>t(bx(n))}}const yx=String.fromCharCode(160),U4=`[ ${yx}]`,G4=new RegExp(U4,"g");function Cx(o){return o.replace(/\./g,"\\.?").replace(G4,U4)}function q2(o){return o.replace(/\./g,"").replace(G4," ").toLowerCase()}function Ii(o,t){return o===null?null:{regex:RegExp(o.map(Cx).join("|")),deser:([n])=>o.findIndex(l=>q2(n)===q2(l))+t}}function j2(o,t){return{regex:o,deser:([,n,l])=>Cd(n,l),groups:t}}function _0(o){return{regex:o,deser:([t])=>t}}function wx(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function xx(o,t){const n=ki(t),l=ki(t,"{2}"),c=ki(t,"{3}"),g=ki(t,"{4}"),h=ki(t,"{6}"),w=ki(t,"{1,2}"),z=ki(t,"{1,3}"),S=ki(t,"{1,6}"),k=ki(t,"{1,9}"),D=ki(t,"{2,4}"),B=ki(t,"{4,6}"),R=ge=>({regex:RegExp(wx(ge.val)),deser:([Te])=>Te,literal:!0}),pe=(ge=>{if(o.literal)return R(ge);switch(ge.val){case"G":return Ii(t.eras("short"),0);case"GG":return Ii(t.eras("long"),0);case"y":return Pt(S);case"yy":return Pt(D,yh);case"yyyy":return Pt(g);case"yyyyy":return Pt(B);case"yyyyyy":return Pt(h);case"M":return Pt(w);case"MM":return Pt(l);case"MMM":return Ii(t.months("short",!0),1);case"MMMM":return Ii(t.months("long",!0),1);case"L":return Pt(w);case"LL":return Pt(l);case"LLL":return Ii(t.months("short",!1),1);case"LLLL":return Ii(t.months("long",!1),1);case"d":return Pt(w);case"dd":return Pt(l);case"o":return Pt(z);case"ooo":return Pt(c);case"HH":return Pt(l);case"H":return Pt(w);case"hh":return Pt(l);case"h":return Pt(w);case"mm":return Pt(l);case"m":return Pt(w);case"q":return Pt(w);case"qq":return Pt(l);case"s":return Pt(w);case"ss":return Pt(l);case"S":return Pt(z);case"SSS":return Pt(c);case"u":return _0(k);case"uu":return _0(w);case"uuu":return Pt(n);case"a":return Ii(t.meridiems(),0);case"kkkk":return Pt(g);case"kk":return Pt(D,yh);case"W":return Pt(w);case"WW":return Pt(l);case"E":case"c":return Pt(n);case"EEE":return Ii(t.weekdays("short",!1),1);case"EEEE":return Ii(t.weekdays("long",!1),1);case"ccc":return Ii(t.weekdays("short",!0),1);case"cccc":return Ii(t.weekdays("long",!0),1);case"Z":case"ZZ":return j2(new RegExp(`([+-]${w.source})(?::(${l.source}))?`),2);case"ZZZ":return j2(new RegExp(`([+-]${w.source})(${l.source})?`),2);case"z":return _0(/[a-z_+-/]{1,256}?/i);case" ":return _0(/[^\S\n\r]/);default:return R(ge)}})(o)||{invalidReason:mx};return pe.token=o,pe}const zx={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 Lx(o,t,n){const{type:l,value:c}=o;if(l==="literal"){const z=/^\s+$/.test(c);return{literal:!z,val:z?" ":c}}const g=t[l];let h=l;l==="hour"&&(t.hour12!=null?h=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?h="hour12":h="hour24":h=n.hour12?"hour12":"hour24");let w=zx[h];if(typeof w=="object"&&(w=w[g]),w)return{literal:!1,val:w}}function Sx(o){return[`^${o.map(n=>n.regex).reduce((n,l)=>`${n}(${l.source})`,"")}$`,o]}function Mx(o,t,n){const l=o.match(t);if(l){const c={};let g=1;for(const h in n)if(p1(n,h)){const w=n[h],z=w.groups?w.groups+1:1;!w.literal&&w.token&&(c[w.token.val[0]]=w.deser(l.slice(g,g+z))),g+=z}return[l,c]}else return[l,{}]}function _x(o){const t=g=>{switch(g){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 n=null,l;return Mt(o.z)||(n=Xo.create(o.z)),Mt(o.Z)||(n||(n=new mn(o.Z)),l=o.Z),Mt(o.q)||(o.M=(o.q-1)*3+1),Mt(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),Mt(o.u)||(o.S=jh(o.u)),[Object.keys(o).reduce((g,h)=>{const w=t(h);return w&&(g[w]=o[h]),g},{}),n,l]}let Kf=null;function Tx(){return Kf||(Kf=at.fromMillis(1555555555555)),Kf}function Ox(o,t){if(o.literal)return o;const n=sn.macroTokenToFormatOpts(o.val),l=K4(n,t);return l==null||l.includes(void 0)?o:l}function q4(o,t){return Array.prototype.concat(...o.map(n=>Ox(n,t)))}function j4(o,t,n){const l=q4(sn.parseFormat(n),o),c=l.map(h=>xx(h,o)),g=c.find(h=>h.invalidReason);if(g)return{input:t,tokens:l,invalidReason:g.invalidReason};{const[h,w]=Sx(c),z=RegExp(h,"i"),[S,k]=Mx(t,z,w),[D,B,R]=k?_x(k):[null,null,void 0];if(p1(k,"a")&&p1(k,"H"))throw new Su("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:l,regex:z,rawMatches:S,matches:k,result:D,zone:B,specificOffset:R}}}function Ex(o,t,n){const{result:l,zone:c,specificOffset:g,invalidReason:h}=j4(o,t,n);return[l,c,g,h]}function K4(o,t){if(!o)return null;const l=sn.create(t,o).dtFormatter(Tx()),c=l.formatToParts(),g=l.resolvedOptions();return c.map(h=>Lx(h,o,g))}const Y4=[0,31,59,90,120,151,181,212,243,273,304,334],X4=[0,31,60,91,121,152,182,213,244,274,305,335];function fi(o,t){return new $i("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${o}, which is invalid`)}function J4(o,t,n){const l=new Date(Date.UTC(o,t-1,n));o<100&&o>=0&&l.setUTCFullYear(l.getUTCFullYear()-1900);const c=l.getUTCDay();return c===0?7:c}function Q4(o,t,n){return n+(ju(o)?X4:Y4)[t-1]}function e3(o,t){const n=ju(o)?X4:Y4,l=n.findIndex(g=>g<t),c=t-n[l];return{month:l+1,day:c}}function Ch(o){const{year:t,month:n,day:l}=o,c=Q4(t,n,l),g=J4(t,n,l);let h=Math.floor((c-g+10)/7),w;return h<1?(w=t-1,h=td(w)):h>td(t)?(w=t+1,h=1):w=t,{weekYear:w,weekNumber:h,weekday:g,...wd(o)}}function K2(o){const{weekYear:t,weekNumber:n,weekday:l}=o,c=J4(t,1,4),g=Eu(t);let h=n*7+l-c-3,w;h<1?(w=t-1,h+=Eu(w)):h>g?(w=t+1,h-=Eu(t)):w=t;const{month:z,day:S}=e3(w,h);return{year:w,month:z,day:S,...wd(o)}}function Yf(o){const{year:t,month:n,day:l}=o,c=Q4(t,n,l);return{year:t,ordinal:c,...wd(o)}}function Y2(o){const{year:t,ordinal:n}=o,{month:l,day:c}=e3(t,n);return{year:t,month:l,day:c,...wd(o)}}function kx(o){const t=md(o.weekYear),n=Ko(o.weekNumber,1,td(o.weekYear)),l=Ko(o.weekday,1,7);return t?n?l?!1:fi("weekday",o.weekday):fi("week",o.week):fi("weekYear",o.weekYear)}function Ix(o){const t=md(o.year),n=Ko(o.ordinal,1,Eu(o.year));return t?n?!1:fi("ordinal",o.ordinal):fi("year",o.year)}function t3(o){const t=md(o.year),n=Ko(o.month,1,12),l=Ko(o.day,1,ed(o.year,o.month));return t?n?l?!1:fi("day",o.day):fi("month",o.month):fi("year",o.year)}function r3(o){const{hour:t,minute:n,second:l,millisecond:c}=o,g=Ko(t,0,23)||t===24&&n===0&&l===0&&c===0,h=Ko(n,0,59),w=Ko(l,0,59),z=Ko(c,0,999);return g?h?w?z?!1:fi("millisecond",c):fi("second",l):fi("minute",n):fi("hour",t)}const Xf="Invalid DateTime",X2=864e13;function T0(o){return new $i("unsupported zone",`the zone "${o.name}" is not supported`)}function Jf(o){return o.weekData===null&&(o.weekData=Ch(o.c)),o.weekData}function Ns(o,t){const n={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new at({...n,...t,old:n})}function n3(o,t,n){let l=o-t*60*1e3;const c=n.offset(l);if(t===c)return[l,t];l-=(c-t)*60*1e3;const g=n.offset(l);return c===g?[l,c]:[o-Math.min(c,g)*60*1e3,Math.max(c,g)]}function O0(o,t){o+=t*60*1e3;const n=new Date(o);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function P0(o,t,n){return n3(yd(o),t,n)}function J2(o,t){const n=o.o,l=o.c.year+Math.trunc(t.years),c=o.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,g={...o.c,year:l,month:c,day:Math.min(o.c.day,ed(l,c))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},h=Et.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),w=yd(g);let[z,S]=n3(w,n,o.zone);return h!==0&&(z+=h,S=o.zone.offset(z)),{ts:z,o:S}}function xu(o,t,n,l,c,g){const{setZone:h,zone:w}=n;if(o&&Object.keys(o).length!==0||t){const z=t||w,S=at.fromObject(o,{...n,zone:z,specificOffset:g});return h?S:S.setZone(w)}else return at.invalid(new $i("unparsable",`the input "${c}" can't be parsed as ${l}`))}function E0(o,t,n=!0){return o.isValid?sn.create(Kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(o,t):null}function Qf(o,t){const n=o.c.year>9999||o.c.year<0;let l="";return n&&o.c.year>=0&&(l+="+"),l+=xr(o.c.year,n?6:4),t?(l+="-",l+=xr(o.c.month),l+="-",l+=xr(o.c.day)):(l+=xr(o.c.month),l+=xr(o.c.day)),l}function Q2(o,t,n,l,c,g){let h=xr(o.c.hour);return t?(h+=":",h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=":")):h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=xr(o.c.second),(o.c.millisecond!==0||!l)&&(h+=".",h+=xr(o.c.millisecond,3))),c&&(o.isOffsetFixed&&o.offset===0&&!g?h+="Z":o.o<0?(h+="-",h+=xr(Math.trunc(-o.o/60)),h+=":",h+=xr(Math.trunc(-o.o%60))):(h+="+",h+=xr(Math.trunc(o.o/60)),h+=":",h+=xr(Math.trunc(o.o%60)))),g&&(h+="["+o.zone.ianaName+"]"),h}const i3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ax={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},$x={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o3=["year","month","day","hour","minute","second","millisecond"],Px=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Dx=["year","ordinal","hour","minute","second","millisecond"];function e5(o){const t={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"}[o.toLowerCase()];if(!t)throw new a4(o);return t}function t5(o,t){const n=Va(t.zone,wr.defaultZone),l=Kt.fromObject(t),c=wr.now();let g,h;if(Mt(o.year))g=c;else{for(const S of o3)Mt(o[S])&&(o[S]=i3[S]);const w=t3(o)||r3(o);if(w)return at.invalid(w);const z=n.offset(c);[g,h]=P0(o,z,n)}return new at({ts:g,zone:n,loc:l,o:h})}function r5(o,t,n){const l=Mt(n.round)?!0:n.round,c=(h,w)=>(h=Kh(h,l||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(h,w)),g=h=>n.calendary?t.hasSame(o,h)?0:t.startOf(h).diff(o.startOf(h),h).get(h):t.diff(o,h).get(h);if(n.unit)return c(g(n.unit),n.unit);for(const h of n.units){const w=g(h);if(Math.abs(w)>=1)return c(w,h)}return c(o>t?-0:0,n.units[n.units.length-1])}function n5(o){let t={},n;return o.length>0&&typeof o[o.length-1]=="object"?(t=o[o.length-1],n=Array.from(o).slice(0,o.length-1)):n=Array.from(o),[t,n]}class at{constructor(t){const n=t.zone||wr.defaultZone;let l=t.invalid||(Number.isNaN(t.ts)?new $i("invalid input"):null)||(n.isValid?null:T0(n));this.ts=Mt(t.ts)?wr.now():t.ts;let c=null,g=null;if(!l)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[c,g]=[t.old.c,t.old.o];else{const w=n.offset(this.ts);c=O0(this.ts,w),l=Number.isNaN(c.year)?new $i("invalid input"):null,c=l?null:c,g=l?null:w}this._zone=n,this.loc=t.loc||Kt.create(),this.invalid=l,this.weekData=null,this.c=c,this.o=g,this.isLuxonDateTime=!0}static now(){return new at({})}static local(){const[t,n]=n5(arguments),[l,c,g,h,w,z,S]=n;return t5({year:l,month:c,day:g,hour:h,minute:w,second:z,millisecond:S},t)}static utc(){const[t,n]=n5(arguments),[l,c,g,h,w,z,S]=n;return t.zone=mn.utcInstance,t5({year:l,month:c,day:g,hour:h,minute:w,second:z,millisecond:S},t)}static fromJSDate(t,n={}){const l=uw(t)?t.valueOf():NaN;if(Number.isNaN(l))return at.invalid("invalid input");const c=Va(n.zone,wr.defaultZone);return c.isValid?new at({ts:l,zone:c,loc:Kt.fromObject(n)}):at.invalid(T0(c))}static fromMillis(t,n={}){if(Zs(t))return t<-X2||t>X2?at.invalid("Timestamp out of range"):new at({ts:t,zone:Va(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Zs(t))return new at({ts:t*1e3,zone:Va(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const l=Va(n.zone,wr.defaultZone);if(!l.isValid)return at.invalid(T0(l));const c=wr.now(),g=Mt(n.specificOffset)?l.offset(c):n.specificOffset,h=rd(t,e5),w=!Mt(h.ordinal),z=!Mt(h.year),S=!Mt(h.month)||!Mt(h.day),k=z||S,D=h.weekYear||h.weekNumber,B=Kt.fromObject(n);if((k||w)&&D)throw new Su("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&w)throw new Su("Can't mix ordinal dates with month/day");const R=D||h.weekday&&!k;let J,pe,ge=O0(c,g);R?(J=Px,pe=Ax,ge=Ch(ge)):w?(J=Dx,pe=$x,ge=Yf(ge)):(J=o3,pe=i3);let Te=!1;for(const je of J){const Ye=h[je];Mt(Ye)?Te?h[je]=pe[je]:h[je]=ge[je]:Te=!0}const Ie=R?kx(h):w?Ix(h):t3(h),be=Ie||r3(h);if(be)return at.invalid(be);const ve=R?K2(h):w?Y2(h):h,[Oe,$e]=P0(ve,g,l),De=new at({ts:Oe,zone:l,o:$e,loc:B});return h.weekday&&k&&t.weekday!==De.weekday?at.invalid("mismatched weekday",`you can't specify both a weekday of ${h.weekday} and a date of ${De.toISO()}`):De}static fromISO(t,n={}){const[l,c]=Jw(t);return xu(l,c,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[l,c]=Qw(t);return xu(l,c,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[l,c]=ex(t);return xu(l,c,n,"HTTP",n)}static fromFormat(t,n,l={}){if(Mt(t)||Mt(n))throw new di("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0}),[w,z,S,k]=Ex(h,t,n);return k?at.invalid(k):xu(w,z,l,`format ${n}`,t,S)}static fromString(t,n,l={}){return at.fromFormat(t,n,l)}static fromSQL(t,n={}){const[l,c]=sx(t);return xu(l,c,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the DateTime is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new FC(l);return new at({invalid:l})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const l=K4(t,Kt.fromObject(n));return l?l.map(c=>c?c.val:null).join(""):null}static expandFormat(t,n={}){return q4(sn.parseFormat(t),Kt.fromObject(n)).map(c=>c.val).join("")}get(t){return this[t]}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?Jf(this).weekYear:NaN}get weekNumber(){return this.isValid?Jf(this).weekNumber:NaN}get weekday(){return this.isValid?Jf(this).weekday:NaN}get ordinal(){return this.isValid?Yf(this.c).ordinal:NaN}get monthShort(){return this.isValid?M0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?M0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?M0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?M0.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 t=864e5,n=6e4,l=yd(this.c),c=this.zone.offset(l-t),g=this.zone.offset(l+t),h=this.zone.offset(l-c*n),w=this.zone.offset(l-g*n);if(h===w)return[this];const z=l-h*n,S=l-w*n,k=O0(z,h),D=O0(S,w);return k.hour===D.hour&&k.minute===D.minute&&k.second===D.second&&k.millisecond===D.millisecond?[Ns(this,{ts:z}),Ns(this,{ts:S})]:[this]}get isInLeapYear(){return ju(this.year)}get daysInMonth(){return ed(this.year,this.month)}get daysInYear(){return this.isValid?Eu(this.year):NaN}get weeksInWeekYear(){return this.isValid?td(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:l,calendar:c}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:l,outputCalendar:c}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(wr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:l=!1}={}){if(t=Va(t,wr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let c=this.ts;if(n||l){const g=t.offset(this.ts),h=this.toObject();[c]=P0(h,g,t)}return Ns(this,{ts:c,zone:t})}else return at.invalid(T0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:l}={}){const c=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:l});return Ns(this,{loc:c})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=rd(t,e5),l=!Mt(n.weekYear)||!Mt(n.weekNumber)||!Mt(n.weekday),c=!Mt(n.ordinal),g=!Mt(n.year),h=!Mt(n.month)||!Mt(n.day),w=g||h,z=n.weekYear||n.weekNumber;if((w||c)&&z)throw new Su("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Su("Can't mix ordinal dates with month/day");let S;l?S=K2({...Ch(this.c),...n}):Mt(n.ordinal)?(S={...this.toObject(),...n},Mt(n.day)&&(S.day=Math.min(ed(S.year,S.month),S.day))):S=Y2({...Yf(this.c),...n});const[k,D]=P0(S,this.o,this.zone);return Ns(this,{ts:k,o:D})}plus(t){if(!this.isValid)return this;const n=Et.fromDurationLike(t);return Ns(this,J2(this,n))}minus(t){if(!this.isValid)return this;const n=Et.fromDurationLike(t).negate();return Ns(this,J2(this,n))}startOf(t){if(!this.isValid)return this;const n={},l=Et.normalizeUnit(t);switch(l){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(l==="weeks"&&(n.weekday=1),l==="quarters"){const c=Math.ceil(this.month/3);n.month=(c-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?sn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Xf}toLocaleString(t=Q0,n={}){return this.isValid?sn.create(this.loc.clone(n),t).formatDateTime(this):Xf}toLocaleParts(t={}){return this.isValid?sn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:l=!1,includeOffset:c=!0,extendedZone:g=!1}={}){if(!this.isValid)return null;const h=t==="extended";let w=Qf(this,h);return w+="T",w+=Q2(this,h,n,l,c,g),w}toISODate({format:t="extended"}={}){return this.isValid?Qf(this,t==="extended"):null}toISOWeekDate(){return E0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:l=!0,includePrefix:c=!1,extendedZone:g=!1,format:h="extended"}={}){return this.isValid?(c?"T":"")+Q2(this,h==="extended",n,t,l,g):null}toRFC2822(){return E0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return E0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qf(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:l=!0}={}){let c="HH:mm:ss.SSS";return(n||t)&&(l&&(c+=" "),n?c+="z":t&&(c+="ZZ")),E0(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Xf}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(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",l={}){if(!this.isValid||!t.isValid)return Et.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...l},g=cw(n).map(Et.normalizeUnit),h=t.valueOf()>this.valueOf(),w=h?this:t,z=h?t:this,S=gx(w,z,g,c);return h?S.negate():S}diffNow(t="milliseconds",n={}){return this.diff(at.now(),t,n)}until(t){return this.isValid?ir.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const l=t.valueOf(),c=this.setZone(t.zone,{keepLocalTime:!0});return c.startOf(n)<=l&&l<=c.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||at.fromObject({},{zone:this.zone}),l=t.padding?this<n?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],g=t.unit;return Array.isArray(t.unit)&&(c=t.unit,g=void 0),r5(n,this.plus(l),{...t,numeric:"always",units:c,unit:g})}toRelativeCalendar(t={}){return this.isValid?r5(t.base||at.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(at.isDateTime))throw new di("min requires all arguments be DateTimes");return B2(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(at.isDateTime))throw new di("max requires all arguments be DateTimes");return B2(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,l={}){const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0});return j4(h,t,n)}static fromStringExplain(t,n,l={}){return at.fromFormatExplain(t,n,l)}static get DATE_SHORT(){return Q0}static get DATE_MED(){return s4}static get DATE_MED_WITH_WEEKDAY(){return WC}static get DATE_FULL(){return l4}static get DATE_HUGE(){return u4}static get TIME_SIMPLE(){return c4}static get TIME_WITH_SECONDS(){return d4}static get TIME_WITH_SHORT_OFFSET(){return f4}static get TIME_WITH_LONG_OFFSET(){return h4}static get TIME_24_SIMPLE(){return p4}static get TIME_24_WITH_SECONDS(){return g4}static get TIME_24_WITH_SHORT_OFFSET(){return v4}static get TIME_24_WITH_LONG_OFFSET(){return b4}static get DATETIME_SHORT(){return m4}static get DATETIME_SHORT_WITH_SECONDS(){return y4}static get DATETIME_MED(){return C4}static get DATETIME_MED_WITH_SECONDS(){return w4}static get DATETIME_MED_WITH_WEEKDAY(){return ZC}static get DATETIME_FULL(){return x4}static get DATETIME_FULL_WITH_SECONDS(){return z4}static get DATETIME_HUGE(){return L4}static get DATETIME_HUGE_WITH_SECONDS(){return S4}}function zu(o){if(at.isDateTime(o))return o;if(o&&o.valueOf&&Zs(o.valueOf()))return at.fromJSDate(o);if(o&&typeof o=="object")return at.fromObject(o);throw new di(`Unknown datetime argument: ${o}, of type ${typeof o}`)}const Nx={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},Rx=o=>at.local().setZone(o).isValid,wh=o=>o.hour<12,i5=o=>!wh(o),Hx=(o,t)=>wh(o)&&wh(t)||i5(o)&&i5(t),o5=(o,t)=>{var c;const n=t&&Rx(t)?t:"utc",l=(c=Nx[n.split("/")[0]])!=null?c:"en-us";return o.setZone(n).setLocale(l)},a5=o=>Fx(a3(o)),Fx=o=>o.replace(/Sept/,"Sep"),a3=o=>o.replace(/(AM|PM)/,t=>t.toLowerCase());var Bx=Object.defineProperty,Vx=Object.getOwnPropertyDescriptor,ja=(o,t,n,l)=>{for(var c=l>1?void 0:l?Vx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Bx(t,n,c),c};const s3=Le("input-time"),l3="h:mma",u3=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,c3=/^(1[3-9]|2[0-3]).*/,d3=/^(\d\d?)(am?|pm?)/,Wx=["UTC","AEST"],f3=(o,t)=>({label:`${o}${t?` (${t})`:""}`,value:o}),s5=(o,t)=>{const l=Math.ceil(1440/o),c=at.local().startOf("day");return Array(l).fill(null).map((g,h)=>{const w=c.plus({minutes:o*h}),z=a3(w.toFormat(l3));return f3(z,t)})},Zx=(o,t)=>{const n=o.trim(),l=o.match(u3);if(!n||!l)return[];const[,c,g,h]=l,w=parseInt(c,10),z=w>12?`${w-12}`:`${w}`,S=`${g}${h||0}`,k=`${z}:${S}`;return["am","pm"].map(D=>f3(`${k}${D}`,t))},Ux=(o,{value:t})=>{const n=o.match(c3);if(!n||!t)return!1;const[,l]=n,c=`${parseInt(l,10)-12}`,g=o.substring(l.length).replace(":",""),h=`${c}:${g}`;return t.startsWith(h)&&t.endsWith("pm")},Gx=(o,{value:t})=>{const n=o.match(d3);if(!n)return!1;const[,l,c]=n;return!!(t!=null&&t.replace(":00","").startsWith(`${l}${c}`))},qx=(...o)=>Gx(...o)||Ux(...o);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=s5(this.increment,this.suffix)}updated(t){super.updated(t),t.has("increment")&&(this.options=s5(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var t;this.valueLabel=this.value&&this.value!==this.placeholder?(t=this.getItems().find(({value:n})=>n===this.value))==null?void 0:t.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(t){return this.query?qx(this.query,t):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=Zx(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return j`
|
|
3411
3412
|
${this.handleNoResults()} ${this.renderOptionsData()}
|
|
3412
3413
|
${this.renderFreeformOptions()}
|
|
3413
|
-
`}};
|
|
3414
|
+
`}};ja([F({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);ja([F({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);ja([F({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);ja([F({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);ja([F({type:String})],exports.InputTime.prototype,"placeholder",2);ja([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);ja([Be()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=ja([ee(s3)],exports.InputTime);var jx=Object.defineProperty,Kx=Object.getOwnPropertyDescriptor,ep=(o,t,n,l)=>{for(var c=l>1?void 0:l?Kx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&jx(t,n,c),c};const h3=Le("heading");exports.Heading=class extends We{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var n;const t=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return j`<h1 class=${t}><slot></slot></h1>`;case 2:return j`<h2 class=${t}><slot></slot></h2>`;case 3:return j`<h3 class=${t}><slot></slot></h3>`;case 4:return j`<h4 class=${t}><slot></slot></h4>`;case 5:return j`<h5 class=${t}><slot></slot></h5>`;case 6:return j`<h6 class=${t}><slot></slot></h6>`}}};exports.Heading.styles=fe`
|
|
3414
3415
|
h1,
|
|
3415
3416
|
h2,
|
|
3416
3417
|
h3,
|
|
@@ -3455,7 +3456,7 @@ ${this.value}</textarea
|
|
|
3455
3456
|
:host {
|
|
3456
3457
|
display: block;
|
|
3457
3458
|
}
|
|
3458
|
-
`;
|
|
3459
|
+
`;ep([F({type:String})],exports.Heading.prototype,"size",2);ep([F({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=ep([ee(h3)],exports.Heading);const p3=Le("inline-edit-field"),tp=Le("inline-edit-group"),g3=Le("inline-edit-controls"),v3=["edit","saving","error"],Yx=["read","saved",...v3];class b3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...t})}}class m3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...t})}}class y3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...t})}}class C3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...t})}}class w3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...t})}}const Xx=fe`
|
|
3459
3460
|
:host {
|
|
3460
3461
|
display: block;
|
|
3461
3462
|
}
|
|
@@ -3545,7 +3546,7 @@ ${this.value}</textarea
|
|
|
3545
3546
|
|
|
3546
3547
|
margin-top: var(--brz-inline-edit-controls-spacing);
|
|
3547
3548
|
}
|
|
3548
|
-
`,
|
|
3549
|
+
`,Jx=fe`
|
|
3549
3550
|
.inline-edit-group {
|
|
3550
3551
|
display: inline-flex;
|
|
3551
3552
|
flex-direction: column;
|
|
@@ -3556,7 +3557,7 @@ ${this.value}</textarea
|
|
|
3556
3557
|
brz-inline-edit-controls {
|
|
3557
3558
|
margin-top: var(--brz-inline-edit-controls-spacing);
|
|
3558
3559
|
}
|
|
3559
|
-
`,
|
|
3560
|
+
`,Qx=fe`
|
|
3560
3561
|
:host {
|
|
3561
3562
|
--brz-inline-edit-controls-spacing: var(--brz-spacing-4);
|
|
3562
3563
|
|
|
@@ -3564,7 +3565,7 @@ ${this.value}</textarea
|
|
|
3564
3565
|
flex-direction: column;
|
|
3565
3566
|
row-gap: var(--brz-inline-edit-controls-spacing);
|
|
3566
3567
|
}
|
|
3567
|
-
`;var
|
|
3568
|
+
`;var ez=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,x3=(o,t,n,l)=>{for(var c=l>1?void 0:l?tz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ez(t,n,c),c};exports.InlineEditControls=class extends We{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new b3)}handleSaveClick(){this.dispatchEvent(new m3)}render(){return j`
|
|
3568
3569
|
<brz-split-row>
|
|
3569
3570
|
<brz-button-group slot="right">
|
|
3570
3571
|
${["edit","error"].includes(this.mode)?j`
|
|
@@ -3589,7 +3590,7 @@ ${this.value}</textarea
|
|
|
3589
3590
|
</brz-split-row>
|
|
3590
3591
|
|
|
3591
3592
|
${this.mode==="error"?j` <slot name="error"></slot> `:null}
|
|
3592
|
-
`}};exports.InlineEditControls.styles=[
|
|
3593
|
+
`}};exports.InlineEditControls.styles=[Qx];x3([F()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=x3([ee(g3)],exports.InlineEditControls);var rz=Object.defineProperty,nz=Object.getOwnPropertyDescriptor,rp=(o,t,n,l)=>{for(var c=l>1?void 0:l?nz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rz(t,n,c),c};class Xu extends We{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(t){switch(t){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(t){throw this.setMode("error"),t}}handleCancelClick(){this.setMode("read")}}rp([F({type:Boolean,reflect:!0})],Xu.prototype,"locked",2);rp([F({type:Function,attribute:!1})],Xu.prototype,"save",2);rp([Be()],Xu.prototype,"mode",2);var iz=Object.defineProperty,oz=Object.getOwnPropertyDescriptor,np=(o,t,n,l)=>{for(var c=l>1?void 0:l?oz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&iz(t,n,c),c};exports.InlineEditGroup=class extends Xu{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var t;await((t=this.save)==null?void 0:t.call(this))}registerField(t){this.fields.push(t)}updated(t){super.updated(t),this.locked&&this.fields.forEach(n=>n.locked=!0),this.controller&&this.fields.forEach(n=>{n.controlled=!0,n.setMode(this.mode)}),t.has("mode")&&this.dispatchEvent(new w3({detail:{currentMode:this.mode,previousMode:t.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return j`
|
|
3593
3594
|
<slot
|
|
3594
3595
|
@brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
|
|
3595
3596
|
>
|
|
@@ -3609,7 +3610,7 @@ ${this.value}</textarea
|
|
|
3609
3610
|
</slot>
|
|
3610
3611
|
`:null}
|
|
3611
3612
|
</dl>
|
|
3612
|
-
`}};exports.InlineEditGroup.styles=[
|
|
3613
|
+
`}};exports.InlineEditGroup.styles=[Jx];np([F({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);np([Be()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=np([ee(tp)],exports.InlineEditGroup);var az=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,Bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?sz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&az(t,n,c),c};const lz=o=>o instanceof zr&&!!o.options.length;exports.InlineEditField=class extends Xu{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 t;super.connectedCallback(),(t=this.group)==null||t.registerField(this)}updated(t){super.updated(t),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",t.has("mode")&&this.dispatchEvent(new C3({detail:{element:this,currentMode:this.mode,previousMode:t.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,lz(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof zr||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const t=this.slottedInputLabel;if(!t){this.label=this.generateFieldLabelSlot();return}this.label=t}setOptionsFromChildren(t){const n=[...t.children];this.options=n.filter(l=>!!l.value).map(l=>{var c;return{value:l.value,label:((c=l.textContent)==null?void 0:c.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const t=[...this.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the default slot.");if(!(t instanceof exports.LabeledInput)&&!(t instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return t}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const t=[...this.fieldElement.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the RecordField default slot.");if(!(t instanceof Yn))throw new Error("Expected a Breeze Input in the RecordField default slot.");return t}return this.fieldElement}generateFieldLabelSlot(){var t,n;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const l=document.createElement("brz-record-field-label");l.slot="label";const c=document.createElement("span");return c.textContent=((n=(t=this.inputElement.firstChild)==null?void 0:t.textContent)==null?void 0:n.trim())||"",l.appendChild(c),this.fieldElement.appendChild(l),l}}get friendlyValue(){var t;if(this.options.length){if(Array.isArray(this.value)){const l=this.value.map(g=>{var h;return(h=this.options.find(({value:w})=>w===g))==null?void 0:h.label}).filter(g=>!!g);return(l.length===this.value.length?l:this.value).map(g=>this.getSelectValueTemplate(g))}const n=(t=this.options.find(({value:l})=>l===this.value))==null?void 0:t.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(n||this.value):n||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(t){return j`
|
|
3613
3614
|
<brz-lozenge theme="subtle" color="sapphire" size="small">
|
|
3614
3615
|
${t}
|
|
3615
3616
|
</brz-lozenge>
|
|
@@ -3641,10 +3642,10 @@ ${this.value}</textarea
|
|
|
3641
3642
|
icon-size="14"
|
|
3642
3643
|
trailing-icon=${this.locked?"locked":"edit"}
|
|
3643
3644
|
@brz-button-click=${this.handleValueClick}
|
|
3644
|
-
class=${
|
|
3645
|
+
class=${En({button:!0,offset:this.labelPosition==="top",overflowing:this.isValueOverflowing})}
|
|
3645
3646
|
>
|
|
3646
3647
|
<span
|
|
3647
|
-
class=${
|
|
3648
|
+
class=${En({value:!0,truncate:this.truncate,overflowing:this.isValueOverflowing})}
|
|
3648
3649
|
>
|
|
3649
3650
|
<slot name="read-mode">${this.friendlyValue}</slot>
|
|
3650
3651
|
</span>
|
|
@@ -3654,7 +3655,7 @@ ${this.value}</textarea
|
|
|
3654
3655
|
</brz-record-field>
|
|
3655
3656
|
`}get editModeTemplate(){return j`
|
|
3656
3657
|
<div
|
|
3657
|
-
class=${
|
|
3658
|
+
class=${En({"edit-mode":!0,block:["full","auto"].includes(this.size)})}
|
|
3658
3659
|
>
|
|
3659
3660
|
<slot></slot>
|
|
3660
3661
|
|
|
@@ -3670,7 +3671,7 @@ ${this.value}</textarea
|
|
|
3670
3671
|
</slot>
|
|
3671
3672
|
`}
|
|
3672
3673
|
</div>
|
|
3673
|
-
`}get group(){return this.closest(
|
|
3674
|
+
`}get group(){return this.closest(tp)}emitBroadcastEvent(){this.dispatchEvent(new y3({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=[Xx];Bi([F({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Bi([F({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Bi([Be()],exports.InlineEditField.prototype,"labelPosition",2);Bi([Be()],exports.InlineEditField.prototype,"size",2);Bi([Be()],exports.InlineEditField.prototype,"value",2);Bi([Be()],exports.InlineEditField.prototype,"options",2);Bi([Be()],exports.InlineEditField.prototype,"label",2);Bi([Be()],exports.InlineEditField.prototype,"hasLabel",2);Bi([Be()],exports.InlineEditField.prototype,"isValueOverflowing",2);Bi([Ri(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Bi([ee(p3)],exports.InlineEditField);var uz=Object.defineProperty,cz=Object.getOwnPropertyDescriptor,Ju=(o,t,n,l)=>{for(var c=l>1?void 0:l?cz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&uz(t,n,c),c};const z3=Le("side-navigation-item"),dz=fe`
|
|
3674
3675
|
:host li {
|
|
3675
3676
|
list-style: none;
|
|
3676
3677
|
padding: var(--brz-spacing-2) 0;
|
|
@@ -3696,17 +3697,17 @@ ${this.value}</textarea
|
|
|
3696
3697
|
color: var(--brz-color-primary-600);
|
|
3697
3698
|
border-color: var(--brz-color-primary-600);
|
|
3698
3699
|
}
|
|
3699
|
-
`;exports.SideNavigationItem=class extends
|
|
3700
|
+
`;exports.SideNavigationItem=class extends We{render(){return j`
|
|
3700
3701
|
<li>
|
|
3701
3702
|
<a
|
|
3702
|
-
href="${
|
|
3703
|
-
target="${
|
|
3704
|
-
rel="${
|
|
3703
|
+
href="${_t(this.href)}"
|
|
3704
|
+
target="${_t(this.target)}"
|
|
3705
|
+
rel="${_t(this.rel)}"
|
|
3705
3706
|
>
|
|
3706
3707
|
<slot></slot>
|
|
3707
3708
|
</a>
|
|
3708
3709
|
</li>
|
|
3709
|
-
`}};exports.SideNavigationItem.styles=[
|
|
3710
|
+
`}};exports.SideNavigationItem.styles=[dz];Ju([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Ju([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Ju([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Ju([F({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Ju([ee(z3)],exports.SideNavigationItem);var fz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,pz=(o,t,n,l)=>{for(var c=l>1?void 0:l?hz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fz(t,n,c),c};const L3=Le("side-navigation"),gz=fe`
|
|
3710
3711
|
:host {
|
|
3711
3712
|
display: block;
|
|
3712
3713
|
height: 100%;
|
|
@@ -3718,17 +3719,17 @@ ${this.value}</textarea
|
|
|
3718
3719
|
margin: 0;
|
|
3719
3720
|
padding: var(--brz-spacing-2) var(--brz-spacing-6);
|
|
3720
3721
|
}
|
|
3721
|
-
`;exports.SideNavigation=class extends
|
|
3722
|
+
`;exports.SideNavigation=class extends We{render(){return j`<ul>
|
|
3722
3723
|
<slot></slot>
|
|
3723
|
-
</ul>`}};exports.SideNavigation.styles=[
|
|
3724
|
+
</ul>`}};exports.SideNavigation.styles=[gz];exports.SideNavigation=pz([ee(L3)],exports.SideNavigation);var vz=Object.defineProperty,bz=Object.getOwnPropertyDescriptor,S3=(o,t,n,l)=>{for(var c=l>1?void 0:l?bz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&vz(t,n,c),c};const M3=Le("record-row"),_3=Le("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,fe`
|
|
3724
3725
|
:host(:nth-of-type(n + 2)) {
|
|
3725
3726
|
margin-top: var(--brz-spacing-4);
|
|
3726
3727
|
}
|
|
3727
|
-
`];exports.RecordRow=
|
|
3728
|
+
`];exports.RecordRow=S3([ee(M3)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=S3([ee(_3)],exports.RecordRowLabel);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,ip=(o,t,n,l)=>{for(var c=l>1?void 0:l?yz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&mz(t,n,c),c};const T3=Le("tab-panel");exports.TabPanel=class extends We{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return j`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=fe`
|
|
3728
3729
|
:host(:not([shown])) #panel {
|
|
3729
3730
|
display: none;
|
|
3730
3731
|
}
|
|
3731
|
-
`;
|
|
3732
|
+
`;ip([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);ip([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=ip([ee(T3)],exports.TabPanel);class xd extends CustomEvent{constructor(t){super("brz-tab-selected",{bubbles:!0,detail:{name:t}})}}class O3 extends CustomEvent{constructor(t){super("brz-tab-deselected",{bubbles:!0,detail:{name:t}})}}var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,zd=(o,t,n,l)=>{for(var c=l>1?void 0:l?wz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Cz(t,n,c),c};const E3=Le("tab");exports.Tab=class extends We{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(t){const n=t.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new xd(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new O3(this.name)),super.updated(t)}render(){return this.link?j`<a href=${this.link} id="tab"><slot></slot></a>`:j`<div
|
|
3732
3733
|
tabindex="0"
|
|
3733
3734
|
role="tab"
|
|
3734
3735
|
aria-selected=${this.selected}
|
|
@@ -3756,7 +3757,7 @@ ${this.value}</textarea
|
|
|
3756
3757
|
#tab:hover {
|
|
3757
3758
|
color: var(--brz-color-neutral-850);
|
|
3758
3759
|
}
|
|
3759
|
-
`;zd([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);zd([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);zd([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=zd([ee(
|
|
3760
|
+
`;zd([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);zd([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);zd([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=zd([ee(E3)],exports.Tab);var xz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,Ld=(o,t,n,l)=>{for(var c=l>1?void 0:l?zz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&xz(t,n,c),c};const k3=Le("tab-bar");exports.TabBar=class extends We{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,c,g;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t){this.tabs=[];return}let n=Array.from(t.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(h=>h instanceof exports.Tab&&!!h.name),this.controlled||(this.selected||(this.selected=(g=(c=this.tabs.find(h=>h.selected))==null?void 0:c.name)!=null?g:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(t){if(t.target instanceof exports.Tab){const{name:n}=t.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new xd(n)))}}updated(t){t.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(t=>{const n=t.name===this.selected;n!==t.selected&&(t.selected=n)})}render(){return j`
|
|
3760
3761
|
<brz-row id="tabbar" @click=${this.handleClick}>
|
|
3761
3762
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
3762
3763
|
</brz-row>
|
|
@@ -3778,7 +3779,7 @@ ${this.value}</textarea
|
|
|
3778
3779
|
top: 0;
|
|
3779
3780
|
z-index: 1;
|
|
3780
3781
|
}
|
|
3781
|
-
`;Ld([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ld([F({type:String})],exports.TabBar.prototype,"selected",2);Ld([Be()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ld([ee(k3)],exports.TabBar);var
|
|
3782
|
+
`;Ld([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ld([F({type:String})],exports.TabBar.prototype,"selected",2);Ld([Be()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ld([ee(k3)],exports.TabBar);var Lz=Object.defineProperty,Sz=Object.getOwnPropertyDescriptor,op=(o,t,n,l)=>{for(var c=l>1?void 0:l?Sz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Lz(t,n,c),c};const I3=Le("tabs");exports.Tabs=class extends We{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,l,c;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!t){for(const g of t.assignedElements())if(g instanceof exports.TabPanel)this.panels.push(g);else{const h=g.querySelectorAll("brz-tab-panel"),w=g.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(h.length?h:w))}this.selected||(this.selected=(c=(l=this.panels.find(g=>g.shown))==null?void 0:l.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(t=>{const n=t.name===this.selected;n!==t.shown&&(t.shown=n)})}handleTabSelected(t){this.selected=t.detail.name,this.updatePanelVisibility(),t.stopPropagation(),this.dispatchEvent(new xd(this.selected))}render(){return j`
|
|
3782
3783
|
<brz-tab-bar
|
|
3783
3784
|
controlled
|
|
3784
3785
|
selected=${this.selected}
|
|
@@ -3791,7 +3792,7 @@ ${this.value}</textarea
|
|
|
3791
3792
|
:host {
|
|
3792
3793
|
background-color: var(--brz-color-white);
|
|
3793
3794
|
}
|
|
3794
|
-
`;
|
|
3795
|
+
`;op([F({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);op([Be()],exports.Tabs.prototype,"panels",2);exports.Tabs=op([ee(I3)],exports.Tabs);var Mz=Object.defineProperty,_z=Object.getOwnPropertyDescriptor,Sd=(o,t,n,l)=>{for(var c=l>1?void 0:l?_z(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Mz(t,n,c),c};const A3=Le("badge");var $3=(o=>(o[o.subtle=0]="subtle",o[o.primary=1]="primary",o[o.important=2]="important",o))($3||{});const Tz=o=>!o||typeof o!="string"?!1:/^-?\d+$/.test(o),P3=5,D3=99;exports.Badge=class extends We{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?D3:P3)}updated(t){super.updated(t),t.has("content")&&(this.content=Tz(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 j` <span>${this.generateContent()}</span> `}};exports.Badge.styles=fe`
|
|
3795
3796
|
:host {
|
|
3796
3797
|
--brz-badge-background-color: var(--brz-color-neutral-250);
|
|
3797
3798
|
--brz-badge-color: var(--brz-color-neutral-750);
|
|
@@ -3823,7 +3824,7 @@ ${this.value}</textarea
|
|
|
3823
3824
|
--brz-badge-background-color: var(--brz-color-red-600);
|
|
3824
3825
|
--brz-badge-color: var(--brz-color-white);
|
|
3825
3826
|
}
|
|
3826
|
-
`;Sd([F({reflect:!0})],exports.Badge.prototype,"theme",2);Sd([F({type:Number})],exports.Badge.prototype,"limit",2);Sd([F({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=Sd([ee(
|
|
3827
|
+
`;Sd([F({reflect:!0})],exports.Badge.prototype,"theme",2);Sd([F({type:Number})],exports.Badge.prototype,"limit",2);Sd([F({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=Sd([ee(A3)],exports.Badge);const{range:Md}=Im;function Oz(o,t,n){return[1,null,...Md(o-t,o+t+1),null,n]}function Ez(o,t){return[1,null,...Md(o-(t-3),o+1)]}function kz(o,t){return[...Md(1,t-1),null,o]}function Iz(o,t,n){return o>1+1+t*2&&o<n-1-t*2}function Az(o,t=1,n=1){const l=5+n*2;if(o<=l)return Md(1,o+1);if(Iz(t,n,o))return Oz(t,n,o);if(t+(l-3)>=o)return Ez(o,l);if(t<l)return kz(o,l)}var $z=Object.defineProperty,Pz=Object.getOwnPropertyDescriptor,Co=(o,t,n,l)=>{for(var c=l>1?void 0:l?Pz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&$z(t,n,c),c};const ap=Le("basic-pagination"),sp=Le("pagination");class N3 extends CustomEvent{constructor(t){super(`${ap}-${t}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends We{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(t){this.dispatchEvent(new N3(t))}handlePageChange(t){this.emit(`${t}-page`)}render(){return j`
|
|
3827
3828
|
<brz-button-group role="navigation" aria-label="Pagination Navigation">
|
|
3828
3829
|
<brz-button
|
|
3829
3830
|
compact
|
|
@@ -3849,7 +3850,7 @@ ${this.value}</textarea
|
|
|
3849
3850
|
brz-button-group {
|
|
3850
3851
|
--brz-spacing-2: var(--brz-spacing-1);
|
|
3851
3852
|
}
|
|
3852
|
-
`;Co([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Co([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Co([ee(
|
|
3853
|
+
`;Co([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Co([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Co([ee(ap)],exports.BasicPagination);class R3 extends CustomEvent{constructor(t,n){super(`${sp}-${t}`,{bubbles:!0,composed:!0,detail:{page:n}})}}exports.Pagination=class extends We{constructor(){super(...arguments),this.currentPageSiblings=1}emit(t,n){this.dispatchEvent(new R3(t,n))}onPageChange(t){this.emit("page-change",t)}isCurrentPage(t){return t===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 t;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=Az(this.totalPages,this.currentPage,this.currentPageSiblings),j`
|
|
3853
3854
|
<brz-row role="navigation" aria-label="Pagination Navigation">
|
|
3854
3855
|
<button
|
|
3855
3856
|
role="link"
|
|
@@ -3862,7 +3863,7 @@ ${this.value}</textarea
|
|
|
3862
3863
|
</div>
|
|
3863
3864
|
</button>
|
|
3864
3865
|
${(t=this.pages)==null?void 0:t.map(n=>n?j`<button
|
|
3865
|
-
class=${
|
|
3866
|
+
class=${En({page:n,selected:this.isCurrentPage(n)})}
|
|
3866
3867
|
role="link"
|
|
3867
3868
|
aria-label=${`${this.isCurrentPage(n)?`Current Page, Page ${n}`:`Go to page ${n}`}`}
|
|
3868
3869
|
aria-current=${`${this.isCurrentPage(n)}`}
|
|
@@ -3950,7 +3951,7 @@ ${this.value}</textarea
|
|
|
3950
3951
|
.page {
|
|
3951
3952
|
padding: 0 var(--brz-spacing-2);
|
|
3952
3953
|
}
|
|
3953
|
-
`;Co([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Co([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Co([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Co([Be()],exports.Pagination.prototype,"currentPageSiblings",2);Co([Be()],exports.Pagination.prototype,"totalPages",2);Co([Be()],exports.Pagination.prototype,"pages",2);exports.Pagination=Co([ee(
|
|
3954
|
+
`;Co([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Co([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Co([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Co([Be()],exports.Pagination.prototype,"currentPageSiblings",2);Co([Be()],exports.Pagination.prototype,"totalPages",2);Co([Be()],exports.Pagination.prototype,"pages",2);exports.Pagination=Co([ee(sp)],exports.Pagination);var Dz=Object.defineProperty,Nz=Object.getOwnPropertyDescriptor,Qu=(o,t,n,l)=>{for(var c=l>1?void 0:l?Nz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Dz(t,n,c),c};const Rz=["info","success","warning","error"],H3=Le("alert");class F3 extends CustomEvent{constructor(t){super(t,{bubbles:!0,composed:!0})}}exports.Alert=class extends We{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new F3("brz-alert-cleared"))}render(){return this.cleared?null:j`<div class="alert-container">
|
|
3954
3955
|
<brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
|
|
3955
3956
|
<div role="alert">
|
|
3956
3957
|
${this.title?j`<div><brz-heading>${this.title}</brz-heading></div>`:j``}
|
|
@@ -4026,7 +4027,7 @@ ${this.value}</textarea
|
|
|
4026
4027
|
padding-top: 1px;
|
|
4027
4028
|
}
|
|
4028
4029
|
|
|
4029
|
-
${
|
|
4030
|
+
${N5(".clear-button",fe`
|
|
4030
4031
|
align-self: start;
|
|
4031
4032
|
margin-left: auto;
|
|
4032
4033
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
@@ -4035,7 +4036,7 @@ ${this.value}</textarea
|
|
|
4035
4036
|
.clear-button brz-icon {
|
|
4036
4037
|
vertical-align: middle;
|
|
4037
4038
|
}
|
|
4038
|
-
`;Qu([F({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Qu([F({type:Boolean})],exports.Alert.prototype,"clearable",2);Qu([F()],exports.Alert.prototype,"title",2);Qu([Be()],exports.Alert.prototype,"cleared",2);exports.Alert=Qu([ee(
|
|
4039
|
+
`;Qu([F({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Qu([F({type:Boolean})],exports.Alert.prototype,"clearable",2);Qu([F()],exports.Alert.prototype,"title",2);Qu([Be()],exports.Alert.prototype,"cleared",2);exports.Alert=Qu([ee(H3)],exports.Alert);const lp={resources:G`
|
|
4039
4040
|
<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"/>
|
|
4040
4041
|
<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"/>
|
|
4041
4042
|
<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"/>
|
|
@@ -4129,7 +4130,7 @@ ${this.value}</textarea
|
|
|
4129
4130
|
<circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
|
|
4130
4131
|
<circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
|
|
4131
4132
|
<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"/>
|
|
4132
|
-
<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"/>`},
|
|
4133
|
+
<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"/>`},Hz=Object.keys(lp);var Fz=Object.defineProperty,Bz=Object.getOwnPropertyDescriptor,_d=(o,t,n,l)=>{for(var c=l>1?void 0:l?Bz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fz(t,n,c),c};const B3=Le("illustration");exports.Illustration=class extends We{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const t=lp[this.illustration],n=Math.floor(Math.random()*100),l=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!t){console.warn(`Can't find illustration ${this.illustration}`);return}return j`<svg
|
|
4133
4134
|
aria-hidden=${!this.altTitle.length||!this.altDescription.length}
|
|
4134
4135
|
role="img"
|
|
4135
4136
|
aria-labelledby=${`${l} ${c}`}
|
|
@@ -4145,13 +4146,13 @@ ${this.value}</textarea
|
|
|
4145
4146
|
/* to get rid of extra height caused by white space */
|
|
4146
4147
|
line-height: 0;
|
|
4147
4148
|
}
|
|
4148
|
-
`;_d([F({type:String})],exports.Illustration.prototype,"illustration",2);_d([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);_d([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=_d([ee(
|
|
4149
|
+
`;_d([F({type:String})],exports.Illustration.prototype,"illustration",2);_d([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);_d([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=_d([ee(B3)],exports.Illustration);var Vz=Object.defineProperty,Wz=Object.getOwnPropertyDescriptor,Zz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Wz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Vz(t,n,c),c};const V3=Le("header");exports.Header=class extends We{render(){return j`<slot></slot>`}};exports.Header.styles=fe`
|
|
4149
4150
|
:host {
|
|
4150
4151
|
display: block;
|
|
4151
4152
|
padding: var(--brz-spacing-5);
|
|
4152
4153
|
margin-bottom: var(--brz-spacing-4);
|
|
4153
4154
|
}
|
|
4154
|
-
`;exports.Header=
|
|
4155
|
+
`;exports.Header=Zz([ee(V3)],exports.Header);var Uz=Object.defineProperty,Gz=Object.getOwnPropertyDescriptor,qz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Gz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Uz(t,n,c),c};const W3=Le("header-footer-page");exports.HeaderFooterPage=class extends We{render(){return j`
|
|
4155
4156
|
<div id="container">
|
|
4156
4157
|
<div id="header"><slot name="header"></slot></div>
|
|
4157
4158
|
<div id="body"><slot></slot></div>
|
|
@@ -4175,7 +4176,7 @@ ${this.value}</textarea
|
|
|
4175
4176
|
flex: 1 1;
|
|
4176
4177
|
overflow-y: auto;
|
|
4177
4178
|
}
|
|
4178
|
-
`;exports.HeaderFooterPage=
|
|
4179
|
+
`;exports.HeaderFooterPage=qz([ee(W3)],exports.HeaderFooterPage);var jz=Object.defineProperty,Kz=Object.getOwnPropertyDescriptor,Yz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Kz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&jz(t,n,c),c};const Z3=Le("responsive-columns");exports.ResponsiveColumns=class extends We{render(){return j`<slot></slot>`}};exports.ResponsiveColumns.styles=fe`
|
|
4179
4180
|
:host {
|
|
4180
4181
|
display: flex;
|
|
4181
4182
|
flex-direction: row;
|
|
@@ -4207,7 +4208,7 @@ ${this.value}</textarea
|
|
|
4207
4208
|
margin-bottom: var(--brz-padding, var(--brz-spacing-8));
|
|
4208
4209
|
}
|
|
4209
4210
|
}
|
|
4210
|
-
`;exports.ResponsiveColumns=
|
|
4211
|
+
`;exports.ResponsiveColumns=Yz([ee(Z3)],exports.ResponsiveColumns);var Xz=Object.defineProperty,Jz=Object.getOwnPropertyDescriptor,Qz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xz(t,n,c),c};const U3=Le("footer");exports.Footer=class extends We{render(){return j`<div class="container">
|
|
4211
4212
|
<slot name="left"></slot>
|
|
4212
4213
|
<slot name="middle"></slot>
|
|
4213
4214
|
<slot name="right"></slot>
|
|
@@ -4218,7 +4219,7 @@ ${this.value}</textarea
|
|
|
4218
4219
|
justify-content: space-between;
|
|
4219
4220
|
padding: var(--brz-spacing-3) var(--brz-spacing-4);
|
|
4220
4221
|
}
|
|
4221
|
-
`;exports.Footer=
|
|
4222
|
+
`;exports.Footer=Qz([ee(U3)],exports.Footer);var eL=Object.defineProperty,tL=Object.getOwnPropertyDescriptor,Td=(o,t,n,l)=>{for(var c=l>1?void 0:l?tL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&eL(t,n,c),c};const G3=Le("page-header");exports.PageHeader=class extends We{constructor(){super(...arguments),this.hasTitle=!1}updated(t){var n;super.updated(t),this.hasTitle=!!((n=this.slottedTitle)!=null&&n.length||this.pageTitle)}render(){return j`
|
|
4222
4223
|
<header>
|
|
4223
4224
|
<slot name="decorator"></slot>
|
|
4224
4225
|
|
|
@@ -4227,7 +4228,7 @@ ${this.value}</textarea
|
|
|
4227
4228
|
<brz-heading
|
|
4228
4229
|
level="1"
|
|
4229
4230
|
size="2xl"
|
|
4230
|
-
class=${
|
|
4231
|
+
class=${En({hidden:!this.hasTitle})}
|
|
4231
4232
|
>
|
|
4232
4233
|
<slot name="title">${this.pageTitle}</slot>
|
|
4233
4234
|
</brz-heading>
|
|
@@ -4278,7 +4279,7 @@ ${this.value}</textarea
|
|
|
4278
4279
|
brz-heading.hidden {
|
|
4279
4280
|
display: none;
|
|
4280
4281
|
}
|
|
4281
|
-
`;Td([F({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Td([Be()],exports.PageHeader.prototype,"hasTitle",2);Td([
|
|
4282
|
+
`;Td([F({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Td([Be()],exports.PageHeader.prototype,"hasTitle",2);Td([Th({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Td([ee(G3)],exports.PageHeader);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,Od=(o,t,n,l)=>{for(var c=l>1?void 0:l?nL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rL(t,n,c),c};const q3=Le("grid"),iL=Zu.map(o=>fe`
|
|
4282
4283
|
:host([spacing='${o}']),
|
|
4283
4284
|
:host([col-spacing='${o}']) {
|
|
4284
4285
|
--brz-grid-column-gap: var(--brz-spacing-${o});
|
|
@@ -4287,7 +4288,7 @@ ${this.value}</textarea
|
|
|
4287
4288
|
:host([row-spacing='${o}']) {
|
|
4288
4289
|
--brz-grid-row-gap: var(--brz-spacing-${o});
|
|
4289
4290
|
}
|
|
4290
|
-
`);exports.Grid=class extends g1{render(){return j`<slot></slot>`}};var
|
|
4291
|
+
`);exports.Grid=class extends g1{render(){return j`<slot></slot>`}};var h5;exports.Grid.styles=[(h5=g1.styles)!=null?h5:[],fe`
|
|
4291
4292
|
:host {
|
|
4292
4293
|
--brz-grid-columns: 12;
|
|
4293
4294
|
--brz-grid-column-gap: var(--brz-spacing-5);
|
|
@@ -4300,34 +4301,34 @@ ${this.value}</textarea
|
|
|
4300
4301
|
column-gap: var(--brz-grid-column-gap);
|
|
4301
4302
|
row-gap: var(--brz-grid-row-gap);
|
|
4302
4303
|
}
|
|
4303
|
-
`,...
|
|
4304
|
+
`,...iL];Od([F({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Od([F({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Od([F({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Od([ee(q3)],exports.Grid);const nd={lg:960,md:640},oL=fe`
|
|
4304
4305
|
--brz-breakpoint-lg: ${nd.lg}px;
|
|
4305
4306
|
--brz-breakpoint-md: ${nd.md}px;
|
|
4306
4307
|
`,eh=o=>(t,...n)=>fe`
|
|
4307
4308
|
@media (max-width: ${nd[o]}px) {
|
|
4308
4309
|
${fe(t,...n)}
|
|
4309
4310
|
}
|
|
4310
|
-
`,
|
|
4311
|
+
`,l5=o=>(t,...n)=>fe`
|
|
4311
4312
|
@media (min-width: ${nd[o]}px) {
|
|
4312
4313
|
${fe(t,...n)}
|
|
4313
4314
|
}
|
|
4314
|
-
`,id={breakpointUp:
|
|
4315
|
+
`,id={breakpointUp:l5,breakpointDown:eh,sm:eh("md"),md:eh("lg"),lg:l5("lg")};var aL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,Ed=(o,t,n,l)=>{for(var c=l>1?void 0:l?sL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&aL(t,n,c),c};const j3=Le("grid-item"),kd=[1,2,3,4,5,6,7,8,9,10,11,12],lL=kd.map(o=>fe`
|
|
4315
4316
|
:host([cols='${o}']) {
|
|
4316
4317
|
grid-column: auto / span ${o};
|
|
4317
4318
|
}
|
|
4318
|
-
`),
|
|
4319
|
+
`),uL=kd.map(o=>fe`
|
|
4319
4320
|
${id.md`
|
|
4320
4321
|
:host([md-cols='${o}']) {
|
|
4321
4322
|
grid-column: auto / span ${o};
|
|
4322
4323
|
}
|
|
4323
4324
|
`}
|
|
4324
|
-
`),
|
|
4325
|
+
`),cL=kd.map(o=>fe`
|
|
4325
4326
|
${id.sm`
|
|
4326
4327
|
:host([sm-cols='${o}']) {
|
|
4327
4328
|
grid-column: auto / span ${o};
|
|
4328
4329
|
}
|
|
4329
4330
|
`}
|
|
4330
|
-
`),
|
|
4331
|
+
`),dL=fe`
|
|
4331
4332
|
${id.md`
|
|
4332
4333
|
:host([cols='9']:not([md-cols])),
|
|
4333
4334
|
:host([cols='8']:not([md-cols])),
|
|
@@ -4343,11 +4344,11 @@ ${this.value}</textarea
|
|
|
4343
4344
|
grid-column: auto / span 12;
|
|
4344
4345
|
}
|
|
4345
4346
|
`}
|
|
4346
|
-
`;exports.GridItem=class extends
|
|
4347
|
+
`;exports.GridItem=class extends We{render(){return j`<slot></slot>`}};exports.GridItem.styles=[fe`
|
|
4347
4348
|
:host {
|
|
4348
4349
|
grid-column: auto / span 12;
|
|
4349
4350
|
}
|
|
4350
|
-
`,
|
|
4351
|
+
`,lL,dL,uL,cL];Ed([F({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Ed([F({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Ed([F({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Ed([ee(j3)],exports.GridItem);const fL=fe`
|
|
4351
4352
|
:host {
|
|
4352
4353
|
--brz-border-radius-default: 2px;
|
|
4353
4354
|
--brz-border-radius-medium: 3px;
|
|
@@ -4355,7 +4356,7 @@ ${this.value}</textarea
|
|
|
4355
4356
|
|
|
4356
4357
|
--brz-border-divider: 1px solid var(--brz-color-neutral-400);
|
|
4357
4358
|
}
|
|
4358
|
-
`,
|
|
4359
|
+
`,hL=fe`
|
|
4359
4360
|
:host {
|
|
4360
4361
|
--brz-color-neutral-900: #1b263a;
|
|
4361
4362
|
--brz-color-neutral-850: #223049;
|
|
@@ -4548,7 +4549,7 @@ ${this.value}</textarea
|
|
|
4548
4549
|
|
|
4549
4550
|
--brz-color-text-on-color: var(--brz-color-white);
|
|
4550
4551
|
}
|
|
4551
|
-
`,
|
|
4552
|
+
`,pL=fe`
|
|
4552
4553
|
:host {
|
|
4553
4554
|
--sp-border-radius-default: var(--brz-border-radius-default);
|
|
4554
4555
|
--sp-border-radius-medium: var(--brz-border-radius-medium)
|
|
@@ -4813,14 +4814,14 @@ ${this.value}</textarea
|
|
|
4813
4814
|
--sp-z-index-dropdown: var(--brz-z-index-dropdown);
|
|
4814
4815
|
--sp-z-index-tooltip: var(--brz-z-index-tooltip);
|
|
4815
4816
|
}
|
|
4816
|
-
`,
|
|
4817
|
+
`,gL=fe`
|
|
4817
4818
|
:host {
|
|
4818
4819
|
// TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
|
|
4819
4820
|
--brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
|
|
4820
4821
|
--brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
|
|
4821
4822
|
--brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
|
|
4822
4823
|
}
|
|
4823
|
-
`,
|
|
4824
|
+
`,vL=fe`
|
|
4824
4825
|
:host {
|
|
4825
4826
|
--brz-font-family-brand: Inter, sofiapro;
|
|
4826
4827
|
--brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
|
|
@@ -4864,14 +4865,14 @@ ${this.value}</textarea
|
|
|
4864
4865
|
--brz-text-block-max-width: 44rem;
|
|
4865
4866
|
--brz-list-block-max-width: 40rem;
|
|
4866
4867
|
}
|
|
4867
|
-
`,
|
|
4868
|
+
`,bL=fe`
|
|
4868
4869
|
:host {
|
|
4869
4870
|
--brz-z-index-navigation: 1000;
|
|
4870
4871
|
--brz-z-index-dialog: 1100;
|
|
4871
4872
|
--brz-z-index-dropdown: 1200;
|
|
4872
4873
|
--brz-z-index-tooltip: 1300;
|
|
4873
4874
|
}
|
|
4874
|
-
`;var
|
|
4875
|
+
`;var mL=Object.defineProperty,yL=Object.getOwnPropertyDescriptor,CL=(o,t,n,l)=>{for(var c=l>1?void 0:l?yL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&mL(t,n,c),c};const K3=Le("global-styles");exports.GlobalStyles=class extends We{render(){return j`<slot></slot>`}};exports.GlobalStyles.styles=[hL,t6,vL,fL,gL,bL,oL,pL,fe`
|
|
4875
4876
|
:host {
|
|
4876
4877
|
--brz-outline-color: var(--brz-color-primary-600);
|
|
4877
4878
|
--brz-outline-style: solid;
|
|
@@ -4889,7 +4890,7 @@ ${this.value}</textarea
|
|
|
4889
4890
|
font-weight: var(--brz-font-weight-normal);
|
|
4890
4891
|
color: var(--brz-color-text);
|
|
4891
4892
|
}
|
|
4892
|
-
`];exports.GlobalStyles=
|
|
4893
|
+
`];exports.GlobalStyles=CL([ee(K3)],exports.GlobalStyles);const Y3=Le("card"),X3=Le("card-header"),J3=Le("card-footer"),Q3=Le("card-section-header"),wL=fe`
|
|
4893
4894
|
:host {
|
|
4894
4895
|
--brz-card-background-color: var(--brz-color-white);
|
|
4895
4896
|
--brz-card-color: var(--brz-color-text);
|
|
@@ -4927,7 +4928,7 @@ ${this.value}</textarea
|
|
|
4927
4928
|
|
|
4928
4929
|
padding-bottom: calc(2 * var(--brz-card-body-balancer));
|
|
4929
4930
|
}
|
|
4930
|
-
`,
|
|
4931
|
+
`,xL=o=>fe`
|
|
4931
4932
|
:host([padding='${o}']) {
|
|
4932
4933
|
--brz-card-padding: var(--brz-spacing-${o});
|
|
4933
4934
|
}
|
|
@@ -4935,7 +4936,7 @@ ${this.value}</textarea
|
|
|
4935
4936
|
:host([body-padding='${o}']) {
|
|
4936
4937
|
--brz-card-body-padding: var(--brz-spacing-${o});
|
|
4937
4938
|
}
|
|
4938
|
-
`,
|
|
4939
|
+
`,zL=Zu.map(xL),LL=fe`
|
|
4939
4940
|
:host {
|
|
4940
4941
|
--brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
|
|
4941
4942
|
--brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -4983,7 +4984,7 @@ ${this.value}</textarea
|
|
|
4983
4984
|
align-self: flex-start;
|
|
4984
4985
|
flex-shrink: 0;
|
|
4985
4986
|
}
|
|
4986
|
-
`,
|
|
4987
|
+
`,SL=fe`
|
|
4987
4988
|
:host {
|
|
4988
4989
|
--brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
|
|
4989
4990
|
--brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -5011,7 +5012,7 @@ ${this.value}</textarea
|
|
|
5011
5012
|
align-self: flex-start;
|
|
5012
5013
|
flex-shrink: 0;
|
|
5013
5014
|
}
|
|
5014
|
-
`;var
|
|
5015
|
+
`;var ML=Object.defineProperty,_L=Object.getOwnPropertyDescriptor,TL=(o,t,n,l)=>{for(var c=l>1?void 0:l?_L(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ML(t,n,c),c};exports.CardHeader=class extends We{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return j`
|
|
5015
5016
|
<div class="title">
|
|
5016
5017
|
<slot></slot>
|
|
5017
5018
|
</div>
|
|
@@ -5019,9 +5020,9 @@ ${this.value}</textarea
|
|
|
5019
5020
|
<div class="aside">
|
|
5020
5021
|
<slot name="aside"></slot>
|
|
5021
5022
|
</div>
|
|
5022
|
-
`}render(){return j` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[
|
|
5023
|
+
`}render(){return j` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[LL];exports.CardHeader=TL([Bu(X3)],exports.CardHeader);var OL=Object.defineProperty,EL=Object.getOwnPropertyDescriptor,e7=(o,t,n,l)=>{for(var c=l>1?void 0:l?EL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&OL(t,n,c),c};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return j`
|
|
5023
5024
|
<div class="card-section-header">${this.contentTemplate}</div>
|
|
5024
|
-
`}};
|
|
5025
|
+
`}};e7([F({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=e7([Bu(Q3)],exports.CardSectionHeader);var kL=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,AL=(o,t,n,l)=>{for(var c=l>1?void 0:l?IL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&kL(t,n,c),c};exports.CardFooter=class extends We{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return j`
|
|
5025
5026
|
<footer class="card-footer">
|
|
5026
5027
|
<div>
|
|
5027
5028
|
<slot></slot>
|
|
@@ -5031,19 +5032,19 @@ ${this.value}</textarea
|
|
|
5031
5032
|
<slot name="aside"></slot>
|
|
5032
5033
|
</div>
|
|
5033
5034
|
</footer>
|
|
5034
|
-
`}};exports.CardFooter.styles=[
|
|
5035
|
+
`}};exports.CardFooter.styles=[SL];exports.CardFooter=AL([Bu(J3)],exports.CardFooter);var $L=Object.defineProperty,PL=Object.getOwnPropertyDescriptor,ec=(o,t,n,l)=>{for(var c=l>1?void 0:l?PL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&$L(t,n,c),c};exports.Card=class extends g1{constructor(){super(...arguments),this.hasHeader=!1}updated(t){super.updated(t),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return j`
|
|
5035
5036
|
<article class="card" part="card">
|
|
5036
5037
|
<slot name="header"></slot>
|
|
5037
5038
|
|
|
5038
5039
|
<div
|
|
5039
|
-
class=${
|
|
5040
|
+
class=${En({"card-body":!0,"has-header":this.hasHeader})}
|
|
5040
5041
|
>
|
|
5041
5042
|
<slot></slot>
|
|
5042
5043
|
</div>
|
|
5043
5044
|
|
|
5044
5045
|
<slot name="footer"></slot>
|
|
5045
5046
|
</article>
|
|
5046
|
-
`}};var
|
|
5047
|
+
`}};var p5;exports.Card.styles=[(p5=g1.styles)!=null?p5:[],wL,zL];ec([F({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);ec([F({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);ec([Be()],exports.Card.prototype,"hasHeader",2);ec([Jo({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=ec([Bu(Y3)],exports.Card);var DL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,up=(o,t,n,l)=>{for(var c=l>1?void 0:l?NL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&DL(t,n,c),c};const t7=Le("paper");exports.Paper=class extends We{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return j` <div class="container"><slot></slot></div> `}};exports.Paper.styles=fe`
|
|
5047
5048
|
:host {
|
|
5048
5049
|
display: block;
|
|
5049
5050
|
position: relative;
|
|
@@ -5067,4 +5068,4 @@ ${this.value}</textarea
|
|
|
5067
5068
|
:host([has-border]) .container {
|
|
5068
5069
|
border: 1px solid var(--brz-color-neutral-300);
|
|
5069
5070
|
}
|
|
5070
|
-
`;lp([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);lp([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=lp([ee(e7)],exports.Paper);var NL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,Re=(o,t,n,l)=>{for(var c=l>1?void 0:l?RL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&NL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Re([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Re([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Re([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Re([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Re([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Re([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Re([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Re([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Re([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Re([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Re([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Re([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Re([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Re([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Re([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Re([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Re([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Re([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Re([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Re([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Re([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Re([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Re([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Re([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Re([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Re([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Re([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Re([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Re([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Re([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Re([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Re([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Re([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Re([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Re([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Re([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Re([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Re([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Re([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Re([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Re([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Re([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Re([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Re([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Re([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Re([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Re([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Re([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends q0{};exports.LegacyInputGuide=Re([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Re([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Re([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Re([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Re([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Re([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Re([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Re([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Re([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Re([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Re([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Re([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Re([ee("sp-labeled-input")],exports.LegacyLabeledInput);const wh="a",t7="ccc d LLL",r7="ccc LLL d",n7="ZZZZ",i7=Le("date-time-range");var HL=Object.defineProperty,FL=Object.getOwnPropertyDescriptor,w1=(o,t,n,l)=>{for(var c=l>1?void 0:l?FL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&HL(t,n,c),c};const l5=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},u5=o=>o.minute===0?"h":"h:mm",c5=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends Ve{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=i5(at.fromISO(this.start),this.timezone),n=i5(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?t7:r7,c={minutes:u5(t),year:c5(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Rx(t,n)?"":wh},g={minutes:u5(n),year:c5(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:wh,timezone:this.hideTimezone?"":` (${n7})`},h=o5(l5(t,c)),x=o5(l5(n,g));return`${h} - ${x}`}render(){return j`<span>${this.generateContent()}</span>`}};w1([F({type:String})],exports.DateTimeRange.prototype,"start",2);w1([F({type:String})],exports.DateTimeRange.prototype,"end",2);w1([F({type:String})],exports.DateTimeRange.prototype,"timezone",2);w1([F({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);w1([F({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=w1([ee(i7)],exports.DateTimeRange);exports.ACTION_BAR=P6;exports.ALERT=R3;exports.AM_PM_FORMAT=wh;exports.AVATAR=X5;exports.AVATAR_GROUP=J5;exports.AlertEvent=H3;exports.AvatarSize=U0;exports.AvatarTheme=Q5;exports.BADGE=I3;exports.BADGE_CHARACTER_LIMIT_DEFAULT=$3;exports.BADGE_NUMBER_LIMIT_DEFAULT=P3;exports.BASIC_PAGINATION=op;exports.BUTTON=Bh;exports.BUTTON_GROUP=u6;exports.BadgeTheme=A3;exports.BasicPaginationEvent=D3;exports.ButtonEvent=c6;exports.CARD=K3;exports.CARD_FOOTER=X3;exports.CARD_HEADER=Y3;exports.CARD_SECTION_HEADER=J3;exports.COLUMN=a6;exports.COMBO_BOX=S6;exports.COMBO_BOX_OPTION=M6;exports.CONFIRMATION_DIALOG=F6;exports.ConfirmationDialogCancel=B6;exports.ConfirmationDialogConfirm=W6;exports.DATE_TIME_RANGE=i7;exports.DAY_MONTH_YEAR_FORMAT=t7;exports.DROPDOWN_BUTTON=Z6;exports.DROPDOWN_MENU=d6;exports.DeleteLozengeEvent=n4;exports.FADE_IN_OUT=$5;exports.FOOTER=Z3;exports.GLOBAL_STYLES=j3;exports.GRID=G3;exports.GRID_ITEM=q3;exports.HEADER=B3;exports.HEADER_FOOTER_PAGE=W3;exports.HEADING=f3;exports.ICON=r6;exports.ILLUSTRATION=F3;exports.INLINE_EDIT_CONTROLS=p3;exports.INLINE_EDIT_FIELD=h3;exports.INLINE_EDIT_GROUP=ep;exports.INPUT_CHECKBOX=U6;exports.INPUT_CODE=e4;exports.INPUT_ERROR=b6;exports.INPUT_LABEL=y6;exports.INPUT_MULTISELECT=i4;exports.INPUT_NUMBER=j6;exports.INPUT_RADIO_GROUP=X6;exports.INPUT_RADIO_OPTION=J6;exports.INPUT_SELECT=t4;exports.INPUT_TEXT=G6;exports.INPUT_TEXTAREA=q6;exports.INPUT_TIME=a3;exports.InlineEditControlsCancelEvent=v3;exports.InlineEditControlsSaveEvent=b3;exports.InlineEditFieldBroadcastEvent=m3;exports.InlineEditFieldModeChangeEvent=y3;exports.InlineEditGroupModeChangeEvent=C3;exports.InputBase=Yn;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=Uh;exports.LABELED_INPUT=m6;exports.LINK=n6;exports.LINK_BUTTON=i6;exports.LOADING_SPINNER=l6;exports.LOZENGE=r4;exports.MENU=w6;exports.MENU_ITEM=j0;exports.MODAL=A6;exports.MODAL_BODY=N6;exports.MODAL_FOOTER=R6;exports.MODAL_HEADER=D6;exports.MONTH_DAY_YEAR_FORMAT=r7;exports.MenuBlurEvent=x6;exports.MenuItemSelectEvent=C6;exports.MenuSelectEvent=z6;exports.ModalCloseEvent=Gh;exports.PAGE_HEADER=U3;exports.PAGINATION=ap;exports.PAPER=e7;exports.POPOVER=Ph;exports.POPOVER_LISTENABLE_EVENT_TYPES=Z0;exports.POPOVER_ROLES=Dh;exports.POPOVER_TRIGGERS=q5;exports.PURE_POPOVER=G5;exports.PaginationEvent=N3;exports.PopoverEvent=j5;exports.RECORD_FIELD=g6;exports.RECORD_FIELD_LABEL=v6;exports.RECORD_ROW=S3;exports.RECORD_ROW_LABEL=M3;exports.RESPONSIVE_COLUMNS=V3;exports.ROW=o6;exports.SEARCH_MESSAGE_ID=Ru;exports.SELECT_ALL_ID=Ai;exports.SIDE_NAVIGATION=z3;exports.SIDE_NAVIGATION_ITEM=x3;exports.SPACING_BASE=Nh;exports.SPLIT_ROW=$6;exports.TAB=O3;exports.TABS=E3;exports.TAB_BAR=k3;exports.TAB_PANEL=_3;exports.TIMEZONE_FORMAT=n7;exports.TIME_FORMAT=s3;exports.TIME_REGEX_12H=c3;exports.TIME_REGEX_24H=u3;exports.TIME_REGEX_LOOSE=l3;exports.TOOLTIP=K5;exports.TabDeselectedEvent=T3;exports.TabSelectedEvent=xd;exports.TooltipTheme=Y5;exports.VIRTUAL_LIST=Vh;exports.VirtualListUpdateEvent=p6;exports.alertTypes=Nz;exports.buttonTypes=Sm;exports.click=V0;exports.columnSpans=Ed;exports.dropdownMenuSizes=Om;exports.focus=Rs;exports.hover=ch;exports.iconNames=cm;exports.icons=Rh;exports.illustrationNames=Rz;exports.illustrations=sp;exports.inlineEditControlsModes=g3;exports.inlineEditModes=Kx;exports.inputSizes=Bm;exports.labelPositions=Wm;exports.linkButtonElementTypes=gm;exports.linkTypes=mm;exports.lozengeColors=$C;exports.lozengeSizes=DC;exports.lozengeThemes=PC;exports.modalSizes=jy;exports.radioLayouts=mC;exports.resetLinkStyle=Fh;exports.spacing=e6;exports.spacingLevels=Zu;exports.syntaxes=TC;exports.timeSuffixes=Wx;exports.transformIcon=t6;
|
|
5071
|
+
`;up([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);up([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=up([ee(t7)],exports.Paper);var RL=Object.defineProperty,HL=Object.getOwnPropertyDescriptor,Re=(o,t,n,l)=>{for(var c=l>1?void 0:l?HL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&RL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Re([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Re([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Re([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Re([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Re([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Re([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Re([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Re([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Re([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Re([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Re([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Re([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Re([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Re([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Re([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Re([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Re([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Re([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Re([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Re([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Re([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Re([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Re([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Re([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Re([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Re([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Re([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Re([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Re([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Re([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Re([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Re([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Re([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Re([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Re([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Re([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Re([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Re([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Re([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Re([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Re([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Re([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Re([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Re([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Re([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Re([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Re([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Re([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends q0{};exports.LegacyInputGuide=Re([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Re([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Re([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Re([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Re([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Re([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Re([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Re([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Re([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Re([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Re([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Re([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Re([ee("sp-labeled-input")],exports.LegacyLabeledInput);const xh="a",r7="ccc d LLL",n7="ccc LLL d",i7="ZZZZ",o7=Le("date-time-range");var FL=Object.defineProperty,BL=Object.getOwnPropertyDescriptor,w1=(o,t,n,l)=>{for(var c=l>1?void 0:l?BL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&FL(t,n,c),c};const u5=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},c5=o=>o.minute===0?"h":"h:mm",d5=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends We{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=o5(at.fromISO(this.start),this.timezone),n=o5(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?r7:n7,c={minutes:c5(t),year:d5(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Hx(t,n)?"":xh},g={minutes:c5(n),year:d5(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:xh,timezone:this.hideTimezone?"":` (${i7})`},h=a5(u5(t,c)),w=a5(u5(n,g));return`${h} - ${w}`}render(){return j`<span>${this.generateContent()}</span>`}};w1([F({type:String})],exports.DateTimeRange.prototype,"start",2);w1([F({type:String})],exports.DateTimeRange.prototype,"end",2);w1([F({type:String})],exports.DateTimeRange.prototype,"timezone",2);w1([F({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);w1([F({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=w1([ee(o7)],exports.DateTimeRange);exports.ACTION_BAR=D6;exports.ALERT=H3;exports.AM_PM_FORMAT=xh;exports.AVATAR=J5;exports.AVATAR_GROUP=Q5;exports.AlertEvent=F3;exports.AvatarSize=U0;exports.AvatarTheme=e6;exports.BADGE=A3;exports.BADGE_CHARACTER_LIMIT_DEFAULT=P3;exports.BADGE_NUMBER_LIMIT_DEFAULT=D3;exports.BASIC_PAGINATION=ap;exports.BUTTON=Vh;exports.BUTTON_GROUP=c6;exports.BadgeTheme=$3;exports.BasicPaginationEvent=N3;exports.ButtonEvent=d6;exports.CARD=Y3;exports.CARD_FOOTER=J3;exports.CARD_HEADER=X3;exports.CARD_SECTION_HEADER=Q3;exports.COLUMN=s6;exports.COMBO_BOX=M6;exports.COMBO_BOX_OPTION=_6;exports.CONFIRMATION_DIALOG=B6;exports.ConfirmationDialogCancel=V6;exports.ConfirmationDialogConfirm=W6;exports.DATE_TIME_RANGE=o7;exports.DAY_MONTH_YEAR_FORMAT=r7;exports.DROPDOWN_BUTTON=U6;exports.DROPDOWN_MENU=f6;exports.DeleteLozengeEvent=i4;exports.FADE_IN_OUT=P5;exports.FOOTER=U3;exports.GLOBAL_STYLES=K3;exports.GRID=q3;exports.GRID_ITEM=j3;exports.HEADER=V3;exports.HEADER_FOOTER_PAGE=W3;exports.HEADING=h3;exports.ICON=n6;exports.ILLUSTRATION=B3;exports.INLINE_EDIT_CONTROLS=g3;exports.INLINE_EDIT_FIELD=p3;exports.INLINE_EDIT_GROUP=tp;exports.INPUT_CHECKBOX=G6;exports.INPUT_CODE=t4;exports.INPUT_ERROR=m6;exports.INPUT_LABEL=C6;exports.INPUT_MULTISELECT=o4;exports.INPUT_NUMBER=K6;exports.INPUT_RADIO_GROUP=J6;exports.INPUT_RADIO_OPTION=Q6;exports.INPUT_SELECT=r4;exports.INPUT_TEXT=q6;exports.INPUT_TEXTAREA=j6;exports.INPUT_TIME=s3;exports.InlineEditControlsCancelEvent=b3;exports.InlineEditControlsSaveEvent=m3;exports.InlineEditFieldBroadcastEvent=y3;exports.InlineEditFieldModeChangeEvent=C3;exports.InlineEditGroupModeChangeEvent=w3;exports.InputBase=Yn;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=Gh;exports.LABELED_INPUT=y6;exports.LINK=i6;exports.LINK_BUTTON=o6;exports.LOADING_SPINNER=u6;exports.LOZENGE=n4;exports.MENU=x6;exports.MENU_ITEM=j0;exports.MODAL=$6;exports.MODAL_BODY=R6;exports.MODAL_FOOTER=H6;exports.MODAL_HEADER=N6;exports.MONTH_DAY_YEAR_FORMAT=n7;exports.MenuBlurEvent=z6;exports.MenuItemSelectEvent=w6;exports.MenuSelectEvent=L6;exports.ModalCloseEvent=qh;exports.PAGE_HEADER=G3;exports.PAGINATION=sp;exports.PAPER=t7;exports.POPOVER=Dh;exports.POPOVER_LISTENABLE_EVENT_TYPES=Z0;exports.POPOVER_ROLES=Nh;exports.POPOVER_TRIGGERS=j5;exports.PURE_POPOVER=q5;exports.PaginationEvent=R3;exports.PopoverEvent=K5;exports.RECORD_FIELD=v6;exports.RECORD_FIELD_LABEL=b6;exports.RECORD_ROW=M3;exports.RECORD_ROW_LABEL=_3;exports.RESPONSIVE_COLUMNS=Z3;exports.ROW=a6;exports.SEARCH_MESSAGE_ID=Ru;exports.SELECT_ALL_ID=Ai;exports.SIDE_NAVIGATION=L3;exports.SIDE_NAVIGATION_ITEM=z3;exports.SPACING_BASE=Rh;exports.SPLIT_ROW=P6;exports.TAB=E3;exports.TABS=I3;exports.TAB_BAR=k3;exports.TAB_PANEL=T3;exports.TIMEZONE_FORMAT=i7;exports.TIME_FORMAT=l3;exports.TIME_REGEX_12H=d3;exports.TIME_REGEX_24H=c3;exports.TIME_REGEX_LOOSE=u3;exports.TOOLTIP=Y5;exports.TabDeselectedEvent=O3;exports.TabSelectedEvent=xd;exports.TooltipTheme=X5;exports.VIRTUAL_LIST=Zh;exports.VirtualListUpdateEvent=g6;exports.alertTypes=Rz;exports.buttonTypes=Mm;exports.click=W0;exports.columnSpans=kd;exports.dropdownMenuSizes=Em;exports.focus=Hs;exports.hover=ch;exports.iconNames=dm;exports.icons=Hh;exports.illustrationNames=Hz;exports.illustrations=lp;exports.inlineEditControlsModes=v3;exports.inlineEditModes=Yx;exports.inputSizes=Vm;exports.labelPositions=Wm;exports.linkButtonElementTypes=vm;exports.linkTypes=ym;exports.lozengeColors=PC;exports.lozengeSizes=NC;exports.lozengeThemes=DC;exports.modalSizes=Ky;exports.radioLayouts=yC;exports.resetLinkStyle=Bh;exports.spacing=t6;exports.spacingLevels=Zu;exports.syntaxes=OC;exports.timeSuffixes=Wx;exports.transformIcon=r6;
|