@redocly/openapi-docs 3.0.0-alpha.13 → 3.0.0-alpha.14.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,68 +2,68 @@
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "3.0.0-alpha.13"
6
- */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(h,E,o)=>{"use strict";var d=o(67286),x=o(89429),w=x(d("String.prototype.indexOf"));h.exports=function(O,k){var U=d(O,!!k);return typeof U=="function"&&w(O,".prototype.")>-1?x(U):U}},89429:(h,E,o)=>{"use strict";var d=o(4090),x=o(67286),w=x("%Function.prototype.apply%"),A=x("%Function.prototype.call%"),O=x("%Reflect.apply%",!0)||d.call(A,w),k=x("%Object.getOwnPropertyDescriptor%",!0),U=x("%Object.defineProperty%",!0),Z=x("%Math.max%");if(U)try{U({},"a",{value:1})}catch(ue){U=null}h.exports=function(ne){var ie=O(d,A,arguments);if(k&&U){var Y=k(ie,"length");Y.configurable&&U(ie,"length",{value:1+Z(0,ne.length-(arguments.length-1))})}return ie};var re=function(){return O(d,w,arguments)};U?U(h.exports,"apply",{value:re}):h.exports.apply=re},61682:(h,E,o)=>{(function(d){d(o(23326))})(function(d){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},w=d.Pos;d.defineOption("autoCloseBrackets",!1,function(D,C,F){F&&F!=d.Init&&(D.removeKeyMap(O),D.state.closeBrackets=null),C&&(k(A(C,"pairs")),D.state.closeBrackets=C,D.addKeyMap(O))});function A(D,C){return C=="pairs"&&typeof D=="string"?D:typeof D=="object"&&D[C]!=null?D[C]:x[C]}var O={Backspace:re,Enter:ue};function k(D){for(var C=0;C<D.length;C++){var F=D.charAt(C),V="'"+F+"'";O[V]||(O[V]=U(F))}}k(x.pairs+"`");function U(D){return function(C){return Y(C,D)}}function Z(D){var C=D.state.closeBrackets;if(!C||C.override)return C;var F=D.getModeAt(D.getCursor());return F.closeBrackets||C}function re(D){var C=Z(D);if(!C||D.getOption("disableInput"))return d.Pass;for(var F=A(C,"pairs"),V=D.listSelections(),X=0;X<V.length;X++){if(!V[X].empty())return d.Pass;var K=P(D,V[X].head);if(!K||F.indexOf(K)%2!=0)return d.Pass}for(var X=V.length-1;X>=0;X--){var W=V[X].head;D.replaceRange("",w(W.line,W.ch-1),w(W.line,W.ch+1),"+delete")}}function ue(D){var C=Z(D),F=C&&A(C,"explode");if(!F||D.getOption("disableInput"))return d.Pass;for(var V=D.listSelections(),X=0;X<V.length;X++){if(!V[X].empty())return d.Pass;var K=P(D,V[X].head);if(!K||F.indexOf(K)%2!=0)return d.Pass}D.operation(function(){var W=D.lineSeparator()||`
7
- `;D.replaceSelection(W+W,null),ne(D,-1),V=D.listSelections();for(var te=0;te<V.length;te++){var J=V[te].head.line;D.indentLine(J,null,!0),D.indentLine(J+1,null,!0)}})}function ne(D,C){for(var F=[],V=D.listSelections(),X=0,K=0;K<V.length;K++){var W=V[K];W.head==D.getCursor()&&(X=K);var te=W.head.ch||C>0?{line:W.head.line,ch:W.head.ch+C}:{line:W.head.line-1};F.push({anchor:te,head:te})}D.setSelections(F,X)}function ie(D){var C=d.cmpPos(D.anchor,D.head)>0;return{anchor:new w(D.anchor.line,D.anchor.ch+(C?-1:1)),head:new w(D.head.line,D.head.ch+(C?1:-1))}}function Y(D,C){var F=Z(D);if(!F||D.getOption("disableInput"))return d.Pass;var V=A(F,"pairs"),X=V.indexOf(C);if(X==-1)return d.Pass;for(var K=A(F,"closeBefore"),W=A(F,"triples"),te=V.charAt(X+1)==C,J=D.listSelections(),H=X%2==0,fe,he=0;he<J.length;he++){var _=J[he],Q=_.head,z,ge=D.getRange(Q,w(Q.line,Q.ch+1));if(H&&!_.empty())z="surround";else if((te||!H)&&ge==C)te&&$(D,Q)?z="both":W.indexOf(C)>=0&&D.getRange(Q,w(Q.line,Q.ch+3))==C+C+C?z="skipThree":z="skip";else if(te&&Q.ch>1&&W.indexOf(C)>=0&&D.getRange(w(Q.line,Q.ch-2),Q)==C+C){if(Q.ch>2&&/\bstring/.test(D.getTokenTypeAt(w(Q.line,Q.ch-2))))return d.Pass;z="addFour"}else if(te){var Ee=Q.ch==0?" ":D.getRange(w(Q.line,Q.ch-1),Q);if(!d.isWordChar(ge)&&Ee!=C&&!d.isWordChar(Ee))z="both";else return d.Pass}else if(H&&(ge.length===0||/\s/.test(ge)||K.indexOf(ge)>-1))z="both";else return d.Pass;if(!fe)fe=z;else if(fe!=z)return d.Pass}var je=X%2?V.charAt(X-1):C,ke=X%2?C:V.charAt(X+1);D.operation(function(){if(fe=="skip")ne(D,1);else if(fe=="skipThree")ne(D,3);else if(fe=="surround"){for(var it=D.getSelections(),et=0;et<it.length;et++)it[et]=je+it[et]+ke;D.replaceSelections(it,"around"),it=D.listSelections().slice();for(var et=0;et<it.length;et++)it[et]=ie(it[et]);D.setSelections(it)}else fe=="both"?(D.replaceSelection(je+ke,null),D.triggerElectric(je+ke),ne(D,-1)):fe=="addFour"&&(D.replaceSelection(je+je+je+je,"before"),ne(D,1))})}function P(D,C){var F=D.getRange(w(C.line,C.ch-1),w(C.line,C.ch+1));return F.length==2?F:null}function $(D,C){var F=D.getTokenAt(w(C.line,C.ch+1));return/\bstring/.test(F.type)&&F.start==C.ch&&(C.ch==0||!/\bstring/.test(D.getTokenTypeAt(C)))}})},32407:(h,E,o)=>{(function(d){d(o(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function O(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function k(ne,ie,Y){var P=ne.getLineHandle(ie.line),$=ie.ch-1,D=Y&&Y.afterCursor;D==null&&(D=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var C=O(Y),F=!D&&$>=0&&C.test(P.text.charAt($))&&A[P.text.charAt($)]||C.test(P.text.charAt($+1))&&A[P.text.charAt(++$)];if(!F)return null;var V=F.charAt(1)==">"?1:-1;if(Y&&Y.strict&&V>0!=($==ie.ch))return null;var X=ne.getTokenTypeAt(w(ie.line,$+1)),K=U(ne,w(ie.line,$+(V>0?1:0)),V,X,Y);return K==null?null:{from:w(ie.line,$),to:K&&K.pos,match:K&&K.ch==F.charAt(0),forward:V>0}}function U(ne,ie,Y,P,$){for(var D=$&&$.maxScanLineLength||1e4,C=$&&$.maxScanLines||1e3,F=[],V=O($),X=Y>0?Math.min(ie.line+C,ne.lastLine()+1):Math.max(ne.firstLine()-1,ie.line-C),K=ie.line;K!=X;K+=Y){var W=ne.getLine(K);if(!!W){var te=Y>0?0:W.length-1,J=Y>0?W.length:-1;if(!(W.length>D))for(K==ie.line&&(te=ie.ch-(Y<0?1:0));te!=J;te+=Y){var H=W.charAt(te);if(V.test(H)&&(P===void 0||(ne.getTokenTypeAt(w(K,te+1))||"")==(P||""))){var fe=A[H];if(fe&&fe.charAt(1)==">"==Y>0)F.push(H);else if(F.length)F.pop();else return{pos:w(K,te),ch:H}}}}}return K-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,ie,Y){for(var P=ne.state.matchBrackets.maxHighlightLineLength||1e3,$=Y&&Y.highlightNonMatching,D=[],C=ne.listSelections(),F=0;F<C.length;F++){var V=C[F].empty()&&k(ne,C[F].head,Y);if(V&&(V.match||$!==!1)&&ne.getLine(V.from.line).length<=P){var X=V.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";D.push(ne.markText(V.from,w(V.from.line,V.from.ch+1),{className:X})),V.to&&ne.getLine(V.to.line).length<=P&&D.push(ne.markText(V.to,w(V.to.line,V.to.ch+1),{className:X}))}}if(D.length){x&&ne.state.focused&&ne.focus();var K=function(){ne.operation(function(){for(var W=0;W<D.length;W++)D[W].clear()})};if(ie)setTimeout(K,800);else return K}}function re(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=Z(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,ie,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",re),ne.off("focus",re),ne.off("blur",ue),ue(ne)),ie&&(ne.state.matchBrackets=typeof ie=="object"?ie:{},ne.on("cursorActivity",re),ne.on("focus",re),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,ie,Y){return(Y||typeof ie=="boolean")&&(Y?(Y.strict=ie,ie=Y):ie=ie?{strict:!0}:null),k(this,ne,ie)}),d.defineExtension("scanForBracket",function(ne,ie,Y,P){return U(this,ne,ie,Y,P)})})},22130:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(D,C,F){if(!C)return D.showHint(F);F&&F.async&&(C.async=!0);var V={hint:C};if(F)for(var X in F)V[X]=F[X];return D.showHint(V)},d.defineExtension("showHint",function(D){D=U(this,this.getCursor("start"),D);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!D.hint.supportsSelection)return;for(var F=0;F<C.length;F++)if(C[F].head.line!=C[F].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var V=this.state.completionActive=new A(this,D);!V.options.hint||(d.signal(this,"startCompletion",this),V.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(D,C){if(this.cm=D,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var F=this;D.on("cursorActivity",this.activityFunc=function(){F.cursorActivity()})}}var O=window.requestAnimationFrame||function(D){return setTimeout(D,1e3/60)},k=window.cancelAnimationFrame||clearTimeout;A.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(D,C){var F=D.list[C],V=this;this.cm.operation(function(){F.hint?F.hint(V.cm,D,F):V.cm.replaceRange(Z(F),F.from||D.from,F.to||D.to,"complete"),d.signal(D,"pick",F),V.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(k(this.debounce),this.debounce=0);var D=this.startPos;this.data&&(D=this.data.from);var C=this.cm.getCursor(),F=this.cm.getLine(C.line);if(C.line!=this.startPos.line||F.length-C.ch!=this.startLen-this.startPos.ch||C.ch<D.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(F.charAt(C.ch-1)))this.close();else{var V=this;this.debounce=O(function(){V.update()}),this.widget&&this.widget.disable()}},update:function(D){if(this.tick!=null){var C=this,F=++this.tick;Y(this.options.hint,this.cm,this.options,function(V){C.tick==F&&C.finishUpdate(V,D)})}},finishUpdate:function(D,C){this.data&&d.signal(this.data,"update");var F=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=D,D&&D.list.length&&(F&&D.list.length==1?this.pick(D,0):(this.widget=new ne(this,D),d.signal(D,"shown")))}};function U(D,C,F){var V=D.options.hintOptions,X={};for(var K in $)X[K]=$[K];if(V)for(var K in V)V[K]!==void 0&&(X[K]=V[K]);if(F)for(var K in F)F[K]!==void 0&&(X[K]=F[K]);return X.hint.resolve&&(X.hint=X.hint.resolve(D,C)),X}function Z(D){return typeof D=="string"?D:D.text}function re(D,C){var F={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},V=/Mac/.test(navigator.platform);V&&(F["Ctrl-P"]=function(){C.moveFocus(-1)},F["Ctrl-N"]=function(){C.moveFocus(1)});var X=D.options.customKeys,K=X?{}:F;function W(H,fe){var he;typeof fe!="string"?he=function(_){return fe(_,C)}:F.hasOwnProperty(fe)?he=F[fe]:he=fe,K[H]=he}if(X)for(var te in X)X.hasOwnProperty(te)&&W(te,X[te]);var J=D.options.extraKeys;if(J)for(var te in J)J.hasOwnProperty(te)&&W(te,J[te]);return K}function ue(D,C){for(;C&&C!=D;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==D)return C;C=C.parentNode}}function ne(D,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=D,this.data=C,this.picked=!1;var F=this,V=D.cm,X=V.getInputField().ownerDocument,K=X.defaultView||X.parentWindow,W=this.hints=X.createElement("ul");W.setAttribute("role","listbox"),W.setAttribute("aria-expanded","true"),W.id=this.id;var te=D.cm.options.theme;W.className="CodeMirror-hints "+te,this.selectedHint=C.selectedHint||0;for(var J=C.list,H=0;H<J.length;++H){var fe=W.appendChild(X.createElement("li")),he=J[H],_=x+(H!=this.selectedHint?"":" "+w);he.className!=null&&(_=he.className+" "+_),fe.className=_,H==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+H,fe.setAttribute("role","option"),he.render?he.render(fe,C,he):fe.appendChild(X.createTextNode(he.displayText||Z(he))),fe.hintId=H}var Q=D.options.container||X.body,z=V.cursorCoords(D.options.alignWithWord?C.from:null),ge=z.left,Ee=z.bottom,je=!0,ke=0,it=0;if(Q!==X.body){var et=["absolute","relative","fixed"].indexOf(K.getComputedStyle(Q).position)!==-1,at=et?Q:Q.offsetParent,Tt=at.getBoundingClientRect(),St=X.body.getBoundingClientRect();ke=Tt.left-St.left-at.scrollLeft,it=Tt.top-St.top-at.scrollTop}W.style.left=ge-ke+"px",W.style.top=Ee-it+"px";var Le=K.innerWidth||Math.max(X.body.offsetWidth,X.documentElement.offsetWidth),Oe=K.innerHeight||Math.max(X.body.offsetHeight,X.documentElement.offsetHeight);Q.appendChild(W),V.getInputField().setAttribute("aria-autocomplete","list"),V.getInputField().setAttribute("aria-owns",this.id),V.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var be=D.options.moveOnOverlap?W.getBoundingClientRect():new DOMRect,De=D.options.paddingForScrollbar?W.scrollHeight>W.clientHeight+1:!1,Ge;setTimeout(function(){Ge=V.getScrollInfo()});var tt=be.bottom-Oe;if(tt>0){var Ze=be.bottom-be.top,bt=be.top-(z.bottom-z.top)-2;Oe-be.top<bt?(Ze>bt&&(W.style.height=(Ze=bt)+"px"),W.style.top=(Ee=z.top-Ze)+it+"px",je=!1):W.style.height=Oe-be.top-2+"px"}var Et=be.right-Le;if(De&&(Et+=V.display.nativeBarWidth),Et>0&&(be.right-be.left>Le&&(W.style.width=Le-5+"px",Et-=be.right-be.left-Le),W.style.left=(ge=Math.max(z.left-Et-ke,0))+"px"),De)for(var Xt=W.firstChild;Xt;Xt=Xt.nextSibling)Xt.style.paddingRight=V.display.nativeBarWidth+"px";if(V.addKeyMap(this.keyMap=re(D,{moveFocus:function(Xe,er){F.changeActive(F.selectedHint+Xe,er)},setFocus:function(Xe){F.changeActive(Xe)},menuSize:function(){return F.screenAmount()},length:J.length,close:function(){D.close()},pick:function(){F.pick()},data:C})),D.options.closeOnUnfocus){var zt;V.on("blur",this.onBlur=function(){zt=setTimeout(function(){D.close()},100)}),V.on("focus",this.onFocus=function(){clearTimeout(zt)})}V.on("scroll",this.onScroll=function(){var Xe=V.getScrollInfo(),er=V.getWrapperElement().getBoundingClientRect();Ge||(Ge=V.getScrollInfo());var Rt=Ee+Ge.top-Xe.top,Rr=Rt-(K.pageYOffset||(X.documentElement||X.body).scrollTop);if(je||(Rr+=W.offsetHeight),Rr<=er.top||Rr>=er.bottom)return D.close();W.style.top=Rt+"px",W.style.left=ge+Ge.left-Xe.left+"px"}),d.on(W,"dblclick",function(Xe){var er=ue(W,Xe.target||Xe.srcElement);er&&er.hintId!=null&&(F.changeActive(er.hintId),F.pick())}),d.on(W,"click",function(Xe){var er=ue(W,Xe.target||Xe.srcElement);er&&er.hintId!=null&&(F.changeActive(er.hintId),D.options.completeOnSingleClick&&F.pick())}),d.on(W,"mousedown",function(){setTimeout(function(){V.focus()},20)});var nt=this.getSelectedHintRange();return(nt.from!==0||nt.to!==0)&&this.scrollToActive(),d.signal(C,"select",J[this.selectedHint],W.childNodes[this.selectedHint]),!0}ne.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var D=this.completion.cm.getInputField();D.removeAttribute("aria-activedescendant"),D.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var D=this;this.keyMap={Enter:function(){D.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(D,C){if(D>=this.data.list.length?D=C?this.data.list.length-1:0:D<0&&(D=C?0:this.data.list.length-1),this.selectedHint!=D){var F=this.hints.childNodes[this.selectedHint];F&&(F.className=F.className.replace(" "+w,""),F.removeAttribute("aria-selected")),F=this.hints.childNodes[this.selectedHint=D],F.className+=" "+w,F.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",F.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],F)}},scrollToActive:function(){var D=this.getSelectedHintRange(),C=this.hints.childNodes[D.from],F=this.hints.childNodes[D.to],V=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-V.offsetTop:F.offsetTop+F.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=F.offsetTop+F.offsetHeight-this.hints.clientHeight+V.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var D=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-D),to:Math.min(this.data.list.length-1,this.selectedHint+D)}}};function ie(D,C){if(!D.somethingSelected())return C;for(var F=[],V=0;V<C.length;V++)C[V].supportsSelection&&F.push(C[V]);return F}function Y(D,C,F,V){if(D.async)D(C,V,F);else{var X=D(C,F);X&&X.then?X.then(V):V(X)}}function P(D,C){var F=D.getHelpers(C,"hint"),V;if(F.length){var X=function(K,W,te){var J=ie(K,F);function H(fe){if(fe==J.length)return W(null);Y(J[fe],K,te,function(he){he&&he.list.length>0?W(he):H(fe+1)})}H(0)};return X.async=!0,X.supportsSelection=!0,X}else return(V=D.getHelper(D.getCursor(),"hintWords"))?function(K){return d.hint.fromList(K,{words:V})}:d.hint.anyword?function(K,W){return d.hint.anyword(K,W)}:function(){}}d.registerHelper("hint","auto",{resolve:P}),d.registerHelper("hint","fromList",function(D,C){var F=D.getCursor(),V=D.getTokenAt(F),X,K=d.Pos(F.line,V.start),W=F;V.start<F.ch&&/\w/.test(V.string.charAt(F.ch-V.start-1))?X=V.string.substr(0,F.ch-V.start):(X="",K=F);for(var te=[],J=0;J<C.words.length;J++){var H=C.words[J];H.slice(0,X.length)==X&&te.push(H)}if(te.length)return{list:te,from:K,to:W}}),d.commands.autocomplete=d.showHint;var $={hint:d.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};d.defineOption("hintOptions",null)})},29387:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function A(W,te,J){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,H.appendChild(J.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(H):document.body.appendChild(H);function fe(he){if(!H.parentNode)return d.off(document,"mousemove",fe);H.style.top=Math.max(0,he.clientY-H.offsetHeight-5)+"px",H.style.left=he.clientX+5+"px"}return d.on(document,"mousemove",fe),fe(te),H.style.opacity!=null&&(H.style.opacity=1),H}function O(W){W.parentNode&&W.parentNode.removeChild(W)}function k(W){!W.parentNode||(W.style.opacity==null&&O(W),W.style.opacity=0,setTimeout(function(){O(W)},600))}function U(W,te,J,H){var fe=A(W,te,J);function he(){d.off(H,"mouseout",he),fe&&(k(fe),fe=null)}var _=setInterval(function(){if(fe)for(var Q=H;;Q=Q.parentNode){if(Q&&Q.nodeType==11&&(Q=Q.host),Q==document.body)return;if(!Q){he();break}}if(!fe)return clearInterval(_)},400);d.on(H,"mouseout",he)}function Z(W,te,J){this.marked=[],te instanceof Function&&(te={getAnnotations:te}),(!te||te===!0)&&(te={}),this.options={},this.linterOptions=te.options||{};for(var H in re)this.options[H]=re[H];for(var H in te)re.hasOwnProperty(H)?te[H]!=null&&(this.options[H]=te[H]):te.options||(this.linterOptions[H]=te[H]);this.timeout=null,this.hasGutter=J,this.onMouseOver=function(fe){K(W,fe)},this.waitingFor=0}var re={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(W){var te=W.state.lint;te.hasGutter&&W.clearGutter(x),te.options.highlightLines&&ne(W);for(var J=0;J<te.marked.length;++J)te.marked[J].clear();te.marked.length=0}function ne(W){W.eachLine(function(te){var J=te.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(te.wrapClass);J&&W.removeLineClass(te,"wrap",J[0])})}function ie(W,te,J,H,fe){var he=document.createElement("div"),_=he;return he.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+J,H&&(_=he.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&d.on(_,"mouseover",function(Q){U(W,Q,te,_)}),he}function Y(W,te){return W=="error"?W:te}function P(W){for(var te=[],J=0;J<W.length;++J){var H=W[J],fe=H.from.line;(te[fe]||(te[fe]=[])).push(H)}return te}function $(W){var te=W.severity;te||(te="error");var J=document.createElement("div");return J.className="CodeMirror-lint-message CodeMirror-lint-message-"+te,typeof W.messageHTML!="undefined"?J.innerHTML=W.messageHTML:J.appendChild(document.createTextNode(W.message)),J}function D(W,te){var J=W.state.lint,H=++J.waitingFor;function fe(){H=-1,W.off("change",fe)}W.on("change",fe),te(W.getValue(),function(he,_){W.off("change",fe),J.waitingFor==H&&(_&&he instanceof d&&(he=_),W.operation(function(){F(W,he)}))},J.linterOptions,W)}function C(W){var te=W.state.lint;if(!!te){var J=te.options,H=J.getAnnotations||W.getHelper(d.Pos(0,0),"lint");if(!!H)if(J.async||H.async)D(W,H);else{var fe=H(W.getValue(),te.linterOptions,W);if(!fe)return;fe.then?fe.then(function(he){W.operation(function(){F(W,he)})}):W.operation(function(){F(W,fe)})}}}function F(W,te){var J=W.state.lint;if(!!J){var H=J.options;ue(W);for(var fe=P(te),he=0;he<fe.length;++he){var _=fe[he];if(!!_){var Q=[];_=_.filter(function(it){return Q.indexOf(it.message)>-1?!1:Q.push(it.message)});for(var z=null,ge=J.hasGutter&&document.createDocumentFragment(),Ee=0;Ee<_.length;++Ee){var je=_[Ee],ke=je.severity;ke||(ke="error"),z=Y(z,ke),H.formatAnnotation&&(je=H.formatAnnotation(je)),J.hasGutter&&ge.appendChild($(je)),je.to&&J.marked.push(W.markText(je.from,je.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:je}))}J.hasGutter&&W.setGutterMarker(he,x,ie(W,ge,z,fe[he].length>1,H.tooltips)),H.highlightLines&&W.addLineClass(he,"wrap",w+z)}}H.onUpdateLinting&&H.onUpdateLinting(te,fe,W)}}function V(W){var te=W.state.lint;!te||(clearTimeout(te.timeout),te.timeout=setTimeout(function(){C(W)},te.options.delay))}function X(W,te,J){for(var H=J.target||J.srcElement,fe=document.createDocumentFragment(),he=0;he<te.length;he++){var _=te[he];fe.appendChild($(_))}U(W,J,fe,H)}function K(W,te){var J=te.target||te.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(J.className)){for(var H=J.getBoundingClientRect(),fe=(H.left+H.right)/2,he=(H.top+H.bottom)/2,_=W.findMarksAt(W.coordsChar({left:fe,top:he},"client")),Q=[],z=0;z<_.length;++z){var ge=_[z].__annotation;ge&&Q.push(ge)}Q.length&&X(W,Q,te)}}d.defineOption("lint",!1,function(W,te,J){if(J&&J!=d.Init&&(ue(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",V),d.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),te){for(var H=W.getOption("gutters"),fe=!1,he=0;he<H.length;++he)H[he]==x&&(fe=!0);var _=W.state.lint=new Z(W,te,fe);_.options.lintOnChange&&W.on("change",V),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(W.getWrapperElement(),"mouseover",_.onMouseOver),C(W)}}),d.defineExtension("performLint",function(){C(this)})})},19757:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x=d.Pos;function w(C){var F=C.flags;return F!=null?F:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function A(C,F){for(var V=w(C),X=V,K=0;K<F.length;K++)X.indexOf(F.charAt(K))==-1&&(X+=F.charAt(K));return V==X?C:new RegExp(C.source,X)}function O(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function k(C,F,V){F=A(F,"g");for(var X=V.line,K=V.ch,W=C.lastLine();X<=W;X++,K=0){F.lastIndex=K;var te=C.getLine(X),J=F.exec(te);if(J)return{from:x(X,J.index),to:x(X,J.index+J[0].length),match:J}}}function U(C,F,V){if(!O(F))return k(C,F,V);F=A(F,"gm");for(var X,K=1,W=V.line,te=C.lastLine();W<=te;){for(var J=0;J<K&&!(W>te);J++){var H=C.getLine(W++);X=X==null?H:X+`
8
- `+H}K=K*2,F.lastIndex=V.ch;var fe=F.exec(X);if(fe){var he=X.slice(0,fe.index).split(`
9
- `),_=fe[0].split(`
10
- `),Q=V.line+he.length-1,z=he[he.length-1].length;return{from:x(Q,z),to:x(Q+_.length-1,_.length==1?z+_[0].length:_[_.length-1].length),match:fe}}}}function Z(C,F,V){for(var X,K=0;K<=C.length;){F.lastIndex=K;var W=F.exec(C);if(!W)break;var te=W.index+W[0].length;if(te>C.length-V)break;(!X||te>X.index+X[0].length)&&(X=W),K=W.index+1}return X}function re(C,F,V){F=A(F,"g");for(var X=V.line,K=V.ch,W=C.firstLine();X>=W;X--,K=-1){var te=C.getLine(X),J=Z(te,F,K<0?0:te.length-K);if(J)return{from:x(X,J.index),to:x(X,J.index+J[0].length),match:J}}}function ue(C,F,V){if(!O(F))return re(C,F,V);F=A(F,"gm");for(var X,K=1,W=C.getLine(V.line).length-V.ch,te=V.line,J=C.firstLine();te>=J;){for(var H=0;H<K&&te>=J;H++){var fe=C.getLine(te--);X=X==null?fe:fe+`
11
- `+X}K*=2;var he=Z(X,F,W);if(he){var _=X.slice(0,he.index).split(`
12
- `),Q=he[0].split(`
13
- `),z=te+_.length,ge=_[_.length-1].length;return{from:x(z,ge),to:x(z+Q.length-1,Q.length==1?ge+Q[0].length:Q[Q.length-1].length),match:he}}}}var ne,ie;String.prototype.normalize?(ne=function(C){return C.normalize("NFD").toLowerCase()},ie=function(C){return C.normalize("NFD")}):(ne=function(C){return C.toLowerCase()},ie=function(C){return C});function Y(C,F,V,X){if(C.length==F.length)return V;for(var K=0,W=V+Math.max(0,C.length-F.length);;){if(K==W)return K;var te=K+W>>1,J=X(C.slice(0,te)).length;if(J==V)return te;J>V?W=te:K=te+1}}function P(C,F,V,X){if(!F.length)return null;var K=X?ne:ie,W=K(F).split(/\r|\n\r?/);e:for(var te=V.line,J=V.ch,H=C.lastLine()+1-W.length;te<=H;te++,J=0){var fe=C.getLine(te).slice(J),he=K(fe);if(W.length==1){var _=he.indexOf(W[0]);if(_==-1)continue e;var V=Y(fe,he,_,K)+J;return{from:x(te,Y(fe,he,_,K)+J),to:x(te,Y(fe,he,_+W[0].length,K)+J)}}else{var Q=he.length-W[0].length;if(he.slice(Q)!=W[0])continue e;for(var z=1;z<W.length-1;z++)if(K(C.getLine(te+z))!=W[z])continue e;var ge=C.getLine(te+W.length-1),Ee=K(ge),je=W[W.length-1];if(Ee.slice(0,je.length)!=je)continue e;return{from:x(te,Y(fe,he,Q,K)+J),to:x(te+W.length-1,Y(ge,Ee,je.length,K))}}}}function $(C,F,V,X){if(!F.length)return null;var K=X?ne:ie,W=K(F).split(/\r|\n\r?/);e:for(var te=V.line,J=V.ch,H=C.firstLine()-1+W.length;te>=H;te--,J=-1){var fe=C.getLine(te);J>-1&&(fe=fe.slice(0,J));var he=K(fe);if(W.length==1){var _=he.lastIndexOf(W[0]);if(_==-1)continue e;return{from:x(te,Y(fe,he,_,K)),to:x(te,Y(fe,he,_+W[0].length,K))}}else{var Q=W[W.length-1];if(he.slice(0,Q.length)!=Q)continue e;for(var z=1,V=te-W.length+1;z<W.length-1;z++)if(K(C.getLine(V+z))!=W[z])continue e;var ge=C.getLine(te+1-W.length),Ee=K(ge);if(Ee.slice(Ee.length-W[0].length)!=W[0])continue e;return{from:x(te+1-W.length,Y(ge,Ee,ge.length-W[0].length,K)),to:x(te,Y(fe,he,Q.length,K))}}}}function D(C,F,V,X){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,V=V?C.clipPos(V):x(0,0),this.pos={from:V,to:V};var K;typeof X=="object"?K=X.caseFold:(K=X,X=null),typeof F=="string"?(K==null&&(K=!1),this.matches=function(W,te){return(W?$:P)(C,F,te,K)}):(F=A(F,"gm"),!X||X.multiline!==!1?this.matches=function(W,te){return(W?ue:U)(C,F,te)}:this.matches=function(W,te){return(W?re:k)(C,F,te)})}D.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var F=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(F=x(F.line,F.ch),C?(F.ch--,F.ch<0&&(F.line--,F.ch=(this.doc.getLine(F.line)||"").length)):(F.ch++,F.ch>(this.doc.getLine(F.line)||"").length&&(F.ch=0,F.line++)),d.cmpPos(F,this.doc.clipPos(F))!=0))return this.atOccurrence=!1;var V=this.matches(C,F);if(this.afterEmptyMatch=V&&d.cmpPos(V.from,V.to)==0,V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var X=x(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:X,to:X},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,F){if(!!this.atOccurrence){var V=d.splitLines(C);this.doc.replaceRange(V,this.pos.from,this.pos.to,F),this.pos.to=x(this.pos.from.line+V.length-1,V[V.length-1].length+(V.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(C,F,V){return new D(this.doc,C,F,V)}),d.defineDocExtension("getSearchCursor",function(C,F,V){return new D(this,C,F,V)}),d.defineExtension("selectMatches",function(C,F){for(var V=[],X=this.getSearchCursor(C,this.getCursor("from"),F);X.findNext()&&!(d.cmpPos(X.to(),this.getCursor("to"))>0);)V.push({anchor:X.from(),head:X.to()});V.length&&this.setSelections(V,0)})})},23326:function(h){(function(E,o){h.exports=o()})(this,function(){"use strict";var E=navigator.userAgent,o=navigator.platform,d=/gecko\/\d/i.test(E),x=/MSIE \d/.test(E),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(E),A=/Edge\/(\d+)/.exec(E),O=x||w||A,k=O&&(x?document.documentMode||6:+(A||w)[1]),U=!A&&/WebKit\//.test(E),Z=U&&/Qt\/\d+\.\d+/.test(E),re=!A&&/Chrome\/(\d+)/.exec(E),ue=re&&+re[1],ne=/Opera\//.test(E),ie=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(E),P=/PhantomJS/.test(E),$=ie&&(/Mobile\/\w+/.test(E)||navigator.maxTouchPoints>2),D=/Android/.test(E),C=$||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(E),F=$||/Mac/.test(o),V=/\bCrOS\b/.test(E),X=/win/i.test(o),K=ne&&E.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(ne=!1,U=!0);var W=F&&(Z||ne&&(K==null||K<12.11)),te=d||O&&k>=9;function J(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var H=function(t,i){var u=t.className,l=J(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return fe(t).appendChild(i)}function _(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)f.appendChild(i[g]);return f}function Q(t,i,u,l){var f=_(t,i,u,l);return f.setAttribute("role","presentation"),f}var z;document.createRange?z=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:z=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ge(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Ee(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function je(t,i){var u=t.className;J(i).test(u)||(t.className+=(u?" ":"")+i)}function ke(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!J(u[l]).test(i)&&(i+=" "+u[l]);return i}var it=function(t){t.select()};$?it=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:O&&(it=function(t){try{t.select()}catch(i){}});function et(t){return t.display.wrapper.ownerDocument}function at(t){return et(t).defaultView}function Tt(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function St(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Le(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var g=l||0,S=f||0;;){var T=t.indexOf(" ",g);if(T<0||T>=i)return S+(i-g);S+=T-g,S+=u-S%u,g=T+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Tt(this.onTimeout,this)};Oe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Oe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function be(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var De=50,Ge={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},Ze={origin:"*mouse"},bt={origin:"+move"};function Et(t,i,u){for(var l=0,f=0;;){var g=t.indexOf(" ",l);g==-1&&(g=t.length);var S=g-l;if(g==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=g-l,f+=u-f%u,l=g+1,f>=i)return l}}var Xt=[""];function zt(t){for(;Xt.length<=t;)Xt.push(nt(Xt)+" ");return Xt[t]}function nt(t){return t[t.length-1]}function Xe(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function er(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function Rt(){}function Rr(t,i){var u;return Object.create?u=Object.create(t):(Rt.prototype=t,u=new Rt),i&&St(i,u),u}var _e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Mr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||_e.test(t))}function Ar(t,i){return i?i.source.indexOf("\\w")>-1&&Mr(t)?!0:i.test(t):Mr(t)}function en(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var $e=/[\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 yt(t){return t.charCodeAt(0)>=768&&$e.test(t)}function Lt(t,i,u){for(;(u<0?i>0:i<t.length)&&yt(t.charAt(i));)i+=u;return i}function wt(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,g=l<0?Math.ceil(f):Math.floor(f);if(g==i)return t(g)?i:u;t(g)?u=g:i=g+l}}function Ft(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,g=0;g<t.length;++g){var S=t[g];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",g),f=!0)}f||l(i,u,"ltr")}var dt=null;function vt(t,i,u){var l;dt=null;for(var f=0;f<t.length;++f){var g=t[f];if(g.from<i&&g.to>i)return f;g.to==i&&(g.from!=g.to&&u=="before"?l=f:dt=f),g.from==i&&(g.from!=g.to&&u!="before"?l=f:dt=f)}return l!=null?l:dt}var Pt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(j){return j<=247?t.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,S=/[Lb1n]/,T=/[1n]/;function M(j,le,de){this.level=j,this.from=le,this.to=de}return function(j,le){var de=le=="ltr"?"L":"R";if(j.length==0||le=="ltr"&&!l.test(j))return!1;for(var we=j.length,ye=[],Ie=0;Ie<we;++Ie)ye.push(u(j.charCodeAt(Ie)));for(var Ne=0,He=de;Ne<we;++Ne){var Ye=ye[Ne];Ye=="m"?ye[Ne]=He:He=Ye}for(var Qe=0,Je=de;Qe<we;++Qe){var rt=ye[Qe];rt=="1"&&Je=="r"?ye[Qe]="n":g.test(rt)&&(Je=rt,rt=="r"&&(ye[Qe]="R"))}for(var gt=1,ct=ye[0];gt<we-1;++gt){var Dt=ye[gt];Dt=="+"&&ct=="1"&&ye[gt+1]=="1"?ye[gt]="1":Dt==","&&ct==ye[gt+1]&&(ct=="1"||ct=="n")&&(ye[gt]=ct),ct=Dt}for(var dr=0;dr<we;++dr){var zr=ye[dr];if(zr==",")ye[dr]="N";else if(zr=="%"){var Sr=void 0;for(Sr=dr+1;Sr<we&&ye[Sr]=="%";++Sr);for(var An=dr&&ye[dr-1]=="!"||Sr<we&&ye[Sr]=="1"?"1":"N",Gt=dr;Gt<Sr;++Gt)ye[Gt]=An;dr=Sr-1}}for(var Nr=0,hn=de;Nr<we;++Nr){var L=ye[Nr];hn=="L"&&L=="1"?ye[Nr]="L":g.test(L)&&(hn=L)}for(var Bt=0;Bt<we;++Bt)if(f.test(ye[Bt])){var pt=void 0;for(pt=Bt+1;pt<we&&f.test(ye[pt]);++pt);for(var mr=(Bt?ye[Bt-1]:de)=="L",Fr=(pt<we?ye[pt]:de)=="L",Sa=mr==Fr?mr?"L":"R":de,Ri=Bt;Ri<pt;++Ri)ye[Ri]=Sa;Bt=pt-1}for(var Xr=[],Qn,Dr=0;Dr<we;)if(S.test(ye[Dr])){var ro=Dr;for(++Dr;Dr<we&&S.test(ye[Dr]);++Dr);Xr.push(new M(0,ro,Dr))}else{var Mi=Dr,Zi=Xr.length,qi=le=="rtl"?1:0;for(++Dr;Dr<we&&ye[Dr]!="L";++Dr);for(var Qr=Mi;Qr<Dr;)if(T.test(ye[Qr])){Mi<Qr&&(Xr.splice(Zi,0,new M(1,Mi,Qr)),Zi+=qi);var no=Qr;for(++Qr;Qr<Dr&&T.test(ye[Qr]);++Qr);Xr.splice(Zi,0,new M(2,no,Qr)),Zi+=qi,Mi=Qr}else++Qr;Mi<Dr&&Xr.splice(Zi,0,new M(1,Mi,Dr))}return le=="ltr"&&(Xr[0].level==1&&(Qn=j.match(/^\s+/))&&(Xr[0].from=Qn[0].length,Xr.unshift(new M(0,0,Qn[0].length))),nt(Xr).level==1&&(Qn=j.match(/\s+$/))&&(nt(Xr).to-=Qn[0].length,Xr.push(new M(0,we-Qn[0].length,we)))),le=="rtl"?Xr.reverse():Xr}}();function ot(t,i){var u=t.order;return u==null&&(u=t.order=Pt(t.text,i)),u}var Ve=[],ce=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function xe(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var g=be(f,u);g>-1&&(l[i]=f.slice(0,g).concat(f.slice(g+1)))}}}function Ke(t,i){var u=xe(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function st(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),zn(i)||i.codemirrorIgnore}function xt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)be(u,i[l])==-1&&u.push(i[l])}function kt(t,i){return xe(t,i).length>0}function yr(t){t.prototype.on=function(i,u){ce(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Nt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Yt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function zn(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ur(t){Nt(t),Yt(t)}function Kr(t){return t.target||t.srcElement}function vi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),F&&t.ctrlKey&&i==1&&(i=3),i}var tn=function(){if(O&&k<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),gi;function mi(t){if(gi==null){var i=_("span","\u200B");he(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(gi=i.offsetWidth<=1&&i.offsetHeight>2&&!(O&&k<8))}var u=gi?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var rn;function xr(t){if(rn!=null)return rn;var i=he(t,document.createTextNode("A\u062EA")),u=z(i,0,1).getBoundingClientRect(),l=z(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:rn=l.right-u.right<3}var Gn=`
5
+ * Version: "3.0.0-alpha.14.beta.2"
6
+ */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(h,E,o)=>{"use strict";var d=o(67286),x=o(89429),w=x(d("String.prototype.indexOf"));h.exports=function(O,k){var U=d(O,!!k);return typeof U=="function"&&w(O,".prototype.")>-1?x(U):U}},89429:(h,E,o)=>{"use strict";var d=o(4090),x=o(67286),w=x("%Function.prototype.apply%"),A=x("%Function.prototype.call%"),O=x("%Reflect.apply%",!0)||d.call(A,w),k=x("%Object.getOwnPropertyDescriptor%",!0),U=x("%Object.defineProperty%",!0),_=x("%Math.max%");if(U)try{U({},"a",{value:1})}catch(ue){U=null}h.exports=function(ne){var ie=O(d,A,arguments);if(k&&U){var J=k(ie,"length");J.configurable&&U(ie,"length",{value:1+_(0,ne.length-(arguments.length-1))})}return ie};var re=function(){return O(d,w,arguments)};U?U(h.exports,"apply",{value:re}):h.exports.apply=re},61682:(h,E,o)=>{(function(d){d(o(23326))})(function(d){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},w=d.Pos;d.defineOption("autoCloseBrackets",!1,function(L,C,F){F&&F!=d.Init&&(L.removeKeyMap(O),L.state.closeBrackets=null),C&&(k(A(C,"pairs")),L.state.closeBrackets=C,L.addKeyMap(O))});function A(L,C){return C=="pairs"&&typeof L=="string"?L:typeof L=="object"&&L[C]!=null?L[C]:x[C]}var O={Backspace:re,Enter:ue};function k(L){for(var C=0;C<L.length;C++){var F=L.charAt(C),V="'"+F+"'";O[V]||(O[V]=U(F))}}k(x.pairs+"`");function U(L){return function(C){return J(C,L)}}function _(L){var C=L.state.closeBrackets;if(!C||C.override)return C;var F=L.getModeAt(L.getCursor());return F.closeBrackets||C}function re(L){var C=_(L);if(!C||L.getOption("disableInput"))return d.Pass;for(var F=A(C,"pairs"),V=L.listSelections(),Q=0;Q<V.length;Q++){if(!V[Q].empty())return d.Pass;var Y=P(L,V[Q].head);if(!Y||F.indexOf(Y)%2!=0)return d.Pass}for(var Q=V.length-1;Q>=0;Q--){var W=V[Q].head;L.replaceRange("",w(W.line,W.ch-1),w(W.line,W.ch+1),"+delete")}}function ue(L){var C=_(L),F=C&&A(C,"explode");if(!F||L.getOption("disableInput"))return d.Pass;for(var V=L.listSelections(),Q=0;Q<V.length;Q++){if(!V[Q].empty())return d.Pass;var Y=P(L,V[Q].head);if(!Y||F.indexOf(Y)%2!=0)return d.Pass}L.operation(function(){var W=L.lineSeparator()||`
7
+ `;L.replaceSelection(W+W,null),ne(L,-1),V=L.listSelections();for(var te=0;te<V.length;te++){var X=V[te].head.line;L.indentLine(X,null,!0),L.indentLine(X+1,null,!0)}})}function ne(L,C){for(var F=[],V=L.listSelections(),Q=0,Y=0;Y<V.length;Y++){var W=V[Y];W.head==L.getCursor()&&(Q=Y);var te=W.head.ch||C>0?{line:W.head.line,ch:W.head.ch+C}:{line:W.head.line-1};F.push({anchor:te,head:te})}L.setSelections(F,Q)}function ie(L){var C=d.cmpPos(L.anchor,L.head)>0;return{anchor:new w(L.anchor.line,L.anchor.ch+(C?-1:1)),head:new w(L.head.line,L.head.ch+(C?1:-1))}}function J(L,C){var F=_(L);if(!F||L.getOption("disableInput"))return d.Pass;var V=A(F,"pairs"),Q=V.indexOf(C);if(Q==-1)return d.Pass;for(var Y=A(F,"closeBefore"),W=A(F,"triples"),te=V.charAt(Q+1)==C,X=L.listSelections(),H=Q%2==0,fe,ve=0;ve<X.length;ve++){var ee=X[ve],Z=ee.head,z,ge=L.getRange(Z,w(Z.line,Z.ch+1));if(H&&!ee.empty())z="surround";else if((te||!H)&&ge==C)te&&G(L,Z)?z="both":W.indexOf(C)>=0&&L.getRange(Z,w(Z.line,Z.ch+3))==C+C+C?z="skipThree":z="skip";else if(te&&Z.ch>1&&W.indexOf(C)>=0&&L.getRange(w(Z.line,Z.ch-2),Z)==C+C){if(Z.ch>2&&/\bstring/.test(L.getTokenTypeAt(w(Z.line,Z.ch-2))))return d.Pass;z="addFour"}else if(te){var Ee=Z.ch==0?" ":L.getRange(w(Z.line,Z.ch-1),Z);if(!d.isWordChar(ge)&&Ee!=C&&!d.isWordChar(Ee))z="both";else return d.Pass}else if(H&&(ge.length===0||/\s/.test(ge)||Y.indexOf(ge)>-1))z="both";else return d.Pass;if(!fe)fe=z;else if(fe!=z)return d.Pass}var je=Q%2?V.charAt(Q-1):C,ke=Q%2?C:V.charAt(Q+1);L.operation(function(){if(fe=="skip")ne(L,1);else if(fe=="skipThree")ne(L,3);else if(fe=="surround"){for(var it=L.getSelections(),et=0;et<it.length;et++)it[et]=je+it[et]+ke;L.replaceSelections(it,"around"),it=L.listSelections().slice();for(var et=0;et<it.length;et++)it[et]=ie(it[et]);L.setSelections(it)}else fe=="both"?(L.replaceSelection(je+ke,null),L.triggerElectric(je+ke),ne(L,-1)):fe=="addFour"&&(L.replaceSelection(je+je+je+je,"before"),ne(L,1))})}function P(L,C){var F=L.getRange(w(C.line,C.ch-1),w(C.line,C.ch+1));return F.length==2?F:null}function G(L,C){var F=L.getTokenAt(w(C.line,C.ch+1));return/\bstring/.test(F.type)&&F.start==C.ch&&(C.ch==0||!/\bstring/.test(L.getTokenTypeAt(C)))}})},32407:(h,E,o)=>{(function(d){d(o(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function O(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function k(ne,ie,J){var P=ne.getLineHandle(ie.line),G=ie.ch-1,L=J&&J.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var C=O(J),F=!L&&G>=0&&C.test(P.text.charAt(G))&&A[P.text.charAt(G)]||C.test(P.text.charAt(G+1))&&A[P.text.charAt(++G)];if(!F)return null;var V=F.charAt(1)==">"?1:-1;if(J&&J.strict&&V>0!=(G==ie.ch))return null;var Q=ne.getTokenTypeAt(w(ie.line,G+1)),Y=U(ne,w(ie.line,G+(V>0?1:0)),V,Q,J);return Y==null?null:{from:w(ie.line,G),to:Y&&Y.pos,match:Y&&Y.ch==F.charAt(0),forward:V>0}}function U(ne,ie,J,P,G){for(var L=G&&G.maxScanLineLength||1e4,C=G&&G.maxScanLines||1e3,F=[],V=O(G),Q=J>0?Math.min(ie.line+C,ne.lastLine()+1):Math.max(ne.firstLine()-1,ie.line-C),Y=ie.line;Y!=Q;Y+=J){var W=ne.getLine(Y);if(!!W){var te=J>0?0:W.length-1,X=J>0?W.length:-1;if(!(W.length>L))for(Y==ie.line&&(te=ie.ch-(J<0?1:0));te!=X;te+=J){var H=W.charAt(te);if(V.test(H)&&(P===void 0||(ne.getTokenTypeAt(w(Y,te+1))||"")==(P||""))){var fe=A[H];if(fe&&fe.charAt(1)==">"==J>0)F.push(H);else if(F.length)F.pop();else return{pos:w(Y,te),ch:H}}}}}return Y-J==(J>0?ne.lastLine():ne.firstLine())?!1:null}function _(ne,ie,J){for(var P=ne.state.matchBrackets.maxHighlightLineLength||1e3,G=J&&J.highlightNonMatching,L=[],C=ne.listSelections(),F=0;F<C.length;F++){var V=C[F].empty()&&k(ne,C[F].head,J);if(V&&(V.match||G!==!1)&&ne.getLine(V.from.line).length<=P){var Q=V.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(ne.markText(V.from,w(V.from.line,V.from.ch+1),{className:Q})),V.to&&ne.getLine(V.to.line).length<=P&&L.push(ne.markText(V.to,w(V.to.line,V.to.ch+1),{className:Q}))}}if(L.length){x&&ne.state.focused&&ne.focus();var Y=function(){ne.operation(function(){for(var W=0;W<L.length;W++)L[W].clear()})};if(ie)setTimeout(Y,800);else return Y}}function re(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=_(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,ie,J){J&&J!=d.Init&&(ne.off("cursorActivity",re),ne.off("focus",re),ne.off("blur",ue),ue(ne)),ie&&(ne.state.matchBrackets=typeof ie=="object"?ie:{},ne.on("cursorActivity",re),ne.on("focus",re),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){_(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,ie,J){return(J||typeof ie=="boolean")&&(J?(J.strict=ie,ie=J):ie=ie?{strict:!0}:null),k(this,ne,ie)}),d.defineExtension("scanForBracket",function(ne,ie,J,P){return U(this,ne,ie,J,P)})})},22130:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(L,C,F){if(!C)return L.showHint(F);F&&F.async&&(C.async=!0);var V={hint:C};if(F)for(var Q in F)V[Q]=F[Q];return L.showHint(V)},d.defineExtension("showHint",function(L){L=U(this,this.getCursor("start"),L);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var F=0;F<C.length;F++)if(C[F].head.line!=C[F].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var V=this.state.completionActive=new A(this,L);!V.options.hint||(d.signal(this,"startCompletion",this),V.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(L,C){if(this.cm=L,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var F=this;L.on("cursorActivity",this.activityFunc=function(){F.cursorActivity()})}}var O=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},k=window.cancelAnimationFrame||clearTimeout;A.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,C){var F=L.list[C],V=this;this.cm.operation(function(){F.hint?F.hint(V.cm,L,F):V.cm.replaceRange(_(F),F.from||L.from,F.to||L.to,"complete"),d.signal(L,"pick",F),V.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(k(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var C=this.cm.getCursor(),F=this.cm.getLine(C.line);if(C.line!=this.startPos.line||F.length-C.ch!=this.startLen-this.startPos.ch||C.ch<L.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(F.charAt(C.ch-1)))this.close();else{var V=this;this.debounce=O(function(){V.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var C=this,F=++this.tick;J(this.options.hint,this.cm,this.options,function(V){C.tick==F&&C.finishUpdate(V,L)})}},finishUpdate:function(L,C){this.data&&d.signal(this.data,"update");var F=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(F&&L.list.length==1?this.pick(L,0):(this.widget=new ne(this,L),d.signal(L,"shown")))}};function U(L,C,F){var V=L.options.hintOptions,Q={};for(var Y in G)Q[Y]=G[Y];if(V)for(var Y in V)V[Y]!==void 0&&(Q[Y]=V[Y]);if(F)for(var Y in F)F[Y]!==void 0&&(Q[Y]=F[Y]);return Q.hint.resolve&&(Q.hint=Q.hint.resolve(L,C)),Q}function _(L){return typeof L=="string"?L:L.text}function re(L,C){var F={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},V=/Mac/.test(navigator.platform);V&&(F["Ctrl-P"]=function(){C.moveFocus(-1)},F["Ctrl-N"]=function(){C.moveFocus(1)});var Q=L.options.customKeys,Y=Q?{}:F;function W(H,fe){var ve;typeof fe!="string"?ve=function(ee){return fe(ee,C)}:F.hasOwnProperty(fe)?ve=F[fe]:ve=fe,Y[H]=ve}if(Q)for(var te in Q)Q.hasOwnProperty(te)&&W(te,Q[te]);var X=L.options.extraKeys;if(X)for(var te in X)X.hasOwnProperty(te)&&W(te,X[te]);return Y}function ue(L,C){for(;C&&C!=L;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==L)return C;C=C.parentNode}}function ne(L,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=C,this.picked=!1;var F=this,V=L.cm,Q=V.getInputField().ownerDocument,Y=Q.defaultView||Q.parentWindow,W=this.hints=Q.createElement("ul");W.setAttribute("role","listbox"),W.setAttribute("aria-expanded","true"),W.id=this.id;var te=L.cm.options.theme;W.className="CodeMirror-hints "+te,this.selectedHint=C.selectedHint||0;for(var X=C.list,H=0;H<X.length;++H){var fe=W.appendChild(Q.createElement("li")),ve=X[H],ee=x+(H!=this.selectedHint?"":" "+w);ve.className!=null&&(ee=ve.className+" "+ee),fe.className=ee,H==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+H,fe.setAttribute("role","option"),ve.render?ve.render(fe,C,ve):fe.appendChild(Q.createTextNode(ve.displayText||_(ve))),fe.hintId=H}var Z=L.options.container||Q.body,z=V.cursorCoords(L.options.alignWithWord?C.from:null),ge=z.left,Ee=z.bottom,je=!0,ke=0,it=0;if(Z!==Q.body){var et=["absolute","relative","fixed"].indexOf(Y.getComputedStyle(Z).position)!==-1,at=et?Z:Z.offsetParent,Tt=at.getBoundingClientRect(),St=Q.body.getBoundingClientRect();ke=Tt.left-St.left-at.scrollLeft,it=Tt.top-St.top-at.scrollTop}W.style.left=ge-ke+"px",W.style.top=Ee-it+"px";var Le=Y.innerWidth||Math.max(Q.body.offsetWidth,Q.documentElement.offsetWidth),Oe=Y.innerHeight||Math.max(Q.body.offsetHeight,Q.documentElement.offsetHeight);Z.appendChild(W),V.getInputField().setAttribute("aria-autocomplete","list"),V.getInputField().setAttribute("aria-owns",this.id),V.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var be=L.options.moveOnOverlap?W.getBoundingClientRect():new DOMRect,De=L.options.paddingForScrollbar?W.scrollHeight>W.clientHeight+1:!1,Ge;setTimeout(function(){Ge=V.getScrollInfo()});var tt=be.bottom-Oe;if(tt>0){var Ze=be.bottom-be.top,bt=be.top-(z.bottom-z.top)-2;Oe-be.top<bt?(Ze>bt&&(W.style.height=(Ze=bt)+"px"),W.style.top=(Ee=z.top-Ze)+it+"px",je=!1):W.style.height=Oe-be.top-2+"px"}var Et=be.right-Le;if(De&&(Et+=V.display.nativeBarWidth),Et>0&&(be.right-be.left>Le&&(W.style.width=Le-5+"px",Et-=be.right-be.left-Le),W.style.left=(ge=Math.max(z.left-Et-ke,0))+"px"),De)for(var Xt=W.firstChild;Xt;Xt=Xt.nextSibling)Xt.style.paddingRight=V.display.nativeBarWidth+"px";if(V.addKeyMap(this.keyMap=re(L,{moveFocus:function(Xe,er){F.changeActive(F.selectedHint+Xe,er)},setFocus:function(Xe){F.changeActive(Xe)},menuSize:function(){return F.screenAmount()},length:X.length,close:function(){L.close()},pick:function(){F.pick()},data:C})),L.options.closeOnUnfocus){var zt;V.on("blur",this.onBlur=function(){zt=setTimeout(function(){L.close()},100)}),V.on("focus",this.onFocus=function(){clearTimeout(zt)})}V.on("scroll",this.onScroll=function(){var Xe=V.getScrollInfo(),er=V.getWrapperElement().getBoundingClientRect();Ge||(Ge=V.getScrollInfo());var Rt=Ee+Ge.top-Xe.top,Rr=Rt-(Y.pageYOffset||(Q.documentElement||Q.body).scrollTop);if(je||(Rr+=W.offsetHeight),Rr<=er.top||Rr>=er.bottom)return L.close();W.style.top=Rt+"px",W.style.left=ge+Ge.left-Xe.left+"px"}),d.on(W,"dblclick",function(Xe){var er=ue(W,Xe.target||Xe.srcElement);er&&er.hintId!=null&&(F.changeActive(er.hintId),F.pick())}),d.on(W,"click",function(Xe){var er=ue(W,Xe.target||Xe.srcElement);er&&er.hintId!=null&&(F.changeActive(er.hintId),L.options.completeOnSingleClick&&F.pick())}),d.on(W,"mousedown",function(){setTimeout(function(){V.focus()},20)});var nt=this.getSelectedHintRange();return(nt.from!==0||nt.to!==0)&&this.scrollToActive(),d.signal(C,"select",X[this.selectedHint],W.childNodes[this.selectedHint]),!0}ne.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,C){if(L>=this.data.list.length?L=C?this.data.list.length-1:0:L<0&&(L=C?0:this.data.list.length-1),this.selectedHint!=L){var F=this.hints.childNodes[this.selectedHint];F&&(F.className=F.className.replace(" "+w,""),F.removeAttribute("aria-selected")),F=this.hints.childNodes[this.selectedHint=L],F.className+=" "+w,F.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",F.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],F)}},scrollToActive:function(){var L=this.getSelectedHintRange(),C=this.hints.childNodes[L.from],F=this.hints.childNodes[L.to],V=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-V.offsetTop:F.offsetTop+F.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=F.offsetTop+F.offsetHeight-this.hints.clientHeight+V.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function ie(L,C){if(!L.somethingSelected())return C;for(var F=[],V=0;V<C.length;V++)C[V].supportsSelection&&F.push(C[V]);return F}function J(L,C,F,V){if(L.async)L(C,V,F);else{var Q=L(C,F);Q&&Q.then?Q.then(V):V(Q)}}function P(L,C){var F=L.getHelpers(C,"hint"),V;if(F.length){var Q=function(Y,W,te){var X=ie(Y,F);function H(fe){if(fe==X.length)return W(null);J(X[fe],Y,te,function(ve){ve&&ve.list.length>0?W(ve):H(fe+1)})}H(0)};return Q.async=!0,Q.supportsSelection=!0,Q}else return(V=L.getHelper(L.getCursor(),"hintWords"))?function(Y){return d.hint.fromList(Y,{words:V})}:d.hint.anyword?function(Y,W){return d.hint.anyword(Y,W)}:function(){}}d.registerHelper("hint","auto",{resolve:P}),d.registerHelper("hint","fromList",function(L,C){var F=L.getCursor(),V=L.getTokenAt(F),Q,Y=d.Pos(F.line,V.start),W=F;V.start<F.ch&&/\w/.test(V.string.charAt(F.ch-V.start-1))?Q=V.string.substr(0,F.ch-V.start):(Q="",Y=F);for(var te=[],X=0;X<C.words.length;X++){var H=C.words[X];H.slice(0,Q.length)==Q&&te.push(H)}if(te.length)return{list:te,from:Y,to:W}}),d.commands.autocomplete=d.showHint;var G={hint:d.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};d.defineOption("hintOptions",null)})},29387:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function A(W,te,X){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,H.appendChild(X.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(H):document.body.appendChild(H);function fe(ve){if(!H.parentNode)return d.off(document,"mousemove",fe);H.style.top=Math.max(0,ve.clientY-H.offsetHeight-5)+"px",H.style.left=ve.clientX+5+"px"}return d.on(document,"mousemove",fe),fe(te),H.style.opacity!=null&&(H.style.opacity=1),H}function O(W){W.parentNode&&W.parentNode.removeChild(W)}function k(W){!W.parentNode||(W.style.opacity==null&&O(W),W.style.opacity=0,setTimeout(function(){O(W)},600))}function U(W,te,X,H){var fe=A(W,te,X);function ve(){d.off(H,"mouseout",ve),fe&&(k(fe),fe=null)}var ee=setInterval(function(){if(fe)for(var Z=H;;Z=Z.parentNode){if(Z&&Z.nodeType==11&&(Z=Z.host),Z==document.body)return;if(!Z){ve();break}}if(!fe)return clearInterval(ee)},400);d.on(H,"mouseout",ve)}function _(W,te,X){this.marked=[],te instanceof Function&&(te={getAnnotations:te}),(!te||te===!0)&&(te={}),this.options={},this.linterOptions=te.options||{};for(var H in re)this.options[H]=re[H];for(var H in te)re.hasOwnProperty(H)?te[H]!=null&&(this.options[H]=te[H]):te.options||(this.linterOptions[H]=te[H]);this.timeout=null,this.hasGutter=X,this.onMouseOver=function(fe){Y(W,fe)},this.waitingFor=0}var re={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(W){var te=W.state.lint;te.hasGutter&&W.clearGutter(x),te.options.highlightLines&&ne(W);for(var X=0;X<te.marked.length;++X)te.marked[X].clear();te.marked.length=0}function ne(W){W.eachLine(function(te){var X=te.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(te.wrapClass);X&&W.removeLineClass(te,"wrap",X[0])})}function ie(W,te,X,H,fe){var ve=document.createElement("div"),ee=ve;return ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+X,H&&(ee=ve.appendChild(document.createElement("div")),ee.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&d.on(ee,"mouseover",function(Z){U(W,Z,te,ee)}),ve}function J(W,te){return W=="error"?W:te}function P(W){for(var te=[],X=0;X<W.length;++X){var H=W[X],fe=H.from.line;(te[fe]||(te[fe]=[])).push(H)}return te}function G(W){var te=W.severity;te||(te="error");var X=document.createElement("div");return X.className="CodeMirror-lint-message CodeMirror-lint-message-"+te,typeof W.messageHTML!="undefined"?X.innerHTML=W.messageHTML:X.appendChild(document.createTextNode(W.message)),X}function L(W,te){var X=W.state.lint,H=++X.waitingFor;function fe(){H=-1,W.off("change",fe)}W.on("change",fe),te(W.getValue(),function(ve,ee){W.off("change",fe),X.waitingFor==H&&(ee&&ve instanceof d&&(ve=ee),W.operation(function(){F(W,ve)}))},X.linterOptions,W)}function C(W){var te=W.state.lint;if(!!te){var X=te.options,H=X.getAnnotations||W.getHelper(d.Pos(0,0),"lint");if(!!H)if(X.async||H.async)L(W,H);else{var fe=H(W.getValue(),te.linterOptions,W);if(!fe)return;fe.then?fe.then(function(ve){W.operation(function(){F(W,ve)})}):W.operation(function(){F(W,fe)})}}}function F(W,te){var X=W.state.lint;if(!!X){var H=X.options;ue(W);for(var fe=P(te),ve=0;ve<fe.length;++ve){var ee=fe[ve];if(!!ee){var Z=[];ee=ee.filter(function(it){return Z.indexOf(it.message)>-1?!1:Z.push(it.message)});for(var z=null,ge=X.hasGutter&&document.createDocumentFragment(),Ee=0;Ee<ee.length;++Ee){var je=ee[Ee],ke=je.severity;ke||(ke="error"),z=J(z,ke),H.formatAnnotation&&(je=H.formatAnnotation(je)),X.hasGutter&&ge.appendChild(G(je)),je.to&&X.marked.push(W.markText(je.from,je.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:je}))}X.hasGutter&&W.setGutterMarker(ve,x,ie(W,ge,z,fe[ve].length>1,H.tooltips)),H.highlightLines&&W.addLineClass(ve,"wrap",w+z)}}H.onUpdateLinting&&H.onUpdateLinting(te,fe,W)}}function V(W){var te=W.state.lint;!te||(clearTimeout(te.timeout),te.timeout=setTimeout(function(){C(W)},te.options.delay))}function Q(W,te,X){for(var H=X.target||X.srcElement,fe=document.createDocumentFragment(),ve=0;ve<te.length;ve++){var ee=te[ve];fe.appendChild(G(ee))}U(W,X,fe,H)}function Y(W,te){var X=te.target||te.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(X.className)){for(var H=X.getBoundingClientRect(),fe=(H.left+H.right)/2,ve=(H.top+H.bottom)/2,ee=W.findMarksAt(W.coordsChar({left:fe,top:ve},"client")),Z=[],z=0;z<ee.length;++z){var ge=ee[z].__annotation;ge&&Z.push(ge)}Z.length&&Q(W,Z,te)}}d.defineOption("lint",!1,function(W,te,X){if(X&&X!=d.Init&&(ue(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",V),d.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),te){for(var H=W.getOption("gutters"),fe=!1,ve=0;ve<H.length;++ve)H[ve]==x&&(fe=!0);var ee=W.state.lint=new _(W,te,fe);ee.options.lintOnChange&&W.on("change",V),ee.options.tooltips!=!1&&ee.options.tooltips!="gutter"&&d.on(W.getWrapperElement(),"mouseover",ee.onMouseOver),C(W)}}),d.defineExtension("performLint",function(){C(this)})})},19757:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x=d.Pos;function w(C){var F=C.flags;return F!=null?F:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function A(C,F){for(var V=w(C),Q=V,Y=0;Y<F.length;Y++)Q.indexOf(F.charAt(Y))==-1&&(Q+=F.charAt(Y));return V==Q?C:new RegExp(C.source,Q)}function O(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function k(C,F,V){F=A(F,"g");for(var Q=V.line,Y=V.ch,W=C.lastLine();Q<=W;Q++,Y=0){F.lastIndex=Y;var te=C.getLine(Q),X=F.exec(te);if(X)return{from:x(Q,X.index),to:x(Q,X.index+X[0].length),match:X}}}function U(C,F,V){if(!O(F))return k(C,F,V);F=A(F,"gm");for(var Q,Y=1,W=V.line,te=C.lastLine();W<=te;){for(var X=0;X<Y&&!(W>te);X++){var H=C.getLine(W++);Q=Q==null?H:Q+`
8
+ `+H}Y=Y*2,F.lastIndex=V.ch;var fe=F.exec(Q);if(fe){var ve=Q.slice(0,fe.index).split(`
9
+ `),ee=fe[0].split(`
10
+ `),Z=V.line+ve.length-1,z=ve[ve.length-1].length;return{from:x(Z,z),to:x(Z+ee.length-1,ee.length==1?z+ee[0].length:ee[ee.length-1].length),match:fe}}}}function _(C,F,V){for(var Q,Y=0;Y<=C.length;){F.lastIndex=Y;var W=F.exec(C);if(!W)break;var te=W.index+W[0].length;if(te>C.length-V)break;(!Q||te>Q.index+Q[0].length)&&(Q=W),Y=W.index+1}return Q}function re(C,F,V){F=A(F,"g");for(var Q=V.line,Y=V.ch,W=C.firstLine();Q>=W;Q--,Y=-1){var te=C.getLine(Q),X=_(te,F,Y<0?0:te.length-Y);if(X)return{from:x(Q,X.index),to:x(Q,X.index+X[0].length),match:X}}}function ue(C,F,V){if(!O(F))return re(C,F,V);F=A(F,"gm");for(var Q,Y=1,W=C.getLine(V.line).length-V.ch,te=V.line,X=C.firstLine();te>=X;){for(var H=0;H<Y&&te>=X;H++){var fe=C.getLine(te--);Q=Q==null?fe:fe+`
11
+ `+Q}Y*=2;var ve=_(Q,F,W);if(ve){var ee=Q.slice(0,ve.index).split(`
12
+ `),Z=ve[0].split(`
13
+ `),z=te+ee.length,ge=ee[ee.length-1].length;return{from:x(z,ge),to:x(z+Z.length-1,Z.length==1?ge+Z[0].length:Z[Z.length-1].length),match:ve}}}}var ne,ie;String.prototype.normalize?(ne=function(C){return C.normalize("NFD").toLowerCase()},ie=function(C){return C.normalize("NFD")}):(ne=function(C){return C.toLowerCase()},ie=function(C){return C});function J(C,F,V,Q){if(C.length==F.length)return V;for(var Y=0,W=V+Math.max(0,C.length-F.length);;){if(Y==W)return Y;var te=Y+W>>1,X=Q(C.slice(0,te)).length;if(X==V)return te;X>V?W=te:Y=te+1}}function P(C,F,V,Q){if(!F.length)return null;var Y=Q?ne:ie,W=Y(F).split(/\r|\n\r?/);e:for(var te=V.line,X=V.ch,H=C.lastLine()+1-W.length;te<=H;te++,X=0){var fe=C.getLine(te).slice(X),ve=Y(fe);if(W.length==1){var ee=ve.indexOf(W[0]);if(ee==-1)continue e;var V=J(fe,ve,ee,Y)+X;return{from:x(te,J(fe,ve,ee,Y)+X),to:x(te,J(fe,ve,ee+W[0].length,Y)+X)}}else{var Z=ve.length-W[0].length;if(ve.slice(Z)!=W[0])continue e;for(var z=1;z<W.length-1;z++)if(Y(C.getLine(te+z))!=W[z])continue e;var ge=C.getLine(te+W.length-1),Ee=Y(ge),je=W[W.length-1];if(Ee.slice(0,je.length)!=je)continue e;return{from:x(te,J(fe,ve,Z,Y)+X),to:x(te+W.length-1,J(ge,Ee,je.length,Y))}}}}function G(C,F,V,Q){if(!F.length)return null;var Y=Q?ne:ie,W=Y(F).split(/\r|\n\r?/);e:for(var te=V.line,X=V.ch,H=C.firstLine()-1+W.length;te>=H;te--,X=-1){var fe=C.getLine(te);X>-1&&(fe=fe.slice(0,X));var ve=Y(fe);if(W.length==1){var ee=ve.lastIndexOf(W[0]);if(ee==-1)continue e;return{from:x(te,J(fe,ve,ee,Y)),to:x(te,J(fe,ve,ee+W[0].length,Y))}}else{var Z=W[W.length-1];if(ve.slice(0,Z.length)!=Z)continue e;for(var z=1,V=te-W.length+1;z<W.length-1;z++)if(Y(C.getLine(V+z))!=W[z])continue e;var ge=C.getLine(te+1-W.length),Ee=Y(ge);if(Ee.slice(Ee.length-W[0].length)!=W[0])continue e;return{from:x(te+1-W.length,J(ge,Ee,ge.length-W[0].length,Y)),to:x(te,J(fe,ve,Z.length,Y))}}}}function L(C,F,V,Q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,V=V?C.clipPos(V):x(0,0),this.pos={from:V,to:V};var Y;typeof Q=="object"?Y=Q.caseFold:(Y=Q,Q=null),typeof F=="string"?(Y==null&&(Y=!1),this.matches=function(W,te){return(W?G:P)(C,F,te,Y)}):(F=A(F,"gm"),!Q||Q.multiline!==!1?this.matches=function(W,te){return(W?ue:U)(C,F,te)}:this.matches=function(W,te){return(W?re:k)(C,F,te)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var F=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(F=x(F.line,F.ch),C?(F.ch--,F.ch<0&&(F.line--,F.ch=(this.doc.getLine(F.line)||"").length)):(F.ch++,F.ch>(this.doc.getLine(F.line)||"").length&&(F.ch=0,F.line++)),d.cmpPos(F,this.doc.clipPos(F))!=0))return this.atOccurrence=!1;var V=this.matches(C,F);if(this.afterEmptyMatch=V&&d.cmpPos(V.from,V.to)==0,V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var Q=x(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:Q,to:Q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,F){if(!!this.atOccurrence){var V=d.splitLines(C);this.doc.replaceRange(V,this.pos.from,this.pos.to,F),this.pos.to=x(this.pos.from.line+V.length-1,V[V.length-1].length+(V.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(C,F,V){return new L(this.doc,C,F,V)}),d.defineDocExtension("getSearchCursor",function(C,F,V){return new L(this,C,F,V)}),d.defineExtension("selectMatches",function(C,F){for(var V=[],Q=this.getSearchCursor(C,this.getCursor("from"),F);Q.findNext()&&!(d.cmpPos(Q.to(),this.getCursor("to"))>0);)V.push({anchor:Q.from(),head:Q.to()});V.length&&this.setSelections(V,0)})})},23326:function(h){(function(E,o){h.exports=o()})(this,function(){"use strict";var E=navigator.userAgent,o=navigator.platform,d=/gecko\/\d/i.test(E),x=/MSIE \d/.test(E),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(E),A=/Edge\/(\d+)/.exec(E),O=x||w||A,k=O&&(x?document.documentMode||6:+(A||w)[1]),U=!A&&/WebKit\//.test(E),_=U&&/Qt\/\d+\.\d+/.test(E),re=!A&&/Chrome\/(\d+)/.exec(E),ue=re&&+re[1],ne=/Opera\//.test(E),ie=/Apple Computer/.test(navigator.vendor),J=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(E),P=/PhantomJS/.test(E),G=ie&&(/Mobile\/\w+/.test(E)||navigator.maxTouchPoints>2),L=/Android/.test(E),C=G||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(E),F=G||/Mac/.test(o),V=/\bCrOS\b/.test(E),Q=/win/i.test(o),Y=ne&&E.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(ne=!1,U=!0);var W=F&&(_||ne&&(Y==null||Y<12.11)),te=d||O&&k>=9;function X(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var H=function(t,i){var u=t.className,l=X(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function ve(t,i){return fe(t).appendChild(i)}function ee(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)f.appendChild(i[g]);return f}function Z(t,i,u,l){var f=ee(t,i,u,l);return f.setAttribute("role","presentation"),f}var z;document.createRange?z=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:z=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ge(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Ee(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function je(t,i){var u=t.className;X(i).test(u)||(t.className+=(u?" ":"")+i)}function ke(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!X(u[l]).test(i)&&(i+=" "+u[l]);return i}var it=function(t){t.select()};G?it=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:O&&(it=function(t){try{t.select()}catch(i){}});function et(t){return t.display.wrapper.ownerDocument}function at(t){return et(t).defaultView}function Tt(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function St(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Le(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var g=l||0,S=f||0;;){var T=t.indexOf(" ",g);if(T<0||T>=i)return S+(i-g);S+=T-g,S+=u-S%u,g=T+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Tt(this.onTimeout,this)};Oe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Oe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function be(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var De=50,Ge={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},Ze={origin:"*mouse"},bt={origin:"+move"};function Et(t,i,u){for(var l=0,f=0;;){var g=t.indexOf(" ",l);g==-1&&(g=t.length);var S=g-l;if(g==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=g-l,f+=u-f%u,l=g+1,f>=i)return l}}var Xt=[""];function zt(t){for(;Xt.length<=t;)Xt.push(nt(Xt)+" ");return Xt[t]}function nt(t){return t[t.length-1]}function Xe(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function er(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function Rt(){}function Rr(t,i){var u;return Object.create?u=Object.create(t):(Rt.prototype=t,u=new Rt),i&&St(i,u),u}var _e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Mr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||_e.test(t))}function Ar(t,i){return i?i.source.indexOf("\\w")>-1&&Mr(t)?!0:i.test(t):Mr(t)}function en(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var $e=/[\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 yt(t){return t.charCodeAt(0)>=768&&$e.test(t)}function Lt(t,i,u){for(;(u<0?i>0:i<t.length)&&yt(t.charAt(i));)i+=u;return i}function wt(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,g=l<0?Math.ceil(f):Math.floor(f);if(g==i)return t(g)?i:u;t(g)?u=g:i=g+l}}function Ft(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,g=0;g<t.length;++g){var S=t[g];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",g),f=!0)}f||l(i,u,"ltr")}var pt=null;function vt(t,i,u){var l;pt=null;for(var f=0;f<t.length;++f){var g=t[f];if(g.from<i&&g.to>i)return f;g.to==i&&(g.from!=g.to&&u=="before"?l=f:pt=f),g.from==i&&(g.from!=g.to&&u!="before"?l=f:pt=f)}return l!=null?l:pt}var Pt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(j){return j<=247?t.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,S=/[Lb1n]/,T=/[1n]/;function R(j,le,de){this.level=j,this.from=le,this.to=de}return function(j,le){var de=le=="ltr"?"L":"R";if(j.length==0||le=="ltr"&&!l.test(j))return!1;for(var Ae=j.length,ye=[],Ie=0;Ie<Ae;++Ie)ye.push(u(j.charCodeAt(Ie)));for(var Ne=0,He=de;Ne<Ae;++Ne){var Ye=ye[Ne];Ye=="m"?ye[Ne]=He:He=Ye}for(var Qe=0,Je=de;Qe<Ae;++Qe){var rt=ye[Qe];rt=="1"&&Je=="r"?ye[Qe]="n":g.test(rt)&&(Je=rt,rt=="r"&&(ye[Qe]="R"))}for(var gt=1,ct=ye[0];gt<Ae-1;++gt){var Dt=ye[gt];Dt=="+"&&ct=="1"&&ye[gt+1]=="1"?ye[gt]="1":Dt==","&&ct==ye[gt+1]&&(ct=="1"||ct=="n")&&(ye[gt]=ct),ct=Dt}for(var dr=0;dr<Ae;++dr){var zr=ye[dr];if(zr==",")ye[dr]="N";else if(zr=="%"){var Sr=void 0;for(Sr=dr+1;Sr<Ae&&ye[Sr]=="%";++Sr);for(var An=dr&&ye[dr-1]=="!"||Sr<Ae&&ye[Sr]=="1"?"1":"N",Gt=dr;Gt<Sr;++Gt)ye[Gt]=An;dr=Sr-1}}for(var Nr=0,hn=de;Nr<Ae;++Nr){var M=ye[Nr];hn=="L"&&M=="1"?ye[Nr]="L":g.test(M)&&(hn=M)}for(var Bt=0;Bt<Ae;++Bt)if(f.test(ye[Bt])){var dt=void 0;for(dt=Bt+1;dt<Ae&&f.test(ye[dt]);++dt);for(var mr=(Bt?ye[Bt-1]:de)=="L",Fr=(dt<Ae?ye[dt]:de)=="L",Sa=mr==Fr?mr?"L":"R":de,Ri=Bt;Ri<dt;++Ri)ye[Ri]=Sa;Bt=dt-1}for(var Xr=[],Qn,Dr=0;Dr<Ae;)if(S.test(ye[Dr])){var ro=Dr;for(++Dr;Dr<Ae&&S.test(ye[Dr]);++Dr);Xr.push(new R(0,ro,Dr))}else{var Mi=Dr,Zi=Xr.length,qi=le=="rtl"?1:0;for(++Dr;Dr<Ae&&ye[Dr]!="L";++Dr);for(var Qr=Mi;Qr<Dr;)if(T.test(ye[Qr])){Mi<Qr&&(Xr.splice(Zi,0,new R(1,Mi,Qr)),Zi+=qi);var no=Qr;for(++Qr;Qr<Dr&&T.test(ye[Qr]);++Qr);Xr.splice(Zi,0,new R(2,no,Qr)),Zi+=qi,Mi=Qr}else++Qr;Mi<Dr&&Xr.splice(Zi,0,new R(1,Mi,Dr))}return le=="ltr"&&(Xr[0].level==1&&(Qn=j.match(/^\s+/))&&(Xr[0].from=Qn[0].length,Xr.unshift(new R(0,0,Qn[0].length))),nt(Xr).level==1&&(Qn=j.match(/\s+$/))&&(nt(Xr).to-=Qn[0].length,Xr.push(new R(0,Ae-Qn[0].length,Ae)))),le=="rtl"?Xr.reverse():Xr}}();function ot(t,i){var u=t.order;return u==null&&(u=t.order=Pt(t.text,i)),u}var Ve=[],ce=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function xe(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var g=be(f,u);g>-1&&(l[i]=f.slice(0,g).concat(f.slice(g+1)))}}}function Ke(t,i){var u=xe(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function st(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),zn(i)||i.codemirrorIgnore}function xt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)be(u,i[l])==-1&&u.push(i[l])}function kt(t,i){return xe(t,i).length>0}function yr(t){t.prototype.on=function(i,u){ce(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Nt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Yt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function zn(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ur(t){Nt(t),Yt(t)}function Kr(t){return t.target||t.srcElement}function vi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),F&&t.ctrlKey&&i==1&&(i=3),i}var tn=function(){if(O&&k<9)return!1;var t=ee("div");return"draggable"in t||"dragDrop"in t}(),gi;function mi(t){if(gi==null){var i=ee("span","\u200B");ve(t,ee("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(gi=i.offsetWidth<=1&&i.offsetHeight>2&&!(O&&k<8))}var u=gi?ee("span","\u200B"):ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var rn;function xr(t){if(rn!=null)return rn;var i=ve(t,document.createTextNode("A\u062EA")),u=z(i,0,1).getBoundingClientRect(),l=z(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:rn=l.right-u.right<3}var Gn=`
14
14
 
15
15
  b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var f=t.indexOf(`
16
- `,i);f==-1&&(f=t.length);var g=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=g.indexOf("\r");S!=-1?(u.push(g.slice(0,S)),i+=S+1):(u.push(g),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},Ui=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},Wi=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),gn=null;function un(t){if(gn!=null)return gn;var i=he(t,_("span","x")),u=i.getBoundingClientRect(),l=z(i,0,1).getBoundingClientRect();return gn=Math.abs(u.left-l.left)>1}var mn={},yn={};function On(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),mn[t]=i}function lo(t,i){yn[t]=i}function $n(t){if(typeof t=="string"&&yn.hasOwnProperty(t))t=yn[t];else if(t&&typeof t.name=="string"&&yn.hasOwnProperty(t.name)){var i=yn[t.name];typeof i=="string"&&(i={name:i}),t=Rr(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function fn(t,i){i=$n(i);var u=mn[i.name];if(!u)return fn(t,"text/plain");var l=u(t,i);if(Cr.hasOwnProperty(i.name)){var f=Cr[i.name];for(var g in f)!f.hasOwnProperty(g)||(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=f[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var Cr={};function yi(t,i){var u=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};St(i,u)}function kn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function Ta(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function uo(t,i,u){return t.startState?t.startState(i,u):!0}var vr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};vr.prototype.eol=function(){return this.pos>=this.string.length},vr.prototype.sol=function(){return this.pos==this.lineStart},vr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},vr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},vr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},vr.prototype.skipToEnd=function(){this.pos=this.string.length},vr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},vr.prototype.backUp=function(t){this.pos-=t},vr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},vr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},vr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},vr.prototype.current=function(){return this.string.slice(this.start,this.pos)},vr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},vr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},vr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function lt(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],g=f.chunkSize();if(i<g){u=f;break}i-=g}return u.lines[i]}function bi(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(g){var S=g.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function na(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function Rn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function tr(t){if(t.parent==null)return null;for(var i=t.parent,u=be(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function ti(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],g=f.height;if(i<g){t=f;continue e}i-=g,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var T=t.lines[S],M=T.height;if(i<M)break;i-=M}return u+S}function ia(t,i){return i>=t.first&&i<t.first+t.size}function Pa(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function B(t,i,u){if(u===void 0&&(u=null),!(this instanceof B))return new B(t,i,u);this.line=t,this.ch=i,this.sticky=u}function se(t,i){return t.line-i.line||t.ch-i.ch}function Me(t,i){return t.sticky==i.sticky&&se(t,i)==0}function We(t){return B(t.line,t.ch)}function It(t,i){return se(t,i)<0?i:t}function Vt(t,i){return se(t,i)<0?t:i}function ir(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ut(t,i){if(i.line<t.first)return B(t.first,0);var u=t.first+t.size-1;return i.line>u?B(u,lt(t,u).text.length):Tn(i,lt(t,i.line).text.length)}function Tn(t,i){var u=t.ch;return u==null||u>i?B(t.line,i):u<0?B(t.line,0):t}function qo(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ut(t,i[l]);return u}var _o=function(t,i){this.state=t,this.lookAhead=i},ri=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};ri.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},ri.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ri.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ri.fromSaved=function(t,i,u){return i instanceof _o?new ri(t,kn(t.mode,i.state),u,i.lookAhead):new ri(t,kn(t.mode,i),u)},ri.prototype.save=function(t){var i=t!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _o(i,this.maxLookAhead):i};function al(t,i,u,l){var f=[t.state.modeGen],g={};Pu(t,i.text,t.doc.mode,u,function(j,le){return f.push(j,le)},g,l);for(var S=u.state,T=function(j){u.baseTokens=f;var le=t.state.overlays[j],de=1,we=0;u.state=!0,Pu(t,i.text,le.mode,u,function(ye,Ie){for(var Ne=de;we<ye;){var He=f[de];He>ye&&f.splice(de,1,ye,f[de+1],He),de+=2,we=Math.min(ye,He)}if(!!Ie)if(le.opaque)f.splice(Ne,de-Ne,ye,"overlay "+Ie),de=Ne+2;else for(;Ne<de;Ne+=2){var Ye=f[Ne+1];f[Ne+1]=(Ye?Ye+" ":"")+"overlay "+Ie}},g),u.state=S,u.baseTokens=null,u.baseTokenPos=1},M=0;M<t.state.overlays.length;++M)T(M);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function Cu(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=Ia(t,tr(i)),f=i.text.length>t.options.maxHighlightLength&&kn(t.doc.mode,l.state),g=al(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function Ia(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new ri(l,!0,i);var g=Tc(t,i,u),S=g>l.first&&lt(l,g-1).stateAfter,T=S?ri.fromSaved(l,S,g):new ri(l,uo(l.mode),g);return l.iter(g,i,function(M){fo(t,M.text,T);var j=T.line;M.stateAfter=j==i-1||j%5==0||j>=f.viewFrom&&j<f.viewTo?T.save():null,T.nextLine()}),u&&(l.modeFrontier=T.line),T}function fo(t,i,u,l){var f=t.doc.mode,g=new vr(i,t.options.tabSize,u);for(g.start=g.pos=l||0,i==""&&Eu(f,u.state);!g.eol();)ol(f,g,u.state),g.start=g.pos}function Eu(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=Ta(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ol(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=Ta(t,u).mode);var g=t.token(i,u);if(i.pos>i.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var Ou=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function Tu(t,i,u,l){var f=t.doc,g=f.mode,S;i=ut(f,i);var T=lt(f,i.line),M=Ia(t,i.line,u),j=new vr(T.text,t.options.tabSize,M),le;for(l&&(le=[]);(l||j.pos<i.ch)&&!j.eol();)j.start=j.pos,S=ol(g,j,M.state),l&&le.push(new Ou(j,S,kn(f.mode,M.state)));return l?le:new Ou(j,S,M.state)}function sl(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function Pu(t,i,u,l,f,g,S){var T=u.flattenSpans;T==null&&(T=t.options.flattenSpans);var M=0,j=null,le=new vr(i,t.options.tabSize,l),de,we=t.options.addModeClass&&[null];for(i==""&&sl(Eu(u,l.state),g);!le.eol();){if(le.pos>t.options.maxHighlightLength?(T=!1,S&&fo(t,i,l,le.pos),le.pos=i.length,de=null):de=sl(ol(u,le,l.state,we),g),we){var ye=we[0].name;ye&&(de="m-"+(de?ye+" "+de:ye))}if(!T||j!=de){for(;M<le.start;)M=Math.min(le.start,M+5e3),f(M,j);j=de}le.start=le.pos}for(;M<le.pos;){var Ie=Math.min(le.pos,M+5e3);f(Ie,j),M=Ie}}function Tc(t,i,u){for(var l,f,g=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),T=i;T>S;--T){if(T<=g.first)return g.first;var M=lt(g,T-1),j=M.stateAfter;if(j&&(!u||T+(j instanceof _o?j.lookAhead:0)<=g.modeFrontier))return T;var le=Le(M.text,null,t.options.tabSize);(f==null||l>le)&&(f=T-1,l=le)}return f}function Pc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=lt(t,l).stateAfter;if(f&&(!(f instanceof _o)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var Iu=!1,ni=!1;function Ic(){Iu=!0}function Fc(){ni=!0}function es(t,i,u){this.marker=t,this.from=i,this.to=u}function Fa(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function kc(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function Rc(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Mc(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);if(T||g.from==i&&S.type=="bookmark"&&(!u||!g.marker.insertLeft)){var M=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new es(S,g.from,M?null:g.to))}}return l}function Fu(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);if(T||g.from==i&&S.type=="bookmark"&&(!u||g.marker.insertLeft)){var M=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new es(S,M?null:g.from-i,g.to==null?null:g.to-i))}}return l}function co(t,i){if(i.full)return null;var u=ia(t,i.from.line)&&lt(t,i.from.line).markedSpans,l=ia(t,i.to.line)&&lt(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,g=i.to.ch,S=se(i.from,i.to)==0,T=Mc(u,f,S),M=Fu(l,g,S),j=i.text.length==1,le=nt(i.text).length+(j?f:0);if(T)for(var de=0;de<T.length;++de){var we=T[de];if(we.to==null){var ye=Fa(M,we.marker);ye?j&&(we.to=ye.to==null?null:ye.to+le):we.to=f}}if(M)for(var Ie=0;Ie<M.length;++Ie){var Ne=M[Ie];if(Ne.to!=null&&(Ne.to+=le),Ne.from==null){var He=Fa(T,Ne.marker);He||(Ne.from=le,j&&(T||(T=[])).push(Ne))}else Ne.from+=le,j&&(T||(T=[])).push(Ne)}T&&(T=xi(T)),M&&M!=T&&(M=xi(M));var Ye=[T];if(!j){var Qe=i.text.length-2,Je;if(Qe>0&&T)for(var rt=0;rt<T.length;++rt)T[rt].to==null&&(Je||(Je=[])).push(new es(T[rt].marker,null,null));for(var gt=0;gt<Qe;++gt)Ye.push(Je);Ye.push(M)}return Ye}function xi(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function ts(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(ye){if(ye.markedSpans)for(var Ie=0;Ie<ye.markedSpans.length;++Ie){var Ne=ye.markedSpans[Ie].marker;Ne.readOnly&&(!l||be(l,Ne)==-1)&&(l||(l=[])).push(Ne)}}),!l)return null;for(var f=[{from:i,to:u}],g=0;g<l.length;++g)for(var S=l[g],T=S.find(0),M=0;M<f.length;++M){var j=f[M];if(!(se(j.to,T.from)<0||se(j.from,T.to)>0)){var le=[M,1],de=se(j.from,T.from),we=se(j.to,T.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:j.from,to:T.from}),(we>0||!S.inclusiveRight&&!we)&&le.push({from:T.to,to:j.to}),f.splice.apply(f,le),M+=le.length-3}}return f}function ll(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function ul(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function aa(t){return t.inclusiveLeft?-1:0}function ka(t){return t.inclusiveRight?1:0}function fl(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),g=se(l.from,f.from)||aa(t)-aa(i);if(g)return-g;var S=se(l.to,f.to)||ka(t)-ka(i);return S||i.id-t.id}function cl(t,i){var u=ni&&t.markedSpans,l;if(u)for(var f=void 0,g=0;g<u.length;++g)f=u[g],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||fl(l,f.marker)<0)&&(l=f.marker);return l}function ku(t){return cl(t,!0)}function rs(t){return cl(t,!1)}function Lc(t,i){var u=ni&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var g=u[f];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||fl(l,g.marker)<0)&&(l=g.marker)}return l}function dl(t,i,u,l,f){var g=lt(t,i),S=ni&&g.markedSpans;if(S)for(var T=0;T<S.length;++T){var M=S[T];if(!!M.marker.collapsed){var j=M.marker.find(0),le=se(j.from,u)||aa(M.marker)-aa(f),de=se(j.to,l)||ka(M.marker)-ka(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(M.marker.inclusiveRight&&f.inclusiveLeft?se(j.to,u)>=0:se(j.to,u)>0)||le>=0&&(M.marker.inclusiveRight&&f.inclusiveLeft?se(j.from,l)<=0:se(j.from,l)<0)))return!0}}}function Mn(t){for(var i;i=ku(t);)t=i.find(-1,!0).line;return t}function Ru(t){for(var i;i=rs(t);)t=i.find(1,!0).line;return t}function ii(t){for(var i,u;i=rs(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function Si(t,i){var u=lt(t,i),l=Mn(u);return u==l?i:tr(l)}function cn(t,i){if(i>t.lastLine())return i;var u=lt(t,i),l;if(!Pn(t,u))return i;for(;l=rs(u);)u=l.find(1,!0).line;return tr(u)+1}function Pn(t,i){var u=ni&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&pl(t,i,l))return!0}}}function pl(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return pl(t,l.line,Fa(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,g=0;g<i.markedSpans.length;++g)if(f=i.markedSpans[g],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&pl(t,i,f))return!0}function wi(t){t=Mn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var g=u.parent;g;u=g,g=u.parent)for(var S=0;S<g.children.length;++S){var T=g.children[S];if(T==u)break;i+=T.height}return i}function ns(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=ku(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=rs(l);){var g=u.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function is(t){var i=t.display,u=t.doc;i.maxLine=lt(u,u.first),i.maxLineLength=ns(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=ns(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Ra=function(t,i,u){this.text=t,ul(this,i),this.height=u?u(this):1};Ra.prototype.lineNo=function(){return tr(this)},yr(Ra);function Mu(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),ll(t),ul(t,u);var f=l?l(t):1;f!=t.height&&Rn(t,f)}function Lu(t){t.parent=null,ll(t)}var Ma={},Nc={};function hl(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?Nc:Ma;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function mt(t,i){var u=Q("span",null,null,U?"padding-right: .1px":null),l={pre:Q("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var g=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Nu,xr(t.display.measure)&&(S=ot(g,t.doc.direction))&&(l.addToken=Du(l.addToken,S)),l.map=[];var T=i!=t.display.externalMeasured&&tr(g);vl(g,l,Cu(t,g,T)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=ke(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=ke(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(mi(t.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var M=l.content.lastChild;(/\bcm-tab\b/.test(M.className)||M.querySelector&&M.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=ke(l.pre.className,l.textClass||"")),l}function as(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Nu(t,i,u,l,f,g,S){if(!!i){var T=t.splitSpaces?Hi(i,t.trailingSpace):i,M=t.cm.state.specialChars,j=!1,le;if(!M.test(i))t.col+=i.length,le=document.createTextNode(T),t.map.push(t.pos,t.pos+i.length,le),O&&k<9&&(j=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){M.lastIndex=de;var we=M.exec(i),ye=we?we.index-de:i.length-de;if(ye){var Ie=document.createTextNode(T.slice(de,de+ye));O&&k<9?le.appendChild(_("span",[Ie])):le.appendChild(Ie),t.map.push(t.pos,t.pos+ye,Ie),t.col+=ye,t.pos+=ye}if(!we)break;de+=ye+1;var Ne=void 0;if(we[0]==" "){var He=t.cm.options.tabSize,Ye=He-t.col%He;Ne=le.appendChild(_("span",zt(Ye),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),t.col+=Ye}else we[0]=="\r"||we[0]==`
17
- `?(Ne=le.appendChild(_("span",we[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",we[0]),t.col+=1):(Ne=t.cm.options.specialCharPlaceholder(we[0]),Ne.setAttribute("cm-text",we[0]),O&&k<9?le.appendChild(_("span",[Ne])):le.appendChild(Ne),t.col+=1);t.map.push(t.pos,t.pos+1,Ne),t.pos++}}if(t.trailingSpace=T.charCodeAt(i.length-1)==32,u||l||f||j||g||S){var Qe=u||"";l&&(Qe+=l),f&&(Qe+=f);var Je=_("span",[le],Qe,g);if(S)for(var rt in S)S.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Je.setAttribute(rt,S[rt]);return t.content.appendChild(Je)}t.content.appendChild(le)}}function Hi(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var g=t.charAt(f);g==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(g="\xA0"),l+=g,u=g==" "}return l}function Du(t,i){return function(u,l,f,g,S,T,M){f=f?f+" cm-force-border":"cm-force-border";for(var j=u.pos,le=j+l.length;;){for(var de=void 0,we=0;we<i.length&&(de=i[we],!(de.to>j&&de.from<=j));we++);if(de.to>=le)return t(u,l,f,g,S,T,M);t(u,l.slice(0,de.to-j),f,g,null,T,M),g=null,l=l.slice(de.to-j),j=de.to}}}function oa(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function vl(t,i,u){var l=t.markedSpans,f=t.text,g=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(g,g=u[S]),hl(u[S+1],i.cm.options));return}for(var T=f.length,M=0,j=1,le="",de,we,ye=0,Ie,Ne,He,Ye,Qe;;){if(ye==M){Ie=Ne=He=we="",Qe=null,Ye=null,ye=1/0;for(var Je=[],rt=void 0,gt=0;gt<l.length;++gt){var ct=l[gt],Dt=ct.marker;if(Dt.type=="bookmark"&&ct.from==M&&Dt.widgetNode)Je.push(Dt);else if(ct.from<=M&&(ct.to==null||ct.to>M||Dt.collapsed&&ct.to==M&&ct.from==M)){if(ct.to!=null&&ct.to!=M&&ye>ct.to&&(ye=ct.to,Ne=""),Dt.className&&(Ie+=" "+Dt.className),Dt.css&&(we=(we?we+";":"")+Dt.css),Dt.startStyle&&ct.from==M&&(He+=" "+Dt.startStyle),Dt.endStyle&&ct.to==ye&&(rt||(rt=[])).push(Dt.endStyle,ct.to),Dt.title&&((Qe||(Qe={})).title=Dt.title),Dt.attributes)for(var dr in Dt.attributes)(Qe||(Qe={}))[dr]=Dt.attributes[dr];Dt.collapsed&&(!Ye||fl(Ye.marker,Dt)<0)&&(Ye=ct)}else ct.from>M&&ye>ct.from&&(ye=ct.from)}if(rt)for(var zr=0;zr<rt.length;zr+=2)rt[zr+1]==ye&&(Ne+=" "+rt[zr]);if(!Ye||Ye.from==M)for(var Sr=0;Sr<Je.length;++Sr)oa(i,0,Je[Sr]);if(Ye&&(Ye.from||0)==M){if(oa(i,(Ye.to==null?T+1:Ye.to)-M,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==M&&(Ye=!1)}}if(M>=T)break;for(var An=Math.min(T,ye);;){if(le){var Gt=M+le.length;if(!Ye){var Nr=Gt>An?le.slice(0,An-M):le;i.addToken(i,Nr,de?de+Ie:Ie,He,M+Nr.length==ye?Ne:"",we,Qe)}if(Gt>=An){le=le.slice(An-M),M=An;break}M=Gt,He=""}le=f.slice(g,g=u[j++]),de=hl(u[j++],i.cm.options)}}}function Tr(t,i,u){this.line=i,this.rest=ii(i),this.size=this.rest?tr(nt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Pn(t,i)}function sa(t,i,u){for(var l=[],f,g=i;g<u;g=f){var S=new Tr(t.doc,lt(t.doc,g),g);f=g+S.size,l.push(S)}return l}var zi=null;function Dc(t){zi?zi.ops.push(t):t.ownsGroup=zi={ops:[t],delayedCallbacks:[]}}function Bc(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function jc(t,i){var u=t.ownsGroup;if(!!u)try{Bc(u)}finally{zi=null,i(u)}}var po=null;function Wr(t,i){var u=xe(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;zi?f=zi.delayedCallbacks:po?f=po:(f=po=[],setTimeout(Bu,0));for(var g=function(T){f.push(function(){return u[T].apply(null,l)})},S=0;S<u.length;++S)g(S)}}function Bu(){var t=po;po=null;for(var i=0;i<t.length;++i)t[i]()}function ju(t,i,u,l){for(var f=0;f<i.changes.length;f++){var g=i.changes[f];g=="text"?La(t,i):g=="gutter"?ml(t,i,u,l):g=="class"?gl(t,i):g=="widget"&&Uc(t,i,l)}i.changes=null}function ho(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),O&&k<8&&(t.node.style.zIndex=2)),t.node}function Vc(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=ho(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function Vu(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):mt(t,i)}function La(t,i){var u=i.text.className,l=Vu(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,gl(t,i)):u&&(i.text.className=u)}function gl(t,i){Vc(t,i),i.line.wrapClass?ho(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function ml(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=ho(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(t.options.lineNumbers||g){var S=ho(i),T=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(T.setAttribute("aria-hidden","true"),t.display.input.setUneditable(T),S.insertBefore(T,i.text),i.line.gutterClass&&(T.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=T.appendChild(_("div",Pa(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var M=0;M<t.display.gutterSpecs.length;++M){var j=t.display.gutterSpecs[M].className,le=g.hasOwnProperty(j)&&g[j];le&&T.appendChild(_("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[j]+"px; width: "+l.gutterWidth[j]+"px"))}}}function Uc(t,i,u){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),f=i.node.firstChild,g=void 0;f;f=g)g=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);Uu(t,i,u)}function Wc(t,i,u,l){var f=Vu(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),gl(t,i),ml(t,i,u,l),Uu(t,i,l),i.node}function Uu(t,i,u){if(Wu(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Wu(t,i.rest[l],i,u,!1)}function Wu(t,i,u,l,f){if(!!i.widgets)for(var g=ho(u),S=0,T=i.widgets;S<T.length;++S){var M=T[S],j=_("div",[M.node],"CodeMirror-linewidget"+(M.className?" "+M.className:""));M.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),Hu(M,j,u,l),t.display.input.setUneditable(j),f&&M.above?g.insertBefore(j,u.gutter||u.text):g.appendChild(j),Wr(M,"redraw")}}function Hu(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Na(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ge(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),he(i.display.measure,_("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function ai(t,i){for(var u=Kr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function Da(t){return t.lineSpace.offsetTop}function yl(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Ba(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=he(t.measure,_("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function oi(t){return De-t.display.nativeBarWidth}function la(t){return t.display.scroller.clientWidth-oi(t)-t.display.barWidth}function bl(t){return t.display.scroller.clientHeight-oi(t)-t.display.barHeight}function Hc(t,i,u){var l=t.options.lineWrapping,f=l&&la(t);if(!i.measure.heights||l&&i.measure.width!=f){var g=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),T=0;T<S.length-1;T++){var M=S[T],j=S[T+1];Math.abs(M.bottom-j.bottom)>2&&g.push((M.bottom+j.top)/2-u.top)}}g.push(u.bottom-u.top)}}function os(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(tr(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function zc(t,i){i=Mn(i);var u=tr(i),l=t.display.externalMeasured=new Tr(t.doc,i,u);l.lineN=u;var f=l.built=mt(t,l);return l.text=f.pre,he(t.display.lineMeasure,f.pre),l}function zu(t,i,u,l){return Kn(t,ja(t,i),u,l)}function xl(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Ai(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ja(t,i){var u=tr(i),l=xl(t,u);l&&!l.text?l=null:l&&l.changes&&(ju(t,l,u,Tl(t)),t.curOp.forceUpdate=!0),l||(l=zc(t,i));var f=os(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Kn(t,i,u,l,f){i.before&&(u=-1);var g=u+(l||""),S;return i.cache.hasOwnProperty(g)?S=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Hc(t,i.view,i.rect),i.hasHeights=!0),S=$c(t,i,u,l),S.bogus||(i.cache[g]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var Gu={left:0,right:0,top:0,bottom:0};function vo(t,i,u){for(var l,f,g,S,T,M,j=0;j<t.length;j+=3)if(T=t[j],M=t[j+1],i<T?(f=0,g=1,S="left"):i<M?(f=i-T,g=f+1):(j==t.length-3||i==M&&t[j+3]>i)&&(g=M-T,f=g-1,i>=M&&(S="right")),f!=null){if(l=t[j+2],T==M&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;j&&t[j-2]==t[j-3]&&t[j-1].insertLeft;)l=t[(j-=3)+2],S="left";if(u=="right"&&f==M-T)for(;j<t.length-3&&t[j+3]==t[j+4]&&!t[j+5].insertLeft;)l=t[(j+=3)+2],S="right";break}return{node:l,start:f,end:g,collapse:S,coverStart:T,coverEnd:M}}function Gc(t,i){var u=Gu;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function $c(t,i,u,l){var f=vo(i.map,u,l),g=f.node,S=f.start,T=f.end,M=f.collapse,j;if(g.nodeType==3){for(var le=0;le<4;le++){for(;S&&yt(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+T<f.coverEnd&&yt(i.line.text.charAt(f.coverStart+T));)++T;if(O&&k<9&&S==0&&T==f.coverEnd-f.coverStart?j=g.parentNode.getBoundingClientRect():j=Gc(z(g,S,T).getClientRects(),l),j.left||j.right||S==0)break;T=S,S=S-1,M="right"}O&&k<11&&(j=Kc(t.display.measure,j))}else{S>0&&(M=l="right");var de;t.options.lineWrapping&&(de=g.getClientRects()).length>1?j=de[l=="right"?de.length-1:0]:j=g.getBoundingClientRect()}if(O&&k<9&&!S&&(!j||!j.left&&!j.right)){var we=g.parentNode.getClientRects()[0];we?j={left:we.left,right:we.left+fa(t.display),top:we.top,bottom:we.bottom}:j=Gu}for(var ye=j.top-i.rect.top,Ie=j.bottom-i.rect.top,Ne=(ye+Ie)/2,He=i.view.measure.heights,Ye=0;Ye<He.length-1&&!(Ne<He[Ye]);Ye++);var Qe=Ye?He[Ye-1]:0,Je=He[Ye],rt={left:(M=="right"?j.right:j.left)-i.rect.left,right:(M=="left"?j.left:j.right)-i.rect.left,top:Qe,bottom:Je};return!j.left&&!j.right&&(rt.bogus=!0),t.options.singleCursorHeightPerLine||(rt.rtop=ye,rt.rbottom=Ie),rt}function Kc(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!un(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function $u(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Sl(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)$u(t.display.view[i])}function Va(t){Sl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ku(t){return re&&D?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function wl(t){return re&&D?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Al(t){var i=Mn(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=Na(u[f]));return l}function go(t,i,u,l,f){if(!f){var g=Al(i);u.top+=g,u.bottom+=g}if(l=="line")return u;l||(l="local");var S=wi(i);if(l=="local"?S+=Da(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var T=t.display.lineSpace.getBoundingClientRect();S+=T.top+(l=="window"?0:wl(et(t)));var M=T.left+(l=="window"?0:Ku(et(t)));u.left+=M,u.right+=M}return u.top+=S,u.bottom+=S,u}function Yr(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Ku(et(t)),f-=wl(et(t));else if(u=="local"||!u){var g=t.display.sizer.getBoundingClientRect();l+=g.left,f+=g.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function ss(t,i,u,l,f){return l||(l=lt(t.doc,i.line)),go(t,l,zu(t,l,i.ch,f),u)}function Yn(t,i,u,l,f,g){l=l||lt(t.doc,i.line),f||(f=ja(t,l));function S(Ie,Ne){var He=Kn(t,f,Ie,Ne?"right":"left",g);return Ne?He.left=He.right:He.right=He.left,go(t,l,He,u)}var T=ot(l,t.doc.direction),M=i.ch,j=i.sticky;if(M>=l.text.length?(M=l.text.length,j="before"):M<=0&&(M=0,j="after"),!T)return S(j=="before"?M-1:M,j=="before");function le(Ie,Ne,He){var Ye=T[Ne],Qe=Ye.level==1;return S(He?Ie-1:Ie,Qe!=He)}var de=vt(T,M,j),we=dt,ye=le(M,de,j=="before");return we!=null&&(ye.other=le(M,we,j!="before")),ye}function Yu(t,i){var u=0;i=ut(t.doc,i),t.options.lineWrapping||(u=fa(t.display)*i.ch);var l=lt(t.doc,i.line),f=wi(l)+Da(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Cl(t,i,u,l,f){var g=B(t,i,u);return g.xRel=f,l&&(g.outside=l),g}function El(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return Cl(l.first,0,null,-1,-1);var f=ti(l,u),g=l.first+l.size-1;if(f>g)return Cl(l.first+l.size-1,lt(l,g).text.length,null,1,1);i<0&&(i=0);for(var S=lt(l,f);;){var T=Ol(t,S,f,i,u),M=Lc(S,T.ch+(T.xRel>0||T.outside>0?1:0));if(!M)return T;var j=M.find(1);if(j.line==f)return j;S=lt(l,f=j.line)}}function Ua(t,i,u,l){l-=Al(i);var f=i.text.length,g=wt(function(S){return Kn(t,u,S-1).bottom<=l},f,0);return f=wt(function(S){return Kn(t,u,S).top>l},g,f),{begin:g,end:f}}function Ju(t,i,u,l){u||(u=ja(t,i));var f=go(t,i,Kn(t,u,l),"line").top;return Ua(t,i,u,f)}function ls(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function Ol(t,i,u,l,f){f-=wi(i);var g=ja(t,i),S=Al(i),T=0,M=i.text.length,j=!0,le=ot(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?us:Yc)(t,i,u,g,le,l,f);j=de.level!=1,T=j?de.from:de.to-1,M=j?de.to:de.from-1}var we=null,ye=null,Ie=wt(function(gt){var ct=Kn(t,g,gt);return ct.top+=S,ct.bottom+=S,ls(ct,l,f,!1)?(ct.top<=f&&ct.left<=l&&(we=gt,ye=ct),!0):!1},T,M),Ne,He,Ye=!1;if(ye){var Qe=l-ye.left<ye.right-l,Je=Qe==j;Ie=we+(Je?0:1),He=Je?"after":"before",Ne=Qe?ye.left:ye.right}else{!j&&(Ie==M||Ie==T)&&Ie++,He=Ie==0?"after":Ie==i.text.length?"before":Kn(t,g,Ie-(j?1:0)).bottom+S<=f==j?"after":"before";var rt=Yn(t,B(u,Ie,He),"line",i,g);Ne=rt.left,Ye=f<rt.top?-1:f>=rt.bottom?1:0}return Ie=Lt(i.text,Ie,1),Cl(u,Ie,He,Ye,l-Ne)}function Yc(t,i,u,l,f,g,S){var T=wt(function(de){var we=f[de],ye=we.level!=1;return ls(Yn(t,B(u,ye?we.to:we.from,ye?"before":"after"),"line",i,l),g,S,!0)},0,f.length-1),M=f[T];if(T>0){var j=M.level!=1,le=Yn(t,B(u,j?M.from:M.to,j?"after":"before"),"line",i,l);ls(le,g,S,!0)&&le.top>S&&(M=f[T-1])}return M}function us(t,i,u,l,f,g,S){var T=Ua(t,i,l,S),M=T.begin,j=T.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var le=null,de=null,we=0;we<f.length;we++){var ye=f[we];if(!(ye.from>=j||ye.to<=M)){var Ie=ye.level!=1,Ne=Kn(t,l,Ie?Math.min(j,ye.to)-1:Math.max(M,ye.from)).right,He=Ne<g?g-Ne+1e9:Ne-g;(!le||de>He)&&(le=ye,de=He)}}return le||(le=f[f.length-1]),le.from<M&&(le={from:M,to:le.to,level:le.level}),le.to>j&&(le={from:le.from,to:j,level:le.level}),le}var Jn;function ua(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Jn==null){Jn=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Jn.appendChild(document.createTextNode("x")),Jn.appendChild(_("br"));Jn.appendChild(document.createTextNode("x"))}he(t.measure,Jn);var u=Jn.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function fa(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=_("span","xxxxxxxxxx"),u=_("pre",[i],"CodeMirror-line-like");he(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function Tl(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,g=i.gutters.firstChild,S=0;g;g=g.nextSibling,++S){var T=t.display.gutterSpecs[S].className;u[T]=g.offsetLeft+g.clientLeft+f,l[T]=g.clientWidth}return{fixedPos:Pl(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Pl(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Wa(t){var i=ua(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/fa(t.display)-3);return function(f){if(Pn(t.doc,f))return 0;var g=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(g+=f.widgets[S].height);return u?g+(Math.ceil(f.text.length/l)||1)*i:g+i}}function fs(t){var i=t.doc,u=Wa(t);i.iter(function(l){var f=u(l);f!=l.height&&Rn(l,f)})}function Gi(t,i,u,l){var f=t.display;if(!u&&Kr(i).getAttribute("cm-not-content")=="true")return null;var g,S,T=f.lineSpace.getBoundingClientRect();try{g=i.clientX-T.left,S=i.clientY-T.top}catch(de){return null}var M=El(t,g,S),j;if(l&&M.xRel>0&&(j=lt(t.doc,M.line).text).length==M.ch){var le=Le(j,j.length,t.options.tabSize)-j.length;M=B(M.line,Math.max(0,Math.round((g-Ba(t.display).left)/fa(t.display))-le))}return M}function Ai(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function nn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)ni&&Si(t.doc,i)<f.viewTo&&In(t);else if(u<=f.viewFrom)ni&&cn(t.doc,u+l)>f.viewFrom?In(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)In(t);else if(i<=f.viewFrom){var g=cs(t,u,u+l,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=l):In(t)}else if(u>=f.viewTo){var S=cs(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):In(t)}else{var T=cs(t,i,i,-1),M=cs(t,u,u+l,1);T&&M?(f.view=f.view.slice(0,T.index).concat(sa(t,T.lineN,M.lineN)).concat(f.view.slice(M.index)),f.viewTo+=l):In(t)}var j=f.externalMeasured;j&&(u<j.lineN?j.lineN+=l:i<j.lineN+j.size&&(f.externalMeasured=null))}function Ci(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[Ai(t,i)];if(g.node!=null){var S=g.changes||(g.changes=[]);be(S,u)==-1&&S.push(u)}}}function In(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function cs(t,i,u,l){var f=Ai(t,i),g,S=t.display.view;if(!ni||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var T=t.display.viewFrom,M=0;M<f;M++)T+=S[M].size;if(T!=i){if(l>0){if(f==S.length-1)return null;g=T+S[f].size-i,f++}else g=T-i;i+=g,u+=g}for(;Si(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Jc(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=sa(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=sa(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Ai(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(sa(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ai(t,u)))),l.viewTo=u}function Il(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Ha(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Xu(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var T=0;T<u.sel.ranges.length;T++)if(!(!i&&T==u.sel.primIndex)){var M=u.sel.ranges[T];if(!(M.from().line>=t.display.viewTo||M.to().line<t.display.viewFrom)){var j=M.empty();if(S){var le=S(t,M);le&&ds(t,le,f)}else(j||t.options.showCursorWhenSelecting)&&ds(t,M.head,f);j||Xc(t,M,g)}}return l}function ds(t,i,u){var l=Yn(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(_("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var g=ss(t,i,"div",null,null),S=g.right-g.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var T=u.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));T.style.display="",T.style.left=l.other.left+"px",T.style.top=l.other.top+"px",T.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ps(t,i){return t.top-i.top||t.left-i.left}function Xc(t,i,u){var l=t.display,f=t.doc,g=document.createDocumentFragment(),S=Ba(t.display),T=S.left,M=Math.max(l.sizerWidth,la(t)-l.sizer.offsetLeft)-S.right,j=f.direction=="ltr";function le(Je,rt,gt,ct){rt<0&&(rt=0),rt=Math.round(rt),ct=Math.round(ct),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
18
- top: `+rt+"px; width: "+(gt==null?M-Je:gt)+`px;
19
- height: `+(ct-rt)+"px"))}function de(Je,rt,gt){var ct=lt(f,Je),Dt=ct.text.length,dr,zr;function Sr(Nr,hn){return ss(t,B(Je,Nr),"div",ct,hn)}function An(Nr,hn,L){var Bt=Ju(t,ct,null,Nr),pt=hn=="ltr"==(L=="after")?"left":"right",mr=L=="after"?Bt.begin:Bt.end-(/\s/.test(ct.text.charAt(Bt.end-1))?2:1);return Sr(mr,pt)[pt]}var Gt=ot(ct,f.direction);return Ft(Gt,rt||0,gt==null?Dt:gt,function(Nr,hn,L,Bt){var pt=L=="ltr",mr=Sr(Nr,pt?"left":"right"),Fr=Sr(hn-1,pt?"right":"left"),Sa=rt==null&&Nr==0,Ri=gt==null&&hn==Dt,Xr=Bt==0,Qn=!Gt||Bt==Gt.length-1;if(Fr.top-mr.top<=3){var Dr=(j?Sa:Ri)&&Xr,ro=(j?Ri:Sa)&&Qn,Mi=Dr?T:(pt?mr:Fr).left,Zi=ro?M:(pt?Fr:mr).right;le(Mi,mr.top,Zi-Mi,mr.bottom)}else{var qi,Qr,no,Ks;pt?(qi=j&&Sa&&Xr?T:mr.left,Qr=j?M:An(Nr,L,"before"),no=j?T:An(hn,L,"after"),Ks=j&&Ri&&Qn?M:Fr.right):(qi=j?An(Nr,L,"before"):T,Qr=!j&&Sa&&Xr?M:mr.right,no=!j&&Ri&&Qn?T:Fr.left,Ks=j?An(hn,L,"after"):M),le(qi,mr.top,Qr-qi,mr.bottom),mr.bottom<Fr.top&&le(T,mr.bottom,null,Fr.top),le(no,Fr.top,Ks-no,Fr.bottom)}(!dr||ps(mr,dr)<0)&&(dr=mr),ps(Fr,dr)<0&&(dr=Fr),(!zr||ps(mr,zr)<0)&&(zr=mr),ps(Fr,zr)<0&&(zr=Fr)}),{start:dr,end:zr}}var we=i.from(),ye=i.to();if(we.line==ye.line)de(we.line,we.ch,ye.ch);else{var Ie=lt(f,we.line),Ne=lt(f,ye.line),He=Mn(Ie)==Mn(Ne),Ye=de(we.line,we.ch,He?Ie.text.length+1:null).end,Qe=de(ye.line,He?0:null,ye.ch).start;He&&(Ye.top<Qe.top-2?(le(Ye.right,Ye.top,null,Ye.bottom),le(T,Qe.top,Qe.left,Qe.bottom)):le(Ye.right,Ye.top,Qe.left-Ye.right,Ye.bottom)),Ye.bottom<Qe.top&&le(T,Ye.bottom,null,Qe.top)}u.appendChild(g)}function hs(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||bn(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||vs(t))}function Fl(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&bn(t))},100)}function vs(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,je(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),hs(t))}function bn(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,H(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function gs(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,g=0,S=0;S<i.view.length;S++){var T=i.view[S],M=t.options.lineWrapping,j=void 0,le=0;if(!T.hidden){if(f+=T.line.height,O&&k<8){var de=T.node.offsetTop+T.node.offsetHeight;j=de-u,u=de}else{var we=T.node.getBoundingClientRect();j=we.bottom-we.top,!M&&T.text.firstChild&&(le=T.text.firstChild.getBoundingClientRect().right-we.left-1)}var ye=T.line.height-j;if((ye>.005||ye<-.005)&&(f<l&&(g-=ye),Rn(T.line,j),ms(T.line),T.rest))for(var Ie=0;Ie<T.rest.length;Ie++)ms(T.rest[Ie]);if(le>t.display.sizerWidth){var Ne=Math.ceil(le/fa(t.display));Ne>t.display.maxLineLength&&(t.display.maxLineLength=Ne,t.display.maxLine=T.line,t.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function ms(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function ys(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-Da(t));var f=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,g=ti(i,l),S=ti(i,f);if(u&&u.ensure){var T=u.ensure.from.line,M=u.ensure.to.line;T<g?(g=T,S=ti(i,wi(lt(i,T))+t.wrapper.clientHeight)):Math.min(M,i.lastLine())>=S&&(g=ti(i,wi(lt(i,M))-t.wrapper.clientHeight),S=M)}return{from:g,to:Math.max(S,g+1)}}function Qc(t,i){if(!st(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),f=null,g=u.wrapper.ownerDocument;if(i.top+l.top<0?f=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(f=!1),f!=null&&!P){var S=_("div","\u200B",null,`position: absolute;
16
+ `,i);f==-1&&(f=t.length);var g=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=g.indexOf("\r");S!=-1?(u.push(g.slice(0,S)),i+=S+1):(u.push(g),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},Ui=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},Wi=function(){var t=ee("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),gn=null;function un(t){if(gn!=null)return gn;var i=ve(t,ee("span","x")),u=i.getBoundingClientRect(),l=z(i,0,1).getBoundingClientRect();return gn=Math.abs(u.left-l.left)>1}var mn={},yn={};function On(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),mn[t]=i}function lo(t,i){yn[t]=i}function $n(t){if(typeof t=="string"&&yn.hasOwnProperty(t))t=yn[t];else if(t&&typeof t.name=="string"&&yn.hasOwnProperty(t.name)){var i=yn[t.name];typeof i=="string"&&(i={name:i}),t=Rr(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function fn(t,i){i=$n(i);var u=mn[i.name];if(!u)return fn(t,"text/plain");var l=u(t,i);if(Cr.hasOwnProperty(i.name)){var f=Cr[i.name];for(var g in f)!f.hasOwnProperty(g)||(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=f[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var Cr={};function yi(t,i){var u=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};St(i,u)}function kn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function Ta(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function uo(t,i,u){return t.startState?t.startState(i,u):!0}var vr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};vr.prototype.eol=function(){return this.pos>=this.string.length},vr.prototype.sol=function(){return this.pos==this.lineStart},vr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},vr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},vr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},vr.prototype.skipToEnd=function(){this.pos=this.string.length},vr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},vr.prototype.backUp=function(t){this.pos-=t},vr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},vr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},vr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},vr.prototype.current=function(){return this.string.slice(this.start,this.pos)},vr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},vr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},vr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function lt(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],g=f.chunkSize();if(i<g){u=f;break}i-=g}return u.lines[i]}function bi(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(g){var S=g.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function na(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function Rn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function tr(t){if(t.parent==null)return null;for(var i=t.parent,u=be(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function ti(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],g=f.height;if(i<g){t=f;continue e}i-=g,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var T=t.lines[S],R=T.height;if(i<R)break;i-=R}return u+S}function ia(t,i){return i>=t.first&&i<t.first+t.size}function Pa(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function N(t,i,u){if(u===void 0&&(u=null),!(this instanceof N))return new N(t,i,u);this.line=t,this.ch=i,this.sticky=u}function se(t,i){return t.line-i.line||t.ch-i.ch}function Me(t,i){return t.sticky==i.sticky&&se(t,i)==0}function We(t){return N(t.line,t.ch)}function It(t,i){return se(t,i)<0?i:t}function Vt(t,i){return se(t,i)<0?t:i}function ir(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ut(t,i){if(i.line<t.first)return N(t.first,0);var u=t.first+t.size-1;return i.line>u?N(u,lt(t,u).text.length):Tn(i,lt(t,i.line).text.length)}function Tn(t,i){var u=t.ch;return u==null||u>i?N(t.line,i):u<0?N(t.line,0):t}function qo(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ut(t,i[l]);return u}var _o=function(t,i){this.state=t,this.lookAhead=i},ri=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};ri.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},ri.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ri.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ri.fromSaved=function(t,i,u){return i instanceof _o?new ri(t,kn(t.mode,i.state),u,i.lookAhead):new ri(t,kn(t.mode,i),u)},ri.prototype.save=function(t){var i=t!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _o(i,this.maxLookAhead):i};function al(t,i,u,l){var f=[t.state.modeGen],g={};Pu(t,i.text,t.doc.mode,u,function(j,le){return f.push(j,le)},g,l);for(var S=u.state,T=function(j){u.baseTokens=f;var le=t.state.overlays[j],de=1,Ae=0;u.state=!0,Pu(t,i.text,le.mode,u,function(ye,Ie){for(var Ne=de;Ae<ye;){var He=f[de];He>ye&&f.splice(de,1,ye,f[de+1],He),de+=2,Ae=Math.min(ye,He)}if(!!Ie)if(le.opaque)f.splice(Ne,de-Ne,ye,"overlay "+Ie),de=Ne+2;else for(;Ne<de;Ne+=2){var Ye=f[Ne+1];f[Ne+1]=(Ye?Ye+" ":"")+"overlay "+Ie}},g),u.state=S,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)T(R);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function Cu(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=Ia(t,tr(i)),f=i.text.length>t.options.maxHighlightLength&&kn(t.doc.mode,l.state),g=al(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function Ia(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new ri(l,!0,i);var g=Tc(t,i,u),S=g>l.first&&lt(l,g-1).stateAfter,T=S?ri.fromSaved(l,S,g):new ri(l,uo(l.mode),g);return l.iter(g,i,function(R){fo(t,R.text,T);var j=T.line;R.stateAfter=j==i-1||j%5==0||j>=f.viewFrom&&j<f.viewTo?T.save():null,T.nextLine()}),u&&(l.modeFrontier=T.line),T}function fo(t,i,u,l){var f=t.doc.mode,g=new vr(i,t.options.tabSize,u);for(g.start=g.pos=l||0,i==""&&Eu(f,u.state);!g.eol();)ol(f,g,u.state),g.start=g.pos}function Eu(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=Ta(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ol(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=Ta(t,u).mode);var g=t.token(i,u);if(i.pos>i.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var Ou=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function Tu(t,i,u,l){var f=t.doc,g=f.mode,S;i=ut(f,i);var T=lt(f,i.line),R=Ia(t,i.line,u),j=new vr(T.text,t.options.tabSize,R),le;for(l&&(le=[]);(l||j.pos<i.ch)&&!j.eol();)j.start=j.pos,S=ol(g,j,R.state),l&&le.push(new Ou(j,S,kn(f.mode,R.state)));return l?le:new Ou(j,S,R.state)}function sl(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function Pu(t,i,u,l,f,g,S){var T=u.flattenSpans;T==null&&(T=t.options.flattenSpans);var R=0,j=null,le=new vr(i,t.options.tabSize,l),de,Ae=t.options.addModeClass&&[null];for(i==""&&sl(Eu(u,l.state),g);!le.eol();){if(le.pos>t.options.maxHighlightLength?(T=!1,S&&fo(t,i,l,le.pos),le.pos=i.length,de=null):de=sl(ol(u,le,l.state,Ae),g),Ae){var ye=Ae[0].name;ye&&(de="m-"+(de?ye+" "+de:ye))}if(!T||j!=de){for(;R<le.start;)R=Math.min(le.start,R+5e3),f(R,j);j=de}le.start=le.pos}for(;R<le.pos;){var Ie=Math.min(le.pos,R+5e3);f(Ie,j),R=Ie}}function Tc(t,i,u){for(var l,f,g=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),T=i;T>S;--T){if(T<=g.first)return g.first;var R=lt(g,T-1),j=R.stateAfter;if(j&&(!u||T+(j instanceof _o?j.lookAhead:0)<=g.modeFrontier))return T;var le=Le(R.text,null,t.options.tabSize);(f==null||l>le)&&(f=T-1,l=le)}return f}function Pc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=lt(t,l).stateAfter;if(f&&(!(f instanceof _o)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var Iu=!1,ni=!1;function Ic(){Iu=!0}function Fc(){ni=!0}function es(t,i,u){this.marker=t,this.from=i,this.to=u}function Fa(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function kc(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function Rc(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Mc(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);if(T||g.from==i&&S.type=="bookmark"&&(!u||!g.marker.insertLeft)){var R=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new es(S,g.from,R?null:g.to))}}return l}function Fu(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);if(T||g.from==i&&S.type=="bookmark"&&(!u||g.marker.insertLeft)){var R=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new es(S,R?null:g.from-i,g.to==null?null:g.to-i))}}return l}function co(t,i){if(i.full)return null;var u=ia(t,i.from.line)&&lt(t,i.from.line).markedSpans,l=ia(t,i.to.line)&&lt(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,g=i.to.ch,S=se(i.from,i.to)==0,T=Mc(u,f,S),R=Fu(l,g,S),j=i.text.length==1,le=nt(i.text).length+(j?f:0);if(T)for(var de=0;de<T.length;++de){var Ae=T[de];if(Ae.to==null){var ye=Fa(R,Ae.marker);ye?j&&(Ae.to=ye.to==null?null:ye.to+le):Ae.to=f}}if(R)for(var Ie=0;Ie<R.length;++Ie){var Ne=R[Ie];if(Ne.to!=null&&(Ne.to+=le),Ne.from==null){var He=Fa(T,Ne.marker);He||(Ne.from=le,j&&(T||(T=[])).push(Ne))}else Ne.from+=le,j&&(T||(T=[])).push(Ne)}T&&(T=xi(T)),R&&R!=T&&(R=xi(R));var Ye=[T];if(!j){var Qe=i.text.length-2,Je;if(Qe>0&&T)for(var rt=0;rt<T.length;++rt)T[rt].to==null&&(Je||(Je=[])).push(new es(T[rt].marker,null,null));for(var gt=0;gt<Qe;++gt)Ye.push(Je);Ye.push(R)}return Ye}function xi(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function ts(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(ye){if(ye.markedSpans)for(var Ie=0;Ie<ye.markedSpans.length;++Ie){var Ne=ye.markedSpans[Ie].marker;Ne.readOnly&&(!l||be(l,Ne)==-1)&&(l||(l=[])).push(Ne)}}),!l)return null;for(var f=[{from:i,to:u}],g=0;g<l.length;++g)for(var S=l[g],T=S.find(0),R=0;R<f.length;++R){var j=f[R];if(!(se(j.to,T.from)<0||se(j.from,T.to)>0)){var le=[R,1],de=se(j.from,T.from),Ae=se(j.to,T.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:j.from,to:T.from}),(Ae>0||!S.inclusiveRight&&!Ae)&&le.push({from:T.to,to:j.to}),f.splice.apply(f,le),R+=le.length-3}}return f}function ll(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function ul(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function aa(t){return t.inclusiveLeft?-1:0}function ka(t){return t.inclusiveRight?1:0}function fl(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),g=se(l.from,f.from)||aa(t)-aa(i);if(g)return-g;var S=se(l.to,f.to)||ka(t)-ka(i);return S||i.id-t.id}function cl(t,i){var u=ni&&t.markedSpans,l;if(u)for(var f=void 0,g=0;g<u.length;++g)f=u[g],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||fl(l,f.marker)<0)&&(l=f.marker);return l}function ku(t){return cl(t,!0)}function rs(t){return cl(t,!1)}function Lc(t,i){var u=ni&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var g=u[f];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||fl(l,g.marker)<0)&&(l=g.marker)}return l}function dl(t,i,u,l,f){var g=lt(t,i),S=ni&&g.markedSpans;if(S)for(var T=0;T<S.length;++T){var R=S[T];if(!!R.marker.collapsed){var j=R.marker.find(0),le=se(j.from,u)||aa(R.marker)-aa(f),de=se(j.to,l)||ka(R.marker)-ka(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?se(j.to,u)>=0:se(j.to,u)>0)||le>=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?se(j.from,l)<=0:se(j.from,l)<0)))return!0}}}function Mn(t){for(var i;i=ku(t);)t=i.find(-1,!0).line;return t}function Ru(t){for(var i;i=rs(t);)t=i.find(1,!0).line;return t}function ii(t){for(var i,u;i=rs(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function Si(t,i){var u=lt(t,i),l=Mn(u);return u==l?i:tr(l)}function cn(t,i){if(i>t.lastLine())return i;var u=lt(t,i),l;if(!Pn(t,u))return i;for(;l=rs(u);)u=l.find(1,!0).line;return tr(u)+1}function Pn(t,i){var u=ni&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&pl(t,i,l))return!0}}}function pl(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return pl(t,l.line,Fa(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,g=0;g<i.markedSpans.length;++g)if(f=i.markedSpans[g],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&pl(t,i,f))return!0}function wi(t){t=Mn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var g=u.parent;g;u=g,g=u.parent)for(var S=0;S<g.children.length;++S){var T=g.children[S];if(T==u)break;i+=T.height}return i}function ns(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=ku(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=rs(l);){var g=u.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function is(t){var i=t.display,u=t.doc;i.maxLine=lt(u,u.first),i.maxLineLength=ns(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=ns(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Ra=function(t,i,u){this.text=t,ul(this,i),this.height=u?u(this):1};Ra.prototype.lineNo=function(){return tr(this)},yr(Ra);function Mu(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),ll(t),ul(t,u);var f=l?l(t):1;f!=t.height&&Rn(t,f)}function Lu(t){t.parent=null,ll(t)}var Ma={},Nc={};function hl(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?Nc:Ma;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function mt(t,i){var u=Z("span",null,null,U?"padding-right: .1px":null),l={pre:Z("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var g=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Nu,xr(t.display.measure)&&(S=ot(g,t.doc.direction))&&(l.addToken=Du(l.addToken,S)),l.map=[];var T=i!=t.display.externalMeasured&&tr(g);vl(g,l,Cu(t,g,T)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=ke(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=ke(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(mi(t.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=ke(l.pre.className,l.textClass||"")),l}function as(t){var i=ee("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Nu(t,i,u,l,f,g,S){if(!!i){var T=t.splitSpaces?Hi(i,t.trailingSpace):i,R=t.cm.state.specialChars,j=!1,le;if(!R.test(i))t.col+=i.length,le=document.createTextNode(T),t.map.push(t.pos,t.pos+i.length,le),O&&k<9&&(j=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){R.lastIndex=de;var Ae=R.exec(i),ye=Ae?Ae.index-de:i.length-de;if(ye){var Ie=document.createTextNode(T.slice(de,de+ye));O&&k<9?le.appendChild(ee("span",[Ie])):le.appendChild(Ie),t.map.push(t.pos,t.pos+ye,Ie),t.col+=ye,t.pos+=ye}if(!Ae)break;de+=ye+1;var Ne=void 0;if(Ae[0]==" "){var He=t.cm.options.tabSize,Ye=He-t.col%He;Ne=le.appendChild(ee("span",zt(Ye),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),t.col+=Ye}else Ae[0]=="\r"||Ae[0]==`
17
+ `?(Ne=le.appendChild(ee("span",Ae[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",Ae[0]),t.col+=1):(Ne=t.cm.options.specialCharPlaceholder(Ae[0]),Ne.setAttribute("cm-text",Ae[0]),O&&k<9?le.appendChild(ee("span",[Ne])):le.appendChild(Ne),t.col+=1);t.map.push(t.pos,t.pos+1,Ne),t.pos++}}if(t.trailingSpace=T.charCodeAt(i.length-1)==32,u||l||f||j||g||S){var Qe=u||"";l&&(Qe+=l),f&&(Qe+=f);var Je=ee("span",[le],Qe,g);if(S)for(var rt in S)S.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Je.setAttribute(rt,S[rt]);return t.content.appendChild(Je)}t.content.appendChild(le)}}function Hi(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var g=t.charAt(f);g==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(g="\xA0"),l+=g,u=g==" "}return l}function Du(t,i){return function(u,l,f,g,S,T,R){f=f?f+" cm-force-border":"cm-force-border";for(var j=u.pos,le=j+l.length;;){for(var de=void 0,Ae=0;Ae<i.length&&(de=i[Ae],!(de.to>j&&de.from<=j));Ae++);if(de.to>=le)return t(u,l,f,g,S,T,R);t(u,l.slice(0,de.to-j),f,g,null,T,R),g=null,l=l.slice(de.to-j),j=de.to}}}function oa(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function vl(t,i,u){var l=t.markedSpans,f=t.text,g=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(g,g=u[S]),hl(u[S+1],i.cm.options));return}for(var T=f.length,R=0,j=1,le="",de,Ae,ye=0,Ie,Ne,He,Ye,Qe;;){if(ye==R){Ie=Ne=He=Ae="",Qe=null,Ye=null,ye=1/0;for(var Je=[],rt=void 0,gt=0;gt<l.length;++gt){var ct=l[gt],Dt=ct.marker;if(Dt.type=="bookmark"&&ct.from==R&&Dt.widgetNode)Je.push(Dt);else if(ct.from<=R&&(ct.to==null||ct.to>R||Dt.collapsed&&ct.to==R&&ct.from==R)){if(ct.to!=null&&ct.to!=R&&ye>ct.to&&(ye=ct.to,Ne=""),Dt.className&&(Ie+=" "+Dt.className),Dt.css&&(Ae=(Ae?Ae+";":"")+Dt.css),Dt.startStyle&&ct.from==R&&(He+=" "+Dt.startStyle),Dt.endStyle&&ct.to==ye&&(rt||(rt=[])).push(Dt.endStyle,ct.to),Dt.title&&((Qe||(Qe={})).title=Dt.title),Dt.attributes)for(var dr in Dt.attributes)(Qe||(Qe={}))[dr]=Dt.attributes[dr];Dt.collapsed&&(!Ye||fl(Ye.marker,Dt)<0)&&(Ye=ct)}else ct.from>R&&ye>ct.from&&(ye=ct.from)}if(rt)for(var zr=0;zr<rt.length;zr+=2)rt[zr+1]==ye&&(Ne+=" "+rt[zr]);if(!Ye||Ye.from==R)for(var Sr=0;Sr<Je.length;++Sr)oa(i,0,Je[Sr]);if(Ye&&(Ye.from||0)==R){if(oa(i,(Ye.to==null?T+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=T)break;for(var An=Math.min(T,ye);;){if(le){var Gt=R+le.length;if(!Ye){var Nr=Gt>An?le.slice(0,An-R):le;i.addToken(i,Nr,de?de+Ie:Ie,He,R+Nr.length==ye?Ne:"",Ae,Qe)}if(Gt>=An){le=le.slice(An-R),R=An;break}R=Gt,He=""}le=f.slice(g,g=u[j++]),de=hl(u[j++],i.cm.options)}}}function Tr(t,i,u){this.line=i,this.rest=ii(i),this.size=this.rest?tr(nt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Pn(t,i)}function sa(t,i,u){for(var l=[],f,g=i;g<u;g=f){var S=new Tr(t.doc,lt(t.doc,g),g);f=g+S.size,l.push(S)}return l}var zi=null;function Dc(t){zi?zi.ops.push(t):t.ownsGroup=zi={ops:[t],delayedCallbacks:[]}}function Bc(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function jc(t,i){var u=t.ownsGroup;if(!!u)try{Bc(u)}finally{zi=null,i(u)}}var po=null;function Wr(t,i){var u=xe(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;zi?f=zi.delayedCallbacks:po?f=po:(f=po=[],setTimeout(Bu,0));for(var g=function(T){f.push(function(){return u[T].apply(null,l)})},S=0;S<u.length;++S)g(S)}}function Bu(){var t=po;po=null;for(var i=0;i<t.length;++i)t[i]()}function ju(t,i,u,l){for(var f=0;f<i.changes.length;f++){var g=i.changes[f];g=="text"?La(t,i):g=="gutter"?ml(t,i,u,l):g=="class"?gl(t,i):g=="widget"&&Uc(t,i,l)}i.changes=null}function ho(t){return t.node==t.text&&(t.node=ee("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),O&&k<8&&(t.node.style.zIndex=2)),t.node}function Vc(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=ho(i);i.background=l.insertBefore(ee("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function Vu(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):mt(t,i)}function La(t,i){var u=i.text.className,l=Vu(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,gl(t,i)):u&&(i.text.className=u)}function gl(t,i){Vc(t,i),i.line.wrapClass?ho(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function ml(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=ho(i);i.gutterBackground=ee("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(t.options.lineNumbers||g){var S=ho(i),T=i.gutter=ee("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(T.setAttribute("aria-hidden","true"),t.display.input.setUneditable(T),S.insertBefore(T,i.text),i.line.gutterClass&&(T.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=T.appendChild(ee("div",Pa(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var R=0;R<t.display.gutterSpecs.length;++R){var j=t.display.gutterSpecs[R].className,le=g.hasOwnProperty(j)&&g[j];le&&T.appendChild(ee("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[j]+"px; width: "+l.gutterWidth[j]+"px"))}}}function Uc(t,i,u){i.alignable&&(i.alignable=null);for(var l=X("CodeMirror-linewidget"),f=i.node.firstChild,g=void 0;f;f=g)g=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);Uu(t,i,u)}function Wc(t,i,u,l){var f=Vu(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),gl(t,i),ml(t,i,u,l),Uu(t,i,l),i.node}function Uu(t,i,u){if(Wu(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Wu(t,i.rest[l],i,u,!1)}function Wu(t,i,u,l,f){if(!!i.widgets)for(var g=ho(u),S=0,T=i.widgets;S<T.length;++S){var R=T[S],j=ee("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),Hu(R,j,u,l),t.display.input.setUneditable(j),f&&R.above?g.insertBefore(j,u.gutter||u.text):g.appendChild(j),Wr(R,"redraw")}}function Hu(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Na(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ge(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),ve(i.display.measure,ee("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function ai(t,i){for(var u=Kr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function Da(t){return t.lineSpace.offsetTop}function yl(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Ba(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=ve(t.measure,ee("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function oi(t){return De-t.display.nativeBarWidth}function la(t){return t.display.scroller.clientWidth-oi(t)-t.display.barWidth}function bl(t){return t.display.scroller.clientHeight-oi(t)-t.display.barHeight}function Hc(t,i,u){var l=t.options.lineWrapping,f=l&&la(t);if(!i.measure.heights||l&&i.measure.width!=f){var g=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),T=0;T<S.length-1;T++){var R=S[T],j=S[T+1];Math.abs(R.bottom-j.bottom)>2&&g.push((R.bottom+j.top)/2-u.top)}}g.push(u.bottom-u.top)}}function os(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(tr(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function zc(t,i){i=Mn(i);var u=tr(i),l=t.display.externalMeasured=new Tr(t.doc,i,u);l.lineN=u;var f=l.built=mt(t,l);return l.text=f.pre,ve(t.display.lineMeasure,f.pre),l}function zu(t,i,u,l){return Kn(t,ja(t,i),u,l)}function xl(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Ai(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ja(t,i){var u=tr(i),l=xl(t,u);l&&!l.text?l=null:l&&l.changes&&(ju(t,l,u,Tl(t)),t.curOp.forceUpdate=!0),l||(l=zc(t,i));var f=os(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Kn(t,i,u,l,f){i.before&&(u=-1);var g=u+(l||""),S;return i.cache.hasOwnProperty(g)?S=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Hc(t,i.view,i.rect),i.hasHeights=!0),S=$c(t,i,u,l),S.bogus||(i.cache[g]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var Gu={left:0,right:0,top:0,bottom:0};function vo(t,i,u){for(var l,f,g,S,T,R,j=0;j<t.length;j+=3)if(T=t[j],R=t[j+1],i<T?(f=0,g=1,S="left"):i<R?(f=i-T,g=f+1):(j==t.length-3||i==R&&t[j+3]>i)&&(g=R-T,f=g-1,i>=R&&(S="right")),f!=null){if(l=t[j+2],T==R&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;j&&t[j-2]==t[j-3]&&t[j-1].insertLeft;)l=t[(j-=3)+2],S="left";if(u=="right"&&f==R-T)for(;j<t.length-3&&t[j+3]==t[j+4]&&!t[j+5].insertLeft;)l=t[(j+=3)+2],S="right";break}return{node:l,start:f,end:g,collapse:S,coverStart:T,coverEnd:R}}function Gc(t,i){var u=Gu;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function $c(t,i,u,l){var f=vo(i.map,u,l),g=f.node,S=f.start,T=f.end,R=f.collapse,j;if(g.nodeType==3){for(var le=0;le<4;le++){for(;S&&yt(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+T<f.coverEnd&&yt(i.line.text.charAt(f.coverStart+T));)++T;if(O&&k<9&&S==0&&T==f.coverEnd-f.coverStart?j=g.parentNode.getBoundingClientRect():j=Gc(z(g,S,T).getClientRects(),l),j.left||j.right||S==0)break;T=S,S=S-1,R="right"}O&&k<11&&(j=Kc(t.display.measure,j))}else{S>0&&(R=l="right");var de;t.options.lineWrapping&&(de=g.getClientRects()).length>1?j=de[l=="right"?de.length-1:0]:j=g.getBoundingClientRect()}if(O&&k<9&&!S&&(!j||!j.left&&!j.right)){var Ae=g.parentNode.getClientRects()[0];Ae?j={left:Ae.left,right:Ae.left+fa(t.display),top:Ae.top,bottom:Ae.bottom}:j=Gu}for(var ye=j.top-i.rect.top,Ie=j.bottom-i.rect.top,Ne=(ye+Ie)/2,He=i.view.measure.heights,Ye=0;Ye<He.length-1&&!(Ne<He[Ye]);Ye++);var Qe=Ye?He[Ye-1]:0,Je=He[Ye],rt={left:(R=="right"?j.right:j.left)-i.rect.left,right:(R=="left"?j.left:j.right)-i.rect.left,top:Qe,bottom:Je};return!j.left&&!j.right&&(rt.bogus=!0),t.options.singleCursorHeightPerLine||(rt.rtop=ye,rt.rbottom=Ie),rt}function Kc(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!un(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function $u(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Sl(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)$u(t.display.view[i])}function Va(t){Sl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ku(t){return re&&L?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function wl(t){return re&&L?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Al(t){var i=Mn(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=Na(u[f]));return l}function go(t,i,u,l,f){if(!f){var g=Al(i);u.top+=g,u.bottom+=g}if(l=="line")return u;l||(l="local");var S=wi(i);if(l=="local"?S+=Da(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var T=t.display.lineSpace.getBoundingClientRect();S+=T.top+(l=="window"?0:wl(et(t)));var R=T.left+(l=="window"?0:Ku(et(t)));u.left+=R,u.right+=R}return u.top+=S,u.bottom+=S,u}function Yr(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Ku(et(t)),f-=wl(et(t));else if(u=="local"||!u){var g=t.display.sizer.getBoundingClientRect();l+=g.left,f+=g.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function ss(t,i,u,l,f){return l||(l=lt(t.doc,i.line)),go(t,l,zu(t,l,i.ch,f),u)}function Yn(t,i,u,l,f,g){l=l||lt(t.doc,i.line),f||(f=ja(t,l));function S(Ie,Ne){var He=Kn(t,f,Ie,Ne?"right":"left",g);return Ne?He.left=He.right:He.right=He.left,go(t,l,He,u)}var T=ot(l,t.doc.direction),R=i.ch,j=i.sticky;if(R>=l.text.length?(R=l.text.length,j="before"):R<=0&&(R=0,j="after"),!T)return S(j=="before"?R-1:R,j=="before");function le(Ie,Ne,He){var Ye=T[Ne],Qe=Ye.level==1;return S(He?Ie-1:Ie,Qe!=He)}var de=vt(T,R,j),Ae=pt,ye=le(R,de,j=="before");return Ae!=null&&(ye.other=le(R,Ae,j!="before")),ye}function Yu(t,i){var u=0;i=ut(t.doc,i),t.options.lineWrapping||(u=fa(t.display)*i.ch);var l=lt(t.doc,i.line),f=wi(l)+Da(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Cl(t,i,u,l,f){var g=N(t,i,u);return g.xRel=f,l&&(g.outside=l),g}function El(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return Cl(l.first,0,null,-1,-1);var f=ti(l,u),g=l.first+l.size-1;if(f>g)return Cl(l.first+l.size-1,lt(l,g).text.length,null,1,1);i<0&&(i=0);for(var S=lt(l,f);;){var T=Ol(t,S,f,i,u),R=Lc(S,T.ch+(T.xRel>0||T.outside>0?1:0));if(!R)return T;var j=R.find(1);if(j.line==f)return j;S=lt(l,f=j.line)}}function Ua(t,i,u,l){l-=Al(i);var f=i.text.length,g=wt(function(S){return Kn(t,u,S-1).bottom<=l},f,0);return f=wt(function(S){return Kn(t,u,S).top>l},g,f),{begin:g,end:f}}function Ju(t,i,u,l){u||(u=ja(t,i));var f=go(t,i,Kn(t,u,l),"line").top;return Ua(t,i,u,f)}function ls(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function Ol(t,i,u,l,f){f-=wi(i);var g=ja(t,i),S=Al(i),T=0,R=i.text.length,j=!0,le=ot(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?us:Yc)(t,i,u,g,le,l,f);j=de.level!=1,T=j?de.from:de.to-1,R=j?de.to:de.from-1}var Ae=null,ye=null,Ie=wt(function(gt){var ct=Kn(t,g,gt);return ct.top+=S,ct.bottom+=S,ls(ct,l,f,!1)?(ct.top<=f&&ct.left<=l&&(Ae=gt,ye=ct),!0):!1},T,R),Ne,He,Ye=!1;if(ye){var Qe=l-ye.left<ye.right-l,Je=Qe==j;Ie=Ae+(Je?0:1),He=Je?"after":"before",Ne=Qe?ye.left:ye.right}else{!j&&(Ie==R||Ie==T)&&Ie++,He=Ie==0?"after":Ie==i.text.length?"before":Kn(t,g,Ie-(j?1:0)).bottom+S<=f==j?"after":"before";var rt=Yn(t,N(u,Ie,He),"line",i,g);Ne=rt.left,Ye=f<rt.top?-1:f>=rt.bottom?1:0}return Ie=Lt(i.text,Ie,1),Cl(u,Ie,He,Ye,l-Ne)}function Yc(t,i,u,l,f,g,S){var T=wt(function(de){var Ae=f[de],ye=Ae.level!=1;return ls(Yn(t,N(u,ye?Ae.to:Ae.from,ye?"before":"after"),"line",i,l),g,S,!0)},0,f.length-1),R=f[T];if(T>0){var j=R.level!=1,le=Yn(t,N(u,j?R.from:R.to,j?"after":"before"),"line",i,l);ls(le,g,S,!0)&&le.top>S&&(R=f[T-1])}return R}function us(t,i,u,l,f,g,S){var T=Ua(t,i,l,S),R=T.begin,j=T.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var le=null,de=null,Ae=0;Ae<f.length;Ae++){var ye=f[Ae];if(!(ye.from>=j||ye.to<=R)){var Ie=ye.level!=1,Ne=Kn(t,l,Ie?Math.min(j,ye.to)-1:Math.max(R,ye.from)).right,He=Ne<g?g-Ne+1e9:Ne-g;(!le||de>He)&&(le=ye,de=He)}}return le||(le=f[f.length-1]),le.from<R&&(le={from:R,to:le.to,level:le.level}),le.to>j&&(le={from:le.from,to:j,level:le.level}),le}var Jn;function ua(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Jn==null){Jn=ee("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Jn.appendChild(document.createTextNode("x")),Jn.appendChild(ee("br"));Jn.appendChild(document.createTextNode("x"))}ve(t.measure,Jn);var u=Jn.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function fa(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=ee("span","xxxxxxxxxx"),u=ee("pre",[i],"CodeMirror-line-like");ve(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function Tl(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,g=i.gutters.firstChild,S=0;g;g=g.nextSibling,++S){var T=t.display.gutterSpecs[S].className;u[T]=g.offsetLeft+g.clientLeft+f,l[T]=g.clientWidth}return{fixedPos:Pl(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Pl(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Wa(t){var i=ua(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/fa(t.display)-3);return function(f){if(Pn(t.doc,f))return 0;var g=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(g+=f.widgets[S].height);return u?g+(Math.ceil(f.text.length/l)||1)*i:g+i}}function fs(t){var i=t.doc,u=Wa(t);i.iter(function(l){var f=u(l);f!=l.height&&Rn(l,f)})}function Gi(t,i,u,l){var f=t.display;if(!u&&Kr(i).getAttribute("cm-not-content")=="true")return null;var g,S,T=f.lineSpace.getBoundingClientRect();try{g=i.clientX-T.left,S=i.clientY-T.top}catch(de){return null}var R=El(t,g,S),j;if(l&&R.xRel>0&&(j=lt(t.doc,R.line).text).length==R.ch){var le=Le(j,j.length,t.options.tabSize)-j.length;R=N(R.line,Math.max(0,Math.round((g-Ba(t.display).left)/fa(t.display))-le))}return R}function Ai(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function nn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)ni&&Si(t.doc,i)<f.viewTo&&In(t);else if(u<=f.viewFrom)ni&&cn(t.doc,u+l)>f.viewFrom?In(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)In(t);else if(i<=f.viewFrom){var g=cs(t,u,u+l,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=l):In(t)}else if(u>=f.viewTo){var S=cs(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):In(t)}else{var T=cs(t,i,i,-1),R=cs(t,u,u+l,1);T&&R?(f.view=f.view.slice(0,T.index).concat(sa(t,T.lineN,R.lineN)).concat(f.view.slice(R.index)),f.viewTo+=l):In(t)}var j=f.externalMeasured;j&&(u<j.lineN?j.lineN+=l:i<j.lineN+j.size&&(f.externalMeasured=null))}function Ci(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[Ai(t,i)];if(g.node!=null){var S=g.changes||(g.changes=[]);be(S,u)==-1&&S.push(u)}}}function In(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function cs(t,i,u,l){var f=Ai(t,i),g,S=t.display.view;if(!ni||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var T=t.display.viewFrom,R=0;R<f;R++)T+=S[R].size;if(T!=i){if(l>0){if(f==S.length-1)return null;g=T+S[f].size-i,f++}else g=T-i;i+=g,u+=g}for(;Si(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Jc(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=sa(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=sa(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Ai(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(sa(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ai(t,u)))),l.viewTo=u}function Il(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Ha(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Xu(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var T=0;T<u.sel.ranges.length;T++)if(!(!i&&T==u.sel.primIndex)){var R=u.sel.ranges[T];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var j=R.empty();if(S){var le=S(t,R);le&&ds(t,le,f)}else(j||t.options.showCursorWhenSelecting)&&ds(t,R.head,f);j||Xc(t,R,g)}}return l}function ds(t,i,u){var l=Yn(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(ee("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var g=ss(t,i,"div",null,null),S=g.right-g.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var T=u.appendChild(ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));T.style.display="",T.style.left=l.other.left+"px",T.style.top=l.other.top+"px",T.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ps(t,i){return t.top-i.top||t.left-i.left}function Xc(t,i,u){var l=t.display,f=t.doc,g=document.createDocumentFragment(),S=Ba(t.display),T=S.left,R=Math.max(l.sizerWidth,la(t)-l.sizer.offsetLeft)-S.right,j=f.direction=="ltr";function le(Je,rt,gt,ct){rt<0&&(rt=0),rt=Math.round(rt),ct=Math.round(ct),g.appendChild(ee("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
18
+ top: `+rt+"px; width: "+(gt==null?R-Je:gt)+`px;
19
+ height: `+(ct-rt)+"px"))}function de(Je,rt,gt){var ct=lt(f,Je),Dt=ct.text.length,dr,zr;function Sr(Nr,hn){return ss(t,N(Je,Nr),"div",ct,hn)}function An(Nr,hn,M){var Bt=Ju(t,ct,null,Nr),dt=hn=="ltr"==(M=="after")?"left":"right",mr=M=="after"?Bt.begin:Bt.end-(/\s/.test(ct.text.charAt(Bt.end-1))?2:1);return Sr(mr,dt)[dt]}var Gt=ot(ct,f.direction);return Ft(Gt,rt||0,gt==null?Dt:gt,function(Nr,hn,M,Bt){var dt=M=="ltr",mr=Sr(Nr,dt?"left":"right"),Fr=Sr(hn-1,dt?"right":"left"),Sa=rt==null&&Nr==0,Ri=gt==null&&hn==Dt,Xr=Bt==0,Qn=!Gt||Bt==Gt.length-1;if(Fr.top-mr.top<=3){var Dr=(j?Sa:Ri)&&Xr,ro=(j?Ri:Sa)&&Qn,Mi=Dr?T:(dt?mr:Fr).left,Zi=ro?R:(dt?Fr:mr).right;le(Mi,mr.top,Zi-Mi,mr.bottom)}else{var qi,Qr,no,Ks;dt?(qi=j&&Sa&&Xr?T:mr.left,Qr=j?R:An(Nr,M,"before"),no=j?T:An(hn,M,"after"),Ks=j&&Ri&&Qn?R:Fr.right):(qi=j?An(Nr,M,"before"):T,Qr=!j&&Sa&&Xr?R:mr.right,no=!j&&Ri&&Qn?T:Fr.left,Ks=j?An(hn,M,"after"):R),le(qi,mr.top,Qr-qi,mr.bottom),mr.bottom<Fr.top&&le(T,mr.bottom,null,Fr.top),le(no,Fr.top,Ks-no,Fr.bottom)}(!dr||ps(mr,dr)<0)&&(dr=mr),ps(Fr,dr)<0&&(dr=Fr),(!zr||ps(mr,zr)<0)&&(zr=mr),ps(Fr,zr)<0&&(zr=Fr)}),{start:dr,end:zr}}var Ae=i.from(),ye=i.to();if(Ae.line==ye.line)de(Ae.line,Ae.ch,ye.ch);else{var Ie=lt(f,Ae.line),Ne=lt(f,ye.line),He=Mn(Ie)==Mn(Ne),Ye=de(Ae.line,Ae.ch,He?Ie.text.length+1:null).end,Qe=de(ye.line,He?0:null,ye.ch).start;He&&(Ye.top<Qe.top-2?(le(Ye.right,Ye.top,null,Ye.bottom),le(T,Qe.top,Qe.left,Qe.bottom)):le(Ye.right,Ye.top,Qe.left-Ye.right,Ye.bottom)),Ye.bottom<Qe.top&&le(T,Ye.bottom,null,Qe.top)}u.appendChild(g)}function hs(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||bn(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||vs(t))}function Fl(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&bn(t))},100)}function vs(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,je(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),hs(t))}function bn(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,H(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function gs(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,g=0,S=0;S<i.view.length;S++){var T=i.view[S],R=t.options.lineWrapping,j=void 0,le=0;if(!T.hidden){if(f+=T.line.height,O&&k<8){var de=T.node.offsetTop+T.node.offsetHeight;j=de-u,u=de}else{var Ae=T.node.getBoundingClientRect();j=Ae.bottom-Ae.top,!R&&T.text.firstChild&&(le=T.text.firstChild.getBoundingClientRect().right-Ae.left-1)}var ye=T.line.height-j;if((ye>.005||ye<-.005)&&(f<l&&(g-=ye),Rn(T.line,j),ms(T.line),T.rest))for(var Ie=0;Ie<T.rest.length;Ie++)ms(T.rest[Ie]);if(le>t.display.sizerWidth){var Ne=Math.ceil(le/fa(t.display));Ne>t.display.maxLineLength&&(t.display.maxLineLength=Ne,t.display.maxLine=T.line,t.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function ms(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function ys(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-Da(t));var f=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,g=ti(i,l),S=ti(i,f);if(u&&u.ensure){var T=u.ensure.from.line,R=u.ensure.to.line;T<g?(g=T,S=ti(i,wi(lt(i,T))+t.wrapper.clientHeight)):Math.min(R,i.lastLine())>=S&&(g=ti(i,wi(lt(i,R))-t.wrapper.clientHeight),S=R)}return{from:g,to:Math.max(S,g+1)}}function Qc(t,i){if(!st(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),f=null,g=u.wrapper.ownerDocument;if(i.top+l.top<0?f=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(f=!1),f!=null&&!P){var S=ee("div","\u200B",null,`position: absolute;
20
20
  top: `+(i.top-u.viewOffset-Da(t.display))+`px;
21
21
  height: `+(i.bottom-i.top+oi(t)+u.barHeight)+`px;
22
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Zc(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?B(i.line,i.ch+1,"before"):i,i=i.ch?B(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var S=!1,T=Yn(t,i),M=!u||u==i?T:Yn(t,u);f={left:Math.min(T.left,M.left),top:Math.min(T.top,M.top)-l,right:Math.max(T.left,M.left),bottom:Math.max(T.bottom,M.bottom)+l};var j=Rl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(j.scrollTop!=null&&(yo(t,j.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),j.scrollLeft!=null&&(ca(t,j.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function kl(t,i){var u=Rl(t,i);u.scrollTop!=null&&yo(t,u.scrollTop),u.scrollLeft!=null&&ca(t,u.scrollLeft)}function Rl(t,i){var u=t.display,l=ua(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,g=bl(t),S={};i.bottom-i.top>g&&(i.bottom=i.top+g);var T=t.doc.height+yl(u),M=i.top<l,j=i.bottom>T-l;if(i.top<f)S.scrollTop=M?0:i.top;else if(i.bottom>f+g){var le=Math.min(i.top,(j?T:i.bottom)-g);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,we=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,ye=la(t)-u.gutters.offsetWidth,Ie=i.right-i.left>ye;return Ie&&(i.right=i.left+ye),i.left<10?S.scrollLeft=0:i.left<we?S.scrollLeft=Math.max(0,i.left+de-(Ie?0:10)):i.right>ye+we-3&&(S.scrollLeft=i.right+(Ie?0:10)-ye),S}function Ml(t,i){i!=null&&(bs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function za(t){bs(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function mo(t,i,u){(i!=null||u!=null)&&bs(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function qc(t,i){bs(t),t.curOp.scrollToPos=i}function bs(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Yu(t,i.from),l=Yu(t,i.to);Zu(t,u,l,i.margin)}}function Zu(t,i,u,l){var f=Rl(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});mo(t,f.scrollLeft,f.scrollTop)}function yo(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||Dl(t,{top:i}),qu(t,i,!0),d&&Dl(t),So(t,100))}function qu(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ca(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,jl(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function bo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+yl(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+oi(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var da=function(t,i,u){this.cm=u;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),ce(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ce(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};da.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var g=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},da.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},da.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},da.prototype.zeroWidthHack=function(){var t=F&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Oe,this.disableVert=new Oe},da.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),g=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);g!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},da.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var xo=function(){};xo.prototype.update=function(){return{bottom:0,right:0}},xo.prototype.setScrollLeft=function(){},xo.prototype.setScrollTop=function(){},xo.prototype.clear=function(){};function Ga(t,i){i||(i=bo(t));var u=t.display.barWidth,l=t.display.barHeight;_u(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&gs(t),_u(t,bo(t)),u=t.display.barWidth,l=t.display.barHeight}function _u(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Ll={native:da,null:xo};function ef(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ll[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ce(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ca(t,i):yo(t,i)},t),t.display.scrollbars.addClass&&je(t.display.wrapper,t.display.scrollbars.addClass)}var tf=0;function si(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++tf,markArrays:null},Dc(t.curOp)}function $i(t){var i=t.curOp;i&&jc(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;_c(u)})}function _c(t){for(var i=t.ops,u=0;u<i.length;u++)ed(i[u]);for(var l=0;l<i.length;l++)td(i[l]);for(var f=0;f<i.length;f++)pa(i[f]);for(var g=0;g<i.length;g++)rd(i[g]);for(var S=0;S<i.length;S++)Xn(i[S])}function ed(t){var i=t.cm,u=i.display;id(i),t.updateMaxLine&&is(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new xs(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function td(t){t.updatedDisplay=t.mustUpdate&&$a(t.cm,t.update)}function pa(t){var i=t.cm,u=i.display;t.updatedDisplay&&gs(i),t.barMeasure=bo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=zu(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+oi(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-la(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function rd(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ca(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Ee(et(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Ga(i,t.barMeasure),t.updatedDisplay&&Bl(i,t.barMeasure),t.selectionChanged&&hs(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&Qu(t.cm)}function Xn(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&Ss(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&qu(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ca(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Zc(i,ut(l,t.scrollToPos.from),ut(l,t.scrollToPos.to),t.scrollToPos.margin);Qc(i,f)}var g=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(g)for(var T=0;T<g.length;++T)g[T].lines.length||Ke(g[T],"hide");if(S)for(var M=0;M<S.length;++M)S[M].lines.length&&Ke(S[M],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function xn(t,i){if(t.curOp)return i();si(t);try{return i()}finally{$i(t)}}function Hr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);si(t);try{return i.apply(t,arguments)}finally{$i(t)}}}function Pr(t){return function(){if(this.curOp)return t.apply(this,arguments);si(this);try{return t.apply(this,arguments)}finally{$i(this)}}}function Ir(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);si(i);try{return t.apply(this,arguments)}finally{$i(i)}}}function So(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Tt(nd,t))}function nd(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=Ia(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(g){if(l.line>=t.display.viewFrom){var S=g.styles,T=g.text.length>t.options.maxHighlightLength?kn(i.mode,l.state):null,M=al(t,g,l,!0);T&&(l.state=T),g.styles=M.styles;var j=g.styleClasses,le=M.classes;le?g.styleClasses=le:j&&(g.styleClasses=null);for(var de=!S||S.length!=g.styles.length||j!=le&&(!j||!le||j.bgClass!=le.bgClass||j.textClass!=le.textClass),we=0;!de&&we<S.length;++we)de=S[we]!=g.styles[we];de&&f.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=t.options.maxHighlightLength&&fo(t,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return So(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&xn(t,function(){for(var g=0;g<f.length;g++)Ci(t,f[g],"text")})}}var xs=function(t,i,u){var l=t.display;this.viewport=i,this.visible=ys(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=la(t),this.force=u,this.dims=Tl(t),this.events=[]};xs.prototype.signal=function(t,i){kt(t,i)&&this.events.push(arguments)},xs.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function id(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=oi(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=oi(t)+"px",i.scrollbarsClipped=!0)}function ad(t){if(t.hasFocus())return null;var i=Ee(et(t));if(!i||!ge(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=at(t).getSelection();l.anchorNode&&l.extend&&ge(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Nl(t){if(!(!t||!t.activeElt||t.activeElt==Ee(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ge(document.body,t.anchorNode)&&ge(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function $a(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return In(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Il(t)==0)return!1;As(t)&&(In(t),i.dims=Tl(t));var f=l.first+l.size,g=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<g&&g-u.viewFrom<20&&(g=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),ni&&(g=Si(t.doc,g),S=cn(t.doc,S));var T=g!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;Jc(t,g,S),u.viewOffset=wi(lt(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var M=Il(t);if(!T&&M==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var j=ad(t);return M>4&&(u.lineDiv.style.display="none"),od(t,u.updateLineNumbers,i.dims),M>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Nl(j),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,T&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,So(t,400)),u.updateLineNumbers=null,!0}function Ss(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==la(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+yl(t.display)-bl(t),u.top)}),i.visible=ys(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=ys(t.display,t.doc,u));if(!$a(t,i))break;gs(t);var f=bo(t);Ha(t),Ga(t,f),Bl(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Dl(t,i){var u=new xs(t,i);if($a(t,u)){gs(t),Ss(t,u);var l=bo(t);Ha(t),Ga(t,l),Bl(t,l),u.finish()}}function od(t,i,u){var l=t.display,f=t.options.lineNumbers,g=l.lineDiv,S=g.firstChild;function T(Ie){var Ne=Ie.nextSibling;return U&&F&&t.display.currentWheelTarget==Ie?Ie.style.display="none":Ie.parentNode.removeChild(Ie),Ne}for(var M=l.view,j=l.viewFrom,le=0;le<M.length;le++){var de=M[le];if(!de.hidden)if(!de.node||de.node.parentNode!=g){var we=Wc(t,de,j,u);g.insertBefore(we,S)}else{for(;S!=de.node;)S=T(S);var ye=f&&i!=null&&i<=j&&de.lineNumber;de.changes&&(be(de.changes,"gutter")>-1&&(ye=!1),ju(t,de,j,u)),ye&&(fe(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Pa(t.options,j)))),S=de.node.nextSibling}j+=de.size}for(;S;)S=T(S)}function ws(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Wr(t,"gutterChanged",t)}function Bl(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+oi(t)+"px"}function jl(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=Pl(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,g=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=g),u[S].gutterBackground&&(u[S].gutterBackground.style.left=g));var T=u[S].alignable;if(T)for(var M=0;M<T.length;M++)T[M].style.left=g}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function As(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Pa(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(_("div",[_("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,S=f.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",ws(t.display),!0}return!1}function Cs(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var g=t[f],S=null;if(typeof g!="string"&&(S=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:g,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function rf(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],g=f.className,S=f.style,T=i.appendChild(_("div",null,"CodeMirror-gutter "+g));S&&(T.style.cssText=S),g=="CodeMirror-linenumbers"&&(t.lineGutter=T,T.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",ws(t)}function wo(t){rf(t.display),nn(t),jl(t)}function nf(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=Q("div",null,"CodeMirror-code"),f.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=_("div",null,"CodeMirror-cursors"),f.measure=_("div",null,"CodeMirror-measure"),f.lineMeasure=_("div",null,"CodeMirror-measure"),f.lineSpace=Q("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var g=Q("div",[f.lineSpace],"CodeMirror-lines");f.mover=_("div",[g],null,"position: relative"),f.sizer=_("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=_("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),f.gutters=_("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=_("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=_("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),re&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),O&&k<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!U&&!(d&&C)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Cs(l.gutters,l.lineNumbers),rf(f),u.init(f)}var Ao=0,Ei=null;O?Ei=-.53:d?Ei=15:re?Ei=-.7:ie&&(Ei=-1/3);function Vl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function af(t){var i=Vl(t);return i.x*=Ei,i.y*=Ei,i}function of(t,i){re&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Vl(i),l=u.x,f=u.y,g=Ei;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,g=1);var S=t.display,T=S.scroller,M=T.scrollWidth>T.clientWidth,j=T.scrollHeight>T.clientHeight;if(!!(l&&M||f&&j)){if(f&&F&&U){e:for(var le=i.target,de=S.view;le!=T;le=le.parentNode)for(var we=0;we<de.length;we++)if(de[we].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&g!=null){f&&j&&yo(t,Math.max(0,T.scrollTop+f*g)),ca(t,Math.max(0,T.scrollLeft+l*g)),(!f||f&&j)&&Nt(i),S.wheelStartX=null;return}if(f&&g!=null){var ye=f*g,Ie=t.doc.scrollTop,Ne=Ie+S.wrapper.clientHeight;ye<0?Ie=Math.max(0,Ie+ye-50):Ne=Math.min(t.doc.height,Ne+ye+50),Dl(t,{top:Ie,bottom:Ne})}Ao<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=T.scrollLeft,S.wheelStartY=T.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var He=T.scrollLeft-S.wheelStartX,Ye=T.scrollTop-S.wheelStartY,Qe=Ye&&S.wheelDY&&Ye/S.wheelDY||He&&S.wheelDX&&He/S.wheelDX;S.wheelStartX=S.wheelStartY=null,Qe&&(Ei=(Ei*Ao+Qe)/(Ao+1),++Ao)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var Sn=function(t,i){this.ranges=t,this.primIndex=i};Sn.prototype.primary=function(){return this.ranges[this.primIndex]},Sn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Me(u.anchor,l.anchor)||!Me(u.head,l.head))return!1}return!0},Sn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new rr(We(this.ranges[i].anchor),We(this.ranges[i].head));return new Sn(t,this.primIndex)},Sn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Sn.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(se(i,l.from())>=0&&se(t,l.to())<=0)return u}return-1};var rr=function(t,i){this.anchor=t,this.head=i};rr.prototype.from=function(){return Vt(this.anchor,this.head)},rr.prototype.to=function(){return It(this.anchor,this.head)},rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ln(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(we,ye){return se(we.from(),ye.from())}),u=be(i,f);for(var g=1;g<i.length;g++){var S=i[g],T=i[g-1],M=se(T.to(),S.from());if(l&&!S.empty()?M>0:M>=0){var j=Vt(T.from(),S.from()),le=It(T.to(),S.to()),de=T.empty()?S.from()==S.head:T.from()==T.head;g<=u&&--u,i.splice(--g,2,new rr(de?le:j,de?j:le))}}return new Sn(i,u)}function Ki(t,i){return new Sn([new rr(t,i||t)],0)}function Yi(t){return t.text?B(t.from.line+t.text.length-1,nt(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function sf(t,i){if(se(t,i.from)<0)return t;if(se(t,i.to)<=0)return Yi(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=Yi(i).ch-i.to.ch),B(u,l)}function Oi(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new rr(sf(f.anchor,i),sf(f.head,i)))}return Ln(t.cm,u,t.sel.primIndex)}function lf(t,i,u){return t.line==i.line?B(u.line,t.ch-i.ch+u.ch):B(u.line+(t.line-i.line),t.ch)}function sd(t,i,u){for(var l=[],f=B(t.first,0),g=f,S=0;S<i.length;S++){var T=i[S],M=lf(T.from,f,g),j=lf(Yi(T),f,g);if(f=T.to,g=j,u=="around"){var le=t.sel.ranges[S],de=se(le.head,le.anchor)<0;l[S]=new rr(de?j:M,de?M:j)}else l[S]=new rr(M,M)}return new Sn(l,t.sel.primIndex)}function Ul(t){t.doc.mode=fn(t.options,t.doc.modeOption),Co(t)}function Co(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,So(t,100),t.state.modeGen++,t.curOp&&nn(t)}function Eo(t,i){return i.from.ch==0&&i.to.ch==0&&nt(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Oo(t,i,u,l){function f(Qe){return u?u[Qe]:null}function g(Qe,Je,rt){Mu(Qe,Je,rt,l),Wr(Qe,"change",Qe,i)}function S(Qe,Je){for(var rt=[],gt=Qe;gt<Je;++gt)rt.push(new Ra(j[gt],f(gt),l));return rt}var T=i.from,M=i.to,j=i.text,le=lt(t,T.line),de=lt(t,M.line),we=nt(j),ye=f(j.length-1),Ie=M.line-T.line;if(i.full)t.insert(0,S(0,j.length)),t.remove(j.length,t.size-j.length);else if(Eo(t,i)){var Ne=S(0,j.length-1);g(de,de.text,ye),Ie&&t.remove(T.line,Ie),Ne.length&&t.insert(T.line,Ne)}else if(le==de)if(j.length==1)g(le,le.text.slice(0,T.ch)+we+le.text.slice(M.ch),ye);else{var He=S(1,j.length-1);He.push(new Ra(we+le.text.slice(M.ch),ye,l)),g(le,le.text.slice(0,T.ch)+j[0],f(0)),t.insert(T.line+1,He)}else if(j.length==1)g(le,le.text.slice(0,T.ch)+j[0]+de.text.slice(M.ch),f(0)),t.remove(T.line+1,Ie);else{g(le,le.text.slice(0,T.ch)+j[0],f(0)),g(de,we+de.text.slice(M.ch),ye);var Ye=S(1,j.length-1);Ie>1&&t.remove(T.line+1,Ie-1),t.insert(T.line+1,Ye)}Wr(t,"change",t,i)}function Lr(t,i,u){function l(f,g,S){if(f.linked)for(var T=0;T<f.linked.length;++T){var M=f.linked[T];if(M.doc!=g){var j=S&&M.sharedHist;u&&!j||(i(M.doc,j),l(M.doc,f,j))}}}l(t,null,!0)}function Es(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,fs(t),Ul(t),li(t),t.options.direction=i.direction,t.options.lineWrapping||is(t),t.options.mode=i.modeOption,nn(t)}function li(t){(t.doc.direction=="rtl"?je:H)(t.display.lineDiv,"CodeMirror-rtl")}function uf(t){xn(t,function(){li(t),nn(t)})}function To(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function ff(t,i){var u={from:We(i.from),to:Yi(i),text:bi(t,i.from,i.to)};return df(t,u,i.from.line,i.to.line+1),Lr(t,function(l){return df(l,u,i.from.line,i.to.line+1)},!0),u}function Os(t){for(;t.length;){var i=nt(t);if(i.ranges)t.pop();else break}}function cf(t,i){if(i)return Os(t.done),nt(t.done);if(t.done.length&&!nt(t.done).ranges)return nt(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),nt(t.done)}function Wl(t,i,u,l){var f=t.history;f.undone.length=0;var g=+new Date,S,T;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>g-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=cf(f,f.lastOp==l)))T=nt(S.changes),se(i.from,i.to)==0&&se(i.from,T.to)==0?T.to=Yi(i):S.changes.push(ff(t,i));else{var M=nt(f.done);for((!M||!M.ranges)&&Ti(t.sel,f.done),S={changes:[ff(t,i)],generation:f.generation},f.done.push(S);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=g,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,T||Ke(t,"historyAdded")}function Er(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ld(t,i,u,l){var f=t.history,g=l&&l.origin;u==f.lastSelOp||g&&f.lastSelOrigin==g&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==g||Er(t,g,nt(f.done),i))?f.done[f.done.length-1]=i:Ti(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=u,l&&l.clearRedo!==!1&&Os(f.undone)}function Ti(t,i){var u=nt(i);u&&u.ranges&&u.equals(t)||i.push(t)}function df(t,i,u,l){var f=i["spans_"+t.id],g=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[g]=S.markedSpans),++g})}function Po(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function ha(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(Po(u[f]));return l}function Pi(t,i){var u=ha(t,i),l=co(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var g=u[f],S=l[f];if(g&&S){e:for(var T=0;T<S.length;++T){for(var M=S[T],j=0;j<g.length;++j)if(g[j].marker==M.marker)continue e;g.push(M)}}else S&&(u[f]=S)}return u}function Ka(t,i,u){for(var l=[],f=0;f<t.length;++f){var g=t[f];if(g.ranges){l.push(u?Sn.prototype.deepCopy.call(g):g);continue}var S=g.changes,T=[];l.push({changes:T});for(var M=0;M<S.length;++M){var j=S[M],le=void 0;if(T.push({from:j.from,to:j.to,text:j.text}),i)for(var de in j)(le=de.match(/^spans_(\d+)$/))&&be(i,Number(le[1]))>-1&&(nt(T)[de]=j[de],delete j[de])}}return l}function Ya(t,i,u,l){if(l){var f=t.anchor;if(u){var g=se(i,f)<0;g!=se(u,f)<0?(f=i,i=u):g!=se(i,u)<0&&(i=u)}return new rr(f,i)}else return new rr(u||i,i)}function Io(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Jr(t,new Sn([Ya(t.sel.primary(),i,u,f)],0),l)}function Ja(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),g=0;g<t.sel.ranges.length;g++)l[g]=Ya(t.sel.ranges[g],i[g],null,f);var S=Ln(t.cm,l,t.sel.primIndex);Jr(t,S,u)}function Fo(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Jr(t,Ln(t.cm,f,t.sel.primIndex),l)}function pf(t,i,u,l){Jr(t,Ki(i,u),l)}function ud(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var g=0;g<f.length;g++)this.ranges[g]=new rr(ut(t,f[g].anchor),ut(t,f[g].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?Ln(t.cm,l.ranges,l.ranges.length-1):i}function hf(t,i,u){var l=t.history.done,f=nt(l);f&&f.ranges?(l[l.length-1]=i,Ts(t,i,u)):Jr(t,i,u)}function Jr(t,i,u){Ts(t,i,u),ld(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Ts(t,i,u){(kt(t,"beforeSelectionChange")||t.cm&&kt(t.cm,"beforeSelectionChange"))&&(i=ud(t,i,u));var l=u&&u.bias||(se(i.primary().head,t.sel.primary().head)<0?-1:1);vf(t,Ps(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&za(t.cm)}function vf(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,xt(t.cm)),Wr(t,"cursorActivity",t))}function gf(t){vf(t,Ps(t,t.sel,null,!1))}function Ps(t,i,u,l){for(var f,g=0;g<i.ranges.length;g++){var S=i.ranges[g],T=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[g],M=Is(t,S.anchor,T&&T.anchor,u,l),j=S.head==S.anchor?M:Is(t,S.head,T&&T.head,u,l);(f||M!=S.anchor||j!=S.head)&&(f||(f=i.ranges.slice(0,g)),f[g]=new rr(M,j))}return f?Ln(t.cm,f,i.primIndex):i}function Ji(t,i,u,l,f){var g=lt(t,i.line);if(g.markedSpans)for(var S=0;S<g.markedSpans.length;++S){var T=g.markedSpans[S],M=T.marker,j="selectLeft"in M?!M.selectLeft:M.inclusiveLeft,le="selectRight"in M?!M.selectRight:M.inclusiveRight;if((T.from==null||(j?T.from<=i.ch:T.from<i.ch))&&(T.to==null||(le?T.to>=i.ch:T.to>i.ch))){if(f&&(Ke(M,"beforeCursorEnter"),M.explicitlyCleared))if(g.markedSpans){--S;continue}else break;if(!M.atomic)continue;if(u){var de=M.find(l<0?1:-1),we=void 0;if((l<0?le:j)&&(de=fd(t,de,-l,de&&de.line==i.line?g:null)),de&&de.line==i.line&&(we=se(de,u))&&(l<0?we<0:we>0))return Ji(t,de,i,l,f)}var ye=M.find(l<0?-1:1);return(l<0?j:le)&&(ye=fd(t,ye,l,ye.line==i.line?g:null)),ye?Ji(t,ye,i,l,f):null}}return i}function Is(t,i,u,l,f){var g=l||1,S=Ji(t,i,u,g,f)||!f&&Ji(t,i,u,g,!0)||Ji(t,i,u,-g,f)||!f&&Ji(t,i,u,-g,!0);return S||(t.cantEdit=!0,B(t.first,0))}function fd(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ut(t,B(i.line-1)):null:u>0&&i.ch==(l||lt(t,i.line)).text.length?i.line<t.first+t.size-1?B(i.line+1,0):null:new B(i.line,i.ch+u)}function mf(t){t.setSelection(B(t.firstLine(),0),B(t.lastLine()),tt)}function Hl(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,g,S,T){f&&(l.from=ut(t,f)),g&&(l.to=ut(t,g)),S&&(l.text=S),T!==void 0&&(l.origin=T)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Jt(t,i,u){if(t.cm){if(!t.cm.curOp)return Hr(t.cm,Jt)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((kt(t,"beforeChange")||t.cm&&kt(t.cm,"beforeChange"))&&(i=Hl(t,i,!0),!i))){var l=Iu&&!u&&ts(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)yf(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else yf(t,i)}}function yf(t,i){if(!(i.text.length==1&&i.text[0]==""&&se(i.from,i.to)==0)){var u=Oi(t,i);Wl(t,i,u,t.cm?t.cm.curOp.id:NaN),Xi(t,i,u,co(t,i));var l=[];Lr(t,function(f,g){!g&&be(l,f.history)==-1&&(wf(f.history,i),l.push(f.history)),Xi(f,i,null,co(f,i))})}}function ko(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,g,S=t.sel,T=i=="undo"?f.done:f.undone,M=i=="undo"?f.undone:f.done,j=0;j<T.length&&(g=T[j],!(u?g.ranges&&!g.equals(t.sel):!g.ranges));j++);if(j!=T.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=T.pop(),g.ranges){if(Ti(g,M),u&&!g.equals(t.sel)){Jr(t,g,{clearRedo:!1});return}S=g}else if(l){T.push(g);return}else break;var le=[];Ti(S,M),M.push({changes:le,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var de=kt(t,"beforeChange")||t.cm&&kt(t.cm,"beforeChange"),we=function(Ne){var He=g.changes[Ne];if(He.origin=i,de&&!Hl(t,He,!1))return T.length=0,{};le.push(ff(t,He));var Ye=Ne?Oi(t,He):nt(T);Xi(t,He,Ye,Pi(t,He)),!Ne&&t.cm&&t.cm.scrollIntoView({from:He.from,to:Yi(He)});var Qe=[];Lr(t,function(Je,rt){!rt&&be(Qe,Je.history)==-1&&(wf(Je.history,He),Qe.push(Je.history)),Xi(Je,He,null,Pi(Je,He))})},ye=g.changes.length-1;ye>=0;--ye){var Ie=we(ye);if(Ie)return Ie.v}}}}function bf(t,i){if(i!=0&&(t.first+=i,t.sel=new Sn(Xe(t.sel.ranges,function(f){return new rr(B(f.anchor.line+i,f.anchor.ch),B(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){nn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Ci(t.cm,l,"gutter")}}function Xi(t,i,u,l){if(t.cm&&!t.cm.curOp)return Hr(t.cm,Xi)(t,i,u,l);if(i.to.line<t.first){bf(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);bf(t,f),i={from:B(t.first,0),to:B(i.to.line+f,i.to.ch),text:[nt(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:B(g,lt(t,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=Oi(t,i)),t.cm?cd(t.cm,i,l):Oo(t,i,l),Ts(t,u,tt),t.cantEdit&&Is(t,B(t.firstLine(),0))&&(t.cantEdit=!1)}}function cd(t,i,u){var l=t.doc,f=t.display,g=i.from,S=i.to,T=!1,M=g.line;t.options.lineWrapping||(M=tr(Mn(lt(l,g.line))),l.iter(M,S.line+1,function(ye){if(ye==f.maxLine)return T=!0,!0})),l.sel.contains(i.from,i.to)>-1&&xt(t),Oo(l,i,u,Wa(t)),t.options.lineWrapping||(l.iter(M,g.line+i.text.length,function(ye){var Ie=ns(ye);Ie>f.maxLineLength&&(f.maxLine=ye,f.maxLineLength=Ie,f.maxLineChanged=!0,T=!1)}),T&&(t.curOp.updateMaxLine=!0)),Pc(l,g.line),So(t,400);var j=i.text.length-(S.line-g.line)-1;i.full?nn(t):g.line==S.line&&i.text.length==1&&!Eo(t.doc,i)?Ci(t,g.line,"text"):nn(t,g.line,S.line+1,j);var le=kt(t,"changes"),de=kt(t,"change");if(de||le){var we={from:g,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Wr(t,"change",t,we),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(we)}t.display.selForContextMenu=null}function Xa(t,i,u,l,f){var g;l||(l=u),se(l,u)<0&&(g=[l,u],u=g[0],l=g[1]),typeof i=="string"&&(i=t.splitLines(i)),Jt(t,{from:u,to:l,text:i,origin:f})}function xf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function Sf(t,i,u,l){for(var f=0;f<t.length;++f){var g=t[f],S=!0;if(g.ranges){g.copied||(g=t[f]=g.deepCopy(),g.copied=!0);for(var T=0;T<g.ranges.length;T++)xf(g.ranges[T].anchor,i,u,l),xf(g.ranges[T].head,i,u,l);continue}for(var M=0;M<g.changes.length;++M){var j=g.changes[M];if(u<j.from.line)j.from=B(j.from.line+l,j.from.ch),j.to=B(j.to.line+l,j.to.ch);else if(i<=j.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function wf(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Sf(t.done,u,l,f),Sf(t.undone,u,l,f)}function Ro(t,i,u,l){var f=i,g=i;return typeof i=="number"?g=lt(t,ir(t,i)):f=tr(i),f==null?null:(l(g,f)&&t.cm&&Ci(t.cm,f,u),g)}function Qa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Qa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Lu(f),Wr(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function va(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}va.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var g=Math.min(i,f-t),S=l.height;if(l.removeInner(t,g),this.height-=S-l.height,f==g&&(this.children.splice(u--,1),l.parent=null),(i-=g)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Qa))){var T=[];this.collapse(T),this.children=[new Qa(T)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<=g){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,T=S;T<f.lines.length;){var M=new Qa(f.lines.slice(T,T+=25));f.height-=M.height,this.children.splice(++l,0,M),M.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new va(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=be(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new va(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<g){var S=Math.min(i,g-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=g}}};var ga=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};ga.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=tr(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var g=Na(this);Rn(u,Math.max(0,u.height-g)),t&&(xn(t,function(){Af(t,u,-g),Ci(t,l,"widget")}),Wr(t,"lineWidgetCleared",t,this,l))}},ga.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Na(this)-i;!f||(Pn(this.doc,l)||Rn(l,l.height+f),u&&xn(u,function(){u.curOp.forceUpdate=!0,Af(u,l,f),Wr(u,"lineWidgetChanged",u,t,tr(l))}))},yr(ga);function Af(t,i,u){wi(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Ml(t,u)}function dd(t,i,u,l){var f=new ga(t,u,l),g=t.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),Ro(t,i,"widget",function(S){var T=S.widgets||(S.widgets=[]);if(f.insertAt==null?T.push(f):T.splice(Math.min(T.length,Math.max(0,f.insertAt)),0,f),f.line=S,g&&!Pn(t,S)){var M=wi(S)<t.scrollTop;Rn(S,S.height+Na(f)),M&&Ml(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&Wr(g,"lineWidgetAdded",g,f,typeof i=="number"?i:tr(i)),f}var Cf=0,Ii=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Cf};Ii.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&si(t),kt(this,"clear")){var u=this.find();u&&Wr(this,"clear",u.from,u.to)}for(var l=null,f=null,g=0;g<this.lines.length;++g){var S=this.lines[g],T=Fa(S.markedSpans,this);t&&!this.collapsed?Ci(t,tr(S),"text"):t&&(T.to!=null&&(f=tr(S)),T.from!=null&&(l=tr(S))),S.markedSpans=kc(S.markedSpans,T),T.from==null&&this.collapsed&&!Pn(this.doc,S)&&t&&Rn(S,ua(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var M=0;M<this.lines.length;++M){var j=Mn(this.lines[M]),le=ns(j);le>t.display.maxLineLength&&(t.display.maxLine=j,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&nn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&gf(t.doc)),t&&Wr(t,"markerCleared",t,this,l,f),i&&$i(t),this.parent&&this.parent.clear()}},Ii.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var g=this.lines[f],S=Fa(g.markedSpans,this);if(S.from!=null&&(u=B(i?g:tr(g),S.from),t==-1))return u;if(S.to!=null&&(l=B(i?g:tr(g),S.to),t==1))return l}return u&&{from:u,to:l}},Ii.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||xn(l,function(){var f=i.line,g=tr(i.line),S=xl(l,g);if(S&&($u(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Pn(u.doc,f)&&u.height!=null){var T=u.height;u.height=null;var M=Na(u)-T;M&&Rn(f,f.height+M)}Wr(l,"markerChanged",l,t)})},Ii.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||be(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ii.prototype.detachLine=function(t){if(this.lines.splice(be(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(Ii);function ui(t,i,u,l,f){if(l&&l.shared)return ma(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return Hr(t.cm,ui)(t,i,u,l,f);var g=new Ii(t,f),S=se(i,u);if(l&&St(l,g,!1),S>0||S==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=Q("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(dl(t,i.line,i,u,g)||i.line!=u.line&&dl(t,u.line,i,u,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fc()}g.addToHistory&&Wl(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var T=i.line,M=t.cm,j;if(t.iter(T,u.line+1,function(de){M&&g.collapsed&&!M.options.lineWrapping&&Mn(de)==M.display.maxLine&&(j=!0),g.collapsed&&T!=i.line&&Rn(de,0),Rc(de,new es(g,T==i.line?i.ch:null,T==u.line?u.ch:null),t.cm&&t.cm.curOp),++T}),g.collapsed&&t.iter(i.line,u.line+1,function(de){Pn(t,de)&&Rn(de,0)}),g.clearOnEnter&&ce(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Ic(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++Cf,g.atomic=!0),M){if(j&&(M.curOp.updateMaxLine=!0),g.collapsed)nn(M,i.line,u.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var le=i.line;le<=u.line;le++)Ci(M,le,"text");g.atomic&&gf(M.doc),Wr(M,"markerAdded",M,g)}return g}var Za=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Za.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Wr(this,"clear")}},Za.prototype.find=function(t,i){return this.primary.find(t,i)},yr(Za);function ma(t,i,u,l,f){l=St(l),l.shared=!1;var g=[ui(t,i,u,l,f)],S=g[0],T=l.widgetNode;return Lr(t,function(M){T&&(l.widgetNode=T.cloneNode(!0)),g.push(ui(M,ut(M,i),ut(M,u),l,f));for(var j=0;j<M.linked.length;++j)if(M.linked[j].isParent)return;S=nt(g)}),new Za(g,S)}function Ef(t){return t.findMarks(B(t.first,0),t.clipPos(B(t.lastLine())),function(i){return i.parent})}function Of(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),g=t.clipPos(f.from),S=t.clipPos(f.to);if(se(g,S)){var T=ui(t,g,S,l.primary,l.primary.type);l.markers.push(T),T.parent=l}}}function pd(t){for(var i=function(l){var f=t[l],g=[f.primary.doc];Lr(f.primary.doc,function(M){return g.push(M)});for(var S=0;S<f.markers.length;S++){var T=f.markers[S];be(g,T.doc)==-1&&(T.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Tf=0,dn=function(t,i,u,l,f){if(!(this instanceof dn))return new dn(t,i,u,l,f);u==null&&(u=0),va.call(this,[new Qa([new Ra("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var g=B(u,0);this.sel=Ki(g),this.history=new To(null),this.id=++Tf,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Oo(this,{from:g,to:g,text:t}),Jr(this,Ki(g),tt)};dn.prototype=Rr(va.prototype,{constructor:dn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=na(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Ir(function(t){var i=B(this.first,0),u=this.first+this.size-1;Jt(this,{from:i,to:B(u,lt(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&mo(this.cm,0,0),Jr(this,Ki(i),tt)}),replaceRange:function(t,i,u,l){i=ut(this,i),u=u?ut(this,u):i,Xa(this,t,i,u,l)},getRange:function(t,i,u){var l=bi(this,ut(this,t),ut(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(ia(this,t))return lt(this,t)},getLineNumber:function(t){return tr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=lt(this,t)),Mn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ut(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ir(function(t,i,u){pf(this,ut(this,typeof t=="number"?B(t,i||0):t),null,u)}),setSelection:Ir(function(t,i,u){pf(this,ut(this,t),ut(this,i||t),u)}),extendSelection:Ir(function(t,i,u){Io(this,ut(this,t),i&&ut(this,i),u)}),extendSelections:Ir(function(t,i){Ja(this,qo(this,t),i)}),extendSelectionsBy:Ir(function(t,i){var u=Xe(this.sel.ranges,t);Ja(this,qo(this,u),i)}),setSelections:Ir(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new rr(ut(this,t[f].anchor),ut(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Jr(this,Ln(this.cm,l,i),u)}}),addSelection:Ir(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new rr(ut(this,t),ut(this,i||t))),Jr(this,Ln(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=bi(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=bi(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Ir(function(t,i,u){for(var l=[],f=this.sel,g=0;g<f.ranges.length;g++){var S=f.ranges[g];l[g]={from:S.from(),to:S.to(),text:this.splitLines(t[g]),origin:u}}for(var T=i&&i!="end"&&sd(this,l,i),M=l.length-1;M>=0;M--)Jt(this,l[M]);T?hf(this,T):this.cm&&za(this.cm)}),undo:Ir(function(){ko(this,"undo")}),redo:Ir(function(){ko(this,"redo")}),undoSelection:Ir(function(){ko(this,"undo",!0)}),redoSelection:Ir(function(){ko(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new To(this.history),Lr(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ka(this.history.done),undone:Ka(this.history.undone)}},setHistory:function(t){var i=this.history=new To(this.history);i.done=Ka(t.done.slice(0),null,!0),i.undone=Ka(t.undone.slice(0),null,!0)},setGutterMarker:Ir(function(t,i,u){return Ro(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&en(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Ir(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&Ro(i,u,"gutter",function(){return u.gutterMarkers[t]=null,en(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!ia(this,t)||(i=t,t=lt(this,t),!t))return null}else if(i=tr(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Ir(function(t,i,u){return Ro(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(J(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Ir(function(t,i,u){return Ro(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[f];if(g)if(u==null)l[f]=null;else{var S=g.match(J(u));if(!S)return!1;var T=S.index+S[0].length;l[f]=g.slice(0,S.index)+(!S.index||T==g.length?"":" ")+g.slice(T)||null}else return!1;return!0})}),addLineWidget:Ir(function(t,i,u){return dd(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return ui(this,ut(this,t),ut(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ut(this,t),ui(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ut(this,t);var i=[],u=lt(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ut(this,t),i=ut(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(g){var S=g.markedSpans;if(S)for(var T=0;T<S.length;T++){var M=S[T];!(M.to!=null&&f==t.line&&t.ch>=M.to||M.from==null&&f!=t.line||M.from!=null&&f==i.line&&M.from>=i.ch)&&(!u||u(M.marker))&&l.push(M.marker.parent||M.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var g=f.text.length+l;if(g>t)return i=t,!0;t-=g,++u}),ut(this,B(u,i))},indexFromPos:function(t){t=ut(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new dn(na(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new dn(na(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Of(l,Ef(this)),l},unlinkDoc:function(t){if(t instanceof gr&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),pd(Ef(this));break}}if(t.history==this.history){var l=[t.id];Lr(t,function(f){return l.push(f.id)},!0),t.history=new To(null),t.history.done=Ka(this.history.done,l),t.history.undone=Ka(this.history.undone,l)}},iterLinkedDocs:function(t){Lr(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Gn(t)},lineSeparator:function(){return this.lineSep||`
23
- `},setDirection:Ir(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&uf(this.cm))})}),dn.prototype.eachLine=dn.prototype.iter;var zl=0;function Fs(t){var i=this;if(Rs(i),!(st(i,t)||ai(i.display,t))){Nt(t),O&&(zl=+new Date);var u=Gi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,g=Array(f),S=0,T=function(){++S==f&&Hr(i,function(){u=ut(i.doc,u);var ye={from:u,to:u,text:i.doc.splitLines(g.filter(function(Ie){return Ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};Jt(i.doc,ye),hf(i.doc,Ki(ut(i.doc,u),ut(i.doc,Yi(ye))))})()},M=function(ye,Ie){if(i.options.allowDropFileTypes&&be(i.options.allowDropFileTypes,ye.type)==-1){T();return}var Ne=new FileReader;Ne.onerror=function(){return T()},Ne.onload=function(){var He=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(He)){T();return}g[Ie]=He,T()},Ne.readAsText(ye)},j=0;j<l.length;j++)M(l[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var le=t.dataTransfer.getData("Text");if(le){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Ts(i.doc,Ki(u,u)),de)for(var we=0;we<de.length;++we)Xa(i.doc,"",de[we].anchor,de[we].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(ye){}}}}function hd(t,i){if(O&&(!t.state.draggingText||+new Date-zl<100)){Ur(i);return}if(!(st(t,i)||ai(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ie)){var u=_("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function ks(t,i){var u=Gi(t,i);if(!!u){var l=document.createDocumentFragment();ds(t,u,l),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),he(t.display.dragCursor,l)}}function Rs(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Pf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var g=0;g<u.length;g++)t(u[g])})}}var If=!1;function vd(){If||(Ff(),If=!0)}function Ff(){var t;ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Pf(kf)},100))}),ce(window,"blur",function(){return Pf(bn)})}function kf(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Qi={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"},Mo=0;Mo<10;Mo++)Qi[Mo+48]=Qi[Mo+96]=String(Mo);for(var Ms=65;Ms<=90;Ms++)Qi[Ms]=String.fromCharCode(Ms);for(var Lo=1;Lo<=12;Lo++)Qi[Lo+111]=Qi[Lo+63235]="F"+Lo;var Fi={};Fi.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"},Fi.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"},Fi.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"},Fi.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"]},Fi.default=F?Fi.macDefault:Fi.pcDefault;function gd(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,g,S=0;S<i.length-1;S++){var T=i[S];if(/^(cmd|meta|m)$/i.test(T))g=!0;else if(/^a(lt)?$/i.test(T))u=!0;else if(/^(c|ctrl|control)$/i.test(T))l=!0;else if(/^s(hift)?$/i.test(T))f=!0;else throw new Error("Unrecognized modifier name: "+T)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),g&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Rf(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Xe(u.split(" "),gd),g=0;g<f.length;g++){var S=void 0,T=void 0;g==f.length-1?(T=f.join(" "),S=l):(T=f.slice(0,g+1).join(" "),S="...");var M=i[T];if(!M)i[T]=S;else if(M!=S)throw new Error("Inconsistent bindings for "+T)}delete t[u]}for(var j in i)t[j]=i[j];return t}function qa(t,i,u,l){i=ki(i);var f=i.call?i.call(t,l):i[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return qa(t,i.fallthrough,u,l);for(var g=0;g<i.fallthrough.length;g++){var S=qa(t,i.fallthrough[g],u,l);if(S)return S}}}function Ls(t){var i=typeof t=="string"?t:Qi[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Gl(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(W?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(W?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Mf(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Qi[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),Gl(u,t,i))}function ki(t){return typeof t=="string"?Fi[t]:t}function wn(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var g=i(u[f]);l.length&&se(g.from,nt(l).to)<=0;){var S=l.pop();if(se(S.from,g.from)<0){g.from=S.from;break}}l.push(g)}xn(t,function(){for(var T=l.length-1;T>=0;T--)Xa(t.doc,"",l[T].from,l[T].to,"+delete");za(t)})}function Ns(t,i,u){var l=Lt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function $l(t,i,u){var l=Ns(t,i.ch,u);return l==null?null:new B(i.line,l,u<0?"after":"before")}function Kl(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var g=ot(u,i.doc.direction);if(g){var S=f<0?nt(g):g[0],T=f<0==(S.level==1),M=T?"after":"before",j;if(S.level>0||i.doc.direction=="rtl"){var le=ja(i,u);j=f<0?u.text.length-1:0;var de=Kn(i,le,j).top;j=wt(function(we){return Kn(i,le,we).top==de},f<0==(S.level==1)?S.from:S.to-1,j),M=="before"&&(j=Ns(u,j,1))}else j=f<0?S.to:S.from;return new B(l,j,M)}}return new B(l,f<0?u.text.length:0,f<0?"before":"after")}function md(t,i,u,l){var f=ot(i,t.doc.direction);if(!f)return $l(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var g=vt(f,u.ch,u.sticky),S=f[g];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return $l(i,u,l);var T=function(Ye,Qe){return Ns(i,Ye instanceof B?Ye.ch:Ye,Qe)},M,j=function(Ye){return t.options.lineWrapping?(M=M||ja(t,i),Ju(t,i,M,Ye)):{begin:0,end:i.text.length}},le=j(u.sticky=="before"?T(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,we=T(u,de?1:-1);if(we!=null&&(de?we<=S.to&&we<=le.end:we>=S.from&&we>=le.begin)){var ye=de?"before":"after";return new B(u.line,we,ye)}}var Ie=function(Ye,Qe,Je){for(var rt=function(dr,zr){return zr?new B(u.line,T(dr,1),"before"):new B(u.line,dr,"after")};Ye>=0&&Ye<f.length;Ye+=Qe){var gt=f[Ye],ct=Qe>0==(gt.level!=1),Dt=ct?Je.begin:T(Je.end,-1);if(gt.from<=Dt&&Dt<gt.to||(Dt=ct?gt.from:T(gt.to,-1),Je.begin<=Dt&&Dt<Je.end))return rt(Dt,ct)}},Ne=Ie(g+l,l,le);if(Ne)return Ne;var He=l>0?le.end:T(le.begin,-1);return He!=null&&!(l>0&&He==i.text.length)&&(Ne=Ie(l>0?0:f.length-1,l,j(He)),Ne)?Ne:null}var _a={selectAll:mf,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),tt)},killLine:function(t){return wn(t,function(i){if(i.empty()){var u=lt(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:B(i.head.line+1,0)}:{from:i.head,to:B(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return wn(t,function(i){return{from:B(i.from().line,0),to:ut(t.doc,B(i.to().line+1,0))}})},delLineLeft:function(t){return wn(t,function(i){return{from:B(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return wn(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return wn(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(B(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(B(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return Lf(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Ds(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return Nf(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},bt)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},bt)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Ds(t,i.head):l},bt)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var g=u[f].from(),S=Le(t.getLine(g.line),g.ch,l);i.push(zt(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return xn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,g=lt(t.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new B(f.line,f.ch-1)),f.ch>0)f=new B(f.line,f.ch+1),t.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),B(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=lt(t.doc,f.line-1).text;S&&(f=new B(f.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),B(f.line-1,S.length-1),f,"+transpose"))}}u.push(new rr(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return xn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);za(t)})},openLine:function(t){return t.replaceSelection(`
24
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Lf(t,i){var u=lt(t.doc,i),l=Mn(u);return l!=u&&(i=tr(l)),Kl(!0,t,l,i,1)}function Nf(t,i){var u=lt(t.doc,i),l=Ru(u);return l!=u&&(i=tr(l)),Kl(!0,t,u,i,-1)}function Ds(t,i){var u=Lf(t,i.line),l=lt(t.doc,u.line),f=ot(l,t.doc.direction);if(!f||f[0].level==0){var g=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=g&&i.ch;return B(u.line,S?0:g,u.sticky)}return u}function No(t,i,u){if(typeof i=="string"&&(i=_a[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=Ge}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function Df(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=qa(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&qa(i,t.options.extraKeys,u,t)||qa(i,t.options.keyMap,u,t)}var yd=new Oe;function eo(t,i,u,l){var f=t.state.keySeq;if(f){if(Ls(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:yd.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),Bf(t,f+" "+i,u,l))return!0}return Bf(t,i,u,l)}function Bf(t,i,u,l){var f=Df(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Wr(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(Nt(u),hs(t)),!!f}function Bs(t,i){var u=Mf(i,!0);return u?i.shiftKey&&!t.state.keySeq?eo(t,"Shift-"+u,i,function(l){return No(t,l,!0)})||eo(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return No(t,l)}):eo(t,u,i,function(l){return No(t,l)}):!1}function Yl(t,i,u){return eo(t,"'"+u+"'",i,function(l){return No(t,l,!0)})}var js=null;function Jl(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Ee(et(i)),!st(i,t))){O&&k<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Bs(i,t);ne&&(js=l?u:null,!l&&u==88&&!Wi&&(F?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!F&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&bd(i)}}function bd(t){var i=t.display.lineDiv;je(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(H(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ce(document,"keyup",u),ce(document,"mouseover",u)}function jf(t){t.keyCode==16&&(this.doc.sel.shift=!1),st(this,t)}function Vs(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(ai(i.display,t)||st(i,t)||t.ctrlKey&&!t.altKey||F&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==js){js=null,Nt(t);return}if(!(ne&&(!t.which||t.which<10)&&Bs(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Yl(i,t,f)||i.display.input.onKeyPress(t))}}}var xd=400,Xl=function(t,i,u){this.time=t,this.pos=i,this.button=u};Xl.prototype.compare=function(t,i,u){return this.time+xd>t&&se(i,this.pos)==0&&u==this.button};var Do,Bo;function Sd(t,i){var u=+new Date;return Bo&&Bo.compare(u,t,i)?(Do=Bo=null,"triple"):Do&&Do.compare(u,t,i)?(Bo=new Xl(u,t,i),Do=null,"double"):(Do=new Xl(u,t,i),Bo=null,"single")}function Vf(t){var i=this,u=i.display;if(!(st(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,ai(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ws(i,t)){var l=Gi(i,t),f=vi(t),g=l?Sd(l,f):"single";at(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Ql(i,f,l,g,t))&&(f==1?l?Uf(i,l,g,t):Kr(t)==u.scroller&&Nt(t):f==2?(l&&Io(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(te?i.display.input.onContextMenu(t):Fl(i)))}}}function Ql(t,i,u,l,f){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,eo(t,Gl(g,f),f,function(S){if(typeof S=="string"&&(S=_a[S]),!S)return!1;var T=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),T=S(t,u)!=Ge}finally{t.state.suppressEdits=!1}return T})}function Us(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var g=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=F?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(F?u.altKey:u.ctrlKey)),f}function Uf(t,i,u,l){O?setTimeout(Tt(Qu,t),0):t.curOp.focus=Ee(et(t));var f=Us(t,u,l),g=t.doc.sel,S;t.options.dragDrop&&tn&&!t.isReadOnly()&&u=="single"&&(S=g.contains(i))>-1&&(se((S=g.ranges[S]).from(),i)<0||i.xRel>0)&&(se(S.to(),i)>0||i.xRel<0)?Wf(t,l,i,f):wd(t,l,i,f)}function Wf(t,i,u,l){var f=t.display,g=!1,S=Hr(t,function(j){U&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Fl(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",T),Be(f.scroller,"dragstart",M),Be(f.scroller,"drop",S),g||(Nt(j),l.addNew||Io(t.doc,u,null,null,l.extend),U&&!ie||O&&k==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),T=function(j){g=g||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},M=function(){return g=!0};U&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,ce(f.wrapper.ownerDocument,"mouseup",S),ce(f.wrapper.ownerDocument,"mousemove",T),ce(f.scroller,"dragstart",M),ce(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Hf(t,i,u){if(u=="char")return new rr(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new rr(B(i.line,0),ut(t.doc,B(i.line+1,0)));var l=u(t,i);return new rr(l.from,l.to)}function wd(t,i,u,l){O&&Fl(t);var f=t.display,g=t.doc;Nt(i);var S,T,M=g.sel,j=M.ranges;if(l.addNew&&!l.extend?(T=g.sel.contains(u),T>-1?S=j[T]:S=new rr(u,u)):(S=g.sel.primary(),T=g.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new rr(u,u)),u=Gi(t,i,!0,!0),T=-1;else{var le=Hf(t,u,l.unit);l.extend?S=Ya(S,le.anchor,le.head,l.extend):S=le}l.addNew?T==-1?(T=j.length,Jr(g,Ln(t,j.concat([S]),T),{scroll:!1,origin:"*mouse"})):j.length>1&&j[T].empty()&&l.unit=="char"&&!l.extend?(Jr(g,Ln(t,j.slice(0,T).concat(j.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),M=g.sel):Fo(g,T,S,Ze):(T=0,Jr(g,new Sn([S],0),Ze),M=g.sel);var de=u;function we(Je){if(se(de,Je)!=0)if(de=Je,l.unit=="rectangle"){for(var rt=[],gt=t.options.tabSize,ct=Le(lt(g,u.line).text,u.ch,gt),Dt=Le(lt(g,Je.line).text,Je.ch,gt),dr=Math.min(ct,Dt),zr=Math.max(ct,Dt),Sr=Math.min(u.line,Je.line),An=Math.min(t.lastLine(),Math.max(u.line,Je.line));Sr<=An;Sr++){var Gt=lt(g,Sr).text,Nr=Et(Gt,dr,gt);dr==zr?rt.push(new rr(B(Sr,Nr),B(Sr,Nr))):Gt.length>Nr&&rt.push(new rr(B(Sr,Nr),B(Sr,Et(Gt,zr,gt))))}rt.length||rt.push(new rr(u,u)),Jr(g,Ln(t,M.ranges.slice(0,T).concat(rt),T),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var hn=S,L=Hf(t,Je,l.unit),Bt=hn.anchor,pt;se(L.anchor,Bt)>0?(pt=L.head,Bt=Vt(hn.from(),L.anchor)):(pt=L.anchor,Bt=It(hn.to(),L.head));var mr=M.ranges.slice(0);mr[T]=ya(t,new rr(ut(g,Bt),pt)),Jr(g,Ln(t,mr,T),Ze)}}var ye=f.wrapper.getBoundingClientRect(),Ie=0;function Ne(Je){var rt=++Ie,gt=Gi(t,Je,!0,l.unit=="rectangle");if(!!gt)if(se(gt,de)!=0){t.curOp.focus=Ee(et(t)),we(gt);var ct=ys(f,g);(gt.line>=ct.to||gt.line<ct.from)&&setTimeout(Hr(t,function(){Ie==rt&&Ne(Je)}),150)}else{var Dt=Je.clientY<ye.top?-20:Je.clientY>ye.bottom?20:0;Dt&&setTimeout(Hr(t,function(){Ie==rt&&(f.scroller.scrollTop+=Dt,Ne(Je))}),50)}}function He(Je){t.state.selectingText=!1,Ie=1/0,Je&&(Nt(Je),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Ye),Be(f.wrapper.ownerDocument,"mouseup",Qe),g.history.lastSelOrigin=null}var Ye=Hr(t,function(Je){Je.buttons===0||!vi(Je)?He(Je):Ne(Je)}),Qe=Hr(t,He);t.state.selectingText=Qe,ce(f.wrapper.ownerDocument,"mousemove",Ye),ce(f.wrapper.ownerDocument,"mouseup",Qe)}function ya(t,i){var u=i.anchor,l=i.head,f=lt(t.doc,u.line);if(se(u,l)==0&&u.sticky==l.sticky)return i;var g=ot(f);if(!g)return i;var S=vt(g,u.ch,u.sticky),T=g[S];if(T.from!=u.ch&&T.to!=u.ch)return i;var M=S+(T.from==u.ch==(T.level!=1)?0:1);if(M==0||M==g.length)return i;var j;if(l.line!=u.line)j=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=vt(g,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(T.level==1?-1:1);le==M-1||le==M?j=de<0:j=de>0}var we=g[M+(j?-1:0)],ye=j==(we.level==1),Ie=ye?we.from:we.to,Ne=ye?"after":"before";return u.ch==Ie&&u.sticky==Ne?i:new rr(new B(u.line,Ie,Ne),l)}function Zl(t,i,u,l){var f,g;if(i.touches)f=i.touches[0].clientX,g=i.touches[0].clientY;else try{f=i.clientX,g=i.clientY}catch(we){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Nt(i);var S=t.display,T=S.lineDiv.getBoundingClientRect();if(g>T.bottom||!kt(t,u))return zn(i);g-=T.top-S.viewOffset;for(var M=0;M<t.display.gutterSpecs.length;++M){var j=S.gutters.childNodes[M];if(j&&j.getBoundingClientRect().right>=f){var le=ti(t.doc,g),de=t.display.gutterSpecs[M];return Ke(t,u,t,le,de.className,i),zn(i)}}}function Ws(t,i){return Zl(t,i,"gutterClick",!0)}function ql(t,i){ai(t.display,i)||Op(t,i)||st(t,i,"contextmenu")||te||t.display.input.onContextMenu(i)}function Op(t,i){return kt(t,"gutterContextMenu")?Zl(t,i,"gutterContextMenu",!1):!1}function jo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Va(t)}var to={toString:function(){return"CodeMirror.Init"}},_l={},Hs={};function Ad(t){var i=t.optionHandlers;function u(l,f,g,S){t.defaults[l]=f,g&&(i[l]=S?function(T,M,j){j!=to&&g(T,M,j)}:g)}t.defineOption=u,t.Init=to,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ul(l)},!0),u("indentUnit",2,Ul,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Co(l),Va(l),nn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var g=[],S=l.doc.first;l.doc.iter(function(M){for(var j=0;;){var le=M.text.indexOf(f,j);if(le==-1)break;j=le+f.length,g.push(B(S,le))}S++});for(var T=g.length-1;T>=0;T--)Xa(l.doc,f,g[T],B(g[T].line,g[T].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,g){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),g!=to&&l.refresh()}),u("specialCharPlaceholder",as,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){jo(l),wo(l)},!0),u("keyMap","default",function(l,f,g){var S=ki(f),T=g!=to&&ki(g);T&&T.detach&&T.detach(l,S),S.attach&&S.attach(l,T||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Gf,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Cs(f,l.options.lineNumbers),wo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Pl(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Ga(l)},!0),u("scrollbarStyle","native",function(l){ef(l),Ga(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Cs(l.options.gutters,f),wo(l)},!0),u("firstLineNumber",1,wo,!0),u("lineNumberFormatter",function(l){return l},wo,!0),u("showCursorWhenSelecting",!1,Ha,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(bn(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,zf),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Ha,!0),u("singleCursorHeightPerLine",!0,Ha,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Co,!0),u("addModeClass",!1,Co,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Co,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function zf(t,i,u){var l=u&&u!=to;if(!i!=!l){var f=t.display.dragFunctions,g=i?ce:Be;g(t.display.scroller,"dragstart",f.start),g(t.display.scroller,"dragenter",f.enter),g(t.display.scroller,"dragover",f.over),g(t.display.scroller,"dragleave",f.leave),g(t.display.scroller,"drop",f.drop)}}function Gf(t){t.options.lineWrapping?(je(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(H(t.display.wrapper,"CodeMirror-wrap"),is(t)),fs(t),nn(t),Va(t),setTimeout(function(){return Ga(t)},100)}function gr(t,i){var u=this;if(!(this instanceof gr))return new gr(t,i);this.options=i=i?St(i):{},St(_l,i,!1);var l=i.value;typeof l=="string"?l=new dn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new gr.inputStyles[i.inputStyle](this),g=this.display=new nf(t,l,f,i);g.wrapper.CodeMirror=this,jo(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ef(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 Oe,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),O&&k<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Cd(this),vd(),si(this),this.curOp.forceUpdate=!0,Es(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&vs(u)},20):bn(this);for(var S in Hs)Hs.hasOwnProperty(S)&&Hs[S](this,i[S],to);As(this),i.finishInit&&i.finishInit(this);for(var T=0;T<zs.length;++T)zs[T](this);$i(this),U&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}gr.defaults=_l,gr.optionHandlers=Hs;function Cd(t){var i=t.display;ce(i.scroller,"mousedown",Hr(t,Vf)),O&&k<11?ce(i.scroller,"dblclick",Hr(t,function(M){if(!st(t,M)){var j=Gi(t,M);if(!(!j||Ws(t,M)||ai(t.display,M))){Nt(M);var le=t.findWordAt(j);Io(t.doc,le.anchor,le.head)}}})):ce(i.scroller,"dblclick",function(M){return st(t,M)||Nt(M)}),ce(i.scroller,"contextmenu",function(M){return ql(t,M)}),ce(i.input.getField(),"contextmenu",function(M){i.scroller.contains(M.target)||ql(t,M)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(M){if(M.touches.length!=1)return!1;var j=M.touches[0];return j.radiusX<=1&&j.radiusY<=1}function S(M,j){if(j.left==null)return!0;var le=j.left-M.left,de=j.top-M.top;return le*le+de*de>20*20}ce(i.scroller,"touchstart",function(M){if(!st(t,M)&&!g(M)&&!Ws(t,M)){i.input.ensurePolled(),clearTimeout(u);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-l.end<=300?l:null},M.touches.length==1&&(i.activeTouch.left=M.touches[0].pageX,i.activeTouch.top=M.touches[0].pageY)}}),ce(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ce(i.scroller,"touchend",function(M){var j=i.activeTouch;if(j&&!ai(i,M)&&j.left!=null&&!j.moved&&new Date-j.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!j.prev||S(j,j.prev)?de=new rr(le,le):!j.prev.prev||S(j,j.prev.prev)?de=t.findWordAt(le):de=new rr(B(le.line,0),ut(t.doc,B(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),Nt(M)}f()}),ce(i.scroller,"touchcancel",f),ce(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yo(t,i.scroller.scrollTop),ca(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ce(i.scroller,"mousewheel",function(M){return of(t,M)}),ce(i.scroller,"DOMMouseScroll",function(M){return of(t,M)}),ce(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(M){st(t,M)||Ur(M)},over:function(M){st(t,M)||(ks(t,M),Ur(M))},start:function(M){return hd(t,M)},drop:Hr(t,Fs),leave:function(M){st(t,M)||Rs(t)}};var T=i.input.getField();ce(T,"keyup",function(M){return jf.call(t,M)}),ce(T,"keydown",Hr(t,Jl)),ce(T,"keypress",Hr(t,Vs)),ce(T,"focus",function(M){return vs(t,M)}),ce(T,"blur",function(M){return bn(t,M)})}var zs=[];gr.defineInitHook=function(t){return zs.push(t)};function Vo(t,i,u,l){var f=t.doc,g;u==null&&(u="add"),u=="smart"&&(f.mode.indent?g=Ia(t,i).state:u="prev");var S=t.options.tabSize,T=lt(f,i),M=Le(T.text,null,S);T.stateAfter&&(T.stateAfter=null);var j=T.text.match(/^\s*/)[0],le;if(!l&&!/\S/.test(T.text))le=0,u="not";else if(u=="smart"&&(le=f.mode.indent(g,T.text.slice(j.length),T.text),le==Ge||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=Le(lt(f,i-1).text,null,S):le=0:u=="add"?le=M+t.options.indentUnit:u=="subtract"?le=M-t.options.indentUnit:typeof u=="number"&&(le=M+u),le=Math.max(0,le);var de="",we=0;if(t.options.indentWithTabs)for(var ye=Math.floor(le/S);ye;--ye)we+=S,de+=" ";if(we<le&&(de+=zt(le-we)),de!=j)return Xa(f,de,B(i,0),B(i,j.length),"+input"),T.stateAfter=null,!0;for(var Ie=0;Ie<f.sel.ranges.length;Ie++){var Ne=f.sel.ranges[Ie];if(Ne.head.line==i&&Ne.head.ch<j.length){var He=B(i,j.length);Fo(f,Ie,new rr(He,He));break}}}var pn=null;function Gs(t){pn=t}function Uo(t,i,u,l,f){var g=t.doc;t.display.shift=!1,l||(l=g.sel);var S=+new Date-200,T=f=="paste"||t.state.pasteIncoming>S,M=Gn(i),j=null;if(T&&l.ranges.length>1)if(pn&&pn.text.join(`
25
- `)==i){if(l.ranges.length%pn.text.length==0){j=[];for(var le=0;le<pn.text.length;le++)j.push(g.splitLines(pn.text[le]))}}else M.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(j=Xe(M,function(Ye){return[Ye]}));for(var de=t.curOp.updateInput,we=l.ranges.length-1;we>=0;we--){var ye=l.ranges[we],Ie=ye.from(),Ne=ye.to();ye.empty()&&(u&&u>0?Ie=B(Ie.line,Ie.ch-u):t.state.overwrite&&!T?Ne=B(Ne.line,Math.min(lt(g,Ne.line).text.length,Ne.ch+nt(M).length)):T&&pn&&pn.lineWise&&pn.text.join(`
26
- `)==M.join(`
27
- `)&&(Ie=Ne=B(Ie.line,0)));var He={from:Ie,to:Ne,text:j?j[we%j.length]:M,origin:f||(T?"paste":t.state.cutIncoming>S?"cut":"+input")};Jt(t.doc,He),Wr(t,"inputRead",t,He)}i&&!T&&Kf(t,i),za(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function $f(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&xn(i,function(){return Uo(i,u,0,null,"paste")}),!0}function Kf(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var g=t.getModeAt(f.head),S=!1;if(g.electricChars){for(var T=0;T<g.electricChars.length;T++)if(i.indexOf(g.electricChars.charAt(T))>-1){S=Vo(t,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(lt(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=Vo(t,f.head.line,"smart"));S&&Wr(t,"electricInput",t,f.head.line)}}}function Wo(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var f=t.doc.sel.ranges[l].head.line,g={anchor:B(f,0),head:B(f+1,0)};u.push(g),i.push(t.getRange(g.anchor,g.head))}return{text:i,ranges:u}}function eu(t,i,u,l){t.setAttribute("autocorrect",u?"on":"off"),t.setAttribute("autocapitalize",l?"on":"off"),t.setAttribute("spellcheck",!!i)}function Ed(){var t=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),$&&(t.style.border="1px solid black"),i}function Od(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){at(this).focus(),this.display.input.focus()},setOption:function(l,f){var g=this.options,S=g[l];g[l]==f&&l!="mode"||(g[l]=f,i.hasOwnProperty(l)&&Hr(this,i[l])(this,f,S),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](ki(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,g=0;g<f.length;++g)if(f[g]==l||f[g].name==l)return f.splice(g,1),!0},addOverlay:Pr(function(l,f){var g=l.token?l:t.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");er(this.state.overlays,{mode:g,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,nn(this)}),removeOverlay:Pr(function(l){for(var f=this.state.overlays,g=0;g<f.length;++g){var S=f[g].modeSpec;if(S==l||typeof l=="string"&&S.name==l){f.splice(g,1),this.state.modeGen++,nn(this);return}}}),indentLine:Pr(function(l,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ia(this.doc,l)&&Vo(this,l,f,g)}),indentSelection:Pr(function(l){for(var f=this.doc.sel.ranges,g=-1,S=0;S<f.length;S++){var T=f[S];if(T.empty())T.head.line>g&&(Vo(this,T.head.line,l,!0),g=T.head.line,S==this.doc.sel.primIndex&&za(this));else{var M=T.from(),j=T.to(),le=Math.max(g,M.line);g=Math.min(this.lastLine(),j.line-(j.ch?0:1))+1;for(var de=le;de<g;++de)Vo(this,de,l);var we=this.doc.sel.ranges;M.ch==0&&f.length==we.length&&we[S].from().ch>0&&Fo(this.doc,S,new rr(M,we[S].to()),tt)}}}),getTokenAt:function(l,f){return Tu(this,l,f)},getLineTokens:function(l,f){return Tu(this,B(l),f,!0)},getTokenTypeAt:function(l){l=ut(this.doc,l);var f=Cu(this,lt(this.doc,l.line)),g=0,S=(f.length-1)/2,T=l.ch,M;if(T==0)M=f[2];else for(;;){var j=g+S>>1;if((j?f[j*2-1]:0)>=T)S=j;else if(f[j*2+1]<T)g=j+1;else{M=f[j*2+2];break}}var le=M?M.indexOf("overlay "):-1;return le<0?M:le==0?null:M.slice(0,le-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var g=[];if(!u.hasOwnProperty(f))return g;var S=u[f],T=this.getModeAt(l);if(typeof T[f]=="string")S[T[f]]&&g.push(S[T[f]]);else if(T[f])for(var M=0;M<T[f].length;M++){var j=S[T[f][M]];j&&g.push(j)}else T.helperType&&S[T.helperType]?g.push(S[T.helperType]):S[T.name]&&g.push(S[T.name]);for(var le=0;le<S._global.length;le++){var de=S._global[le];de.pred(T,this)&&be(g,de.val)==-1&&g.push(de.val)}return g},getStateAfter:function(l,f){var g=this.doc;return l=ir(g,l==null?g.first+g.size-1:l),Ia(this,l+1,f).state},cursorCoords:function(l,f){var g,S=this.doc.sel.primary();return l==null?g=S.head:typeof l=="object"?g=ut(this.doc,l):g=l?S.from():S.to(),Yn(this,g,f||"page")},charCoords:function(l,f){return ss(this,ut(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Yr(this,l,f||"page"),El(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Yr(this,{top:l,left:0},f||"page").top,ti(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,g){var S=!1,T;if(typeof l=="number"){var M=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>M&&(l=M,S=!0),T=lt(this.doc,l)}else T=l;return go(this,T,{top:0,left:0},f||"page",g||S).top+(S?this.doc.height-wi(T):0)},defaultTextHeight:function(){return ua(this.display)},defaultCharWidth:function(){return fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,g,S,T){var M=this.display;l=Yn(this,ut(this.doc,l));var j=l.bottom,le=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),M.sizer.appendChild(f),S=="over")j=l.top;else if(S=="above"||S=="near"){var de=Math.max(M.wrapper.clientHeight,this.doc.height),we=Math.max(M.sizer.clientWidth,M.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?j=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(j=l.bottom),le+f.offsetWidth>we&&(le=we-f.offsetWidth)}f.style.top=j+"px",f.style.left=f.style.right="",T=="right"?(le=M.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(T=="left"?le=0:T=="middle"&&(le=(M.sizer.clientWidth-f.offsetWidth)/2),f.style.left=le+"px"),g&&kl(this,{left:le,top:j,right:le+f.offsetWidth,bottom:j+f.offsetHeight})},triggerOnKeyDown:Pr(Jl),triggerOnKeyPress:Pr(Vs),triggerOnKeyUp:jf,triggerOnMouseDown:Pr(Vf),execCommand:function(l){if(_a.hasOwnProperty(l))return _a[l].call(null,this)},triggerElectric:Pr(function(l){Kf(this,l)}),findPosH:function(l,f,g,S){var T=1;f<0&&(T=-1,f=-f);for(var M=ut(this.doc,l),j=0;j<f&&(M=tu(this.doc,M,T,g,S),!M.hitSide);++j);return M},moveH:Pr(function(l,f){var g=this;this.extendSelectionsBy(function(S){return g.display.shift||g.doc.extend||S.empty()?tu(g.doc,S.head,l,f,g.options.rtlMoveVisually):l<0?S.from():S.to()},bt)}),deleteH:Pr(function(l,f){var g=this.doc.sel,S=this.doc;g.somethingSelected()?S.replaceSelection("",null,"+delete"):wn(this,function(T){var M=tu(S,T.head,l,f,!1);return l<0?{from:M,to:T.head}:{from:T.head,to:M}})}),findPosV:function(l,f,g,S){var T=1,M=S;f<0&&(T=-1,f=-f);for(var j=ut(this.doc,l),le=0;le<f;++le){var de=Yn(this,j,"div");if(M==null?M=de.left:de.left=M,j=ru(this,de,T,g),j.hitSide)break}return j},moveV:Pr(function(l,f){var g=this,S=this.doc,T=[],M=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(le){if(M)return l<0?le.from():le.to();var de=Yn(g,le.head,"div");le.goalColumn!=null&&(de.left=le.goalColumn),T.push(de.left);var we=ru(g,de,l,f);return f=="page"&&le==S.sel.primary()&&Ml(g,ss(g,we,"div").top-de.top),we},bt),T.length)for(var j=0;j<S.sel.ranges.length;j++)S.sel.ranges[j].goalColumn=T[j]}),findWordAt:function(l){var f=this.doc,g=lt(f,l.line).text,S=l.ch,T=l.ch;if(g){var M=this.getHelper(l,"wordChars");(l.sticky=="before"||T==g.length)&&S?--S:++T;for(var j=g.charAt(S),le=Ar(j,M)?function(de){return Ar(de,M)}:/\s/.test(j)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Ar(de)};S>0&&le(g.charAt(S-1));)--S;for(;T<g.length&&le(g.charAt(T));)++T}return new rr(B(l.line,S),B(l.line,T))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ee(et(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pr(function(l,f){mo(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-oi(this)-this.display.barHeight,width:l.scrollWidth-oi(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:la(this)}},scrollIntoView:Pr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:B(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?qc(this,l):Zu(this,l.from,l.to,l.margin)}),setSize:Pr(function(l,f){var g=this,S=function(M){return typeof M=="number"||/^\d+$/.test(String(M))?M+"px":M};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&Sl(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(M){if(M.widgets){for(var j=0;j<M.widgets.length;j++)if(M.widgets[j].noHScroll){Ci(g,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return xn(this,l)},startOperation:function(){return si(this)},endOperation:function(){return $i(this)},refresh:Pr(function(){var l=this.display.cachedTextHeight;nn(this),this.curOp.forceUpdate=!0,Va(this),mo(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(l==null||Math.abs(l-ua(this.display))>.5||this.options.lineWrapping)&&fs(this),Ke(this,"refresh",this)}),swapDoc:Pr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Es(this,l),Va(this),this.display.input.reset(),mo(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},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}},yr(t),t.registerHelper=function(l,f,g){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][f]=g},t.registerGlobalHelper=function(l,f,g,S){t.registerHelper(l,f,S),u[l]._global.push({pred:g,val:S})}}function tu(t,i,u,l,f){var g=i,S=u,T=lt(t,i.line),M=f&&t.direction=="rtl"?-u:u;function j(){var Qe=i.line+M;return Qe<t.first||Qe>=t.first+t.size?!1:(i=new B(Qe,i.ch,i.sticky),T=lt(t,Qe))}function le(Qe){var Je;if(l=="codepoint"){var rt=T.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(rt))Je=null;else{var gt=u>0?rt>=55296&&rt<56320:rt>=56320&&rt<57343;Je=new B(i.line,Math.max(0,Math.min(T.text.length,i.ch+u*(gt?2:1))),-u)}}else f?Je=md(t.cm,T,i,u):Je=$l(T,i,u);if(Je==null)if(!Qe&&j())i=Kl(f,t.cm,T,i.line,M);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")le();else if(l=="column")le(!0);else if(l=="word"||l=="group")for(var de=null,we=l=="group",ye=t.cm&&t.cm.getHelper(i,"wordChars"),Ie=!0;!(u<0&&!le(!Ie));Ie=!1){var Ne=T.text.charAt(i.ch)||`
28
- `,He=Ar(Ne,ye)?"w":we&&Ne==`
29
- `?"n":!we||/\s/.test(Ne)?null:"p";if(we&&!Ie&&!He&&(He="s"),de&&de!=He){u<0&&(u=1,le(),i.sticky="after");break}if(He&&(de=He),u>0&&!le(!Ie))break}var Ye=Is(t,i,g,S,!0);return Me(g,Ye)&&(Ye.hitSide=!0),Ye}function ru(t,i,u,l){var f=t.doc,g=i.left,S;if(l=="page"){var T=Math.min(t.display.wrapper.clientHeight,at(t).innerHeight||f(t).documentElement.clientHeight),M=Math.max(T-.5*ua(t.display),3);S=(u>0?i.bottom:i.top)+u*M}else l=="line"&&(S=u>0?i.bottom+3:i.top-3);for(var j;j=El(t,g,S),!!j.outside;){if(u<0?S<=0:S>=f.height){j.hitSide=!0;break}S+=u*5}return j}var lr=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};lr.prototype.init=function(t){var i=this,u=this,l=u.cm,f=u.div=t.lineDiv;f.contentEditable=!0,eu(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(T){for(var M=T.target;M;M=M.parentNode){if(M==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(M.className))break}return!1}ce(f,"paste",function(T){!g(T)||st(l,T)||$f(T,l)||k<=11&&setTimeout(Hr(l,function(){return i.updateFromDOM()}),20)}),ce(f,"compositionstart",function(T){i.composing={data:T.data,done:!1}}),ce(f,"compositionupdate",function(T){i.composing||(i.composing={data:T.data,done:!1})}),ce(f,"compositionend",function(T){i.composing&&(T.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ce(f,"touchstart",function(){return u.forceCompositionEnd()}),ce(f,"input",function(){i.composing||i.readFromDOMSoon()});function S(T){if(!(!g(T)||st(l,T))){if(l.somethingSelected())Gs({lineWise:!1,text:l.getSelections()}),T.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var M=Wo(l);Gs({lineWise:!0,text:M.text}),T.type=="cut"&&l.operation(function(){l.setSelections(M.ranges,0,tt),l.replaceSelection("",null,"cut")})}else return;if(T.clipboardData){T.clipboardData.clearData();var j=pn.text.join(`
22
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Zc(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?N(i.line,i.ch+1,"before"):i,i=i.ch?N(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var S=!1,T=Yn(t,i),R=!u||u==i?T:Yn(t,u);f={left:Math.min(T.left,R.left),top:Math.min(T.top,R.top)-l,right:Math.max(T.left,R.left),bottom:Math.max(T.bottom,R.bottom)+l};var j=Rl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(j.scrollTop!=null&&(yo(t,j.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),j.scrollLeft!=null&&(ca(t,j.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function kl(t,i){var u=Rl(t,i);u.scrollTop!=null&&yo(t,u.scrollTop),u.scrollLeft!=null&&ca(t,u.scrollLeft)}function Rl(t,i){var u=t.display,l=ua(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,g=bl(t),S={};i.bottom-i.top>g&&(i.bottom=i.top+g);var T=t.doc.height+yl(u),R=i.top<l,j=i.bottom>T-l;if(i.top<f)S.scrollTop=R?0:i.top;else if(i.bottom>f+g){var le=Math.min(i.top,(j?T:i.bottom)-g);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,Ae=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,ye=la(t)-u.gutters.offsetWidth,Ie=i.right-i.left>ye;return Ie&&(i.right=i.left+ye),i.left<10?S.scrollLeft=0:i.left<Ae?S.scrollLeft=Math.max(0,i.left+de-(Ie?0:10)):i.right>ye+Ae-3&&(S.scrollLeft=i.right+(Ie?0:10)-ye),S}function Ml(t,i){i!=null&&(bs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function za(t){bs(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function mo(t,i,u){(i!=null||u!=null)&&bs(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function qc(t,i){bs(t),t.curOp.scrollToPos=i}function bs(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Yu(t,i.from),l=Yu(t,i.to);Zu(t,u,l,i.margin)}}function Zu(t,i,u,l){var f=Rl(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});mo(t,f.scrollLeft,f.scrollTop)}function yo(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||Dl(t,{top:i}),qu(t,i,!0),d&&Dl(t),So(t,100))}function qu(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ca(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,jl(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function bo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+yl(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+oi(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var da=function(t,i,u){this.cm=u;var l=this.vert=ee("div",[ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ee("div",[ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),ce(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ce(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};da.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var g=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},da.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},da.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},da.prototype.zeroWidthHack=function(){var t=F&&!J?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Oe,this.disableVert=new Oe},da.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),g=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);g!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},da.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var xo=function(){};xo.prototype.update=function(){return{bottom:0,right:0}},xo.prototype.setScrollLeft=function(){},xo.prototype.setScrollTop=function(){},xo.prototype.clear=function(){};function Ga(t,i){i||(i=bo(t));var u=t.display.barWidth,l=t.display.barHeight;_u(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&gs(t),_u(t,bo(t)),u=t.display.barWidth,l=t.display.barHeight}function _u(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Ll={native:da,null:xo};function ef(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ll[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ce(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ca(t,i):yo(t,i)},t),t.display.scrollbars.addClass&&je(t.display.wrapper,t.display.scrollbars.addClass)}var tf=0;function si(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++tf,markArrays:null},Dc(t.curOp)}function $i(t){var i=t.curOp;i&&jc(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;_c(u)})}function _c(t){for(var i=t.ops,u=0;u<i.length;u++)ed(i[u]);for(var l=0;l<i.length;l++)td(i[l]);for(var f=0;f<i.length;f++)pa(i[f]);for(var g=0;g<i.length;g++)rd(i[g]);for(var S=0;S<i.length;S++)Xn(i[S])}function ed(t){var i=t.cm,u=i.display;id(i),t.updateMaxLine&&is(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new xs(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function td(t){t.updatedDisplay=t.mustUpdate&&$a(t.cm,t.update)}function pa(t){var i=t.cm,u=i.display;t.updatedDisplay&&gs(i),t.barMeasure=bo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=zu(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+oi(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-la(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function rd(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ca(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Ee(et(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Ga(i,t.barMeasure),t.updatedDisplay&&Bl(i,t.barMeasure),t.selectionChanged&&hs(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&Qu(t.cm)}function Xn(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&Ss(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&qu(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ca(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Zc(i,ut(l,t.scrollToPos.from),ut(l,t.scrollToPos.to),t.scrollToPos.margin);Qc(i,f)}var g=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(g)for(var T=0;T<g.length;++T)g[T].lines.length||Ke(g[T],"hide");if(S)for(var R=0;R<S.length;++R)S[R].lines.length&&Ke(S[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function xn(t,i){if(t.curOp)return i();si(t);try{return i()}finally{$i(t)}}function Hr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);si(t);try{return i.apply(t,arguments)}finally{$i(t)}}}function Pr(t){return function(){if(this.curOp)return t.apply(this,arguments);si(this);try{return t.apply(this,arguments)}finally{$i(this)}}}function Ir(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);si(i);try{return t.apply(this,arguments)}finally{$i(i)}}}function So(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Tt(nd,t))}function nd(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=Ia(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(g){if(l.line>=t.display.viewFrom){var S=g.styles,T=g.text.length>t.options.maxHighlightLength?kn(i.mode,l.state):null,R=al(t,g,l,!0);T&&(l.state=T),g.styles=R.styles;var j=g.styleClasses,le=R.classes;le?g.styleClasses=le:j&&(g.styleClasses=null);for(var de=!S||S.length!=g.styles.length||j!=le&&(!j||!le||j.bgClass!=le.bgClass||j.textClass!=le.textClass),Ae=0;!de&&Ae<S.length;++Ae)de=S[Ae]!=g.styles[Ae];de&&f.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=t.options.maxHighlightLength&&fo(t,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return So(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&xn(t,function(){for(var g=0;g<f.length;g++)Ci(t,f[g],"text")})}}var xs=function(t,i,u){var l=t.display;this.viewport=i,this.visible=ys(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=la(t),this.force=u,this.dims=Tl(t),this.events=[]};xs.prototype.signal=function(t,i){kt(t,i)&&this.events.push(arguments)},xs.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function id(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=oi(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=oi(t)+"px",i.scrollbarsClipped=!0)}function ad(t){if(t.hasFocus())return null;var i=Ee(et(t));if(!i||!ge(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=at(t).getSelection();l.anchorNode&&l.extend&&ge(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Nl(t){if(!(!t||!t.activeElt||t.activeElt==Ee(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ge(document.body,t.anchorNode)&&ge(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function $a(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return In(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Il(t)==0)return!1;As(t)&&(In(t),i.dims=Tl(t));var f=l.first+l.size,g=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<g&&g-u.viewFrom<20&&(g=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),ni&&(g=Si(t.doc,g),S=cn(t.doc,S));var T=g!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;Jc(t,g,S),u.viewOffset=wi(lt(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Il(t);if(!T&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var j=ad(t);return R>4&&(u.lineDiv.style.display="none"),od(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Nl(j),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,T&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,So(t,400)),u.updateLineNumbers=null,!0}function Ss(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==la(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+yl(t.display)-bl(t),u.top)}),i.visible=ys(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=ys(t.display,t.doc,u));if(!$a(t,i))break;gs(t);var f=bo(t);Ha(t),Ga(t,f),Bl(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Dl(t,i){var u=new xs(t,i);if($a(t,u)){gs(t),Ss(t,u);var l=bo(t);Ha(t),Ga(t,l),Bl(t,l),u.finish()}}function od(t,i,u){var l=t.display,f=t.options.lineNumbers,g=l.lineDiv,S=g.firstChild;function T(Ie){var Ne=Ie.nextSibling;return U&&F&&t.display.currentWheelTarget==Ie?Ie.style.display="none":Ie.parentNode.removeChild(Ie),Ne}for(var R=l.view,j=l.viewFrom,le=0;le<R.length;le++){var de=R[le];if(!de.hidden)if(!de.node||de.node.parentNode!=g){var Ae=Wc(t,de,j,u);g.insertBefore(Ae,S)}else{for(;S!=de.node;)S=T(S);var ye=f&&i!=null&&i<=j&&de.lineNumber;de.changes&&(be(de.changes,"gutter")>-1&&(ye=!1),ju(t,de,j,u)),ye&&(fe(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Pa(t.options,j)))),S=de.node.nextSibling}j+=de.size}for(;S;)S=T(S)}function ws(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Wr(t,"gutterChanged",t)}function Bl(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+oi(t)+"px"}function jl(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=Pl(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,g=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=g),u[S].gutterBackground&&(u[S].gutterBackground.style.left=g));var T=u[S].alignable;if(T)for(var R=0;R<T.length;R++)T[R].style.left=g}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function As(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Pa(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ee("div",[ee("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,S=f.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",ws(t.display),!0}return!1}function Cs(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var g=t[f],S=null;if(typeof g!="string"&&(S=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:g,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function rf(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],g=f.className,S=f.style,T=i.appendChild(ee("div",null,"CodeMirror-gutter "+g));S&&(T.style.cssText=S),g=="CodeMirror-linenumbers"&&(t.lineGutter=T,T.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",ws(t)}function wo(t){rf(t.display),nn(t),jl(t)}function nf(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=ee("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ee("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=Z("div",null,"CodeMirror-code"),f.selectionDiv=ee("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ee("div",null,"CodeMirror-cursors"),f.measure=ee("div",null,"CodeMirror-measure"),f.lineMeasure=ee("div",null,"CodeMirror-measure"),f.lineSpace=Z("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var g=Z("div",[f.lineSpace],"CodeMirror-lines");f.mover=ee("div",[g],null,"position: relative"),f.sizer=ee("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ee("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),f.gutters=ee("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ee("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ee("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),re&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),O&&k<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!U&&!(d&&C)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Cs(l.gutters,l.lineNumbers),rf(f),u.init(f)}var Ao=0,Ei=null;O?Ei=-.53:d?Ei=15:re?Ei=-.7:ie&&(Ei=-1/3);function Vl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function af(t){var i=Vl(t);return i.x*=Ei,i.y*=Ei,i}function of(t,i){re&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Vl(i),l=u.x,f=u.y,g=Ei;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,g=1);var S=t.display,T=S.scroller,R=T.scrollWidth>T.clientWidth,j=T.scrollHeight>T.clientHeight;if(!!(l&&R||f&&j)){if(f&&F&&U){e:for(var le=i.target,de=S.view;le!=T;le=le.parentNode)for(var Ae=0;Ae<de.length;Ae++)if(de[Ae].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&g!=null){f&&j&&yo(t,Math.max(0,T.scrollTop+f*g)),ca(t,Math.max(0,T.scrollLeft+l*g)),(!f||f&&j)&&Nt(i),S.wheelStartX=null;return}if(f&&g!=null){var ye=f*g,Ie=t.doc.scrollTop,Ne=Ie+S.wrapper.clientHeight;ye<0?Ie=Math.max(0,Ie+ye-50):Ne=Math.min(t.doc.height,Ne+ye+50),Dl(t,{top:Ie,bottom:Ne})}Ao<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=T.scrollLeft,S.wheelStartY=T.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var He=T.scrollLeft-S.wheelStartX,Ye=T.scrollTop-S.wheelStartY,Qe=Ye&&S.wheelDY&&Ye/S.wheelDY||He&&S.wheelDX&&He/S.wheelDX;S.wheelStartX=S.wheelStartY=null,Qe&&(Ei=(Ei*Ao+Qe)/(Ao+1),++Ao)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var Sn=function(t,i){this.ranges=t,this.primIndex=i};Sn.prototype.primary=function(){return this.ranges[this.primIndex]},Sn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Me(u.anchor,l.anchor)||!Me(u.head,l.head))return!1}return!0},Sn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new rr(We(this.ranges[i].anchor),We(this.ranges[i].head));return new Sn(t,this.primIndex)},Sn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Sn.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(se(i,l.from())>=0&&se(t,l.to())<=0)return u}return-1};var rr=function(t,i){this.anchor=t,this.head=i};rr.prototype.from=function(){return Vt(this.anchor,this.head)},rr.prototype.to=function(){return It(this.anchor,this.head)},rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ln(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(Ae,ye){return se(Ae.from(),ye.from())}),u=be(i,f);for(var g=1;g<i.length;g++){var S=i[g],T=i[g-1],R=se(T.to(),S.from());if(l&&!S.empty()?R>0:R>=0){var j=Vt(T.from(),S.from()),le=It(T.to(),S.to()),de=T.empty()?S.from()==S.head:T.from()==T.head;g<=u&&--u,i.splice(--g,2,new rr(de?le:j,de?j:le))}}return new Sn(i,u)}function Ki(t,i){return new Sn([new rr(t,i||t)],0)}function Yi(t){return t.text?N(t.from.line+t.text.length-1,nt(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function sf(t,i){if(se(t,i.from)<0)return t;if(se(t,i.to)<=0)return Yi(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=Yi(i).ch-i.to.ch),N(u,l)}function Oi(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new rr(sf(f.anchor,i),sf(f.head,i)))}return Ln(t.cm,u,t.sel.primIndex)}function lf(t,i,u){return t.line==i.line?N(u.line,t.ch-i.ch+u.ch):N(u.line+(t.line-i.line),t.ch)}function sd(t,i,u){for(var l=[],f=N(t.first,0),g=f,S=0;S<i.length;S++){var T=i[S],R=lf(T.from,f,g),j=lf(Yi(T),f,g);if(f=T.to,g=j,u=="around"){var le=t.sel.ranges[S],de=se(le.head,le.anchor)<0;l[S]=new rr(de?j:R,de?R:j)}else l[S]=new rr(R,R)}return new Sn(l,t.sel.primIndex)}function Ul(t){t.doc.mode=fn(t.options,t.doc.modeOption),Co(t)}function Co(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,So(t,100),t.state.modeGen++,t.curOp&&nn(t)}function Eo(t,i){return i.from.ch==0&&i.to.ch==0&&nt(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Oo(t,i,u,l){function f(Qe){return u?u[Qe]:null}function g(Qe,Je,rt){Mu(Qe,Je,rt,l),Wr(Qe,"change",Qe,i)}function S(Qe,Je){for(var rt=[],gt=Qe;gt<Je;++gt)rt.push(new Ra(j[gt],f(gt),l));return rt}var T=i.from,R=i.to,j=i.text,le=lt(t,T.line),de=lt(t,R.line),Ae=nt(j),ye=f(j.length-1),Ie=R.line-T.line;if(i.full)t.insert(0,S(0,j.length)),t.remove(j.length,t.size-j.length);else if(Eo(t,i)){var Ne=S(0,j.length-1);g(de,de.text,ye),Ie&&t.remove(T.line,Ie),Ne.length&&t.insert(T.line,Ne)}else if(le==de)if(j.length==1)g(le,le.text.slice(0,T.ch)+Ae+le.text.slice(R.ch),ye);else{var He=S(1,j.length-1);He.push(new Ra(Ae+le.text.slice(R.ch),ye,l)),g(le,le.text.slice(0,T.ch)+j[0],f(0)),t.insert(T.line+1,He)}else if(j.length==1)g(le,le.text.slice(0,T.ch)+j[0]+de.text.slice(R.ch),f(0)),t.remove(T.line+1,Ie);else{g(le,le.text.slice(0,T.ch)+j[0],f(0)),g(de,Ae+de.text.slice(R.ch),ye);var Ye=S(1,j.length-1);Ie>1&&t.remove(T.line+1,Ie-1),t.insert(T.line+1,Ye)}Wr(t,"change",t,i)}function Lr(t,i,u){function l(f,g,S){if(f.linked)for(var T=0;T<f.linked.length;++T){var R=f.linked[T];if(R.doc!=g){var j=S&&R.sharedHist;u&&!j||(i(R.doc,j),l(R.doc,f,j))}}}l(t,null,!0)}function Es(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,fs(t),Ul(t),li(t),t.options.direction=i.direction,t.options.lineWrapping||is(t),t.options.mode=i.modeOption,nn(t)}function li(t){(t.doc.direction=="rtl"?je:H)(t.display.lineDiv,"CodeMirror-rtl")}function uf(t){xn(t,function(){li(t),nn(t)})}function To(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function ff(t,i){var u={from:We(i.from),to:Yi(i),text:bi(t,i.from,i.to)};return df(t,u,i.from.line,i.to.line+1),Lr(t,function(l){return df(l,u,i.from.line,i.to.line+1)},!0),u}function Os(t){for(;t.length;){var i=nt(t);if(i.ranges)t.pop();else break}}function cf(t,i){if(i)return Os(t.done),nt(t.done);if(t.done.length&&!nt(t.done).ranges)return nt(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),nt(t.done)}function Wl(t,i,u,l){var f=t.history;f.undone.length=0;var g=+new Date,S,T;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>g-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=cf(f,f.lastOp==l)))T=nt(S.changes),se(i.from,i.to)==0&&se(i.from,T.to)==0?T.to=Yi(i):S.changes.push(ff(t,i));else{var R=nt(f.done);for((!R||!R.ranges)&&Ti(t.sel,f.done),S={changes:[ff(t,i)],generation:f.generation},f.done.push(S);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=g,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,T||Ke(t,"historyAdded")}function Er(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ld(t,i,u,l){var f=t.history,g=l&&l.origin;u==f.lastSelOp||g&&f.lastSelOrigin==g&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==g||Er(t,g,nt(f.done),i))?f.done[f.done.length-1]=i:Ti(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=u,l&&l.clearRedo!==!1&&Os(f.undone)}function Ti(t,i){var u=nt(i);u&&u.ranges&&u.equals(t)||i.push(t)}function df(t,i,u,l){var f=i["spans_"+t.id],g=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[g]=S.markedSpans),++g})}function Po(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function ha(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(Po(u[f]));return l}function Pi(t,i){var u=ha(t,i),l=co(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var g=u[f],S=l[f];if(g&&S){e:for(var T=0;T<S.length;++T){for(var R=S[T],j=0;j<g.length;++j)if(g[j].marker==R.marker)continue e;g.push(R)}}else S&&(u[f]=S)}return u}function Ka(t,i,u){for(var l=[],f=0;f<t.length;++f){var g=t[f];if(g.ranges){l.push(u?Sn.prototype.deepCopy.call(g):g);continue}var S=g.changes,T=[];l.push({changes:T});for(var R=0;R<S.length;++R){var j=S[R],le=void 0;if(T.push({from:j.from,to:j.to,text:j.text}),i)for(var de in j)(le=de.match(/^spans_(\d+)$/))&&be(i,Number(le[1]))>-1&&(nt(T)[de]=j[de],delete j[de])}}return l}function Ya(t,i,u,l){if(l){var f=t.anchor;if(u){var g=se(i,f)<0;g!=se(u,f)<0?(f=i,i=u):g!=se(i,u)<0&&(i=u)}return new rr(f,i)}else return new rr(u||i,i)}function Io(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Jr(t,new Sn([Ya(t.sel.primary(),i,u,f)],0),l)}function Ja(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),g=0;g<t.sel.ranges.length;g++)l[g]=Ya(t.sel.ranges[g],i[g],null,f);var S=Ln(t.cm,l,t.sel.primIndex);Jr(t,S,u)}function Fo(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Jr(t,Ln(t.cm,f,t.sel.primIndex),l)}function pf(t,i,u,l){Jr(t,Ki(i,u),l)}function ud(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var g=0;g<f.length;g++)this.ranges[g]=new rr(ut(t,f[g].anchor),ut(t,f[g].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?Ln(t.cm,l.ranges,l.ranges.length-1):i}function hf(t,i,u){var l=t.history.done,f=nt(l);f&&f.ranges?(l[l.length-1]=i,Ts(t,i,u)):Jr(t,i,u)}function Jr(t,i,u){Ts(t,i,u),ld(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Ts(t,i,u){(kt(t,"beforeSelectionChange")||t.cm&&kt(t.cm,"beforeSelectionChange"))&&(i=ud(t,i,u));var l=u&&u.bias||(se(i.primary().head,t.sel.primary().head)<0?-1:1);vf(t,Ps(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&za(t.cm)}function vf(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,xt(t.cm)),Wr(t,"cursorActivity",t))}function gf(t){vf(t,Ps(t,t.sel,null,!1))}function Ps(t,i,u,l){for(var f,g=0;g<i.ranges.length;g++){var S=i.ranges[g],T=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[g],R=Is(t,S.anchor,T&&T.anchor,u,l),j=S.head==S.anchor?R:Is(t,S.head,T&&T.head,u,l);(f||R!=S.anchor||j!=S.head)&&(f||(f=i.ranges.slice(0,g)),f[g]=new rr(R,j))}return f?Ln(t.cm,f,i.primIndex):i}function Ji(t,i,u,l,f){var g=lt(t,i.line);if(g.markedSpans)for(var S=0;S<g.markedSpans.length;++S){var T=g.markedSpans[S],R=T.marker,j="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,le="selectRight"in R?!R.selectRight:R.inclusiveRight;if((T.from==null||(j?T.from<=i.ch:T.from<i.ch))&&(T.to==null||(le?T.to>=i.ch:T.to>i.ch))){if(f&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(g.markedSpans){--S;continue}else break;if(!R.atomic)continue;if(u){var de=R.find(l<0?1:-1),Ae=void 0;if((l<0?le:j)&&(de=fd(t,de,-l,de&&de.line==i.line?g:null)),de&&de.line==i.line&&(Ae=se(de,u))&&(l<0?Ae<0:Ae>0))return Ji(t,de,i,l,f)}var ye=R.find(l<0?-1:1);return(l<0?j:le)&&(ye=fd(t,ye,l,ye.line==i.line?g:null)),ye?Ji(t,ye,i,l,f):null}}return i}function Is(t,i,u,l,f){var g=l||1,S=Ji(t,i,u,g,f)||!f&&Ji(t,i,u,g,!0)||Ji(t,i,u,-g,f)||!f&&Ji(t,i,u,-g,!0);return S||(t.cantEdit=!0,N(t.first,0))}function fd(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ut(t,N(i.line-1)):null:u>0&&i.ch==(l||lt(t,i.line)).text.length?i.line<t.first+t.size-1?N(i.line+1,0):null:new N(i.line,i.ch+u)}function mf(t){t.setSelection(N(t.firstLine(),0),N(t.lastLine()),tt)}function Hl(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,g,S,T){f&&(l.from=ut(t,f)),g&&(l.to=ut(t,g)),S&&(l.text=S),T!==void 0&&(l.origin=T)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Jt(t,i,u){if(t.cm){if(!t.cm.curOp)return Hr(t.cm,Jt)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((kt(t,"beforeChange")||t.cm&&kt(t.cm,"beforeChange"))&&(i=Hl(t,i,!0),!i))){var l=Iu&&!u&&ts(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)yf(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else yf(t,i)}}function yf(t,i){if(!(i.text.length==1&&i.text[0]==""&&se(i.from,i.to)==0)){var u=Oi(t,i);Wl(t,i,u,t.cm?t.cm.curOp.id:NaN),Xi(t,i,u,co(t,i));var l=[];Lr(t,function(f,g){!g&&be(l,f.history)==-1&&(wf(f.history,i),l.push(f.history)),Xi(f,i,null,co(f,i))})}}function ko(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,g,S=t.sel,T=i=="undo"?f.done:f.undone,R=i=="undo"?f.undone:f.done,j=0;j<T.length&&(g=T[j],!(u?g.ranges&&!g.equals(t.sel):!g.ranges));j++);if(j!=T.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=T.pop(),g.ranges){if(Ti(g,R),u&&!g.equals(t.sel)){Jr(t,g,{clearRedo:!1});return}S=g}else if(l){T.push(g);return}else break;var le=[];Ti(S,R),R.push({changes:le,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var de=kt(t,"beforeChange")||t.cm&&kt(t.cm,"beforeChange"),Ae=function(Ne){var He=g.changes[Ne];if(He.origin=i,de&&!Hl(t,He,!1))return T.length=0,{};le.push(ff(t,He));var Ye=Ne?Oi(t,He):nt(T);Xi(t,He,Ye,Pi(t,He)),!Ne&&t.cm&&t.cm.scrollIntoView({from:He.from,to:Yi(He)});var Qe=[];Lr(t,function(Je,rt){!rt&&be(Qe,Je.history)==-1&&(wf(Je.history,He),Qe.push(Je.history)),Xi(Je,He,null,Pi(Je,He))})},ye=g.changes.length-1;ye>=0;--ye){var Ie=Ae(ye);if(Ie)return Ie.v}}}}function bf(t,i){if(i!=0&&(t.first+=i,t.sel=new Sn(Xe(t.sel.ranges,function(f){return new rr(N(f.anchor.line+i,f.anchor.ch),N(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){nn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Ci(t.cm,l,"gutter")}}function Xi(t,i,u,l){if(t.cm&&!t.cm.curOp)return Hr(t.cm,Xi)(t,i,u,l);if(i.to.line<t.first){bf(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);bf(t,f),i={from:N(t.first,0),to:N(i.to.line+f,i.to.ch),text:[nt(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:N(g,lt(t,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=Oi(t,i)),t.cm?cd(t.cm,i,l):Oo(t,i,l),Ts(t,u,tt),t.cantEdit&&Is(t,N(t.firstLine(),0))&&(t.cantEdit=!1)}}function cd(t,i,u){var l=t.doc,f=t.display,g=i.from,S=i.to,T=!1,R=g.line;t.options.lineWrapping||(R=tr(Mn(lt(l,g.line))),l.iter(R,S.line+1,function(ye){if(ye==f.maxLine)return T=!0,!0})),l.sel.contains(i.from,i.to)>-1&&xt(t),Oo(l,i,u,Wa(t)),t.options.lineWrapping||(l.iter(R,g.line+i.text.length,function(ye){var Ie=ns(ye);Ie>f.maxLineLength&&(f.maxLine=ye,f.maxLineLength=Ie,f.maxLineChanged=!0,T=!1)}),T&&(t.curOp.updateMaxLine=!0)),Pc(l,g.line),So(t,400);var j=i.text.length-(S.line-g.line)-1;i.full?nn(t):g.line==S.line&&i.text.length==1&&!Eo(t.doc,i)?Ci(t,g.line,"text"):nn(t,g.line,S.line+1,j);var le=kt(t,"changes"),de=kt(t,"change");if(de||le){var Ae={from:g,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Wr(t,"change",t,Ae),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Ae)}t.display.selForContextMenu=null}function Xa(t,i,u,l,f){var g;l||(l=u),se(l,u)<0&&(g=[l,u],u=g[0],l=g[1]),typeof i=="string"&&(i=t.splitLines(i)),Jt(t,{from:u,to:l,text:i,origin:f})}function xf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function Sf(t,i,u,l){for(var f=0;f<t.length;++f){var g=t[f],S=!0;if(g.ranges){g.copied||(g=t[f]=g.deepCopy(),g.copied=!0);for(var T=0;T<g.ranges.length;T++)xf(g.ranges[T].anchor,i,u,l),xf(g.ranges[T].head,i,u,l);continue}for(var R=0;R<g.changes.length;++R){var j=g.changes[R];if(u<j.from.line)j.from=N(j.from.line+l,j.from.ch),j.to=N(j.to.line+l,j.to.ch);else if(i<=j.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function wf(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Sf(t.done,u,l,f),Sf(t.undone,u,l,f)}function Ro(t,i,u,l){var f=i,g=i;return typeof i=="number"?g=lt(t,ir(t,i)):f=tr(i),f==null?null:(l(g,f)&&t.cm&&Ci(t.cm,f,u),g)}function Qa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Qa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Lu(f),Wr(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function va(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}va.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var g=Math.min(i,f-t),S=l.height;if(l.removeInner(t,g),this.height-=S-l.height,f==g&&(this.children.splice(u--,1),l.parent=null),(i-=g)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Qa))){var T=[];this.collapse(T),this.children=[new Qa(T)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<=g){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,T=S;T<f.lines.length;){var R=new Qa(f.lines.slice(T,T+=25));f.height-=R.height,this.children.splice(++l,0,R),R.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new va(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=be(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new va(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<g){var S=Math.min(i,g-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=g}}};var ga=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};ga.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=tr(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var g=Na(this);Rn(u,Math.max(0,u.height-g)),t&&(xn(t,function(){Af(t,u,-g),Ci(t,l,"widget")}),Wr(t,"lineWidgetCleared",t,this,l))}},ga.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Na(this)-i;!f||(Pn(this.doc,l)||Rn(l,l.height+f),u&&xn(u,function(){u.curOp.forceUpdate=!0,Af(u,l,f),Wr(u,"lineWidgetChanged",u,t,tr(l))}))},yr(ga);function Af(t,i,u){wi(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Ml(t,u)}function dd(t,i,u,l){var f=new ga(t,u,l),g=t.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),Ro(t,i,"widget",function(S){var T=S.widgets||(S.widgets=[]);if(f.insertAt==null?T.push(f):T.splice(Math.min(T.length,Math.max(0,f.insertAt)),0,f),f.line=S,g&&!Pn(t,S)){var R=wi(S)<t.scrollTop;Rn(S,S.height+Na(f)),R&&Ml(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&Wr(g,"lineWidgetAdded",g,f,typeof i=="number"?i:tr(i)),f}var Cf=0,Ii=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Cf};Ii.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&si(t),kt(this,"clear")){var u=this.find();u&&Wr(this,"clear",u.from,u.to)}for(var l=null,f=null,g=0;g<this.lines.length;++g){var S=this.lines[g],T=Fa(S.markedSpans,this);t&&!this.collapsed?Ci(t,tr(S),"text"):t&&(T.to!=null&&(f=tr(S)),T.from!=null&&(l=tr(S))),S.markedSpans=kc(S.markedSpans,T),T.from==null&&this.collapsed&&!Pn(this.doc,S)&&t&&Rn(S,ua(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var j=Mn(this.lines[R]),le=ns(j);le>t.display.maxLineLength&&(t.display.maxLine=j,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&nn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&gf(t.doc)),t&&Wr(t,"markerCleared",t,this,l,f),i&&$i(t),this.parent&&this.parent.clear()}},Ii.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var g=this.lines[f],S=Fa(g.markedSpans,this);if(S.from!=null&&(u=N(i?g:tr(g),S.from),t==-1))return u;if(S.to!=null&&(l=N(i?g:tr(g),S.to),t==1))return l}return u&&{from:u,to:l}},Ii.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||xn(l,function(){var f=i.line,g=tr(i.line),S=xl(l,g);if(S&&($u(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Pn(u.doc,f)&&u.height!=null){var T=u.height;u.height=null;var R=Na(u)-T;R&&Rn(f,f.height+R)}Wr(l,"markerChanged",l,t)})},Ii.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||be(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ii.prototype.detachLine=function(t){if(this.lines.splice(be(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(Ii);function ui(t,i,u,l,f){if(l&&l.shared)return ma(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return Hr(t.cm,ui)(t,i,u,l,f);var g=new Ii(t,f),S=se(i,u);if(l&&St(l,g,!1),S>0||S==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=Z("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(dl(t,i.line,i,u,g)||i.line!=u.line&&dl(t,u.line,i,u,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fc()}g.addToHistory&&Wl(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var T=i.line,R=t.cm,j;if(t.iter(T,u.line+1,function(de){R&&g.collapsed&&!R.options.lineWrapping&&Mn(de)==R.display.maxLine&&(j=!0),g.collapsed&&T!=i.line&&Rn(de,0),Rc(de,new es(g,T==i.line?i.ch:null,T==u.line?u.ch:null),t.cm&&t.cm.curOp),++T}),g.collapsed&&t.iter(i.line,u.line+1,function(de){Pn(t,de)&&Rn(de,0)}),g.clearOnEnter&&ce(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Ic(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++Cf,g.atomic=!0),R){if(j&&(R.curOp.updateMaxLine=!0),g.collapsed)nn(R,i.line,u.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var le=i.line;le<=u.line;le++)Ci(R,le,"text");g.atomic&&gf(R.doc),Wr(R,"markerAdded",R,g)}return g}var Za=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Za.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Wr(this,"clear")}},Za.prototype.find=function(t,i){return this.primary.find(t,i)},yr(Za);function ma(t,i,u,l,f){l=St(l),l.shared=!1;var g=[ui(t,i,u,l,f)],S=g[0],T=l.widgetNode;return Lr(t,function(R){T&&(l.widgetNode=T.cloneNode(!0)),g.push(ui(R,ut(R,i),ut(R,u),l,f));for(var j=0;j<R.linked.length;++j)if(R.linked[j].isParent)return;S=nt(g)}),new Za(g,S)}function Ef(t){return t.findMarks(N(t.first,0),t.clipPos(N(t.lastLine())),function(i){return i.parent})}function Of(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),g=t.clipPos(f.from),S=t.clipPos(f.to);if(se(g,S)){var T=ui(t,g,S,l.primary,l.primary.type);l.markers.push(T),T.parent=l}}}function pd(t){for(var i=function(l){var f=t[l],g=[f.primary.doc];Lr(f.primary.doc,function(R){return g.push(R)});for(var S=0;S<f.markers.length;S++){var T=f.markers[S];be(g,T.doc)==-1&&(T.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Tf=0,dn=function(t,i,u,l,f){if(!(this instanceof dn))return new dn(t,i,u,l,f);u==null&&(u=0),va.call(this,[new Qa([new Ra("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var g=N(u,0);this.sel=Ki(g),this.history=new To(null),this.id=++Tf,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Oo(this,{from:g,to:g,text:t}),Jr(this,Ki(g),tt)};dn.prototype=Rr(va.prototype,{constructor:dn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=na(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Ir(function(t){var i=N(this.first,0),u=this.first+this.size-1;Jt(this,{from:i,to:N(u,lt(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&mo(this.cm,0,0),Jr(this,Ki(i),tt)}),replaceRange:function(t,i,u,l){i=ut(this,i),u=u?ut(this,u):i,Xa(this,t,i,u,l)},getRange:function(t,i,u){var l=bi(this,ut(this,t),ut(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(ia(this,t))return lt(this,t)},getLineNumber:function(t){return tr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=lt(this,t)),Mn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ut(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ir(function(t,i,u){pf(this,ut(this,typeof t=="number"?N(t,i||0):t),null,u)}),setSelection:Ir(function(t,i,u){pf(this,ut(this,t),ut(this,i||t),u)}),extendSelection:Ir(function(t,i,u){Io(this,ut(this,t),i&&ut(this,i),u)}),extendSelections:Ir(function(t,i){Ja(this,qo(this,t),i)}),extendSelectionsBy:Ir(function(t,i){var u=Xe(this.sel.ranges,t);Ja(this,qo(this,u),i)}),setSelections:Ir(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new rr(ut(this,t[f].anchor),ut(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Jr(this,Ln(this.cm,l,i),u)}}),addSelection:Ir(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new rr(ut(this,t),ut(this,i||t))),Jr(this,Ln(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=bi(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=bi(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Ir(function(t,i,u){for(var l=[],f=this.sel,g=0;g<f.ranges.length;g++){var S=f.ranges[g];l[g]={from:S.from(),to:S.to(),text:this.splitLines(t[g]),origin:u}}for(var T=i&&i!="end"&&sd(this,l,i),R=l.length-1;R>=0;R--)Jt(this,l[R]);T?hf(this,T):this.cm&&za(this.cm)}),undo:Ir(function(){ko(this,"undo")}),redo:Ir(function(){ko(this,"redo")}),undoSelection:Ir(function(){ko(this,"undo",!0)}),redoSelection:Ir(function(){ko(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new To(this.history),Lr(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ka(this.history.done),undone:Ka(this.history.undone)}},setHistory:function(t){var i=this.history=new To(this.history);i.done=Ka(t.done.slice(0),null,!0),i.undone=Ka(t.undone.slice(0),null,!0)},setGutterMarker:Ir(function(t,i,u){return Ro(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&en(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Ir(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&Ro(i,u,"gutter",function(){return u.gutterMarkers[t]=null,en(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!ia(this,t)||(i=t,t=lt(this,t),!t))return null}else if(i=tr(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Ir(function(t,i,u){return Ro(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(X(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Ir(function(t,i,u){return Ro(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[f];if(g)if(u==null)l[f]=null;else{var S=g.match(X(u));if(!S)return!1;var T=S.index+S[0].length;l[f]=g.slice(0,S.index)+(!S.index||T==g.length?"":" ")+g.slice(T)||null}else return!1;return!0})}),addLineWidget:Ir(function(t,i,u){return dd(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return ui(this,ut(this,t),ut(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ut(this,t),ui(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ut(this,t);var i=[],u=lt(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ut(this,t),i=ut(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(g){var S=g.markedSpans;if(S)for(var T=0;T<S.length;T++){var R=S[T];!(R.to!=null&&f==t.line&&t.ch>=R.to||R.from==null&&f!=t.line||R.from!=null&&f==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var g=f.text.length+l;if(g>t)return i=t,!0;t-=g,++u}),ut(this,N(u,i))},indexFromPos:function(t){t=ut(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new dn(na(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new dn(na(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Of(l,Ef(this)),l},unlinkDoc:function(t){if(t instanceof gr&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),pd(Ef(this));break}}if(t.history==this.history){var l=[t.id];Lr(t,function(f){return l.push(f.id)},!0),t.history=new To(null),t.history.done=Ka(this.history.done,l),t.history.undone=Ka(this.history.undone,l)}},iterLinkedDocs:function(t){Lr(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Gn(t)},lineSeparator:function(){return this.lineSep||`
23
+ `},setDirection:Ir(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&uf(this.cm))})}),dn.prototype.eachLine=dn.prototype.iter;var zl=0;function Fs(t){var i=this;if(Rs(i),!(st(i,t)||ai(i.display,t))){Nt(t),O&&(zl=+new Date);var u=Gi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,g=Array(f),S=0,T=function(){++S==f&&Hr(i,function(){u=ut(i.doc,u);var ye={from:u,to:u,text:i.doc.splitLines(g.filter(function(Ie){return Ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};Jt(i.doc,ye),hf(i.doc,Ki(ut(i.doc,u),ut(i.doc,Yi(ye))))})()},R=function(ye,Ie){if(i.options.allowDropFileTypes&&be(i.options.allowDropFileTypes,ye.type)==-1){T();return}var Ne=new FileReader;Ne.onerror=function(){return T()},Ne.onload=function(){var He=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(He)){T();return}g[Ie]=He,T()},Ne.readAsText(ye)},j=0;j<l.length;j++)R(l[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var le=t.dataTransfer.getData("Text");if(le){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Ts(i.doc,Ki(u,u)),de)for(var Ae=0;Ae<de.length;++Ae)Xa(i.doc,"",de[Ae].anchor,de[Ae].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(ye){}}}}function hd(t,i){if(O&&(!t.state.draggingText||+new Date-zl<100)){Ur(i);return}if(!(st(t,i)||ai(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ie)){var u=ee("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function ks(t,i){var u=Gi(t,i);if(!!u){var l=document.createDocumentFragment();ds(t,u,l),t.display.dragCursor||(t.display.dragCursor=ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),ve(t.display.dragCursor,l)}}function Rs(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Pf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var g=0;g<u.length;g++)t(u[g])})}}var If=!1;function vd(){If||(Ff(),If=!0)}function Ff(){var t;ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Pf(kf)},100))}),ce(window,"blur",function(){return Pf(bn)})}function kf(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Qi={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"},Mo=0;Mo<10;Mo++)Qi[Mo+48]=Qi[Mo+96]=String(Mo);for(var Ms=65;Ms<=90;Ms++)Qi[Ms]=String.fromCharCode(Ms);for(var Lo=1;Lo<=12;Lo++)Qi[Lo+111]=Qi[Lo+63235]="F"+Lo;var Fi={};Fi.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"},Fi.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"},Fi.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"},Fi.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"]},Fi.default=F?Fi.macDefault:Fi.pcDefault;function gd(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,g,S=0;S<i.length-1;S++){var T=i[S];if(/^(cmd|meta|m)$/i.test(T))g=!0;else if(/^a(lt)?$/i.test(T))u=!0;else if(/^(c|ctrl|control)$/i.test(T))l=!0;else if(/^s(hift)?$/i.test(T))f=!0;else throw new Error("Unrecognized modifier name: "+T)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),g&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Rf(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Xe(u.split(" "),gd),g=0;g<f.length;g++){var S=void 0,T=void 0;g==f.length-1?(T=f.join(" "),S=l):(T=f.slice(0,g+1).join(" "),S="...");var R=i[T];if(!R)i[T]=S;else if(R!=S)throw new Error("Inconsistent bindings for "+T)}delete t[u]}for(var j in i)t[j]=i[j];return t}function qa(t,i,u,l){i=ki(i);var f=i.call?i.call(t,l):i[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return qa(t,i.fallthrough,u,l);for(var g=0;g<i.fallthrough.length;g++){var S=qa(t,i.fallthrough[g],u,l);if(S)return S}}}function Ls(t){var i=typeof t=="string"?t:Qi[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Gl(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(W?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(W?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Mf(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Qi[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),Gl(u,t,i))}function ki(t){return typeof t=="string"?Fi[t]:t}function wn(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var g=i(u[f]);l.length&&se(g.from,nt(l).to)<=0;){var S=l.pop();if(se(S.from,g.from)<0){g.from=S.from;break}}l.push(g)}xn(t,function(){for(var T=l.length-1;T>=0;T--)Xa(t.doc,"",l[T].from,l[T].to,"+delete");za(t)})}function Ns(t,i,u){var l=Lt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function $l(t,i,u){var l=Ns(t,i.ch,u);return l==null?null:new N(i.line,l,u<0?"after":"before")}function Kl(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var g=ot(u,i.doc.direction);if(g){var S=f<0?nt(g):g[0],T=f<0==(S.level==1),R=T?"after":"before",j;if(S.level>0||i.doc.direction=="rtl"){var le=ja(i,u);j=f<0?u.text.length-1:0;var de=Kn(i,le,j).top;j=wt(function(Ae){return Kn(i,le,Ae).top==de},f<0==(S.level==1)?S.from:S.to-1,j),R=="before"&&(j=Ns(u,j,1))}else j=f<0?S.to:S.from;return new N(l,j,R)}}return new N(l,f<0?u.text.length:0,f<0?"before":"after")}function md(t,i,u,l){var f=ot(i,t.doc.direction);if(!f)return $l(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var g=vt(f,u.ch,u.sticky),S=f[g];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return $l(i,u,l);var T=function(Ye,Qe){return Ns(i,Ye instanceof N?Ye.ch:Ye,Qe)},R,j=function(Ye){return t.options.lineWrapping?(R=R||ja(t,i),Ju(t,i,R,Ye)):{begin:0,end:i.text.length}},le=j(u.sticky=="before"?T(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,Ae=T(u,de?1:-1);if(Ae!=null&&(de?Ae<=S.to&&Ae<=le.end:Ae>=S.from&&Ae>=le.begin)){var ye=de?"before":"after";return new N(u.line,Ae,ye)}}var Ie=function(Ye,Qe,Je){for(var rt=function(dr,zr){return zr?new N(u.line,T(dr,1),"before"):new N(u.line,dr,"after")};Ye>=0&&Ye<f.length;Ye+=Qe){var gt=f[Ye],ct=Qe>0==(gt.level!=1),Dt=ct?Je.begin:T(Je.end,-1);if(gt.from<=Dt&&Dt<gt.to||(Dt=ct?gt.from:T(gt.to,-1),Je.begin<=Dt&&Dt<Je.end))return rt(Dt,ct)}},Ne=Ie(g+l,l,le);if(Ne)return Ne;var He=l>0?le.end:T(le.begin,-1);return He!=null&&!(l>0&&He==i.text.length)&&(Ne=Ie(l>0?0:f.length-1,l,j(He)),Ne)?Ne:null}var _a={selectAll:mf,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),tt)},killLine:function(t){return wn(t,function(i){if(i.empty()){var u=lt(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:N(i.head.line+1,0)}:{from:i.head,to:N(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return wn(t,function(i){return{from:N(i.from().line,0),to:ut(t.doc,N(i.to().line+1,0))}})},delLineLeft:function(t){return wn(t,function(i){return{from:N(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return wn(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return wn(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(N(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(N(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return Lf(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Ds(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return Nf(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},bt)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},bt)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Ds(t,i.head):l},bt)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var g=u[f].from(),S=Le(t.getLine(g.line),g.ch,l);i.push(zt(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return xn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,g=lt(t.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new N(f.line,f.ch-1)),f.ch>0)f=new N(f.line,f.ch+1),t.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),N(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=lt(t.doc,f.line-1).text;S&&(f=new N(f.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),N(f.line-1,S.length-1),f,"+transpose"))}}u.push(new rr(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return xn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);za(t)})},openLine:function(t){return t.replaceSelection(`
24
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Lf(t,i){var u=lt(t.doc,i),l=Mn(u);return l!=u&&(i=tr(l)),Kl(!0,t,l,i,1)}function Nf(t,i){var u=lt(t.doc,i),l=Ru(u);return l!=u&&(i=tr(l)),Kl(!0,t,u,i,-1)}function Ds(t,i){var u=Lf(t,i.line),l=lt(t.doc,u.line),f=ot(l,t.doc.direction);if(!f||f[0].level==0){var g=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=g&&i.ch;return N(u.line,S?0:g,u.sticky)}return u}function No(t,i,u){if(typeof i=="string"&&(i=_a[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=Ge}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function Df(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=qa(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&qa(i,t.options.extraKeys,u,t)||qa(i,t.options.keyMap,u,t)}var yd=new Oe;function eo(t,i,u,l){var f=t.state.keySeq;if(f){if(Ls(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:yd.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),Bf(t,f+" "+i,u,l))return!0}return Bf(t,i,u,l)}function Bf(t,i,u,l){var f=Df(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Wr(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(Nt(u),hs(t)),!!f}function Bs(t,i){var u=Mf(i,!0);return u?i.shiftKey&&!t.state.keySeq?eo(t,"Shift-"+u,i,function(l){return No(t,l,!0)})||eo(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return No(t,l)}):eo(t,u,i,function(l){return No(t,l)}):!1}function Yl(t,i,u){return eo(t,"'"+u+"'",i,function(l){return No(t,l,!0)})}var js=null;function Jl(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Ee(et(i)),!st(i,t))){O&&k<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Bs(i,t);ne&&(js=l?u:null,!l&&u==88&&!Wi&&(F?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!F&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&bd(i)}}function bd(t){var i=t.display.lineDiv;je(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(H(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ce(document,"keyup",u),ce(document,"mouseover",u)}function jf(t){t.keyCode==16&&(this.doc.sel.shift=!1),st(this,t)}function Vs(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(ai(i.display,t)||st(i,t)||t.ctrlKey&&!t.altKey||F&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==js){js=null,Nt(t);return}if(!(ne&&(!t.which||t.which<10)&&Bs(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Yl(i,t,f)||i.display.input.onKeyPress(t))}}}var xd=400,Xl=function(t,i,u){this.time=t,this.pos=i,this.button=u};Xl.prototype.compare=function(t,i,u){return this.time+xd>t&&se(i,this.pos)==0&&u==this.button};var Do,Bo;function Sd(t,i){var u=+new Date;return Bo&&Bo.compare(u,t,i)?(Do=Bo=null,"triple"):Do&&Do.compare(u,t,i)?(Bo=new Xl(u,t,i),Do=null,"double"):(Do=new Xl(u,t,i),Bo=null,"single")}function Vf(t){var i=this,u=i.display;if(!(st(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,ai(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ws(i,t)){var l=Gi(i,t),f=vi(t),g=l?Sd(l,f):"single";at(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Ql(i,f,l,g,t))&&(f==1?l?Uf(i,l,g,t):Kr(t)==u.scroller&&Nt(t):f==2?(l&&Io(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(te?i.display.input.onContextMenu(t):Fl(i)))}}}function Ql(t,i,u,l,f){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,eo(t,Gl(g,f),f,function(S){if(typeof S=="string"&&(S=_a[S]),!S)return!1;var T=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),T=S(t,u)!=Ge}finally{t.state.suppressEdits=!1}return T})}function Us(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var g=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=F?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(F?u.altKey:u.ctrlKey)),f}function Uf(t,i,u,l){O?setTimeout(Tt(Qu,t),0):t.curOp.focus=Ee(et(t));var f=Us(t,u,l),g=t.doc.sel,S;t.options.dragDrop&&tn&&!t.isReadOnly()&&u=="single"&&(S=g.contains(i))>-1&&(se((S=g.ranges[S]).from(),i)<0||i.xRel>0)&&(se(S.to(),i)>0||i.xRel<0)?Wf(t,l,i,f):wd(t,l,i,f)}function Wf(t,i,u,l){var f=t.display,g=!1,S=Hr(t,function(j){U&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Fl(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",T),Be(f.scroller,"dragstart",R),Be(f.scroller,"drop",S),g||(Nt(j),l.addNew||Io(t.doc,u,null,null,l.extend),U&&!ie||O&&k==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),T=function(j){g=g||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},R=function(){return g=!0};U&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,ce(f.wrapper.ownerDocument,"mouseup",S),ce(f.wrapper.ownerDocument,"mousemove",T),ce(f.scroller,"dragstart",R),ce(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Hf(t,i,u){if(u=="char")return new rr(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new rr(N(i.line,0),ut(t.doc,N(i.line+1,0)));var l=u(t,i);return new rr(l.from,l.to)}function wd(t,i,u,l){O&&Fl(t);var f=t.display,g=t.doc;Nt(i);var S,T,R=g.sel,j=R.ranges;if(l.addNew&&!l.extend?(T=g.sel.contains(u),T>-1?S=j[T]:S=new rr(u,u)):(S=g.sel.primary(),T=g.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new rr(u,u)),u=Gi(t,i,!0,!0),T=-1;else{var le=Hf(t,u,l.unit);l.extend?S=Ya(S,le.anchor,le.head,l.extend):S=le}l.addNew?T==-1?(T=j.length,Jr(g,Ln(t,j.concat([S]),T),{scroll:!1,origin:"*mouse"})):j.length>1&&j[T].empty()&&l.unit=="char"&&!l.extend?(Jr(g,Ln(t,j.slice(0,T).concat(j.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),R=g.sel):Fo(g,T,S,Ze):(T=0,Jr(g,new Sn([S],0),Ze),R=g.sel);var de=u;function Ae(Je){if(se(de,Je)!=0)if(de=Je,l.unit=="rectangle"){for(var rt=[],gt=t.options.tabSize,ct=Le(lt(g,u.line).text,u.ch,gt),Dt=Le(lt(g,Je.line).text,Je.ch,gt),dr=Math.min(ct,Dt),zr=Math.max(ct,Dt),Sr=Math.min(u.line,Je.line),An=Math.min(t.lastLine(),Math.max(u.line,Je.line));Sr<=An;Sr++){var Gt=lt(g,Sr).text,Nr=Et(Gt,dr,gt);dr==zr?rt.push(new rr(N(Sr,Nr),N(Sr,Nr))):Gt.length>Nr&&rt.push(new rr(N(Sr,Nr),N(Sr,Et(Gt,zr,gt))))}rt.length||rt.push(new rr(u,u)),Jr(g,Ln(t,R.ranges.slice(0,T).concat(rt),T),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var hn=S,M=Hf(t,Je,l.unit),Bt=hn.anchor,dt;se(M.anchor,Bt)>0?(dt=M.head,Bt=Vt(hn.from(),M.anchor)):(dt=M.anchor,Bt=It(hn.to(),M.head));var mr=R.ranges.slice(0);mr[T]=ya(t,new rr(ut(g,Bt),dt)),Jr(g,Ln(t,mr,T),Ze)}}var ye=f.wrapper.getBoundingClientRect(),Ie=0;function Ne(Je){var rt=++Ie,gt=Gi(t,Je,!0,l.unit=="rectangle");if(!!gt)if(se(gt,de)!=0){t.curOp.focus=Ee(et(t)),Ae(gt);var ct=ys(f,g);(gt.line>=ct.to||gt.line<ct.from)&&setTimeout(Hr(t,function(){Ie==rt&&Ne(Je)}),150)}else{var Dt=Je.clientY<ye.top?-20:Je.clientY>ye.bottom?20:0;Dt&&setTimeout(Hr(t,function(){Ie==rt&&(f.scroller.scrollTop+=Dt,Ne(Je))}),50)}}function He(Je){t.state.selectingText=!1,Ie=1/0,Je&&(Nt(Je),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Ye),Be(f.wrapper.ownerDocument,"mouseup",Qe),g.history.lastSelOrigin=null}var Ye=Hr(t,function(Je){Je.buttons===0||!vi(Je)?He(Je):Ne(Je)}),Qe=Hr(t,He);t.state.selectingText=Qe,ce(f.wrapper.ownerDocument,"mousemove",Ye),ce(f.wrapper.ownerDocument,"mouseup",Qe)}function ya(t,i){var u=i.anchor,l=i.head,f=lt(t.doc,u.line);if(se(u,l)==0&&u.sticky==l.sticky)return i;var g=ot(f);if(!g)return i;var S=vt(g,u.ch,u.sticky),T=g[S];if(T.from!=u.ch&&T.to!=u.ch)return i;var R=S+(T.from==u.ch==(T.level!=1)?0:1);if(R==0||R==g.length)return i;var j;if(l.line!=u.line)j=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=vt(g,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(T.level==1?-1:1);le==R-1||le==R?j=de<0:j=de>0}var Ae=g[R+(j?-1:0)],ye=j==(Ae.level==1),Ie=ye?Ae.from:Ae.to,Ne=ye?"after":"before";return u.ch==Ie&&u.sticky==Ne?i:new rr(new N(u.line,Ie,Ne),l)}function Zl(t,i,u,l){var f,g;if(i.touches)f=i.touches[0].clientX,g=i.touches[0].clientY;else try{f=i.clientX,g=i.clientY}catch(Ae){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Nt(i);var S=t.display,T=S.lineDiv.getBoundingClientRect();if(g>T.bottom||!kt(t,u))return zn(i);g-=T.top-S.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var j=S.gutters.childNodes[R];if(j&&j.getBoundingClientRect().right>=f){var le=ti(t.doc,g),de=t.display.gutterSpecs[R];return Ke(t,u,t,le,de.className,i),zn(i)}}}function Ws(t,i){return Zl(t,i,"gutterClick",!0)}function ql(t,i){ai(t.display,i)||Op(t,i)||st(t,i,"contextmenu")||te||t.display.input.onContextMenu(i)}function Op(t,i){return kt(t,"gutterContextMenu")?Zl(t,i,"gutterContextMenu",!1):!1}function jo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Va(t)}var to={toString:function(){return"CodeMirror.Init"}},_l={},Hs={};function Ad(t){var i=t.optionHandlers;function u(l,f,g,S){t.defaults[l]=f,g&&(i[l]=S?function(T,R,j){j!=to&&g(T,R,j)}:g)}t.defineOption=u,t.Init=to,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ul(l)},!0),u("indentUnit",2,Ul,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Co(l),Va(l),nn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var g=[],S=l.doc.first;l.doc.iter(function(R){for(var j=0;;){var le=R.text.indexOf(f,j);if(le==-1)break;j=le+f.length,g.push(N(S,le))}S++});for(var T=g.length-1;T>=0;T--)Xa(l.doc,f,g[T],N(g[T].line,g[T].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,g){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),g!=to&&l.refresh()}),u("specialCharPlaceholder",as,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!Q),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){jo(l),wo(l)},!0),u("keyMap","default",function(l,f,g){var S=ki(f),T=g!=to&&ki(g);T&&T.detach&&T.detach(l,S),S.attach&&S.attach(l,T||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Gf,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Cs(f,l.options.lineNumbers),wo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Pl(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Ga(l)},!0),u("scrollbarStyle","native",function(l){ef(l),Ga(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Cs(l.options.gutters,f),wo(l)},!0),u("firstLineNumber",1,wo,!0),u("lineNumberFormatter",function(l){return l},wo,!0),u("showCursorWhenSelecting",!1,Ha,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(bn(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,zf),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Ha,!0),u("singleCursorHeightPerLine",!0,Ha,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Co,!0),u("addModeClass",!1,Co,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Co,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function zf(t,i,u){var l=u&&u!=to;if(!i!=!l){var f=t.display.dragFunctions,g=i?ce:Be;g(t.display.scroller,"dragstart",f.start),g(t.display.scroller,"dragenter",f.enter),g(t.display.scroller,"dragover",f.over),g(t.display.scroller,"dragleave",f.leave),g(t.display.scroller,"drop",f.drop)}}function Gf(t){t.options.lineWrapping?(je(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(H(t.display.wrapper,"CodeMirror-wrap"),is(t)),fs(t),nn(t),Va(t),setTimeout(function(){return Ga(t)},100)}function gr(t,i){var u=this;if(!(this instanceof gr))return new gr(t,i);this.options=i=i?St(i):{},St(_l,i,!1);var l=i.value;typeof l=="string"?l=new dn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new gr.inputStyles[i.inputStyle](this),g=this.display=new nf(t,l,f,i);g.wrapper.CodeMirror=this,jo(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ef(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 Oe,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),O&&k<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Cd(this),vd(),si(this),this.curOp.forceUpdate=!0,Es(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&vs(u)},20):bn(this);for(var S in Hs)Hs.hasOwnProperty(S)&&Hs[S](this,i[S],to);As(this),i.finishInit&&i.finishInit(this);for(var T=0;T<zs.length;++T)zs[T](this);$i(this),U&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}gr.defaults=_l,gr.optionHandlers=Hs;function Cd(t){var i=t.display;ce(i.scroller,"mousedown",Hr(t,Vf)),O&&k<11?ce(i.scroller,"dblclick",Hr(t,function(R){if(!st(t,R)){var j=Gi(t,R);if(!(!j||Ws(t,R)||ai(t.display,R))){Nt(R);var le=t.findWordAt(j);Io(t.doc,le.anchor,le.head)}}})):ce(i.scroller,"dblclick",function(R){return st(t,R)||Nt(R)}),ce(i.scroller,"contextmenu",function(R){return ql(t,R)}),ce(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||ql(t,R)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(R){if(R.touches.length!=1)return!1;var j=R.touches[0];return j.radiusX<=1&&j.radiusY<=1}function S(R,j){if(j.left==null)return!0;var le=j.left-R.left,de=j.top-R.top;return le*le+de*de>20*20}ce(i.scroller,"touchstart",function(R){if(!st(t,R)&&!g(R)&&!Ws(t,R)){i.input.ensurePolled(),clearTimeout(u);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ce(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ce(i.scroller,"touchend",function(R){var j=i.activeTouch;if(j&&!ai(i,R)&&j.left!=null&&!j.moved&&new Date-j.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!j.prev||S(j,j.prev)?de=new rr(le,le):!j.prev.prev||S(j,j.prev.prev)?de=t.findWordAt(le):de=new rr(N(le.line,0),ut(t.doc,N(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),Nt(R)}f()}),ce(i.scroller,"touchcancel",f),ce(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yo(t,i.scroller.scrollTop),ca(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ce(i.scroller,"mousewheel",function(R){return of(t,R)}),ce(i.scroller,"DOMMouseScroll",function(R){return of(t,R)}),ce(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){st(t,R)||Ur(R)},over:function(R){st(t,R)||(ks(t,R),Ur(R))},start:function(R){return hd(t,R)},drop:Hr(t,Fs),leave:function(R){st(t,R)||Rs(t)}};var T=i.input.getField();ce(T,"keyup",function(R){return jf.call(t,R)}),ce(T,"keydown",Hr(t,Jl)),ce(T,"keypress",Hr(t,Vs)),ce(T,"focus",function(R){return vs(t,R)}),ce(T,"blur",function(R){return bn(t,R)})}var zs=[];gr.defineInitHook=function(t){return zs.push(t)};function Vo(t,i,u,l){var f=t.doc,g;u==null&&(u="add"),u=="smart"&&(f.mode.indent?g=Ia(t,i).state:u="prev");var S=t.options.tabSize,T=lt(f,i),R=Le(T.text,null,S);T.stateAfter&&(T.stateAfter=null);var j=T.text.match(/^\s*/)[0],le;if(!l&&!/\S/.test(T.text))le=0,u="not";else if(u=="smart"&&(le=f.mode.indent(g,T.text.slice(j.length),T.text),le==Ge||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=Le(lt(f,i-1).text,null,S):le=0:u=="add"?le=R+t.options.indentUnit:u=="subtract"?le=R-t.options.indentUnit:typeof u=="number"&&(le=R+u),le=Math.max(0,le);var de="",Ae=0;if(t.options.indentWithTabs)for(var ye=Math.floor(le/S);ye;--ye)Ae+=S,de+=" ";if(Ae<le&&(de+=zt(le-Ae)),de!=j)return Xa(f,de,N(i,0),N(i,j.length),"+input"),T.stateAfter=null,!0;for(var Ie=0;Ie<f.sel.ranges.length;Ie++){var Ne=f.sel.ranges[Ie];if(Ne.head.line==i&&Ne.head.ch<j.length){var He=N(i,j.length);Fo(f,Ie,new rr(He,He));break}}}var pn=null;function Gs(t){pn=t}function Uo(t,i,u,l,f){var g=t.doc;t.display.shift=!1,l||(l=g.sel);var S=+new Date-200,T=f=="paste"||t.state.pasteIncoming>S,R=Gn(i),j=null;if(T&&l.ranges.length>1)if(pn&&pn.text.join(`
25
+ `)==i){if(l.ranges.length%pn.text.length==0){j=[];for(var le=0;le<pn.text.length;le++)j.push(g.splitLines(pn.text[le]))}}else R.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(j=Xe(R,function(Ye){return[Ye]}));for(var de=t.curOp.updateInput,Ae=l.ranges.length-1;Ae>=0;Ae--){var ye=l.ranges[Ae],Ie=ye.from(),Ne=ye.to();ye.empty()&&(u&&u>0?Ie=N(Ie.line,Ie.ch-u):t.state.overwrite&&!T?Ne=N(Ne.line,Math.min(lt(g,Ne.line).text.length,Ne.ch+nt(R).length)):T&&pn&&pn.lineWise&&pn.text.join(`
26
+ `)==R.join(`
27
+ `)&&(Ie=Ne=N(Ie.line,0)));var He={from:Ie,to:Ne,text:j?j[Ae%j.length]:R,origin:f||(T?"paste":t.state.cutIncoming>S?"cut":"+input")};Jt(t.doc,He),Wr(t,"inputRead",t,He)}i&&!T&&Kf(t,i),za(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function $f(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&xn(i,function(){return Uo(i,u,0,null,"paste")}),!0}function Kf(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var g=t.getModeAt(f.head),S=!1;if(g.electricChars){for(var T=0;T<g.electricChars.length;T++)if(i.indexOf(g.electricChars.charAt(T))>-1){S=Vo(t,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(lt(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=Vo(t,f.head.line,"smart"));S&&Wr(t,"electricInput",t,f.head.line)}}}function Wo(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var f=t.doc.sel.ranges[l].head.line,g={anchor:N(f,0),head:N(f+1,0)};u.push(g),i.push(t.getRange(g.anchor,g.head))}return{text:i,ranges:u}}function eu(t,i,u,l){t.setAttribute("autocorrect",u?"on":"off"),t.setAttribute("autocapitalize",l?"on":"off"),t.setAttribute("spellcheck",!!i)}function Ed(){var t=ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=ee("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),G&&(t.style.border="1px solid black"),i}function Od(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){at(this).focus(),this.display.input.focus()},setOption:function(l,f){var g=this.options,S=g[l];g[l]==f&&l!="mode"||(g[l]=f,i.hasOwnProperty(l)&&Hr(this,i[l])(this,f,S),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](ki(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,g=0;g<f.length;++g)if(f[g]==l||f[g].name==l)return f.splice(g,1),!0},addOverlay:Pr(function(l,f){var g=l.token?l:t.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");er(this.state.overlays,{mode:g,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,nn(this)}),removeOverlay:Pr(function(l){for(var f=this.state.overlays,g=0;g<f.length;++g){var S=f[g].modeSpec;if(S==l||typeof l=="string"&&S.name==l){f.splice(g,1),this.state.modeGen++,nn(this);return}}}),indentLine:Pr(function(l,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ia(this.doc,l)&&Vo(this,l,f,g)}),indentSelection:Pr(function(l){for(var f=this.doc.sel.ranges,g=-1,S=0;S<f.length;S++){var T=f[S];if(T.empty())T.head.line>g&&(Vo(this,T.head.line,l,!0),g=T.head.line,S==this.doc.sel.primIndex&&za(this));else{var R=T.from(),j=T.to(),le=Math.max(g,R.line);g=Math.min(this.lastLine(),j.line-(j.ch?0:1))+1;for(var de=le;de<g;++de)Vo(this,de,l);var Ae=this.doc.sel.ranges;R.ch==0&&f.length==Ae.length&&Ae[S].from().ch>0&&Fo(this.doc,S,new rr(R,Ae[S].to()),tt)}}}),getTokenAt:function(l,f){return Tu(this,l,f)},getLineTokens:function(l,f){return Tu(this,N(l),f,!0)},getTokenTypeAt:function(l){l=ut(this.doc,l);var f=Cu(this,lt(this.doc,l.line)),g=0,S=(f.length-1)/2,T=l.ch,R;if(T==0)R=f[2];else for(;;){var j=g+S>>1;if((j?f[j*2-1]:0)>=T)S=j;else if(f[j*2+1]<T)g=j+1;else{R=f[j*2+2];break}}var le=R?R.indexOf("overlay "):-1;return le<0?R:le==0?null:R.slice(0,le-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var g=[];if(!u.hasOwnProperty(f))return g;var S=u[f],T=this.getModeAt(l);if(typeof T[f]=="string")S[T[f]]&&g.push(S[T[f]]);else if(T[f])for(var R=0;R<T[f].length;R++){var j=S[T[f][R]];j&&g.push(j)}else T.helperType&&S[T.helperType]?g.push(S[T.helperType]):S[T.name]&&g.push(S[T.name]);for(var le=0;le<S._global.length;le++){var de=S._global[le];de.pred(T,this)&&be(g,de.val)==-1&&g.push(de.val)}return g},getStateAfter:function(l,f){var g=this.doc;return l=ir(g,l==null?g.first+g.size-1:l),Ia(this,l+1,f).state},cursorCoords:function(l,f){var g,S=this.doc.sel.primary();return l==null?g=S.head:typeof l=="object"?g=ut(this.doc,l):g=l?S.from():S.to(),Yn(this,g,f||"page")},charCoords:function(l,f){return ss(this,ut(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Yr(this,l,f||"page"),El(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Yr(this,{top:l,left:0},f||"page").top,ti(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,g){var S=!1,T;if(typeof l=="number"){var R=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>R&&(l=R,S=!0),T=lt(this.doc,l)}else T=l;return go(this,T,{top:0,left:0},f||"page",g||S).top+(S?this.doc.height-wi(T):0)},defaultTextHeight:function(){return ua(this.display)},defaultCharWidth:function(){return fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,g,S,T){var R=this.display;l=Yn(this,ut(this.doc,l));var j=l.bottom,le=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),R.sizer.appendChild(f),S=="over")j=l.top;else if(S=="above"||S=="near"){var de=Math.max(R.wrapper.clientHeight,this.doc.height),Ae=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?j=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(j=l.bottom),le+f.offsetWidth>Ae&&(le=Ae-f.offsetWidth)}f.style.top=j+"px",f.style.left=f.style.right="",T=="right"?(le=R.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(T=="left"?le=0:T=="middle"&&(le=(R.sizer.clientWidth-f.offsetWidth)/2),f.style.left=le+"px"),g&&kl(this,{left:le,top:j,right:le+f.offsetWidth,bottom:j+f.offsetHeight})},triggerOnKeyDown:Pr(Jl),triggerOnKeyPress:Pr(Vs),triggerOnKeyUp:jf,triggerOnMouseDown:Pr(Vf),execCommand:function(l){if(_a.hasOwnProperty(l))return _a[l].call(null,this)},triggerElectric:Pr(function(l){Kf(this,l)}),findPosH:function(l,f,g,S){var T=1;f<0&&(T=-1,f=-f);for(var R=ut(this.doc,l),j=0;j<f&&(R=tu(this.doc,R,T,g,S),!R.hitSide);++j);return R},moveH:Pr(function(l,f){var g=this;this.extendSelectionsBy(function(S){return g.display.shift||g.doc.extend||S.empty()?tu(g.doc,S.head,l,f,g.options.rtlMoveVisually):l<0?S.from():S.to()},bt)}),deleteH:Pr(function(l,f){var g=this.doc.sel,S=this.doc;g.somethingSelected()?S.replaceSelection("",null,"+delete"):wn(this,function(T){var R=tu(S,T.head,l,f,!1);return l<0?{from:R,to:T.head}:{from:T.head,to:R}})}),findPosV:function(l,f,g,S){var T=1,R=S;f<0&&(T=-1,f=-f);for(var j=ut(this.doc,l),le=0;le<f;++le){var de=Yn(this,j,"div");if(R==null?R=de.left:de.left=R,j=ru(this,de,T,g),j.hitSide)break}return j},moveV:Pr(function(l,f){var g=this,S=this.doc,T=[],R=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(le){if(R)return l<0?le.from():le.to();var de=Yn(g,le.head,"div");le.goalColumn!=null&&(de.left=le.goalColumn),T.push(de.left);var Ae=ru(g,de,l,f);return f=="page"&&le==S.sel.primary()&&Ml(g,ss(g,Ae,"div").top-de.top),Ae},bt),T.length)for(var j=0;j<S.sel.ranges.length;j++)S.sel.ranges[j].goalColumn=T[j]}),findWordAt:function(l){var f=this.doc,g=lt(f,l.line).text,S=l.ch,T=l.ch;if(g){var R=this.getHelper(l,"wordChars");(l.sticky=="before"||T==g.length)&&S?--S:++T;for(var j=g.charAt(S),le=Ar(j,R)?function(de){return Ar(de,R)}:/\s/.test(j)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Ar(de)};S>0&&le(g.charAt(S-1));)--S;for(;T<g.length&&le(g.charAt(T));)++T}return new rr(N(l.line,S),N(l.line,T))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ee(et(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pr(function(l,f){mo(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-oi(this)-this.display.barHeight,width:l.scrollWidth-oi(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:la(this)}},scrollIntoView:Pr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:N(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?qc(this,l):Zu(this,l.from,l.to,l.margin)}),setSize:Pr(function(l,f){var g=this,S=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&Sl(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(R){if(R.widgets){for(var j=0;j<R.widgets.length;j++)if(R.widgets[j].noHScroll){Ci(g,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return xn(this,l)},startOperation:function(){return si(this)},endOperation:function(){return $i(this)},refresh:Pr(function(){var l=this.display.cachedTextHeight;nn(this),this.curOp.forceUpdate=!0,Va(this),mo(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(l==null||Math.abs(l-ua(this.display))>.5||this.options.lineWrapping)&&fs(this),Ke(this,"refresh",this)}),swapDoc:Pr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Es(this,l),Va(this),this.display.input.reset(),mo(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},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}},yr(t),t.registerHelper=function(l,f,g){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][f]=g},t.registerGlobalHelper=function(l,f,g,S){t.registerHelper(l,f,S),u[l]._global.push({pred:g,val:S})}}function tu(t,i,u,l,f){var g=i,S=u,T=lt(t,i.line),R=f&&t.direction=="rtl"?-u:u;function j(){var Qe=i.line+R;return Qe<t.first||Qe>=t.first+t.size?!1:(i=new N(Qe,i.ch,i.sticky),T=lt(t,Qe))}function le(Qe){var Je;if(l=="codepoint"){var rt=T.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(rt))Je=null;else{var gt=u>0?rt>=55296&&rt<56320:rt>=56320&&rt<57343;Je=new N(i.line,Math.max(0,Math.min(T.text.length,i.ch+u*(gt?2:1))),-u)}}else f?Je=md(t.cm,T,i,u):Je=$l(T,i,u);if(Je==null)if(!Qe&&j())i=Kl(f,t.cm,T,i.line,R);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")le();else if(l=="column")le(!0);else if(l=="word"||l=="group")for(var de=null,Ae=l=="group",ye=t.cm&&t.cm.getHelper(i,"wordChars"),Ie=!0;!(u<0&&!le(!Ie));Ie=!1){var Ne=T.text.charAt(i.ch)||`
28
+ `,He=Ar(Ne,ye)?"w":Ae&&Ne==`
29
+ `?"n":!Ae||/\s/.test(Ne)?null:"p";if(Ae&&!Ie&&!He&&(He="s"),de&&de!=He){u<0&&(u=1,le(),i.sticky="after");break}if(He&&(de=He),u>0&&!le(!Ie))break}var Ye=Is(t,i,g,S,!0);return Me(g,Ye)&&(Ye.hitSide=!0),Ye}function ru(t,i,u,l){var f=t.doc,g=i.left,S;if(l=="page"){var T=Math.min(t.display.wrapper.clientHeight,at(t).innerHeight||f(t).documentElement.clientHeight),R=Math.max(T-.5*ua(t.display),3);S=(u>0?i.bottom:i.top)+u*R}else l=="line"&&(S=u>0?i.bottom+3:i.top-3);for(var j;j=El(t,g,S),!!j.outside;){if(u<0?S<=0:S>=f.height){j.hitSide=!0;break}S+=u*5}return j}var lr=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};lr.prototype.init=function(t){var i=this,u=this,l=u.cm,f=u.div=t.lineDiv;f.contentEditable=!0,eu(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(T){for(var R=T.target;R;R=R.parentNode){if(R==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}ce(f,"paste",function(T){!g(T)||st(l,T)||$f(T,l)||k<=11&&setTimeout(Hr(l,function(){return i.updateFromDOM()}),20)}),ce(f,"compositionstart",function(T){i.composing={data:T.data,done:!1}}),ce(f,"compositionupdate",function(T){i.composing||(i.composing={data:T.data,done:!1})}),ce(f,"compositionend",function(T){i.composing&&(T.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ce(f,"touchstart",function(){return u.forceCompositionEnd()}),ce(f,"input",function(){i.composing||i.readFromDOMSoon()});function S(T){if(!(!g(T)||st(l,T))){if(l.somethingSelected())Gs({lineWise:!1,text:l.getSelections()}),T.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var R=Wo(l);Gs({lineWise:!0,text:R.text}),T.type=="cut"&&l.operation(function(){l.setSelections(R.ranges,0,tt),l.replaceSelection("",null,"cut")})}else return;if(T.clipboardData){T.clipboardData.clearData();var j=pn.text.join(`
30
30
  `);if(T.clipboardData.setData("Text",j),T.clipboardData.getData("Text")==j){T.preventDefault();return}}var le=Ed(),de=le.firstChild;eu(de),l.display.lineSpace.insertBefore(le,l.display.lineSpace.firstChild),de.value=pn.text.join(`
31
- `);var we=Ee(f.ownerDocument);it(de),setTimeout(function(){l.display.lineSpace.removeChild(le),we.focus(),we==f&&u.showPrimarySelection()},50)}}ce(f,"copy",S),ce(f,"cut",S)},lr.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},lr.prototype.prepareSelection=function(){var t=Xu(this.cm,!1);return t.focus=Ee(this.div.ownerDocument)==this.div,t},lr.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},lr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},lr.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){t.removeAllRanges();return}var g=$s(i,t.anchorNode,t.anchorOffset),S=$s(i,t.focusNode,t.focusOffset);if(!(g&&!g.bad&&S&&!S.bad&&se(Vt(g,S),l)==0&&se(It(g,S),f)==0)){var T=i.display.view,M=l.line>=i.display.viewFrom&&Yf(i,l)||{node:T[0].measure.map[2],offset:0},j=f.line<i.display.viewTo&&Yf(i,f);if(!j){var le=T[T.length-1].measure,de=le.maps?le.maps[le.maps.length-1]:le.map;j={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!M||!j){t.removeAllRanges();return}var we=t.rangeCount&&t.getRangeAt(0),ye;try{ye=z(M.node,M.offset,j.offset,j.node)}catch(Ie){}ye&&(!d&&i.state.focused?(t.collapse(M.node,M.offset),ye.collapsed||(t.removeAllRanges(),t.addRange(ye))):(t.removeAllRanges(),t.addRange(ye)),we&&t.anchorNode==null?t.addRange(we):d&&this.startGracePeriod()),this.rememberSelection()}},lr.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},lr.prototype.showMultipleSelections=function(t){he(this.cm.display.cursorDiv,t.cursors),he(this.cm.display.selectionDiv,t.selection)},lr.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},lr.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ge(this.div,i)},lr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ee(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},lr.prototype.blur=function(){this.div.blur()},lr.prototype.getField=function(){return this.div},lr.prototype.supportsTouch=function(){return!0},lr.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):xn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},lr.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},lr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(D&&re&&this.cm.display.gutterSpecs.length&&Td(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=$s(i,t.anchorNode,t.anchorOffset),l=$s(i,t.focusNode,t.focusOffset);u&&l&&xn(i,function(){Jr(i.doc,Ki(u,l),tt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},lr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=B(l.line-1,lt(t.doc,l.line-1).length)),f.ch==lt(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=B(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var g,S,T;l.line==i.viewFrom||(g=Ai(t,l.line))==0?(S=tr(i.view[0].line),T=i.view[0].node):(S=tr(i.view[g].line),T=i.view[g-1].node.nextSibling);var M=Ai(t,f.line),j,le;if(M==i.view.length-1?(j=i.viewTo-1,le=i.lineDiv.lastChild):(j=tr(i.view[M+1].line)-1,le=i.view[M+1].node.previousSibling),!T)return!1;for(var de=t.doc.splitLines(Jf(t,T,le,S,j)),we=bi(t.doc,B(S,0),B(j,lt(t.doc,j).text.length));de.length>1&&we.length>1;)if(nt(de)==nt(we))de.pop(),we.pop(),j--;else if(de[0]==we[0])de.shift(),we.shift(),S++;else break;for(var ye=0,Ie=0,Ne=de[0],He=we[0],Ye=Math.min(Ne.length,He.length);ye<Ye&&Ne.charCodeAt(ye)==He.charCodeAt(ye);)++ye;for(var Qe=nt(de),Je=nt(we),rt=Math.min(Qe.length-(de.length==1?ye:0),Je.length-(we.length==1?ye:0));Ie<rt&&Qe.charCodeAt(Qe.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)++Ie;if(de.length==1&&we.length==1&&S==l.line)for(;ye&&ye>l.ch&&Qe.charCodeAt(Qe.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)ye--,Ie++;de[de.length-1]=Qe.slice(0,Qe.length-Ie).replace(/^\u200b+/,""),de[0]=de[0].slice(ye).replace(/\u200b+$/,"");var gt=B(S,ye),ct=B(j,we.length?nt(we).length-Ie:0);if(de.length>1||de[0]||se(gt,ct))return Xa(t.doc,de,gt,ct,"+input"),!0},lr.prototype.ensurePolled=function(){this.forceCompositionEnd()},lr.prototype.reset=function(){this.forceCompositionEnd()},lr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},lr.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},lr.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&xn(this.cm,function(){return nn(t.cm)})},lr.prototype.setUneditable=function(t){t.contentEditable="false"},lr.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Hr(this.cm,Uo)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},lr.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},lr.prototype.onContextMenu=function(){},lr.prototype.resetPosition=function(){},lr.prototype.needsContentAttribute=!0;function Yf(t,i){var u=xl(t,i.line);if(!u||u.hidden)return null;var l=lt(t.doc,i.line),f=os(u,l,i.line),g=ot(l,t.doc.direction),S="left";if(g){var T=vt(g,i.ch);S=T%2?"right":"left"}var M=vo(f.map,i.ch,S);return M.offset=M.collapse=="right"?M.end:M.start,M}function Td(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ba(t,i){return i&&(t.bad=!0),t}function Jf(t,i,u,l,f){var g="",S=!1,T=t.doc.lineSeparator(),M=!1;function j(ye){return function(Ie){return Ie.id==ye}}function le(){S&&(g+=T,M&&(g+=T),S=M=!1)}function de(ye){ye&&(le(),g+=ye)}function we(ye){if(ye.nodeType==1){var Ie=ye.getAttribute("cm-text");if(Ie){de(Ie);return}var Ne=ye.getAttribute("cm-marker"),He;if(Ne){var Ye=t.findMarks(B(l,0),B(f+1,0),j(+Ne));Ye.length&&(He=Ye[0].find(0))&&de(bi(t.doc,He.from,He.to).join(T));return}if(ye.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(ye.nodeName);if(!/^br$/i.test(ye.nodeName)&&ye.textContent.length==0)return;Qe&&le();for(var Je=0;Je<ye.childNodes.length;Je++)we(ye.childNodes[Je]);/^(pre|p)$/i.test(ye.nodeName)&&(M=!0),Qe&&(S=!0)}else ye.nodeType==3&&de(ye.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;we(i),i!=u;)i=i.nextSibling,M=!1;return g}function $s(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return ba(t.clipPos(B(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var g=t.display.view[f];if(g.node==l)return Pd(g,i,u)}}function Pd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ge(l,i))return ba(B(tr(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var g=t.rest?nt(t.rest):t.line;return ba(B(tr(g),g.text.length),f)}var S=i.nodeType==3?i:null,T=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));T.parentNode!=l;)T=T.parentNode;var M=t.measure,j=M.maps;function le(He,Ye,Qe){for(var Je=-1;Je<(j?j.length:0);Je++)for(var rt=Je<0?M.map:j[Je],gt=0;gt<rt.length;gt+=3){var ct=rt[gt+2];if(ct==He||ct==Ye){var Dt=tr(Je<0?t.line:t.rest[Je]),dr=rt[gt]+Qe;return(Qe<0||ct!=He)&&(dr=rt[gt+(Qe?1:0)]),B(Dt,dr)}}}var de=le(S,T,u);if(de)return ba(de,f);for(var we=T.nextSibling,ye=S?S.nodeValue.length-u:0;we;we=we.nextSibling){if(de=le(we,we.firstChild,0),de)return ba(B(de.line,de.ch-ye),f);ye+=we.textContent.length}for(var Ie=T.previousSibling,Ne=u;Ie;Ie=Ie.previousSibling){if(de=le(Ie,Ie.firstChild,-1),de)return ba(B(de.line,de.ch+Ne),f);Ne+=Ie.textContent.length}}var Or=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Oe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Or.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),$&&(f.style.width="0px"),ce(f,"input",function(){O&&k>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ce(f,"paste",function(S){st(l,S)||$f(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function g(S){if(!st(l,S)){if(l.somethingSelected())Gs({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var T=Wo(l);Gs({lineWise:!0,text:T.text}),S.type=="cut"?l.setSelections(T.ranges,null,tt):(u.prevInput="",f.value=T.text.join(`
32
- `),it(f))}else return;S.type=="cut"&&(l.state.cutIncoming=+new Date)}}ce(f,"cut",g),ce(f,"copy",g),ce(t.scroller,"paste",function(S){if(!(ai(t,S)||st(l,S))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var T=new Event("paste");T.clipboardData=S.clipboardData,f.dispatchEvent(T)}}),ce(t.lineSpace,"selectstart",function(S){ai(t,S)||Nt(S)}),ce(f,"compositionstart",function(){var S=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:S,range:l.markText(S,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ce(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Or.prototype.createField=function(t){this.wrapper=Ed(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;eu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Or.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Xu(t);if(t.options.moveInputWithCursor){var f=Yn(t,u.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),S=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+S.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+S.left-g.left))}return l},Or.prototype.showSelection=function(t){var i=this.cm,u=i.display;he(u.cursorDiv,t.cursors),he(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Or.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&it(this.textarea),O&&k>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",O&&k>=9&&(this.hasSelection=null));this.resetting=!1}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||Ee(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Or.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Or.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ui(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=u.value;if(f==l&&!i.somethingSelected())return!1;if(O&&k>=9&&this.hasSelection===f||F&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=f.charCodeAt(0);if(g==8203&&!l&&(l="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,T=Math.min(l.length,f.length);S<T&&l.charCodeAt(S)==f.charCodeAt(S);)++S;return xn(i,function(){Uo(i,f.slice(S),l.length-S,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
- `)>-1?u.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){O&&k>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=Gi(u,t),S=l.scroller.scrollTop;if(!g||ne)return;var T=u.options.resetSelectionOnContextMenu;T&&u.doc.sel.contains(g)==-1&&Hr(u,Jr)(u.doc,Ki(g),tt);var M=f.style.cssText,j=i.wrapper.style.cssText,le=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
31
+ `);var Ae=Ee(f.ownerDocument);it(de),setTimeout(function(){l.display.lineSpace.removeChild(le),Ae.focus(),Ae==f&&u.showPrimarySelection()},50)}}ce(f,"copy",S),ce(f,"cut",S)},lr.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},lr.prototype.prepareSelection=function(){var t=Xu(this.cm,!1);return t.focus=Ee(this.div.ownerDocument)==this.div,t},lr.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},lr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},lr.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){t.removeAllRanges();return}var g=$s(i,t.anchorNode,t.anchorOffset),S=$s(i,t.focusNode,t.focusOffset);if(!(g&&!g.bad&&S&&!S.bad&&se(Vt(g,S),l)==0&&se(It(g,S),f)==0)){var T=i.display.view,R=l.line>=i.display.viewFrom&&Yf(i,l)||{node:T[0].measure.map[2],offset:0},j=f.line<i.display.viewTo&&Yf(i,f);if(!j){var le=T[T.length-1].measure,de=le.maps?le.maps[le.maps.length-1]:le.map;j={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!R||!j){t.removeAllRanges();return}var Ae=t.rangeCount&&t.getRangeAt(0),ye;try{ye=z(R.node,R.offset,j.offset,j.node)}catch(Ie){}ye&&(!d&&i.state.focused?(t.collapse(R.node,R.offset),ye.collapsed||(t.removeAllRanges(),t.addRange(ye))):(t.removeAllRanges(),t.addRange(ye)),Ae&&t.anchorNode==null?t.addRange(Ae):d&&this.startGracePeriod()),this.rememberSelection()}},lr.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},lr.prototype.showMultipleSelections=function(t){ve(this.cm.display.cursorDiv,t.cursors),ve(this.cm.display.selectionDiv,t.selection)},lr.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},lr.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ge(this.div,i)},lr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ee(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},lr.prototype.blur=function(){this.div.blur()},lr.prototype.getField=function(){return this.div},lr.prototype.supportsTouch=function(){return!0},lr.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):xn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},lr.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},lr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(L&&re&&this.cm.display.gutterSpecs.length&&Td(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=$s(i,t.anchorNode,t.anchorOffset),l=$s(i,t.focusNode,t.focusOffset);u&&l&&xn(i,function(){Jr(i.doc,Ki(u,l),tt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},lr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=N(l.line-1,lt(t.doc,l.line-1).length)),f.ch==lt(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=N(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var g,S,T;l.line==i.viewFrom||(g=Ai(t,l.line))==0?(S=tr(i.view[0].line),T=i.view[0].node):(S=tr(i.view[g].line),T=i.view[g-1].node.nextSibling);var R=Ai(t,f.line),j,le;if(R==i.view.length-1?(j=i.viewTo-1,le=i.lineDiv.lastChild):(j=tr(i.view[R+1].line)-1,le=i.view[R+1].node.previousSibling),!T)return!1;for(var de=t.doc.splitLines(Jf(t,T,le,S,j)),Ae=bi(t.doc,N(S,0),N(j,lt(t.doc,j).text.length));de.length>1&&Ae.length>1;)if(nt(de)==nt(Ae))de.pop(),Ae.pop(),j--;else if(de[0]==Ae[0])de.shift(),Ae.shift(),S++;else break;for(var ye=0,Ie=0,Ne=de[0],He=Ae[0],Ye=Math.min(Ne.length,He.length);ye<Ye&&Ne.charCodeAt(ye)==He.charCodeAt(ye);)++ye;for(var Qe=nt(de),Je=nt(Ae),rt=Math.min(Qe.length-(de.length==1?ye:0),Je.length-(Ae.length==1?ye:0));Ie<rt&&Qe.charCodeAt(Qe.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)++Ie;if(de.length==1&&Ae.length==1&&S==l.line)for(;ye&&ye>l.ch&&Qe.charCodeAt(Qe.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)ye--,Ie++;de[de.length-1]=Qe.slice(0,Qe.length-Ie).replace(/^\u200b+/,""),de[0]=de[0].slice(ye).replace(/\u200b+$/,"");var gt=N(S,ye),ct=N(j,Ae.length?nt(Ae).length-Ie:0);if(de.length>1||de[0]||se(gt,ct))return Xa(t.doc,de,gt,ct,"+input"),!0},lr.prototype.ensurePolled=function(){this.forceCompositionEnd()},lr.prototype.reset=function(){this.forceCompositionEnd()},lr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},lr.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},lr.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&xn(this.cm,function(){return nn(t.cm)})},lr.prototype.setUneditable=function(t){t.contentEditable="false"},lr.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Hr(this.cm,Uo)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},lr.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},lr.prototype.onContextMenu=function(){},lr.prototype.resetPosition=function(){},lr.prototype.needsContentAttribute=!0;function Yf(t,i){var u=xl(t,i.line);if(!u||u.hidden)return null;var l=lt(t.doc,i.line),f=os(u,l,i.line),g=ot(l,t.doc.direction),S="left";if(g){var T=vt(g,i.ch);S=T%2?"right":"left"}var R=vo(f.map,i.ch,S);return R.offset=R.collapse=="right"?R.end:R.start,R}function Td(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ba(t,i){return i&&(t.bad=!0),t}function Jf(t,i,u,l,f){var g="",S=!1,T=t.doc.lineSeparator(),R=!1;function j(ye){return function(Ie){return Ie.id==ye}}function le(){S&&(g+=T,R&&(g+=T),S=R=!1)}function de(ye){ye&&(le(),g+=ye)}function Ae(ye){if(ye.nodeType==1){var Ie=ye.getAttribute("cm-text");if(Ie){de(Ie);return}var Ne=ye.getAttribute("cm-marker"),He;if(Ne){var Ye=t.findMarks(N(l,0),N(f+1,0),j(+Ne));Ye.length&&(He=Ye[0].find(0))&&de(bi(t.doc,He.from,He.to).join(T));return}if(ye.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(ye.nodeName);if(!/^br$/i.test(ye.nodeName)&&ye.textContent.length==0)return;Qe&&le();for(var Je=0;Je<ye.childNodes.length;Je++)Ae(ye.childNodes[Je]);/^(pre|p)$/i.test(ye.nodeName)&&(R=!0),Qe&&(S=!0)}else ye.nodeType==3&&de(ye.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ae(i),i!=u;)i=i.nextSibling,R=!1;return g}function $s(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return ba(t.clipPos(N(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var g=t.display.view[f];if(g.node==l)return Pd(g,i,u)}}function Pd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ge(l,i))return ba(N(tr(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var g=t.rest?nt(t.rest):t.line;return ba(N(tr(g),g.text.length),f)}var S=i.nodeType==3?i:null,T=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));T.parentNode!=l;)T=T.parentNode;var R=t.measure,j=R.maps;function le(He,Ye,Qe){for(var Je=-1;Je<(j?j.length:0);Je++)for(var rt=Je<0?R.map:j[Je],gt=0;gt<rt.length;gt+=3){var ct=rt[gt+2];if(ct==He||ct==Ye){var Dt=tr(Je<0?t.line:t.rest[Je]),dr=rt[gt]+Qe;return(Qe<0||ct!=He)&&(dr=rt[gt+(Qe?1:0)]),N(Dt,dr)}}}var de=le(S,T,u);if(de)return ba(de,f);for(var Ae=T.nextSibling,ye=S?S.nodeValue.length-u:0;Ae;Ae=Ae.nextSibling){if(de=le(Ae,Ae.firstChild,0),de)return ba(N(de.line,de.ch-ye),f);ye+=Ae.textContent.length}for(var Ie=T.previousSibling,Ne=u;Ie;Ie=Ie.previousSibling){if(de=le(Ie,Ie.firstChild,-1),de)return ba(N(de.line,de.ch+Ne),f);Ne+=Ie.textContent.length}}var Or=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Oe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Or.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),G&&(f.style.width="0px"),ce(f,"input",function(){O&&k>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ce(f,"paste",function(S){st(l,S)||$f(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function g(S){if(!st(l,S)){if(l.somethingSelected())Gs({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var T=Wo(l);Gs({lineWise:!0,text:T.text}),S.type=="cut"?l.setSelections(T.ranges,null,tt):(u.prevInput="",f.value=T.text.join(`
32
+ `),it(f))}else return;S.type=="cut"&&(l.state.cutIncoming=+new Date)}}ce(f,"cut",g),ce(f,"copy",g),ce(t.scroller,"paste",function(S){if(!(ai(t,S)||st(l,S))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var T=new Event("paste");T.clipboardData=S.clipboardData,f.dispatchEvent(T)}}),ce(t.lineSpace,"selectstart",function(S){ai(t,S)||Nt(S)}),ce(f,"compositionstart",function(){var S=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:S,range:l.markText(S,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ce(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Or.prototype.createField=function(t){this.wrapper=Ed(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;eu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Or.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Xu(t);if(t.options.moveInputWithCursor){var f=Yn(t,u.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),S=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+S.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+S.left-g.left))}return l},Or.prototype.showSelection=function(t){var i=this.cm,u=i.display;ve(u.cursorDiv,t.cursors),ve(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Or.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&it(this.textarea),O&&k>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",O&&k>=9&&(this.hasSelection=null));this.resetting=!1}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||Ee(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Or.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Or.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ui(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=u.value;if(f==l&&!i.somethingSelected())return!1;if(O&&k>=9&&this.hasSelection===f||F&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=f.charCodeAt(0);if(g==8203&&!l&&(l="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,T=Math.min(l.length,f.length);S<T&&l.charCodeAt(S)==f.charCodeAt(S);)++S;return xn(i,function(){Uo(i,f.slice(S),l.length-S,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
+ `)>-1?u.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){O&&k>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=Gi(u,t),S=l.scroller.scrollTop;if(!g||ne)return;var T=u.options.resetSelectionOnContextMenu;T&&u.doc.sel.contains(g)==-1&&Hr(u,Jr)(u.doc,Ki(g),tt);var R=f.style.cssText,j=i.wrapper.style.cssText,le=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
34
34
  top: `+(t.clientY-le.top-5)+"px; left: "+(t.clientX-le.left-5)+`px;
35
35
  z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
36
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;U&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),U&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=ye,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function we(){if(f.selectionStart!=null){var Ne=u.somethingSelected(),He="\u200B"+(Ne?f.value:"");f.value="\u21DA",f.value=He,i.prevInput=Ne?"":"\u200B",f.selectionStart=1,f.selectionEnd=He.length,l.selForContextMenu=u.doc.sel}}function ye(){if(i.contextMenuPending==ye&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,f.style.cssText=M,O&&k<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!O||O&&k<9)&&we();var Ne=0,He=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Hr(u,mf)(u):Ne++<10?l.detectingSelectAll=setTimeout(He,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(He,200)}}if(O&&k>=9&&we(),te){Ur(t);var Ie=function(){Be(window,"mouseup",Ie),setTimeout(ye,20)};ce(window,"mouseup",Ie)}else setTimeout(ye,50)},Or.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Id(t,i){if(i=i?St(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Ee(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=T.getValue()}var f;if(t.form&&(ce(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=t.form;f=g.submit;try{var S=g.submit=function(){l(),g.submit=f,g.submit(),g.submit=S}}catch(M){}}i.finishInit=function(M){M.save=l,M.getTextArea=function(){return t},M.toTextArea=function(){M.toTextArea=isNaN,l(),t.parentNode.removeChild(M.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var T=gr(function(M){return t.parentNode.insertBefore(M,t.nextSibling)},i);return T}function Fd(t){t.off=Be,t.on=ce,t.wheelEventPixels=af,t.Doc=dn,t.splitLines=Gn,t.countColumn=Le,t.findColumn=Et,t.isWordChar=Mr,t.Pass=Ge,t.signal=Ke,t.Line=Ra,t.changeEnd=Yi,t.scrollbarModel=Ll,t.Pos=B,t.cmpPos=se,t.modes=mn,t.mimeModes=yn,t.resolveMode=$n,t.getMode=fn,t.modeExtensions=Cr,t.extendMode=yi,t.copyState=kn,t.startState=uo,t.innerMode=Ta,t.commands=_a,t.keyMap=Fi,t.keyName=Mf,t.isModifierKey=Ls,t.lookupKey=qa,t.normalizeKeyMap=Rf,t.StringStream=vr,t.SharedTextMarker=Za,t.TextMarker=Ii,t.LineWidget=ga,t.e_preventDefault=Nt,t.e_stopPropagation=Yt,t.e_stop=Ur,t.addClass=je,t.contains=ge,t.rmClass=H,t.keyNames=Qi}Ad(gr),Od(gr);var kd="iter insert remove copy getEditor constructor".split(" ");for(var xa in dn.prototype)dn.prototype.hasOwnProperty(xa)&&be(kd,xa)<0&&(gr.prototype[xa]=function(t){return function(){return t.apply(this.doc,arguments)}}(dn.prototype[xa]));return yr(dn),gr.inputStyles={textarea:Or,contenteditable:lr},gr.defineMode=function(t){!gr.defaults.mode&&t!="null"&&(gr.defaults.mode=t),On.apply(this,arguments)},gr.defineMIME=lo,gr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),gr.defineMIME("text/plain","null"),gr.defineExtension=function(t,i){gr.prototype[t]=i},gr.defineDocExtension=function(t,i){dn.prototype[t]=i},gr.fromTextArea=Id,Fd(gr),gr.version="5.65.11",gr})},49055:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var A=x.indentUnit,O=w.statementIndent,k=w.jsonld,U=w.json||k,Z=w.trackScope!==!1,re=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function B(ut){return{type:ut,style:"keyword"}}var se=B("keyword a"),Me=B("keyword b"),We=B("keyword c"),It=B("keyword d"),Vt=B("operator"),ir={type:"atom",style:"atom"};return{if:B("if"),while:se,with:se,else:Me,do:Me,try:Me,finally:Me,return:It,break:It,continue:It,new:B("new"),delete:We,void:We,throw:We,debugger:B("debugger"),var:B("var"),const:B("var"),let:B("var"),function:B("function"),catch:B("catch"),for:B("for"),switch:B("switch"),case:B("case"),default:B("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ir,false:ir,null:ir,undefined:ir,NaN:ir,Infinity:ir,this:B("this"),class:B("class"),super:B("atom"),yield:We,export:B("export"),import:B("import"),extends:We,await:We}}(),ie=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(B){for(var se=!1,Me,We=!1;(Me=B.next())!=null;){if(!se){if(Me=="/"&&!We)return;Me=="["?We=!0:We&&Me=="]"&&(We=!1)}se=!se&&Me=="\\"}}var $,D;function C(B,se,Me){return $=B,D=Me,se}function F(B,se){var Me=B.next();if(Me=='"'||Me=="'")return se.tokenize=V(Me),se.tokenize(B,se);if(Me=="."&&B.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Me=="."&&B.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Me))return C(Me);if(Me=="="&&B.eat(">"))return C("=>","operator");if(Me=="0"&&B.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Me))return B.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Me=="/")return B.eat("*")?(se.tokenize=X,X(B,se)):B.eat("/")?(B.skipToEnd(),C("comment","comment")):Pa(B,se,1)?(P(B),B.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(B.eat("="),C("operator","operator",B.current()));if(Me=="`")return se.tokenize=K,K(B,se);if(Me=="#"&&B.peek()=="!")return B.skipToEnd(),C("meta","meta");if(Me=="#"&&B.eatWhile(ue))return C("variable","property");if(Me=="<"&&B.match("!--")||Me=="-"&&B.match("->")&&!/\S/.test(B.string.slice(0,B.start)))return B.skipToEnd(),C("comment","comment");if(ie.test(Me))return(Me!=">"||!se.lexical||se.lexical.type!=">")&&(B.eat("=")?(Me=="!"||Me=="=")&&B.eat("="):/[<>*+\-|&?]/.test(Me)&&(B.eat(Me),Me==">"&&B.eat(Me))),Me=="?"&&B.eat(".")?C("."):C("operator","operator",B.current());if(ue.test(Me)){B.eatWhile(ue);var We=B.current();if(se.lastType!="."){if(ne.propertyIsEnumerable(We)){var It=ne[We];return C(It.type,It.style,We)}if(We=="async"&&B.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",We)}return C("variable","variable",We)}}function V(B){return function(se,Me){var We=!1,It;if(k&&se.peek()=="@"&&se.match(Y))return Me.tokenize=F,C("jsonld-keyword","meta");for(;(It=se.next())!=null&&!(It==B&&!We);)We=!We&&It=="\\";return We||(Me.tokenize=F),C("string","string")}}function X(B,se){for(var Me=!1,We;We=B.next();){if(We=="/"&&Me){se.tokenize=F;break}Me=We=="*"}return C("comment","comment")}function K(B,se){for(var Me=!1,We;(We=B.next())!=null;){if(!Me&&(We=="`"||We=="$"&&B.eat("{"))){se.tokenize=F;break}Me=!Me&&We=="\\"}return C("quasi","string-2",B.current())}var W="([{}])";function te(B,se){se.fatArrowAt&&(se.fatArrowAt=null);var Me=B.string.indexOf("=>",B.start);if(!(Me<0)){if(re){var We=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(B.string.slice(B.start,Me));We&&(Me=We.index)}for(var It=0,Vt=!1,ir=Me-1;ir>=0;--ir){var ut=B.string.charAt(ir),Tn=W.indexOf(ut);if(Tn>=0&&Tn<3){if(!It){++ir;break}if(--It==0){ut=="("&&(Vt=!0);break}}else if(Tn>=3&&Tn<6)++It;else if(ue.test(ut))Vt=!0;else if(/["'\/`]/.test(ut))for(;;--ir){if(ir==0)return;var qo=B.string.charAt(ir-1);if(qo==ut&&B.string.charAt(ir-2)!="\\"){ir--;break}}else if(Vt&&!It){++ir;break}}Vt&&!It&&(se.fatArrowAt=ir)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(B,se,Me,We,It,Vt){this.indented=B,this.column=se,this.type=Me,this.prev=It,this.info=Vt,We!=null&&(this.align=We)}function fe(B,se){if(!Z)return!1;for(var Me=B.localVars;Me;Me=Me.next)if(Me.name==se)return!0;for(var We=B.context;We;We=We.prev)for(var Me=We.vars;Me;Me=Me.next)if(Me.name==se)return!0}function he(B,se,Me,We,It){var Vt=B.cc;for(_.state=B,_.stream=It,_.marked=null,_.cc=Vt,_.style=se,B.lexical.hasOwnProperty("align")||(B.lexical.align=!0);;){var ir=Vt.length?Vt.pop():U?Ze:Ge;if(ir(Me,We)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return _.marked?_.marked:Me=="variable"&&fe(B,We)?"variable-2":se}}}var _={state:null,column:null,marked:null,cc:null};function Q(){for(var B=arguments.length-1;B>=0;B--)_.cc.push(arguments[B])}function z(){return Q.apply(null,arguments),!0}function ge(B,se){for(var Me=se;Me;Me=Me.next)if(Me.name==B)return!0;return!1}function Ee(B){var se=_.state;if(_.marked="def",!!Z){if(se.context){if(se.lexical.info=="var"&&se.context&&se.context.block){var Me=je(B,se.context);if(Me!=null){se.context=Me;return}}else if(!ge(B,se.localVars)){se.localVars=new et(B,se.localVars);return}}w.globalVars&&!ge(B,se.globalVars)&&(se.globalVars=new et(B,se.globalVars))}}function je(B,se){if(se)if(se.block){var Me=je(B,se.prev);return Me?Me==se.prev?se:new it(Me,se.vars,!0):null}else return ge(B,se.vars)?se:new it(se.prev,new et(B,se.vars),!1);else return null}function ke(B){return B=="public"||B=="private"||B=="protected"||B=="abstract"||B=="readonly"}function it(B,se,Me){this.prev=B,this.vars=se,this.block=Me}function et(B,se){this.name=B,this.next=se}var at=new et("this",new et("arguments",null));function Tt(){_.state.context=new it(_.state.context,_.state.localVars,!1),_.state.localVars=at}function St(){_.state.context=new it(_.state.context,_.state.localVars,!0),_.state.localVars=null}Tt.lex=St.lex=!0;function Le(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}Le.lex=!0;function Oe(B,se){var Me=function(){var We=_.state,It=We.indented;if(We.lexical.type=="stat")It=We.lexical.indented;else for(var Vt=We.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;We.lexical=new H(It,_.stream.column(),B,null,We.lexical,se)};return Me.lex=!0,Me}function be(){var B=_.state;B.lexical.prev&&(B.lexical.type==")"&&(B.indented=B.lexical.indented),B.lexical=B.lexical.prev)}be.lex=!0;function De(B){function se(Me){return Me==B?z():B==";"||Me=="}"||Me==")"||Me=="]"?Q():z(se)}return se}function Ge(B,se){return B=="var"?z(Oe("vardef",se),vi,De(";"),be):B=="keyword a"?z(Oe("form"),Et,Ge,be):B=="keyword b"?z(Oe("form"),Ge,be):B=="keyword d"?_.stream.match(/^\s*$/,!1)?z():z(Oe("stat"),zt,De(";"),be):B=="debugger"?z(De(";")):B=="{"?z(Oe("}"),St,Pt,be,Le):B==";"?z():B=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==be&&_.state.cc.pop()(),z(Oe("form"),Et,Ge,be,Gn)):B=="function"?z(un):B=="for"?z(Oe("form"),St,Ui,Ge,Le,be):B=="class"||re&&se=="interface"?(_.marked="keyword",z(Oe("form",B=="class"?B:se),$n,be)):B=="variable"?re&&se=="declare"?(_.marked="keyword",z(Ge)):re&&(se=="module"||se=="enum"||se=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",se=="enum"?z(tr):se=="type"?z(yn,De("operator"),Be,De(";")):z(Oe("form"),tn,De("{"),Oe("}"),Pt,be,be)):re&&se=="namespace"?(_.marked="keyword",z(Oe("form"),Ze,Ge,be)):re&&se=="abstract"?(_.marked="keyword",z(Ge)):z(Oe("stat"),$e):B=="switch"?z(Oe("form"),Et,De("{"),Oe("}","switch"),St,Pt,be,be,Le):B=="case"?z(Ze,De(":")):B=="default"?z(De(":")):B=="catch"?z(Oe("form"),Tt,tt,Ge,be,Le):B=="export"?z(Oe("stat"),kn,be):B=="import"?z(Oe("stat"),uo,be):B=="async"?z(Ge):se=="@"?z(Ze,Ge):Q(Oe("stat"),Ze,De(";"),be)}function tt(B){if(B=="(")return z(On,De(")"))}function Ze(B,se){return Xt(B,se,!1)}function bt(B,se){return Xt(B,se,!0)}function Et(B){return B!="("?Q():z(Oe(")"),zt,De(")"),be)}function Xt(B,se,Me){if(_.state.fatArrowAt==_.stream.start){var We=Me?_e:Rr;if(B=="(")return z(Tt,Oe(")"),dt(On,")"),be,De("=>"),We,Le);if(B=="variable")return Q(Tt,tn,De("=>"),We,Le)}var It=Me?Xe:nt;return J.hasOwnProperty(B)?z(It):B=="function"?z(un,It):B=="class"||re&&se=="interface"?(_.marked="keyword",z(Oe("form"),lo,be)):B=="keyword c"||B=="async"?z(Me?bt:Ze):B=="("?z(Oe(")"),zt,De(")"),be,It):B=="operator"||B=="spread"?z(Me?bt:Ze):B=="["?z(Oe("]"),Rn,be,It):B=="{"?vt(Lt,"}",null,It):B=="quasi"?Q(er,It):B=="new"?z(Mr(Me)):z()}function zt(B){return B.match(/[;\}\)\],]/)?Q():Q(Ze)}function nt(B,se){return B==","?z(zt):Xe(B,se,!1)}function Xe(B,se,Me){var We=Me==!1?nt:Xe,It=Me==!1?Ze:bt;if(B=="=>")return z(Tt,Me?_e:Rr,Le);if(B=="operator")return/\+\+|--/.test(se)||re&&se=="!"?z(We):re&&se=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(Oe(">"),dt(Be,">"),be,We):se=="?"?z(Ze,De(":"),It):z(It);if(B=="quasi")return Q(er,We);if(B!=";"){if(B=="(")return vt(bt,")","call",We);if(B==".")return z(yt,We);if(B=="[")return z(Oe("]"),zt,De("]"),be,We);if(re&&se=="as")return _.marked="keyword",z(Be,We);if(B=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),z(It)}}function er(B,se){return B!="quasi"?Q():se.slice(se.length-2)!="${"?z(er):z(zt,Rt)}function Rt(B){if(B=="}")return _.marked="string-2",_.state.tokenize=K,z(er)}function Rr(B){return te(_.stream,_.state),Q(B=="{"?Ge:Ze)}function _e(B){return te(_.stream,_.state),Q(B=="{"?Ge:bt)}function Mr(B){return function(se){return se=="."?z(B?en:Ar):se=="variable"&&re?z(zn,B?Xe:nt):Q(B?bt:Ze)}}function Ar(B,se){if(se=="target")return _.marked="keyword",z(nt)}function en(B,se){if(se=="target")return _.marked="keyword",z(Xe)}function $e(B){return B==":"?z(be,Ge):Q(nt,De(";"),be)}function yt(B){if(B=="variable")return _.marked="property",z()}function Lt(B,se){if(B=="async")return _.marked="property",z(Lt);if(B=="variable"||_.style=="keyword"){if(_.marked="property",se=="get"||se=="set")return z(wt);var Me;return re&&_.state.fatArrowAt==_.stream.start&&(Me=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Me[0].length),z(Ft)}else{if(B=="number"||B=="string")return _.marked=k?"property":_.style+" property",z(Ft);if(B=="jsonld-keyword")return z(Ft);if(re&&ke(se))return _.marked="keyword",z(Lt);if(B=="[")return z(Ze,ot,De("]"),Ft);if(B=="spread")return z(bt,Ft);if(se=="*")return _.marked="keyword",z(Lt);if(B==":")return Q(Ft)}}function wt(B){return B!="variable"?Q(Ft):(_.marked="property",z(un))}function Ft(B){if(B==":")return z(bt);if(B=="(")return Q(un)}function dt(B,se,Me){function We(It,Vt){if(Me?Me.indexOf(It)>-1:It==","){var ir=_.state.lexical;return ir.info=="call"&&(ir.pos=(ir.pos||0)+1),z(function(ut,Tn){return ut==se||Tn==se?Q():Q(B)},We)}return It==se||Vt==se?z():Me&&Me.indexOf(";")>-1?Q(B):z(De(se))}return function(It,Vt){return It==se||Vt==se?z():Q(B,We)}}function vt(B,se,Me){for(var We=3;We<arguments.length;We++)_.cc.push(arguments[We]);return z(Oe(se,Me),dt(B,se),be)}function Pt(B){return B=="}"?z():Q(Ge,Pt)}function ot(B,se){if(re){if(B==":")return z(Be);if(se=="?")return z(ot)}}function Ve(B,se){if(re&&(B==":"||se=="in"))return z(Be)}function ce(B){if(re&&B==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?z(Ze,xe,Be):z(Be)}function xe(B,se){if(se=="is")return _.marked="keyword",z()}function Be(B,se){if(se=="keyof"||se=="typeof"||se=="infer"||se=="readonly")return _.marked="keyword",z(se=="typeof"?bt:Be);if(B=="variable"||se=="void")return _.marked="type",z(Yt);if(se=="|"||se=="&")return z(Be);if(B=="string"||B=="number"||B=="atom")return z(Yt);if(B=="[")return z(Oe("]"),dt(Be,"]",","),be,Yt);if(B=="{")return z(Oe("}"),st,be,Yt);if(B=="(")return z(dt(Nt,")"),Ke,Yt);if(B=="<")return z(dt(Be,">"),Be);if(B=="quasi")return Q(kt,Yt)}function Ke(B){if(B=="=>")return z(Be)}function st(B){return B.match(/[\}\)\]]/)?z():B==","||B==";"?z(st):Q(xt,st)}function xt(B,se){if(B=="variable"||_.style=="keyword")return _.marked="property",z(xt);if(se=="?"||B=="number"||B=="string")return z(xt);if(B==":")return z(Be);if(B=="[")return z(De("variable"),Ve,De("]"),xt);if(B=="(")return Q(mn,xt);if(!B.match(/[;\}\)\],]/))return z()}function kt(B,se){return B!="quasi"?Q():se.slice(se.length-2)!="${"?z(kt):z(Be,yr)}function yr(B){if(B=="}")return _.marked="string-2",_.state.tokenize=K,z(kt)}function Nt(B,se){return B=="variable"&&_.stream.match(/^\s*[?:]/,!1)||se=="?"?z(Nt):B==":"?z(Be):B=="spread"?z(Nt):Q(Be)}function Yt(B,se){if(se=="<")return z(Oe(">"),dt(Be,">"),be,Yt);if(se=="|"||B=="."||se=="&")return z(Be);if(B=="[")return z(Be,De("]"),Yt);if(se=="extends"||se=="implements")return _.marked="keyword",z(Be);if(se=="?")return z(Be,De(":"),Be)}function zn(B,se){if(se=="<")return z(Oe(">"),dt(Be,">"),be,Yt)}function Ur(){return Q(Be,Kr)}function Kr(B,se){if(se=="=")return z(Be)}function vi(B,se){return se=="enum"?(_.marked="keyword",z(tr)):Q(tn,ot,rn,xr)}function tn(B,se){if(re&&ke(se))return _.marked="keyword",z(tn);if(B=="variable")return Ee(se),z();if(B=="spread")return z(tn);if(B=="[")return vt(mi,"]");if(B=="{")return vt(gi,"}")}function gi(B,se){return B=="variable"&&!_.stream.match(/^\s*:/,!1)?(Ee(se),z(rn)):(B=="variable"&&(_.marked="property"),B=="spread"?z(tn):B=="}"?Q():B=="["?z(Ze,De("]"),De(":"),gi):z(De(":"),tn,rn))}function mi(){return Q(tn,rn)}function rn(B,se){if(se=="=")return z(bt)}function xr(B){if(B==",")return z(vi)}function Gn(B,se){if(B=="keyword b"&&se=="else")return z(Oe("form","else"),Ge,be)}function Ui(B,se){if(se=="await")return z(Ui);if(B=="(")return z(Oe(")"),Wi,be)}function Wi(B){return B=="var"?z(vi,gn):B=="variable"?z(gn):Q(gn)}function gn(B,se){return B==")"?z():B==";"?z(gn):se=="in"||se=="of"?(_.marked="keyword",z(Ze,gn)):Q(Ze,gn)}function un(B,se){if(se=="*")return _.marked="keyword",z(un);if(B=="variable")return Ee(se),z(un);if(B=="(")return z(Tt,Oe(")"),dt(On,")"),be,ce,Ge,Le);if(re&&se=="<")return z(Oe(">"),dt(Ur,">"),be,un)}function mn(B,se){if(se=="*")return _.marked="keyword",z(mn);if(B=="variable")return Ee(se),z(mn);if(B=="(")return z(Tt,Oe(")"),dt(On,")"),be,ce,Le);if(re&&se=="<")return z(Oe(">"),dt(Ur,">"),be,mn)}function yn(B,se){if(B=="keyword"||B=="variable")return _.marked="type",z(yn);if(se=="<")return z(Oe(">"),dt(Ur,">"),be)}function On(B,se){return se=="@"&&z(Ze,On),B=="spread"?z(On):re&&ke(se)?(_.marked="keyword",z(On)):re&&B=="this"?z(ot,rn):Q(tn,ot,rn)}function lo(B,se){return B=="variable"?$n(B,se):fn(B,se)}function $n(B,se){if(B=="variable")return Ee(se),z(fn)}function fn(B,se){if(se=="<")return z(Oe(">"),dt(Ur,">"),be,fn);if(se=="extends"||se=="implements"||re&&B==",")return se=="implements"&&(_.marked="keyword"),z(re?Be:Ze,fn);if(B=="{")return z(Oe("}"),Cr,be)}function Cr(B,se){if(B=="async"||B=="variable"&&(se=="static"||se=="get"||se=="set"||re&&ke(se))&&_.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return _.marked="keyword",z(Cr);if(B=="variable"||_.style=="keyword")return _.marked="property",z(yi,Cr);if(B=="number"||B=="string")return z(yi,Cr);if(B=="[")return z(Ze,ot,De("]"),yi,Cr);if(se=="*")return _.marked="keyword",z(Cr);if(re&&B=="(")return Q(mn,Cr);if(B==";"||B==",")return z(Cr);if(B=="}")return z();if(se=="@")return z(Ze,Cr)}function yi(B,se){if(se=="!"||se=="?")return z(yi);if(B==":")return z(Be,rn);if(se=="=")return z(bt);var Me=_.state.lexical.prev,We=Me&&Me.info=="interface";return Q(We?mn:un)}function kn(B,se){return se=="*"?(_.marked="keyword",z(na,De(";"))):se=="default"?(_.marked="keyword",z(Ze,De(";"))):B=="{"?z(dt(Ta,"}"),na,De(";")):Q(Ge)}function Ta(B,se){if(se=="as")return _.marked="keyword",z(De("variable"));if(B=="variable")return Q(bt,Ta)}function uo(B){return B=="string"?z():B=="("?Q(Ze):B=="."?Q(nt):Q(vr,lt,na)}function vr(B,se){return B=="{"?vt(vr,"}"):(B=="variable"&&Ee(se),se=="*"&&(_.marked="keyword"),z(bi))}function lt(B){if(B==",")return z(vr,lt)}function bi(B,se){if(se=="as")return _.marked="keyword",z(vr)}function na(B,se){if(se=="from")return _.marked="keyword",z(Ze)}function Rn(B){return B=="]"?z():Q(dt(bt,"]"))}function tr(){return Q(Oe("form"),tn,De("{"),Oe("}"),dt(ti,"}"),be,be)}function ti(){return Q(tn,rn)}function ia(B,se){return B.lastType=="operator"||B.lastType==","||ie.test(se.charAt(0))||/[,.]/.test(se.charAt(0))}function Pa(B,se,Me){return se.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(se.lastType)||se.lastType=="quasi"&&/\{\s*$/.test(B.string.slice(0,B.pos-(Me||0)))}return{startState:function(B){var se={tokenize:F,lastType:"sof",cc:[],lexical:new H((B||0)-A,0,"block",!1),localVars:w.localVars,context:w.localVars&&new it(null,null,!1),indented:B||0};return w.globalVars&&typeof w.globalVars=="object"&&(se.globalVars=w.globalVars),se},token:function(B,se){if(B.sol()&&(se.lexical.hasOwnProperty("align")||(se.lexical.align=!1),se.indented=B.indentation(),te(B,se)),se.tokenize!=X&&B.eatSpace())return null;var Me=se.tokenize(B,se);return $=="comment"?Me:(se.lastType=$=="operator"&&(D=="++"||D=="--")?"incdec":$,he(se,Me,$,D,B))},indent:function(B,se){if(B.tokenize==X||B.tokenize==K)return d.Pass;if(B.tokenize!=F)return 0;var Me=se&&se.charAt(0),We=B.lexical,It;if(!/^\s*else\b/.test(se))for(var Vt=B.cc.length-1;Vt>=0;--Vt){var ir=B.cc[Vt];if(ir==be)We=We.prev;else if(ir!=Gn&&ir!=Le)break}for(;(We.type=="stat"||We.type=="form")&&(Me=="}"||(It=B.cc[B.cc.length-1])&&(It==nt||It==Xe)&&!/^[,\.=+\-*:?[\(]/.test(se));)We=We.prev;O&&We.type==")"&&We.prev.type=="stat"&&(We=We.prev);var ut=We.type,Tn=Me==ut;return ut=="vardef"?We.indented+(B.lastType=="operator"||B.lastType==","?We.info.length+1:0):ut=="form"&&Me=="{"?We.indented:ut=="form"?We.indented+A:ut=="stat"?We.indented+(ia(B,se)?O||A:0):We.info=="switch"&&!Tn&&w.doubleIndentSwitch!=!1?We.indented+(/^(?:case|default)\b/.test(se)?A:2*A):We.align?We.column+(Tn?0:1):We.indented+(Tn?0:A)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:k,jsonMode:U,expressionAllowed:Pa,skipExpression:function(B){he(B,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,E)=>{"use strict";/*!
36
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;U&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),U&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=ye,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ae(){if(f.selectionStart!=null){var Ne=u.somethingSelected(),He="\u200B"+(Ne?f.value:"");f.value="\u21DA",f.value=He,i.prevInput=Ne?"":"\u200B",f.selectionStart=1,f.selectionEnd=He.length,l.selForContextMenu=u.doc.sel}}function ye(){if(i.contextMenuPending==ye&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,f.style.cssText=R,O&&k<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!O||O&&k<9)&&Ae();var Ne=0,He=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Hr(u,mf)(u):Ne++<10?l.detectingSelectAll=setTimeout(He,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(He,200)}}if(O&&k>=9&&Ae(),te){Ur(t);var Ie=function(){Be(window,"mouseup",Ie),setTimeout(ye,20)};ce(window,"mouseup",Ie)}else setTimeout(ye,50)},Or.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Id(t,i){if(i=i?St(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Ee(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=T.getValue()}var f;if(t.form&&(ce(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=t.form;f=g.submit;try{var S=g.submit=function(){l(),g.submit=f,g.submit(),g.submit=S}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var T=gr(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return T}function Fd(t){t.off=Be,t.on=ce,t.wheelEventPixels=af,t.Doc=dn,t.splitLines=Gn,t.countColumn=Le,t.findColumn=Et,t.isWordChar=Mr,t.Pass=Ge,t.signal=Ke,t.Line=Ra,t.changeEnd=Yi,t.scrollbarModel=Ll,t.Pos=N,t.cmpPos=se,t.modes=mn,t.mimeModes=yn,t.resolveMode=$n,t.getMode=fn,t.modeExtensions=Cr,t.extendMode=yi,t.copyState=kn,t.startState=uo,t.innerMode=Ta,t.commands=_a,t.keyMap=Fi,t.keyName=Mf,t.isModifierKey=Ls,t.lookupKey=qa,t.normalizeKeyMap=Rf,t.StringStream=vr,t.SharedTextMarker=Za,t.TextMarker=Ii,t.LineWidget=ga,t.e_preventDefault=Nt,t.e_stopPropagation=Yt,t.e_stop=Ur,t.addClass=je,t.contains=ge,t.rmClass=H,t.keyNames=Qi}Ad(gr),Od(gr);var kd="iter insert remove copy getEditor constructor".split(" ");for(var xa in dn.prototype)dn.prototype.hasOwnProperty(xa)&&be(kd,xa)<0&&(gr.prototype[xa]=function(t){return function(){return t.apply(this.doc,arguments)}}(dn.prototype[xa]));return yr(dn),gr.inputStyles={textarea:Or,contenteditable:lr},gr.defineMode=function(t){!gr.defaults.mode&&t!="null"&&(gr.defaults.mode=t),On.apply(this,arguments)},gr.defineMIME=lo,gr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),gr.defineMIME("text/plain","null"),gr.defineExtension=function(t,i){gr.prototype[t]=i},gr.defineDocExtension=function(t,i){dn.prototype[t]=i},gr.fromTextArea=Id,Fd(gr),gr.version="5.65.11",gr})},49055:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var A=x.indentUnit,O=w.statementIndent,k=w.jsonld,U=w.json||k,_=w.trackScope!==!1,re=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function N(ut){return{type:ut,style:"keyword"}}var se=N("keyword a"),Me=N("keyword b"),We=N("keyword c"),It=N("keyword d"),Vt=N("operator"),ir={type:"atom",style:"atom"};return{if:N("if"),while:se,with:se,else:Me,do:Me,try:Me,finally:Me,return:It,break:It,continue:It,new:N("new"),delete:We,void:We,throw:We,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ir,false:ir,null:ir,undefined:ir,NaN:ir,Infinity:ir,this:N("this"),class:N("class"),super:N("atom"),yield:We,export:N("export"),import:N("import"),extends:We,await:We}}(),ie=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(N){for(var se=!1,Me,We=!1;(Me=N.next())!=null;){if(!se){if(Me=="/"&&!We)return;Me=="["?We=!0:We&&Me=="]"&&(We=!1)}se=!se&&Me=="\\"}}var G,L;function C(N,se,Me){return G=N,L=Me,se}function F(N,se){var Me=N.next();if(Me=='"'||Me=="'")return se.tokenize=V(Me),se.tokenize(N,se);if(Me=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Me=="."&&N.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Me))return C(Me);if(Me=="="&&N.eat(">"))return C("=>","operator");if(Me=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Me))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Me=="/")return N.eat("*")?(se.tokenize=Q,Q(N,se)):N.eat("/")?(N.skipToEnd(),C("comment","comment")):Pa(N,se,1)?(P(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(N.eat("="),C("operator","operator",N.current()));if(Me=="`")return se.tokenize=Y,Y(N,se);if(Me=="#"&&N.peek()=="!")return N.skipToEnd(),C("meta","meta");if(Me=="#"&&N.eatWhile(ue))return C("variable","property");if(Me=="<"&&N.match("!--")||Me=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),C("comment","comment");if(ie.test(Me))return(Me!=">"||!se.lexical||se.lexical.type!=">")&&(N.eat("=")?(Me=="!"||Me=="=")&&N.eat("="):/[<>*+\-|&?]/.test(Me)&&(N.eat(Me),Me==">"&&N.eat(Me))),Me=="?"&&N.eat(".")?C("."):C("operator","operator",N.current());if(ue.test(Me)){N.eatWhile(ue);var We=N.current();if(se.lastType!="."){if(ne.propertyIsEnumerable(We)){var It=ne[We];return C(It.type,It.style,We)}if(We=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",We)}return C("variable","variable",We)}}function V(N){return function(se,Me){var We=!1,It;if(k&&se.peek()=="@"&&se.match(J))return Me.tokenize=F,C("jsonld-keyword","meta");for(;(It=se.next())!=null&&!(It==N&&!We);)We=!We&&It=="\\";return We||(Me.tokenize=F),C("string","string")}}function Q(N,se){for(var Me=!1,We;We=N.next();){if(We=="/"&&Me){se.tokenize=F;break}Me=We=="*"}return C("comment","comment")}function Y(N,se){for(var Me=!1,We;(We=N.next())!=null;){if(!Me&&(We=="`"||We=="$"&&N.eat("{"))){se.tokenize=F;break}Me=!Me&&We=="\\"}return C("quasi","string-2",N.current())}var W="([{}])";function te(N,se){se.fatArrowAt&&(se.fatArrowAt=null);var Me=N.string.indexOf("=>",N.start);if(!(Me<0)){if(re){var We=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,Me));We&&(Me=We.index)}for(var It=0,Vt=!1,ir=Me-1;ir>=0;--ir){var ut=N.string.charAt(ir),Tn=W.indexOf(ut);if(Tn>=0&&Tn<3){if(!It){++ir;break}if(--It==0){ut=="("&&(Vt=!0);break}}else if(Tn>=3&&Tn<6)++It;else if(ue.test(ut))Vt=!0;else if(/["'\/`]/.test(ut))for(;;--ir){if(ir==0)return;var qo=N.string.charAt(ir-1);if(qo==ut&&N.string.charAt(ir-2)!="\\"){ir--;break}}else if(Vt&&!It){++ir;break}}Vt&&!It&&(se.fatArrowAt=ir)}}var X={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(N,se,Me,We,It,Vt){this.indented=N,this.column=se,this.type=Me,this.prev=It,this.info=Vt,We!=null&&(this.align=We)}function fe(N,se){if(!_)return!1;for(var Me=N.localVars;Me;Me=Me.next)if(Me.name==se)return!0;for(var We=N.context;We;We=We.prev)for(var Me=We.vars;Me;Me=Me.next)if(Me.name==se)return!0}function ve(N,se,Me,We,It){var Vt=N.cc;for(ee.state=N,ee.stream=It,ee.marked=null,ee.cc=Vt,ee.style=se,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var ir=Vt.length?Vt.pop():U?Ze:Ge;if(ir(Me,We)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return ee.marked?ee.marked:Me=="variable"&&fe(N,We)?"variable-2":se}}}var ee={state:null,column:null,marked:null,cc:null};function Z(){for(var N=arguments.length-1;N>=0;N--)ee.cc.push(arguments[N])}function z(){return Z.apply(null,arguments),!0}function ge(N,se){for(var Me=se;Me;Me=Me.next)if(Me.name==N)return!0;return!1}function Ee(N){var se=ee.state;if(ee.marked="def",!!_){if(se.context){if(se.lexical.info=="var"&&se.context&&se.context.block){var Me=je(N,se.context);if(Me!=null){se.context=Me;return}}else if(!ge(N,se.localVars)){se.localVars=new et(N,se.localVars);return}}w.globalVars&&!ge(N,se.globalVars)&&(se.globalVars=new et(N,se.globalVars))}}function je(N,se){if(se)if(se.block){var Me=je(N,se.prev);return Me?Me==se.prev?se:new it(Me,se.vars,!0):null}else return ge(N,se.vars)?se:new it(se.prev,new et(N,se.vars),!1);else return null}function ke(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function it(N,se,Me){this.prev=N,this.vars=se,this.block=Me}function et(N,se){this.name=N,this.next=se}var at=new et("this",new et("arguments",null));function Tt(){ee.state.context=new it(ee.state.context,ee.state.localVars,!1),ee.state.localVars=at}function St(){ee.state.context=new it(ee.state.context,ee.state.localVars,!0),ee.state.localVars=null}Tt.lex=St.lex=!0;function Le(){ee.state.localVars=ee.state.context.vars,ee.state.context=ee.state.context.prev}Le.lex=!0;function Oe(N,se){var Me=function(){var We=ee.state,It=We.indented;if(We.lexical.type=="stat")It=We.lexical.indented;else for(var Vt=We.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;We.lexical=new H(It,ee.stream.column(),N,null,We.lexical,se)};return Me.lex=!0,Me}function be(){var N=ee.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}be.lex=!0;function De(N){function se(Me){return Me==N?z():N==";"||Me=="}"||Me==")"||Me=="]"?Z():z(se)}return se}function Ge(N,se){return N=="var"?z(Oe("vardef",se),vi,De(";"),be):N=="keyword a"?z(Oe("form"),Et,Ge,be):N=="keyword b"?z(Oe("form"),Ge,be):N=="keyword d"?ee.stream.match(/^\s*$/,!1)?z():z(Oe("stat"),zt,De(";"),be):N=="debugger"?z(De(";")):N=="{"?z(Oe("}"),St,Pt,be,Le):N==";"?z():N=="if"?(ee.state.lexical.info=="else"&&ee.state.cc[ee.state.cc.length-1]==be&&ee.state.cc.pop()(),z(Oe("form"),Et,Ge,be,Gn)):N=="function"?z(un):N=="for"?z(Oe("form"),St,Ui,Ge,Le,be):N=="class"||re&&se=="interface"?(ee.marked="keyword",z(Oe("form",N=="class"?N:se),$n,be)):N=="variable"?re&&se=="declare"?(ee.marked="keyword",z(Ge)):re&&(se=="module"||se=="enum"||se=="type")&&ee.stream.match(/^\s*\w/,!1)?(ee.marked="keyword",se=="enum"?z(tr):se=="type"?z(yn,De("operator"),Be,De(";")):z(Oe("form"),tn,De("{"),Oe("}"),Pt,be,be)):re&&se=="namespace"?(ee.marked="keyword",z(Oe("form"),Ze,Ge,be)):re&&se=="abstract"?(ee.marked="keyword",z(Ge)):z(Oe("stat"),$e):N=="switch"?z(Oe("form"),Et,De("{"),Oe("}","switch"),St,Pt,be,be,Le):N=="case"?z(Ze,De(":")):N=="default"?z(De(":")):N=="catch"?z(Oe("form"),Tt,tt,Ge,be,Le):N=="export"?z(Oe("stat"),kn,be):N=="import"?z(Oe("stat"),uo,be):N=="async"?z(Ge):se=="@"?z(Ze,Ge):Z(Oe("stat"),Ze,De(";"),be)}function tt(N){if(N=="(")return z(On,De(")"))}function Ze(N,se){return Xt(N,se,!1)}function bt(N,se){return Xt(N,se,!0)}function Et(N){return N!="("?Z():z(Oe(")"),zt,De(")"),be)}function Xt(N,se,Me){if(ee.state.fatArrowAt==ee.stream.start){var We=Me?_e:Rr;if(N=="(")return z(Tt,Oe(")"),pt(On,")"),be,De("=>"),We,Le);if(N=="variable")return Z(Tt,tn,De("=>"),We,Le)}var It=Me?Xe:nt;return X.hasOwnProperty(N)?z(It):N=="function"?z(un,It):N=="class"||re&&se=="interface"?(ee.marked="keyword",z(Oe("form"),lo,be)):N=="keyword c"||N=="async"?z(Me?bt:Ze):N=="("?z(Oe(")"),zt,De(")"),be,It):N=="operator"||N=="spread"?z(Me?bt:Ze):N=="["?z(Oe("]"),Rn,be,It):N=="{"?vt(Lt,"}",null,It):N=="quasi"?Z(er,It):N=="new"?z(Mr(Me)):z()}function zt(N){return N.match(/[;\}\)\],]/)?Z():Z(Ze)}function nt(N,se){return N==","?z(zt):Xe(N,se,!1)}function Xe(N,se,Me){var We=Me==!1?nt:Xe,It=Me==!1?Ze:bt;if(N=="=>")return z(Tt,Me?_e:Rr,Le);if(N=="operator")return/\+\+|--/.test(se)||re&&se=="!"?z(We):re&&se=="<"&&ee.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(Oe(">"),pt(Be,">"),be,We):se=="?"?z(Ze,De(":"),It):z(It);if(N=="quasi")return Z(er,We);if(N!=";"){if(N=="(")return vt(bt,")","call",We);if(N==".")return z(yt,We);if(N=="[")return z(Oe("]"),zt,De("]"),be,We);if(re&&se=="as")return ee.marked="keyword",z(Be,We);if(N=="regexp")return ee.state.lastType=ee.marked="operator",ee.stream.backUp(ee.stream.pos-ee.stream.start-1),z(It)}}function er(N,se){return N!="quasi"?Z():se.slice(se.length-2)!="${"?z(er):z(zt,Rt)}function Rt(N){if(N=="}")return ee.marked="string-2",ee.state.tokenize=Y,z(er)}function Rr(N){return te(ee.stream,ee.state),Z(N=="{"?Ge:Ze)}function _e(N){return te(ee.stream,ee.state),Z(N=="{"?Ge:bt)}function Mr(N){return function(se){return se=="."?z(N?en:Ar):se=="variable"&&re?z(zn,N?Xe:nt):Z(N?bt:Ze)}}function Ar(N,se){if(se=="target")return ee.marked="keyword",z(nt)}function en(N,se){if(se=="target")return ee.marked="keyword",z(Xe)}function $e(N){return N==":"?z(be,Ge):Z(nt,De(";"),be)}function yt(N){if(N=="variable")return ee.marked="property",z()}function Lt(N,se){if(N=="async")return ee.marked="property",z(Lt);if(N=="variable"||ee.style=="keyword"){if(ee.marked="property",se=="get"||se=="set")return z(wt);var Me;return re&&ee.state.fatArrowAt==ee.stream.start&&(Me=ee.stream.match(/^\s*:\s*/,!1))&&(ee.state.fatArrowAt=ee.stream.pos+Me[0].length),z(Ft)}else{if(N=="number"||N=="string")return ee.marked=k?"property":ee.style+" property",z(Ft);if(N=="jsonld-keyword")return z(Ft);if(re&&ke(se))return ee.marked="keyword",z(Lt);if(N=="[")return z(Ze,ot,De("]"),Ft);if(N=="spread")return z(bt,Ft);if(se=="*")return ee.marked="keyword",z(Lt);if(N==":")return Z(Ft)}}function wt(N){return N!="variable"?Z(Ft):(ee.marked="property",z(un))}function Ft(N){if(N==":")return z(bt);if(N=="(")return Z(un)}function pt(N,se,Me){function We(It,Vt){if(Me?Me.indexOf(It)>-1:It==","){var ir=ee.state.lexical;return ir.info=="call"&&(ir.pos=(ir.pos||0)+1),z(function(ut,Tn){return ut==se||Tn==se?Z():Z(N)},We)}return It==se||Vt==se?z():Me&&Me.indexOf(";")>-1?Z(N):z(De(se))}return function(It,Vt){return It==se||Vt==se?z():Z(N,We)}}function vt(N,se,Me){for(var We=3;We<arguments.length;We++)ee.cc.push(arguments[We]);return z(Oe(se,Me),pt(N,se),be)}function Pt(N){return N=="}"?z():Z(Ge,Pt)}function ot(N,se){if(re){if(N==":")return z(Be);if(se=="?")return z(ot)}}function Ve(N,se){if(re&&(N==":"||se=="in"))return z(Be)}function ce(N){if(re&&N==":")return ee.stream.match(/^\s*\w+\s+is\b/,!1)?z(Ze,xe,Be):z(Be)}function xe(N,se){if(se=="is")return ee.marked="keyword",z()}function Be(N,se){if(se=="keyof"||se=="typeof"||se=="infer"||se=="readonly")return ee.marked="keyword",z(se=="typeof"?bt:Be);if(N=="variable"||se=="void")return ee.marked="type",z(Yt);if(se=="|"||se=="&")return z(Be);if(N=="string"||N=="number"||N=="atom")return z(Yt);if(N=="[")return z(Oe("]"),pt(Be,"]",","),be,Yt);if(N=="{")return z(Oe("}"),st,be,Yt);if(N=="(")return z(pt(Nt,")"),Ke,Yt);if(N=="<")return z(pt(Be,">"),Be);if(N=="quasi")return Z(kt,Yt)}function Ke(N){if(N=="=>")return z(Be)}function st(N){return N.match(/[\}\)\]]/)?z():N==","||N==";"?z(st):Z(xt,st)}function xt(N,se){if(N=="variable"||ee.style=="keyword")return ee.marked="property",z(xt);if(se=="?"||N=="number"||N=="string")return z(xt);if(N==":")return z(Be);if(N=="[")return z(De("variable"),Ve,De("]"),xt);if(N=="(")return Z(mn,xt);if(!N.match(/[;\}\)\],]/))return z()}function kt(N,se){return N!="quasi"?Z():se.slice(se.length-2)!="${"?z(kt):z(Be,yr)}function yr(N){if(N=="}")return ee.marked="string-2",ee.state.tokenize=Y,z(kt)}function Nt(N,se){return N=="variable"&&ee.stream.match(/^\s*[?:]/,!1)||se=="?"?z(Nt):N==":"?z(Be):N=="spread"?z(Nt):Z(Be)}function Yt(N,se){if(se=="<")return z(Oe(">"),pt(Be,">"),be,Yt);if(se=="|"||N=="."||se=="&")return z(Be);if(N=="[")return z(Be,De("]"),Yt);if(se=="extends"||se=="implements")return ee.marked="keyword",z(Be);if(se=="?")return z(Be,De(":"),Be)}function zn(N,se){if(se=="<")return z(Oe(">"),pt(Be,">"),be,Yt)}function Ur(){return Z(Be,Kr)}function Kr(N,se){if(se=="=")return z(Be)}function vi(N,se){return se=="enum"?(ee.marked="keyword",z(tr)):Z(tn,ot,rn,xr)}function tn(N,se){if(re&&ke(se))return ee.marked="keyword",z(tn);if(N=="variable")return Ee(se),z();if(N=="spread")return z(tn);if(N=="[")return vt(mi,"]");if(N=="{")return vt(gi,"}")}function gi(N,se){return N=="variable"&&!ee.stream.match(/^\s*:/,!1)?(Ee(se),z(rn)):(N=="variable"&&(ee.marked="property"),N=="spread"?z(tn):N=="}"?Z():N=="["?z(Ze,De("]"),De(":"),gi):z(De(":"),tn,rn))}function mi(){return Z(tn,rn)}function rn(N,se){if(se=="=")return z(bt)}function xr(N){if(N==",")return z(vi)}function Gn(N,se){if(N=="keyword b"&&se=="else")return z(Oe("form","else"),Ge,be)}function Ui(N,se){if(se=="await")return z(Ui);if(N=="(")return z(Oe(")"),Wi,be)}function Wi(N){return N=="var"?z(vi,gn):N=="variable"?z(gn):Z(gn)}function gn(N,se){return N==")"?z():N==";"?z(gn):se=="in"||se=="of"?(ee.marked="keyword",z(Ze,gn)):Z(Ze,gn)}function un(N,se){if(se=="*")return ee.marked="keyword",z(un);if(N=="variable")return Ee(se),z(un);if(N=="(")return z(Tt,Oe(")"),pt(On,")"),be,ce,Ge,Le);if(re&&se=="<")return z(Oe(">"),pt(Ur,">"),be,un)}function mn(N,se){if(se=="*")return ee.marked="keyword",z(mn);if(N=="variable")return Ee(se),z(mn);if(N=="(")return z(Tt,Oe(")"),pt(On,")"),be,ce,Le);if(re&&se=="<")return z(Oe(">"),pt(Ur,">"),be,mn)}function yn(N,se){if(N=="keyword"||N=="variable")return ee.marked="type",z(yn);if(se=="<")return z(Oe(">"),pt(Ur,">"),be)}function On(N,se){return se=="@"&&z(Ze,On),N=="spread"?z(On):re&&ke(se)?(ee.marked="keyword",z(On)):re&&N=="this"?z(ot,rn):Z(tn,ot,rn)}function lo(N,se){return N=="variable"?$n(N,se):fn(N,se)}function $n(N,se){if(N=="variable")return Ee(se),z(fn)}function fn(N,se){if(se=="<")return z(Oe(">"),pt(Ur,">"),be,fn);if(se=="extends"||se=="implements"||re&&N==",")return se=="implements"&&(ee.marked="keyword"),z(re?Be:Ze,fn);if(N=="{")return z(Oe("}"),Cr,be)}function Cr(N,se){if(N=="async"||N=="variable"&&(se=="static"||se=="get"||se=="set"||re&&ke(se))&&ee.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return ee.marked="keyword",z(Cr);if(N=="variable"||ee.style=="keyword")return ee.marked="property",z(yi,Cr);if(N=="number"||N=="string")return z(yi,Cr);if(N=="[")return z(Ze,ot,De("]"),yi,Cr);if(se=="*")return ee.marked="keyword",z(Cr);if(re&&N=="(")return Z(mn,Cr);if(N==";"||N==",")return z(Cr);if(N=="}")return z();if(se=="@")return z(Ze,Cr)}function yi(N,se){if(se=="!"||se=="?")return z(yi);if(N==":")return z(Be,rn);if(se=="=")return z(bt);var Me=ee.state.lexical.prev,We=Me&&Me.info=="interface";return Z(We?mn:un)}function kn(N,se){return se=="*"?(ee.marked="keyword",z(na,De(";"))):se=="default"?(ee.marked="keyword",z(Ze,De(";"))):N=="{"?z(pt(Ta,"}"),na,De(";")):Z(Ge)}function Ta(N,se){if(se=="as")return ee.marked="keyword",z(De("variable"));if(N=="variable")return Z(bt,Ta)}function uo(N){return N=="string"?z():N=="("?Z(Ze):N=="."?Z(nt):Z(vr,lt,na)}function vr(N,se){return N=="{"?vt(vr,"}"):(N=="variable"&&Ee(se),se=="*"&&(ee.marked="keyword"),z(bi))}function lt(N){if(N==",")return z(vr,lt)}function bi(N,se){if(se=="as")return ee.marked="keyword",z(vr)}function na(N,se){if(se=="from")return ee.marked="keyword",z(Ze)}function Rn(N){return N=="]"?z():Z(pt(bt,"]"))}function tr(){return Z(Oe("form"),tn,De("{"),Oe("}"),pt(ti,"}"),be,be)}function ti(){return Z(tn,rn)}function ia(N,se){return N.lastType=="operator"||N.lastType==","||ie.test(se.charAt(0))||/[,.]/.test(se.charAt(0))}function Pa(N,se,Me){return se.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(se.lastType)||se.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(Me||0)))}return{startState:function(N){var se={tokenize:F,lastType:"sof",cc:[],lexical:new H((N||0)-A,0,"block",!1),localVars:w.localVars,context:w.localVars&&new it(null,null,!1),indented:N||0};return w.globalVars&&typeof w.globalVars=="object"&&(se.globalVars=w.globalVars),se},token:function(N,se){if(N.sol()&&(se.lexical.hasOwnProperty("align")||(se.lexical.align=!1),se.indented=N.indentation(),te(N,se)),se.tokenize!=Q&&N.eatSpace())return null;var Me=se.tokenize(N,se);return G=="comment"?Me:(se.lastType=G=="operator"&&(L=="++"||L=="--")?"incdec":G,ve(se,Me,G,L,N))},indent:function(N,se){if(N.tokenize==Q||N.tokenize==Y)return d.Pass;if(N.tokenize!=F)return 0;var Me=se&&se.charAt(0),We=N.lexical,It;if(!/^\s*else\b/.test(se))for(var Vt=N.cc.length-1;Vt>=0;--Vt){var ir=N.cc[Vt];if(ir==be)We=We.prev;else if(ir!=Gn&&ir!=Le)break}for(;(We.type=="stat"||We.type=="form")&&(Me=="}"||(It=N.cc[N.cc.length-1])&&(It==nt||It==Xe)&&!/^[,\.=+\-*:?[\(]/.test(se));)We=We.prev;O&&We.type==")"&&We.prev.type=="stat"&&(We=We.prev);var ut=We.type,Tn=Me==ut;return ut=="vardef"?We.indented+(N.lastType=="operator"||N.lastType==","?We.info.length+1:0):ut=="form"&&Me=="{"?We.indented:ut=="form"?We.indented+A:ut=="stat"?We.indented+(ia(N,se)?O||A:0):We.info=="switch"&&!Tn&&w.doubleIndentSwitch!=!1?We.indented+(/^(?:case|default)\b/.test(se)?A:2*A):We.align?We.column+(Tn?0:1):We.indented+(Tn?0:A)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:k,jsonMode:U,expressionAllowed:Pa,skipExpression:function(N){ve(N,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,E)=>{"use strict";/*!
37
37
  * cookie
38
38
  * Copyright(c) 2012-2014 Roman Shtylman
39
39
  * Copyright(c) 2015 Douglas Christopher Wilson
40
40
  * MIT Licensed
41
- */E.parse=x,E.serialize=w;var o=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,re){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=re||{},ie=ne.decode||A,Y=0;Y<Z.length;){var P=Z.indexOf("=",Y);if(P===-1)break;var $=Z.indexOf(";",Y);if($===-1)$=Z.length;else if($<P){Y=Z.lastIndexOf(";",P-1)+1;continue}var D=Z.slice(Y,P).trim();if(ue[D]===void 0){var C=Z.slice(P+1,$).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),ue[D]=U(C,ie)}Y=$+1}return ue}function w(Z,re,ue){var ne=ue||{},ie=ne.encode||O;if(typeof ie!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=ie(re);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var P=Z+"="+Y;if(ne.maxAge!=null){var $=ne.maxAge-0;if(isNaN($)||!isFinite($))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor($)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");P+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");P+="; Path="+ne.path}if(ne.expires){var D=ne.expires;if(!k(D)||isNaN(D.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+D.toUTCString()}if(ne.httpOnly&&(P+="; HttpOnly"),ne.secure&&(P+="; Secure"),ne.priority){var C=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var F=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(F){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function A(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function O(Z){return encodeURIComponent(Z)}function k(Z){return o.call(Z)==="[object Date]"||Z instanceof Date}function U(Z,re){try{return re(Z)}catch(ue){return Z}}},27129:(h,E,o)=>{var d=o(53822);h.exports=d},86250:(h,E,o)=>{var d=o(21434);h.exports=d},61347:(h,E,o)=>{var d=o(27710);h.exports=d},42142:(h,E,o)=>{var d=o(31585);h.exports=d},21106:(h,E,o)=>{var d=o(55603);h.exports=d},97497:(h,E,o)=>{var d=o(31206);h.exports=d},28385:(h,E,o)=>{var d=o(26174);h.exports=d},85874:(h,E,o)=>{var d=o(87511);h.exports=d},86843:(h,E,o)=>{var d=o(24741);h.exports=d},37528:(h,E,o)=>{var d=o(4963);h.exports=d},81471:(h,E,o)=>{var d=o(21025);h.exports=d},5271:(h,E,o)=>{var d=o(27820);h.exports=d},87275:(h,E,o)=>{var d=o(74194);h.exports=d},13772:(h,E,o)=>{var d=o(32854);h.exports=d},97574:(h,E,o)=>{var d=o(60002);h.exports=d},69373:(h,E,o)=>{var d=o(28980);h.exports=d},70033:(h,E,o)=>{var d=o(45636);h.exports=d},77443:(h,E,o)=>{var d=o(66672);h.exports=d},88362:(h,E,o)=>{var d=o(46618);h.exports=d},89821:(h,E,o)=>{var d=o(42285);o(9031),h.exports=d},8008:(h,E,o)=>{var d=o(58535);h.exports=d},30164:(h,E,o)=>{var d=o(16042);h.exports=d},52221:(h,E,o)=>{o(5454),o(19173);var d=o(57545);h.exports=d.Array.from},75078:(h,E,o)=>{o(8118);var d=o(57545);h.exports=d.Array.isArray},66135:(h,E,o)=>{o(59106);var d=o(45607);h.exports=d("Array").concat},77237:(h,E,o)=>{o(98939),o(46663);var d=o(45607);h.exports=d("Array").entries},83971:(h,E,o)=>{o(73436);var d=o(45607);h.exports=d("Array").filter},42087:(h,E,o)=>{o(10880);var d=o(45607);h.exports=d("Array").find},60098:(h,E,o)=>{o(9823);var d=o(45607);h.exports=d("Array").forEach},54216:(h,E,o)=>{o(70024);var d=o(45607);h.exports=d("Array").includes},92089:(h,E,o)=>{o(62276);var d=o(45607);h.exports=d("Array").indexOf},6209:(h,E,o)=>{o(63838);var d=o(45607);h.exports=d("Array").map},49922:(h,E,o)=>{o(99523);var d=o(45607);h.exports=d("Array").reverse},52671:(h,E,o)=>{o(65818);var d=o(45607);h.exports=d("Array").slice},51375:(h,E,o)=>{o(12178);var d=o(45607);h.exports=d("Array").splice},65739:(h,E,o)=>{o(98939),o(5454);var d=o(78703);h.exports=d},74030:(h,E,o)=>{o(25067),h.exports=o(98576)},41484:(h,E,o)=>{var d=o(8902),x=o(66135),w=Array.prototype;h.exports=function(A){var O=A.concat;return A===w||d(w,A)&&O===w.concat?x:O}},53669:(h,E,o)=>{var d=o(8902),x=o(83971),w=Array.prototype;h.exports=function(A){var O=A.filter;return A===w||d(w,A)&&O===w.filter?x:O}},37506:(h,E,o)=>{var d=o(8902),x=o(42087),w=Array.prototype;h.exports=function(A){var O=A.find;return A===w||d(w,A)&&O===w.find?x:O}},13173:(h,E,o)=>{var d=o(8902),x=o(54216),w=o(62840),A=Array.prototype,O=String.prototype;h.exports=function(k){var U=k.includes;return k===A||d(A,k)&&U===A.includes?x:typeof k=="string"||k===O||d(O,k)&&U===O.includes?w:U}},92604:(h,E,o)=>{var d=o(8902),x=o(92089),w=Array.prototype;h.exports=function(A){var O=A.indexOf;return A===w||d(w,A)&&O===w.indexOf?x:O}},263:(h,E,o)=>{var d=o(8902),x=o(6209),w=Array.prototype;h.exports=function(A){var O=A.map;return A===w||d(w,A)&&O===w.map?x:O}},80432:(h,E,o)=>{var d=o(8902),x=o(49922),w=Array.prototype;h.exports=function(A){var O=A.reverse;return A===w||d(w,A)&&O===w.reverse?x:O}},77663:(h,E,o)=>{var d=o(8902),x=o(52671),w=Array.prototype;h.exports=function(A){var O=A.slice;return A===w||d(w,A)&&O===w.slice?x:O}},45063:(h,E,o)=>{var d=o(8902),x=o(51375),w=Array.prototype;h.exports=function(A){var O=A.splice;return A===w||d(w,A)&&O===w.splice?x:O}},7769:(h,E,o)=>{var d=o(8902),x=o(14820),w=String.prototype;h.exports=function(A){var O=A.startsWith;return typeof A=="string"||A===w||d(w,A)&&O===w.startsWith?x:O}},96056:(h,E,o)=>{o(59704);var d=o(57545),x=o(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(A,O,k){return x(d.JSON.stringify,null,arguments)}},99936:(h,E,o)=>{o(93582);var d=o(57545);h.exports=d.Object.assign},23213:(h,E,o)=>{o(73113);var d=o(57545),x=d.Object;h.exports=function(A,O){return x.create(A,O)}},38724:(h,E,o)=>{o(57585);var d=o(57545),x=d.Object,w=h.exports=function(O,k){return x.defineProperties(O,k)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,E,o)=>{o(20297);var d=o(57545),x=d.Object,w=h.exports=function(O,k,U){return x.defineProperty(O,k,U)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,E,o)=>{o(27442);var d=o(57545);h.exports=d.Object.entries},60632:(h,E,o)=>{o(89189);var d=o(57545),x=d.Object,w=h.exports=function(O,k){return x.getOwnPropertyDescriptor(O,k)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,E,o)=>{o(62509);var d=o(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,E,o)=>{o(36187);var d=o(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,E,o)=>{o(19234);var d=o(57545);h.exports=d.Object.getPrototypeOf},38651:(h,E,o)=>{o(92647);var d=o(57545);h.exports=d.Object.keys},33083:(h,E,o)=>{o(13222);var d=o(57545);h.exports=d.Object.setPrototypeOf},93154:(h,E,o)=>{o(4242),o(98939),o(46663),o(59021),o(97884),o(78885),o(91868),o(5454);var d=o(57545);h.exports=d.Promise},62840:(h,E,o)=>{o(39247);var d=o(45607);h.exports=d("String").includes},14820:(h,E,o)=>{o(32991);var d=o(45607);h.exports=d("String").startsWith},85008:(h,E,o)=>{o(59106),o(46663),o(36187),o(19781),o(50492),o(66681),o(29594),o(63665),o(29017),o(11250),o(79786),o(90503),o(16565),o(69322),o(13610),o(36886),o(33514),o(68671),o(58556),o(71367);var d=o(57545);h.exports=d.Symbol},994:(h,E,o)=>{o(98939),o(46663),o(5454),o(63665);var d=o(89207);h.exports=d.f("iterator")},30290:(h,E,o)=>{o(12432),o(13610);var d=o(89207);h.exports=d.f("toPrimitive")},31293:(h,E,o)=>{o(98939),o(46663),o(33983);var d=o(57545);h.exports=d.WeakMap},62813:(h,E,o)=>{h.exports=o(52708)},68664:(h,E,o)=>{h.exports=o(58541)},21457:(h,E,o)=>{h.exports=o(37020)},36516:(h,E,o)=>{h.exports=o(79987)},87611:(h,E,o)=>{h.exports=o(86812)},4161:(h,E,o)=>{h.exports=o(51024)},75159:(h,E,o)=>{h.exports=o(32747)},87708:(h,E,o)=>{h.exports=o(85918)},42937:(h,E,o)=>{h.exports=o(21626)},69297:(h,E,o)=>{h.exports=o(77021)},10353:(h,E,o)=>{h.exports=o(18281)},8026:(h,E,o)=>{h.exports=o(90229)},67362:(h,E,o)=>{h.exports=o(53949)},57532:(h,E,o)=>{h.exports=o(11795)},61903:(h,E,o)=>{h.exports=o(75090)},42044:(h,E,o)=>{h.exports=o(27994)},60902:(h,E,o)=>{h.exports=o(45483)},2214:(h,E,o)=>{h.exports=o(35796)},983:(h,E,o)=>{h.exports=o(79918)},59256:(h,E,o)=>{h.exports=o(82185)},95659:(h,E,o)=>{h.exports=o(39982)},93698:(h,E,o)=>{h.exports=o(88241)},52708:(h,E,o)=>{var d=o(27129);h.exports=d},58541:(h,E,o)=>{var d=o(86250);h.exports=d},37020:(h,E,o)=>{var d=o(61347);h.exports=d},79987:(h,E,o)=>{o(5363);var d=o(42142);h.exports=d},86812:(h,E,o)=>{var d=o(21106);h.exports=d},51024:(h,E,o)=>{var d=o(97497);h.exports=d},32747:(h,E,o)=>{var d=o(28385);h.exports=d},85918:(h,E,o)=>{var d=o(85874);h.exports=d},21626:(h,E,o)=>{var d=o(86843);h.exports=d},77021:(h,E,o)=>{var d=o(37528);h.exports=d},18281:(h,E,o)=>{var d=o(81471);h.exports=d},90229:(h,E,o)=>{var d=o(5271);h.exports=d},53949:(h,E,o)=>{var d=o(87275);h.exports=d},11795:(h,E,o)=>{var d=o(13772);h.exports=d},75090:(h,E,o)=>{var d=o(97574);h.exports=d},27994:(h,E,o)=>{var d=o(69373);h.exports=d},45483:(h,E,o)=>{var d=o(70033);h.exports=d},35796:(h,E,o)=>{var d=o(77443);h.exports=d},79918:(h,E,o)=>{var d=o(88362);o(12752),o(14562),o(25363),o(69355),h.exports=d},82185:(h,E,o)=>{var d=o(89821);o(60177),o(96658),o(54212),o(18658),o(71875),o(54592),o(26680),h.exports=d},39982:(h,E,o)=>{var d=o(8008);h.exports=d},88241:(h,E,o)=>{var d=o(30164);h.exports=d},66235:(h,E,o)=>{var d=o(16447),x=o(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a function")}},71404:(h,E,o)=>{var d=o(22091),x=o(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a constructor")}},7757:(h,E,o)=>{var d=o(16447),x=String,w=TypeError;h.exports=function(A){if(typeof A=="object"||d(A))return A;throw w("Can't set "+x(A)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,E,o)=>{var d=o(8902),x=TypeError;h.exports=function(w,A){if(d(A,w))return w;throw x("Incorrect invocation")}},31138:(h,E,o)=>{var d=o(35744),x=String,w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not an object")}},80410:(h,E,o)=>{var d=o(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,E,o)=>{"use strict";var d=o(50454).forEach,x=o(10424),w=x("forEach");h.exports=w?[].forEach:function(O){return d(this,O,arguments.length>1?arguments[1]:void 0)}},20841:(h,E,o)=>{"use strict";var d=o(8043),x=o(18922),w=o(71795),A=o(21635),O=o(96109),k=o(22091),U=o(84104),Z=o(49361),re=o(61669),ue=o(78703),ne=Array;h.exports=function(Y){var P=w(Y),$=k(this),D=arguments.length,C=D>1?arguments[1]:void 0,F=C!==void 0;F&&(C=d(C,D>2?arguments[2]:void 0));var V=ue(P),X=0,K,W,te,J,H,fe;if(V&&!(this===ne&&O(V)))for(J=re(P,V),H=J.next,W=$?new this:[];!(te=x(H,J)).done;X++)fe=F?A(J,C,[te.value,X],!0):te.value,Z(W,X,fe);else for(K=U(P),W=$?new this(K):ne(K);K>X;X++)fe=F?C(P[X],X):P[X],Z(W,X,fe);return W.length=X,W}},48180:(h,E,o)=>{var d=o(20101),x=o(97739),w=o(84104),A=function(O){return function(k,U,Z){var re=d(k),ue=w(re),ne=x(Z,ue),ie;if(O&&U!=U){for(;ue>ne;)if(ie=re[ne++],ie!=ie)return!0}else for(;ue>ne;ne++)if((O||ne in re)&&re[ne]===U)return O||ne||0;return!O&&-1}};h.exports={includes:A(!0),indexOf:A(!1)}},50454:(h,E,o)=>{var d=o(8043),x=o(84120),w=o(2202),A=o(71795),O=o(84104),k=o(71321),U=x([].push),Z=function(re){var ue=re==1,ne=re==2,ie=re==3,Y=re==4,P=re==6,$=re==7,D=re==5||P;return function(C,F,V,X){for(var K=A(C),W=w(K),te=d(F,V),J=O(W),H=0,fe=X||k,he=ue?fe(C,J):ne||$?fe(C,0):void 0,_,Q;J>H;H++)if((D||H in W)&&(_=W[H],Q=te(_,H,K),re))if(ue)he[H]=Q;else if(Q)switch(re){case 3:return!0;case 5:return _;case 6:return H;case 2:U(he,_)}else switch(re){case 4:return!1;case 7:U(he,_)}return P?-1:ie||Y?Y:he}};h.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},90242:(h,E,o)=>{var d=o(76192),x=o(18182),w=o(14218),A=x("species");h.exports=function(O){return w>=51||!d(function(){var k=[],U=k.constructor={};return U[A]=function(){return{foo:1}},k[O](Boolean).foo!==1})}},10424:(h,E,o)=>{"use strict";var d=o(76192);h.exports=function(x,w){var A=[][x];return!!A&&d(function(){A.call(null,w||function(){return 1},1)})}},95072:(h,E,o)=>{"use strict";var d=o(50069),x=o(34770),w=TypeError,A=Object.getOwnPropertyDescriptor,O=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(k){return k instanceof TypeError}}();h.exports=O?function(k,U){if(x(k)&&!A(k,"length").writable)throw w("Cannot set read only .length");return k.length=U}:function(k,U){return k.length=U}},1923:(h,E,o)=>{var d=o(97739),x=o(84104),w=o(49361),A=Array,O=Math.max;h.exports=function(k,U,Z){for(var re=x(k),ue=d(U,re),ne=d(Z===void 0?re:Z,re),ie=A(O(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(ie,Y,k[ue]);return ie.length=Y,ie}},93096:(h,E,o)=>{var d=o(84120);h.exports=d([].slice)},6614:(h,E,o)=>{var d=o(1923),x=Math.floor,w=function(k,U){var Z=k.length,re=x(Z/2);return Z<8?A(k,U):O(k,w(d(k,0,re),U),w(d(k,re),U),U)},A=function(k,U){for(var Z=k.length,re=1,ue,ne;re<Z;){for(ne=re,ue=k[re];ne&&U(k[ne-1],ue)>0;)k[ne]=k[--ne];ne!==re++&&(k[ne]=ue)}return k},O=function(k,U,Z,re){for(var ue=U.length,ne=Z.length,ie=0,Y=0;ie<ue||Y<ne;)k[ie+Y]=ie<ue&&Y<ne?re(U[ie],Z[Y])<=0?U[ie++]:Z[Y++]:ie<ue?U[ie++]:Z[Y++];return k};h.exports=w},83712:(h,E,o)=>{var d=o(34770),x=o(22091),w=o(35744),A=o(18182),O=A("species"),k=Array;h.exports=function(U){var Z;return d(U)&&(Z=U.constructor,x(Z)&&(Z===k||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[O],Z===null&&(Z=void 0))),Z===void 0?k:Z}},71321:(h,E,o)=>{var d=o(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,E,o)=>{var d=o(31138),x=o(66639);h.exports=function(w,A,O,k){try{return k?A(d(O)[0],O[1]):A(O)}catch(U){x(w,"throw",U)}}},19770:(h,E,o)=>{var d=o(18182),x=d("iterator"),w=!1;try{var A=0,O={next:function(){return{done:!!A++}},return:function(){w=!0}};O[x]=function(){return this},Array.from(O,function(){throw 2})}catch(k){}h.exports=function(k,U){if(!U&&!w)return!1;var Z=!1;try{var re={};re[x]=function(){return{next:function(){return{done:Z=!0}}}},k(re)}catch(ue){}return Z}},29272:(h,E,o)=>{var d=o(84120),x=d({}.toString),w=d("".slice);h.exports=function(A){return w(x(A),8,-1)}},4696:(h,E,o)=>{var d=o(83471),x=o(16447),w=o(29272),A=o(18182),O=A("toStringTag"),k=Object,U=w(function(){return arguments}())=="Arguments",Z=function(re,ue){try{return re[ue]}catch(ne){}};h.exports=d?w:function(re){var ue,ne,ie;return re===void 0?"Undefined":re===null?"Null":typeof(ne=Z(ue=k(re),O))=="string"?ne:U?w(ue):(ie=w(ue))=="Object"&&x(ue.callee)?"Arguments":ie}},51057:(h,E,o)=>{"use strict";var d=o(84120),x=o(35090),w=o(32861).getWeakData,A=o(46961),O=o(31138),k=o(75646),U=o(35744),Z=o(33442),re=o(50454),ue=o(64500),ne=o(73326),ie=ne.set,Y=ne.getterFor,P=re.find,$=re.findIndex,D=d([].splice),C=0,F=function(K){return K.frozen||(K.frozen=new V)},V=function(){this.entries=[]},X=function(K,W){return P(K.entries,function(te){return te[0]===W})};V.prototype={get:function(K){var W=X(this,K);if(W)return W[1]},has:function(K){return!!X(this,K)},set:function(K,W){var te=X(this,K);te?te[1]=W:this.entries.push([K,W])},delete:function(K){var W=$(this.entries,function(te){return te[0]===K});return~W&&D(this.entries,W,1),!!~W}},h.exports={getConstructor:function(K,W,te,J){var H=K(function(Q,z){A(Q,fe),ie(Q,{type:W,id:C++,frozen:void 0}),k(z)||Z(z,Q[J],{that:Q,AS_ENTRIES:te})}),fe=H.prototype,he=Y(W),_=function(Q,z,ge){var Ee=he(Q),je=w(O(z),!0);return je===!0?F(Ee).set(z,ge):je[Ee.id]=ge,Q};return x(fe,{delete:function(Q){var z=he(this);if(!U(Q))return!1;var ge=w(Q);return ge===!0?F(z).delete(Q):ge&&ue(ge,z.id)&&delete ge[z.id]},has:function(z){var ge=he(this);if(!U(z))return!1;var Ee=w(z);return Ee===!0?F(ge).has(z):Ee&&ue(Ee,ge.id)}}),x(fe,te?{get:function(z){var ge=he(this);if(U(z)){var Ee=w(z);return Ee===!0?F(ge).get(z):Ee?Ee[ge.id]:void 0}},set:function(z,ge){return _(this,z,ge)}}:{add:function(z){return _(this,z,!0)}}),H}}},34535:(h,E,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(32861),A=o(76192),O=o(98711),k=o(33442),U=o(46961),Z=o(16447),re=o(35744),ue=o(11284),ne=o(42760).f,ie=o(50454).forEach,Y=o(50069),P=o(73326),$=P.set,D=P.getterFor;h.exports=function(C,F,V){var X=C.indexOf("Map")!==-1,K=C.indexOf("Weak")!==-1,W=X?"set":"add",te=x[C],J=te&&te.prototype,H={},fe;if(!Y||!Z(te)||!(K||J.forEach&&!A(function(){new te().entries().next()})))fe=V.getConstructor(F,C,X,W),w.enable();else{fe=F(function(Q,z){$(U(Q,he),{type:C,collection:new te}),z!=null&&k(z,Q[W],{that:Q,AS_ENTRIES:X})});var he=fe.prototype,_=D(C);ie(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Q){var z=Q=="add"||Q=="set";Q in J&&!(K&&Q=="clear")&&O(he,Q,function(ge,Ee){var je=_(this).collection;if(!z&&K&&!re(ge))return Q=="get"?void 0:!1;var ke=je[Q](ge===0?0:ge,Ee);return z?this:ke})}),K||ne(he,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(fe,C,!1,!0),H[C]=fe,d({global:!0,forced:!0},H),K||V.setStrong(fe,C,X),fe}},97987:(h,E,o)=>{var d=o(64500),x=o(93011),w=o(5141),A=o(42760);h.exports=function(O,k,U){for(var Z=x(k),re=A.f,ue=w.f,ne=0;ne<Z.length;ne++){var ie=Z[ne];!d(O,ie)&&!(U&&d(U,ie))&&re(O,ie,ue(k,ie))}}},83519:(h,E,o)=>{var d=o(18182),x=d("match");h.exports=function(w){var A=/./;try{"/./"[w](A)}catch(O){try{return A[x]=!1,"/./"[w](A)}catch(k){}}return!1}},4635:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(E,o){return{value:E,done:o}}},98711:(h,E,o)=>{var d=o(50069),x=o(42760),w=o(90774);h.exports=d?function(A,O,k){return x.f(A,O,w(1,k))}:function(A,O,k){return A[O]=k,A}},90774:h=>{h.exports=function(E,o){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:o}}},49361:(h,E,o)=>{"use strict";var d=o(40077),x=o(42760),w=o(90774);h.exports=function(A,O,k){var U=d(O);U in A?x.f(A,U,w(0,k)):A[U]=k}},59362:(h,E,o)=>{var d=o(98711);h.exports=function(x,w,A,O){return O&&O.enumerable?x[w]=A:d(x,w,A),x}},35090:(h,E,o)=>{var d=o(59362);h.exports=function(x,w,A){for(var O in w)A&&A.unsafe&&x[O]?x[O]=w[O]:d(x,O,w[O],A);return x}},65098:(h,E,o)=>{var d=o(98576),x=Object.defineProperty;h.exports=function(w,A){try{x(d,w,{value:A,configurable:!0,writable:!0})}catch(O){d[w]=A}return A}},29970:(h,E,o)=>{"use strict";var d=o(79288),x=TypeError;h.exports=function(w,A){if(!delete w[A])throw x("Cannot delete property "+d(A)+" of "+d(w))}},50069:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var E=typeof document=="object"&&document.all,o=typeof E=="undefined"&&E!==void 0;h.exports={all:E,IS_HTMLDDA:o}},67449:(h,E,o)=>{var d=o(98576),x=o(35744),w=d.document,A=x(w)&&x(w.createElement);h.exports=function(O){return A?w.createElement(O):{}}},29425:h=>{var E=TypeError,o=9007199254740991;h.exports=function(d){if(d>o)throw E("Maximum allowed index exceeded");return d}},17365:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(h,E,o)=>{var d=o(60659),x=o(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,E,o)=>{var d=o(78989),x=o(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,E,o)=>{var d=o(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,E,o)=>{var d=o(29272),x=o(98576);h.exports=d(x.process)=="process"},5914:(h,E,o)=>{var d=o(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,E,o)=>{var d=o(10150);h.exports=d("navigator","userAgent")||""},14218:(h,E,o)=>{var d=o(98576),x=o(78989),w=d.process,A=d.Deno,O=w&&w.versions||A&&A.version,k=O&&O.v8,U,Z;k&&(U=k.split("."),Z=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!Z&&x&&(U=x.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=x.match(/Chrome\/(\d+)/),U&&(Z=+U[1]))),h.exports=Z},45607:(h,E,o)=>{var d=o(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,E,o)=>{var d=o(84120),x=Error,w=d("".replace),A=function(U){return String(x(U).stack)}("zxcasd"),O=/\n\s*at [^:]*:[^\n]*/,k=O.test(A);h.exports=function(U,Z){if(k&&typeof U=="string"&&!x.prepareStackTrace)for(;Z--;)U=w(U,O,"");return U}},50274:(h,E,o)=>{var d=o(76192),x=o(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,E,o)=>{"use strict";var d=o(98576),x=o(86298),w=o(14914),A=o(16447),O=o(5141).f,k=o(89245),U=o(57545),Z=o(8043),re=o(98711),ue=o(64500),ne=function(ie){var Y=function(P,$,D){if(this instanceof Y){switch(arguments.length){case 0:return new ie;case 1:return new ie(P);case 2:return new ie(P,$)}return new ie(P,$,D)}return x(ie,this,arguments)};return Y.prototype=ie.prototype,Y};h.exports=function(ie,Y){var P=ie.target,$=ie.global,D=ie.stat,C=ie.proto,F=$?d:D?d[P]:(d[P]||{}).prototype,V=$?U:U[P]||re(U,P,{})[P],X=V.prototype,K,W,te,J,H,fe,he,_,Q;for(J in Y)K=k($?J:P+(D?".":"#")+J,ie.forced),W=!K&&F&&ue(F,J),fe=V[J],W&&(ie.dontCallGetSet?(Q=O(F,J),he=Q&&Q.value):he=F[J]),H=W&&he?he:Y[J],!(W&&typeof fe==typeof H)&&(ie.bind&&W?_=Z(H,d):ie.wrap&&W?_=ne(H):C&&A(H)?_=w(H):_=H,(ie.sham||H&&H.sham||fe&&fe.sham)&&re(_,"sham",!0),re(V,J,_),C&&(te=P+"Prototype",ue(U,te)||re(U,te,{}),re(U[te],J,H),ie.real&&X&&(K||!X[J])&&re(X,J,H)))}},76192:h=>{h.exports=function(E){try{return!!E()}catch(o){return!0}}},47636:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,E,o)=>{var d=o(22784),x=Function.prototype,w=x.apply,A=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?A.bind(w):function(){return A.apply(w,arguments)})},8043:(h,E,o)=>{var d=o(14914),x=o(66235),w=o(22784),A=d(d.bind);h.exports=function(O,k){return x(O),k===void 0?O:w?A(O,k):function(){return O.apply(k,arguments)}}},22784:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,E,o)=>{var d=o(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,E,o)=>{var d=o(50069),x=o(64500),w=Function.prototype,A=d&&Object.getOwnPropertyDescriptor,O=x(w,"name"),k=O&&function(){}.name==="something",U=O&&(!d||d&&A(w,"name").configurable);h.exports={EXISTS:O,PROPER:k,CONFIGURABLE:U}},14914:(h,E,o)=>{var d=o(29272),x=o(84120);h.exports=function(w){if(d(w)==="Function")return x(w)}},84120:(h,E,o)=>{var d=o(22784),x=Function.prototype,w=x.call,A=d&&x.bind.bind(w,w);h.exports=d?A:function(O){return function(){return w.apply(O,arguments)}}},10150:(h,E,o)=>{var d=o(57545),x=o(98576),w=o(16447),A=function(O){return w(O)?O:void 0};h.exports=function(O,k){return arguments.length<2?A(d[O])||A(x[O]):d[O]&&d[O][k]||x[O]&&x[O][k]}},78703:(h,E,o)=>{var d=o(4696),x=o(75037),w=o(75646),A=o(47771),O=o(18182),k=O("iterator");h.exports=function(U){if(!w(U))return x(U,k)||x(U,"@@iterator")||A[d(U)]}},61669:(h,E,o)=>{var d=o(18922),x=o(66235),w=o(31138),A=o(79288),O=o(78703),k=TypeError;h.exports=function(U,Z){var re=arguments.length<2?O(U):Z;if(x(re))return w(d(re,U));throw k(A(U)+" is not iterable")}},75037:(h,E,o)=>{var d=o(66235),x=o(75646);h.exports=function(w,A){var O=w[A];return x(O)?void 0:d(O)}},98576:(h,E,o)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},64500:(h,E,o)=>{var d=o(84120),x=o(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(O,k){return w(x(O),k)}},14535:h=>{h.exports={}},63681:(h,E,o)=>{var d=o(98576);h.exports=function(x,w){var A=d.console;A&&A.error&&(arguments.length==1?A.error(x):A.error(x,w))}},47403:(h,E,o)=>{var d=o(10150);h.exports=d("document","documentElement")},80188:(h,E,o)=>{var d=o(50069),x=o(76192),w=o(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,E,o)=>{var d=o(84120),x=o(76192),w=o(29272),A=Object,O=d("".split);h.exports=x(function(){return!A("z").propertyIsEnumerable(0)})?function(k){return w(k)=="String"?O(k,""):A(k)}:A},19516:(h,E,o)=>{var d=o(84120),x=o(16447),w=o(46434),A=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(O){return A(O)}),h.exports=w.inspectSource},10273:(h,E,o)=>{var d=o(35744),x=o(98711);h.exports=function(w,A){d(A)&&"cause"in A&&x(w,"cause",A.cause)}},32861:(h,E,o)=>{var d=o(93085),x=o(84120),w=o(14535),A=o(35744),O=o(64500),k=o(42760).f,U=o(92092),Z=o(24052),re=o(4532),ue=o(42759),ne=o(47636),ie=!1,Y=ue("meta"),P=0,$=function(K){k(K,Y,{value:{objectID:"O"+P++,weakData:{}}})},D=function(K,W){if(!A(K))return typeof K=="symbol"?K:(typeof K=="string"?"S":"P")+K;if(!O(K,Y)){if(!re(K))return"F";if(!W)return"E";$(K)}return K[Y].objectID},C=function(K,W){if(!O(K,Y)){if(!re(K))return!0;if(!W)return!1;$(K)}return K[Y].weakData},F=function(K){return ne&&ie&&re(K)&&!O(K,Y)&&$(K),K},V=function(){X.enable=function(){},ie=!0;var K=U.f,W=x([].splice),te={};te[Y]=1,K(te).length&&(U.f=function(J){for(var H=K(J),fe=0,he=H.length;fe<he;fe++)if(H[fe]===Y){W(H,fe,1);break}return H},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},X=h.exports={enable:V,fastKey:D,getWeakData:C,onFreeze:F};w[Y]=!0},73326:(h,E,o)=>{var d=o(55278),x=o(98576),w=o(35744),A=o(98711),O=o(64500),k=o(46434),U=o(69766),Z=o(14535),re="Object already initialized",ue=x.TypeError,ne=x.WeakMap,ie,Y,P,$=function(V){return P(V)?Y(V):ie(V,{})},D=function(V){return function(X){var K;if(!w(X)||(K=Y(X)).type!==V)throw ue("Incompatible receiver, "+V+" required");return K}};if(d||k.state){var C=k.state||(k.state=new ne);C.get=C.get,C.has=C.has,C.set=C.set,ie=function(V,X){if(C.has(V))throw ue(re);return X.facade=V,C.set(V,X),X},Y=function(V){return C.get(V)||{}},P=function(V){return C.has(V)}}else{var F=U("state");Z[F]=!0,ie=function(V,X){if(O(V,F))throw ue(re);return X.facade=V,A(V,F,X),X},Y=function(V){return O(V,F)?V[F]:{}},P=function(V){return O(V,F)}}h.exports={set:ie,get:Y,has:P,enforce:$,getterFor:D}},96109:(h,E,o)=>{var d=o(18182),x=o(47771),w=d("iterator"),A=Array.prototype;h.exports=function(O){return O!==void 0&&(x.Array===O||A[w]===O)}},34770:(h,E,o)=>{var d=o(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,E,o)=>{var d=o(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,E,o)=>{var d=o(84120),x=o(76192),w=o(16447),A=o(4696),O=o(10150),k=o(19516),U=function(){},Z=[],re=O("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),ie=!ue.exec(U),Y=function(D){if(!w(D))return!1;try{return re(U,Z,D),!0}catch(C){return!1}},P=function(D){if(!w(D))return!1;switch(A(D)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ie||!!ne(ue,k(D))}catch(C){return!0}};P.sham=!0,h.exports=!re||x(function(){var $;return Y(Y.call)||!Y(Object)||!Y(function(){$=!0})||$})?P:Y},89245:(h,E,o)=>{var d=o(76192),x=o(16447),w=/#|\.prototype\./,A=function(re,ue){var ne=k[O(re)];return ne==Z?!0:ne==U?!1:x(ue)?d(ue):!!ue},O=A.normalize=function(re){return String(re).replace(w,".").toLowerCase()},k=A.data={},U=A.NATIVE="N",Z=A.POLYFILL="P";h.exports=A},75646:h=>{h.exports=function(E){return E==null}},35744:(h,E,o)=>{var d=o(16447),x=o(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(A){return typeof A=="object"?A!==null:d(A)||A===w}:function(A){return typeof A=="object"?A!==null:d(A)}},85546:h=>{h.exports=!0},94352:(h,E,o)=>{var d=o(35744),x=o(29272),w=o(18182),A=w("match");h.exports=function(O){var k;return d(O)&&((k=O[A])!==void 0?!!k:x(O)=="RegExp")}},23236:(h,E,o)=>{var d=o(10150),x=o(16447),w=o(8902),A=o(50615),O=Object;h.exports=A?function(k){return typeof k=="symbol"}:function(k){var U=d("Symbol");return x(U)&&w(U.prototype,O(k))}},33442:(h,E,o)=>{var d=o(8043),x=o(18922),w=o(31138),A=o(79288),O=o(96109),k=o(84104),U=o(8902),Z=o(61669),re=o(78703),ue=o(66639),ne=TypeError,ie=function(P,$){this.stopped=P,this.result=$},Y=ie.prototype;h.exports=function(P,$,D){var C=D&&D.that,F=!!(D&&D.AS_ENTRIES),V=!!(D&&D.IS_RECORD),X=!!(D&&D.IS_ITERATOR),K=!!(D&&D.INTERRUPTED),W=d($,C),te,J,H,fe,he,_,Q,z=function(Ee){return te&&ue(te,"normal",Ee),new ie(!0,Ee)},ge=function(Ee){return F?(w(Ee),K?W(Ee[0],Ee[1],z):W(Ee[0],Ee[1])):K?W(Ee,z):W(Ee)};if(V)te=P.iterator;else if(X)te=P;else{if(J=re(P),!J)throw ne(A(P)+" is not iterable");if(O(J)){for(H=0,fe=k(P);fe>H;H++)if(he=ge(P[H]),he&&U(Y,he))return he;return new ie(!1)}te=Z(P,J)}for(_=V?P.next:te.next;!(Q=x(_,te)).done;){try{he=ge(Q.value)}catch(Ee){ue(te,"throw",Ee)}if(typeof he=="object"&&he&&U(Y,he))return he}return new ie(!1)}},66639:(h,E,o)=>{var d=o(18922),x=o(31138),w=o(75037);h.exports=function(A,O,k){var U,Z;x(A);try{if(U=w(A,"return"),!U){if(O==="throw")throw k;return k}U=d(U,A)}catch(re){Z=!0,U=re}if(O==="throw")throw k;if(Z)throw U;return x(U),k}},25695:(h,E,o)=>{"use strict";var d=o(54413).IteratorPrototype,x=o(52853),w=o(90774),A=o(11284),O=o(47771),k=function(){return this};h.exports=function(U,Z,re,ue){var ne=Z+" Iterator";return U.prototype=x(d,{next:w(+!ue,re)}),A(U,ne,!1,!0),O[ne]=k,U}},65297:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(85546),A=o(22282),O=o(16447),k=o(25695),U=o(89341),Z=o(24469),re=o(11284),ue=o(98711),ne=o(59362),ie=o(18182),Y=o(47771),P=o(54413),$=A.PROPER,D=A.CONFIGURABLE,C=P.IteratorPrototype,F=P.BUGGY_SAFARI_ITERATORS,V=ie("iterator"),X="keys",K="values",W="entries",te=function(){return this};h.exports=function(J,H,fe,he,_,Q,z){k(fe,H,he);var ge=function(Oe){if(Oe===_&&et)return et;if(!F&&Oe in ke)return ke[Oe];switch(Oe){case X:return function(){return new fe(this,Oe)};case K:return function(){return new fe(this,Oe)};case W:return function(){return new fe(this,Oe)}}return function(){return new fe(this)}},Ee=H+" Iterator",je=!1,ke=J.prototype,it=ke[V]||ke["@@iterator"]||_&&ke[_],et=!F&&it||ge(_),at=H=="Array"&&ke.entries||it,Tt,St,Le;if(at&&(Tt=U(at.call(new J)),Tt!==Object.prototype&&Tt.next&&(!w&&U(Tt)!==C&&(Z?Z(Tt,C):O(Tt[V])||ne(Tt,V,te)),re(Tt,Ee,!0,!0),w&&(Y[Ee]=te))),$&&_==K&&it&&it.name!==K&&(!w&&D?ue(ke,"name",K):(je=!0,et=function(){return x(it,this)})),_)if(St={values:ge(K),keys:Q?et:ge(X),entries:ge(W)},z)for(Le in St)(F||je||!(Le in ke))&&ne(ke,Le,St[Le]);else d({target:H,proto:!0,forced:F||je},St);return(!w||z)&&ke[V]!==et&&ne(ke,V,et,{name:_}),Y[H]=et,St}},54413:(h,E,o)=>{"use strict";var d=o(76192),x=o(16447),w=o(35744),A=o(52853),O=o(89341),k=o(59362),U=o(18182),Z=o(85546),re=U("iterator"),ue=!1,ne,ie,Y;[].keys&&(Y=[].keys(),"next"in Y?(ie=O(O(Y)),ie!==Object.prototype&&(ne=ie)):ue=!0);var P=!w(ne)||d(function(){var $={};return ne[re].call($)!==$});P?ne={}:Z&&(ne=A(ne)),x(ne[re])||k(ne,re,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,E,o)=>{var d=o(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var E=Math.ceil,o=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?o:E)(w)}},12950:(h,E,o)=>{var d=o(98576),x=o(8043),w=o(5141).f,A=o(67160).set,O=o(69536),k=o(29347),U=o(5914),Z=o(58189),re=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,ie=d.Promise,Y=w(d,"queueMicrotask"),P=Y&&Y.value,$,D,C,F,V,X,K,W;P||($=function(){var te,J;for(Z&&(te=ne.domain)&&te.exit();D;){J=D.fn,D=D.next;try{J()}catch(H){throw D?F():C=void 0,H}}C=void 0,te&&te.enter()},!O&&!Z&&!U&&re&&ue?(V=!0,X=ue.createTextNode(""),new re($).observe(X,{characterData:!0}),F=function(){X.data=V=!V}):!k&&ie&&ie.resolve?(K=ie.resolve(void 0),K.constructor=ie,W=x(K.then,K),F=function(){W($)}):Z?F=function(){ne.nextTick($)}:(A=x(A,d),F=function(){A($)})),h.exports=P||function(te){var J={fn:te,next:void 0};C&&(C.next=J),D||(D=J,F()),C=J}},99438:(h,E,o)=>{"use strict";var d=o(66235),x=TypeError,w=function(A){var O,k;this.promise=new A(function(U,Z){if(O!==void 0||k!==void 0)throw x("Bad Promise constructor");O=U,k=Z}),this.resolve=d(O),this.reject=d(k)};h.exports.f=function(A){return new w(A)}},36016:(h,E,o)=>{var d=o(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,E,o)=>{var d=o(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,E,o)=>{"use strict";var d=o(50069),x=o(84120),w=o(18922),A=o(76192),O=o(57653),k=o(84750),U=o(56007),Z=o(71795),re=o(2202),ue=Object.assign,ne=Object.defineProperty,ie=x([].concat);h.exports=!ue||A(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Y={},P={},$=Symbol(),D="abcdefghijklmnopqrst";return Y[$]=7,D.split("").forEach(function(C){P[C]=C}),ue({},Y)[$]!=7||O(ue({},P)).join("")!=D})?function(P,$){for(var D=Z(P),C=arguments.length,F=1,V=k.f,X=U.f;C>F;)for(var K=re(arguments[F++]),W=V?ie(O(K),V(K)):O(K),te=W.length,J=0,H;te>J;)H=W[J++],(!d||w(X,K,H))&&(D[H]=K[H]);return D}:ue},52853:(h,E,o)=>{var d=o(31138),x=o(11187),w=o(82952),A=o(14535),O=o(47403),k=o(67449),U=o(69766),Z=">",re="<",ue="prototype",ne="script",ie=U("IE_PROTO"),Y=function(){},P=function(V){return re+ne+Z+V+re+"/"+ne+Z},$=function(V){V.write(P("")),V.close();var X=V.parentWindow.Object;return V=null,X},D=function(){var V=k("iframe"),X="java"+ne+":",K;return V.style.display="none",O.appendChild(V),V.src=String(X),K=V.contentWindow.document,K.open(),K.write(P("document.F=Object")),K.close(),K.F},C,F=function(){try{C=new ActiveXObject("htmlfile")}catch(X){}F=typeof document!="undefined"?document.domain&&C?$(C):D():$(C);for(var V=w.length;V--;)delete F[ue][w[V]];return F()};A[ie]=!0,h.exports=Object.create||function(X,K){var W;return X!==null?(Y[ue]=d(X),W=new Y,Y[ue]=null,W[ie]=X):W=F(),K===void 0?W:x.f(W,K)}},11187:(h,E,o)=>{var d=o(50069),x=o(69600),w=o(42760),A=o(31138),O=o(20101),k=o(57653);E.f=d&&!x?Object.defineProperties:function(Z,re){A(Z);for(var ue=O(re),ne=k(re),ie=ne.length,Y=0,P;ie>Y;)w.f(Z,P=ne[Y++],ue[P]);return Z}},42760:(h,E,o)=>{var d=o(50069),x=o(80188),w=o(69600),A=o(31138),O=o(40077),k=TypeError,U=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,re="enumerable",ue="configurable",ne="writable";E.f=d?w?function(Y,P,$){if(A(Y),P=O(P),A($),typeof Y=="function"&&P==="prototype"&&"value"in $&&ne in $&&!$[ne]){var D=Z(Y,P);D&&D[ne]&&(Y[P]=$.value,$={configurable:ue in $?$[ue]:D[ue],enumerable:re in $?$[re]:D[re],writable:!1})}return U(Y,P,$)}:U:function(Y,P,$){if(A(Y),P=O(P),A($),x)try{return U(Y,P,$)}catch(D){}if("get"in $||"set"in $)throw k("Accessors not supported");return"value"in $&&(Y[P]=$.value),Y}},5141:(h,E,o)=>{var d=o(50069),x=o(18922),w=o(56007),A=o(90774),O=o(20101),k=o(40077),U=o(64500),Z=o(80188),re=Object.getOwnPropertyDescriptor;E.f=d?re:function(ne,ie){if(ne=O(ne),ie=k(ie),Z)try{return re(ne,ie)}catch(Y){}if(U(ne,ie))return A(!x(w.f,ne,ie),ne[ie])}},24052:(h,E,o)=>{var d=o(29272),x=o(20101),w=o(92092).f,A=o(1923),O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k=function(U){try{return w(U)}catch(Z){return A(O)}};h.exports.f=function(Z){return O&&d(Z)=="Window"?k(Z):w(x(Z))}},92092:(h,E,o)=>{var d=o(57934),x=o(82952),w=x.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(O){return d(O,w)}},84750:(h,E)=>{E.f=Object.getOwnPropertySymbols},89341:(h,E,o)=>{var d=o(64500),x=o(16447),w=o(71795),A=o(69766),O=o(4635),k=A("IE_PROTO"),U=Object,Z=U.prototype;h.exports=O?U.getPrototypeOf:function(re){var ue=w(re);if(d(ue,k))return ue[k];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof U?Z:null}},4532:(h,E,o)=>{var d=o(76192),x=o(35744),w=o(29272),A=o(80410),O=Object.isExtensible,k=d(function(){O(1)});h.exports=k||A?function(Z){return!x(Z)||A&&w(Z)=="ArrayBuffer"?!1:O?O(Z):!0}:O},8902:(h,E,o)=>{var d=o(84120);h.exports=d({}.isPrototypeOf)},57934:(h,E,o)=>{var d=o(84120),x=o(64500),w=o(20101),A=o(48180).indexOf,O=o(14535),k=d([].push);h.exports=function(U,Z){var re=w(U),ue=0,ne=[],ie;for(ie in re)!x(O,ie)&&x(re,ie)&&k(ne,ie);for(;Z.length>ue;)x(re,ie=Z[ue++])&&(~A(ne,ie)||k(ne,ie));return ne}},57653:(h,E,o)=>{var d=o(57934),x=o(82952);h.exports=Object.keys||function(A){return d(A,x)}},56007:(h,E)=>{"use strict";var o={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!o.call({1:2},1);E.f=x?function(A){var O=d(this,A);return!!O&&O.enumerable}:o},24469:(h,E,o)=>{var d=o(84120),x=o(31138),w=o(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,O={},k;try{k=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),k(O,[]),A=O instanceof Array}catch(U){}return function(Z,re){return x(Z),w(re),A?k(Z,re):Z.__proto__=re,Z}}():void 0)},75370:(h,E,o)=>{var d=o(50069),x=o(84120),w=o(57653),A=o(20101),O=o(56007).f,k=x(O),U=x([].push),Z=function(re){return function(ue){for(var ne=A(ue),ie=w(ne),Y=ie.length,P=0,$=[],D;Y>P;)D=ie[P++],(!d||k(ne,D))&&U($,re?[D,ne[D]]:ne[D]);return $}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,E,o)=>{"use strict";var d=o(83471),x=o(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,E,o)=>{var d=o(18922),x=o(16447),w=o(35744),A=TypeError;h.exports=function(O,k){var U,Z;if(k==="string"&&x(U=O.toString)&&!w(Z=d(U,O))||x(U=O.valueOf)&&!w(Z=d(U,O))||k!=="string"&&x(U=O.toString)&&!w(Z=d(U,O)))return Z;throw A("Can't convert object to primitive value")}},93011:(h,E,o)=>{var d=o(10150),x=o(84120),w=o(92092),A=o(84750),O=o(31138),k=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var re=w.f(O(Z)),ue=A.f;return ue?k(re,ue(Z)):re}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(E){try{return{error:!1,value:E()}}catch(o){return{error:!0,value:o}}}},30511:(h,E,o)=>{var d=o(98576),x=o(15813),w=o(16447),A=o(89245),O=o(19516),k=o(18182),U=o(82957),Z=o(60659),re=o(85546),ue=o(14218),ne=x&&x.prototype,ie=k("species"),Y=!1,P=w(d.PromiseRejectionEvent),$=A("Promise",function(){var D=O(x),C=D!==String(x);if(!C&&ue===66||re&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(D)){var F=new x(function(K){K(1)}),V=function(K){K(function(){},function(){})},X=F.constructor={};if(X[ie]=V,Y=F.then(function(){})instanceof V,!Y)return!0}return!C&&(U||Z)&&!P});h.exports={CONSTRUCTOR:$,REJECTION_EVENT:P,SUBCLASSING:Y}},15813:(h,E,o)=>{var d=o(98576);h.exports=d.Promise},19126:(h,E,o)=>{var d=o(31138),x=o(35744),w=o(99438);h.exports=function(A,O){if(d(A),x(O)&&O.constructor===A)return O;var k=w.f(A),U=k.resolve;return U(O),k.promise}},52775:(h,E,o)=>{var d=o(15813),x=o(19770),w=o(30511).CONSTRUCTOR;h.exports=w||!x(function(A){d.all(A).then(void 0,function(){})})},6412:h=>{var E=function(){this.head=null,this.tail=null};E.prototype={add:function(o){var d={item:o,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var o=this.head;if(o)return this.head=o.next,this.tail===o&&(this.tail=null),o.item}},h.exports=E},13209:(h,E,o)=>{var d=o(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,E,o)=>{"use strict";var d=o(10150),x=o(42760),w=o(18182),A=o(50069),O=w("species");h.exports=function(k){var U=d(k),Z=x.f;A&&U&&!U[O]&&Z(U,O,{configurable:!0,get:function(){return this}})}},11284:(h,E,o)=>{var d=o(83471),x=o(42760).f,w=o(98711),A=o(64500),O=o(40158),k=o(18182),U=k("toStringTag");h.exports=function(Z,re,ue,ne){if(Z){var ie=ue?Z:Z.prototype;A(ie,U)||x(ie,U,{configurable:!0,value:re}),ne&&!d&&w(ie,"toString",O)}}},69766:(h,E,o)=>{var d=o(98717),x=o(42759),w=d("keys");h.exports=function(A){return w[A]||(w[A]=x(A))}},46434:(h,E,o)=>{var d=o(98576),x=o(65098),w="__core-js_shared__",A=d[w]||x(w,{});h.exports=A},98717:(h,E,o)=>{var d=o(85546),x=o(46434);(h.exports=function(w,A){return x[w]||(x[w]=A!==void 0?A:{})})("versions",[]).push({version:"3.27.1",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,E,o)=>{var d=o(31138),x=o(71404),w=o(75646),A=o(18182),O=A("species");h.exports=function(k,U){var Z=d(k).constructor,re;return Z===void 0||w(re=d(Z)[O])?U:x(re)}},863:(h,E,o)=>{var d=o(84120),x=o(41941),w=o(44845),A=o(13209),O=d("".charAt),k=d("".charCodeAt),U=d("".slice),Z=function(re){return function(ue,ne){var ie=w(A(ue)),Y=x(ne),P=ie.length,$,D;return Y<0||Y>=P?re?"":void 0:($=k(ie,Y),$<55296||$>56319||Y+1===P||(D=k(ie,Y+1))<56320||D>57343?re?O(ie,Y):$:re?U(ie,Y,Y+2):($-55296<<10)+(D-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,E,o)=>{var d=o(14218),x=o(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,E,o)=>{var d=o(18922),x=o(10150),w=o(18182),A=o(59362);h.exports=function(){var O=x("Symbol"),k=O&&O.prototype,U=k&&k.valueOf,Z=w("toPrimitive");k&&!k[Z]&&A(k,Z,function(re){return d(U,this)},{arity:1})}},20031:(h,E,o)=>{var d=o(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,E,o)=>{var d=o(98576),x=o(86298),w=o(8043),A=o(16447),O=o(64500),k=o(76192),U=o(47403),Z=o(93096),re=o(67449),ue=o(67822),ne=o(69536),ie=o(58189),Y=d.setImmediate,P=d.clearImmediate,$=d.process,D=d.Dispatch,C=d.Function,F=d.MessageChannel,V=d.String,X=0,K={},W="onreadystatechange",te,J,H,fe;try{te=d.location}catch(ge){}var he=function(ge){if(O(K,ge)){var Ee=K[ge];delete K[ge],Ee()}},_=function(ge){return function(){he(ge)}},Q=function(ge){he(ge.data)},z=function(ge){d.postMessage(V(ge),te.protocol+"//"+te.host)};(!Y||!P)&&(Y=function(Ee){ue(arguments.length,1);var je=A(Ee)?Ee:C(Ee),ke=Z(arguments,1);return K[++X]=function(){x(je,void 0,ke)},J(X),X},P=function(Ee){delete K[Ee]},ie?J=function(ge){$.nextTick(_(ge))}:D&&D.now?J=function(ge){D.now(_(ge))}:F&&!ne?(H=new F,fe=H.port2,H.port1.onmessage=Q,J=w(fe.postMessage,fe)):d.addEventListener&&A(d.postMessage)&&!d.importScripts&&te&&te.protocol!=="file:"&&!k(z)?(J=z,d.addEventListener("message",Q,!1)):W in re("script")?J=function(ge){U.appendChild(re("script"))[W]=function(){U.removeChild(this),he(ge)}}:J=function(ge){setTimeout(_(ge),0)}),h.exports={set:Y,clear:P}},97739:(h,E,o)=>{var d=o(41941),x=Math.max,w=Math.min;h.exports=function(A,O){var k=d(A);return k<0?x(k+O,0):w(k,O)}},20101:(h,E,o)=>{var d=o(2202),x=o(13209);h.exports=function(w){return d(x(w))}},41941:(h,E,o)=>{var d=o(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,E,o)=>{var d=o(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,E,o)=>{var d=o(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,E,o)=>{var d=o(18922),x=o(35744),w=o(23236),A=o(75037),O=o(380),k=o(18182),U=TypeError,Z=k("toPrimitive");h.exports=function(re,ue){if(!x(re)||w(re))return re;var ne=A(re,Z),ie;if(ne){if(ue===void 0&&(ue="default"),ie=d(ne,re,ue),!x(ie)||w(ie))return ie;throw U("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),O(re,ue)}},40077:(h,E,o)=>{var d=o(97888),x=o(23236);h.exports=function(w){var A=d(w,"string");return x(A)?A:A+""}},83471:(h,E,o)=>{var d=o(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,E,o)=>{var d=o(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var E=String;h.exports=function(o){try{return E(o)}catch(d){return"Object"}}},42759:(h,E,o)=>{var d=o(84120),x=0,w=Math.random(),A=d(1 .toString);h.exports=function(O){return"Symbol("+(O===void 0?"":O)+")_"+A(++x+w,36)}},58552:(h,E,o)=>{var d=o(76192),x=o(18182),w=o(85546),A=x("iterator");h.exports=!d(function(){var O=new URL("b?a=1&b=2&c=3","http://a"),k=O.searchParams,U="";return O.pathname="c%20d",k.forEach(function(Z,re){k.delete("b"),U+=re+Z}),w&&!O.toJSON||!k.sort||O.href!=="http://a/c%20d?a=1&c=3"||k.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!k[A]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,E,o)=>{var d=o(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,E,o)=>{var d=o(50069),x=o(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var E=TypeError;h.exports=function(o,d){if(o<d)throw E("Not enough arguments");return o}},55278:(h,E,o)=>{var d=o(98576),x=o(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,E,o)=>{var d=o(57545),x=o(64500),w=o(89207),A=o(42760).f;h.exports=function(O){var k=d.Symbol||(d.Symbol={});x(k,O)||A(k,O,{value:w.f(O)})}},89207:(h,E,o)=>{var d=o(18182);E.f=d},18182:(h,E,o)=>{var d=o(98576),x=o(98717),w=o(64500),A=o(42759),O=o(36770),k=o(50615),U=x("wks"),Z=d.Symbol,re=Z&&Z.for,ue=k?Z:Z&&Z.withoutSetter||A;h.exports=function(ne){if(!w(U,ne)||!(O||typeof U[ne]=="string")){var ie="Symbol."+ne;O&&w(Z,ne)?U[ne]=Z[ne]:k&&re?U[ne]=re(ie):U[ne]=ue(ie)}return U[ne]}},93820:(h,E,o)=>{"use strict";var d=o(93085),x=o(8902),w=o(89341),A=o(24469),O=o(97987),k=o(52853),U=o(98711),Z=o(90774),re=o(14503),ue=o(10273),ne=o(33442),ie=o(36016),Y=o(18182),P=o(50274),$=Y("toStringTag"),D=Error,C=[].push,F=function(K,W){var te=arguments.length>2?arguments[2]:void 0,J=x(V,this),H;A?H=A(D(),J?w(this):V):(H=J?this:k(V),U(H,$,"Error")),W!==void 0&&U(H,"message",ie(W)),P&&U(H,"stack",re(H.stack,1)),ue(H,te);var fe=[];return ne(K,C,{that:fe}),U(H,"errors",fe),H};A?A(F,D):O(F,D,{name:!0});var V=F.prototype=k(D.prototype,{constructor:Z(1,F),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:F})},4242:(h,E,o)=>{o(93820)},59106:(h,E,o)=>{"use strict";var d=o(93085),x=o(76192),w=o(34770),A=o(35744),O=o(71795),k=o(84104),U=o(29425),Z=o(49361),re=o(71321),ue=o(90242),ne=o(18182),ie=o(14218),Y=ne("isConcatSpreadable"),P=ie>=51||!x(function(){var F=[];return F[Y]=!1,F.concat()[0]!==F}),$=ue("concat"),D=function(F){if(!A(F))return!1;var V=F[Y];return V!==void 0?!!V:w(F)},C=!P||!$;d({target:"Array",proto:!0,arity:1,forced:C},{concat:function(V){var X=O(this),K=re(X,0),W=0,te,J,H,fe,he;for(te=-1,H=arguments.length;te<H;te++)if(he=te===-1?X:arguments[te],D(he))for(fe=k(he),U(W+fe),J=0;J<fe;J++,W++)J in he&&Z(K,W,he[J]);else U(W+1),Z(K,W++,he);return K.length=W,K}})},73436:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).filter,w=o(90242),A=w("filter");d({target:"Array",proto:!0,forced:!A},{filter:function(k){return x(this,k,arguments.length>1?arguments[1]:void 0)}})},10880:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).find,w=o(67423),A="find",O=!0;A in[]&&Array(1)[A](function(){O=!1}),d({target:"Array",proto:!0,forced:O},{find:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),w(A)},9823:(h,E,o)=>{"use strict";var d=o(93085),x=o(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,E,o)=>{var d=o(93085),x=o(20841),w=o(19770),A=!w(function(O){Array.from(O)});d({target:"Array",stat:!0,forced:A},{from:x})},70024:(h,E,o)=>{"use strict";var d=o(93085),x=o(48180).includes,w=o(76192),A=o(67423),O=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:O},{includes:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),A("includes")},62276:(h,E,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(48180).indexOf,A=o(10424),O=x([].indexOf),k=!!O&&1/O([1],1,-0)<0,U=A("indexOf");d({target:"Array",proto:!0,forced:k||!U},{indexOf:function(re){var ue=arguments.length>1?arguments[1]:void 0;return k?O(this,re,ue)||0:w(this,re,ue)}})},8118:(h,E,o)=>{var d=o(93085),x=o(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,E,o)=>{"use strict";var d=o(20101),x=o(67423),w=o(47771),A=o(73326),O=o(42760).f,k=o(65297),U=o(87271),Z=o(85546),re=o(50069),ue="Array Iterator",ne=A.set,ie=A.getterFor(ue);h.exports=k(Array,"Array",function(P,$){ne(this,{type:ue,target:d(P),index:0,kind:$})},function(){var P=ie(this),$=P.target,D=P.kind,C=P.index++;return!$||C>=$.length?(P.target=void 0,U(void 0,!0)):D=="keys"?U(C,!1):D=="values"?U($[C],!1):U([C,$[C]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&re&&Y.name!=="values")try{O(Y,"name",{value:"values"})}catch(P){}},63838:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).map,w=o(90242),A=w("map");d({target:"Array",proto:!0,forced:!A},{map:function(k){return x(this,k,arguments.length>1?arguments[1]:void 0)}})},99523:(h,E,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(34770),A=x([].reverse),O=[1,2];d({target:"Array",proto:!0,forced:String(O)===String(O.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),A(this)}})},65818:(h,E,o)=>{"use strict";var d=o(93085),x=o(34770),w=o(22091),A=o(35744),O=o(97739),k=o(84104),U=o(20101),Z=o(49361),re=o(18182),ue=o(90242),ne=o(93096),ie=ue("slice"),Y=re("species"),P=Array,$=Math.max;d({target:"Array",proto:!0,forced:!ie},{slice:function(C,F){var V=U(this),X=k(V),K=O(C,X),W=O(F===void 0?X:F,X),te,J,H;if(x(V)&&(te=V.constructor,w(te)&&(te===P||x(te.prototype))?te=void 0:A(te)&&(te=te[Y],te===null&&(te=void 0)),te===P||te===void 0))return ne(V,K,W);for(J=new(te===void 0?P:te)($(W-K,0)),H=0;K<W;K++,H++)K in V&&Z(J,H,V[K]);return J.length=H,J}})},12178:(h,E,o)=>{"use strict";var d=o(93085),x=o(71795),w=o(97739),A=o(41941),O=o(84104),k=o(95072),U=o(29425),Z=o(71321),re=o(49361),ue=o(29970),ne=o(90242),ie=ne("splice"),Y=Math.max,P=Math.min;d({target:"Array",proto:!0,forced:!ie},{splice:function(D,C){var F=x(this),V=O(F),X=w(D,V),K=arguments.length,W,te,J,H,fe,he;for(K===0?W=te=0:K===1?(W=0,te=V-X):(W=K-2,te=P(Y(A(C),0),V-X)),U(V+W-te),J=Z(F,te),H=0;H<te;H++)fe=X+H,fe in F&&re(J,H,F[fe]);if(J.length=te,W<te){for(H=X;H<V-te;H++)fe=H+te,he=H+W,fe in F?F[he]=F[fe]:ue(F,he);for(H=V;H>V-te+W;H--)ue(F,H-1)}else if(W>te)for(H=V-te;H>X;H--)fe=H+te-1,he=H+W-1,fe in F?F[he]=F[fe]:ue(F,he);for(H=0;H<W;H++)F[H+X]=arguments[H+2];return k(F,V-te+W),J}})},12432:()=>{},25067:(h,E,o)=>{var d=o(93085),x=o(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,E,o)=>{var d=o(93085),x=o(10150),w=o(86298),A=o(18922),O=o(84120),k=o(76192),U=o(34770),Z=o(16447),re=o(35744),ue=o(23236),ne=o(93096),ie=o(36770),Y=x("JSON","stringify"),P=O(/./.exec),$=O("".charAt),D=O("".charCodeAt),C=O("".replace),F=O(1 .toString),V=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,K=/^[\uDC00-\uDFFF]$/,W=!ie||k(function(){var fe=x("Symbol")();return Y([fe])!="[null]"||Y({a:fe})!="{}"||Y(Object(fe))!="{}"}),te=k(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),J=function(fe,he){var _=ne(arguments),Q=he;if(!(!re(he)&&fe===void 0||ue(fe)))return U(he)||(he=function(z,ge){if(Z(Q)&&(ge=A(Q,this,z,ge)),!ue(ge))return ge}),_[1]=he,w(Y,null,_)},H=function(fe,he,_){var Q=$(_,he-1),z=$(_,he+1);return P(X,fe)&&!P(K,z)||P(K,fe)&&!P(X,Q)?"\\u"+F(D(fe,0),16):fe};Y&&d({target:"JSON",stat:!0,arity:3,forced:W||te},{stringify:function(he,_,Q){var z=ne(arguments),ge=w(W?J:Y,null,z);return te&&typeof ge=="string"?C(ge,V,H):ge}})},68671:(h,E,o)=>{var d=o(98576),x=o(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,E,o)=>{var d=o(93085),x=o(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,E,o)=>{var d=o(93085),x=o(75370).entries;d({target:"Object",stat:!0},{entries:function(A){return x(A)}})},89189:(h,E,o)=>{var d=o(93085),x=o(76192),w=o(20101),A=o(5141).f,O=o(50069),k=x(function(){A(1)}),U=!O||k;d({target:"Object",stat:!0,forced:U,sham:!O},{getOwnPropertyDescriptor:function(re,ue){return A(w(re),ue)}})},62509:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(93011),A=o(20101),O=o(5141),k=o(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var re=A(Z),ue=O.f,ne=w(re),ie={},Y=0,P,$;ne.length>Y;)$=ue(re,P=ne[Y++]),$!==void 0&&k(ie,P,$);return ie}})},17895:(h,E,o)=>{var d=o(93085),x=o(36770),w=o(76192),A=o(84750),O=o(71795),k=!x||w(function(){A.f(1)});d({target:"Object",stat:!0,forced:k},{getOwnPropertySymbols:function(Z){var re=A.f;return re?re(O(Z)):[]}})},19234:(h,E,o)=>{var d=o(93085),x=o(76192),w=o(71795),A=o(89341),O=o(4635),k=x(function(){A(1)});d({target:"Object",stat:!0,forced:k,sham:!O},{getPrototypeOf:function(Z){return A(w(Z))}})},92647:(h,E,o)=>{var d=o(93085),x=o(71795),w=o(57653),A=o(76192),O=A(function(){w(1)});d({target:"Object",stat:!0,forced:O},{keys:function(U){return w(x(U))}})},13222:(h,E,o)=>{var d=o(93085),x=o(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var re=this,ue=A.f(re),ne=ue.resolve,ie=ue.reject,Y=O(function(){var P=w(re.resolve),$=[],D=0,C=1;k(Z,function(F){var V=D++,X=!1;C++,x(P,re,F).then(function(K){X||(X=!0,$[V]={status:"fulfilled",value:K},--C||ne($))},function(K){X||(X=!0,$[V]={status:"rejected",reason:K},--C||ne($))})}),--C||ne($)});return Y.error&&ie(Y.value),ue.promise}})},89701:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{all:function(re){var ue=this,ne=A.f(ue),ie=ne.resolve,Y=ne.reject,P=O(function(){var $=w(ue.resolve),D=[],C=0,F=1;k(re,function(V){var X=C++,K=!1;F++,x($,ue,V).then(function(W){K||(K=!0,D[X]=W,--F||ie(D))},Y)}),--F||ie(D)});return P.error&&Y(P.value),ne.promise}})},78885:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(10150),O=o(99438),k=o(70892),U=o(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,ie=A("AggregateError"),Y=O.f(ne),P=Y.resolve,$=Y.reject,D=k(function(){var C=w(ne.resolve),F=[],V=0,X=1,K=!1;U(ue,function(W){var te=V++,J=!1;X++,x(C,ne,W).then(function(H){J||K||(K=!0,P(H))},function(H){J||K||(J=!0,F[te]=H,--X||$(new ie(F,Z)))})}),--X||$(new ie(F,Z))});return D.error&&$(D.value),Y.promise}})},34025:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(30511).CONSTRUCTOR,A=o(15813),O=o(10150),k=o(16447),U=o(59362),Z=A&&A.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&k(A)){var re=O("Promise").prototype.catch;Z.catch!==re&&U(Z,"catch",re,{unsafe:!0})}},60268:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(58189),A=o(98576),O=o(18922),k=o(59362),U=o(24469),Z=o(11284),re=o(63656),ue=o(66235),ne=o(16447),ie=o(35744),Y=o(46961),P=o(84743),$=o(67160).set,D=o(12950),C=o(63681),F=o(70892),V=o(6412),X=o(73326),K=o(15813),W=o(30511),te=o(99438),J="Promise",H=W.CONSTRUCTOR,fe=W.REJECTION_EVENT,he=W.SUBCLASSING,_=X.getterFor(J),Q=X.set,z=K&&K.prototype,ge=K,Ee=z,je=A.TypeError,ke=A.document,it=A.process,et=te.f,at=et,Tt=!!(ke&&ke.createEvent&&A.dispatchEvent),St="unhandledrejection",Le="rejectionhandled",Oe=0,be=1,De=2,Ge=1,tt=2,Ze,bt,Et,Xt,zt=function($e){var yt;return ie($e)&&ne(yt=$e.then)?yt:!1},nt=function($e,yt){var Lt=yt.value,wt=yt.state==be,Ft=wt?$e.ok:$e.fail,dt=$e.resolve,vt=$e.reject,Pt=$e.domain,ot,Ve,ce;try{Ft?(wt||(yt.rejection===tt&&_e(yt),yt.rejection=Ge),Ft===!0?ot=Lt:(Pt&&Pt.enter(),ot=Ft(Lt),Pt&&(Pt.exit(),ce=!0)),ot===$e.promise?vt(je("Promise-chain cycle")):(Ve=zt(ot))?O(Ve,ot,dt,vt):dt(ot)):vt(Lt)}catch(xe){Pt&&!ce&&Pt.exit(),vt(xe)}},Xe=function($e,yt){$e.notified||($e.notified=!0,D(function(){for(var Lt=$e.reactions,wt;wt=Lt.get();)nt(wt,$e);$e.notified=!1,yt&&!$e.rejection&&Rt($e)}))},er=function($e,yt,Lt){var wt,Ft;Tt?(wt=ke.createEvent("Event"),wt.promise=yt,wt.reason=Lt,wt.initEvent($e,!1,!0),A.dispatchEvent(wt)):wt={promise:yt,reason:Lt},!fe&&(Ft=A["on"+$e])?Ft(wt):$e===St&&C("Unhandled promise rejection",Lt)},Rt=function($e){O($,A,function(){var yt=$e.facade,Lt=$e.value,wt=Rr($e),Ft;if(wt&&(Ft=F(function(){w?it.emit("unhandledRejection",Lt,yt):er(St,yt,Lt)}),$e.rejection=w||Rr($e)?tt:Ge,Ft.error))throw Ft.value})},Rr=function($e){return $e.rejection!==Ge&&!$e.parent},_e=function($e){O($,A,function(){var yt=$e.facade;w?it.emit("rejectionHandled",yt):er(Le,yt,$e.value)})},Mr=function($e,yt,Lt){return function(wt){$e(yt,wt,Lt)}},Ar=function($e,yt,Lt){$e.done||($e.done=!0,Lt&&($e=Lt),$e.value=yt,$e.state=De,Xe($e,!0))},en=function($e,yt,Lt){if(!$e.done){$e.done=!0,Lt&&($e=Lt);try{if($e.facade===yt)throw je("Promise can't be resolved itself");var wt=zt(yt);wt?D(function(){var Ft={done:!1};try{O(wt,yt,Mr(en,Ft,$e),Mr(Ar,Ft,$e))}catch(dt){Ar(Ft,dt,$e)}}):($e.value=yt,$e.state=be,Xe($e,!1))}catch(Ft){Ar({done:!1},Ft,$e)}}};if(H&&(ge=function(yt){Y(this,Ee),ue(yt),O(Ze,this);var Lt=_(this);try{yt(Mr(en,Lt),Mr(Ar,Lt))}catch(wt){Ar(Lt,wt)}},Ee=ge.prototype,Ze=function(yt){Q(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:Oe,value:void 0})},Ze.prototype=k(Ee,"then",function(yt,Lt){var wt=_(this),Ft=et(P(this,ge));return wt.parent=!0,Ft.ok=ne(yt)?yt:!0,Ft.fail=ne(Lt)&&Lt,Ft.domain=w?it.domain:void 0,wt.state==Oe?wt.reactions.add(Ft):D(function(){nt(Ft,wt)}),Ft.promise}),bt=function(){var $e=new Ze,yt=_($e);this.promise=$e,this.resolve=Mr(en,yt),this.reject=Mr(Ar,yt)},te.f=et=function($e){return $e===ge||$e===Et?new bt($e):at($e)},!x&&ne(K)&&z!==Object.prototype)){Xt=z.then,he||k(z,"then",function(yt,Lt){var wt=this;return new ge(function(Ft,dt){O(Xt,wt,Ft,dt)}).then(yt,Lt)},{unsafe:!0});try{delete z.constructor}catch($e){}U&&U(z,Ee)}d({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:ge}),Z(ge,J,!1,!0),re(J)},91868:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(15813),A=o(76192),O=o(10150),k=o(16447),U=o(84743),Z=o(19126),re=o(59362),ue=w&&w.prototype,ne=!!w&&A(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(Y){var P=U(this,O("Promise")),$=k(Y);return this.then($?function(D){return Z(P,Y()).then(function(){return D})}:Y,$?function(D){return Z(P,Y()).then(function(){throw D})}:Y)}}),!x&&k(w)){var ie=O("Promise").prototype.finally;ue.finally!==ie&&re(ue,"finally",ie,{unsafe:!0})}},59021:(h,E,o)=>{o(60268),o(89701),o(34025),o(67196),o(85873),o(22931)},67196:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{race:function(re){var ue=this,ne=A.f(ue),ie=ne.reject,Y=O(function(){var P=w(ue.resolve);k(re,function($){x(P,ue,$).then(ne.resolve,ie)})});return Y.error&&ie(Y.value),ne.promise}})},85873:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(99438),A=o(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:A},{reject:function(k){var U=w.f(this);return x(U.reject,void 0,k),U.promise}})},22931:(h,E,o)=>{"use strict";var d=o(93085),x=o(10150),w=o(85546),A=o(15813),O=o(30511).CONSTRUCTOR,k=o(19126),U=x("Promise"),Z=w&&!O;d({target:"Promise",stat:!0,forced:w||O},{resolve:function(ue){return k(Z&&this===U?A:this,ue)}})},71367:()=>{},39247:(h,E,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(9703),A=o(13209),O=o(44845),k=o(83519),U=x("".indexOf);d({target:"String",proto:!0,forced:!k("includes")},{includes:function(re){return!!~U(O(A(this)),O(w(re)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,E,o)=>{"use strict";var d=o(863).charAt,x=o(44845),w=o(73326),A=o(65297),O=o(87271),k="String Iterator",U=w.set,Z=w.getterFor(k);A(String,"String",function(re){U(this,{type:k,string:x(re),index:0})},function(){var ue=Z(this),ne=ue.string,ie=ue.index,Y;return ie>=ne.length?O(void 0,!0):(Y=d(ne,ie),ue.index+=Y.length,O(Y,!1))})},32991:(h,E,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(5141).f,A=o(8445),O=o(44845),k=o(9703),U=o(13209),Z=o(83519),re=o(85546),ue=x("".startsWith),ne=x("".slice),ie=Math.min,Y=Z("startsWith"),P=!re&&!Y&&!!function(){var $=w(String.prototype,"startsWith");return $&&!$.writable}();d({target:"String",proto:!0,forced:!P&&!Y},{startsWith:function(D){var C=O(U(this));k(D);var F=A(ie(arguments.length>1?arguments[1]:void 0,C.length)),V=O(D);return ue?ue(C,V,F):ne(C,F,F+V.length)===V}})},19781:(h,E,o)=>{var d=o(48332);d("asyncIterator")},49351:(h,E,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(18922),A=o(84120),O=o(85546),k=o(50069),U=o(36770),Z=o(76192),re=o(64500),ue=o(8902),ne=o(31138),ie=o(20101),Y=o(40077),P=o(44845),$=o(90774),D=o(52853),C=o(57653),F=o(92092),V=o(24052),X=o(84750),K=o(5141),W=o(42760),te=o(11187),J=o(56007),H=o(59362),fe=o(98717),he=o(69766),_=o(14535),Q=o(42759),z=o(18182),ge=o(89207),Ee=o(48332),je=o(93407),ke=o(11284),it=o(73326),et=o(50454).forEach,at=he("hidden"),Tt="Symbol",St="prototype",Le=it.set,Oe=it.getterFor(Tt),be=Object[St],De=x.Symbol,Ge=De&&De[St],tt=x.TypeError,Ze=x.QObject,bt=K.f,Et=W.f,Xt=V.f,zt=J.f,nt=A([].push),Xe=fe("symbols"),er=fe("op-symbols"),Rt=fe("wks"),Rr=!Ze||!Ze[St]||!Ze[St].findChild,_e=k&&Z(function(){return D(Et({},"a",{get:function(){return Et(this,"a",{value:7}).a}})).a!=7})?function(dt,vt,Pt){var ot=bt(be,vt);ot&&delete be[vt],Et(dt,vt,Pt),ot&&dt!==be&&Et(be,vt,ot)}:Et,Mr=function(dt,vt){var Pt=Xe[dt]=D(Ge);return Le(Pt,{type:Tt,tag:dt,description:vt}),k||(Pt.description=vt),Pt},Ar=function(vt,Pt,ot){vt===be&&Ar(er,Pt,ot),ne(vt);var Ve=Y(Pt);return ne(ot),re(Xe,Ve)?(ot.enumerable?(re(vt,at)&&vt[at][Ve]&&(vt[at][Ve]=!1),ot=D(ot,{enumerable:$(0,!1)})):(re(vt,at)||Et(vt,at,$(1,{})),vt[at][Ve]=!0),_e(vt,Ve,ot)):Et(vt,Ve,ot)},en=function(vt,Pt){ne(vt);var ot=ie(Pt),Ve=C(ot).concat(Ft(ot));return et(Ve,function(ce){(!k||w(yt,ot,ce))&&Ar(vt,ce,ot[ce])}),vt},$e=function(vt,Pt){return Pt===void 0?D(vt):en(D(vt),Pt)},yt=function(vt){var Pt=Y(vt),ot=w(zt,this,Pt);return this===be&&re(Xe,Pt)&&!re(er,Pt)?!1:ot||!re(this,Pt)||!re(Xe,Pt)||re(this,at)&&this[at][Pt]?ot:!0},Lt=function(vt,Pt){var ot=ie(vt),Ve=Y(Pt);if(!(ot===be&&re(Xe,Ve)&&!re(er,Ve))){var ce=bt(ot,Ve);return ce&&re(Xe,Ve)&&!(re(ot,at)&&ot[at][Ve])&&(ce.enumerable=!0),ce}},wt=function(vt){var Pt=Xt(ie(vt)),ot=[];return et(Pt,function(Ve){!re(Xe,Ve)&&!re(_,Ve)&&nt(ot,Ve)}),ot},Ft=function(dt){var vt=dt===be,Pt=Xt(vt?er:ie(dt)),ot=[];return et(Pt,function(Ve){re(Xe,Ve)&&(!vt||re(be,Ve))&&nt(ot,Xe[Ve])}),ot};U||(De=function(){if(ue(Ge,this))throw tt("Symbol is not a constructor");var vt=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Pt=Q(vt),ot=function(Ve){this===be&&w(ot,er,Ve),re(this,at)&&re(this[at],Pt)&&(this[at][Pt]=!1),_e(this,Pt,$(1,Ve))};return k&&Rr&&_e(be,Pt,{configurable:!0,set:ot}),Mr(Pt,vt)},Ge=De[St],H(Ge,"toString",function(){return Oe(this).tag}),H(De,"withoutSetter",function(dt){return Mr(Q(dt),dt)}),J.f=yt,W.f=Ar,te.f=en,K.f=Lt,F.f=V.f=wt,X.f=Ft,ge.f=function(dt){return Mr(z(dt),dt)},k&&(Et(Ge,"description",{configurable:!0,get:function(){return Oe(this).description}}),O||H(be,"propertyIsEnumerable",yt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:De}),et(C(Rt),function(dt){Ee(dt)}),d({target:Tt,stat:!0,forced:!U},{useSetter:function(){Rr=!0},useSimple:function(){Rr=!1}}),d({target:"Object",stat:!0,forced:!U,sham:!k},{create:$e,defineProperty:Ar,defineProperties:en,getOwnPropertyDescriptor:Lt}),d({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:wt}),je(),ke(De,Tt),_[at]=!0},50492:()=>{},19148:(h,E,o)=>{var d=o(93085),x=o(10150),w=o(64500),A=o(44845),O=o(98717),k=o(20031),U=O("string-to-symbol-registry"),Z=O("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{for:function(re){var ue=A(re);if(w(U,ue))return U[ue];var ne=x("Symbol")(ue);return U[ue]=ne,Z[ne]=ue,ne}})},66681:(h,E,o)=>{var d=o(48332);d("hasInstance")},29594:(h,E,o)=>{var d=o(48332);d("isConcatSpreadable")},63665:(h,E,o)=>{var d=o(48332);d("iterator")},36187:(h,E,o)=>{o(49351),o(19148),o(15991),o(59704),o(17895)},15991:(h,E,o)=>{var d=o(93085),x=o(64500),w=o(23236),A=o(79288),O=o(98717),k=o(20031),U=O("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{keyFor:function(re){if(!w(re))throw TypeError(A(re)+" is not a symbol");if(x(U,re))return U[re]}})},11250:(h,E,o)=>{var d=o(48332);d("matchAll")},29017:(h,E,o)=>{var d=o(48332);d("match")},79786:(h,E,o)=>{var d=o(48332);d("replace")},90503:(h,E,o)=>{var d=o(48332);d("search")},16565:(h,E,o)=>{var d=o(48332);d("species")},69322:(h,E,o)=>{var d=o(48332);d("split")},13610:(h,E,o)=>{var d=o(48332),x=o(93407);d("toPrimitive"),x()},36886:(h,E,o)=>{var d=o(10150),x=o(48332),w=o(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,E,o)=>{var d=o(48332);d("unscopables")},10572:(h,E,o)=>{"use strict";var d=o(47636),x=o(98576),w=o(84120),A=o(35090),O=o(32861),k=o(34535),U=o(51057),Z=o(35744),re=o(73326).enforce,ue=o(76192),ne=o(55278),ie=Object,Y=Array.isArray,P=ie.isExtensible,$=ie.isFrozen,D=ie.isSealed,C=ie.freeze,F=ie.seal,V={},X={},K=!x.ActiveXObject&&"ActiveXObject"in x,W,te=function(ge){return function(){return ge(this,arguments.length?arguments[0]:void 0)}},J=k("WeakMap",te,U),H=J.prototype,fe=w(H.set),he=function(){return d&&ue(function(){var ge=C([]);return fe(new J,ge,1),!$(ge)})};if(ne)if(K){W=U.getConstructor(te,"WeakMap",!0),O.enable();var _=w(H.delete),Q=w(H.has),z=w(H.get);A(H,{delete:function(ge){if(Z(ge)&&!P(ge)){var Ee=re(this);return Ee.frozen||(Ee.frozen=new W),_(this,ge)||Ee.frozen.delete(ge)}return _(this,ge)},has:function(Ee){if(Z(Ee)&&!P(Ee)){var je=re(this);return je.frozen||(je.frozen=new W),Q(this,Ee)||je.frozen.has(Ee)}return Q(this,Ee)},get:function(Ee){if(Z(Ee)&&!P(Ee)){var je=re(this);return je.frozen||(je.frozen=new W),Q(this,Ee)?z(this,Ee):je.frozen.get(Ee)}return z(this,Ee)},set:function(Ee,je){if(Z(Ee)&&!P(Ee)){var ke=re(this);ke.frozen||(ke.frozen=new W),Q(this,Ee)?fe(this,Ee,je):ke.frozen.set(Ee,je)}else fe(this,Ee,je);return this}})}else he()&&A(H,{set:function(Ee,je){var ke;return Y(Ee)&&($(Ee)?ke=V:D(Ee)&&(ke=X)),fe(this,Ee,je),ke==V&&C(Ee),ke==X&&F(Ee),this}})},33983:(h,E,o)=>{o(10572)},12752:(h,E,o)=>{o(4242)},5363:(h,E,o)=>{o(25067)},14562:(h,E,o)=>{o(97884)},69355:(h,E,o)=>{o(78885)},25363:(h,E,o)=>{"use strict";var d=o(93085),x=o(99438),w=o(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(A){var O=x.f(this),k=w(A);return(k.error?O.reject:O.resolve)(k.value),O.promise}})},60177:(h,E,o)=>{var d=o(48332);d("asyncDispose")},9031:(h,E,o)=>{var d=o(48332);d("dispose")},96658:(h,E,o)=>{var d=o(48332);d("matcher")},54212:(h,E,o)=>{var d=o(48332);d("metadataKey")},71875:(h,E,o)=>{var d=o(48332);d("metadata")},18658:(h,E,o)=>{var d=o(48332);d("observable")},54592:(h,E,o)=>{var d=o(48332);d("patternMatch")},26680:(h,E,o)=>{var d=o(48332);d("replaceAll")},80162:(h,E,o)=>{o(98939);var d=o(17365),x=o(98576),w=o(4696),A=o(98711),O=o(47771),k=o(18182),U=k("toStringTag");for(var Z in d){var re=x[Z],ue=re&&re.prototype;ue&&w(ue)!==U&&A(ue,U,Z),O[Z]=O.Array}},67054:(h,E,o)=>{"use strict";o(98939);var d=o(93085),x=o(98576),w=o(18922),A=o(84120),O=o(50069),k=o(58552),U=o(59362),Z=o(35090),re=o(11284),ue=o(25695),ne=o(73326),ie=o(46961),Y=o(16447),P=o(64500),$=o(8043),D=o(4696),C=o(31138),F=o(35744),V=o(44845),X=o(52853),K=o(90774),W=o(61669),te=o(78703),J=o(67822),H=o(18182),fe=o(6614),he=H("iterator"),_="URLSearchParams",Q=_+"Iterator",z=ne.set,ge=ne.getterFor(_),Ee=ne.getterFor(Q),je=Object.getOwnPropertyDescriptor,ke=function(Ve){if(!O)return x[Ve];var ce=je(x,Ve);return ce&&ce.value},it=ke("fetch"),et=ke("Request"),at=ke("Headers"),Tt=et&&et.prototype,St=at&&at.prototype,Le=x.RegExp,Oe=x.TypeError,be=x.decodeURIComponent,De=x.encodeURIComponent,Ge=A("".charAt),tt=A([].join),Ze=A([].push),bt=A("".replace),Et=A([].shift),Xt=A([].splice),zt=A("".split),nt=A("".slice),Xe=/\+/g,er=Array(4),Rt=function(Ve){return er[Ve-1]||(er[Ve-1]=Le("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},Rr=function(Ve){try{return be(Ve)}catch(ce){return Ve}},_e=function(Ve){var ce=bt(Ve,Xe," "),xe=4;try{return be(ce)}catch(Be){for(;xe;)ce=bt(ce,Rt(xe--),Rr);return ce}},Mr=/[!'()~]|%20/g,Ar={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},en=function(Ve){return Ar[Ve]},$e=function(Ve){return bt(De(Ve),Mr,en)},yt=ue(function(ce,xe){z(this,{type:Q,iterator:W(ge(ce).entries),kind:xe})},"Iterator",function(){var ce=Ee(this),xe=ce.kind,Be=ce.iterator.next(),Ke=Be.value;return Be.done||(Be.value=xe==="keys"?Ke.key:xe==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Lt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(F(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?Ge(Ve,0)==="?"?nt(Ve,1):Ve:V(Ve)))};Lt.prototype={type:_,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ce=te(Ve),xe,Be,Ke,st,xt,kt,yr;if(ce)for(xe=W(Ve,ce),Be=xe.next;!(Ke=w(Be,xe)).done;){if(st=W(C(Ke.value)),xt=st.next,(kt=w(xt,st)).done||(yr=w(xt,st)).done||!w(xt,st).done)throw Oe("Expected sequence with length 2");Ze(this.entries,{key:V(kt.value),value:V(yr.value)})}else for(var Nt in Ve)P(Ve,Nt)&&Ze(this.entries,{key:Nt,value:V(Ve[Nt])})},parseQuery:function(Ve){if(Ve)for(var ce=zt(Ve,"&"),xe=0,Be,Ke;xe<ce.length;)Be=ce[xe++],Be.length&&(Ke=zt(Be,"="),Ze(this.entries,{key:_e(Et(Ke)),value:_e(tt(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ce=[],xe=0,Be;xe<Ve.length;)Be=Ve[xe++],Ze(ce,$e(Be.key)+"="+$e(Be.value));return tt(ce,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var wt=function(){ie(this,Ft);var ce=arguments.length>0?arguments[0]:void 0;z(this,new Lt(ce))},Ft=wt.prototype;if(Z(Ft,{append:function(ce,xe){J(arguments.length,2);var Be=ge(this);Ze(Be.entries,{key:V(ce),value:V(xe)}),Be.updateURL()},delete:function(Ve){J(arguments.length,1);for(var ce=ge(this),xe=ce.entries,Be=V(Ve),Ke=0;Ke<xe.length;)xe[Ke].key===Be?Xt(xe,Ke,1):Ke++;ce.updateURL()},get:function(ce){J(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;Ke++)if(xe[Ke].key===Be)return xe[Ke].value;return null},getAll:function(ce){J(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=[],st=0;st<xe.length;st++)xe[st].key===Be&&Ze(Ke,xe[st].value);return Ke},has:function(ce){J(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;)if(xe[Ke++].key===Be)return!0;return!1},set:function(ce,xe){J(arguments.length,1);for(var Be=ge(this),Ke=Be.entries,st=!1,xt=V(ce),kt=V(xe),yr=0,Nt;yr<Ke.length;yr++)Nt=Ke[yr],Nt.key===xt&&(st?Xt(Ke,yr--,1):(st=!0,Nt.value=kt));st||Ze(Ke,{key:xt,value:kt}),Be.updateURL()},sort:function(){var ce=ge(this);fe(ce.entries,function(xe,Be){return xe.key>Be.key?1:-1}),ce.updateURL()},forEach:function(ce){for(var xe=ge(this).entries,Be=$(ce,arguments.length>1?arguments[1]:void 0),Ke=0,st;Ke<xe.length;)st=xe[Ke++],Be(st.value,st.key,this)},keys:function(){return new yt(this,"keys")},values:function(){return new yt(this,"values")},entries:function(){return new yt(this,"entries")}},{enumerable:!0}),U(Ft,he,Ft.entries,{name:"entries"}),U(Ft,"toString",function(){return ge(this).serialize()},{enumerable:!0}),re(wt,_),d({global:!0,constructor:!0,forced:!k},{URLSearchParams:wt}),!k&&Y(at)){var dt=A(St.has),vt=A(St.set),Pt=function(Ve){if(F(Ve)){var ce=Ve.body,xe;if(D(ce)===_)return xe=Ve.headers?new at(Ve.headers):new at,dt(xe,"content-type")||vt(xe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Ve,{body:K(0,V(ce)),headers:K(0,xe)})}return Ve};if(Y(it)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ce){return it(ce,arguments.length>1?Pt(arguments[1]):{})}}),Y(et)){var ot=function(ce){return ie(this,Tt),new et(ce,arguments.length>1?Pt(arguments[1]):{})};Tt.constructor=ot,ot.prototype=Tt,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ot})}}h.exports={URLSearchParams:wt,getState:ge}},69336:(h,E,o)=>{o(67054)},53822:(h,E,o)=>{var d=o(52221);h.exports=d},21434:(h,E,o)=>{var d=o(75078);h.exports=d},51629:(h,E,o)=>{var d=o(77237);h.exports=d},46899:(h,E,o)=>{var d=o(60098);h.exports=d},27710:(h,E,o)=>{var d=o(65739);o(80162),h.exports=d},31585:(h,E,o)=>{var d=o(74030);h.exports=d},44877:(h,E,o)=>{var d=o(41484);h.exports=d},10140:(h,E,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),A=o(51629),O=Array.prototype,k={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.entries;return U===O||w(O,U)&&Z===O.entries||x(k,d(U))?A:Z}},55603:(h,E,o)=>{var d=o(53669);h.exports=d},76237:(h,E,o)=>{var d=o(37506);h.exports=d},31206:(h,E,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),A=o(46899),O=Array.prototype,k={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.forEach;return U===O||w(O,U)&&Z===O.forEach||x(k,d(U))?A:Z}},56515:(h,E,o)=>{var d=o(13173);h.exports=d},26174:(h,E,o)=>{var d=o(92604);h.exports=d},20057:(h,E,o)=>{var d=o(263);h.exports=d},87511:(h,E,o)=>{var d=o(80432);h.exports=d},24741:(h,E,o)=>{var d=o(77663);h.exports=d},8368:(h,E,o)=>{var d=o(45063);h.exports=d},342:(h,E,o)=>{var d=o(7769);h.exports=d},392:(h,E,o)=>{var d=o(96056);h.exports=d},28478:(h,E,o)=>{var d=o(99936);h.exports=d},4963:(h,E,o)=>{var d=o(23213);h.exports=d},21025:(h,E,o)=>{var d=o(38724);h.exports=d},27820:(h,E,o)=>{var d=o(63512);h.exports=d},58202:(h,E,o)=>{var d=o(2335);h.exports=d},74194:(h,E,o)=>{var d=o(60632);h.exports=d},32854:(h,E,o)=>{var d=o(81056);h.exports=d},60002:(h,E,o)=>{var d=o(12921);h.exports=d},28980:(h,E,o)=>{var d=o(8168);h.exports=d},45636:(h,E,o)=>{var d=o(38651);h.exports=d},66672:(h,E,o)=>{var d=o(33083);h.exports=d},46618:(h,E,o)=>{var d=o(93154);o(80162),h.exports=d},42285:(h,E,o)=>{var d=o(85008);o(80162),h.exports=d},58535:(h,E,o)=>{var d=o(994);o(80162),h.exports=d},16042:(h,E,o)=>{var d=o(30290);h.exports=d},72946:(h,E,o)=>{var d=o(32004);o(80162),h.exports=d},11235:(h,E,o)=>{var d=o(31293);o(80162),h.exports=d},32004:(h,E,o)=>{o(69336);var d=o(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var E=function(o){var d={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(J){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(J){return J&&DataView.prototype.isPrototypeOf(J)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A=ArrayBuffer.isView||function(J){return J&&w.indexOf(Object.prototype.toString.call(J))>-1};function O(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function k(J){return typeof J!="string"&&(J=String(J)),J}function U(J){var H={next:function(){var fe=J.shift();return{done:fe===void 0,value:fe}}};return d.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Z(J){this.map={},J instanceof Z?J.forEach(function(H,fe){this.append(fe,H)},this):Array.isArray(J)?J.forEach(function(H){this.append(H[0],H[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(H){this.append(H,J[H])},this)}Z.prototype.append=function(J,H){J=O(J),H=k(H);var fe=this.map[J];this.map[J]=fe?fe+", "+H:H},Z.prototype.delete=function(J){delete this.map[O(J)]},Z.prototype.get=function(J){return J=O(J),this.has(J)?this.map[J]:null},Z.prototype.has=function(J){return this.map.hasOwnProperty(O(J))},Z.prototype.set=function(J,H){this.map[O(J)]=k(H)},Z.prototype.forEach=function(J,H){for(var fe in this.map)this.map.hasOwnProperty(fe)&&J.call(H,this.map[fe],fe,this)},Z.prototype.keys=function(){var J=[];return this.forEach(function(H,fe){J.push(fe)}),U(J)},Z.prototype.values=function(){var J=[];return this.forEach(function(H){J.push(H)}),U(J)},Z.prototype.entries=function(){var J=[];return this.forEach(function(H,fe){J.push([fe,H])}),U(J)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function re(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function ue(J){return new Promise(function(H,fe){J.onload=function(){H(J.result)},J.onerror=function(){fe(J.error)}})}function ne(J){var H=new FileReader,fe=ue(H);return H.readAsArrayBuffer(J),fe}function ie(J){var H=new FileReader,fe=ue(H);return H.readAsText(J),fe}function Y(J){for(var H=new Uint8Array(J),fe=new Array(H.length),he=0;he<H.length;he++)fe[he]=String.fromCharCode(H[he]);return fe.join("")}function P(J){if(J.slice)return J.slice(0);var H=new Uint8Array(J.byteLength);return H.set(new Uint8Array(J)),H.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:d.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:d.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():d.arrayBuffer&&d.blob&&x(J)?(this._bodyArrayBuffer=P(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||A(J))?this._bodyArrayBuffer=P(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var J=re(this);if(J)return J;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?re(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var J=re(this);if(J)return J;if(this._bodyBlob)return ie(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}var D=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(J){var H=J.toUpperCase();return D.indexOf(H)>-1?H:J}function F(J,H){H=H||{};var fe=H.body;if(J instanceof F){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,H.headers||(this.headers=new Z(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!fe&&J._bodyInit!=null&&(fe=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Z(H.headers)),this.method=C(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function V(J){var H=new FormData;return J.trim().split("&").forEach(function(fe){if(fe){var he=fe.split("="),_=he.shift().replace(/\+/g," "),Q=he.join("=").replace(/\+/g," ");H.append(decodeURIComponent(_),decodeURIComponent(Q))}}),H}function X(J){var H=new Z,fe=J.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(he){var _=he.split(":"),Q=_.shift().trim();if(Q){var z=_.join(":").trim();H.append(Q,z)}}),H}$.call(F.prototype);function K(J,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new Z(H.headers),this.url=H.url||"",this._initBody(J)}$.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},K.error=function(){var J=new K(null,{status:0,statusText:""});return J.type="error",J};var W=[301,302,303,307,308];K.redirect=function(J,H){if(W.indexOf(H)===-1)throw new RangeError("Invalid status code");return new K(null,{status:H,headers:{location:J}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(J){o.DOMException=function(H,fe){this.message=H,this.name=fe;var he=Error(H);this.stack=he.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function te(J,H){return new Promise(function(fe,he){var _=new F(J,H);if(_.signal&&_.signal.aborted)return he(new o.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function z(){Q.abort()}Q.onload=function(){var ge={status:Q.status,statusText:Q.statusText,headers:X(Q.getAllResponseHeaders()||"")};ge.url="responseURL"in Q?Q.responseURL:ge.headers.get("X-Request-URL");var Ee="response"in Q?Q.response:Q.responseText;fe(new K(Ee,ge))},Q.onerror=function(){he(new TypeError("Network request failed"))},Q.ontimeout=function(){he(new TypeError("Network request failed"))},Q.onabort=function(){he(new o.DOMException("Aborted","AbortError"))},Q.open(_.method,_.url,!0),_.credentials==="include"?Q.withCredentials=!0:_.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&d.blob&&(Q.responseType="blob"),_.headers.forEach(function(ge,Ee){Q.setRequestHeader(Ee,ge)}),_.signal&&(_.signal.addEventListener("abort",z),Q.onreadystatechange=function(){Q.readyState===4&&_.signal.removeEventListener("abort",z)}),Q.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return te.polyfill=!0,h.fetch||(h.fetch=te,h.Headers=Z,h.Request=F,h.Response=K),o.Headers=Z,o.Request=F,o.Response=K,o.fetch=te,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},96279:function(h,E){var o=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=o.DOMException}return w.prototype=o,new w}();(function(w){var A=function(O){var k={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Q){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function U(Q){return Q&&DataView.prototype.isPrototypeOf(Q)}if(k.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(Q){return Q&&Z.indexOf(Object.prototype.toString.call(Q))>-1};function ue(Q){if(typeof Q!="string"&&(Q=String(Q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Q))throw new TypeError("Invalid character in header field name");return Q.toLowerCase()}function ne(Q){return typeof Q!="string"&&(Q=String(Q)),Q}function ie(Q){var z={next:function(){var ge=Q.shift();return{done:ge===void 0,value:ge}}};return k.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Y(Q){this.map={},Q instanceof Y?Q.forEach(function(z,ge){this.append(ge,z)},this):Array.isArray(Q)?Q.forEach(function(z){this.append(z[0],z[1])},this):Q&&Object.getOwnPropertyNames(Q).forEach(function(z){this.append(z,Q[z])},this)}Y.prototype.append=function(Q,z){Q=ue(Q),z=ne(z);var ge=this.map[Q];this.map[Q]=ge?ge+", "+z:z},Y.prototype.delete=function(Q){delete this.map[ue(Q)]},Y.prototype.get=function(Q){return Q=ue(Q),this.has(Q)?this.map[Q]:null},Y.prototype.has=function(Q){return this.map.hasOwnProperty(ue(Q))},Y.prototype.set=function(Q,z){this.map[ue(Q)]=ne(z)},Y.prototype.forEach=function(Q,z){for(var ge in this.map)this.map.hasOwnProperty(ge)&&Q.call(z,this.map[ge],ge,this)},Y.prototype.keys=function(){var Q=[];return this.forEach(function(z,ge){Q.push(ge)}),ie(Q)},Y.prototype.values=function(){var Q=[];return this.forEach(function(z){Q.push(z)}),ie(Q)},Y.prototype.entries=function(){var Q=[];return this.forEach(function(z,ge){Q.push([ge,z])}),ie(Q)},k.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function P(Q){if(Q.bodyUsed)return Promise.reject(new TypeError("Already read"));Q.bodyUsed=!0}function $(Q){return new Promise(function(z,ge){Q.onload=function(){z(Q.result)},Q.onerror=function(){ge(Q.error)}})}function D(Q){var z=new FileReader,ge=$(z);return z.readAsArrayBuffer(Q),ge}function C(Q){var z=new FileReader,ge=$(z);return z.readAsText(Q),ge}function F(Q){for(var z=new Uint8Array(Q),ge=new Array(z.length),Ee=0;Ee<z.length;Ee++)ge[Ee]=String.fromCharCode(z[Ee]);return ge.join("")}function V(Q){if(Q.slice)return Q.slice(0);var z=new Uint8Array(Q.byteLength);return z.set(new Uint8Array(Q)),z.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(Q){this._bodyInit=Q,Q?typeof Q=="string"?this._bodyText=Q:k.blob&&Blob.prototype.isPrototypeOf(Q)?this._bodyBlob=Q:k.formData&&FormData.prototype.isPrototypeOf(Q)?this._bodyFormData=Q:k.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)?this._bodyText=Q.toString():k.arrayBuffer&&k.blob&&U(Q)?(this._bodyArrayBuffer=V(Q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Q)||re(Q))?this._bodyArrayBuffer=V(Q):this._bodyText=Q=Object.prototype.toString.call(Q):this._bodyText="",this.headers.get("content-type")||(typeof Q=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):k.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},k.blob&&(this.blob=function(){var Q=P(this);if(Q)return Q;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(D)}),this.text=function(){var Q=P(this);if(Q)return Q;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(F(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},k.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(Q){var z=Q.toUpperCase();return K.indexOf(z)>-1?z:Q}function te(Q,z){z=z||{};var ge=z.body;if(Q instanceof te){if(Q.bodyUsed)throw new TypeError("Already read");this.url=Q.url,this.credentials=Q.credentials,z.headers||(this.headers=new Y(Q.headers)),this.method=Q.method,this.mode=Q.mode,this.signal=Q.signal,!ge&&Q._bodyInit!=null&&(ge=Q._bodyInit,Q.bodyUsed=!0)}else this.url=String(Q);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Y(z.headers)),this.method=W(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ge)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ge)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})};function J(Q){var z=new FormData;return Q.trim().split("&").forEach(function(ge){if(ge){var Ee=ge.split("="),je=Ee.shift().replace(/\+/g," "),ke=Ee.join("=").replace(/\+/g," ");z.append(decodeURIComponent(je),decodeURIComponent(ke))}}),z}function H(Q){var z=new Y,ge=Q.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(Ee){var je=Ee.split(":"),ke=je.shift().trim();if(ke){var it=je.join(":").trim();z.append(ke,it)}}),z}X.call(te.prototype);function fe(Q,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new Y(z.headers),this.url=z.url||"",this._initBody(Q)}X.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},fe.error=function(){var Q=new fe(null,{status:0,statusText:""});return Q.type="error",Q};var he=[301,302,303,307,308];fe.redirect=function(Q,z){if(he.indexOf(z)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:z,headers:{location:Q}})},O.DOMException=w.DOMException;try{new O.DOMException}catch(Q){O.DOMException=function(z,ge){this.message=z,this.name=ge;var Ee=Error(z);this.stack=Ee.stack},O.DOMException.prototype=Object.create(Error.prototype),O.DOMException.prototype.constructor=O.DOMException}function _(Q,z){return new Promise(function(ge,Ee){var je=new te(Q,z);if(je.signal&&je.signal.aborted)return Ee(new O.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function it(){ke.abort()}ke.onload=function(){var et={status:ke.status,statusText:ke.statusText,headers:H(ke.getAllResponseHeaders()||"")};et.url="responseURL"in ke?ke.responseURL:et.headers.get("X-Request-URL");var at="response"in ke?ke.response:ke.responseText;ge(new fe(at,et))},ke.onerror=function(){Ee(new TypeError("Network request failed"))},ke.ontimeout=function(){Ee(new TypeError("Network request failed"))},ke.onabort=function(){Ee(new O.DOMException("Aborted","AbortError"))},ke.open(je.method,je.url,!0),je.credentials==="include"?ke.withCredentials=!0:je.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&k.blob&&(ke.responseType="blob"),je.headers.forEach(function(et,at){ke.setRequestHeader(at,et)}),je.signal&&(je.signal.addEventListener("abort",it),ke.onreadystatechange=function(){ke.readyState===4&&je.signal.removeEventListener("abort",it)}),ke.send(typeof je._bodyInit=="undefined"?null:je._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=te,w.Response=fe),O.Headers=Y,O.Request=te,O.Response=fe,O.fetch=_,Object.defineProperty(O,"__esModule",{value:!0}),O}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;E=x.fetch,E.default=x.fetch,E.fetch=x.fetch,E.Headers=x.Headers,E.Request=x.Request,E.Response=x.Response,h.exports=E},45957:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
42
- `,""]);const k=O},73792:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=o(78991),k=o.n(O),U=new URL(o(17735),o.b),Z=new URL(o(56089),o.b),re=new URL(o(46050),o.b),ue=new URL(o(71090),o.b),ne=new URL(o(96192),o.b),ie=A()(x()),Y=k()(U),P=k()(Z),$=k()(re),D=k()(ue),C=k()(ne);ie.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+Y+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+$+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+D+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
41
+ */E.parse=x,E.serialize=w;var o=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(_,re){if(typeof _!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=re||{},ie=ne.decode||A,J=0;J<_.length;){var P=_.indexOf("=",J);if(P===-1)break;var G=_.indexOf(";",J);if(G===-1)G=_.length;else if(G<P){J=_.lastIndexOf(";",P-1)+1;continue}var L=_.slice(J,P).trim();if(ue[L]===void 0){var C=_.slice(P+1,G).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),ue[L]=U(C,ie)}J=G+1}return ue}function w(_,re,ue){var ne=ue||{},ie=ne.encode||O;if(typeof ie!="function")throw new TypeError("option encode is invalid");if(!d.test(_))throw new TypeError("argument name is invalid");var J=ie(re);if(J&&!d.test(J))throw new TypeError("argument val is invalid");var P=_+"="+J;if(ne.maxAge!=null){var G=ne.maxAge-0;if(isNaN(G)||!isFinite(G))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor(G)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");P+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");P+="; Path="+ne.path}if(ne.expires){var L=ne.expires;if(!k(L)||isNaN(L.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+L.toUTCString()}if(ne.httpOnly&&(P+="; HttpOnly"),ne.secure&&(P+="; Secure"),ne.priority){var C=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var F=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(F){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function A(_){return _.indexOf("%")!==-1?decodeURIComponent(_):_}function O(_){return encodeURIComponent(_)}function k(_){return o.call(_)==="[object Date]"||_ instanceof Date}function U(_,re){try{return re(_)}catch(ue){return _}}},27129:(h,E,o)=>{var d=o(53822);h.exports=d},86250:(h,E,o)=>{var d=o(21434);h.exports=d},61347:(h,E,o)=>{var d=o(27710);h.exports=d},42142:(h,E,o)=>{var d=o(31585);h.exports=d},21106:(h,E,o)=>{var d=o(55603);h.exports=d},97497:(h,E,o)=>{var d=o(31206);h.exports=d},28385:(h,E,o)=>{var d=o(26174);h.exports=d},85874:(h,E,o)=>{var d=o(87511);h.exports=d},86843:(h,E,o)=>{var d=o(24741);h.exports=d},37528:(h,E,o)=>{var d=o(4963);h.exports=d},81471:(h,E,o)=>{var d=o(21025);h.exports=d},5271:(h,E,o)=>{var d=o(27820);h.exports=d},87275:(h,E,o)=>{var d=o(74194);h.exports=d},13772:(h,E,o)=>{var d=o(32854);h.exports=d},97574:(h,E,o)=>{var d=o(60002);h.exports=d},69373:(h,E,o)=>{var d=o(28980);h.exports=d},70033:(h,E,o)=>{var d=o(45636);h.exports=d},77443:(h,E,o)=>{var d=o(66672);h.exports=d},88362:(h,E,o)=>{var d=o(46618);h.exports=d},89821:(h,E,o)=>{var d=o(42285);o(9031),h.exports=d},8008:(h,E,o)=>{var d=o(58535);h.exports=d},30164:(h,E,o)=>{var d=o(16042);h.exports=d},52221:(h,E,o)=>{o(5454),o(19173);var d=o(57545);h.exports=d.Array.from},75078:(h,E,o)=>{o(8118);var d=o(57545);h.exports=d.Array.isArray},66135:(h,E,o)=>{o(59106);var d=o(45607);h.exports=d("Array").concat},77237:(h,E,o)=>{o(98939),o(46663);var d=o(45607);h.exports=d("Array").entries},83971:(h,E,o)=>{o(73436);var d=o(45607);h.exports=d("Array").filter},42087:(h,E,o)=>{o(10880);var d=o(45607);h.exports=d("Array").find},60098:(h,E,o)=>{o(9823);var d=o(45607);h.exports=d("Array").forEach},54216:(h,E,o)=>{o(70024);var d=o(45607);h.exports=d("Array").includes},92089:(h,E,o)=>{o(62276);var d=o(45607);h.exports=d("Array").indexOf},6209:(h,E,o)=>{o(63838);var d=o(45607);h.exports=d("Array").map},49922:(h,E,o)=>{o(99523);var d=o(45607);h.exports=d("Array").reverse},52671:(h,E,o)=>{o(65818);var d=o(45607);h.exports=d("Array").slice},51375:(h,E,o)=>{o(12178);var d=o(45607);h.exports=d("Array").splice},65739:(h,E,o)=>{o(98939),o(5454);var d=o(78703);h.exports=d},74030:(h,E,o)=>{o(25067),h.exports=o(98576)},41484:(h,E,o)=>{var d=o(8902),x=o(66135),w=Array.prototype;h.exports=function(A){var O=A.concat;return A===w||d(w,A)&&O===w.concat?x:O}},53669:(h,E,o)=>{var d=o(8902),x=o(83971),w=Array.prototype;h.exports=function(A){var O=A.filter;return A===w||d(w,A)&&O===w.filter?x:O}},37506:(h,E,o)=>{var d=o(8902),x=o(42087),w=Array.prototype;h.exports=function(A){var O=A.find;return A===w||d(w,A)&&O===w.find?x:O}},13173:(h,E,o)=>{var d=o(8902),x=o(54216),w=o(62840),A=Array.prototype,O=String.prototype;h.exports=function(k){var U=k.includes;return k===A||d(A,k)&&U===A.includes?x:typeof k=="string"||k===O||d(O,k)&&U===O.includes?w:U}},92604:(h,E,o)=>{var d=o(8902),x=o(92089),w=Array.prototype;h.exports=function(A){var O=A.indexOf;return A===w||d(w,A)&&O===w.indexOf?x:O}},263:(h,E,o)=>{var d=o(8902),x=o(6209),w=Array.prototype;h.exports=function(A){var O=A.map;return A===w||d(w,A)&&O===w.map?x:O}},80432:(h,E,o)=>{var d=o(8902),x=o(49922),w=Array.prototype;h.exports=function(A){var O=A.reverse;return A===w||d(w,A)&&O===w.reverse?x:O}},77663:(h,E,o)=>{var d=o(8902),x=o(52671),w=Array.prototype;h.exports=function(A){var O=A.slice;return A===w||d(w,A)&&O===w.slice?x:O}},45063:(h,E,o)=>{var d=o(8902),x=o(51375),w=Array.prototype;h.exports=function(A){var O=A.splice;return A===w||d(w,A)&&O===w.splice?x:O}},7769:(h,E,o)=>{var d=o(8902),x=o(14820),w=String.prototype;h.exports=function(A){var O=A.startsWith;return typeof A=="string"||A===w||d(w,A)&&O===w.startsWith?x:O}},96056:(h,E,o)=>{o(59704);var d=o(57545),x=o(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(A,O,k){return x(d.JSON.stringify,null,arguments)}},99936:(h,E,o)=>{o(93582);var d=o(57545);h.exports=d.Object.assign},23213:(h,E,o)=>{o(73113);var d=o(57545),x=d.Object;h.exports=function(A,O){return x.create(A,O)}},38724:(h,E,o)=>{o(57585);var d=o(57545),x=d.Object,w=h.exports=function(O,k){return x.defineProperties(O,k)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,E,o)=>{o(20297);var d=o(57545),x=d.Object,w=h.exports=function(O,k,U){return x.defineProperty(O,k,U)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,E,o)=>{o(27442);var d=o(57545);h.exports=d.Object.entries},60632:(h,E,o)=>{o(89189);var d=o(57545),x=d.Object,w=h.exports=function(O,k){return x.getOwnPropertyDescriptor(O,k)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,E,o)=>{o(62509);var d=o(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,E,o)=>{o(36187);var d=o(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,E,o)=>{o(19234);var d=o(57545);h.exports=d.Object.getPrototypeOf},38651:(h,E,o)=>{o(92647);var d=o(57545);h.exports=d.Object.keys},33083:(h,E,o)=>{o(13222);var d=o(57545);h.exports=d.Object.setPrototypeOf},93154:(h,E,o)=>{o(4242),o(98939),o(46663),o(59021),o(97884),o(78885),o(91868),o(5454);var d=o(57545);h.exports=d.Promise},62840:(h,E,o)=>{o(39247);var d=o(45607);h.exports=d("String").includes},14820:(h,E,o)=>{o(32991);var d=o(45607);h.exports=d("String").startsWith},85008:(h,E,o)=>{o(59106),o(46663),o(36187),o(19781),o(50492),o(66681),o(29594),o(63665),o(29017),o(11250),o(79786),o(90503),o(16565),o(69322),o(13610),o(36886),o(33514),o(68671),o(58556),o(71367);var d=o(57545);h.exports=d.Symbol},994:(h,E,o)=>{o(98939),o(46663),o(5454),o(63665);var d=o(89207);h.exports=d.f("iterator")},30290:(h,E,o)=>{o(12432),o(13610);var d=o(89207);h.exports=d.f("toPrimitive")},31293:(h,E,o)=>{o(98939),o(46663),o(33983);var d=o(57545);h.exports=d.WeakMap},62813:(h,E,o)=>{h.exports=o(52708)},68664:(h,E,o)=>{h.exports=o(58541)},21457:(h,E,o)=>{h.exports=o(37020)},36516:(h,E,o)=>{h.exports=o(79987)},87611:(h,E,o)=>{h.exports=o(86812)},4161:(h,E,o)=>{h.exports=o(51024)},75159:(h,E,o)=>{h.exports=o(32747)},87708:(h,E,o)=>{h.exports=o(85918)},42937:(h,E,o)=>{h.exports=o(21626)},69297:(h,E,o)=>{h.exports=o(77021)},10353:(h,E,o)=>{h.exports=o(18281)},8026:(h,E,o)=>{h.exports=o(90229)},67362:(h,E,o)=>{h.exports=o(53949)},57532:(h,E,o)=>{h.exports=o(11795)},61903:(h,E,o)=>{h.exports=o(75090)},42044:(h,E,o)=>{h.exports=o(27994)},60902:(h,E,o)=>{h.exports=o(45483)},2214:(h,E,o)=>{h.exports=o(35796)},983:(h,E,o)=>{h.exports=o(79918)},59256:(h,E,o)=>{h.exports=o(82185)},95659:(h,E,o)=>{h.exports=o(39982)},93698:(h,E,o)=>{h.exports=o(88241)},52708:(h,E,o)=>{var d=o(27129);h.exports=d},58541:(h,E,o)=>{var d=o(86250);h.exports=d},37020:(h,E,o)=>{var d=o(61347);h.exports=d},79987:(h,E,o)=>{o(5363);var d=o(42142);h.exports=d},86812:(h,E,o)=>{var d=o(21106);h.exports=d},51024:(h,E,o)=>{var d=o(97497);h.exports=d},32747:(h,E,o)=>{var d=o(28385);h.exports=d},85918:(h,E,o)=>{var d=o(85874);h.exports=d},21626:(h,E,o)=>{var d=o(86843);h.exports=d},77021:(h,E,o)=>{var d=o(37528);h.exports=d},18281:(h,E,o)=>{var d=o(81471);h.exports=d},90229:(h,E,o)=>{var d=o(5271);h.exports=d},53949:(h,E,o)=>{var d=o(87275);h.exports=d},11795:(h,E,o)=>{var d=o(13772);h.exports=d},75090:(h,E,o)=>{var d=o(97574);h.exports=d},27994:(h,E,o)=>{var d=o(69373);h.exports=d},45483:(h,E,o)=>{var d=o(70033);h.exports=d},35796:(h,E,o)=>{var d=o(77443);h.exports=d},79918:(h,E,o)=>{var d=o(88362);o(12752),o(14562),o(25363),o(69355),h.exports=d},82185:(h,E,o)=>{var d=o(89821);o(60177),o(96658),o(54212),o(18658),o(71875),o(54592),o(26680),h.exports=d},39982:(h,E,o)=>{var d=o(8008);h.exports=d},88241:(h,E,o)=>{var d=o(30164);h.exports=d},66235:(h,E,o)=>{var d=o(16447),x=o(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a function")}},71404:(h,E,o)=>{var d=o(22091),x=o(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a constructor")}},7757:(h,E,o)=>{var d=o(16447),x=String,w=TypeError;h.exports=function(A){if(typeof A=="object"||d(A))return A;throw w("Can't set "+x(A)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,E,o)=>{var d=o(8902),x=TypeError;h.exports=function(w,A){if(d(A,w))return w;throw x("Incorrect invocation")}},31138:(h,E,o)=>{var d=o(35744),x=String,w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not an object")}},80410:(h,E,o)=>{var d=o(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,E,o)=>{"use strict";var d=o(50454).forEach,x=o(10424),w=x("forEach");h.exports=w?[].forEach:function(O){return d(this,O,arguments.length>1?arguments[1]:void 0)}},20841:(h,E,o)=>{"use strict";var d=o(8043),x=o(18922),w=o(71795),A=o(21635),O=o(96109),k=o(22091),U=o(84104),_=o(49361),re=o(61669),ue=o(78703),ne=Array;h.exports=function(J){var P=w(J),G=k(this),L=arguments.length,C=L>1?arguments[1]:void 0,F=C!==void 0;F&&(C=d(C,L>2?arguments[2]:void 0));var V=ue(P),Q=0,Y,W,te,X,H,fe;if(V&&!(this===ne&&O(V)))for(X=re(P,V),H=X.next,W=G?new this:[];!(te=x(H,X)).done;Q++)fe=F?A(X,C,[te.value,Q],!0):te.value,_(W,Q,fe);else for(Y=U(P),W=G?new this(Y):ne(Y);Y>Q;Q++)fe=F?C(P[Q],Q):P[Q],_(W,Q,fe);return W.length=Q,W}},48180:(h,E,o)=>{var d=o(20101),x=o(97739),w=o(84104),A=function(O){return function(k,U,_){var re=d(k),ue=w(re),ne=x(_,ue),ie;if(O&&U!=U){for(;ue>ne;)if(ie=re[ne++],ie!=ie)return!0}else for(;ue>ne;ne++)if((O||ne in re)&&re[ne]===U)return O||ne||0;return!O&&-1}};h.exports={includes:A(!0),indexOf:A(!1)}},50454:(h,E,o)=>{var d=o(8043),x=o(84120),w=o(2202),A=o(71795),O=o(84104),k=o(71321),U=x([].push),_=function(re){var ue=re==1,ne=re==2,ie=re==3,J=re==4,P=re==6,G=re==7,L=re==5||P;return function(C,F,V,Q){for(var Y=A(C),W=w(Y),te=d(F,V),X=O(W),H=0,fe=Q||k,ve=ue?fe(C,X):ne||G?fe(C,0):void 0,ee,Z;X>H;H++)if((L||H in W)&&(ee=W[H],Z=te(ee,H,Y),re))if(ue)ve[H]=Z;else if(Z)switch(re){case 3:return!0;case 5:return ee;case 6:return H;case 2:U(ve,ee)}else switch(re){case 4:return!1;case 7:U(ve,ee)}return P?-1:ie||J?J:ve}};h.exports={forEach:_(0),map:_(1),filter:_(2),some:_(3),every:_(4),find:_(5),findIndex:_(6),filterReject:_(7)}},90242:(h,E,o)=>{var d=o(76192),x=o(18182),w=o(14218),A=x("species");h.exports=function(O){return w>=51||!d(function(){var k=[],U=k.constructor={};return U[A]=function(){return{foo:1}},k[O](Boolean).foo!==1})}},10424:(h,E,o)=>{"use strict";var d=o(76192);h.exports=function(x,w){var A=[][x];return!!A&&d(function(){A.call(null,w||function(){return 1},1)})}},95072:(h,E,o)=>{"use strict";var d=o(50069),x=o(34770),w=TypeError,A=Object.getOwnPropertyDescriptor,O=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(k){return k instanceof TypeError}}();h.exports=O?function(k,U){if(x(k)&&!A(k,"length").writable)throw w("Cannot set read only .length");return k.length=U}:function(k,U){return k.length=U}},1923:(h,E,o)=>{var d=o(97739),x=o(84104),w=o(49361),A=Array,O=Math.max;h.exports=function(k,U,_){for(var re=x(k),ue=d(U,re),ne=d(_===void 0?re:_,re),ie=A(O(ne-ue,0)),J=0;ue<ne;ue++,J++)w(ie,J,k[ue]);return ie.length=J,ie}},93096:(h,E,o)=>{var d=o(84120);h.exports=d([].slice)},6614:(h,E,o)=>{var d=o(1923),x=Math.floor,w=function(k,U){var _=k.length,re=x(_/2);return _<8?A(k,U):O(k,w(d(k,0,re),U),w(d(k,re),U),U)},A=function(k,U){for(var _=k.length,re=1,ue,ne;re<_;){for(ne=re,ue=k[re];ne&&U(k[ne-1],ue)>0;)k[ne]=k[--ne];ne!==re++&&(k[ne]=ue)}return k},O=function(k,U,_,re){for(var ue=U.length,ne=_.length,ie=0,J=0;ie<ue||J<ne;)k[ie+J]=ie<ue&&J<ne?re(U[ie],_[J])<=0?U[ie++]:_[J++]:ie<ue?U[ie++]:_[J++];return k};h.exports=w},83712:(h,E,o)=>{var d=o(34770),x=o(22091),w=o(35744),A=o(18182),O=A("species"),k=Array;h.exports=function(U){var _;return d(U)&&(_=U.constructor,x(_)&&(_===k||d(_.prototype))?_=void 0:w(_)&&(_=_[O],_===null&&(_=void 0))),_===void 0?k:_}},71321:(h,E,o)=>{var d=o(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,E,o)=>{var d=o(31138),x=o(66639);h.exports=function(w,A,O,k){try{return k?A(d(O)[0],O[1]):A(O)}catch(U){x(w,"throw",U)}}},19770:(h,E,o)=>{var d=o(18182),x=d("iterator"),w=!1;try{var A=0,O={next:function(){return{done:!!A++}},return:function(){w=!0}};O[x]=function(){return this},Array.from(O,function(){throw 2})}catch(k){}h.exports=function(k,U){if(!U&&!w)return!1;var _=!1;try{var re={};re[x]=function(){return{next:function(){return{done:_=!0}}}},k(re)}catch(ue){}return _}},29272:(h,E,o)=>{var d=o(84120),x=d({}.toString),w=d("".slice);h.exports=function(A){return w(x(A),8,-1)}},4696:(h,E,o)=>{var d=o(83471),x=o(16447),w=o(29272),A=o(18182),O=A("toStringTag"),k=Object,U=w(function(){return arguments}())=="Arguments",_=function(re,ue){try{return re[ue]}catch(ne){}};h.exports=d?w:function(re){var ue,ne,ie;return re===void 0?"Undefined":re===null?"Null":typeof(ne=_(ue=k(re),O))=="string"?ne:U?w(ue):(ie=w(ue))=="Object"&&x(ue.callee)?"Arguments":ie}},51057:(h,E,o)=>{"use strict";var d=o(84120),x=o(35090),w=o(32861).getWeakData,A=o(46961),O=o(31138),k=o(75646),U=o(35744),_=o(33442),re=o(50454),ue=o(64500),ne=o(73326),ie=ne.set,J=ne.getterFor,P=re.find,G=re.findIndex,L=d([].splice),C=0,F=function(Y){return Y.frozen||(Y.frozen=new V)},V=function(){this.entries=[]},Q=function(Y,W){return P(Y.entries,function(te){return te[0]===W})};V.prototype={get:function(Y){var W=Q(this,Y);if(W)return W[1]},has:function(Y){return!!Q(this,Y)},set:function(Y,W){var te=Q(this,Y);te?te[1]=W:this.entries.push([Y,W])},delete:function(Y){var W=G(this.entries,function(te){return te[0]===Y});return~W&&L(this.entries,W,1),!!~W}},h.exports={getConstructor:function(Y,W,te,X){var H=Y(function(Z,z){A(Z,fe),ie(Z,{type:W,id:C++,frozen:void 0}),k(z)||_(z,Z[X],{that:Z,AS_ENTRIES:te})}),fe=H.prototype,ve=J(W),ee=function(Z,z,ge){var Ee=ve(Z),je=w(O(z),!0);return je===!0?F(Ee).set(z,ge):je[Ee.id]=ge,Z};return x(fe,{delete:function(Z){var z=ve(this);if(!U(Z))return!1;var ge=w(Z);return ge===!0?F(z).delete(Z):ge&&ue(ge,z.id)&&delete ge[z.id]},has:function(z){var ge=ve(this);if(!U(z))return!1;var Ee=w(z);return Ee===!0?F(ge).has(z):Ee&&ue(Ee,ge.id)}}),x(fe,te?{get:function(z){var ge=ve(this);if(U(z)){var Ee=w(z);return Ee===!0?F(ge).get(z):Ee?Ee[ge.id]:void 0}},set:function(z,ge){return ee(this,z,ge)}}:{add:function(z){return ee(this,z,!0)}}),H}}},34535:(h,E,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(32861),A=o(76192),O=o(98711),k=o(33442),U=o(46961),_=o(16447),re=o(35744),ue=o(11284),ne=o(42760).f,ie=o(50454).forEach,J=o(50069),P=o(73326),G=P.set,L=P.getterFor;h.exports=function(C,F,V){var Q=C.indexOf("Map")!==-1,Y=C.indexOf("Weak")!==-1,W=Q?"set":"add",te=x[C],X=te&&te.prototype,H={},fe;if(!J||!_(te)||!(Y||X.forEach&&!A(function(){new te().entries().next()})))fe=V.getConstructor(F,C,Q,W),w.enable();else{fe=F(function(Z,z){G(U(Z,ve),{type:C,collection:new te}),z!=null&&k(z,Z[W],{that:Z,AS_ENTRIES:Q})});var ve=fe.prototype,ee=L(C);ie(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Z){var z=Z=="add"||Z=="set";Z in X&&!(Y&&Z=="clear")&&O(ve,Z,function(ge,Ee){var je=ee(this).collection;if(!z&&Y&&!re(ge))return Z=="get"?void 0:!1;var ke=je[Z](ge===0?0:ge,Ee);return z?this:ke})}),Y||ne(ve,"size",{configurable:!0,get:function(){return ee(this).collection.size}})}return ue(fe,C,!1,!0),H[C]=fe,d({global:!0,forced:!0},H),Y||V.setStrong(fe,C,Q),fe}},97987:(h,E,o)=>{var d=o(64500),x=o(93011),w=o(5141),A=o(42760);h.exports=function(O,k,U){for(var _=x(k),re=A.f,ue=w.f,ne=0;ne<_.length;ne++){var ie=_[ne];!d(O,ie)&&!(U&&d(U,ie))&&re(O,ie,ue(k,ie))}}},83519:(h,E,o)=>{var d=o(18182),x=d("match");h.exports=function(w){var A=/./;try{"/./"[w](A)}catch(O){try{return A[x]=!1,"/./"[w](A)}catch(k){}}return!1}},4635:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(E,o){return{value:E,done:o}}},98711:(h,E,o)=>{var d=o(50069),x=o(42760),w=o(90774);h.exports=d?function(A,O,k){return x.f(A,O,w(1,k))}:function(A,O,k){return A[O]=k,A}},90774:h=>{h.exports=function(E,o){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:o}}},49361:(h,E,o)=>{"use strict";var d=o(40077),x=o(42760),w=o(90774);h.exports=function(A,O,k){var U=d(O);U in A?x.f(A,U,w(0,k)):A[U]=k}},59362:(h,E,o)=>{var d=o(98711);h.exports=function(x,w,A,O){return O&&O.enumerable?x[w]=A:d(x,w,A),x}},35090:(h,E,o)=>{var d=o(59362);h.exports=function(x,w,A){for(var O in w)A&&A.unsafe&&x[O]?x[O]=w[O]:d(x,O,w[O],A);return x}},65098:(h,E,o)=>{var d=o(98576),x=Object.defineProperty;h.exports=function(w,A){try{x(d,w,{value:A,configurable:!0,writable:!0})}catch(O){d[w]=A}return A}},29970:(h,E,o)=>{"use strict";var d=o(79288),x=TypeError;h.exports=function(w,A){if(!delete w[A])throw x("Cannot delete property "+d(A)+" of "+d(w))}},50069:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var E=typeof document=="object"&&document.all,o=typeof E=="undefined"&&E!==void 0;h.exports={all:E,IS_HTMLDDA:o}},67449:(h,E,o)=>{var d=o(98576),x=o(35744),w=d.document,A=x(w)&&x(w.createElement);h.exports=function(O){return A?w.createElement(O):{}}},29425:h=>{var E=TypeError,o=9007199254740991;h.exports=function(d){if(d>o)throw E("Maximum allowed index exceeded");return d}},17365:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(h,E,o)=>{var d=o(60659),x=o(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,E,o)=>{var d=o(78989),x=o(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,E,o)=>{var d=o(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,E,o)=>{var d=o(29272),x=o(98576);h.exports=d(x.process)=="process"},5914:(h,E,o)=>{var d=o(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,E,o)=>{var d=o(10150);h.exports=d("navigator","userAgent")||""},14218:(h,E,o)=>{var d=o(98576),x=o(78989),w=d.process,A=d.Deno,O=w&&w.versions||A&&A.version,k=O&&O.v8,U,_;k&&(U=k.split("."),_=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!_&&x&&(U=x.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=x.match(/Chrome\/(\d+)/),U&&(_=+U[1]))),h.exports=_},45607:(h,E,o)=>{var d=o(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,E,o)=>{var d=o(84120),x=Error,w=d("".replace),A=function(U){return String(x(U).stack)}("zxcasd"),O=/\n\s*at [^:]*:[^\n]*/,k=O.test(A);h.exports=function(U,_){if(k&&typeof U=="string"&&!x.prepareStackTrace)for(;_--;)U=w(U,O,"");return U}},50274:(h,E,o)=>{var d=o(76192),x=o(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,E,o)=>{"use strict";var d=o(98576),x=o(86298),w=o(14914),A=o(16447),O=o(5141).f,k=o(89245),U=o(57545),_=o(8043),re=o(98711),ue=o(64500),ne=function(ie){var J=function(P,G,L){if(this instanceof J){switch(arguments.length){case 0:return new ie;case 1:return new ie(P);case 2:return new ie(P,G)}return new ie(P,G,L)}return x(ie,this,arguments)};return J.prototype=ie.prototype,J};h.exports=function(ie,J){var P=ie.target,G=ie.global,L=ie.stat,C=ie.proto,F=G?d:L?d[P]:(d[P]||{}).prototype,V=G?U:U[P]||re(U,P,{})[P],Q=V.prototype,Y,W,te,X,H,fe,ve,ee,Z;for(X in J)Y=k(G?X:P+(L?".":"#")+X,ie.forced),W=!Y&&F&&ue(F,X),fe=V[X],W&&(ie.dontCallGetSet?(Z=O(F,X),ve=Z&&Z.value):ve=F[X]),H=W&&ve?ve:J[X],!(W&&typeof fe==typeof H)&&(ie.bind&&W?ee=_(H,d):ie.wrap&&W?ee=ne(H):C&&A(H)?ee=w(H):ee=H,(ie.sham||H&&H.sham||fe&&fe.sham)&&re(ee,"sham",!0),re(V,X,ee),C&&(te=P+"Prototype",ue(U,te)||re(U,te,{}),re(U[te],X,H),ie.real&&Q&&(Y||!Q[X])&&re(Q,X,H)))}},76192:h=>{h.exports=function(E){try{return!!E()}catch(o){return!0}}},47636:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,E,o)=>{var d=o(22784),x=Function.prototype,w=x.apply,A=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?A.bind(w):function(){return A.apply(w,arguments)})},8043:(h,E,o)=>{var d=o(14914),x=o(66235),w=o(22784),A=d(d.bind);h.exports=function(O,k){return x(O),k===void 0?O:w?A(O,k):function(){return O.apply(k,arguments)}}},22784:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,E,o)=>{var d=o(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,E,o)=>{var d=o(50069),x=o(64500),w=Function.prototype,A=d&&Object.getOwnPropertyDescriptor,O=x(w,"name"),k=O&&function(){}.name==="something",U=O&&(!d||d&&A(w,"name").configurable);h.exports={EXISTS:O,PROPER:k,CONFIGURABLE:U}},14914:(h,E,o)=>{var d=o(29272),x=o(84120);h.exports=function(w){if(d(w)==="Function")return x(w)}},84120:(h,E,o)=>{var d=o(22784),x=Function.prototype,w=x.call,A=d&&x.bind.bind(w,w);h.exports=d?A:function(O){return function(){return w.apply(O,arguments)}}},10150:(h,E,o)=>{var d=o(57545),x=o(98576),w=o(16447),A=function(O){return w(O)?O:void 0};h.exports=function(O,k){return arguments.length<2?A(d[O])||A(x[O]):d[O]&&d[O][k]||x[O]&&x[O][k]}},78703:(h,E,o)=>{var d=o(4696),x=o(75037),w=o(75646),A=o(47771),O=o(18182),k=O("iterator");h.exports=function(U){if(!w(U))return x(U,k)||x(U,"@@iterator")||A[d(U)]}},61669:(h,E,o)=>{var d=o(18922),x=o(66235),w=o(31138),A=o(79288),O=o(78703),k=TypeError;h.exports=function(U,_){var re=arguments.length<2?O(U):_;if(x(re))return w(d(re,U));throw k(A(U)+" is not iterable")}},75037:(h,E,o)=>{var d=o(66235),x=o(75646);h.exports=function(w,A){var O=w[A];return x(O)?void 0:d(O)}},98576:(h,E,o)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},64500:(h,E,o)=>{var d=o(84120),x=o(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(O,k){return w(x(O),k)}},14535:h=>{h.exports={}},63681:(h,E,o)=>{var d=o(98576);h.exports=function(x,w){var A=d.console;A&&A.error&&(arguments.length==1?A.error(x):A.error(x,w))}},47403:(h,E,o)=>{var d=o(10150);h.exports=d("document","documentElement")},80188:(h,E,o)=>{var d=o(50069),x=o(76192),w=o(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,E,o)=>{var d=o(84120),x=o(76192),w=o(29272),A=Object,O=d("".split);h.exports=x(function(){return!A("z").propertyIsEnumerable(0)})?function(k){return w(k)=="String"?O(k,""):A(k)}:A},19516:(h,E,o)=>{var d=o(84120),x=o(16447),w=o(46434),A=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(O){return A(O)}),h.exports=w.inspectSource},10273:(h,E,o)=>{var d=o(35744),x=o(98711);h.exports=function(w,A){d(A)&&"cause"in A&&x(w,"cause",A.cause)}},32861:(h,E,o)=>{var d=o(93085),x=o(84120),w=o(14535),A=o(35744),O=o(64500),k=o(42760).f,U=o(92092),_=o(24052),re=o(4532),ue=o(42759),ne=o(47636),ie=!1,J=ue("meta"),P=0,G=function(Y){k(Y,J,{value:{objectID:"O"+P++,weakData:{}}})},L=function(Y,W){if(!A(Y))return typeof Y=="symbol"?Y:(typeof Y=="string"?"S":"P")+Y;if(!O(Y,J)){if(!re(Y))return"F";if(!W)return"E";G(Y)}return Y[J].objectID},C=function(Y,W){if(!O(Y,J)){if(!re(Y))return!0;if(!W)return!1;G(Y)}return Y[J].weakData},F=function(Y){return ne&&ie&&re(Y)&&!O(Y,J)&&G(Y),Y},V=function(){Q.enable=function(){},ie=!0;var Y=U.f,W=x([].splice),te={};te[J]=1,Y(te).length&&(U.f=function(X){for(var H=Y(X),fe=0,ve=H.length;fe<ve;fe++)if(H[fe]===J){W(H,fe,1);break}return H},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_.f}))},Q=h.exports={enable:V,fastKey:L,getWeakData:C,onFreeze:F};w[J]=!0},73326:(h,E,o)=>{var d=o(55278),x=o(98576),w=o(35744),A=o(98711),O=o(64500),k=o(46434),U=o(69766),_=o(14535),re="Object already initialized",ue=x.TypeError,ne=x.WeakMap,ie,J,P,G=function(V){return P(V)?J(V):ie(V,{})},L=function(V){return function(Q){var Y;if(!w(Q)||(Y=J(Q)).type!==V)throw ue("Incompatible receiver, "+V+" required");return Y}};if(d||k.state){var C=k.state||(k.state=new ne);C.get=C.get,C.has=C.has,C.set=C.set,ie=function(V,Q){if(C.has(V))throw ue(re);return Q.facade=V,C.set(V,Q),Q},J=function(V){return C.get(V)||{}},P=function(V){return C.has(V)}}else{var F=U("state");_[F]=!0,ie=function(V,Q){if(O(V,F))throw ue(re);return Q.facade=V,A(V,F,Q),Q},J=function(V){return O(V,F)?V[F]:{}},P=function(V){return O(V,F)}}h.exports={set:ie,get:J,has:P,enforce:G,getterFor:L}},96109:(h,E,o)=>{var d=o(18182),x=o(47771),w=d("iterator"),A=Array.prototype;h.exports=function(O){return O!==void 0&&(x.Array===O||A[w]===O)}},34770:(h,E,o)=>{var d=o(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,E,o)=>{var d=o(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,E,o)=>{var d=o(84120),x=o(76192),w=o(16447),A=o(4696),O=o(10150),k=o(19516),U=function(){},_=[],re=O("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),ie=!ue.exec(U),J=function(L){if(!w(L))return!1;try{return re(U,_,L),!0}catch(C){return!1}},P=function(L){if(!w(L))return!1;switch(A(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ie||!!ne(ue,k(L))}catch(C){return!0}};P.sham=!0,h.exports=!re||x(function(){var G;return J(J.call)||!J(Object)||!J(function(){G=!0})||G})?P:J},89245:(h,E,o)=>{var d=o(76192),x=o(16447),w=/#|\.prototype\./,A=function(re,ue){var ne=k[O(re)];return ne==_?!0:ne==U?!1:x(ue)?d(ue):!!ue},O=A.normalize=function(re){return String(re).replace(w,".").toLowerCase()},k=A.data={},U=A.NATIVE="N",_=A.POLYFILL="P";h.exports=A},75646:h=>{h.exports=function(E){return E==null}},35744:(h,E,o)=>{var d=o(16447),x=o(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(A){return typeof A=="object"?A!==null:d(A)||A===w}:function(A){return typeof A=="object"?A!==null:d(A)}},85546:h=>{h.exports=!0},94352:(h,E,o)=>{var d=o(35744),x=o(29272),w=o(18182),A=w("match");h.exports=function(O){var k;return d(O)&&((k=O[A])!==void 0?!!k:x(O)=="RegExp")}},23236:(h,E,o)=>{var d=o(10150),x=o(16447),w=o(8902),A=o(50615),O=Object;h.exports=A?function(k){return typeof k=="symbol"}:function(k){var U=d("Symbol");return x(U)&&w(U.prototype,O(k))}},33442:(h,E,o)=>{var d=o(8043),x=o(18922),w=o(31138),A=o(79288),O=o(96109),k=o(84104),U=o(8902),_=o(61669),re=o(78703),ue=o(66639),ne=TypeError,ie=function(P,G){this.stopped=P,this.result=G},J=ie.prototype;h.exports=function(P,G,L){var C=L&&L.that,F=!!(L&&L.AS_ENTRIES),V=!!(L&&L.IS_RECORD),Q=!!(L&&L.IS_ITERATOR),Y=!!(L&&L.INTERRUPTED),W=d(G,C),te,X,H,fe,ve,ee,Z,z=function(Ee){return te&&ue(te,"normal",Ee),new ie(!0,Ee)},ge=function(Ee){return F?(w(Ee),Y?W(Ee[0],Ee[1],z):W(Ee[0],Ee[1])):Y?W(Ee,z):W(Ee)};if(V)te=P.iterator;else if(Q)te=P;else{if(X=re(P),!X)throw ne(A(P)+" is not iterable");if(O(X)){for(H=0,fe=k(P);fe>H;H++)if(ve=ge(P[H]),ve&&U(J,ve))return ve;return new ie(!1)}te=_(P,X)}for(ee=V?P.next:te.next;!(Z=x(ee,te)).done;){try{ve=ge(Z.value)}catch(Ee){ue(te,"throw",Ee)}if(typeof ve=="object"&&ve&&U(J,ve))return ve}return new ie(!1)}},66639:(h,E,o)=>{var d=o(18922),x=o(31138),w=o(75037);h.exports=function(A,O,k){var U,_;x(A);try{if(U=w(A,"return"),!U){if(O==="throw")throw k;return k}U=d(U,A)}catch(re){_=!0,U=re}if(O==="throw")throw k;if(_)throw U;return x(U),k}},25695:(h,E,o)=>{"use strict";var d=o(54413).IteratorPrototype,x=o(52853),w=o(90774),A=o(11284),O=o(47771),k=function(){return this};h.exports=function(U,_,re,ue){var ne=_+" Iterator";return U.prototype=x(d,{next:w(+!ue,re)}),A(U,ne,!1,!0),O[ne]=k,U}},65297:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(85546),A=o(22282),O=o(16447),k=o(25695),U=o(89341),_=o(24469),re=o(11284),ue=o(98711),ne=o(59362),ie=o(18182),J=o(47771),P=o(54413),G=A.PROPER,L=A.CONFIGURABLE,C=P.IteratorPrototype,F=P.BUGGY_SAFARI_ITERATORS,V=ie("iterator"),Q="keys",Y="values",W="entries",te=function(){return this};h.exports=function(X,H,fe,ve,ee,Z,z){k(fe,H,ve);var ge=function(Oe){if(Oe===ee&&et)return et;if(!F&&Oe in ke)return ke[Oe];switch(Oe){case Q:return function(){return new fe(this,Oe)};case Y:return function(){return new fe(this,Oe)};case W:return function(){return new fe(this,Oe)}}return function(){return new fe(this)}},Ee=H+" Iterator",je=!1,ke=X.prototype,it=ke[V]||ke["@@iterator"]||ee&&ke[ee],et=!F&&it||ge(ee),at=H=="Array"&&ke.entries||it,Tt,St,Le;if(at&&(Tt=U(at.call(new X)),Tt!==Object.prototype&&Tt.next&&(!w&&U(Tt)!==C&&(_?_(Tt,C):O(Tt[V])||ne(Tt,V,te)),re(Tt,Ee,!0,!0),w&&(J[Ee]=te))),G&&ee==Y&&it&&it.name!==Y&&(!w&&L?ue(ke,"name",Y):(je=!0,et=function(){return x(it,this)})),ee)if(St={values:ge(Y),keys:Z?et:ge(Q),entries:ge(W)},z)for(Le in St)(F||je||!(Le in ke))&&ne(ke,Le,St[Le]);else d({target:H,proto:!0,forced:F||je},St);return(!w||z)&&ke[V]!==et&&ne(ke,V,et,{name:ee}),J[H]=et,St}},54413:(h,E,o)=>{"use strict";var d=o(76192),x=o(16447),w=o(35744),A=o(52853),O=o(89341),k=o(59362),U=o(18182),_=o(85546),re=U("iterator"),ue=!1,ne,ie,J;[].keys&&(J=[].keys(),"next"in J?(ie=O(O(J)),ie!==Object.prototype&&(ne=ie)):ue=!0);var P=!w(ne)||d(function(){var G={};return ne[re].call(G)!==G});P?ne={}:_&&(ne=A(ne)),x(ne[re])||k(ne,re,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,E,o)=>{var d=o(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var E=Math.ceil,o=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?o:E)(w)}},12950:(h,E,o)=>{var d=o(98576),x=o(8043),w=o(5141).f,A=o(67160).set,O=o(69536),k=o(29347),U=o(5914),_=o(58189),re=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,ie=d.Promise,J=w(d,"queueMicrotask"),P=J&&J.value,G,L,C,F,V,Q,Y,W;P||(G=function(){var te,X;for(_&&(te=ne.domain)&&te.exit();L;){X=L.fn,L=L.next;try{X()}catch(H){throw L?F():C=void 0,H}}C=void 0,te&&te.enter()},!O&&!_&&!U&&re&&ue?(V=!0,Q=ue.createTextNode(""),new re(G).observe(Q,{characterData:!0}),F=function(){Q.data=V=!V}):!k&&ie&&ie.resolve?(Y=ie.resolve(void 0),Y.constructor=ie,W=x(Y.then,Y),F=function(){W(G)}):_?F=function(){ne.nextTick(G)}:(A=x(A,d),F=function(){A(G)})),h.exports=P||function(te){var X={fn:te,next:void 0};C&&(C.next=X),L||(L=X,F()),C=X}},99438:(h,E,o)=>{"use strict";var d=o(66235),x=TypeError,w=function(A){var O,k;this.promise=new A(function(U,_){if(O!==void 0||k!==void 0)throw x("Bad Promise constructor");O=U,k=_}),this.resolve=d(O),this.reject=d(k)};h.exports.f=function(A){return new w(A)}},36016:(h,E,o)=>{var d=o(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,E,o)=>{var d=o(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,E,o)=>{"use strict";var d=o(50069),x=o(84120),w=o(18922),A=o(76192),O=o(57653),k=o(84750),U=o(56007),_=o(71795),re=o(2202),ue=Object.assign,ne=Object.defineProperty,ie=x([].concat);h.exports=!ue||A(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var J={},P={},G=Symbol(),L="abcdefghijklmnopqrst";return J[G]=7,L.split("").forEach(function(C){P[C]=C}),ue({},J)[G]!=7||O(ue({},P)).join("")!=L})?function(P,G){for(var L=_(P),C=arguments.length,F=1,V=k.f,Q=U.f;C>F;)for(var Y=re(arguments[F++]),W=V?ie(O(Y),V(Y)):O(Y),te=W.length,X=0,H;te>X;)H=W[X++],(!d||w(Q,Y,H))&&(L[H]=Y[H]);return L}:ue},52853:(h,E,o)=>{var d=o(31138),x=o(11187),w=o(82952),A=o(14535),O=o(47403),k=o(67449),U=o(69766),_=">",re="<",ue="prototype",ne="script",ie=U("IE_PROTO"),J=function(){},P=function(V){return re+ne+_+V+re+"/"+ne+_},G=function(V){V.write(P("")),V.close();var Q=V.parentWindow.Object;return V=null,Q},L=function(){var V=k("iframe"),Q="java"+ne+":",Y;return V.style.display="none",O.appendChild(V),V.src=String(Q),Y=V.contentWindow.document,Y.open(),Y.write(P("document.F=Object")),Y.close(),Y.F},C,F=function(){try{C=new ActiveXObject("htmlfile")}catch(Q){}F=typeof document!="undefined"?document.domain&&C?G(C):L():G(C);for(var V=w.length;V--;)delete F[ue][w[V]];return F()};A[ie]=!0,h.exports=Object.create||function(Q,Y){var W;return Q!==null?(J[ue]=d(Q),W=new J,J[ue]=null,W[ie]=Q):W=F(),Y===void 0?W:x.f(W,Y)}},11187:(h,E,o)=>{var d=o(50069),x=o(69600),w=o(42760),A=o(31138),O=o(20101),k=o(57653);E.f=d&&!x?Object.defineProperties:function(_,re){A(_);for(var ue=O(re),ne=k(re),ie=ne.length,J=0,P;ie>J;)w.f(_,P=ne[J++],ue[P]);return _}},42760:(h,E,o)=>{var d=o(50069),x=o(80188),w=o(69600),A=o(31138),O=o(40077),k=TypeError,U=Object.defineProperty,_=Object.getOwnPropertyDescriptor,re="enumerable",ue="configurable",ne="writable";E.f=d?w?function(J,P,G){if(A(J),P=O(P),A(G),typeof J=="function"&&P==="prototype"&&"value"in G&&ne in G&&!G[ne]){var L=_(J,P);L&&L[ne]&&(J[P]=G.value,G={configurable:ue in G?G[ue]:L[ue],enumerable:re in G?G[re]:L[re],writable:!1})}return U(J,P,G)}:U:function(J,P,G){if(A(J),P=O(P),A(G),x)try{return U(J,P,G)}catch(L){}if("get"in G||"set"in G)throw k("Accessors not supported");return"value"in G&&(J[P]=G.value),J}},5141:(h,E,o)=>{var d=o(50069),x=o(18922),w=o(56007),A=o(90774),O=o(20101),k=o(40077),U=o(64500),_=o(80188),re=Object.getOwnPropertyDescriptor;E.f=d?re:function(ne,ie){if(ne=O(ne),ie=k(ie),_)try{return re(ne,ie)}catch(J){}if(U(ne,ie))return A(!x(w.f,ne,ie),ne[ie])}},24052:(h,E,o)=>{var d=o(29272),x=o(20101),w=o(92092).f,A=o(1923),O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k=function(U){try{return w(U)}catch(_){return A(O)}};h.exports.f=function(_){return O&&d(_)=="Window"?k(_):w(x(_))}},92092:(h,E,o)=>{var d=o(57934),x=o(82952),w=x.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(O){return d(O,w)}},84750:(h,E)=>{E.f=Object.getOwnPropertySymbols},89341:(h,E,o)=>{var d=o(64500),x=o(16447),w=o(71795),A=o(69766),O=o(4635),k=A("IE_PROTO"),U=Object,_=U.prototype;h.exports=O?U.getPrototypeOf:function(re){var ue=w(re);if(d(ue,k))return ue[k];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof U?_:null}},4532:(h,E,o)=>{var d=o(76192),x=o(35744),w=o(29272),A=o(80410),O=Object.isExtensible,k=d(function(){O(1)});h.exports=k||A?function(_){return!x(_)||A&&w(_)=="ArrayBuffer"?!1:O?O(_):!0}:O},8902:(h,E,o)=>{var d=o(84120);h.exports=d({}.isPrototypeOf)},57934:(h,E,o)=>{var d=o(84120),x=o(64500),w=o(20101),A=o(48180).indexOf,O=o(14535),k=d([].push);h.exports=function(U,_){var re=w(U),ue=0,ne=[],ie;for(ie in re)!x(O,ie)&&x(re,ie)&&k(ne,ie);for(;_.length>ue;)x(re,ie=_[ue++])&&(~A(ne,ie)||k(ne,ie));return ne}},57653:(h,E,o)=>{var d=o(57934),x=o(82952);h.exports=Object.keys||function(A){return d(A,x)}},56007:(h,E)=>{"use strict";var o={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!o.call({1:2},1);E.f=x?function(A){var O=d(this,A);return!!O&&O.enumerable}:o},24469:(h,E,o)=>{var d=o(84120),x=o(31138),w=o(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,O={},k;try{k=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),k(O,[]),A=O instanceof Array}catch(U){}return function(_,re){return x(_),w(re),A?k(_,re):_.__proto__=re,_}}():void 0)},75370:(h,E,o)=>{var d=o(50069),x=o(84120),w=o(57653),A=o(20101),O=o(56007).f,k=x(O),U=x([].push),_=function(re){return function(ue){for(var ne=A(ue),ie=w(ne),J=ie.length,P=0,G=[],L;J>P;)L=ie[P++],(!d||k(ne,L))&&U(G,re?[L,ne[L]]:ne[L]);return G}};h.exports={entries:_(!0),values:_(!1)}},40158:(h,E,o)=>{"use strict";var d=o(83471),x=o(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,E,o)=>{var d=o(18922),x=o(16447),w=o(35744),A=TypeError;h.exports=function(O,k){var U,_;if(k==="string"&&x(U=O.toString)&&!w(_=d(U,O))||x(U=O.valueOf)&&!w(_=d(U,O))||k!=="string"&&x(U=O.toString)&&!w(_=d(U,O)))return _;throw A("Can't convert object to primitive value")}},93011:(h,E,o)=>{var d=o(10150),x=o(84120),w=o(92092),A=o(84750),O=o(31138),k=x([].concat);h.exports=d("Reflect","ownKeys")||function(_){var re=w.f(O(_)),ue=A.f;return ue?k(re,ue(_)):re}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(E){try{return{error:!1,value:E()}}catch(o){return{error:!0,value:o}}}},30511:(h,E,o)=>{var d=o(98576),x=o(15813),w=o(16447),A=o(89245),O=o(19516),k=o(18182),U=o(82957),_=o(60659),re=o(85546),ue=o(14218),ne=x&&x.prototype,ie=k("species"),J=!1,P=w(d.PromiseRejectionEvent),G=A("Promise",function(){var L=O(x),C=L!==String(x);if(!C&&ue===66||re&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(L)){var F=new x(function(Y){Y(1)}),V=function(Y){Y(function(){},function(){})},Q=F.constructor={};if(Q[ie]=V,J=F.then(function(){})instanceof V,!J)return!0}return!C&&(U||_)&&!P});h.exports={CONSTRUCTOR:G,REJECTION_EVENT:P,SUBCLASSING:J}},15813:(h,E,o)=>{var d=o(98576);h.exports=d.Promise},19126:(h,E,o)=>{var d=o(31138),x=o(35744),w=o(99438);h.exports=function(A,O){if(d(A),x(O)&&O.constructor===A)return O;var k=w.f(A),U=k.resolve;return U(O),k.promise}},52775:(h,E,o)=>{var d=o(15813),x=o(19770),w=o(30511).CONSTRUCTOR;h.exports=w||!x(function(A){d.all(A).then(void 0,function(){})})},6412:h=>{var E=function(){this.head=null,this.tail=null};E.prototype={add:function(o){var d={item:o,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var o=this.head;if(o)return this.head=o.next,this.tail===o&&(this.tail=null),o.item}},h.exports=E},13209:(h,E,o)=>{var d=o(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,E,o)=>{"use strict";var d=o(10150),x=o(42760),w=o(18182),A=o(50069),O=w("species");h.exports=function(k){var U=d(k),_=x.f;A&&U&&!U[O]&&_(U,O,{configurable:!0,get:function(){return this}})}},11284:(h,E,o)=>{var d=o(83471),x=o(42760).f,w=o(98711),A=o(64500),O=o(40158),k=o(18182),U=k("toStringTag");h.exports=function(_,re,ue,ne){if(_){var ie=ue?_:_.prototype;A(ie,U)||x(ie,U,{configurable:!0,value:re}),ne&&!d&&w(ie,"toString",O)}}},69766:(h,E,o)=>{var d=o(98717),x=o(42759),w=d("keys");h.exports=function(A){return w[A]||(w[A]=x(A))}},46434:(h,E,o)=>{var d=o(98576),x=o(65098),w="__core-js_shared__",A=d[w]||x(w,{});h.exports=A},98717:(h,E,o)=>{var d=o(85546),x=o(46434);(h.exports=function(w,A){return x[w]||(x[w]=A!==void 0?A:{})})("versions",[]).push({version:"3.27.1",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,E,o)=>{var d=o(31138),x=o(71404),w=o(75646),A=o(18182),O=A("species");h.exports=function(k,U){var _=d(k).constructor,re;return _===void 0||w(re=d(_)[O])?U:x(re)}},863:(h,E,o)=>{var d=o(84120),x=o(41941),w=o(44845),A=o(13209),O=d("".charAt),k=d("".charCodeAt),U=d("".slice),_=function(re){return function(ue,ne){var ie=w(A(ue)),J=x(ne),P=ie.length,G,L;return J<0||J>=P?re?"":void 0:(G=k(ie,J),G<55296||G>56319||J+1===P||(L=k(ie,J+1))<56320||L>57343?re?O(ie,J):G:re?U(ie,J,J+2):(G-55296<<10)+(L-56320)+65536)}};h.exports={codeAt:_(!1),charAt:_(!0)}},36770:(h,E,o)=>{var d=o(14218),x=o(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,E,o)=>{var d=o(18922),x=o(10150),w=o(18182),A=o(59362);h.exports=function(){var O=x("Symbol"),k=O&&O.prototype,U=k&&k.valueOf,_=w("toPrimitive");k&&!k[_]&&A(k,_,function(re){return d(U,this)},{arity:1})}},20031:(h,E,o)=>{var d=o(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,E,o)=>{var d=o(98576),x=o(86298),w=o(8043),A=o(16447),O=o(64500),k=o(76192),U=o(47403),_=o(93096),re=o(67449),ue=o(67822),ne=o(69536),ie=o(58189),J=d.setImmediate,P=d.clearImmediate,G=d.process,L=d.Dispatch,C=d.Function,F=d.MessageChannel,V=d.String,Q=0,Y={},W="onreadystatechange",te,X,H,fe;try{te=d.location}catch(ge){}var ve=function(ge){if(O(Y,ge)){var Ee=Y[ge];delete Y[ge],Ee()}},ee=function(ge){return function(){ve(ge)}},Z=function(ge){ve(ge.data)},z=function(ge){d.postMessage(V(ge),te.protocol+"//"+te.host)};(!J||!P)&&(J=function(Ee){ue(arguments.length,1);var je=A(Ee)?Ee:C(Ee),ke=_(arguments,1);return Y[++Q]=function(){x(je,void 0,ke)},X(Q),Q},P=function(Ee){delete Y[Ee]},ie?X=function(ge){G.nextTick(ee(ge))}:L&&L.now?X=function(ge){L.now(ee(ge))}:F&&!ne?(H=new F,fe=H.port2,H.port1.onmessage=Z,X=w(fe.postMessage,fe)):d.addEventListener&&A(d.postMessage)&&!d.importScripts&&te&&te.protocol!=="file:"&&!k(z)?(X=z,d.addEventListener("message",Z,!1)):W in re("script")?X=function(ge){U.appendChild(re("script"))[W]=function(){U.removeChild(this),ve(ge)}}:X=function(ge){setTimeout(ee(ge),0)}),h.exports={set:J,clear:P}},97739:(h,E,o)=>{var d=o(41941),x=Math.max,w=Math.min;h.exports=function(A,O){var k=d(A);return k<0?x(k+O,0):w(k,O)}},20101:(h,E,o)=>{var d=o(2202),x=o(13209);h.exports=function(w){return d(x(w))}},41941:(h,E,o)=>{var d=o(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,E,o)=>{var d=o(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,E,o)=>{var d=o(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,E,o)=>{var d=o(18922),x=o(35744),w=o(23236),A=o(75037),O=o(380),k=o(18182),U=TypeError,_=k("toPrimitive");h.exports=function(re,ue){if(!x(re)||w(re))return re;var ne=A(re,_),ie;if(ne){if(ue===void 0&&(ue="default"),ie=d(ne,re,ue),!x(ie)||w(ie))return ie;throw U("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),O(re,ue)}},40077:(h,E,o)=>{var d=o(97888),x=o(23236);h.exports=function(w){var A=d(w,"string");return x(A)?A:A+""}},83471:(h,E,o)=>{var d=o(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,E,o)=>{var d=o(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var E=String;h.exports=function(o){try{return E(o)}catch(d){return"Object"}}},42759:(h,E,o)=>{var d=o(84120),x=0,w=Math.random(),A=d(1 .toString);h.exports=function(O){return"Symbol("+(O===void 0?"":O)+")_"+A(++x+w,36)}},58552:(h,E,o)=>{var d=o(76192),x=o(18182),w=o(85546),A=x("iterator");h.exports=!d(function(){var O=new URL("b?a=1&b=2&c=3","http://a"),k=O.searchParams,U="";return O.pathname="c%20d",k.forEach(function(_,re){k.delete("b"),U+=re+_}),w&&!O.toJSON||!k.sort||O.href!=="http://a/c%20d?a=1&c=3"||k.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!k[A]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,E,o)=>{var d=o(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,E,o)=>{var d=o(50069),x=o(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var E=TypeError;h.exports=function(o,d){if(o<d)throw E("Not enough arguments");return o}},55278:(h,E,o)=>{var d=o(98576),x=o(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,E,o)=>{var d=o(57545),x=o(64500),w=o(89207),A=o(42760).f;h.exports=function(O){var k=d.Symbol||(d.Symbol={});x(k,O)||A(k,O,{value:w.f(O)})}},89207:(h,E,o)=>{var d=o(18182);E.f=d},18182:(h,E,o)=>{var d=o(98576),x=o(98717),w=o(64500),A=o(42759),O=o(36770),k=o(50615),U=x("wks"),_=d.Symbol,re=_&&_.for,ue=k?_:_&&_.withoutSetter||A;h.exports=function(ne){if(!w(U,ne)||!(O||typeof U[ne]=="string")){var ie="Symbol."+ne;O&&w(_,ne)?U[ne]=_[ne]:k&&re?U[ne]=re(ie):U[ne]=ue(ie)}return U[ne]}},93820:(h,E,o)=>{"use strict";var d=o(93085),x=o(8902),w=o(89341),A=o(24469),O=o(97987),k=o(52853),U=o(98711),_=o(90774),re=o(14503),ue=o(10273),ne=o(33442),ie=o(36016),J=o(18182),P=o(50274),G=J("toStringTag"),L=Error,C=[].push,F=function(Y,W){var te=arguments.length>2?arguments[2]:void 0,X=x(V,this),H;A?H=A(L(),X?w(this):V):(H=X?this:k(V),U(H,G,"Error")),W!==void 0&&U(H,"message",ie(W)),P&&U(H,"stack",re(H.stack,1)),ue(H,te);var fe=[];return ne(Y,C,{that:fe}),U(H,"errors",fe),H};A?A(F,L):O(F,L,{name:!0});var V=F.prototype=k(L.prototype,{constructor:_(1,F),message:_(1,""),name:_(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:F})},4242:(h,E,o)=>{o(93820)},59106:(h,E,o)=>{"use strict";var d=o(93085),x=o(76192),w=o(34770),A=o(35744),O=o(71795),k=o(84104),U=o(29425),_=o(49361),re=o(71321),ue=o(90242),ne=o(18182),ie=o(14218),J=ne("isConcatSpreadable"),P=ie>=51||!x(function(){var F=[];return F[J]=!1,F.concat()[0]!==F}),G=ue("concat"),L=function(F){if(!A(F))return!1;var V=F[J];return V!==void 0?!!V:w(F)},C=!P||!G;d({target:"Array",proto:!0,arity:1,forced:C},{concat:function(V){var Q=O(this),Y=re(Q,0),W=0,te,X,H,fe,ve;for(te=-1,H=arguments.length;te<H;te++)if(ve=te===-1?Q:arguments[te],L(ve))for(fe=k(ve),U(W+fe),X=0;X<fe;X++,W++)X in ve&&_(Y,W,ve[X]);else U(W+1),_(Y,W++,ve);return Y.length=W,Y}})},73436:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).filter,w=o(90242),A=w("filter");d({target:"Array",proto:!0,forced:!A},{filter:function(k){return x(this,k,arguments.length>1?arguments[1]:void 0)}})},10880:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).find,w=o(67423),A="find",O=!0;A in[]&&Array(1)[A](function(){O=!1}),d({target:"Array",proto:!0,forced:O},{find:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),w(A)},9823:(h,E,o)=>{"use strict";var d=o(93085),x=o(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,E,o)=>{var d=o(93085),x=o(20841),w=o(19770),A=!w(function(O){Array.from(O)});d({target:"Array",stat:!0,forced:A},{from:x})},70024:(h,E,o)=>{"use strict";var d=o(93085),x=o(48180).includes,w=o(76192),A=o(67423),O=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:O},{includes:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),A("includes")},62276:(h,E,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(48180).indexOf,A=o(10424),O=x([].indexOf),k=!!O&&1/O([1],1,-0)<0,U=A("indexOf");d({target:"Array",proto:!0,forced:k||!U},{indexOf:function(re){var ue=arguments.length>1?arguments[1]:void 0;return k?O(this,re,ue)||0:w(this,re,ue)}})},8118:(h,E,o)=>{var d=o(93085),x=o(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,E,o)=>{"use strict";var d=o(20101),x=o(67423),w=o(47771),A=o(73326),O=o(42760).f,k=o(65297),U=o(87271),_=o(85546),re=o(50069),ue="Array Iterator",ne=A.set,ie=A.getterFor(ue);h.exports=k(Array,"Array",function(P,G){ne(this,{type:ue,target:d(P),index:0,kind:G})},function(){var P=ie(this),G=P.target,L=P.kind,C=P.index++;return!G||C>=G.length?(P.target=void 0,U(void 0,!0)):L=="keys"?U(C,!1):L=="values"?U(G[C],!1):U([C,G[C]],!1)},"values");var J=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!_&&re&&J.name!=="values")try{O(J,"name",{value:"values"})}catch(P){}},63838:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).map,w=o(90242),A=w("map");d({target:"Array",proto:!0,forced:!A},{map:function(k){return x(this,k,arguments.length>1?arguments[1]:void 0)}})},99523:(h,E,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(34770),A=x([].reverse),O=[1,2];d({target:"Array",proto:!0,forced:String(O)===String(O.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),A(this)}})},65818:(h,E,o)=>{"use strict";var d=o(93085),x=o(34770),w=o(22091),A=o(35744),O=o(97739),k=o(84104),U=o(20101),_=o(49361),re=o(18182),ue=o(90242),ne=o(93096),ie=ue("slice"),J=re("species"),P=Array,G=Math.max;d({target:"Array",proto:!0,forced:!ie},{slice:function(C,F){var V=U(this),Q=k(V),Y=O(C,Q),W=O(F===void 0?Q:F,Q),te,X,H;if(x(V)&&(te=V.constructor,w(te)&&(te===P||x(te.prototype))?te=void 0:A(te)&&(te=te[J],te===null&&(te=void 0)),te===P||te===void 0))return ne(V,Y,W);for(X=new(te===void 0?P:te)(G(W-Y,0)),H=0;Y<W;Y++,H++)Y in V&&_(X,H,V[Y]);return X.length=H,X}})},12178:(h,E,o)=>{"use strict";var d=o(93085),x=o(71795),w=o(97739),A=o(41941),O=o(84104),k=o(95072),U=o(29425),_=o(71321),re=o(49361),ue=o(29970),ne=o(90242),ie=ne("splice"),J=Math.max,P=Math.min;d({target:"Array",proto:!0,forced:!ie},{splice:function(L,C){var F=x(this),V=O(F),Q=w(L,V),Y=arguments.length,W,te,X,H,fe,ve;for(Y===0?W=te=0:Y===1?(W=0,te=V-Q):(W=Y-2,te=P(J(A(C),0),V-Q)),U(V+W-te),X=_(F,te),H=0;H<te;H++)fe=Q+H,fe in F&&re(X,H,F[fe]);if(X.length=te,W<te){for(H=Q;H<V-te;H++)fe=H+te,ve=H+W,fe in F?F[ve]=F[fe]:ue(F,ve);for(H=V;H>V-te+W;H--)ue(F,H-1)}else if(W>te)for(H=V-te;H>Q;H--)fe=H+te-1,ve=H+W-1,fe in F?F[ve]=F[fe]:ue(F,ve);for(H=0;H<W;H++)F[H+Q]=arguments[H+2];return k(F,V-te+W),X}})},12432:()=>{},25067:(h,E,o)=>{var d=o(93085),x=o(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,E,o)=>{var d=o(93085),x=o(10150),w=o(86298),A=o(18922),O=o(84120),k=o(76192),U=o(34770),_=o(16447),re=o(35744),ue=o(23236),ne=o(93096),ie=o(36770),J=x("JSON","stringify"),P=O(/./.exec),G=O("".charAt),L=O("".charCodeAt),C=O("".replace),F=O(1 .toString),V=/[\uD800-\uDFFF]/g,Q=/^[\uD800-\uDBFF]$/,Y=/^[\uDC00-\uDFFF]$/,W=!ie||k(function(){var fe=x("Symbol")();return J([fe])!="[null]"||J({a:fe})!="{}"||J(Object(fe))!="{}"}),te=k(function(){return J("\uDF06\uD834")!=='"\\udf06\\ud834"'||J("\uDEAD")!=='"\\udead"'}),X=function(fe,ve){var ee=ne(arguments),Z=ve;if(!(!re(ve)&&fe===void 0||ue(fe)))return U(ve)||(ve=function(z,ge){if(_(Z)&&(ge=A(Z,this,z,ge)),!ue(ge))return ge}),ee[1]=ve,w(J,null,ee)},H=function(fe,ve,ee){var Z=G(ee,ve-1),z=G(ee,ve+1);return P(Q,fe)&&!P(Y,z)||P(Y,fe)&&!P(Q,Z)?"\\u"+F(L(fe,0),16):fe};J&&d({target:"JSON",stat:!0,arity:3,forced:W||te},{stringify:function(ve,ee,Z){var z=ne(arguments),ge=w(W?X:J,null,z);return te&&typeof ge=="string"?C(ge,V,H):ge}})},68671:(h,E,o)=>{var d=o(98576),x=o(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,E,o)=>{var d=o(93085),x=o(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,E,o)=>{var d=o(93085),x=o(75370).entries;d({target:"Object",stat:!0},{entries:function(A){return x(A)}})},89189:(h,E,o)=>{var d=o(93085),x=o(76192),w=o(20101),A=o(5141).f,O=o(50069),k=x(function(){A(1)}),U=!O||k;d({target:"Object",stat:!0,forced:U,sham:!O},{getOwnPropertyDescriptor:function(re,ue){return A(w(re),ue)}})},62509:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(93011),A=o(20101),O=o(5141),k=o(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(_){for(var re=A(_),ue=O.f,ne=w(re),ie={},J=0,P,G;ne.length>J;)G=ue(re,P=ne[J++]),G!==void 0&&k(ie,P,G);return ie}})},17895:(h,E,o)=>{var d=o(93085),x=o(36770),w=o(76192),A=o(84750),O=o(71795),k=!x||w(function(){A.f(1)});d({target:"Object",stat:!0,forced:k},{getOwnPropertySymbols:function(_){var re=A.f;return re?re(O(_)):[]}})},19234:(h,E,o)=>{var d=o(93085),x=o(76192),w=o(71795),A=o(89341),O=o(4635),k=x(function(){A(1)});d({target:"Object",stat:!0,forced:k,sham:!O},{getPrototypeOf:function(_){return A(w(_))}})},92647:(h,E,o)=>{var d=o(93085),x=o(71795),w=o(57653),A=o(76192),O=A(function(){w(1)});d({target:"Object",stat:!0,forced:O},{keys:function(U){return w(x(U))}})},13222:(h,E,o)=>{var d=o(93085),x=o(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442);d({target:"Promise",stat:!0},{allSettled:function(_){var re=this,ue=A.f(re),ne=ue.resolve,ie=ue.reject,J=O(function(){var P=w(re.resolve),G=[],L=0,C=1;k(_,function(F){var V=L++,Q=!1;C++,x(P,re,F).then(function(Y){Q||(Q=!0,G[V]={status:"fulfilled",value:Y},--C||ne(G))},function(Y){Q||(Q=!0,G[V]={status:"rejected",reason:Y},--C||ne(G))})}),--C||ne(G)});return J.error&&ie(J.value),ue.promise}})},89701:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{all:function(re){var ue=this,ne=A.f(ue),ie=ne.resolve,J=ne.reject,P=O(function(){var G=w(ue.resolve),L=[],C=0,F=1;k(re,function(V){var Q=C++,Y=!1;F++,x(G,ue,V).then(function(W){Y||(Y=!0,L[Q]=W,--F||ie(L))},J)}),--F||ie(L)});return P.error&&J(P.value),ne.promise}})},78885:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(10150),O=o(99438),k=o(70892),U=o(33442),_="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,ie=A("AggregateError"),J=O.f(ne),P=J.resolve,G=J.reject,L=k(function(){var C=w(ne.resolve),F=[],V=0,Q=1,Y=!1;U(ue,function(W){var te=V++,X=!1;Q++,x(C,ne,W).then(function(H){X||Y||(Y=!0,P(H))},function(H){X||Y||(X=!0,F[te]=H,--Q||G(new ie(F,_)))})}),--Q||G(new ie(F,_))});return L.error&&G(L.value),J.promise}})},34025:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(30511).CONSTRUCTOR,A=o(15813),O=o(10150),k=o(16447),U=o(59362),_=A&&A.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&k(A)){var re=O("Promise").prototype.catch;_.catch!==re&&U(_,"catch",re,{unsafe:!0})}},60268:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(58189),A=o(98576),O=o(18922),k=o(59362),U=o(24469),_=o(11284),re=o(63656),ue=o(66235),ne=o(16447),ie=o(35744),J=o(46961),P=o(84743),G=o(67160).set,L=o(12950),C=o(63681),F=o(70892),V=o(6412),Q=o(73326),Y=o(15813),W=o(30511),te=o(99438),X="Promise",H=W.CONSTRUCTOR,fe=W.REJECTION_EVENT,ve=W.SUBCLASSING,ee=Q.getterFor(X),Z=Q.set,z=Y&&Y.prototype,ge=Y,Ee=z,je=A.TypeError,ke=A.document,it=A.process,et=te.f,at=et,Tt=!!(ke&&ke.createEvent&&A.dispatchEvent),St="unhandledrejection",Le="rejectionhandled",Oe=0,be=1,De=2,Ge=1,tt=2,Ze,bt,Et,Xt,zt=function($e){var yt;return ie($e)&&ne(yt=$e.then)?yt:!1},nt=function($e,yt){var Lt=yt.value,wt=yt.state==be,Ft=wt?$e.ok:$e.fail,pt=$e.resolve,vt=$e.reject,Pt=$e.domain,ot,Ve,ce;try{Ft?(wt||(yt.rejection===tt&&_e(yt),yt.rejection=Ge),Ft===!0?ot=Lt:(Pt&&Pt.enter(),ot=Ft(Lt),Pt&&(Pt.exit(),ce=!0)),ot===$e.promise?vt(je("Promise-chain cycle")):(Ve=zt(ot))?O(Ve,ot,pt,vt):pt(ot)):vt(Lt)}catch(xe){Pt&&!ce&&Pt.exit(),vt(xe)}},Xe=function($e,yt){$e.notified||($e.notified=!0,L(function(){for(var Lt=$e.reactions,wt;wt=Lt.get();)nt(wt,$e);$e.notified=!1,yt&&!$e.rejection&&Rt($e)}))},er=function($e,yt,Lt){var wt,Ft;Tt?(wt=ke.createEvent("Event"),wt.promise=yt,wt.reason=Lt,wt.initEvent($e,!1,!0),A.dispatchEvent(wt)):wt={promise:yt,reason:Lt},!fe&&(Ft=A["on"+$e])?Ft(wt):$e===St&&C("Unhandled promise rejection",Lt)},Rt=function($e){O(G,A,function(){var yt=$e.facade,Lt=$e.value,wt=Rr($e),Ft;if(wt&&(Ft=F(function(){w?it.emit("unhandledRejection",Lt,yt):er(St,yt,Lt)}),$e.rejection=w||Rr($e)?tt:Ge,Ft.error))throw Ft.value})},Rr=function($e){return $e.rejection!==Ge&&!$e.parent},_e=function($e){O(G,A,function(){var yt=$e.facade;w?it.emit("rejectionHandled",yt):er(Le,yt,$e.value)})},Mr=function($e,yt,Lt){return function(wt){$e(yt,wt,Lt)}},Ar=function($e,yt,Lt){$e.done||($e.done=!0,Lt&&($e=Lt),$e.value=yt,$e.state=De,Xe($e,!0))},en=function($e,yt,Lt){if(!$e.done){$e.done=!0,Lt&&($e=Lt);try{if($e.facade===yt)throw je("Promise can't be resolved itself");var wt=zt(yt);wt?L(function(){var Ft={done:!1};try{O(wt,yt,Mr(en,Ft,$e),Mr(Ar,Ft,$e))}catch(pt){Ar(Ft,pt,$e)}}):($e.value=yt,$e.state=be,Xe($e,!1))}catch(Ft){Ar({done:!1},Ft,$e)}}};if(H&&(ge=function(yt){J(this,Ee),ue(yt),O(Ze,this);var Lt=ee(this);try{yt(Mr(en,Lt),Mr(Ar,Lt))}catch(wt){Ar(Lt,wt)}},Ee=ge.prototype,Ze=function(yt){Z(this,{type:X,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:Oe,value:void 0})},Ze.prototype=k(Ee,"then",function(yt,Lt){var wt=ee(this),Ft=et(P(this,ge));return wt.parent=!0,Ft.ok=ne(yt)?yt:!0,Ft.fail=ne(Lt)&&Lt,Ft.domain=w?it.domain:void 0,wt.state==Oe?wt.reactions.add(Ft):L(function(){nt(Ft,wt)}),Ft.promise}),bt=function(){var $e=new Ze,yt=ee($e);this.promise=$e,this.resolve=Mr(en,yt),this.reject=Mr(Ar,yt)},te.f=et=function($e){return $e===ge||$e===Et?new bt($e):at($e)},!x&&ne(Y)&&z!==Object.prototype)){Xt=z.then,ve||k(z,"then",function(yt,Lt){var wt=this;return new ge(function(Ft,pt){O(Xt,wt,Ft,pt)}).then(yt,Lt)},{unsafe:!0});try{delete z.constructor}catch($e){}U&&U(z,Ee)}d({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:ge}),_(ge,X,!1,!0),re(X)},91868:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(15813),A=o(76192),O=o(10150),k=o(16447),U=o(84743),_=o(19126),re=o(59362),ue=w&&w.prototype,ne=!!w&&A(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(J){var P=U(this,O("Promise")),G=k(J);return this.then(G?function(L){return _(P,J()).then(function(){return L})}:J,G?function(L){return _(P,J()).then(function(){throw L})}:J)}}),!x&&k(w)){var ie=O("Promise").prototype.finally;ue.finally!==ie&&re(ue,"finally",ie,{unsafe:!0})}},59021:(h,E,o)=>{o(60268),o(89701),o(34025),o(67196),o(85873),o(22931)},67196:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{race:function(re){var ue=this,ne=A.f(ue),ie=ne.reject,J=O(function(){var P=w(ue.resolve);k(re,function(G){x(P,ue,G).then(ne.resolve,ie)})});return J.error&&ie(J.value),ne.promise}})},85873:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(99438),A=o(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:A},{reject:function(k){var U=w.f(this);return x(U.reject,void 0,k),U.promise}})},22931:(h,E,o)=>{"use strict";var d=o(93085),x=o(10150),w=o(85546),A=o(15813),O=o(30511).CONSTRUCTOR,k=o(19126),U=x("Promise"),_=w&&!O;d({target:"Promise",stat:!0,forced:w||O},{resolve:function(ue){return k(_&&this===U?A:this,ue)}})},71367:()=>{},39247:(h,E,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(9703),A=o(13209),O=o(44845),k=o(83519),U=x("".indexOf);d({target:"String",proto:!0,forced:!k("includes")},{includes:function(re){return!!~U(O(A(this)),O(w(re)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,E,o)=>{"use strict";var d=o(863).charAt,x=o(44845),w=o(73326),A=o(65297),O=o(87271),k="String Iterator",U=w.set,_=w.getterFor(k);A(String,"String",function(re){U(this,{type:k,string:x(re),index:0})},function(){var ue=_(this),ne=ue.string,ie=ue.index,J;return ie>=ne.length?O(void 0,!0):(J=d(ne,ie),ue.index+=J.length,O(J,!1))})},32991:(h,E,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(5141).f,A=o(8445),O=o(44845),k=o(9703),U=o(13209),_=o(83519),re=o(85546),ue=x("".startsWith),ne=x("".slice),ie=Math.min,J=_("startsWith"),P=!re&&!J&&!!function(){var G=w(String.prototype,"startsWith");return G&&!G.writable}();d({target:"String",proto:!0,forced:!P&&!J},{startsWith:function(L){var C=O(U(this));k(L);var F=A(ie(arguments.length>1?arguments[1]:void 0,C.length)),V=O(L);return ue?ue(C,V,F):ne(C,F,F+V.length)===V}})},19781:(h,E,o)=>{var d=o(48332);d("asyncIterator")},49351:(h,E,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(18922),A=o(84120),O=o(85546),k=o(50069),U=o(36770),_=o(76192),re=o(64500),ue=o(8902),ne=o(31138),ie=o(20101),J=o(40077),P=o(44845),G=o(90774),L=o(52853),C=o(57653),F=o(92092),V=o(24052),Q=o(84750),Y=o(5141),W=o(42760),te=o(11187),X=o(56007),H=o(59362),fe=o(98717),ve=o(69766),ee=o(14535),Z=o(42759),z=o(18182),ge=o(89207),Ee=o(48332),je=o(93407),ke=o(11284),it=o(73326),et=o(50454).forEach,at=ve("hidden"),Tt="Symbol",St="prototype",Le=it.set,Oe=it.getterFor(Tt),be=Object[St],De=x.Symbol,Ge=De&&De[St],tt=x.TypeError,Ze=x.QObject,bt=Y.f,Et=W.f,Xt=V.f,zt=X.f,nt=A([].push),Xe=fe("symbols"),er=fe("op-symbols"),Rt=fe("wks"),Rr=!Ze||!Ze[St]||!Ze[St].findChild,_e=k&&_(function(){return L(Et({},"a",{get:function(){return Et(this,"a",{value:7}).a}})).a!=7})?function(pt,vt,Pt){var ot=bt(be,vt);ot&&delete be[vt],Et(pt,vt,Pt),ot&&pt!==be&&Et(be,vt,ot)}:Et,Mr=function(pt,vt){var Pt=Xe[pt]=L(Ge);return Le(Pt,{type:Tt,tag:pt,description:vt}),k||(Pt.description=vt),Pt},Ar=function(vt,Pt,ot){vt===be&&Ar(er,Pt,ot),ne(vt);var Ve=J(Pt);return ne(ot),re(Xe,Ve)?(ot.enumerable?(re(vt,at)&&vt[at][Ve]&&(vt[at][Ve]=!1),ot=L(ot,{enumerable:G(0,!1)})):(re(vt,at)||Et(vt,at,G(1,{})),vt[at][Ve]=!0),_e(vt,Ve,ot)):Et(vt,Ve,ot)},en=function(vt,Pt){ne(vt);var ot=ie(Pt),Ve=C(ot).concat(Ft(ot));return et(Ve,function(ce){(!k||w(yt,ot,ce))&&Ar(vt,ce,ot[ce])}),vt},$e=function(vt,Pt){return Pt===void 0?L(vt):en(L(vt),Pt)},yt=function(vt){var Pt=J(vt),ot=w(zt,this,Pt);return this===be&&re(Xe,Pt)&&!re(er,Pt)?!1:ot||!re(this,Pt)||!re(Xe,Pt)||re(this,at)&&this[at][Pt]?ot:!0},Lt=function(vt,Pt){var ot=ie(vt),Ve=J(Pt);if(!(ot===be&&re(Xe,Ve)&&!re(er,Ve))){var ce=bt(ot,Ve);return ce&&re(Xe,Ve)&&!(re(ot,at)&&ot[at][Ve])&&(ce.enumerable=!0),ce}},wt=function(vt){var Pt=Xt(ie(vt)),ot=[];return et(Pt,function(Ve){!re(Xe,Ve)&&!re(ee,Ve)&&nt(ot,Ve)}),ot},Ft=function(pt){var vt=pt===be,Pt=Xt(vt?er:ie(pt)),ot=[];return et(Pt,function(Ve){re(Xe,Ve)&&(!vt||re(be,Ve))&&nt(ot,Xe[Ve])}),ot};U||(De=function(){if(ue(Ge,this))throw tt("Symbol is not a constructor");var vt=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Pt=Z(vt),ot=function(Ve){this===be&&w(ot,er,Ve),re(this,at)&&re(this[at],Pt)&&(this[at][Pt]=!1),_e(this,Pt,G(1,Ve))};return k&&Rr&&_e(be,Pt,{configurable:!0,set:ot}),Mr(Pt,vt)},Ge=De[St],H(Ge,"toString",function(){return Oe(this).tag}),H(De,"withoutSetter",function(pt){return Mr(Z(pt),pt)}),X.f=yt,W.f=Ar,te.f=en,Y.f=Lt,F.f=V.f=wt,Q.f=Ft,ge.f=function(pt){return Mr(z(pt),pt)},k&&(Et(Ge,"description",{configurable:!0,get:function(){return Oe(this).description}}),O||H(be,"propertyIsEnumerable",yt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:De}),et(C(Rt),function(pt){Ee(pt)}),d({target:Tt,stat:!0,forced:!U},{useSetter:function(){Rr=!0},useSimple:function(){Rr=!1}}),d({target:"Object",stat:!0,forced:!U,sham:!k},{create:$e,defineProperty:Ar,defineProperties:en,getOwnPropertyDescriptor:Lt}),d({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:wt}),je(),ke(De,Tt),ee[at]=!0},50492:()=>{},19148:(h,E,o)=>{var d=o(93085),x=o(10150),w=o(64500),A=o(44845),O=o(98717),k=o(20031),U=O("string-to-symbol-registry"),_=O("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{for:function(re){var ue=A(re);if(w(U,ue))return U[ue];var ne=x("Symbol")(ue);return U[ue]=ne,_[ne]=ue,ne}})},66681:(h,E,o)=>{var d=o(48332);d("hasInstance")},29594:(h,E,o)=>{var d=o(48332);d("isConcatSpreadable")},63665:(h,E,o)=>{var d=o(48332);d("iterator")},36187:(h,E,o)=>{o(49351),o(19148),o(15991),o(59704),o(17895)},15991:(h,E,o)=>{var d=o(93085),x=o(64500),w=o(23236),A=o(79288),O=o(98717),k=o(20031),U=O("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{keyFor:function(re){if(!w(re))throw TypeError(A(re)+" is not a symbol");if(x(U,re))return U[re]}})},11250:(h,E,o)=>{var d=o(48332);d("matchAll")},29017:(h,E,o)=>{var d=o(48332);d("match")},79786:(h,E,o)=>{var d=o(48332);d("replace")},90503:(h,E,o)=>{var d=o(48332);d("search")},16565:(h,E,o)=>{var d=o(48332);d("species")},69322:(h,E,o)=>{var d=o(48332);d("split")},13610:(h,E,o)=>{var d=o(48332),x=o(93407);d("toPrimitive"),x()},36886:(h,E,o)=>{var d=o(10150),x=o(48332),w=o(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,E,o)=>{var d=o(48332);d("unscopables")},10572:(h,E,o)=>{"use strict";var d=o(47636),x=o(98576),w=o(84120),A=o(35090),O=o(32861),k=o(34535),U=o(51057),_=o(35744),re=o(73326).enforce,ue=o(76192),ne=o(55278),ie=Object,J=Array.isArray,P=ie.isExtensible,G=ie.isFrozen,L=ie.isSealed,C=ie.freeze,F=ie.seal,V={},Q={},Y=!x.ActiveXObject&&"ActiveXObject"in x,W,te=function(ge){return function(){return ge(this,arguments.length?arguments[0]:void 0)}},X=k("WeakMap",te,U),H=X.prototype,fe=w(H.set),ve=function(){return d&&ue(function(){var ge=C([]);return fe(new X,ge,1),!G(ge)})};if(ne)if(Y){W=U.getConstructor(te,"WeakMap",!0),O.enable();var ee=w(H.delete),Z=w(H.has),z=w(H.get);A(H,{delete:function(ge){if(_(ge)&&!P(ge)){var Ee=re(this);return Ee.frozen||(Ee.frozen=new W),ee(this,ge)||Ee.frozen.delete(ge)}return ee(this,ge)},has:function(Ee){if(_(Ee)&&!P(Ee)){var je=re(this);return je.frozen||(je.frozen=new W),Z(this,Ee)||je.frozen.has(Ee)}return Z(this,Ee)},get:function(Ee){if(_(Ee)&&!P(Ee)){var je=re(this);return je.frozen||(je.frozen=new W),Z(this,Ee)?z(this,Ee):je.frozen.get(Ee)}return z(this,Ee)},set:function(Ee,je){if(_(Ee)&&!P(Ee)){var ke=re(this);ke.frozen||(ke.frozen=new W),Z(this,Ee)?fe(this,Ee,je):ke.frozen.set(Ee,je)}else fe(this,Ee,je);return this}})}else ve()&&A(H,{set:function(Ee,je){var ke;return J(Ee)&&(G(Ee)?ke=V:L(Ee)&&(ke=Q)),fe(this,Ee,je),ke==V&&C(Ee),ke==Q&&F(Ee),this}})},33983:(h,E,o)=>{o(10572)},12752:(h,E,o)=>{o(4242)},5363:(h,E,o)=>{o(25067)},14562:(h,E,o)=>{o(97884)},69355:(h,E,o)=>{o(78885)},25363:(h,E,o)=>{"use strict";var d=o(93085),x=o(99438),w=o(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(A){var O=x.f(this),k=w(A);return(k.error?O.reject:O.resolve)(k.value),O.promise}})},60177:(h,E,o)=>{var d=o(48332);d("asyncDispose")},9031:(h,E,o)=>{var d=o(48332);d("dispose")},96658:(h,E,o)=>{var d=o(48332);d("matcher")},54212:(h,E,o)=>{var d=o(48332);d("metadataKey")},71875:(h,E,o)=>{var d=o(48332);d("metadata")},18658:(h,E,o)=>{var d=o(48332);d("observable")},54592:(h,E,o)=>{var d=o(48332);d("patternMatch")},26680:(h,E,o)=>{var d=o(48332);d("replaceAll")},80162:(h,E,o)=>{o(98939);var d=o(17365),x=o(98576),w=o(4696),A=o(98711),O=o(47771),k=o(18182),U=k("toStringTag");for(var _ in d){var re=x[_],ue=re&&re.prototype;ue&&w(ue)!==U&&A(ue,U,_),O[_]=O.Array}},67054:(h,E,o)=>{"use strict";o(98939);var d=o(93085),x=o(98576),w=o(18922),A=o(84120),O=o(50069),k=o(58552),U=o(59362),_=o(35090),re=o(11284),ue=o(25695),ne=o(73326),ie=o(46961),J=o(16447),P=o(64500),G=o(8043),L=o(4696),C=o(31138),F=o(35744),V=o(44845),Q=o(52853),Y=o(90774),W=o(61669),te=o(78703),X=o(67822),H=o(18182),fe=o(6614),ve=H("iterator"),ee="URLSearchParams",Z=ee+"Iterator",z=ne.set,ge=ne.getterFor(ee),Ee=ne.getterFor(Z),je=Object.getOwnPropertyDescriptor,ke=function(Ve){if(!O)return x[Ve];var ce=je(x,Ve);return ce&&ce.value},it=ke("fetch"),et=ke("Request"),at=ke("Headers"),Tt=et&&et.prototype,St=at&&at.prototype,Le=x.RegExp,Oe=x.TypeError,be=x.decodeURIComponent,De=x.encodeURIComponent,Ge=A("".charAt),tt=A([].join),Ze=A([].push),bt=A("".replace),Et=A([].shift),Xt=A([].splice),zt=A("".split),nt=A("".slice),Xe=/\+/g,er=Array(4),Rt=function(Ve){return er[Ve-1]||(er[Ve-1]=Le("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},Rr=function(Ve){try{return be(Ve)}catch(ce){return Ve}},_e=function(Ve){var ce=bt(Ve,Xe," "),xe=4;try{return be(ce)}catch(Be){for(;xe;)ce=bt(ce,Rt(xe--),Rr);return ce}},Mr=/[!'()~]|%20/g,Ar={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},en=function(Ve){return Ar[Ve]},$e=function(Ve){return bt(De(Ve),Mr,en)},yt=ue(function(ce,xe){z(this,{type:Z,iterator:W(ge(ce).entries),kind:xe})},"Iterator",function(){var ce=Ee(this),xe=ce.kind,Be=ce.iterator.next(),Ke=Be.value;return Be.done||(Be.value=xe==="keys"?Ke.key:xe==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Lt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(F(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?Ge(Ve,0)==="?"?nt(Ve,1):Ve:V(Ve)))};Lt.prototype={type:ee,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ce=te(Ve),xe,Be,Ke,st,xt,kt,yr;if(ce)for(xe=W(Ve,ce),Be=xe.next;!(Ke=w(Be,xe)).done;){if(st=W(C(Ke.value)),xt=st.next,(kt=w(xt,st)).done||(yr=w(xt,st)).done||!w(xt,st).done)throw Oe("Expected sequence with length 2");Ze(this.entries,{key:V(kt.value),value:V(yr.value)})}else for(var Nt in Ve)P(Ve,Nt)&&Ze(this.entries,{key:Nt,value:V(Ve[Nt])})},parseQuery:function(Ve){if(Ve)for(var ce=zt(Ve,"&"),xe=0,Be,Ke;xe<ce.length;)Be=ce[xe++],Be.length&&(Ke=zt(Be,"="),Ze(this.entries,{key:_e(Et(Ke)),value:_e(tt(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ce=[],xe=0,Be;xe<Ve.length;)Be=Ve[xe++],Ze(ce,$e(Be.key)+"="+$e(Be.value));return tt(ce,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var wt=function(){ie(this,Ft);var ce=arguments.length>0?arguments[0]:void 0;z(this,new Lt(ce))},Ft=wt.prototype;if(_(Ft,{append:function(ce,xe){X(arguments.length,2);var Be=ge(this);Ze(Be.entries,{key:V(ce),value:V(xe)}),Be.updateURL()},delete:function(Ve){X(arguments.length,1);for(var ce=ge(this),xe=ce.entries,Be=V(Ve),Ke=0;Ke<xe.length;)xe[Ke].key===Be?Xt(xe,Ke,1):Ke++;ce.updateURL()},get:function(ce){X(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;Ke++)if(xe[Ke].key===Be)return xe[Ke].value;return null},getAll:function(ce){X(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=[],st=0;st<xe.length;st++)xe[st].key===Be&&Ze(Ke,xe[st].value);return Ke},has:function(ce){X(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;)if(xe[Ke++].key===Be)return!0;return!1},set:function(ce,xe){X(arguments.length,1);for(var Be=ge(this),Ke=Be.entries,st=!1,xt=V(ce),kt=V(xe),yr=0,Nt;yr<Ke.length;yr++)Nt=Ke[yr],Nt.key===xt&&(st?Xt(Ke,yr--,1):(st=!0,Nt.value=kt));st||Ze(Ke,{key:xt,value:kt}),Be.updateURL()},sort:function(){var ce=ge(this);fe(ce.entries,function(xe,Be){return xe.key>Be.key?1:-1}),ce.updateURL()},forEach:function(ce){for(var xe=ge(this).entries,Be=G(ce,arguments.length>1?arguments[1]:void 0),Ke=0,st;Ke<xe.length;)st=xe[Ke++],Be(st.value,st.key,this)},keys:function(){return new yt(this,"keys")},values:function(){return new yt(this,"values")},entries:function(){return new yt(this,"entries")}},{enumerable:!0}),U(Ft,ve,Ft.entries,{name:"entries"}),U(Ft,"toString",function(){return ge(this).serialize()},{enumerable:!0}),re(wt,ee),d({global:!0,constructor:!0,forced:!k},{URLSearchParams:wt}),!k&&J(at)){var pt=A(St.has),vt=A(St.set),Pt=function(Ve){if(F(Ve)){var ce=Ve.body,xe;if(L(ce)===ee)return xe=Ve.headers?new at(Ve.headers):new at,pt(xe,"content-type")||vt(xe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Q(Ve,{body:Y(0,V(ce)),headers:Y(0,xe)})}return Ve};if(J(it)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ce){return it(ce,arguments.length>1?Pt(arguments[1]):{})}}),J(et)){var ot=function(ce){return ie(this,Tt),new et(ce,arguments.length>1?Pt(arguments[1]):{})};Tt.constructor=ot,ot.prototype=Tt,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ot})}}h.exports={URLSearchParams:wt,getState:ge}},69336:(h,E,o)=>{o(67054)},53822:(h,E,o)=>{var d=o(52221);h.exports=d},21434:(h,E,o)=>{var d=o(75078);h.exports=d},51629:(h,E,o)=>{var d=o(77237);h.exports=d},46899:(h,E,o)=>{var d=o(60098);h.exports=d},27710:(h,E,o)=>{var d=o(65739);o(80162),h.exports=d},31585:(h,E,o)=>{var d=o(74030);h.exports=d},44877:(h,E,o)=>{var d=o(41484);h.exports=d},10140:(h,E,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),A=o(51629),O=Array.prototype,k={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var _=U.entries;return U===O||w(O,U)&&_===O.entries||x(k,d(U))?A:_}},55603:(h,E,o)=>{var d=o(53669);h.exports=d},76237:(h,E,o)=>{var d=o(37506);h.exports=d},31206:(h,E,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),A=o(46899),O=Array.prototype,k={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var _=U.forEach;return U===O||w(O,U)&&_===O.forEach||x(k,d(U))?A:_}},56515:(h,E,o)=>{var d=o(13173);h.exports=d},26174:(h,E,o)=>{var d=o(92604);h.exports=d},20057:(h,E,o)=>{var d=o(263);h.exports=d},87511:(h,E,o)=>{var d=o(80432);h.exports=d},24741:(h,E,o)=>{var d=o(77663);h.exports=d},8368:(h,E,o)=>{var d=o(45063);h.exports=d},342:(h,E,o)=>{var d=o(7769);h.exports=d},392:(h,E,o)=>{var d=o(96056);h.exports=d},28478:(h,E,o)=>{var d=o(99936);h.exports=d},4963:(h,E,o)=>{var d=o(23213);h.exports=d},21025:(h,E,o)=>{var d=o(38724);h.exports=d},27820:(h,E,o)=>{var d=o(63512);h.exports=d},58202:(h,E,o)=>{var d=o(2335);h.exports=d},74194:(h,E,o)=>{var d=o(60632);h.exports=d},32854:(h,E,o)=>{var d=o(81056);h.exports=d},60002:(h,E,o)=>{var d=o(12921);h.exports=d},28980:(h,E,o)=>{var d=o(8168);h.exports=d},45636:(h,E,o)=>{var d=o(38651);h.exports=d},66672:(h,E,o)=>{var d=o(33083);h.exports=d},46618:(h,E,o)=>{var d=o(93154);o(80162),h.exports=d},42285:(h,E,o)=>{var d=o(85008);o(80162),h.exports=d},58535:(h,E,o)=>{var d=o(994);o(80162),h.exports=d},16042:(h,E,o)=>{var d=o(30290);h.exports=d},72946:(h,E,o)=>{var d=o(32004);o(80162),h.exports=d},11235:(h,E,o)=>{var d=o(31293);o(80162),h.exports=d},32004:(h,E,o)=>{o(69336);var d=o(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var E=function(o){var d={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(X){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(X){return X&&DataView.prototype.isPrototypeOf(X)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A=ArrayBuffer.isView||function(X){return X&&w.indexOf(Object.prototype.toString.call(X))>-1};function O(X){if(typeof X!="string"&&(X=String(X)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(X))throw new TypeError("Invalid character in header field name");return X.toLowerCase()}function k(X){return typeof X!="string"&&(X=String(X)),X}function U(X){var H={next:function(){var fe=X.shift();return{done:fe===void 0,value:fe}}};return d.iterable&&(H[Symbol.iterator]=function(){return H}),H}function _(X){this.map={},X instanceof _?X.forEach(function(H,fe){this.append(fe,H)},this):Array.isArray(X)?X.forEach(function(H){this.append(H[0],H[1])},this):X&&Object.getOwnPropertyNames(X).forEach(function(H){this.append(H,X[H])},this)}_.prototype.append=function(X,H){X=O(X),H=k(H);var fe=this.map[X];this.map[X]=fe?fe+", "+H:H},_.prototype.delete=function(X){delete this.map[O(X)]},_.prototype.get=function(X){return X=O(X),this.has(X)?this.map[X]:null},_.prototype.has=function(X){return this.map.hasOwnProperty(O(X))},_.prototype.set=function(X,H){this.map[O(X)]=k(H)},_.prototype.forEach=function(X,H){for(var fe in this.map)this.map.hasOwnProperty(fe)&&X.call(H,this.map[fe],fe,this)},_.prototype.keys=function(){var X=[];return this.forEach(function(H,fe){X.push(fe)}),U(X)},_.prototype.values=function(){var X=[];return this.forEach(function(H){X.push(H)}),U(X)},_.prototype.entries=function(){var X=[];return this.forEach(function(H,fe){X.push([fe,H])}),U(X)},d.iterable&&(_.prototype[Symbol.iterator]=_.prototype.entries);function re(X){if(X.bodyUsed)return Promise.reject(new TypeError("Already read"));X.bodyUsed=!0}function ue(X){return new Promise(function(H,fe){X.onload=function(){H(X.result)},X.onerror=function(){fe(X.error)}})}function ne(X){var H=new FileReader,fe=ue(H);return H.readAsArrayBuffer(X),fe}function ie(X){var H=new FileReader,fe=ue(H);return H.readAsText(X),fe}function J(X){for(var H=new Uint8Array(X),fe=new Array(H.length),ve=0;ve<H.length;ve++)fe[ve]=String.fromCharCode(H[ve]);return fe.join("")}function P(X){if(X.slice)return X.slice(0);var H=new Uint8Array(X.byteLength);return H.set(new Uint8Array(X)),H.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(X){this._bodyInit=X,X?typeof X=="string"?this._bodyText=X:d.blob&&Blob.prototype.isPrototypeOf(X)?this._bodyBlob=X:d.formData&&FormData.prototype.isPrototypeOf(X)?this._bodyFormData=X:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)?this._bodyText=X.toString():d.arrayBuffer&&d.blob&&x(X)?(this._bodyArrayBuffer=P(X.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(X)||A(X))?this._bodyArrayBuffer=P(X):this._bodyText=X=Object.prototype.toString.call(X):this._bodyText="",this.headers.get("content-type")||(typeof X=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var X=re(this);if(X)return X;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?re(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var X=re(this);if(X)return X;if(this._bodyBlob)return ie(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(J(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(X){var H=X.toUpperCase();return L.indexOf(H)>-1?H:X}function F(X,H){H=H||{};var fe=H.body;if(X instanceof F){if(X.bodyUsed)throw new TypeError("Already read");this.url=X.url,this.credentials=X.credentials,H.headers||(this.headers=new _(X.headers)),this.method=X.method,this.mode=X.mode,this.signal=X.signal,!fe&&X._bodyInit!=null&&(fe=X._bodyInit,X.bodyUsed=!0)}else this.url=String(X);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new _(H.headers)),this.method=C(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function V(X){var H=new FormData;return X.trim().split("&").forEach(function(fe){if(fe){var ve=fe.split("="),ee=ve.shift().replace(/\+/g," "),Z=ve.join("=").replace(/\+/g," ");H.append(decodeURIComponent(ee),decodeURIComponent(Z))}}),H}function Q(X){var H=new _,fe=X.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(ve){var ee=ve.split(":"),Z=ee.shift().trim();if(Z){var z=ee.join(":").trim();H.append(Z,z)}}),H}G.call(F.prototype);function Y(X,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new _(H.headers),this.url=H.url||"",this._initBody(X)}G.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _(this.headers),url:this.url})},Y.error=function(){var X=new Y(null,{status:0,statusText:""});return X.type="error",X};var W=[301,302,303,307,308];Y.redirect=function(X,H){if(W.indexOf(H)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:H,headers:{location:X}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(X){o.DOMException=function(H,fe){this.message=H,this.name=fe;var ve=Error(H);this.stack=ve.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function te(X,H){return new Promise(function(fe,ve){var ee=new F(X,H);if(ee.signal&&ee.signal.aborted)return ve(new o.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function z(){Z.abort()}Z.onload=function(){var ge={status:Z.status,statusText:Z.statusText,headers:Q(Z.getAllResponseHeaders()||"")};ge.url="responseURL"in Z?Z.responseURL:ge.headers.get("X-Request-URL");var Ee="response"in Z?Z.response:Z.responseText;fe(new Y(Ee,ge))},Z.onerror=function(){ve(new TypeError("Network request failed"))},Z.ontimeout=function(){ve(new TypeError("Network request failed"))},Z.onabort=function(){ve(new o.DOMException("Aborted","AbortError"))},Z.open(ee.method,ee.url,!0),ee.credentials==="include"?Z.withCredentials=!0:ee.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&d.blob&&(Z.responseType="blob"),ee.headers.forEach(function(ge,Ee){Z.setRequestHeader(Ee,ge)}),ee.signal&&(ee.signal.addEventListener("abort",z),Z.onreadystatechange=function(){Z.readyState===4&&ee.signal.removeEventListener("abort",z)}),Z.send(typeof ee._bodyInit=="undefined"?null:ee._bodyInit)})}return te.polyfill=!0,h.fetch||(h.fetch=te,h.Headers=_,h.Request=F,h.Response=Y),o.Headers=_,o.Request=F,o.Response=Y,o.fetch=te,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},96279:function(h,E){var o=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=o.DOMException}return w.prototype=o,new w}();(function(w){var A=function(O){var k={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Z){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function U(Z){return Z&&DataView.prototype.isPrototypeOf(Z)}if(k.arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(Z){return Z&&_.indexOf(Object.prototype.toString.call(Z))>-1};function ue(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Z))throw new TypeError("Invalid character in header field name");return Z.toLowerCase()}function ne(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function ie(Z){var z={next:function(){var ge=Z.shift();return{done:ge===void 0,value:ge}}};return k.iterable&&(z[Symbol.iterator]=function(){return z}),z}function J(Z){this.map={},Z instanceof J?Z.forEach(function(z,ge){this.append(ge,z)},this):Array.isArray(Z)?Z.forEach(function(z){this.append(z[0],z[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(z){this.append(z,Z[z])},this)}J.prototype.append=function(Z,z){Z=ue(Z),z=ne(z);var ge=this.map[Z];this.map[Z]=ge?ge+", "+z:z},J.prototype.delete=function(Z){delete this.map[ue(Z)]},J.prototype.get=function(Z){return Z=ue(Z),this.has(Z)?this.map[Z]:null},J.prototype.has=function(Z){return this.map.hasOwnProperty(ue(Z))},J.prototype.set=function(Z,z){this.map[ue(Z)]=ne(z)},J.prototype.forEach=function(Z,z){for(var ge in this.map)this.map.hasOwnProperty(ge)&&Z.call(z,this.map[ge],ge,this)},J.prototype.keys=function(){var Z=[];return this.forEach(function(z,ge){Z.push(ge)}),ie(Z)},J.prototype.values=function(){var Z=[];return this.forEach(function(z){Z.push(z)}),ie(Z)},J.prototype.entries=function(){var Z=[];return this.forEach(function(z,ge){Z.push([ge,z])}),ie(Z)},k.iterable&&(J.prototype[Symbol.iterator]=J.prototype.entries);function P(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function G(Z){return new Promise(function(z,ge){Z.onload=function(){z(Z.result)},Z.onerror=function(){ge(Z.error)}})}function L(Z){var z=new FileReader,ge=G(z);return z.readAsArrayBuffer(Z),ge}function C(Z){var z=new FileReader,ge=G(z);return z.readAsText(Z),ge}function F(Z){for(var z=new Uint8Array(Z),ge=new Array(z.length),Ee=0;Ee<z.length;Ee++)ge[Ee]=String.fromCharCode(z[Ee]);return ge.join("")}function V(Z){if(Z.slice)return Z.slice(0);var z=new Uint8Array(Z.byteLength);return z.set(new Uint8Array(Z)),z.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(Z){this._bodyInit=Z,Z?typeof Z=="string"?this._bodyText=Z:k.blob&&Blob.prototype.isPrototypeOf(Z)?this._bodyBlob=Z:k.formData&&FormData.prototype.isPrototypeOf(Z)?this._bodyFormData=Z:k.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)?this._bodyText=Z.toString():k.arrayBuffer&&k.blob&&U(Z)?(this._bodyArrayBuffer=V(Z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Z)||re(Z))?this._bodyArrayBuffer=V(Z):this._bodyText=Z=Object.prototype.toString.call(Z):this._bodyText="",this.headers.get("content-type")||(typeof Z=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):k.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},k.blob&&(this.blob=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(F(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},k.formData&&(this.formData=function(){return this.text().then(X)}),this.json=function(){return this.text().then(JSON.parse)},this}var Y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(Z){var z=Z.toUpperCase();return Y.indexOf(z)>-1?z:Z}function te(Z,z){z=z||{};var ge=z.body;if(Z instanceof te){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,z.headers||(this.headers=new J(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!ge&&Z._bodyInit!=null&&(ge=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new J(z.headers)),this.method=W(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ge)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ge)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})};function X(Z){var z=new FormData;return Z.trim().split("&").forEach(function(ge){if(ge){var Ee=ge.split("="),je=Ee.shift().replace(/\+/g," "),ke=Ee.join("=").replace(/\+/g," ");z.append(decodeURIComponent(je),decodeURIComponent(ke))}}),z}function H(Z){var z=new J,ge=Z.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(Ee){var je=Ee.split(":"),ke=je.shift().trim();if(ke){var it=je.join(":").trim();z.append(ke,it)}}),z}Q.call(te.prototype);function fe(Z,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new J(z.headers),this.url=z.url||"",this._initBody(Z)}Q.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new J(this.headers),url:this.url})},fe.error=function(){var Z=new fe(null,{status:0,statusText:""});return Z.type="error",Z};var ve=[301,302,303,307,308];fe.redirect=function(Z,z){if(ve.indexOf(z)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:z,headers:{location:Z}})},O.DOMException=w.DOMException;try{new O.DOMException}catch(Z){O.DOMException=function(z,ge){this.message=z,this.name=ge;var Ee=Error(z);this.stack=Ee.stack},O.DOMException.prototype=Object.create(Error.prototype),O.DOMException.prototype.constructor=O.DOMException}function ee(Z,z){return new Promise(function(ge,Ee){var je=new te(Z,z);if(je.signal&&je.signal.aborted)return Ee(new O.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function it(){ke.abort()}ke.onload=function(){var et={status:ke.status,statusText:ke.statusText,headers:H(ke.getAllResponseHeaders()||"")};et.url="responseURL"in ke?ke.responseURL:et.headers.get("X-Request-URL");var at="response"in ke?ke.response:ke.responseText;ge(new fe(at,et))},ke.onerror=function(){Ee(new TypeError("Network request failed"))},ke.ontimeout=function(){Ee(new TypeError("Network request failed"))},ke.onabort=function(){Ee(new O.DOMException("Aborted","AbortError"))},ke.open(je.method,je.url,!0),je.credentials==="include"?ke.withCredentials=!0:je.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&k.blob&&(ke.responseType="blob"),je.headers.forEach(function(et,at){ke.setRequestHeader(at,et)}),je.signal&&(je.signal.addEventListener("abort",it),ke.onreadystatechange=function(){ke.readyState===4&&je.signal.removeEventListener("abort",it)}),ke.send(typeof je._bodyInit=="undefined"?null:je._bodyInit)})}return ee.polyfill=!0,w.fetch||(w.fetch=ee,w.Headers=J,w.Request=te,w.Response=fe),O.Headers=J,O.Request=te,O.Response=fe,O.fetch=ee,Object.defineProperty(O,"__esModule",{value:!0}),O}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;E=x.fetch,E.default=x.fetch,E.fetch=x.fetch,E.Headers=x.Headers,E.Request=x.Request,E.Response=x.Response,h.exports=E},45957:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
42
+ `,""]);const k=O},73792:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=o(78991),k=o.n(O),U=new URL(o(17735),o.b),_=new URL(o(56089),o.b),re=new URL(o(46050),o.b),ue=new URL(o(71090),o.b),ne=new URL(o(96192),o.b),ie=A()(x()),J=k()(U),P=k()(_),G=k()(re),L=k()(ue),C=k()(ne);ie.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+J+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+G+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+L+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
43
43
  `,""]);const F=ie},59062:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.push([h.id,`.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 .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-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;z-index:0}.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}
44
44
  `,""]);const k=O},32024:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
45
- `,""]);const k=O},78991:h=>{"use strict";h.exports=function(E,o){return o||(o={}),E&&(E=String(E.__esModule?E.default:E),/^['"].*['"]$/.test(E)&&(E=E.slice(1,-1)),o.hash&&(E+=o.hash),/["'() \t\n]|(%20)/.test(E)||o.needQuotes?'"'.concat(E.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):E)}},77668:(h,E,o)=>{"use strict";o.r(E),o.d(E,{Console:()=>Mx,ConsoleComponent:()=>bg});var d={};o.r(d),o.d(d,{JsonPatchError:()=>Er,_areEquals:()=>Ja,applyOperation:()=>ha,applyPatch:()=>Pi,applyReducer:()=>Ka,deepClone:()=>ld,getValueByPointer:()=>Po,validate:()=>Io,validator:()=>Ya});var x={};o.r(x),o.d(x,{compare:()=>Is,generate:()=>Ps,observe:()=>gf,unobserve:()=>vf});var w={};o.r(w),o.d(w,{cookie:()=>f,header:()=>l,path:()=>t,query:()=>i});var A=o(49086),O=o(25575),k=o(24463),U=o(84870),Z=o(79494),re=o(48145),ue=o(11807),ne=o(45055),ie=o(49800),Y=o(57829),P=o(92876);function $(e){return $=typeof Y=="function"&&typeof P=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Y=="function"&&r.constructor===Y&&r!==Y.prototype?"symbol":typeof r},$(e)}var D=o(92903);function C(e,r){if($(e)!=="object"||e===null)return e;var n=e[D];if(n!==void 0){var a=n.call(e,r||"default");if($(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function F(e){var r=C(e,"string");return $(r)==="symbol"?r:String(r)}function V(e,r,n){return r=F(r),r in e?ie(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function X(e,r){var n=O(e);if(k){var a=k(e);r&&(a=U(a).call(a,function(s){return Z(e,s).enumerable})),n.push.apply(n,a)}return n}function K(e){for(var r=1;r<arguments.length;r++){var n,a,s=arguments[r]!=null?arguments[r]:{};r%2?re(n=X(Object(s),!0)).call(n,function(c){V(e,c,s[c])}):ue?ne(e,ue(s)):re(a=X(Object(s))).call(a,function(c){ie(e,c,Z(s,c))})}return e}var W=o(45932),te=o.n(W),J=o(51661),H=o.n(J),fe=o(883),he=o(5490),_=o(72010),Q=o(72383),z=o(50557);function ge(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Ee(e,r){var n;if(!!e){if(typeof e=="string")return ge(e,r);var a=Q(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return z(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ge(e,r)}}function je(e,r){var n=typeof Y!="undefined"&&he(e)||e["@@iterator"];if(!n){if(_(e)||(n=Ee(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=n.call(e)},n:function(){var y=n.next();return c=y.done,y},e:function(y){p=!0,m=y},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function ke(e){if(_(e))return e}function it(e,r){var n=e==null?null:typeof Y!="undefined"&&he(e)||e["@@iterator"];if(n!=null){var a,s,c,p,m=[],v=!0,y=!1;try{if(c=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(a=c.call(n)).done)&&(m.push(a.value),m.length!==r);v=!0);}catch(b){y=!0,s=b}finally{try{if(!v&&n.return!=null&&(p=n.return(),Object(p)!==p))return}finally{if(y)throw s}}return m}}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e,r){return ke(e)||it(e,r)||Ee(e,r)||et()}var Tt=o(64772);function St(e,r,n,a,s,c,p){try{var m=e[c](p),v=m.value}catch(y){n(y);return}m.done?r(v):Tt.resolve(v).then(a,s)}function Le(e){return function(){var r=this,n=arguments;return new Tt(function(a,s){var c=e.apply(r,n);function p(v){St(c,a,s,p,m,"next",v)}function m(v){St(c,a,s,p,m,"throw",v)}p(void 0)})}}var Oe=o(99732),be=o.n(Oe),De=o(82985),Ge=o.n(De),tt=o(42126),Ze=o.n(tt),bt=o(48621),Et=o.n(bt),Xt=o(85337),zt=o.n(Xt),nt=o(14903),Xe=o.n(nt),er=o(2921),Rt=o.n(er),Rr=o(40192),_e=o.n(Rr),Mr=o(31175),Ar=o.n(Mr),en=o(40453),$e=o.n(en),yt=o(43616),Lt=o(37794),wt=o.n(Lt);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ft(e){return typeof e=="undefined"||e===null}function dt(e){return typeof e=="object"&&e!==null}function vt(e){return Array.isArray(e)?e:Ft(e)?[]:[e]}function Pt(e,r){var n,a,s,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)s=c[n],e[s]=r[s];return e}function ot(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function Ve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ce=Ft,xe=dt,Be=vt,Ke=ot,st=Ve,xt=Pt,kt={isNothing:ce,isObject:xe,toArray:Be,repeat:Ke,isNegativeZero:st,extend:xt};function yr(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
45
+ `,""]);const k=O},78991:h=>{"use strict";h.exports=function(E,o){return o||(o={}),E&&(E=String(E.__esModule?E.default:E),/^['"].*['"]$/.test(E)&&(E=E.slice(1,-1)),o.hash&&(E+=o.hash),/["'() \t\n]|(%20)/.test(E)||o.needQuotes?'"'.concat(E.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):E)}},77668:(h,E,o)=>{"use strict";o.r(E),o.d(E,{Console:()=>Lx,ConsoleComponent:()=>xg});var d={};o.r(d),o.d(d,{JsonPatchError:()=>Er,_areEquals:()=>Ja,applyOperation:()=>ha,applyPatch:()=>Pi,applyReducer:()=>Ka,deepClone:()=>ld,getValueByPointer:()=>Po,validate:()=>Io,validator:()=>Ya});var x={};o.r(x),o.d(x,{compare:()=>Is,generate:()=>Ps,observe:()=>gf,unobserve:()=>vf});var w={};o.r(w),o.d(w,{cookie:()=>f,header:()=>l,path:()=>t,query:()=>i});var A=o(49086),O=o(25575),k=o(24463),U=o(84870),_=o(79494),re=o(48145),ue=o(11807),ne=o(45055),ie=o(49800),J=o(57829),P=o(92876);function G(e){return G=typeof J=="function"&&typeof P=="symbol"?function(r){return typeof r}:function(r){return r&&typeof J=="function"&&r.constructor===J&&r!==J.prototype?"symbol":typeof r},G(e)}var L=o(92903);function C(e,r){if(G(e)!=="object"||e===null)return e;var n=e[L];if(n!==void 0){var a=n.call(e,r||"default");if(G(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function F(e){var r=C(e,"string");return G(r)==="symbol"?r:String(r)}function V(e,r,n){return r=F(r),r in e?ie(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Q(e,r){var n=O(e);if(k){var a=k(e);r&&(a=U(a).call(a,function(s){return _(e,s).enumerable})),n.push.apply(n,a)}return n}function Y(e){for(var r=1;r<arguments.length;r++){var n,a,s=arguments[r]!=null?arguments[r]:{};r%2?re(n=Q(Object(s),!0)).call(n,function(c){V(e,c,s[c])}):ue?ne(e,ue(s)):re(a=Q(Object(s))).call(a,function(c){ie(e,c,_(s,c))})}return e}var W=o(45932),te=o.n(W),X=o(51661),H=o.n(X),fe=o(883),ve=o(5490),ee=o(72010),Z=o(72383),z=o(50557);function ge(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Ee(e,r){var n;if(!!e){if(typeof e=="string")return ge(e,r);var a=Z(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return z(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ge(e,r)}}function je(e,r){var n=typeof J!="undefined"&&ve(e)||e["@@iterator"];if(!n){if(ee(e)||(n=Ee(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=n.call(e)},n:function(){var y=n.next();return c=y.done,y},e:function(y){p=!0,m=y},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function ke(e){if(ee(e))return e}function it(e,r){var n=e==null?null:typeof J!="undefined"&&ve(e)||e["@@iterator"];if(n!=null){var a,s,c,p,m=[],v=!0,y=!1;try{if(c=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(a=c.call(n)).done)&&(m.push(a.value),m.length!==r);v=!0);}catch(b){y=!0,s=b}finally{try{if(!v&&n.return!=null&&(p=n.return(),Object(p)!==p))return}finally{if(y)throw s}}return m}}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e,r){return ke(e)||it(e,r)||Ee(e,r)||et()}var Tt=o(64772);function St(e,r,n,a,s,c,p){try{var m=e[c](p),v=m.value}catch(y){n(y);return}m.done?r(v):Tt.resolve(v).then(a,s)}function Le(e){return function(){var r=this,n=arguments;return new Tt(function(a,s){var c=e.apply(r,n);function p(v){St(c,a,s,p,m,"next",v)}function m(v){St(c,a,s,p,m,"throw",v)}p(void 0)})}}var Oe=o(99732),be=o.n(Oe),De=o(82985),Ge=o.n(De),tt=o(42126),Ze=o.n(tt),bt=o(48621),Et=o.n(bt),Xt=o(85337),zt=o.n(Xt),nt=o(14903),Xe=o.n(nt),er=o(2921),Rt=o.n(er),Rr=o(40192),_e=o.n(Rr),Mr=o(31175),Ar=o.n(Mr),en=o(40453),$e=o.n(en),yt=o(43616),Lt=o(37794),wt=o.n(Lt);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ft(e){return typeof e=="undefined"||e===null}function pt(e){return typeof e=="object"&&e!==null}function vt(e){return Array.isArray(e)?e:Ft(e)?[]:[e]}function Pt(e,r){var n,a,s,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)s=c[n],e[s]=r[s];return e}function ot(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function Ve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ce=Ft,xe=pt,Be=vt,Ke=ot,st=Ve,xt=Pt,kt={isNothing:ce,isObject:xe,toArray:Be,repeat:Ke,isNegativeZero:st,extend:xt};function yr(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
48
48
 
49
49
  `+e.mark.snippet),a+" "+n):a}function Nt(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Nt.prototype=Object.create(Error.prototype),Nt.prototype.constructor=Nt,Nt.prototype.toString=function(r){return this.name+": "+yr(this,r)};var Yt=Nt;function zn(e,r,n,a,s){var c="",p="",m=Math.floor(s/2)-1;return a-r>m&&(c=" ... ",r=a-m+c.length),n-a>m&&(p=" ...",n=a+m-p.length),{str:c+e.slice(r,n).replace(/\t/g,"\u2192")+p,pos:a-r+c.length}}function Ur(e,r){return kt.repeat(" ",r-e.length)+e}function Kr(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],s=[],c,p=-1;c=n.exec(e.buffer);)s.push(c.index),a.push(c.index+c[0].length),e.position<=c.index&&p<0&&(p=a.length-2);p<0&&(p=a.length-1);var m="",v,y,b=Math.min(e.line+r.linesAfter,s.length).toString().length,I=r.maxLength-(r.indent+b+3);for(v=1;v<=r.linesBefore&&!(p-v<0);v++)y=zn(e.buffer,a[p-v],s[p-v],e.position-(a[p]-a[p-v]),I),m=kt.repeat(" ",r.indent)+Ur((e.line-v+1).toString(),b)+" | "+y.str+`
50
50
  `+m;for(y=zn(e.buffer,a[p],s[p],e.position,I),m+=kt.repeat(" ",r.indent)+Ur((e.line+1).toString(),b)+" | "+y.str+`
51
51
  `,m+=kt.repeat("-",r.indent+b+3+y.pos)+`^
52
52
  `,v=1;v<=r.linesAfter&&!(p+v>=s.length);v++)y=zn(e.buffer,a[p+v],s[p+v],e.position-(a[p]-a[p+v]),I),m+=kt.repeat(" ",r.indent)+Ur((e.line+v+1).toString(),b)+" | "+y.str+`
53
- `;return m.replace(/\n$/,"")}var vi=Kr,tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],gi=["scalar","sequence","mapping"];function mi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function rn(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(tn.indexOf(n)===-1)throw new Yt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=mi(r.styleAliases||null),gi.indexOf(this.kind)===-1)throw new Yt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xr=rn;function Gn(e,r){var n=[];return e[r].forEach(function(a){var s=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(s=p)}),n[s]=a}),n}function Ui(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function Wi(e){return this.extend(e)}Wi.prototype.extend=function(r){var n=[],a=[];if(r instanceof xr)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new Yt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof xr))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new Yt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new Yt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof xr))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Wi.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=Gn(s,"implicit"),s.compiledExplicit=Gn(s,"explicit"),s.compiledTypeMap=Ui(s.compiledImplicit,s.compiledExplicit),s};var gn=Wi,un=new xr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),mn=new xr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),yn=new xr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),On=new gn({explicit:[un,mn,yn]});function lo(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function $n(){return null}function fn(e){return e===null}var Cr=new xr("tag:yaml.org,2002:null",{kind:"scalar",resolve:lo,construct:$n,predicate:fn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yi(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function kn(e){return e==="true"||e==="True"||e==="TRUE"}function Ta(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var uo=new xr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yi,construct:kn,predicate:Ta,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function vr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lt(e){return 48<=e&&e<=55}function bi(e){return 48<=e&&e<=57}function na(e){if(e===null)return!1;var r=e.length,n=0,a=!1,s;if(!r)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===r)return!0;if(s=e[++n],s==="b"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!vr(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!lt(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;n<r;n++)if(s=e[n],s!=="_"){if(!bi(e.charCodeAt(n)))return!1;a=!0}return!(!a||s==="_")}function Rn(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function tr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!kt.isNegativeZero(e)}var ti=new xr("tag:yaml.org,2002:int",{kind:"scalar",resolve:na,construct:Rn,predicate:tr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ia=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Pa(e){return!(e===null||!ia.test(e)||e[e.length-1]==="_")}function B(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var se=/^[-+]?[0-9]+e/;function Me(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(kt.isNegativeZero(e))return"-0.0";return n=e.toString(10),se.test(n)?n.replace("e",".e"):n}function We(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||kt.isNegativeZero(e))}var It=new xr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pa,construct:B,predicate:We,represent:Me,defaultStyle:"lowercase"}),Vt=On.extend({implicit:[Cr,uo,ti,It]}),ir=Vt,ut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Tn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qo(e){return e===null?!1:ut.exec(e)!==null||Tn.exec(e)!==null}function _o(e){var r,n,a,s,c,p,m,v=0,y=null,b,I,R;if(r=ut.exec(e),r===null&&(r=Tn.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(n,a,s));if(c=+r[4],p=+r[5],m=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),R=new Date(Date.UTC(n,a,s,c,p,m,v)),y&&R.setTime(R.getTime()-y),R}function ri(e){return e.toISOString()}var al=new xr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qo,construct:_o,instanceOf:Date,represent:ri});function Cu(e){return e==="<<"||e===null}var Ia=new xr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Cu}),fo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
53
+ `;return m.replace(/\n$/,"")}var vi=Kr,tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],gi=["scalar","sequence","mapping"];function mi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function rn(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(tn.indexOf(n)===-1)throw new Yt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=mi(r.styleAliases||null),gi.indexOf(this.kind)===-1)throw new Yt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xr=rn;function Gn(e,r){var n=[];return e[r].forEach(function(a){var s=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(s=p)}),n[s]=a}),n}function Ui(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function Wi(e){return this.extend(e)}Wi.prototype.extend=function(r){var n=[],a=[];if(r instanceof xr)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new Yt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof xr))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new Yt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new Yt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof xr))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Wi.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=Gn(s,"implicit"),s.compiledExplicit=Gn(s,"explicit"),s.compiledTypeMap=Ui(s.compiledImplicit,s.compiledExplicit),s};var gn=Wi,un=new xr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),mn=new xr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),yn=new xr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),On=new gn({explicit:[un,mn,yn]});function lo(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function $n(){return null}function fn(e){return e===null}var Cr=new xr("tag:yaml.org,2002:null",{kind:"scalar",resolve:lo,construct:$n,predicate:fn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yi(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function kn(e){return e==="true"||e==="True"||e==="TRUE"}function Ta(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var uo=new xr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yi,construct:kn,predicate:Ta,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function vr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lt(e){return 48<=e&&e<=55}function bi(e){return 48<=e&&e<=57}function na(e){if(e===null)return!1;var r=e.length,n=0,a=!1,s;if(!r)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===r)return!0;if(s=e[++n],s==="b"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!vr(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!lt(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;n<r;n++)if(s=e[n],s!=="_"){if(!bi(e.charCodeAt(n)))return!1;a=!0}return!(!a||s==="_")}function Rn(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function tr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!kt.isNegativeZero(e)}var ti=new xr("tag:yaml.org,2002:int",{kind:"scalar",resolve:na,construct:Rn,predicate:tr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ia=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Pa(e){return!(e===null||!ia.test(e)||e[e.length-1]==="_")}function N(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var se=/^[-+]?[0-9]+e/;function Me(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(kt.isNegativeZero(e))return"-0.0";return n=e.toString(10),se.test(n)?n.replace("e",".e"):n}function We(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||kt.isNegativeZero(e))}var It=new xr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pa,construct:N,predicate:We,represent:Me,defaultStyle:"lowercase"}),Vt=On.extend({implicit:[Cr,uo,ti,It]}),ir=Vt,ut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Tn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qo(e){return e===null?!1:ut.exec(e)!==null||Tn.exec(e)!==null}function _o(e){var r,n,a,s,c,p,m,v=0,y=null,b,I,D;if(r=ut.exec(e),r===null&&(r=Tn.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(n,a,s));if(c=+r[4],p=+r[5],m=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),D=new Date(Date.UTC(n,a,s,c,p,m,v)),y&&D.setTime(D.getTime()-y),D}function ri(e){return e.toISOString()}var al=new xr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qo,construct:_o,instanceOf:Date,represent:ri});function Cu(e){return e==="<<"||e===null}var Ia=new xr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Cu}),fo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
54
54
  \r`;function Eu(e){if(e===null)return!1;var r,n,a=0,s=e.length,c=fo;for(n=0;n<s;n++)if(r=c.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function ol(e){var r,n,a=e.replace(/[\r\n=]/g,""),s=a.length,c=fo,p=0,m=[];for(r=0;r<s;r++)r%4===0&&r&&(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)),p=p<<6|c.indexOf(a.charAt(r));return n=s%4*6,n===0?(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)):n===18?(m.push(p>>10&255),m.push(p>>2&255)):n===12&&m.push(p>>4&255),new Uint8Array(m)}function Ou(e){var r="",n=0,a,s,c=e.length,p=fo;for(a=0;a<c;a++)a%3===0&&a&&(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]),n=(n<<8)+e[a];return s=c%3,s===0?(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]):s===2?(r+=p[n>>10&63],r+=p[n>>4&63],r+=p[n<<2&63],r+=p[64]):s===1&&(r+=p[n>>2&63],r+=p[n<<4&63],r+=p[64],r+=p[64]),r}function Tu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var sl=new xr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Eu,construct:ol,predicate:Tu,represent:Ou}),Pu=Object.prototype.hasOwnProperty,Tc=Object.prototype.toString;function Pc(e){if(e===null)return!0;var r=[],n,a,s,c,p,m=e;for(n=0,a=m.length;n<a;n+=1){if(s=m[n],p=!1,Tc.call(s)!=="[object Object]")return!1;for(c in s)if(Pu.call(s,c))if(!p)p=!0;else return!1;if(!p)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Iu(e){return e!==null?e:[]}var ni=new xr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pc,construct:Iu}),Ic=Object.prototype.toString;function Fc(e){if(e===null)return!0;var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1){if(a=p[r],Ic.call(a)!=="[object Object]"||(s=Object.keys(a),s.length!==1))return!1;c[r]=[s[0],a[s[0]]]}return!0}function es(e){if(e===null)return[];var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1)a=p[r],s=Object.keys(a),c[r]=[s[0],a[s[0]]];return c}var Fa=new xr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Fc,construct:es}),kc=Object.prototype.hasOwnProperty;function Rc(e){if(e===null)return!0;var r,n=e;for(r in n)if(kc.call(n,r)&&n[r]!==null)return!1;return!0}function Mc(e){return e!==null?e:{}}var Fu=new xr("tag:yaml.org,2002:set",{kind:"mapping",resolve:Rc,construct:Mc}),co=ir.extend({implicit:[al,Ia],explicit:[sl,ni,Fa,Fu]}),xi=Object.prototype.hasOwnProperty,ts=1,ll=2,ul=3,aa=4,ka=1,fl=2,cl=3,ku=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rs=/[\x85\u2028\u2029]/,Lc=/[,\[\]\{\}]/,dl=/^(?:!|!!|![a-z\-]+!)$/i,Mn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ru(e){return Object.prototype.toString.call(e)}function ii(e){return e===10||e===13}function Si(e){return e===9||e===32}function cn(e){return e===9||e===32||e===10||e===13}function Pn(e){return e===44||e===91||e===93||e===123||e===125}function pl(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function wi(e){return e===120?2:e===117?4:e===85?8:0}function ns(e){return 48<=e&&e<=57?e-48:-1}function is(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
55
55
  `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Ra(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Mu=new Array(256),Lu=new Array(256),Ma=0;Ma<256;Ma++)Mu[Ma]=is(Ma)?1:0,Lu[Ma]=is(Ma);function Nc(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||co,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function hl(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=vi(n),new Yt(r,n)}function mt(e,r){throw hl(e,r)}function as(e,r){e.onWarning&&e.onWarning.call(null,hl(e,r))}var Nu={YAML:function(r,n,a){var s,c,p;r.version!==null&&mt(r,"duplication of %YAML directive"),a.length!==1&&mt(r,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&mt(r,"ill-formed argument of the YAML directive"),c=parseInt(s[1],10),p=parseInt(s[2],10),c!==1&&mt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=p<2,p!==1&&p!==2&&as(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var s,c;a.length!==2&&mt(r,"TAG directive accepts exactly two arguments"),s=a[0],c=a[1],dl.test(s)||mt(r,"ill-formed tag handle (first argument) of the TAG directive"),xi.call(r.tagMap,s)&&mt(r,'there is a previously declared suffix for "'+s+'" tag handle'),Mn.test(c)||mt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch(p){mt(r,"tag prefix is malformed: "+c)}r.tagMap[s]=c}};function Hi(e,r,n,a){var s,c,p,m;if(r<n){if(m=e.input.slice(r,n),a)for(s=0,c=m.length;s<c;s+=1)p=m.charCodeAt(s),p===9||32<=p&&p<=1114111||mt(e,"expected valid JSON character");else ku.test(m)&&mt(e,"the stream contains non-printable characters");e.result+=m}}function Du(e,r,n,a){var s,c,p,m;for(kt.isObject(n)||mt(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),p=0,m=s.length;p<m;p+=1)c=s[p],xi.call(r,c)||(r[c]=n[c],a[c]=!0)}function oa(e,r,n,a,s,c,p,m,v){var y,b;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),y=0,b=s.length;y<b;y+=1)Array.isArray(s[y])&&mt(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Ru(s[y])==="[object Object]"&&(s[y]="[object Object]");if(typeof s=="object"&&Ru(s)==="[object Object]"&&(s="[object Object]"),s=String(s),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(y=0,b=c.length;y<b;y+=1)Du(e,r,c[y],n);else Du(e,r,c,n);else!e.json&&!xi.call(n,s)&&xi.call(r,s)&&(e.line=p||e.line,e.lineStart=m||e.lineStart,e.position=v||e.position,mt(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(r,s,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[s]=c,delete n[s];return r}function vl(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):mt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Tr(e,r,n){for(var a=0,s=e.input.charCodeAt(e.position);s!==0;){for(;Si(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(r&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(ii(s))for(vl(e),s=e.input.charCodeAt(e.position),a++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&as(e,"deficient indentation"),a}function sa(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||cn(n)))}function zi(e,r){r===1?e.result+=" ":r>1&&(e.result+=kt.repeat(`
56
- `,r-1))}function Dc(e,r,n){var a,s,c,p,m,v,y,b,I=e.kind,R=e.result,N;if(N=e.input.charCodeAt(e.position),cn(N)||Pn(N)||N===35||N===38||N===42||N===33||N===124||N===62||N===39||N===34||N===37||N===64||N===96||(N===63||N===45)&&(s=e.input.charCodeAt(e.position+1),cn(s)||n&&Pn(s)))return!1;for(e.kind="scalar",e.result="",c=p=e.position,m=!1;N!==0;){if(N===58){if(s=e.input.charCodeAt(e.position+1),cn(s)||n&&Pn(s))break}else if(N===35){if(a=e.input.charCodeAt(e.position-1),cn(a))break}else{if(e.position===e.lineStart&&sa(e)||n&&Pn(N))break;if(ii(N))if(v=e.line,y=e.lineStart,b=e.lineIndent,Tr(e,!1,-1),e.lineIndent>=r){m=!0,N=e.input.charCodeAt(e.position);continue}else{e.position=p,e.line=v,e.lineStart=y,e.lineIndent=b;break}}m&&(Hi(e,c,p,!1),zi(e,e.line-v),c=p=e.position,m=!1),Si(N)||(p=e.position+1),N=e.input.charCodeAt(++e.position)}return Hi(e,c,p,!1),e.result?!0:(e.kind=I,e.result=R,!1)}function Bc(e,r){var n,a,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Hi(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,s=e.position;else return!0;else ii(n)?(Hi(e,a,s,!0),zi(e,Tr(e,!1,r)),a=s=e.position):e.position===e.lineStart&&sa(e)?mt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);mt(e,"unexpected end of the stream within a single quoted scalar")}function jc(e,r){var n,a,s,c,p,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return Hi(e,n,e.position,!0),e.position++,!0;if(m===92){if(Hi(e,n,e.position,!0),m=e.input.charCodeAt(++e.position),ii(m))Tr(e,!1,r);else if(m<256&&Mu[m])e.result+=Lu[m],e.position++;else if((p=wi(m))>0){for(s=p,c=0;s>0;s--)m=e.input.charCodeAt(++e.position),(p=pl(m))>=0?c=(c<<4)+p:mt(e,"expected hexadecimal character");e.result+=Ra(c),e.position++}else mt(e,"unknown escape sequence");n=a=e.position}else ii(m)?(Hi(e,n,a,!0),zi(e,Tr(e,!1,r)),n=a=e.position):e.position===e.lineStart&&sa(e)?mt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}mt(e,"unexpected end of the stream within a double quoted scalar")}function po(e,r){var n=!0,a,s,c,p=e.tag,m,v=e.anchor,y,b,I,R,N,G=Object.create(null),ee,q,oe,ae;if(ae=e.input.charCodeAt(e.position),ae===91)b=93,N=!1,m=[];else if(ae===123)b=125,N=!0,m={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),ae=e.input.charCodeAt(++e.position);ae!==0;){if(Tr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===b)return e.position++,e.tag=p,e.anchor=v,e.kind=N?"mapping":"sequence",e.result=m,!0;n?ae===44&&mt(e,"expected the node content, but found ','"):mt(e,"missed comma between flow collection entries"),q=ee=oe=null,I=R=!1,ae===63&&(y=e.input.charCodeAt(e.position+1),cn(y)&&(I=R=!0,e.position++,Tr(e,!0,r))),a=e.line,s=e.lineStart,c=e.position,La(e,r,ts,!1,!0),q=e.tag,ee=e.result,Tr(e,!0,r),ae=e.input.charCodeAt(e.position),(R||e.line===a)&&ae===58&&(I=!0,ae=e.input.charCodeAt(++e.position),Tr(e,!0,r),La(e,r,ts,!1,!0),oe=e.result),N?oa(e,m,G,q,ee,oe,a,s,c):I?m.push(oa(e,null,G,q,ee,oe,a,s,c)):m.push(ee),Tr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===44?(n=!0,ae=e.input.charCodeAt(++e.position)):n=!1}mt(e,"unexpected end of the stream within a flow collection")}function Wr(e,r){var n,a,s=ka,c=!1,p=!1,m=r,v=0,y=!1,b,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)ka===s?s=I===43?cl:fl:mt(e,"repeat of a chomping mode identifier");else if((b=ns(I))>=0)b===0?mt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?mt(e,"repeat of an indentation width identifier"):(m=r+b-1,p=!0);else break;if(Si(I)){do I=e.input.charCodeAt(++e.position);while(Si(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ii(I)&&I!==0)}for(;I!==0;){for(vl(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!p||e.lineIndent<m)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!p&&e.lineIndent>m&&(m=e.lineIndent),ii(I)){v++;continue}if(e.lineIndent<m){s===cl?e.result+=kt.repeat(`
56
+ `,r-1))}function Dc(e,r,n){var a,s,c,p,m,v,y,b,I=e.kind,D=e.result,B;if(B=e.input.charCodeAt(e.position),cn(B)||Pn(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(s=e.input.charCodeAt(e.position+1),cn(s)||n&&Pn(s)))return!1;for(e.kind="scalar",e.result="",c=p=e.position,m=!1;B!==0;){if(B===58){if(s=e.input.charCodeAt(e.position+1),cn(s)||n&&Pn(s))break}else if(B===35){if(a=e.input.charCodeAt(e.position-1),cn(a))break}else{if(e.position===e.lineStart&&sa(e)||n&&Pn(B))break;if(ii(B))if(v=e.line,y=e.lineStart,b=e.lineIndent,Tr(e,!1,-1),e.lineIndent>=r){m=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=p,e.line=v,e.lineStart=y,e.lineIndent=b;break}}m&&(Hi(e,c,p,!1),zi(e,e.line-v),c=p=e.position,m=!1),Si(B)||(p=e.position+1),B=e.input.charCodeAt(++e.position)}return Hi(e,c,p,!1),e.result?!0:(e.kind=I,e.result=D,!1)}function Bc(e,r){var n,a,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Hi(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,s=e.position;else return!0;else ii(n)?(Hi(e,a,s,!0),zi(e,Tr(e,!1,r)),a=s=e.position):e.position===e.lineStart&&sa(e)?mt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);mt(e,"unexpected end of the stream within a single quoted scalar")}function jc(e,r){var n,a,s,c,p,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return Hi(e,n,e.position,!0),e.position++,!0;if(m===92){if(Hi(e,n,e.position,!0),m=e.input.charCodeAt(++e.position),ii(m))Tr(e,!1,r);else if(m<256&&Mu[m])e.result+=Lu[m],e.position++;else if((p=wi(m))>0){for(s=p,c=0;s>0;s--)m=e.input.charCodeAt(++e.position),(p=pl(m))>=0?c=(c<<4)+p:mt(e,"expected hexadecimal character");e.result+=Ra(c),e.position++}else mt(e,"unknown escape sequence");n=a=e.position}else ii(m)?(Hi(e,n,a,!0),zi(e,Tr(e,!1,r)),n=a=e.position):e.position===e.lineStart&&sa(e)?mt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}mt(e,"unexpected end of the stream within a double quoted scalar")}function po(e,r){var n=!0,a,s,c,p=e.tag,m,v=e.anchor,y,b,I,D,B,$=Object.create(null),K,q,oe,ae;if(ae=e.input.charCodeAt(e.position),ae===91)b=93,B=!1,m=[];else if(ae===123)b=125,B=!0,m={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),ae=e.input.charCodeAt(++e.position);ae!==0;){if(Tr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===b)return e.position++,e.tag=p,e.anchor=v,e.kind=B?"mapping":"sequence",e.result=m,!0;n?ae===44&&mt(e,"expected the node content, but found ','"):mt(e,"missed comma between flow collection entries"),q=K=oe=null,I=D=!1,ae===63&&(y=e.input.charCodeAt(e.position+1),cn(y)&&(I=D=!0,e.position++,Tr(e,!0,r))),a=e.line,s=e.lineStart,c=e.position,La(e,r,ts,!1,!0),q=e.tag,K=e.result,Tr(e,!0,r),ae=e.input.charCodeAt(e.position),(D||e.line===a)&&ae===58&&(I=!0,ae=e.input.charCodeAt(++e.position),Tr(e,!0,r),La(e,r,ts,!1,!0),oe=e.result),B?oa(e,m,$,q,K,oe,a,s,c):I?m.push(oa(e,null,$,q,K,oe,a,s,c)):m.push(K),Tr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===44?(n=!0,ae=e.input.charCodeAt(++e.position)):n=!1}mt(e,"unexpected end of the stream within a flow collection")}function Wr(e,r){var n,a,s=ka,c=!1,p=!1,m=r,v=0,y=!1,b,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)ka===s?s=I===43?cl:fl:mt(e,"repeat of a chomping mode identifier");else if((b=ns(I))>=0)b===0?mt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?mt(e,"repeat of an indentation width identifier"):(m=r+b-1,p=!0);else break;if(Si(I)){do I=e.input.charCodeAt(++e.position);while(Si(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ii(I)&&I!==0)}for(;I!==0;){for(vl(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!p||e.lineIndent<m)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!p&&e.lineIndent>m&&(m=e.lineIndent),ii(I)){v++;continue}if(e.lineIndent<m){s===cl?e.result+=kt.repeat(`
57
57
  `,c?1+v:v):s===ka&&c&&(e.result+=`
58
58
  `);break}for(a?Si(I)?(y=!0,e.result+=kt.repeat(`
59
59
  `,c?1+v:v)):y?(y=!1,e.result+=kt.repeat(`
60
60
  `,v+1)):v===0?c&&(e.result+=" "):e.result+=kt.repeat(`
61
61
  `,v):e.result+=kt.repeat(`
62
- `,c?1+v:v),c=!0,p=!0,v=0,n=e.position;!ii(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Hi(e,n,e.position,!1)}return!0}function Bu(e,r){var n,a=e.tag,s=e.anchor,c=[],p,m=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),v=e.input.charCodeAt(e.position);v!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,mt(e,"tab characters must not be used in indentation")),!(v!==45||(p=e.input.charCodeAt(e.position+1),!cn(p))));){if(m=!0,e.position++,Tr(e,!0,-1)&&e.lineIndent<=r){c.push(null),v=e.input.charCodeAt(e.position);continue}if(n=e.line,La(e,r,ul,!1,!0),c.push(e.result),Tr(e,!0,-1),v=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&v!==0)mt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return m?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=c,!0):!1}function ju(e,r,n){var a,s,c,p,m,v,y=e.tag,b=e.anchor,I={},R=Object.create(null),N=null,G=null,ee=null,q=!1,oe=!1,ae;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ae=e.input.charCodeAt(e.position);ae!==0;){if(!q&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,mt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),c=e.line,(ae===63||ae===58)&&cn(a))ae===63?(q&&(oa(e,I,R,N,G,null,p,m,v),N=G=ee=null),oe=!0,q=!0,s=!0):q?(q=!1,s=!0):mt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ae=a;else{if(p=e.line,m=e.lineStart,v=e.position,!La(e,n,ll,!1,!0))break;if(e.line===c){for(ae=e.input.charCodeAt(e.position);Si(ae);)ae=e.input.charCodeAt(++e.position);if(ae===58)ae=e.input.charCodeAt(++e.position),cn(ae)||mt(e,"a whitespace character is expected after the key-value separator within a block mapping"),q&&(oa(e,I,R,N,G,null,p,m,v),N=G=ee=null),oe=!0,q=!1,s=!1,N=e.tag,G=e.result;else if(oe)mt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=y,e.anchor=b,!0}else if(oe)mt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=y,e.anchor=b,!0}if((e.line===c||e.lineIndent>r)&&(q&&(p=e.line,m=e.lineStart,v=e.position),La(e,r,aa,!0,s)&&(q?G=e.result:ee=e.result),q||(oa(e,I,R,N,G,ee,p,m,v),N=G=ee=null),Tr(e,!0,-1),ae=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&ae!==0)mt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return q&&oa(e,I,R,N,G,null,p,m,v),oe&&(e.tag=y,e.anchor=b,e.kind="mapping",e.result=I),oe}function ho(e){var r,n=!1,a=!1,s,c,p;if(p=e.input.charCodeAt(e.position),p!==33)return!1;if(e.tag!==null&&mt(e,"duplication of a tag property"),p=e.input.charCodeAt(++e.position),p===60?(n=!0,p=e.input.charCodeAt(++e.position)):p===33?(a=!0,s="!!",p=e.input.charCodeAt(++e.position)):s="!",r=e.position,n){do p=e.input.charCodeAt(++e.position);while(p!==0&&p!==62);e.position<e.length?(c=e.input.slice(r,e.position),p=e.input.charCodeAt(++e.position)):mt(e,"unexpected end of the stream within a verbatim tag")}else{for(;p!==0&&!cn(p);)p===33&&(a?mt(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(r-1,e.position+1),dl.test(s)||mt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),p=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),Lc.test(c)&&mt(e,"tag suffix cannot contain flow indicator characters")}c&&!Mn.test(c)&&mt(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch(m){mt(e,"tag name is malformed: "+c)}return n?e.tag=c:xi.call(e.tagMap,s)?e.tag=e.tagMap[s]+c:s==="!"?e.tag="!"+c:s==="!!"?e.tag="tag:yaml.org,2002:"+c:mt(e,'undeclared tag handle "'+s+'"'),!0}function Vc(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&mt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!cn(n)&&!Pn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&mt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Vu(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!cn(a)&&!Pn(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&mt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),xi.call(e.anchorMap,n)||mt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Tr(e,!0,-1),!0}function La(e,r,n,a,s){var c,p,m,v=1,y=!1,b=!1,I,R,N,G,ee,q;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=p=m=aa===n||ul===n,a&&Tr(e,!0,-1)&&(y=!0,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)),v===1)for(;ho(e)||Vc(e);)Tr(e,!0,-1)?(y=!0,m=c,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)):m=!1;if(m&&(m=y||s),(v===1||aa===n)&&(ts===n||ll===n?ee=r:ee=r+1,q=e.position-e.lineStart,v===1?m&&(Bu(e,q)||ju(e,q,ee))||po(e,ee)?b=!0:(p&&Wr(e,ee)||Bc(e,ee)||jc(e,ee)?b=!0:Vu(e)?(b=!0,(e.tag!==null||e.anchor!==null)&&mt(e,"alias node should not have any properties")):Dc(e,ee,ts===n)&&(b=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v===0&&(b=m&&Bu(e,q))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&mt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,R=e.implicitTypes.length;I<R;I+=1)if(G=e.implicitTypes[I],G.resolve(e.result)){e.result=G.construct(e.result),e.tag=G.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(xi.call(e.typeMap[e.kind||"fallback"],e.tag))G=e.typeMap[e.kind||"fallback"][e.tag];else for(G=null,N=e.typeMap.multi[e.kind||"fallback"],I=0,R=N.length;I<R;I+=1)if(e.tag.slice(0,N[I].tag.length)===N[I].tag){G=N[I];break}G||mt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&G.kind!==e.kind&&mt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+G.kind+'", not "'+e.kind+'"'),G.resolve(e.result,e.tag)?(e.result=G.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):mt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||b}function gl(e){var r=e.position,n,a,s,c=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(Tr(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){for(c=!0,p=e.input.charCodeAt(++e.position),n=e.position;p!==0&&!cn(p);)p=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),s=[],a.length<1&&mt(e,"directive name must not be less than one character in length");p!==0;){for(;Si(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!ii(p));break}if(ii(p))break;for(n=e.position;p!==0&&!cn(p);)p=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}p!==0&&vl(e),xi.call(Nu,a)?Nu[a](e,a,s):as(e,'unknown document directive "'+a+'"')}if(Tr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Tr(e,!0,-1)):c&&mt(e,"directives end mark is expected"),La(e,e.lineIndent-1,aa,!1,!0),Tr(e,!0,-1),e.checkLineBreaks&&rs.test(e.input.slice(r,e.position))&&as(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&sa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Tr(e,!0,-1));return}if(e.position<e.length-1)mt(e,"end of the stream or a document separator is expected");else return}function ml(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
62
+ `,c?1+v:v),c=!0,p=!0,v=0,n=e.position;!ii(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Hi(e,n,e.position,!1)}return!0}function Bu(e,r){var n,a=e.tag,s=e.anchor,c=[],p,m=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),v=e.input.charCodeAt(e.position);v!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,mt(e,"tab characters must not be used in indentation")),!(v!==45||(p=e.input.charCodeAt(e.position+1),!cn(p))));){if(m=!0,e.position++,Tr(e,!0,-1)&&e.lineIndent<=r){c.push(null),v=e.input.charCodeAt(e.position);continue}if(n=e.line,La(e,r,ul,!1,!0),c.push(e.result),Tr(e,!0,-1),v=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&v!==0)mt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return m?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=c,!0):!1}function ju(e,r,n){var a,s,c,p,m,v,y=e.tag,b=e.anchor,I={},D=Object.create(null),B=null,$=null,K=null,q=!1,oe=!1,ae;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ae=e.input.charCodeAt(e.position);ae!==0;){if(!q&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,mt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),c=e.line,(ae===63||ae===58)&&cn(a))ae===63?(q&&(oa(e,I,D,B,$,null,p,m,v),B=$=K=null),oe=!0,q=!0,s=!0):q?(q=!1,s=!0):mt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ae=a;else{if(p=e.line,m=e.lineStart,v=e.position,!La(e,n,ll,!1,!0))break;if(e.line===c){for(ae=e.input.charCodeAt(e.position);Si(ae);)ae=e.input.charCodeAt(++e.position);if(ae===58)ae=e.input.charCodeAt(++e.position),cn(ae)||mt(e,"a whitespace character is expected after the key-value separator within a block mapping"),q&&(oa(e,I,D,B,$,null,p,m,v),B=$=K=null),oe=!0,q=!1,s=!1,B=e.tag,$=e.result;else if(oe)mt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=y,e.anchor=b,!0}else if(oe)mt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=y,e.anchor=b,!0}if((e.line===c||e.lineIndent>r)&&(q&&(p=e.line,m=e.lineStart,v=e.position),La(e,r,aa,!0,s)&&(q?$=e.result:K=e.result),q||(oa(e,I,D,B,$,K,p,m,v),B=$=K=null),Tr(e,!0,-1),ae=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&ae!==0)mt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return q&&oa(e,I,D,B,$,null,p,m,v),oe&&(e.tag=y,e.anchor=b,e.kind="mapping",e.result=I),oe}function ho(e){var r,n=!1,a=!1,s,c,p;if(p=e.input.charCodeAt(e.position),p!==33)return!1;if(e.tag!==null&&mt(e,"duplication of a tag property"),p=e.input.charCodeAt(++e.position),p===60?(n=!0,p=e.input.charCodeAt(++e.position)):p===33?(a=!0,s="!!",p=e.input.charCodeAt(++e.position)):s="!",r=e.position,n){do p=e.input.charCodeAt(++e.position);while(p!==0&&p!==62);e.position<e.length?(c=e.input.slice(r,e.position),p=e.input.charCodeAt(++e.position)):mt(e,"unexpected end of the stream within a verbatim tag")}else{for(;p!==0&&!cn(p);)p===33&&(a?mt(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(r-1,e.position+1),dl.test(s)||mt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),p=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),Lc.test(c)&&mt(e,"tag suffix cannot contain flow indicator characters")}c&&!Mn.test(c)&&mt(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch(m){mt(e,"tag name is malformed: "+c)}return n?e.tag=c:xi.call(e.tagMap,s)?e.tag=e.tagMap[s]+c:s==="!"?e.tag="!"+c:s==="!!"?e.tag="tag:yaml.org,2002:"+c:mt(e,'undeclared tag handle "'+s+'"'),!0}function Vc(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&mt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!cn(n)&&!Pn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&mt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Vu(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!cn(a)&&!Pn(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&mt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),xi.call(e.anchorMap,n)||mt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Tr(e,!0,-1),!0}function La(e,r,n,a,s){var c,p,m,v=1,y=!1,b=!1,I,D,B,$,K,q;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=p=m=aa===n||ul===n,a&&Tr(e,!0,-1)&&(y=!0,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)),v===1)for(;ho(e)||Vc(e);)Tr(e,!0,-1)?(y=!0,m=c,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)):m=!1;if(m&&(m=y||s),(v===1||aa===n)&&(ts===n||ll===n?K=r:K=r+1,q=e.position-e.lineStart,v===1?m&&(Bu(e,q)||ju(e,q,K))||po(e,K)?b=!0:(p&&Wr(e,K)||Bc(e,K)||jc(e,K)?b=!0:Vu(e)?(b=!0,(e.tag!==null||e.anchor!==null)&&mt(e,"alias node should not have any properties")):Dc(e,K,ts===n)&&(b=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v===0&&(b=m&&Bu(e,q))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&mt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,D=e.implicitTypes.length;I<D;I+=1)if($=e.implicitTypes[I],$.resolve(e.result)){e.result=$.construct(e.result),e.tag=$.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(xi.call(e.typeMap[e.kind||"fallback"],e.tag))$=e.typeMap[e.kind||"fallback"][e.tag];else for($=null,B=e.typeMap.multi[e.kind||"fallback"],I=0,D=B.length;I<D;I+=1)if(e.tag.slice(0,B[I].tag.length)===B[I].tag){$=B[I];break}$||mt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&$.kind!==e.kind&&mt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+$.kind+'", not "'+e.kind+'"'),$.resolve(e.result,e.tag)?(e.result=$.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):mt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||b}function gl(e){var r=e.position,n,a,s,c=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(Tr(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){for(c=!0,p=e.input.charCodeAt(++e.position),n=e.position;p!==0&&!cn(p);)p=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),s=[],a.length<1&&mt(e,"directive name must not be less than one character in length");p!==0;){for(;Si(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!ii(p));break}if(ii(p))break;for(n=e.position;p!==0&&!cn(p);)p=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}p!==0&&vl(e),xi.call(Nu,a)?Nu[a](e,a,s):as(e,'unknown document directive "'+a+'"')}if(Tr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Tr(e,!0,-1)):c&&mt(e,"directives end mark is expected"),La(e,e.lineIndent-1,aa,!1,!0),Tr(e,!0,-1),e.checkLineBreaks&&rs.test(e.input.slice(r,e.position))&&as(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&sa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Tr(e,!0,-1));return}if(e.position<e.length-1)mt(e,"end of the stream or a document separator is expected");else return}function ml(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
63
63
  `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Nc(e,r),a=e.indexOf("\0");for(a!==-1&&(n.position=a,mt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)gl(n);return n.documents}function Uc(e,r,n){r!==null&&typeof r=="object"&&typeof n=="undefined"&&(n=r,r=null);var a=ml(e,n);if(typeof r!="function")return a;for(var s=0,c=a.length;s<c;s+=1)r(a[s])}function Wc(e,r){var n=ml(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new Yt("expected a single document in the stream, but found more")}}var Uu=Uc,Wu=Wc,Hu={loadAll:Uu,load:Wu},Na=Object.prototype.toString,ai=Object.prototype.hasOwnProperty,Da=65279,yl=9,Ba=10,oi=13,la=32,bl=33,Hc=34,os=35,zc=37,zu=38,xl=39,ja=42,Kn=44,Gu=45,vo=58,Gc=61,$c=62,Kc=63,$u=64,Sl=91,Va=93,Ku=96,wl=123,Al=124,go=125,Yr={};Yr[0]="\\0",Yr[7]="\\a",Yr[8]="\\b",Yr[9]="\\t",Yr[10]="\\n",Yr[11]="\\v",Yr[12]="\\f",Yr[13]="\\r",Yr[27]="\\e",Yr[34]='\\"',Yr[92]="\\\\",Yr[133]="\\N",Yr[160]="\\_",Yr[8232]="\\L",Yr[8233]="\\P";var ss=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Yn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Yu(e,r){var n,a,s,c,p,m,v;if(r===null)return{};for(n={},a=Object.keys(r),s=0,c=a.length;s<c;s+=1)p=a[s],m=String(r[p]),p.slice(0,2)==="!!"&&(p="tag:yaml.org,2002:"+p.slice(2)),v=e.compiledTypeMap.fallback[p],v&&ai.call(v.styleAliases,m)&&(m=v.styleAliases[m]),n[p]=m;return n}function Cl(e){var r,n,a;if(r=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else if(e<=4294967295)n="U",a=8;else throw new Yt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+kt.repeat("0",a-r.length)+r}var El=1,Ua=2;function Ju(e){this.schema=e.schema||co,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=kt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Yu(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ua:El,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ls(e,r){for(var n=kt.repeat(" ",r),a=0,s=-1,c="",p,m=e.length;a<m;)s=e.indexOf(`
64
64
  `,a),s===-1?(p=e.slice(a),a=m):(p=e.slice(a,s+1),a=s+1),p.length&&p!==`
65
65
  `&&(c+=n),c+=p;return c}function Ol(e,r){return`
66
- `+kt.repeat(" ",e.indent*r)}function Yc(e,r){var n,a,s;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(s=e.implicitTypes[n],s.resolve(r))return!0;return!1}function us(e){return e===la||e===yl}function Jn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Da||65536<=e&&e<=1114111}function ua(e){return Jn(e)&&e!==Da&&e!==oi&&e!==Ba}function fa(e,r,n){var a=ua(e),s=a&&!us(e);return(n?a:a&&e!==Kn&&e!==Sl&&e!==Va&&e!==wl&&e!==go)&&e!==os&&!(r===vo&&!s)||ua(r)&&!us(r)&&e===os||r===vo&&s}function Tl(e){return Jn(e)&&e!==Da&&!us(e)&&e!==Gu&&e!==Kc&&e!==vo&&e!==Kn&&e!==Sl&&e!==Va&&e!==wl&&e!==go&&e!==os&&e!==zu&&e!==ja&&e!==bl&&e!==Al&&e!==Gc&&e!==$c&&e!==xl&&e!==Hc&&e!==zc&&e!==$u&&e!==Ku}function Pl(e){return!us(e)&&e!==vo}function Wa(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function fs(e){var r=/^\n* /;return r.test(e)}var Gi=1,Ai=2,nn=3,Ci=4,In=5;function cs(e,r,n,a,s,c,p,m){var v,y=0,b=null,I=!1,R=!1,N=a!==-1,G=-1,ee=Tl(Wa(e,0))&&Pl(Wa(e,e.length-1));if(r||p)for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=Wa(e,v),!Jn(y))return In;ee=ee&&fa(y,b,m),b=y}else{for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=Wa(e,v),y===Ba)I=!0,N&&(R=R||v-G-1>a&&e[G+1]!==" ",G=v);else if(!Jn(y))return In;ee=ee&&fa(y,b,m),b=y}R=R||N&&v-G-1>a&&e[G+1]!==" "}return!I&&!R?ee&&!p&&!s(e)?Gi:c===Ua?In:Ai:n>9&&fs(e)?In:p?c===Ua?In:Ai:R?Ci:nn}function Jc(e,r,n,a,s){e.dump=function(){if(r.length===0)return e.quotingType===Ua?'""':"''";if(!e.noCompatMode&&(ss.indexOf(r)!==-1||Yn.test(r)))return e.quotingType===Ua?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,n),p=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),m=a||e.flowLevel>-1&&n>=e.flowLevel;function v(y){return Yc(e,y)}switch(cs(r,m,e.indent,p,v,e.quotingType,e.forceQuotes&&!a,s)){case Gi:return r;case Ai:return"'"+r.replace(/'/g,"''")+"'";case nn:return"|"+Il(r,e.indent)+Ha(ls(r,c));case Ci:return">"+Il(r,e.indent)+Ha(ls(Xu(r,p),c));case In:return'"'+ps(r)+'"';default:throw new Yt("impossible error: invalid scalar style")}}()}function Il(e,r){var n=fs(e)?String(r):"",a=e[e.length-1]===`
66
+ `+kt.repeat(" ",e.indent*r)}function Yc(e,r){var n,a,s;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(s=e.implicitTypes[n],s.resolve(r))return!0;return!1}function us(e){return e===la||e===yl}function Jn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Da||65536<=e&&e<=1114111}function ua(e){return Jn(e)&&e!==Da&&e!==oi&&e!==Ba}function fa(e,r,n){var a=ua(e),s=a&&!us(e);return(n?a:a&&e!==Kn&&e!==Sl&&e!==Va&&e!==wl&&e!==go)&&e!==os&&!(r===vo&&!s)||ua(r)&&!us(r)&&e===os||r===vo&&s}function Tl(e){return Jn(e)&&e!==Da&&!us(e)&&e!==Gu&&e!==Kc&&e!==vo&&e!==Kn&&e!==Sl&&e!==Va&&e!==wl&&e!==go&&e!==os&&e!==zu&&e!==ja&&e!==bl&&e!==Al&&e!==Gc&&e!==$c&&e!==xl&&e!==Hc&&e!==zc&&e!==$u&&e!==Ku}function Pl(e){return!us(e)&&e!==vo}function Wa(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function fs(e){var r=/^\n* /;return r.test(e)}var Gi=1,Ai=2,nn=3,Ci=4,In=5;function cs(e,r,n,a,s,c,p,m){var v,y=0,b=null,I=!1,D=!1,B=a!==-1,$=-1,K=Tl(Wa(e,0))&&Pl(Wa(e,e.length-1));if(r||p)for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=Wa(e,v),!Jn(y))return In;K=K&&fa(y,b,m),b=y}else{for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=Wa(e,v),y===Ba)I=!0,B&&(D=D||v-$-1>a&&e[$+1]!==" ",$=v);else if(!Jn(y))return In;K=K&&fa(y,b,m),b=y}D=D||B&&v-$-1>a&&e[$+1]!==" "}return!I&&!D?K&&!p&&!s(e)?Gi:c===Ua?In:Ai:n>9&&fs(e)?In:p?c===Ua?In:Ai:D?Ci:nn}function Jc(e,r,n,a,s){e.dump=function(){if(r.length===0)return e.quotingType===Ua?'""':"''";if(!e.noCompatMode&&(ss.indexOf(r)!==-1||Yn.test(r)))return e.quotingType===Ua?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,n),p=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),m=a||e.flowLevel>-1&&n>=e.flowLevel;function v(y){return Yc(e,y)}switch(cs(r,m,e.indent,p,v,e.quotingType,e.forceQuotes&&!a,s)){case Gi:return r;case Ai:return"'"+r.replace(/'/g,"''")+"'";case nn:return"|"+Il(r,e.indent)+Ha(ls(r,c));case Ci:return">"+Il(r,e.indent)+Ha(ls(Xu(r,p),c));case In:return'"'+ps(r)+'"';default:throw new Yt("impossible error: invalid scalar style")}}()}function Il(e,r){var n=fs(e)?String(r):"",a=e[e.length-1]===`
67
67
  `,s=a&&(e[e.length-2]===`
68
68
  `||e===`
69
69
  `),c=s?"+":a?"":"-";return n+c+`
@@ -74,23 +74,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
74
74
  `:"")+ds(v,r),s=c}return a}function ds(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,a,s=0,c,p=0,m=0,v="";a=n.exec(e);)m=a.index,m-s>r&&(c=p>s?p:m,v+=`
75
75
  `+e.slice(s,c),s=c+1),p=m;return v+=`
76
76
  `,e.length-s>r&&p>s?v+=e.slice(s,p)+`
77
- `+e.slice(p+1):v+=e.slice(s),v.slice(1)}function ps(e){for(var r="",n=0,a,s=0;s<e.length;n>=65536?s+=2:s++)n=Wa(e,s),a=Yr[n],!a&&Jn(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=a||Cl(n);return r}function Xc(e,r,n){var a="",s=e.tag,c,p,m;for(c=0,p=n.length;c<p;c+=1)m=n[c],e.replacer&&(m=e.replacer.call(n,String(c),m)),(bn(e,r,m,!1,!1)||typeof m=="undefined"&&bn(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function hs(e,r,n,a){var s="",c=e.tag,p,m,v;for(p=0,m=n.length;p<m;p+=1)v=n[p],e.replacer&&(v=e.replacer.call(n,String(p),v)),(bn(e,r+1,v,!0,!0,!1,!0)||typeof v=="undefined"&&bn(e,r+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=Ol(e,r)),e.dump&&Ba===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Qu(e,r,n){var a="",s=e.tag,c=Object.keys(n),p,m,v,y,b;for(p=0,m=c.length;p<m;p+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),v=c[p],y=n[v],e.replacer&&(y=e.replacer.call(n,v,y)),bn(e,r,v,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bn(e,r,y,!1,!1)&&(b+=e.dump,a+=b));e.tag=s,e.dump="{"+a+"}"}function Fl(e,r,n,a){var s="",c=e.tag,p=Object.keys(n),m,v,y,b,I,R;if(e.sortKeys===!0)p.sort();else if(typeof e.sortKeys=="function")p.sort(e.sortKeys);else if(e.sortKeys)throw new Yt("sortKeys must be a boolean or a function");for(m=0,v=p.length;m<v;m+=1)R="",(!a||s!=="")&&(R+=Ol(e,r)),y=p[m],b=n[y],e.replacer&&(b=e.replacer.call(n,y,b)),bn(e,r+1,y,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&Ba===e.dump.charCodeAt(0)?R+="?":R+="? "),R+=e.dump,I&&(R+=Ol(e,r)),bn(e,r+1,b,!0,I)&&(e.dump&&Ba===e.dump.charCodeAt(0)?R+=":":R+=": ",R+=e.dump,s+=R));e.tag=c,e.dump=s||"{}"}function vs(e,r,n){var a,s,c,p,m,v;for(s=n?e.explicitTypes:e.implicitTypes,c=0,p=s.length;c<p;c+=1)if(m=s[c],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r=="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(n?m.multi&&m.representName?e.tag=m.representName(r):e.tag=m.tag:e.tag="?",m.represent){if(v=e.styleMap[m.tag]||m.defaultStyle,Na.call(m.represent)==="[object Function]")a=m.represent(r,v);else if(ai.call(m.represent,v))a=m.represent[v](r,v);else throw new Yt("!<"+m.tag+'> tag resolver accepts not "'+v+'" style');e.dump=a}return!0}return!1}function bn(e,r,n,a,s,c,p){e.tag=null,e.dump=n,vs(e,n,!1)||vs(e,n,!0);var m=Na.call(e.dump),v=a,y;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=m==="[object Object]"||m==="[object Array]",I,R;if(b&&(I=e.duplicates.indexOf(n),R=I!==-1),(e.tag!==null&&e.tag!=="?"||R||e.indent!==2&&r>0)&&(s=!1),R&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(b&&R&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),m==="[object Object]")a&&Object.keys(e.dump).length!==0?(Fl(e,r,e.dump,s),R&&(e.dump="&ref_"+I+e.dump)):(Qu(e,r,e.dump),R&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!p&&r>0?hs(e,r-1,e.dump,s):hs(e,r,e.dump,s),R&&(e.dump="&ref_"+I+e.dump)):(Xc(e,r,e.dump),R&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object String]")e.tag!=="?"&&Jc(e,e.dump,r,c,v);else{if(m==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Yt("unacceptable kind of an object to dump "+m)}e.tag!==null&&e.tag!=="?"&&(y=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",e.dump=y+" "+e.dump)}return!0}function gs(e,r){var n=[],a=[],s,c;for(ms(e,n,a),s=0,c=a.length;s<c;s+=1)r.duplicates.push(n[a[s]]);r.usedDuplicates=new Array(c)}function ms(e,r,n){var a,s,c;if(e!==null&&typeof e=="object")if(s=r.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(r.push(e),Array.isArray(e))for(s=0,c=e.length;s<c;s+=1)ms(e[s],r,n);else for(a=Object.keys(e),s=0,c=a.length;s<c;s+=1)ms(e[a[s]],r,n)}function ys(e,r){r=r||{};var n=new Ju(r);n.noRefs||gs(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),bn(n,0,a,!0,!0)?n.dump+`
78
- `:""}var Qc=ys,Zc={dump:Qc};function kl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Rl=xr,Ml=gn,za=On,mo=Vt,qc=ir,bs=co,Zu=Hu.load,yo=Hu.loadAll,qu=Zc.dump,ca=Yt,bo={binary:sl,float:It,map:yn,null:Cr,pairs:Fa,set:Fu,timestamp:al,bool:uo,int:ti,merge:Ia,omap:ni,seq:mn,str:un},da=kl("safeLoad","load"),xo=kl("safeLoadAll","loadAll"),Ga=kl("safeDump","dump"),_u={Type:Rl,Schema:Ml,FAILSAFE_SCHEMA:za,JSON_SCHEMA:mo,CORE_SCHEMA:qc,DEFAULT_SCHEMA:bs,load:Zu,loadAll:yo,dump:qu,YAMLException:ca,types:bo,safeLoad:da,safeLoadAll:xo,safeDump:Ga};const Ll=_u,ef=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:tf,Blob:si,File:$i}=ef;function _c(e){if(_(e))return ge(e)}function ed(e){if(typeof Y!="undefined"&&he(e)!=null||e["@@iterator"]!=null)return z(e)}function td(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pa(e){return _c(e)||ed(e)||Ee(e)||td()}var rd=o(71488),Xn=o.n(rd),xn=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Hr=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Pr(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,s=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:s?JSON.parse(e):Xe()(r=pa(e)).call(r,function(c){var p,m;if(Hr(c)||xn(c)&&a==="unsafe")return c;var v=new TextEncoder,y=Xe()(p=Xe()(m=Et()(v.encode(c))).call(m,function(b){var I;return Xn()(I="0".concat(b.toString(16).toUpperCase())).call(I,-2)})).call(p,function(b){return"%".concat(b)}).join("");return y}).join("")}function Ir(e){var r=e.value;return Array.isArray(r)?So(e):$(r)==="object"?nd(e):xs(e)}function So(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(I){return Pr(I,{escape:c})};if(a==="simple")return Xe()(n).call(n,function(b){return p(b)}).join(",");if(a==="label")return".".concat(Xe()(n).call(n,function(b){return p(b)}).join("."));if(a==="matrix")return Xe()(n).call(n,function(b){return p(b)}).reduce(function(b,I){var R;if(!b||s){var N,G;return _e()(N=_e()(G="".concat(b||"",";")).call(G,r,"=")).call(N,I)}return _e()(R="".concat(b,",")).call(R,I)},"");if(a==="form"){var m=s?"&".concat(r,"="):",";return Xe()(n).call(n,function(b){return p(b)}).join(m)}if(a==="spaceDelimited"){var v=s?"".concat(r,"="):"";return Xe()(n).call(n,function(b){return p(b)}).join(" ".concat(v))}if(a==="pipeDelimited"){var y=s?"".concat(r,"="):"";return Xe()(n).call(n,function(b){return p(b)}).join("|".concat(y))}}function nd(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(y){return Pr(y,{escape:c})},m=Rt()(n);if(a==="simple")return m.reduce(function(v,y){var b,I,R,N=p(n[y]),G=s?"=":",",ee=v?"".concat(v,","):"";return _e()(b=_e()(I=_e()(R="".concat(ee)).call(R,y)).call(I,G)).call(b,N)},"");if(a==="label")return m.reduce(function(v,y){var b,I,R,N=p(n[y]),G=s?"=":".",ee=v?"".concat(v,"."):".";return _e()(b=_e()(I=_e()(R="".concat(ee)).call(R,y)).call(I,G)).call(b,N)},"");if(a==="matrix"&&s)return m.reduce(function(v,y){var b,I,R=p(n[y]),N=v?"".concat(v,";"):";";return _e()(b=_e()(I="".concat(N)).call(I,y,"=")).call(b,R)},"");if(a==="matrix")return m.reduce(function(v,y){var b,I,R=p(n[y]),N=v?"".concat(v,","):";".concat(r,"=");return _e()(b=_e()(I="".concat(N)).call(I,y,",")).call(b,R)},"");if(a==="form")return m.reduce(function(v,y){var b,I,R,N,G=p(n[y]),ee=v?_e()(b="".concat(v)).call(b,s?"&":","):"",q=s?"=":",";return _e()(I=_e()(R=_e()(N="".concat(ee)).call(N,y)).call(R,q)).call(I,G)},"")}function xs(e){var r=e.key,n=e.value,a=e.style,s=e.escape,c=function(v){return Pr(v,{escape:s})};if(a==="simple")return c(n);if(a==="label")return".".concat(c(n));if(a==="matrix"){var p;return _e()(p=";".concat(r,"=")).call(p,c(n))}if(a==="form")return c(n);if(a==="deepObject")return c(n,{},!0)}var id=function(r,n){n.body=r};const ad=id;var Nl={serializeRes:ws,mergeInQueryOrForm:af};function $a(e){return Ss.apply(this,arguments)}function Ss(){return Ss=Le(be().mark(function e(r){var n,a,s,c,p,m=arguments;return be().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=m.length>1&&m[1]!==void 0?m[1]:{},$(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Nl.mergeInQueryOrForm(n),n.headers&&Rt()(n.headers).forEach(function(b){var I=n.headers[b];typeof I=="string"&&(n.headers[b]=I.replace(/\n+/g," "))}),!n.requestInterceptor){y.next=12;break}return y.next=8,n.requestInterceptor(n);case 8:if(y.t0=y.sent,y.t0){y.next=11;break}y.t0=n;case 11:n=y.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof tf&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),y.prev=14,y.next=17,(n.userFetch||fetch)(n.url,n);case 17:return s=y.sent,y.next=20,Nl.serializeRes(s,r,n);case 20:if(s=y.sent,!n.responseInterceptor){y.next=28;break}return y.next=24,n.responseInterceptor(s);case 24:if(y.t1=y.sent,y.t1){y.next=27;break}y.t1=s;case 27:s=y.t1;case 28:y.next=39;break;case 30:if(y.prev=30,y.t2=y.catch(14),s){y.next=34;break}throw y.t2;case 34:throw c=new Error(s.statusText||"response status is ".concat(s.status)),c.status=s.status,c.statusCode=s.status,c.responseError=y.t2,c;case 39:if(s.ok){y.next=45;break}throw p=new Error(s.statusText||"response status is ".concat(s.status)),p.status=s.status,p.statusCode=s.status,p.response=s,p;case 45:return y.abrupt("return",s);case 46:case"end":return y.stop()}},e,null,[[14,30]])})),Ss.apply(this,arguments)}var Dl=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function od(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Ll.load(e)}function ws(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,s=a===void 0?!1:a,c={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:jl(e.headers)},p=c.headers["content-type"],m=s||Dl(p),v=m?e.text:e.blob||e.buffer;return v.call(e).then(function(y){if(c.text=y,c.data=y,m)try{var b=od(y,p);c.body=b,c.obj=b}catch(I){c.parseError=I}return c})}function Bl(e){var r=Ge()(e).call(e,", ");return r?e.split(", "):e}function jl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof Ze()(e)!="function"?{}:Et()(Ze()(e).call(e)).reduce(function(r,n){var a=at(n,2),s=a[0],c=a[1];return r[s]=Bl(c),r},{})}function As(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&$(e)==="object"&&typeof e.uri=="string"):typeof $i!="undefined"&&e instanceof $i||typeof si!="undefined"&&e instanceof si||ArrayBuffer.isView(e)?!0:e!==null&&$(e)==="object"&&typeof e.pipe=="function"}function Cs(e,r){return Array.isArray(e)&&e.some(function(n){return As(n,r)})}var rf={form:",",spaceDelimited:"%20",pipeDelimited:"|"},wo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function nf(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,c=r.serializationOption,p=r.encoding,m=$(r)==="object"&&!Array.isArray(r)?r.value:r,v=n?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},y=v(e);if(typeof m=="undefined"&&s)return[[y,""]];if(As(m)||Cs(m))return[[y,m]];if(c)return Ao(e,m,n,c);if(p){if([$(p.style),$(p.explode),$(p.allowReserved)].some(function(G){return G!=="undefined"})){var b=p.style,I=p.explode,R=p.allowReserved;return Ao(e,m,n,{style:b,explode:I,allowReserved:R})}if(p.contentType){if(p.contentType==="application/json"){var N=typeof m=="string"?m:zt()(m);return[[y,v(N)]]}return[[y,v(m.toString())]]}return $(m)!=="object"?[[y,v(m)]]:Array.isArray(m)&&m.every(function(G){return $(G)!=="object"})?[[y,Xe()(m).call(m,v).join(",")]]:[[y,v(zt()(m))]]}return $(m)!=="object"?[[y,v(m)]]:Array.isArray(m)?a==="multi"?[[y,Xe()(m).call(m,v)]]:[[y,Xe()(m).call(m,v).join(wo[a||"csv"])]]:[[y,""]]}function Ao(e,r,n,a){var s,c=a.style||"form",p=typeof a.explode=="undefined"?c==="form":a.explode,m=n?!1:a&&a.allowReserved?"unsafe":"reserved",v=function(N){return Pr(N,{escape:m})},y=n?function(R){return R}:function(R){return Pr(R,{escape:m})};if($(r)!=="object")return[[y(e),v(r)]];if(Array.isArray(r))return p?[[y(e),Xe()(r).call(r,v)]]:[[y(e),Xe()(r).call(r,v).join(rf[c])]];if(c==="deepObject"){var b;return Xe()(b=Rt()(r)).call(b,function(R){var N;return[y(_e()(N="".concat(e,"[")).call(N,R,"]")),v(r[R])]})}if(p){var I;return Xe()(I=Rt()(r)).call(I,function(R){return[y(R),v(r[R])]})}return[[y(e),Xe()(s=Rt()(r)).call(s,function(R){var N;return[_e()(N="".concat(y(R),",")).call(N,v(r[R]))]}).join(",")]]}function Ei(e){return Ar()(e).reduce(function(r,n){var a=at(n,2),s=a[0],c=a[1],p=je(nf(s,c,!0)),m;try{for(p.s();!(m=p.n()).done;){var v=at(m.value,2),y=v[0],b=v[1];if(Array.isArray(b)){var I=je(b),R;try{for(I.s();!(R=I.n()).done;){var N=R.value;if(ArrayBuffer.isView(N)){var G=new si([N]);r.append(y,G)}else r.append(y,N)}}catch(q){I.e(q)}finally{I.f()}}else if(ArrayBuffer.isView(b)){var ee=new si([b]);r.append(y,ee)}else r.append(y,b)}}catch(q){p.e(q)}finally{p.f()}return r},new tf)}function Vl(e){var r=Rt()(e).reduce(function(n,a){var s=je(nf(a,e[a])),c;try{for(s.s();!(c=s.n()).done;){var p=at(c.value,2),m=p[0],v=p[1];n[m]=v}}catch(y){s.e(y)}finally{s.f()}return n},{});return wt().stringify(r,{encode:!1,indices:!1})||""}function af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,s=e.form,c=function(){for(var ae=arguments.length,pe=new Array(ae),ve=0;ve<ae;ve++)pe[ve]=arguments[ve];var me=$e()(pe).call(pe,function(Te){return Te}).join("&");return me?"?".concat(me):""};if(s){var p=Rt()(s).some(function(oe){var ae=s[oe].value;return As(ae)||Cs(ae)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(p||/multipart\/form-data/i.test(m)){var v=Ei(e.form);ad(v,e)}else e.body=Vl(s);delete e.form}if(a){var y=n.split("?"),b=at(y,2),I=b[0],R=b[1],N="";if(R){var G=wt().parse(R),ee=Rt()(a);ee.forEach(function(oe){return delete G[oe]}),N=wt().stringify(G,{encode:!0})}var q=c(N,Vl(a));e.url=I+q,delete e.query}return e}function of(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Nl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function Sn(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rr(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),ie(e,F(a.key),a)}}function Ln(e,r,n){return r&&rr(e.prototype,r),n&&rr(e,n),ie(e,"prototype",{writable:!1}),e}var Ki=o(35784),Yi=o.n(Ki),sf=o(22583),Oi=o.n(sf),lf=o(93963),sd=o.n(lf);/*!
77
+ `+e.slice(p+1):v+=e.slice(s),v.slice(1)}function ps(e){for(var r="",n=0,a,s=0;s<e.length;n>=65536?s+=2:s++)n=Wa(e,s),a=Yr[n],!a&&Jn(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=a||Cl(n);return r}function Xc(e,r,n){var a="",s=e.tag,c,p,m;for(c=0,p=n.length;c<p;c+=1)m=n[c],e.replacer&&(m=e.replacer.call(n,String(c),m)),(bn(e,r,m,!1,!1)||typeof m=="undefined"&&bn(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function hs(e,r,n,a){var s="",c=e.tag,p,m,v;for(p=0,m=n.length;p<m;p+=1)v=n[p],e.replacer&&(v=e.replacer.call(n,String(p),v)),(bn(e,r+1,v,!0,!0,!1,!0)||typeof v=="undefined"&&bn(e,r+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=Ol(e,r)),e.dump&&Ba===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Qu(e,r,n){var a="",s=e.tag,c=Object.keys(n),p,m,v,y,b;for(p=0,m=c.length;p<m;p+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),v=c[p],y=n[v],e.replacer&&(y=e.replacer.call(n,v,y)),bn(e,r,v,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bn(e,r,y,!1,!1)&&(b+=e.dump,a+=b));e.tag=s,e.dump="{"+a+"}"}function Fl(e,r,n,a){var s="",c=e.tag,p=Object.keys(n),m,v,y,b,I,D;if(e.sortKeys===!0)p.sort();else if(typeof e.sortKeys=="function")p.sort(e.sortKeys);else if(e.sortKeys)throw new Yt("sortKeys must be a boolean or a function");for(m=0,v=p.length;m<v;m+=1)D="",(!a||s!=="")&&(D+=Ol(e,r)),y=p[m],b=n[y],e.replacer&&(b=e.replacer.call(n,y,b)),bn(e,r+1,y,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&Ba===e.dump.charCodeAt(0)?D+="?":D+="? "),D+=e.dump,I&&(D+=Ol(e,r)),bn(e,r+1,b,!0,I)&&(e.dump&&Ba===e.dump.charCodeAt(0)?D+=":":D+=": ",D+=e.dump,s+=D));e.tag=c,e.dump=s||"{}"}function vs(e,r,n){var a,s,c,p,m,v;for(s=n?e.explicitTypes:e.implicitTypes,c=0,p=s.length;c<p;c+=1)if(m=s[c],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r=="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(n?m.multi&&m.representName?e.tag=m.representName(r):e.tag=m.tag:e.tag="?",m.represent){if(v=e.styleMap[m.tag]||m.defaultStyle,Na.call(m.represent)==="[object Function]")a=m.represent(r,v);else if(ai.call(m.represent,v))a=m.represent[v](r,v);else throw new Yt("!<"+m.tag+'> tag resolver accepts not "'+v+'" style');e.dump=a}return!0}return!1}function bn(e,r,n,a,s,c,p){e.tag=null,e.dump=n,vs(e,n,!1)||vs(e,n,!0);var m=Na.call(e.dump),v=a,y;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=m==="[object Object]"||m==="[object Array]",I,D;if(b&&(I=e.duplicates.indexOf(n),D=I!==-1),(e.tag!==null&&e.tag!=="?"||D||e.indent!==2&&r>0)&&(s=!1),D&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(b&&D&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),m==="[object Object]")a&&Object.keys(e.dump).length!==0?(Fl(e,r,e.dump,s),D&&(e.dump="&ref_"+I+e.dump)):(Qu(e,r,e.dump),D&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!p&&r>0?hs(e,r-1,e.dump,s):hs(e,r,e.dump,s),D&&(e.dump="&ref_"+I+e.dump)):(Xc(e,r,e.dump),D&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object String]")e.tag!=="?"&&Jc(e,e.dump,r,c,v);else{if(m==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Yt("unacceptable kind of an object to dump "+m)}e.tag!==null&&e.tag!=="?"&&(y=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",e.dump=y+" "+e.dump)}return!0}function gs(e,r){var n=[],a=[],s,c;for(ms(e,n,a),s=0,c=a.length;s<c;s+=1)r.duplicates.push(n[a[s]]);r.usedDuplicates=new Array(c)}function ms(e,r,n){var a,s,c;if(e!==null&&typeof e=="object")if(s=r.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(r.push(e),Array.isArray(e))for(s=0,c=e.length;s<c;s+=1)ms(e[s],r,n);else for(a=Object.keys(e),s=0,c=a.length;s<c;s+=1)ms(e[a[s]],r,n)}function ys(e,r){r=r||{};var n=new Ju(r);n.noRefs||gs(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),bn(n,0,a,!0,!0)?n.dump+`
78
+ `:""}var Qc=ys,Zc={dump:Qc};function kl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Rl=xr,Ml=gn,za=On,mo=Vt,qc=ir,bs=co,Zu=Hu.load,yo=Hu.loadAll,qu=Zc.dump,ca=Yt,bo={binary:sl,float:It,map:yn,null:Cr,pairs:Fa,set:Fu,timestamp:al,bool:uo,int:ti,merge:Ia,omap:ni,seq:mn,str:un},da=kl("safeLoad","load"),xo=kl("safeLoadAll","loadAll"),Ga=kl("safeDump","dump"),_u={Type:Rl,Schema:Ml,FAILSAFE_SCHEMA:za,JSON_SCHEMA:mo,CORE_SCHEMA:qc,DEFAULT_SCHEMA:bs,load:Zu,loadAll:yo,dump:qu,YAMLException:ca,types:bo,safeLoad:da,safeLoadAll:xo,safeDump:Ga};const Ll=_u,ef=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:tf,Blob:si,File:$i}=ef;function _c(e){if(ee(e))return ge(e)}function ed(e){if(typeof J!="undefined"&&ve(e)!=null||e["@@iterator"]!=null)return z(e)}function td(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pa(e){return _c(e)||ed(e)||Ee(e)||td()}var rd=o(71488),Xn=o.n(rd),xn=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Hr=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Pr(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,s=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:s?JSON.parse(e):Xe()(r=pa(e)).call(r,function(c){var p,m;if(Hr(c)||xn(c)&&a==="unsafe")return c;var v=new TextEncoder,y=Xe()(p=Xe()(m=Et()(v.encode(c))).call(m,function(b){var I;return Xn()(I="0".concat(b.toString(16).toUpperCase())).call(I,-2)})).call(p,function(b){return"%".concat(b)}).join("");return y}).join("")}function Ir(e){var r=e.value;return Array.isArray(r)?So(e):G(r)==="object"?nd(e):xs(e)}function So(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(I){return Pr(I,{escape:c})};if(a==="simple")return Xe()(n).call(n,function(b){return p(b)}).join(",");if(a==="label")return".".concat(Xe()(n).call(n,function(b){return p(b)}).join("."));if(a==="matrix")return Xe()(n).call(n,function(b){return p(b)}).reduce(function(b,I){var D;if(!b||s){var B,$;return _e()(B=_e()($="".concat(b||"",";")).call($,r,"=")).call(B,I)}return _e()(D="".concat(b,",")).call(D,I)},"");if(a==="form"){var m=s?"&".concat(r,"="):",";return Xe()(n).call(n,function(b){return p(b)}).join(m)}if(a==="spaceDelimited"){var v=s?"".concat(r,"="):"";return Xe()(n).call(n,function(b){return p(b)}).join(" ".concat(v))}if(a==="pipeDelimited"){var y=s?"".concat(r,"="):"";return Xe()(n).call(n,function(b){return p(b)}).join("|".concat(y))}}function nd(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(y){return Pr(y,{escape:c})},m=Rt()(n);if(a==="simple")return m.reduce(function(v,y){var b,I,D,B=p(n[y]),$=s?"=":",",K=v?"".concat(v,","):"";return _e()(b=_e()(I=_e()(D="".concat(K)).call(D,y)).call(I,$)).call(b,B)},"");if(a==="label")return m.reduce(function(v,y){var b,I,D,B=p(n[y]),$=s?"=":".",K=v?"".concat(v,"."):".";return _e()(b=_e()(I=_e()(D="".concat(K)).call(D,y)).call(I,$)).call(b,B)},"");if(a==="matrix"&&s)return m.reduce(function(v,y){var b,I,D=p(n[y]),B=v?"".concat(v,";"):";";return _e()(b=_e()(I="".concat(B)).call(I,y,"=")).call(b,D)},"");if(a==="matrix")return m.reduce(function(v,y){var b,I,D=p(n[y]),B=v?"".concat(v,","):";".concat(r,"=");return _e()(b=_e()(I="".concat(B)).call(I,y,",")).call(b,D)},"");if(a==="form")return m.reduce(function(v,y){var b,I,D,B,$=p(n[y]),K=v?_e()(b="".concat(v)).call(b,s?"&":","):"",q=s?"=":",";return _e()(I=_e()(D=_e()(B="".concat(K)).call(B,y)).call(D,q)).call(I,$)},"")}function xs(e){var r=e.key,n=e.value,a=e.style,s=e.escape,c=function(v){return Pr(v,{escape:s})};if(a==="simple")return c(n);if(a==="label")return".".concat(c(n));if(a==="matrix"){var p;return _e()(p=";".concat(r,"=")).call(p,c(n))}if(a==="form")return c(n);if(a==="deepObject")return c(n,{},!0)}var id=function(r,n){n.body=r};const ad=id;var Nl={serializeRes:ws,mergeInQueryOrForm:af};function $a(e){return Ss.apply(this,arguments)}function Ss(){return Ss=Le(be().mark(function e(r){var n,a,s,c,p,m=arguments;return be().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=m.length>1&&m[1]!==void 0?m[1]:{},G(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Nl.mergeInQueryOrForm(n),n.headers&&Rt()(n.headers).forEach(function(b){var I=n.headers[b];typeof I=="string"&&(n.headers[b]=I.replace(/\n+/g," "))}),!n.requestInterceptor){y.next=12;break}return y.next=8,n.requestInterceptor(n);case 8:if(y.t0=y.sent,y.t0){y.next=11;break}y.t0=n;case 11:n=y.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof tf&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),y.prev=14,y.next=17,(n.userFetch||fetch)(n.url,n);case 17:return s=y.sent,y.next=20,Nl.serializeRes(s,r,n);case 20:if(s=y.sent,!n.responseInterceptor){y.next=28;break}return y.next=24,n.responseInterceptor(s);case 24:if(y.t1=y.sent,y.t1){y.next=27;break}y.t1=s;case 27:s=y.t1;case 28:y.next=39;break;case 30:if(y.prev=30,y.t2=y.catch(14),s){y.next=34;break}throw y.t2;case 34:throw c=new Error(s.statusText||"response status is ".concat(s.status)),c.status=s.status,c.statusCode=s.status,c.responseError=y.t2,c;case 39:if(s.ok){y.next=45;break}throw p=new Error(s.statusText||"response status is ".concat(s.status)),p.status=s.status,p.statusCode=s.status,p.response=s,p;case 45:return y.abrupt("return",s);case 46:case"end":return y.stop()}},e,null,[[14,30]])})),Ss.apply(this,arguments)}var Dl=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function od(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Ll.load(e)}function ws(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,s=a===void 0?!1:a,c={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:jl(e.headers)},p=c.headers["content-type"],m=s||Dl(p),v=m?e.text:e.blob||e.buffer;return v.call(e).then(function(y){if(c.text=y,c.data=y,m)try{var b=od(y,p);c.body=b,c.obj=b}catch(I){c.parseError=I}return c})}function Bl(e){var r=Ge()(e).call(e,", ");return r?e.split(", "):e}function jl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof Ze()(e)!="function"?{}:Et()(Ze()(e).call(e)).reduce(function(r,n){var a=at(n,2),s=a[0],c=a[1];return r[s]=Bl(c),r},{})}function As(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&G(e)==="object"&&typeof e.uri=="string"):typeof $i!="undefined"&&e instanceof $i||typeof si!="undefined"&&e instanceof si||ArrayBuffer.isView(e)?!0:e!==null&&G(e)==="object"&&typeof e.pipe=="function"}function Cs(e,r){return Array.isArray(e)&&e.some(function(n){return As(n,r)})}var rf={form:",",spaceDelimited:"%20",pipeDelimited:"|"},wo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function nf(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,c=r.serializationOption,p=r.encoding,m=G(r)==="object"&&!Array.isArray(r)?r.value:r,v=n?function($){return $.toString()}:function($){return encodeURIComponent($)},y=v(e);if(typeof m=="undefined"&&s)return[[y,""]];if(As(m)||Cs(m))return[[y,m]];if(c)return Ao(e,m,n,c);if(p){if([G(p.style),G(p.explode),G(p.allowReserved)].some(function($){return $!=="undefined"})){var b=p.style,I=p.explode,D=p.allowReserved;return Ao(e,m,n,{style:b,explode:I,allowReserved:D})}if(p.contentType){if(p.contentType==="application/json"){var B=typeof m=="string"?m:zt()(m);return[[y,v(B)]]}return[[y,v(m.toString())]]}return G(m)!=="object"?[[y,v(m)]]:Array.isArray(m)&&m.every(function($){return G($)!=="object"})?[[y,Xe()(m).call(m,v).join(",")]]:[[y,v(zt()(m))]]}return G(m)!=="object"?[[y,v(m)]]:Array.isArray(m)?a==="multi"?[[y,Xe()(m).call(m,v)]]:[[y,Xe()(m).call(m,v).join(wo[a||"csv"])]]:[[y,""]]}function Ao(e,r,n,a){var s,c=a.style||"form",p=typeof a.explode=="undefined"?c==="form":a.explode,m=n?!1:a&&a.allowReserved?"unsafe":"reserved",v=function(B){return Pr(B,{escape:m})},y=n?function(D){return D}:function(D){return Pr(D,{escape:m})};if(G(r)!=="object")return[[y(e),v(r)]];if(Array.isArray(r))return p?[[y(e),Xe()(r).call(r,v)]]:[[y(e),Xe()(r).call(r,v).join(rf[c])]];if(c==="deepObject"){var b;return Xe()(b=Rt()(r)).call(b,function(D){var B;return[y(_e()(B="".concat(e,"[")).call(B,D,"]")),v(r[D])]})}if(p){var I;return Xe()(I=Rt()(r)).call(I,function(D){return[y(D),v(r[D])]})}return[[y(e),Xe()(s=Rt()(r)).call(s,function(D){var B;return[_e()(B="".concat(y(D),",")).call(B,v(r[D]))]}).join(",")]]}function Ei(e){return Ar()(e).reduce(function(r,n){var a=at(n,2),s=a[0],c=a[1],p=je(nf(s,c,!0)),m;try{for(p.s();!(m=p.n()).done;){var v=at(m.value,2),y=v[0],b=v[1];if(Array.isArray(b)){var I=je(b),D;try{for(I.s();!(D=I.n()).done;){var B=D.value;if(ArrayBuffer.isView(B)){var $=new si([B]);r.append(y,$)}else r.append(y,B)}}catch(q){I.e(q)}finally{I.f()}}else if(ArrayBuffer.isView(b)){var K=new si([b]);r.append(y,K)}else r.append(y,b)}}catch(q){p.e(q)}finally{p.f()}return r},new tf)}function Vl(e){var r=Rt()(e).reduce(function(n,a){var s=je(nf(a,e[a])),c;try{for(s.s();!(c=s.n()).done;){var p=at(c.value,2),m=p[0],v=p[1];n[m]=v}}catch(y){s.e(y)}finally{s.f()}return n},{});return wt().stringify(r,{encode:!1,indices:!1})||""}function af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,s=e.form,c=function(){for(var ae=arguments.length,pe=new Array(ae),Ce=0;Ce<ae;Ce++)pe[Ce]=arguments[Ce];var Se=$e()(pe).call(pe,function(Pe){return Pe}).join("&");return Se?"?".concat(Se):""};if(s){var p=Rt()(s).some(function(oe){var ae=s[oe].value;return As(ae)||Cs(ae)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(p||/multipart\/form-data/i.test(m)){var v=Ei(e.form);ad(v,e)}else e.body=Vl(s);delete e.form}if(a){var y=n.split("?"),b=at(y,2),I=b[0],D=b[1],B="";if(D){var $=wt().parse(D),K=Rt()(a);K.forEach(function(oe){return delete $[oe]}),B=wt().stringify($,{encode:!0})}var q=c(B,Vl(a));e.url=I+q,delete e.query}return e}function of(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Nl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function Sn(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rr(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),ie(e,F(a.key),a)}}function Ln(e,r,n){return r&&rr(e.prototype,r),n&&rr(e,n),ie(e,"prototype",{writable:!1}),e}var Ki=o(35784),Yi=o.n(Ki),sf=o(22583),Oi=o.n(sf),lf=o(93963),sd=o.n(lf);/*!
80
80
  * https://github.com/Starcounter-Jack/JSON-Patch
81
81
  * (c) 2017-2022 Joachim Wester
82
82
  * MIT licensed
83
83
  */var Ul=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Co=Object.prototype.hasOwnProperty;function Eo(e,r){return Co.call(e,r)}function Oo(e){if(Array.isArray(e)){for(var r=new Array(e.length),n=0;n<r.length;n++)r[n]=""+n;return r}if(Object.keys)return Object.keys(e);var a=[];for(var s in e)Eo(e,s)&&a.push(s);return a}function Lr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Es(e){for(var r=0,n=e.length,a;r<n;){if(a=e.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function li(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function uf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function To(e,r){var n;for(var a in e)if(Eo(e,a)){if(e[a]===r)return li(a)+"/";if(typeof e[a]=="object"&&(n=To(e[a],r),n!=""))return li(a)+"/"+n}return""}function ff(e,r){if(e===r)return"/";var n=To(e,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function Os(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)if(Os(e[r]))return!0}else if(typeof e=="object"){for(var a=Oo(e),s=a.length,c=0;c<s;c++)if(Os(e[a[c]]))return!0}}return!1}function cf(e,r){var n=[e];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&n.push(a+": "+s)}return n.join(`
84
- `)}var Wl=function(e){Ul(r,e);function r(n,a,s,c,p){var m=this.constructor,v=e.call(this,cf(n,{name:a,index:s,operation:c,tree:p}))||this;return v.name=a,v.index=s,v.operation=c,v.tree=p,Object.setPrototypeOf(v,m.prototype),v.message=cf(n,{name:a,index:s,operation:c,tree:p}),v}return r}(Error),Er=Wl,ld=Lr,Ti={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=Po(n,this.path);a&&(a=Lr(a));var s=ha(n,{op:"remove",path:this.from}).removed;return ha(n,{op:"add",path:this.path,value:s}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=Po(n,this.from);return ha(n,{op:"add",path:this.path,value:Lr(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:Ja(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},df={add:function(e,r,n){return Es(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:Ti.move,copy:Ti.copy,test:Ti.test,_get:Ti._get};function Po(e,r){if(r=="")return e;var n={op:"_get",path:r};return ha(e,n),n.value}function ha(e,r,n,a,s,c){if(n===void 0&&(n=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),c===void 0&&(c=0),n&&(typeof n=="function"?n(r,0,e,r.path):Ya(r,0)),r.path===""){var p={newDocument:e};if(r.op==="add")return p.newDocument=r.value,p;if(r.op==="replace")return p.newDocument=r.value,p.removed=e,p;if(r.op==="move"||r.op==="copy")return p.newDocument=Po(e,r.from),r.op==="move"&&(p.removed=e),p;if(r.op==="test"){if(p.test=Ja(e,r.value),p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p.newDocument=e,p}else{if(r.op==="remove")return p.removed=e,p.newDocument=null,p;if(r.op==="_get")return r.value=e,p;if(n)throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",c,r,e);return p}}else{a||(e=Lr(e));var m=r.path||"",v=m.split("/"),y=e,b=1,I=v.length,R=void 0,N=void 0,G=void 0;for(typeof n=="function"?G=n:G=Ya;;){if(N=v[b],N&&N.indexOf("~")!=-1&&(N=uf(N)),s&&(N=="__proto__"||N=="prototype"&&b>0&&v[b-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&R===void 0&&(y[N]===void 0?R=v.slice(0,b).join("/"):b==I-1&&(R=r.path),R!==void 0&&G(r,0,e,R)),b++,Array.isArray(y)){if(N==="-")N=y.length;else{if(n&&!Es(N))throw new Er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c,r,e);Es(N)&&(N=~~N)}if(b>=I){if(n&&r.op==="add"&&N>y.length)throw new Er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c,r,e);var p=df[r.op].call(r,y,N,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}}else if(b>=I){var p=Ti[r.op].call(r,y,N,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}if(y=y[N],n&&b<I&&(!y||typeof y!="object"))throw new Er("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",c,r,e)}}}function Pi(e,r,n,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),n&&!Array.isArray(r))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=Lr(e));for(var c=new Array(r.length),p=0,m=r.length;p<m;p++)c[p]=ha(e,r[p],n,!0,s,p),e=c[p].newDocument;return c.newDocument=e,c}function Ka(e,r,n){var a=ha(e,r);if(a.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function Ya(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new Er("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(Ti[e.op]){if(typeof e.path!="string")throw new Er("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Os(e.value))throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var s=e.path.split("/").length,c=a.split("/").length;if(s!==c+1&&s!==c)throw new Er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new Er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var p={op:"_get",path:e.from,value:void 0},m=Io([p],n);if(m&&m.name==="OPERATION_PATH_UNRESOLVABLE")throw new Er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function Io(e,r,n){try{if(!Array.isArray(e))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Pi(Lr(r),Lr(e),n||!0);else{n=n||Ya;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(s){if(s instanceof Er)return s;throw s}}function Ja(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),s,c,p;if(n&&a){if(c=e.length,c!=r.length)return!1;for(s=c;s--!==0;)if(!Ja(e[s],r[s]))return!1;return!0}if(n!=a)return!1;var m=Object.keys(e);if(c=m.length,c!==Object.keys(r).length)return!1;for(s=c;s--!==0;)if(!r.hasOwnProperty(m[s]))return!1;for(s=c;s--!==0;)if(p=m[s],!Ja(e[p],r[p]))return!1;return!0}return e!==e&&r!==r}/*!
84
+ `)}var Wl=function(e){Ul(r,e);function r(n,a,s,c,p){var m=this.constructor,v=e.call(this,cf(n,{name:a,index:s,operation:c,tree:p}))||this;return v.name=a,v.index=s,v.operation=c,v.tree=p,Object.setPrototypeOf(v,m.prototype),v.message=cf(n,{name:a,index:s,operation:c,tree:p}),v}return r}(Error),Er=Wl,ld=Lr,Ti={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=Po(n,this.path);a&&(a=Lr(a));var s=ha(n,{op:"remove",path:this.from}).removed;return ha(n,{op:"add",path:this.path,value:s}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=Po(n,this.from);return ha(n,{op:"add",path:this.path,value:Lr(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:Ja(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},df={add:function(e,r,n){return Es(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:Ti.move,copy:Ti.copy,test:Ti.test,_get:Ti._get};function Po(e,r){if(r=="")return e;var n={op:"_get",path:r};return ha(e,n),n.value}function ha(e,r,n,a,s,c){if(n===void 0&&(n=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),c===void 0&&(c=0),n&&(typeof n=="function"?n(r,0,e,r.path):Ya(r,0)),r.path===""){var p={newDocument:e};if(r.op==="add")return p.newDocument=r.value,p;if(r.op==="replace")return p.newDocument=r.value,p.removed=e,p;if(r.op==="move"||r.op==="copy")return p.newDocument=Po(e,r.from),r.op==="move"&&(p.removed=e),p;if(r.op==="test"){if(p.test=Ja(e,r.value),p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p.newDocument=e,p}else{if(r.op==="remove")return p.removed=e,p.newDocument=null,p;if(r.op==="_get")return r.value=e,p;if(n)throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",c,r,e);return p}}else{a||(e=Lr(e));var m=r.path||"",v=m.split("/"),y=e,b=1,I=v.length,D=void 0,B=void 0,$=void 0;for(typeof n=="function"?$=n:$=Ya;;){if(B=v[b],B&&B.indexOf("~")!=-1&&(B=uf(B)),s&&(B=="__proto__"||B=="prototype"&&b>0&&v[b-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&D===void 0&&(y[B]===void 0?D=v.slice(0,b).join("/"):b==I-1&&(D=r.path),D!==void 0&&$(r,0,e,D)),b++,Array.isArray(y)){if(B==="-")B=y.length;else{if(n&&!Es(B))throw new Er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c,r,e);Es(B)&&(B=~~B)}if(b>=I){if(n&&r.op==="add"&&B>y.length)throw new Er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c,r,e);var p=df[r.op].call(r,y,B,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}}else if(b>=I){var p=Ti[r.op].call(r,y,B,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}if(y=y[B],n&&b<I&&(!y||typeof y!="object"))throw new Er("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",c,r,e)}}}function Pi(e,r,n,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),n&&!Array.isArray(r))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=Lr(e));for(var c=new Array(r.length),p=0,m=r.length;p<m;p++)c[p]=ha(e,r[p],n,!0,s,p),e=c[p].newDocument;return c.newDocument=e,c}function Ka(e,r,n){var a=ha(e,r);if(a.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function Ya(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new Er("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(Ti[e.op]){if(typeof e.path!="string")throw new Er("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Os(e.value))throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var s=e.path.split("/").length,c=a.split("/").length;if(s!==c+1&&s!==c)throw new Er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new Er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var p={op:"_get",path:e.from,value:void 0},m=Io([p],n);if(m&&m.name==="OPERATION_PATH_UNRESOLVABLE")throw new Er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function Io(e,r,n){try{if(!Array.isArray(e))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Pi(Lr(r),Lr(e),n||!0);else{n=n||Ya;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(s){if(s instanceof Er)return s;throw s}}function Ja(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),s,c,p;if(n&&a){if(c=e.length,c!=r.length)return!1;for(s=c;s--!==0;)if(!Ja(e[s],r[s]))return!1;return!0}if(n!=a)return!1;var m=Object.keys(e);if(c=m.length,c!==Object.keys(r).length)return!1;for(s=c;s--!==0;)if(!r.hasOwnProperty(m[s]))return!1;for(s=c;s--!==0;)if(p=m[s],!Ja(e[p],r[p]))return!1;return!0}return e!==e&&r!==r}/*!
85
85
  * https://github.com/Starcounter-Jack/JSON-Patch
86
86
  * (c) 2017-2021 Joachim Wester
87
87
  * MIT license
88
- */var Fo=new WeakMap,pf=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),ud=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function hf(e){return Fo.get(e)}function Jr(e,r){return e.observers.get(r)}function Ts(e,r){e.observers.delete(r.callback)}function vf(e,r){r.unobserve()}function gf(e,r){var n=[],a,s=hf(e);if(!s)s=new pf(e),Fo.set(e,s);else{var c=Jr(s,r);a=c&&c.observer}if(a)return a;if(a={},s.value=Lr(e),r){a.callback=r,a.next=null;var p=function(){Ps(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(p)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){Ps(a),clearTimeout(a.next),Ts(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},s.observers.set(r,new ud(r,a)),a}function Ps(e,r){r===void 0&&(r=!1);var n=Fo.get(e.object);Ji(n.value,e.object,e.patches,"",r),e.patches.length&&Pi(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function Ji(e,r,n,a,s){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var c=Oo(r),p=Oo(e),m=!1,v=!1,y=p.length-1;y>=0;y--){var b=p[y],I=e[b];if(Eo(r,b)&&!(r[b]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var R=r[b];typeof I=="object"&&I!=null&&typeof R=="object"&&R!=null&&Array.isArray(I)===Array.isArray(R)?Ji(I,R,n,a+"/"+li(b),s):I!==R&&(m=!0,s&&n.push({op:"test",path:a+"/"+li(b),value:Lr(I)}),n.push({op:"replace",path:a+"/"+li(b),value:Lr(R)}))}else Array.isArray(e)===Array.isArray(r)?(s&&n.push({op:"test",path:a+"/"+li(b),value:Lr(I)}),n.push({op:"remove",path:a+"/"+li(b)}),v=!0):(s&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!v&&c.length==p.length))for(var y=0;y<c.length;y++){var b=c[y];!Eo(e,b)&&r[b]!==void 0&&n.push({op:"add",path:a+"/"+li(b),value:Lr(r[b])})}}}function Is(e,r,n){n===void 0&&(n=!1);var a=[];return Ji(e,r,a,"",n),a}const fd=Object.assign({},d,x,{JsonPatchError:Wl,deepClone:Lr,escapePathComponent:li,unescapePathComponent:uf});var mf=o(39714),Hl=o.n(mf);const Jt={add:bf,replace:Xi,remove:cd,merge:Xa,mergeDeep:xf,context:Sf,getIn:dd,applyPatch:yf,parentPathMatch:Af,flatten:ui,fullyNormalizeArray:Cf,normalizeArray:Ii,isPromise:Ef,forEachNew:wf,forEachNewPrimitive:Ro,isJsonPatch:Tf,isContextPatch:hd,isPatch:ks,isMutation:zl,isAdditiveMutation:Fs,isGenerator:dn,isFunction:Of,isObject:ma,isError:pd};function yf(e,r,n){if(n=n||{},r=K(K({},r),{},{path:r.path&&ko(r.path)}),r.op==="merge"){var a=Rs(e,r.path);te()(a,r.value),Pi(e,[Xi(r.path,a)])}else if(r.op==="mergeDeep"){var s=Rs(e,r.path),c=Hl()(s,r.value);e=Pi(e,[Xi(r.path,c)]).newDocument}else if(r.op==="add"&&r.path===""&&ma(r.value)){var p=Rt()(r.value).reduce(function(I,R){return I.push({op:"add",path:"/".concat(ko(R)),value:r.value[R]}),I},[]);Pi(e,p)}else if(r.op==="replace"&&r.path===""){var m=r,v=m.value;n.allowMetaPatches&&r.meta&&Fs(r)&&(Array.isArray(r.value)||ma(r.value))&&(v=K(K({},v),r.meta)),e=v}else if(Pi(e,[r]),n.allowMetaPatches&&r.meta&&Fs(r)&&(Array.isArray(r.value)||ma(r.value))){var y=Rs(e,r.path),b=K(K({},y),r.meta);Pi(e,[Xi(r.path,b)])}return e}function ko(e){return Array.isArray(e)?e.length<1?"":"/".concat(Xe()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function bf(e,r){return{op:"add",path:e,value:r}}function Xi(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function cd(e){return{op:"remove",path:e}}function Xa(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function xf(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function Sf(e,r){return{type:"context",path:e,value:r}}function wf(e,r){try{return Qa(e,ga,r)}catch(n){return n}}function Ro(e,r){try{return Qa(e,va,r)}catch(n){return n}}function Qa(e,r,n){var a,s=Xe()(a=$e()(e).call(e,Fs)).call(a,function(m){return r(m.value,n,m.path)})||[],c=ui(s),p=Za(c);return p}function va(e,r,n){if(n=n||[],Array.isArray(e))return Xe()(e).call(e,function(s,c){return va(s,r,_e()(n).call(n,c))});if(ma(e)){var a;return Xe()(a=Rt()(e)).call(a,function(s){return va(e[s],r,_e()(n).call(n,s))})}return r(e,n[n.length-1],n)}function ga(e,r,n){n=n||[];var a=[];if(n.length>0){var s=r(e,n[n.length-1],n);s&&(a=_e()(a).call(a,s))}if(Array.isArray(e)){var c=Xe()(e).call(e,function(v,y){return ga(v,r,_e()(n).call(n,y))});c&&(a=_e()(a).call(a,c))}else if(ma(e)){var p,m=Xe()(p=Rt()(e)).call(p,function(v){return ga(e[v],r,_e()(n).call(n,v))});m&&(a=_e()(a).call(a,m))}return a=ui(a),a}function Af(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function dd(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function Cf(e){return Za(ui(Ii(e)))}function Ii(e){return Array.isArray(e)?e:[e]}function ui(e){var r;return _e()(r=[]).apply(r,pa(Xe()(e).call(e,function(n){return Array.isArray(n)?ui(n):n})))}function Za(e){return $e()(e).call(e,function(r){return typeof r!="undefined"})}function ma(e){return e&&$(e)==="object"}function Ef(e){return ma(e)&&Of(e.then)}function Of(e){return e&&typeof e=="function"}function pd(e){return e instanceof Error}function Tf(e){if(ks(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function dn(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function zl(e){return Tf(e)||ks(e)&&e.type==="mutation"}function Fs(e){return zl(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function hd(e){return ks(e)&&e.type==="context"}function ks(e){return e&&$(e)==="object"}function Rs(e,r){try{return Po(e,r)}catch(n){return console.error(n),{}}}var Pf=o(36394),If=o.n(Pf),vd=o(8304),Ff=o.n(vd);function kf(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];this.message=s[0],r&&r.apply(this,s)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var Qi=o(56855),Mo=o.n(Qi),Ms=["properties"],Lo=["properties"],Fi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],gd=["schema/example","items/example"];function Rf(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Ms.indexOf(r)>-1&&Lo.indexOf(n)===-1||Fi.indexOf(a)>-1||gd.some(function(s){return a.indexOf(s)>-1})}function qa(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,s=n.getBaseUrlForNodePath,c=s===void 0?function(y){var b;return a.getContext(_e()(b=[]).call(b,pa(r),pa(y))).baseDoc}:s,p=n.targetKeys,m=p===void 0?["$ref","$$ref"]:p,v=[];return Mo()(e).forEach(function(){if(Ge()(m).call(m,this.key)&&typeof this.node=="string"){var b=this.path,I=_e()(r).call(r,this.path),R=Ls(this.node,c(b));v.push(a.replace(I,R))}}),v}function Ls(e,r){var n,a=e.split("#"),s=at(a,2),c=s[0],p=s[1],m=fe.resolve(c||"",r||"");return p?_e()(n="".concat(m,"#")).call(n,p):m}var Gl="application/json, application/yaml",Mf=/^([a-z]+:\/\/|\/\/)/i,ki=kf("JSONRefError",function(r,n,a){this.originalError=a,te()(this,n||{})}),wn={},Ns=new(If()),$l=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],Kl=function(r){return $l.some(function(n){return n(r)})},md={key:"$ref",plugin:function(r,n,a,s){var c=s.getInstance(),p=Xn()(a).call(a,0,-1);if(!(Rf(p)||Kl(p))){var m=s.getContext(a),v=m.baseDoc;if(typeof r!="string")return new ki("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:v,fullPath:a});var y=No(r),b=y[0],I=y[1]||"",R;try{R=v||b?Nf(b,v):null}catch(ae){return Ds(ae,{pointer:I,$ref:r,basePath:R,fullPath:a})}var N,G;if(xd(I,R,p,s)&&!c.useCircularStructures){var ee=Ls(r,R);return r===ee?null:Jt.replace(a,ee)}if(R==null?(G=Yl(I),N=s.get(G),typeof N=="undefined"&&(N=new ki("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:v,fullPath:a}))):(N=Df(R,I),N.__value!=null?N=N.__value:N=N.catch(function(ae){throw Ds(ae,{pointer:I,$ref:r,baseDoc:v,fullPath:a})})),N instanceof Error)return[Jt.remove(a),N];var q=Ls(r,R),oe=Jt.replace(p,N,{$$ref:q});if(R&&R!==v)return[oe,Jt.context(p,{baseDoc:R})];try{if(!Xl(s.state,oe)||c.useCircularStructures)return oe}catch(ae){return null}}}},_a=te()(md,{docCache:wn,absoluteify:Nf,clearCache:yd,JSONRefError:ki,wrapError:Ds,getDoc:eo,split:No,extractFromDoc:Df,fetchJSON:Bf,extract:Bs,jsonPointerToArray:Yl,unescapeJsonPointerToken:js});const Lf=_a;function Nf(e,r){if(!Mf.test(e)){if(!r){var n;throw new ki(_e()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return fe.resolve(r,e)}return e}function Ds(e,r){var n;if(e&&e.response&&e.response.body){var a;n=_e()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new ki("Could not resolve reference: ".concat(n),r,e)}function No(e){return(e+"").split("#")}function Df(e,r){var n=wn[e];if(n&&!Jt.isPromise(n))try{var a=Bs(r,n);return te()(Oi().resolve(a),{__value:a})}catch(s){return Oi().reject(s)}return eo(e).then(function(s){return Bs(r,s)})}function yd(e){typeof e!="undefined"?delete wn[e]:Rt()(wn).forEach(function(r){delete wn[r]})}function eo(e){var r=wn[e];return r?Jt.isPromise(r)?r:Oi().resolve(r):(wn[e]=_a.fetchJSON(e).then(function(n){return wn[e]=n,n}),wn[e])}function Bf(e){return fetch(e,{headers:{Accept:Gl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ll.load(r)})}function Bs(e,r){var n=Yl(e);if(n.length<1)return r;var a=Jt.getIn(r,n);if(typeof a=="undefined")throw new ki("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function Yl(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat($(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:Xe()(r=e.split("/")).call(r,js)}function js(e){if(typeof e!="string")return e;var r=new(Ff())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Jl(e){var r,n=new(Ff())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Xn()(r=n.toString()).call(r,1)}function bd(e){return e.length===0?"":"/".concat(Xe()(e).call(e,Jl).join("/"))}var jf=function(r){return!r||r==="/"||r==="#"};function Vs(e,r){if(jf(r))return!0;var n=e.charAt(r.length),a=Xn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function xd(e,r,n,a){var s,c,p=Ns.get(a);p||(p={},Ns.set(a,p));var m=bd(n),v=_e()(s="".concat(r||"<specmap-base>","#")).call(s,e),y=m.replace(/allOf\/\d+\/?/g,""),b=a.contextTree.get([]).baseDoc;if(r===b&&Vs(y,e))return!0;var I="",R=n.some(function(N){var G;return I=_e()(G="".concat(I,"/")).call(G,Jl(N)),p[I]&&p[I].some(function(ee){return Vs(ee,v)||Vs(v,ee)})});if(R)return!0;p[y]=_e()(c=p[y]||[]).call(c,v)}function Xl(e,r){var n=[e];return r.path.reduce(function(s,c){return n.push(s[c]),s[c]},e),a(r.value);function a(s){return Jt.isObject(s)&&(n.indexOf(s)>=0||Rt()(s).some(function(c){return a(s[c])}))}}const Do={key:"allOf",plugin:function(r,n,a,s,c){if(!(c.meta&&c.meta.$$ref)){var p=Xn()(a).call(a,0,-1);if(!Rf(p)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var v=!1,y=c.value;if(p.forEach(function(N){!y||(y=y[N])}),y=K({},y),Rt()(y).length!==0){delete y.allOf;var b=[];if(b.push(s.replace(p,{})),r.forEach(function(N,G){if(!s.isObject(N)){if(v)return null;v=!0;var ee=new TypeError("Elements in allOf must be objects");return ee.fullPath=a,b.push(ee)}b.push(s.mergeDeep(p,N));var q=Xn()(a).call(a,0,-1),oe=qa(N,q,{getBaseUrlForNodePath:function(pe){var ve;return s.getContext(_e()(ve=[]).call(ve,pa(a),[G],pa(pe))).baseDoc},specmap:s});b.push.apply(b,pa(oe))}),y.example){var I;b.push(s.remove(_e()(I=[]).call(I,p,"example")))}if(b.push(s.mergeDeep(p,y)),!y.$$ref){var R;b.push(s.remove(_e()(R=[]).call(R,p,"$$ref")))}return b}}}}},Bo={key:"parameters",plugin:function(r,n,a,s){if(Array.isArray(r)&&r.length){var c=te()([],r),p=Xn()(a).call(a,0,-1),m=K({},Jt.getIn(s.spec,p));return r.forEach(function(v,y){try{c[y].default=s.parameterMacro(m,v)}catch(I){var b=new Error(I);return b.fullPath=a,b}}),Jt.replace(a,c)}return Jt.replace(a,r)}},Sd={key:"properties",plugin:function(r,n,a,s){var c=K({},r);for(var p in r)try{c[p].default=s.modelPropertyMacro(c[p])}catch(y){var m=new Error(y);return m.fullPath=a,m}var v=Jt.replace(a,c);return v}};var Vf=function(){function e(r){Sn(this,e),this.root=Ql(r||{})}return Ln(e,[{key:"set",value:function(n,a){var s=this.getParent(n,!0);if(!s){Us(this.root,a,null);return}var c=n[n.length-1],p=s.children;if(p[c]){Us(p[c],a,s);return}p[c]=Ql(a,s)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,s,c,p=0;p<n.length&&(c=n[p],s=a.children,!!s[c]);p+=1)a=s[c];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:Xn()(n).call(n,0,-1).reduce(function(s,c){if(!s)return s;var p=s.children;return!p[c]&&a&&(p[c]=Ql(null,s)),p[c]},this.root)}}]),e}();function Ql(e,r){return Us({children:{}},e,r)}function Us(e,r,n){return e.value=r||{},e.protoValue=n?K(K({},n.protoValue),e.value):e.value,Rt()(e.children).forEach(function(a){var s=e.children[a];e.children[a]=Us(s,s.value,e)}),e}var Uf=100,Wf=function(){},Hf=function(){function e(r){var n=this,a,s;Sn(this,e),te()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Vf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:te()(Object.create(this),Jt,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=$e()(a=Xe()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,Jt.isFunction),this.patches.push(Jt.add([],this.spec)),this.patches.push(Jt.context([],this.context)),this.updatePatches(this.patches)}return Ln(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,s=arguments.length,c=new Array(s>1?s-1:0),p=1;p<s;p++)c[p-1]=arguments[p];(a=console).log.apply(a,c)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,s,c=arguments.length,p=new Array(c>1?c-1:0),m=1;m<c;m++)p[m-1]=arguments[m];(a=console).log.apply(a,_e()(s=["[".concat(n,"] ")]).call(s,p))}}},{key:"wrapPlugin",value:function(n,a){var s=this.pathDiscriminator,c=null,p;return n[this.pluginProp]?(c=n,p=n[this.pluginProp]):Jt.isFunction(n)?p=n:Jt.isObject(n)&&(p=m(n)),te()(p.bind(c),{pluginName:n.name||a,isGenerator:Jt.isGenerator(p)});function m(v){var y=function(I,R){return Array.isArray(I)?I.every(function(N,G){return N===R[G]}):!0};return be().mark(function b(I,R){var N,G,ee,q,oe,ae;return be().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:ae=function(Te,Ae,Se){var Ce,Fe,Re,Ue,ze,Ct,qe,nr,ur,jt,fr,$t,cr;return be().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(Jt.isObject(Te)){Ut.next=6;break}if(v.key!==Ae[Ae.length-1]){Ut.next=4;break}return Ut.next=4,v.plugin(Te,v.key,Ae,R);case 4:Ut.next=30;break;case 6:Ce=Ae.length-1,Fe=Ae[Ce],Re=Ae.indexOf("properties"),Ue=Fe==="properties"&&Ce===Re,ze=R.allowMetaPatches&&G[Te.$$ref],Ct=0,qe=Rt()(Te);case 12:if(!(Ct<qe.length)){Ut.next=30;break}if(nr=qe[Ct],ur=Te[nr],jt=_e()(Ae).call(Ae,nr),fr=Jt.isObject(ur),$t=Te.$$ref,ze){Ut.next=22;break}if(!fr){Ut.next=22;break}return R.allowMetaPatches&&$t&&(G[$t]=!0),Ut.delegateYield(ae(ur,jt,Se),"t0",22);case 22:if(!(!Ue&&nr===v.key)){Ut.next=27;break}if(cr=y(s,Ae),!(!s||cr)){Ut.next=27;break}return Ut.next=27,v.plugin(ur,nr,jt,R,Se);case 27:Ct++,Ut.next=12;break;case 30:case"end":return Ut.stop()}},N)},N=be().mark(ae),G={},ee=je($e()(I).call(I,Jt.isAdditiveMutation)),ve.prev=4,ee.s();case 6:if((q=ee.n()).done){ve.next=11;break}return oe=q.value,ve.delegateYield(ae(oe.value,oe.path,oe),"t0",9);case 9:ve.next=6;break;case 11:ve.next=16;break;case 13:ve.prev=13,ve.t1=ve.catch(4),ee.e(ve.t1);case 16:return ve.prev=16,ee.f(),ve.finish(16);case 19:case"end":return ve.stop()}},b,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Yi()(n=this.wrappedPlugins).call(n,function(s){var c=a.getMutationsForPlugin(s);return c.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return Oi().race(Xe()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var s=this.constructor.getPluginName(n);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(n){var a=this;Jt.normalizeArray(n).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!Jt.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),Jt.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(Jt.isContextPatch(s)){a.setContext(s.path,s.value);return}if(Jt.isMutation(s)){a.updateMutations(s);return}}catch(c){console.error(c),a.errors.push(c)}})}},{key:"updateMutations",value:function(n){$(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=K({},n.value));var a=Jt.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,s=this.promisedPatches.indexOf(n);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}sd()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(s){var c=K(K({},n),{},{value:s});a.removePromisedPatch(n),a.updatePatches(c)}).catch(function(s){a.removePromisedPatch(n),a.updatePatches(s)}),n.value}},{key:"getMutations",value:function(n,a){var s;return n=n||0,typeof a!="number"&&(a=this.mutations.length),Xn()(s=this.mutations).call(s,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return Jt.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,s=this.nextPlugin();if(!s){var c=this.nextPromisedPatch();if(c)return c.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var p={spec:this.state,errors:this.errors};return this.showDebug&&(p.patches=this.allPatches),Oi().resolve(p)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Uf){var m;return Oi().resolve({spec:a.state,errors:_e()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(Uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var v,y=Xe()(v=this.promisedPatches).call(v,function(R){return R.value});return Oi().all(Xe()(y).call(y,function(R){return R.then(Wf,Wf)})).then(function(){return n.dispatch()})}return b();function b(){a.currentPlugin=s;var R=a.getCurrentMutations(),N=a.mutations.length-1;try{if(s.isGenerator){var G=je(s(R,a.getLib())),ee;try{for(G.s();!(ee=G.n()).done;){var q=ee.value;I(q)}}catch(ae){G.e(ae)}finally{G.f()}}else{var oe=s(R,a.getLib());I(oe)}}catch(ae){console.error(ae),I([te()(Object.create(ae),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:N})}return a.dispatch()}function I(R){R&&(R=Jt.fullyNormalizeArray(R),a.updatePatches(R,s))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return $e()(n).call(n,a)}}]),e}();function wd(e){return new Hf(e).dispatch()}var ya={refs:Lf,allOf:Do,parameters:Bo,properties:Sd},Zl=function(r){return String.prototype.toLowerCase.call(r)},Ws=function(r){return r.replace(/[^\w]/gi,"_")};function ql(e){var r=e.openapi;return r?H()(r).call(r,"3"):!1}function Op(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function jo(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!e||$(e)!=="object")return null;var c=(e.operationId||"").replace(/\s/g,"");return c.length?Ws(e.operationId):to(r,n,{v2OperationIdCompatibilityMode:s})}function to(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var c,p,m=_e()(c="".concat(r.toLowerCase(),"_")).call(c,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||_e()(p="".concat(e.substring(1),"_")).call(p,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return _e()(n="".concat(Zl(r))).call(n,Ws(e))}function _l(e,r){var n;return _e()(n="".concat(Zl(r),"-")).call(n,e)}function Hs(e,r){return!e||!e.paths?null:Ad(e,function(n){var a=n.pathName,s=n.method,c=n.operation;if(!c||$(c)!=="object")return!1;var p=c.operationId,m=jo(c,a,s),v=_l(a,s);return[m,v,p].some(function(y){return y&&y===r})})}function Ad(e,r){return zf(e,r,!0)||null}function zf(e,r,n){if(!e||$(e)!=="object"||!e.paths||$(e.paths)!=="object")return null;var a=e.paths;for(var s in a)for(var c in a[s])if(c.toUpperCase()!=="PARAMETERS"){var p=a[s][c];if(!(!p||$(p)!=="object")){var m={spec:e,pathName:s,method:c.toUpperCase(),operation:p},v=r(m);if(n&&v)return m}}}function Gf(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var s in n){var c,p=n[s];if(!(p==null||!Ge()(c=["object","function"]).call(c,$(p)))){var m=p.parameters,v=function(R){var N,G=p[R];if(G==null||!Ge()(N=["object","function"]).call(N,$(G)))return"continue";var ee=jo(G,s,R);if(ee){a[ee]?a[ee].push(G):a[ee]=[G];var q=a[ee];if(q.length>1)q.forEach(function(Ue,ze){var Ct;Ue.__originalOperationId=Ue.__originalOperationId||Ue.operationId,Ue.operationId=_e()(Ct="".concat(ee)).call(Ct,ze+1)});else if(typeof G.operationId!="undefined"){var oe=q[0];oe.__originalOperationId=oe.__originalOperationId||G.operationId,oe.operationId=ee}}if(R!=="parameters"){var ae=[],pe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(pe[ve]=r[ve],ae.push(pe));if(m&&(pe.parameters=m,ae.push(pe)),ae.length){var me=je(ae),Te;try{for(me.s();!(Te=me.n()).done;){var Ae=Te.value;for(var Se in Ae)if(!G[Se])G[Se]=Ae[Se];else if(Se==="parameters"){var Ce=je(Ae[Se]),Fe;try{var Re=function(){var ze=Fe.value,Ct=G[Se].some(function(qe){return qe.name&&qe.name===ze.name||qe.$ref&&qe.$ref===ze.$ref||qe.$$ref&&qe.$$ref===ze.$$ref||qe===ze});Ct||G[Se].push(ze)};for(Ce.s();!(Fe=Ce.n()).done;)Re()}catch(Ue){Ce.e(Ue)}finally{Ce.f()}}}}catch(Ue){me.e(Ue)}finally{me.f()}}}};for(var y in p)var b=v(y)}}return r.$$normalized=!0,e}function gr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,s=e.withCredentials?"include":"same-origin";return function(c){return e({url:c,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Gl},credentials:s}).then(function(p){return p.body})}}function Cd(){ya.refs.clearCache()}function zs(e){var r=e.fetch,n=e.spec,a=e.url,s=e.mode,c=e.allowMetaPatches,p=c===void 0?!0:c,m=e.pathDiscriminator,v=e.modelPropertyMacro,y=e.parameterMacro,b=e.requestInterceptor,I=e.responseInterceptor,R=e.skipNormalization,N=e.useCircularStructures,G=e.http,ee=e.baseDoc;if(ee=ee||a,G=r||G||$a,!n)return gr(G,{requestInterceptor:b,responseInterceptor:I})(ee).then(q);return q(n);function q(oe){ee&&(ya.refs.docCache[ee]=oe),ya.refs.fetchJSON=gr(G,{requestInterceptor:b,responseInterceptor:I});var ae=[ya.refs];return typeof y=="function"&&ae.push(ya.parameters),typeof v=="function"&&ae.push(ya.properties),s!=="strict"&&ae.push(ya.allOf),wd({spec:oe,context:{baseDoc:ee},plugins:ae,allowMetaPatches:p,pathDiscriminator:m,parameterMacro:y,modelPropertyMacro:v,useCircularStructures:N}).then(R?function(){var pe=Le(be().mark(function ve(me){return be().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.abrupt("return",me);case 1:case"end":return Ae.stop()}},ve)}));return function(ve){return pe.apply(this,arguments)}}():Gf)}}var Vo=o(72579),pn=o.n(Vo);function Gs(e,r){return Uo.apply(this,arguments)}function Uo(){return Uo=Le(be().mark(function e(r,n){var a,s,c,p,m,v,y,b,I,R,N,G,ee=arguments;return be().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return a=ee.length>2&&ee[2]!==void 0?ee[2]:{},s=a.returnEntireTree,c=a.baseDoc,p=a.requestInterceptor,m=a.responseInterceptor,v=a.parameterMacro,y=a.modelPropertyMacro,b=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:c,requestInterceptor:p,responseInterceptor:m,parameterMacro:v,modelPropertyMacro:y,useCircularStructures:b},R=Gf({spec:r}),N=R.spec,oe.next=6,zs(K(K({},I),{},{spec:N,allowMetaPatches:!0,skipNormalization:!0}));case 6:return G=oe.sent,!s&&Array.isArray(n)&&n.length&&(G.spec=pn()(G.spec,n)||null),oe.abrupt("return",G);case 9:case"end":return oe.stop()}},e)})),Uo.apply(this,arguments)}var $f=function(){return null},Kf=function(r){return Array.isArray(r)?r:[r]},Wo={mapTagOperations:tu,makeExecute:eu};function eu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,s=r.operationId;return function(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,v=e.responseInterceptor,y=e.userFetch;return e.execute(K({spec:e.spec,requestInterceptor:m,responseInterceptor:v,userFetch:y,pathName:n,method:a,parameters:c,operationId:s},p))}}}function Ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Wo.makeExecute(e),n=Wo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var s in n){a[s]={operations:{}};for(var c in n[s])a[s].operations[c]={execute:n[s][c]}}return{apis:a}}function Od(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Wo.makeExecute(e);return{apis:Wo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function tu(e){var r=e.spec,n=e.cb,a=n===void 0?$f:n,s=e.defaultTag,c=s===void 0?"default":s,p=e.v2OperationIdCompatibilityMode,m={},v={};return zf(r,function(y){var b=y.pathName,I=y.method,R=y.operation,N=R.tags?Kf(R.tags):[c];N.forEach(function(G){if(typeof G=="string"){v[G]=v[G]||{};var ee=v[G],q=jo(R,b,I,{v2OperationIdCompatibilityMode:p}),oe=a({spec:r,pathName:b,method:I,operation:R,operationId:q});if(m[q]){var ae;m[q]+=1,ee[_e()(ae="".concat(q)).call(ae,m[q])]=oe}else if(typeof ee[q]!="undefined"){var pe,ve,me=m[q]||1;m[q]=me+1,ee[_e()(pe="".concat(q)).call(pe,m[q])]=oe;var Te=ee[q];delete ee[q],ee[_e()(ve="".concat(q)).call(ve,me)]=Te}else ee[q]=oe}})}),v}var ru=o(26405);function lr(e,r){if(e==null)return{};var n={},a=O(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(ru(r).call(r,s)>=0)&&(n[s]=e[s]);return n}function Yf(e,r){if(e==null)return{};var n=lr(e,r),a,s;if(k){var c=k(e);for(s=0;s<c.length;s++)a=c[s],!(ru(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var Td=o(13421);/*!
88
+ */var Fo=new WeakMap,pf=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),ud=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function hf(e){return Fo.get(e)}function Jr(e,r){return e.observers.get(r)}function Ts(e,r){e.observers.delete(r.callback)}function vf(e,r){r.unobserve()}function gf(e,r){var n=[],a,s=hf(e);if(!s)s=new pf(e),Fo.set(e,s);else{var c=Jr(s,r);a=c&&c.observer}if(a)return a;if(a={},s.value=Lr(e),r){a.callback=r,a.next=null;var p=function(){Ps(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(p)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){Ps(a),clearTimeout(a.next),Ts(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},s.observers.set(r,new ud(r,a)),a}function Ps(e,r){r===void 0&&(r=!1);var n=Fo.get(e.object);Ji(n.value,e.object,e.patches,"",r),e.patches.length&&Pi(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function Ji(e,r,n,a,s){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var c=Oo(r),p=Oo(e),m=!1,v=!1,y=p.length-1;y>=0;y--){var b=p[y],I=e[b];if(Eo(r,b)&&!(r[b]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var D=r[b];typeof I=="object"&&I!=null&&typeof D=="object"&&D!=null&&Array.isArray(I)===Array.isArray(D)?Ji(I,D,n,a+"/"+li(b),s):I!==D&&(m=!0,s&&n.push({op:"test",path:a+"/"+li(b),value:Lr(I)}),n.push({op:"replace",path:a+"/"+li(b),value:Lr(D)}))}else Array.isArray(e)===Array.isArray(r)?(s&&n.push({op:"test",path:a+"/"+li(b),value:Lr(I)}),n.push({op:"remove",path:a+"/"+li(b)}),v=!0):(s&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!v&&c.length==p.length))for(var y=0;y<c.length;y++){var b=c[y];!Eo(e,b)&&r[b]!==void 0&&n.push({op:"add",path:a+"/"+li(b),value:Lr(r[b])})}}}function Is(e,r,n){n===void 0&&(n=!1);var a=[];return Ji(e,r,a,"",n),a}const fd=Object.assign({},d,x,{JsonPatchError:Wl,deepClone:Lr,escapePathComponent:li,unescapePathComponent:uf});var mf=o(39714),Hl=o.n(mf);const Jt={add:bf,replace:Xi,remove:cd,merge:Xa,mergeDeep:xf,context:Sf,getIn:dd,applyPatch:yf,parentPathMatch:Af,flatten:ui,fullyNormalizeArray:Cf,normalizeArray:Ii,isPromise:Ef,forEachNew:wf,forEachNewPrimitive:Ro,isJsonPatch:Tf,isContextPatch:hd,isPatch:ks,isMutation:zl,isAdditiveMutation:Fs,isGenerator:dn,isFunction:Of,isObject:ma,isError:pd};function yf(e,r,n){if(n=n||{},r=Y(Y({},r),{},{path:r.path&&ko(r.path)}),r.op==="merge"){var a=Rs(e,r.path);te()(a,r.value),Pi(e,[Xi(r.path,a)])}else if(r.op==="mergeDeep"){var s=Rs(e,r.path),c=Hl()(s,r.value);e=Pi(e,[Xi(r.path,c)]).newDocument}else if(r.op==="add"&&r.path===""&&ma(r.value)){var p=Rt()(r.value).reduce(function(I,D){return I.push({op:"add",path:"/".concat(ko(D)),value:r.value[D]}),I},[]);Pi(e,p)}else if(r.op==="replace"&&r.path===""){var m=r,v=m.value;n.allowMetaPatches&&r.meta&&Fs(r)&&(Array.isArray(r.value)||ma(r.value))&&(v=Y(Y({},v),r.meta)),e=v}else if(Pi(e,[r]),n.allowMetaPatches&&r.meta&&Fs(r)&&(Array.isArray(r.value)||ma(r.value))){var y=Rs(e,r.path),b=Y(Y({},y),r.meta);Pi(e,[Xi(r.path,b)])}return e}function ko(e){return Array.isArray(e)?e.length<1?"":"/".concat(Xe()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function bf(e,r){return{op:"add",path:e,value:r}}function Xi(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function cd(e){return{op:"remove",path:e}}function Xa(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function xf(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function Sf(e,r){return{type:"context",path:e,value:r}}function wf(e,r){try{return Qa(e,ga,r)}catch(n){return n}}function Ro(e,r){try{return Qa(e,va,r)}catch(n){return n}}function Qa(e,r,n){var a,s=Xe()(a=$e()(e).call(e,Fs)).call(a,function(m){return r(m.value,n,m.path)})||[],c=ui(s),p=Za(c);return p}function va(e,r,n){if(n=n||[],Array.isArray(e))return Xe()(e).call(e,function(s,c){return va(s,r,_e()(n).call(n,c))});if(ma(e)){var a;return Xe()(a=Rt()(e)).call(a,function(s){return va(e[s],r,_e()(n).call(n,s))})}return r(e,n[n.length-1],n)}function ga(e,r,n){n=n||[];var a=[];if(n.length>0){var s=r(e,n[n.length-1],n);s&&(a=_e()(a).call(a,s))}if(Array.isArray(e)){var c=Xe()(e).call(e,function(v,y){return ga(v,r,_e()(n).call(n,y))});c&&(a=_e()(a).call(a,c))}else if(ma(e)){var p,m=Xe()(p=Rt()(e)).call(p,function(v){return ga(e[v],r,_e()(n).call(n,v))});m&&(a=_e()(a).call(a,m))}return a=ui(a),a}function Af(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function dd(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function Cf(e){return Za(ui(Ii(e)))}function Ii(e){return Array.isArray(e)?e:[e]}function ui(e){var r;return _e()(r=[]).apply(r,pa(Xe()(e).call(e,function(n){return Array.isArray(n)?ui(n):n})))}function Za(e){return $e()(e).call(e,function(r){return typeof r!="undefined"})}function ma(e){return e&&G(e)==="object"}function Ef(e){return ma(e)&&Of(e.then)}function Of(e){return e&&typeof e=="function"}function pd(e){return e instanceof Error}function Tf(e){if(ks(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function dn(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function zl(e){return Tf(e)||ks(e)&&e.type==="mutation"}function Fs(e){return zl(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function hd(e){return ks(e)&&e.type==="context"}function ks(e){return e&&G(e)==="object"}function Rs(e,r){try{return Po(e,r)}catch(n){return console.error(n),{}}}var Pf=o(36394),If=o.n(Pf),vd=o(8304),Ff=o.n(vd);function kf(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];this.message=s[0],r&&r.apply(this,s)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var Qi=o(56855),Mo=o.n(Qi),Ms=["properties"],Lo=["properties"],Fi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],gd=["schema/example","items/example"];function Rf(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Ms.indexOf(r)>-1&&Lo.indexOf(n)===-1||Fi.indexOf(a)>-1||gd.some(function(s){return a.indexOf(s)>-1})}function qa(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,s=n.getBaseUrlForNodePath,c=s===void 0?function(y){var b;return a.getContext(_e()(b=[]).call(b,pa(r),pa(y))).baseDoc}:s,p=n.targetKeys,m=p===void 0?["$ref","$$ref"]:p,v=[];return Mo()(e).forEach(function(){if(Ge()(m).call(m,this.key)&&typeof this.node=="string"){var b=this.path,I=_e()(r).call(r,this.path),D=Ls(this.node,c(b));v.push(a.replace(I,D))}}),v}function Ls(e,r){var n,a=e.split("#"),s=at(a,2),c=s[0],p=s[1],m=fe.resolve(c||"",r||"");return p?_e()(n="".concat(m,"#")).call(n,p):m}var Gl="application/json, application/yaml",Mf=/^([a-z]+:\/\/|\/\/)/i,ki=kf("JSONRefError",function(r,n,a){this.originalError=a,te()(this,n||{})}),wn={},Ns=new(If()),$l=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],Kl=function(r){return $l.some(function(n){return n(r)})},md={key:"$ref",plugin:function(r,n,a,s){var c=s.getInstance(),p=Xn()(a).call(a,0,-1);if(!(Rf(p)||Kl(p))){var m=s.getContext(a),v=m.baseDoc;if(typeof r!="string")return new ki("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:v,fullPath:a});var y=No(r),b=y[0],I=y[1]||"",D;try{D=v||b?Nf(b,v):null}catch(ae){return Ds(ae,{pointer:I,$ref:r,basePath:D,fullPath:a})}var B,$;if(xd(I,D,p,s)&&!c.useCircularStructures){var K=Ls(r,D);return r===K?null:Jt.replace(a,K)}if(D==null?($=Yl(I),B=s.get($),typeof B=="undefined"&&(B=new ki("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:v,fullPath:a}))):(B=Df(D,I),B.__value!=null?B=B.__value:B=B.catch(function(ae){throw Ds(ae,{pointer:I,$ref:r,baseDoc:v,fullPath:a})})),B instanceof Error)return[Jt.remove(a),B];var q=Ls(r,D),oe=Jt.replace(p,B,{$$ref:q});if(D&&D!==v)return[oe,Jt.context(p,{baseDoc:D})];try{if(!Xl(s.state,oe)||c.useCircularStructures)return oe}catch(ae){return null}}}},_a=te()(md,{docCache:wn,absoluteify:Nf,clearCache:yd,JSONRefError:ki,wrapError:Ds,getDoc:eo,split:No,extractFromDoc:Df,fetchJSON:Bf,extract:Bs,jsonPointerToArray:Yl,unescapeJsonPointerToken:js});const Lf=_a;function Nf(e,r){if(!Mf.test(e)){if(!r){var n;throw new ki(_e()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return fe.resolve(r,e)}return e}function Ds(e,r){var n;if(e&&e.response&&e.response.body){var a;n=_e()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new ki("Could not resolve reference: ".concat(n),r,e)}function No(e){return(e+"").split("#")}function Df(e,r){var n=wn[e];if(n&&!Jt.isPromise(n))try{var a=Bs(r,n);return te()(Oi().resolve(a),{__value:a})}catch(s){return Oi().reject(s)}return eo(e).then(function(s){return Bs(r,s)})}function yd(e){typeof e!="undefined"?delete wn[e]:Rt()(wn).forEach(function(r){delete wn[r]})}function eo(e){var r=wn[e];return r?Jt.isPromise(r)?r:Oi().resolve(r):(wn[e]=_a.fetchJSON(e).then(function(n){return wn[e]=n,n}),wn[e])}function Bf(e){return fetch(e,{headers:{Accept:Gl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ll.load(r)})}function Bs(e,r){var n=Yl(e);if(n.length<1)return r;var a=Jt.getIn(r,n);if(typeof a=="undefined")throw new ki("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function Yl(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(G(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:Xe()(r=e.split("/")).call(r,js)}function js(e){if(typeof e!="string")return e;var r=new(Ff())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Jl(e){var r,n=new(Ff())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Xn()(r=n.toString()).call(r,1)}function bd(e){return e.length===0?"":"/".concat(Xe()(e).call(e,Jl).join("/"))}var jf=function(r){return!r||r==="/"||r==="#"};function Vs(e,r){if(jf(r))return!0;var n=e.charAt(r.length),a=Xn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function xd(e,r,n,a){var s,c,p=Ns.get(a);p||(p={},Ns.set(a,p));var m=bd(n),v=_e()(s="".concat(r||"<specmap-base>","#")).call(s,e),y=m.replace(/allOf\/\d+\/?/g,""),b=a.contextTree.get([]).baseDoc;if(r===b&&Vs(y,e))return!0;var I="",D=n.some(function(B){var $;return I=_e()($="".concat(I,"/")).call($,Jl(B)),p[I]&&p[I].some(function(K){return Vs(K,v)||Vs(v,K)})});if(D)return!0;p[y]=_e()(c=p[y]||[]).call(c,v)}function Xl(e,r){var n=[e];return r.path.reduce(function(s,c){return n.push(s[c]),s[c]},e),a(r.value);function a(s){return Jt.isObject(s)&&(n.indexOf(s)>=0||Rt()(s).some(function(c){return a(s[c])}))}}const Do={key:"allOf",plugin:function(r,n,a,s,c){if(!(c.meta&&c.meta.$$ref)){var p=Xn()(a).call(a,0,-1);if(!Rf(p)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var v=!1,y=c.value;if(p.forEach(function(B){!y||(y=y[B])}),y=Y({},y),Rt()(y).length!==0){delete y.allOf;var b=[];if(b.push(s.replace(p,{})),r.forEach(function(B,$){if(!s.isObject(B)){if(v)return null;v=!0;var K=new TypeError("Elements in allOf must be objects");return K.fullPath=a,b.push(K)}b.push(s.mergeDeep(p,B));var q=Xn()(a).call(a,0,-1),oe=qa(B,q,{getBaseUrlForNodePath:function(pe){var Ce;return s.getContext(_e()(Ce=[]).call(Ce,pa(a),[$],pa(pe))).baseDoc},specmap:s});b.push.apply(b,pa(oe))}),y.example){var I;b.push(s.remove(_e()(I=[]).call(I,p,"example")))}if(b.push(s.mergeDeep(p,y)),!y.$$ref){var D;b.push(s.remove(_e()(D=[]).call(D,p,"$$ref")))}return b}}}}},Bo={key:"parameters",plugin:function(r,n,a,s){if(Array.isArray(r)&&r.length){var c=te()([],r),p=Xn()(a).call(a,0,-1),m=Y({},Jt.getIn(s.spec,p));return r.forEach(function(v,y){try{c[y].default=s.parameterMacro(m,v)}catch(I){var b=new Error(I);return b.fullPath=a,b}}),Jt.replace(a,c)}return Jt.replace(a,r)}},Sd={key:"properties",plugin:function(r,n,a,s){var c=Y({},r);for(var p in r)try{c[p].default=s.modelPropertyMacro(c[p])}catch(y){var m=new Error(y);return m.fullPath=a,m}var v=Jt.replace(a,c);return v}};var Vf=function(){function e(r){Sn(this,e),this.root=Ql(r||{})}return Ln(e,[{key:"set",value:function(n,a){var s=this.getParent(n,!0);if(!s){Us(this.root,a,null);return}var c=n[n.length-1],p=s.children;if(p[c]){Us(p[c],a,s);return}p[c]=Ql(a,s)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,s,c,p=0;p<n.length&&(c=n[p],s=a.children,!!s[c]);p+=1)a=s[c];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:Xn()(n).call(n,0,-1).reduce(function(s,c){if(!s)return s;var p=s.children;return!p[c]&&a&&(p[c]=Ql(null,s)),p[c]},this.root)}}]),e}();function Ql(e,r){return Us({children:{}},e,r)}function Us(e,r,n){return e.value=r||{},e.protoValue=n?Y(Y({},n.protoValue),e.value):e.value,Rt()(e.children).forEach(function(a){var s=e.children[a];e.children[a]=Us(s,s.value,e)}),e}var Uf=100,Wf=function(){},Hf=function(){function e(r){var n=this,a,s;Sn(this,e),te()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Vf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:te()(Object.create(this),Jt,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=$e()(a=Xe()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,Jt.isFunction),this.patches.push(Jt.add([],this.spec)),this.patches.push(Jt.context([],this.context)),this.updatePatches(this.patches)}return Ln(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,s=arguments.length,c=new Array(s>1?s-1:0),p=1;p<s;p++)c[p-1]=arguments[p];(a=console).log.apply(a,c)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,s,c=arguments.length,p=new Array(c>1?c-1:0),m=1;m<c;m++)p[m-1]=arguments[m];(a=console).log.apply(a,_e()(s=["[".concat(n,"] ")]).call(s,p))}}},{key:"wrapPlugin",value:function(n,a){var s=this.pathDiscriminator,c=null,p;return n[this.pluginProp]?(c=n,p=n[this.pluginProp]):Jt.isFunction(n)?p=n:Jt.isObject(n)&&(p=m(n)),te()(p.bind(c),{pluginName:n.name||a,isGenerator:Jt.isGenerator(p)});function m(v){var y=function(I,D){return Array.isArray(I)?I.every(function(B,$){return B===D[$]}):!0};return be().mark(function b(I,D){var B,$,K,q,oe,ae;return be().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:ae=function(Pe,he,me){var we,Fe,Re,Ue,ze,Ct,qe,nr,ur,jt,fr,$t,cr;return be().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(Jt.isObject(Pe)){Ut.next=6;break}if(v.key!==he[he.length-1]){Ut.next=4;break}return Ut.next=4,v.plugin(Pe,v.key,he,D);case 4:Ut.next=30;break;case 6:we=he.length-1,Fe=he[we],Re=he.indexOf("properties"),Ue=Fe==="properties"&&we===Re,ze=D.allowMetaPatches&&$[Pe.$$ref],Ct=0,qe=Rt()(Pe);case 12:if(!(Ct<qe.length)){Ut.next=30;break}if(nr=qe[Ct],ur=Pe[nr],jt=_e()(he).call(he,nr),fr=Jt.isObject(ur),$t=Pe.$$ref,ze){Ut.next=22;break}if(!fr){Ut.next=22;break}return D.allowMetaPatches&&$t&&($[$t]=!0),Ut.delegateYield(ae(ur,jt,me),"t0",22);case 22:if(!(!Ue&&nr===v.key)){Ut.next=27;break}if(cr=y(s,he),!(!s||cr)){Ut.next=27;break}return Ut.next=27,v.plugin(ur,nr,jt,D,me);case 27:Ct++,Ut.next=12;break;case 30:case"end":return Ut.stop()}},B)},B=be().mark(ae),$={},K=je($e()(I).call(I,Jt.isAdditiveMutation)),Ce.prev=4,K.s();case 6:if((q=K.n()).done){Ce.next=11;break}return oe=q.value,Ce.delegateYield(ae(oe.value,oe.path,oe),"t0",9);case 9:Ce.next=6;break;case 11:Ce.next=16;break;case 13:Ce.prev=13,Ce.t1=Ce.catch(4),K.e(Ce.t1);case 16:return Ce.prev=16,K.f(),Ce.finish(16);case 19:case"end":return Ce.stop()}},b,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Yi()(n=this.wrappedPlugins).call(n,function(s){var c=a.getMutationsForPlugin(s);return c.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return Oi().race(Xe()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var s=this.constructor.getPluginName(n);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(n){var a=this;Jt.normalizeArray(n).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!Jt.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),Jt.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(Jt.isContextPatch(s)){a.setContext(s.path,s.value);return}if(Jt.isMutation(s)){a.updateMutations(s);return}}catch(c){console.error(c),a.errors.push(c)}})}},{key:"updateMutations",value:function(n){G(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=Y({},n.value));var a=Jt.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,s=this.promisedPatches.indexOf(n);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}sd()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(s){var c=Y(Y({},n),{},{value:s});a.removePromisedPatch(n),a.updatePatches(c)}).catch(function(s){a.removePromisedPatch(n),a.updatePatches(s)}),n.value}},{key:"getMutations",value:function(n,a){var s;return n=n||0,typeof a!="number"&&(a=this.mutations.length),Xn()(s=this.mutations).call(s,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return Jt.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,s=this.nextPlugin();if(!s){var c=this.nextPromisedPatch();if(c)return c.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var p={spec:this.state,errors:this.errors};return this.showDebug&&(p.patches=this.allPatches),Oi().resolve(p)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Uf){var m;return Oi().resolve({spec:a.state,errors:_e()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(Uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var v,y=Xe()(v=this.promisedPatches).call(v,function(D){return D.value});return Oi().all(Xe()(y).call(y,function(D){return D.then(Wf,Wf)})).then(function(){return n.dispatch()})}return b();function b(){a.currentPlugin=s;var D=a.getCurrentMutations(),B=a.mutations.length-1;try{if(s.isGenerator){var $=je(s(D,a.getLib())),K;try{for($.s();!(K=$.n()).done;){var q=K.value;I(q)}}catch(ae){$.e(ae)}finally{$.f()}}else{var oe=s(D,a.getLib());I(oe)}}catch(ae){console.error(ae),I([te()(Object.create(ae),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:B})}return a.dispatch()}function I(D){D&&(D=Jt.fullyNormalizeArray(D),a.updatePatches(D,s))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return $e()(n).call(n,a)}}]),e}();function wd(e){return new Hf(e).dispatch()}var ya={refs:Lf,allOf:Do,parameters:Bo,properties:Sd},Zl=function(r){return String.prototype.toLowerCase.call(r)},Ws=function(r){return r.replace(/[^\w]/gi,"_")};function ql(e){var r=e.openapi;return r?H()(r).call(r,"3"):!1}function Op(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function jo(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!e||G(e)!=="object")return null;var c=(e.operationId||"").replace(/\s/g,"");return c.length?Ws(e.operationId):to(r,n,{v2OperationIdCompatibilityMode:s})}function to(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var c,p,m=_e()(c="".concat(r.toLowerCase(),"_")).call(c,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||_e()(p="".concat(e.substring(1),"_")).call(p,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return _e()(n="".concat(Zl(r))).call(n,Ws(e))}function _l(e,r){var n;return _e()(n="".concat(Zl(r),"-")).call(n,e)}function Hs(e,r){return!e||!e.paths?null:Ad(e,function(n){var a=n.pathName,s=n.method,c=n.operation;if(!c||G(c)!=="object")return!1;var p=c.operationId,m=jo(c,a,s),v=_l(a,s);return[m,v,p].some(function(y){return y&&y===r})})}function Ad(e,r){return zf(e,r,!0)||null}function zf(e,r,n){if(!e||G(e)!=="object"||!e.paths||G(e.paths)!=="object")return null;var a=e.paths;for(var s in a)for(var c in a[s])if(c.toUpperCase()!=="PARAMETERS"){var p=a[s][c];if(!(!p||G(p)!=="object")){var m={spec:e,pathName:s,method:c.toUpperCase(),operation:p},v=r(m);if(n&&v)return m}}}function Gf(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var s in n){var c,p=n[s];if(!(p==null||!Ge()(c=["object","function"]).call(c,G(p)))){var m=p.parameters,v=function(D){var B,$=p[D];if($==null||!Ge()(B=["object","function"]).call(B,G($)))return"continue";var K=jo($,s,D);if(K){a[K]?a[K].push($):a[K]=[$];var q=a[K];if(q.length>1)q.forEach(function(Ue,ze){var Ct;Ue.__originalOperationId=Ue.__originalOperationId||Ue.operationId,Ue.operationId=_e()(Ct="".concat(K)).call(Ct,ze+1)});else if(typeof $.operationId!="undefined"){var oe=q[0];oe.__originalOperationId=oe.__originalOperationId||$.operationId,oe.operationId=K}}if(D!=="parameters"){var ae=[],pe={};for(var Ce in r)(Ce==="produces"||Ce==="consumes"||Ce==="security")&&(pe[Ce]=r[Ce],ae.push(pe));if(m&&(pe.parameters=m,ae.push(pe)),ae.length){var Se=je(ae),Pe;try{for(Se.s();!(Pe=Se.n()).done;){var he=Pe.value;for(var me in he)if(!$[me])$[me]=he[me];else if(me==="parameters"){var we=je(he[me]),Fe;try{var Re=function(){var ze=Fe.value,Ct=$[me].some(function(qe){return qe.name&&qe.name===ze.name||qe.$ref&&qe.$ref===ze.$ref||qe.$$ref&&qe.$$ref===ze.$$ref||qe===ze});Ct||$[me].push(ze)};for(we.s();!(Fe=we.n()).done;)Re()}catch(Ue){we.e(Ue)}finally{we.f()}}}}catch(Ue){Se.e(Ue)}finally{Se.f()}}}};for(var y in p)var b=v(y)}}return r.$$normalized=!0,e}function gr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,s=e.withCredentials?"include":"same-origin";return function(c){return e({url:c,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Gl},credentials:s}).then(function(p){return p.body})}}function Cd(){ya.refs.clearCache()}function zs(e){var r=e.fetch,n=e.spec,a=e.url,s=e.mode,c=e.allowMetaPatches,p=c===void 0?!0:c,m=e.pathDiscriminator,v=e.modelPropertyMacro,y=e.parameterMacro,b=e.requestInterceptor,I=e.responseInterceptor,D=e.skipNormalization,B=e.useCircularStructures,$=e.http,K=e.baseDoc;if(K=K||a,$=r||$||$a,!n)return gr($,{requestInterceptor:b,responseInterceptor:I})(K).then(q);return q(n);function q(oe){K&&(ya.refs.docCache[K]=oe),ya.refs.fetchJSON=gr($,{requestInterceptor:b,responseInterceptor:I});var ae=[ya.refs];return typeof y=="function"&&ae.push(ya.parameters),typeof v=="function"&&ae.push(ya.properties),s!=="strict"&&ae.push(ya.allOf),wd({spec:oe,context:{baseDoc:K},plugins:ae,allowMetaPatches:p,pathDiscriminator:m,parameterMacro:y,modelPropertyMacro:v,useCircularStructures:B}).then(D?function(){var pe=Le(be().mark(function Ce(Se){return be().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.abrupt("return",Se);case 1:case"end":return he.stop()}},Ce)}));return function(Ce){return pe.apply(this,arguments)}}():Gf)}}var Vo=o(72579),pn=o.n(Vo);function Gs(e,r){return Uo.apply(this,arguments)}function Uo(){return Uo=Le(be().mark(function e(r,n){var a,s,c,p,m,v,y,b,I,D,B,$,K=arguments;return be().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return a=K.length>2&&K[2]!==void 0?K[2]:{},s=a.returnEntireTree,c=a.baseDoc,p=a.requestInterceptor,m=a.responseInterceptor,v=a.parameterMacro,y=a.modelPropertyMacro,b=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:c,requestInterceptor:p,responseInterceptor:m,parameterMacro:v,modelPropertyMacro:y,useCircularStructures:b},D=Gf({spec:r}),B=D.spec,oe.next=6,zs(Y(Y({},I),{},{spec:B,allowMetaPatches:!0,skipNormalization:!0}));case 6:return $=oe.sent,!s&&Array.isArray(n)&&n.length&&($.spec=pn()($.spec,n)||null),oe.abrupt("return",$);case 9:case"end":return oe.stop()}},e)})),Uo.apply(this,arguments)}var $f=function(){return null},Kf=function(r){return Array.isArray(r)?r:[r]},Wo={mapTagOperations:tu,makeExecute:eu};function eu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,s=r.operationId;return function(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,v=e.responseInterceptor,y=e.userFetch;return e.execute(Y({spec:e.spec,requestInterceptor:m,responseInterceptor:v,userFetch:y,pathName:n,method:a,parameters:c,operationId:s},p))}}}function Ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Wo.makeExecute(e),n=Wo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var s in n){a[s]={operations:{}};for(var c in n[s])a[s].operations[c]={execute:n[s][c]}}return{apis:a}}function Od(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Wo.makeExecute(e);return{apis:Wo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function tu(e){var r=e.spec,n=e.cb,a=n===void 0?$f:n,s=e.defaultTag,c=s===void 0?"default":s,p=e.v2OperationIdCompatibilityMode,m={},v={};return zf(r,function(y){var b=y.pathName,I=y.method,D=y.operation,B=D.tags?Kf(D.tags):[c];B.forEach(function($){if(typeof $=="string"){v[$]=v[$]||{};var K=v[$],q=jo(D,b,I,{v2OperationIdCompatibilityMode:p}),oe=a({spec:r,pathName:b,method:I,operation:D,operationId:q});if(m[q]){var ae;m[q]+=1,K[_e()(ae="".concat(q)).call(ae,m[q])]=oe}else if(typeof K[q]!="undefined"){var pe,Ce,Se=m[q]||1;m[q]=Se+1,K[_e()(pe="".concat(q)).call(pe,m[q])]=oe;var Pe=K[q];delete K[q],K[_e()(Ce="".concat(q)).call(Ce,Se)]=Pe}else K[q]=oe}})}),v}var ru=o(26405);function lr(e,r){if(e==null)return{};var n={},a=O(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(ru(r).call(r,s)>=0)&&(n[s]=e[s]);return n}function Yf(e,r){if(e==null)return{};var n=lr(e,r),a,s;if(k){var c=k(e);for(s=0;s<c.length;s++)a=c[s],!(ru(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var Td=o(13421);/*!
89
89
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
90
90
  *
91
91
  * Copyright (c) 2014-2017, Jon Schlinkert.
92
92
  * Released under the MIT License.
93
- */function ba(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jf(e){var r,n;return ba(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(ba(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const $s={body:Pd,header:Id,query:kd,path:Fd,formData:Or};function Pd(e){var r=e.req,n=e.value;r.body=n}function Or(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Id(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Fd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function kd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function xa(e,r){return Ge()(r).call(r,"application/json")?typeof e=="string"?e:zt()(e):e.toString()}function t(e){var r=e.req,n=e.value,a=e.parameter,s=a.name,c=a.style,p=a.explode,m=a.content;if(m){var v=Rt()(m)[0];r.url=r.url.split("{".concat(s,"}")).join(Pr(xa(n,v),{escape:!0}));return}var y=Ir({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(y)}function i(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var s=Rt()(a.content)[0];r.query[a.name]=xa(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var u=["accept","authorization","content-type"];function l(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(u.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=Rt()(n.content)[0];r.headers[n.name]=xa(a,s);return}typeof a!="undefined"&&(r.headers[n.name]=Ir({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function f(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var s=$(a);if(n.content){var c,p=Rt()(n.content)[0];r.headers.Cookie=_e()(c="".concat(n.name,"=")).call(c,xa(a,p));return}if(s!=="undefined"){var m=s==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+Ir({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var g=o(1858),S=o.n(g),T=function(){return typeof S()!="undefined"?S():typeof self!="undefined"?self:window}(),M=T.btoa;const j=M;function le(e,r){var n=e.operation,a=e.requestBody,s=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=de({request:r,securities:s,operation:n,spec:c});var v=n.requestBody||{},y=Rt()(v.content||{}),b=m&&y.indexOf(m)>-1;if(a||p){if(m&&b)r.headers["Content-Type"]=m;else if(!m){var I=y[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&b&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var R,N=$e()(R=Ar()(n.responses)).call(R,function(ee){var q=at(ee,2),oe=q[0],ae=q[1],pe=parseInt(oe,10);return pe>=200&&pe<300&&Jf(ae.content)}).reduce(function(ee,q){var oe=at(q,2),ae=oe[1];return _e()(ee).call(ee,Rt()(ae.content))},[]);N.length>0&&(r.headers.accept=N.join(", "))}if(a)if(m){if(y.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if($(a)==="object"){var G=(v.content[m]||{}).encoding||{};r.form={},Rt()(a).forEach(function(ee){r.form[ee]={value:a[ee],encoding:G[ee]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function de(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,m=K({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!Rt()(y).length,R=pn()(p,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Rt()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(N){Rt()(N).forEach(function(G){var ee=y[G],q=R[G];if(!!ee){var oe=ee.value||ee,ae=q.type;if(ee){if(ae==="apiKey")q.in==="query"&&(m.query[q.name]=oe),q.in==="header"&&(m.headers[q.name]=oe),q.in==="cookie"&&(m.cookies[q.name]=oe);else if(ae==="http"){if(/^basic$/i.test(q.scheme)){var pe,ve=oe.username||"",me=oe.password||"",Te=j(_e()(pe="".concat(ve,":")).call(pe,me));m.headers.Authorization="Basic ".concat(Te)}/^bearer$/i.test(q.scheme)&&(m.headers.Authorization="Bearer ".concat(oe))}else if(ae==="oauth2"||ae==="openIdConnect"){var Ae,Se=ee.token||{},Ce=q["x-tokenName"]||"access_token",Fe=Se[Ce],Re=Se.token_type;(!Re||Re.toLowerCase()==="bearer")&&(Re="Bearer"),m.headers.Authorization=_e()(Ae="".concat(Re," ")).call(Ae,Fe)}}}})}),m)}function we(e,r){var n=e.spec,a=e.operation,s=e.securities,c=e.requestContentType,p=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=ye({request:r,securities:s,operation:a,spec:n}),r.body||r.form||m){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=at(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=at(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&$e()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&$e()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var R,N,G=a.parameters&&$e()(R=a.parameters).call(R,function(q){return q.in==="body"}).length>0,ee=a.parameters&&$e()(N=a.parameters).call(N,function(q){return q.in==="formData"}).length>0;(G||ee)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function ye(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,m=K({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,R=c.security||I,N=y&&!!Rt()(y).length,G=p.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Rt()(a).length||!N||!R||Array.isArray(c.security)&&!c.security.length?r:(R.forEach(function(ee){Rt()(ee).forEach(function(q){var oe=y[q];if(!!oe){var ae=oe.token,pe=oe.value||oe,ve=G[q],me=ve.type,Te=ve["x-tokenName"]||"access_token",Ae=ae&&ae[Te],Se=ae&&ae.token_type;if(oe){if(me==="apiKey"){var Ce=ve.in==="query"?"query":"headers";m[Ce]=m[Ce]||{},m[Ce][ve.name]=pe}else if(me==="basic")if(pe.header)m.headers.authorization=pe.header;else{var Fe,Re=pe.username||"",Ue=pe.password||"";pe.base64=j(_e()(Fe="".concat(Re,":")).call(Fe,Ue)),m.headers.authorization="Basic ".concat(pe.base64)}else if(me==="oauth2"&&Ae){var ze;Se=!Se||Se.toLowerCase()==="bearer"?"Bearer":Se,m.headers.authorization=_e()(ze="".concat(Se," ")).call(ze,Ae)}}}})}),m)}var Ie=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Ne=function(r){return Array.isArray(r)?r:[]},He=kf("OperationNotFoundError",function(r,n,a){this.originalError=a,te()(this,n||{})}),Ye=function(r,n){return $e()(n).call(n,function(a){return a.name===r})},Qe=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var a=[];return Rt()(n).forEach(function(s){Rt()(n[s]).forEach(function(c){a.push(n[s][c])})}),a},Je={buildRequest:gt};function rt(e){var r=e.http,n=e.fetch,a=e.spec,s=e.operationId,c=e.pathName,p=e.method,m=e.parameters,v=e.securities,y=Yf(e,Ie),b=r||n||$a;c&&p&&!s&&(s=_l(c,p));var I=Je.buildRequest(K({spec:a,operationId:s,parameters:m,securities:v,http:b},y));return I.body&&(Jf(I.body)||Array.isArray(I.body))&&(I.body=zt()(I.body)),b(I)}function gt(e){var r,n,a=e.spec,s=e.operationId,c=e.responseContentType,p=e.scheme,m=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,R=e.serverVariables,N=e.http,G=e.signal,ee=e.parameters,q=e.parameterBuilders,oe=ql(a);q||(oe?q=w:q=$s);var ae=N&&N.withCredentials?"include":"same-origin",pe={url:"",credentials:ae,headers:{},cookies:{}};G&&(pe.signal=G),m&&(pe.requestInterceptor=m),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var ve=Hs(a,s);if(!ve)throw new He("Operation ".concat(s," not found"));var me=ve.operation,Te=me===void 0?{}:me,Ae=ve.method,Se=ve.pathName;if(pe.url+=Dt({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:R,pathName:Se,method:Ae}),!s)return delete pe.cookies,pe;pe.url+=Se,pe.method="".concat(Ae).toUpperCase(),ee=ee||{};var Ce=a.paths[Se]||{};c&&(pe.headers.accept=c);var Fe=Qe(_e()(r=_e()(n=[]).call(n,Ne(Te.parameters))).call(r,Ne(Ce.parameters)));Fe.forEach(function(ze){var Ct=q[ze.in],qe;if(ze.in==="body"&&ze.schema&&ze.schema.properties&&(qe=ee),qe=ze&&ze.name&&ee[ze.name],typeof qe=="undefined"){var nr;qe=ze&&ze.name&&ee[_e()(nr="".concat(ze.in,".")).call(nr,ze.name)]}else if(Ye(ze.name,Fe).length>1){var ur;console.warn(_e()(ur="Parameter '".concat(ze.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(ur,ze.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof ze.default!="undefined"&&typeof qe=="undefined"&&(qe=ze.default),typeof qe=="undefined"&&ze.required&&!ze.allowEmptyValue)throw new Error("Required parameter ".concat(ze.name," is not provided"));if(oe&&ze.schema&&ze.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(jt){throw new Error("Could not parse object parameter value string as JSON")}Ct&&Ct({req:pe,parameter:ze,value:qe,operation:Te,spec:a})}});var Re=K(K({},e),{},{operation:Te});if(oe?pe=le(Re,pe):pe=we(Re,pe),pe.cookies&&Rt()(pe.cookies).length){var Ue=Rt()(pe.cookies).reduce(function(ze,Ct){var qe=pe.cookies[Ct],nr=ze?"&":"",ur=Td.serialize(Ct,qe);return ze+nr+ur},"");pe.headers.Cookie=Ue}return pe.cookies&&delete pe.cookies,af(pe),pe}var ct=function(r){return r?r.replace(/\W/g,""):null};function Dt(e){var r=ql(e.spec);return r?dr(e):An(e)}function dr(e){var r=e.spec,n=e.pathName,a=e.method,s=e.server,c=e.contextUrl,p=e.serverVariables,m=p===void 0?{}:p,v=pn()(r,["paths",n,(a||"").toLowerCase(),"servers"])||pn()(r,["paths",n,"servers"])||pn()(r,["servers"]),y="",b=null;if(s&&v&&v.length){var I=Xe()(v).call(v,function(G){return G.url});I.indexOf(s)>-1&&(y=s,b=v[I.indexOf(s)])}if(!y&&v&&v.length){y=v[0].url;var R=at(v,1);b=R[0]}if(y.indexOf("{")>-1){var N=Sr(y);N.forEach(function(G){if(b.variables&&b.variables[G]){var ee=b.variables[G],q=m[G]||ee.default,oe=new RegExp("{".concat(G,"}"),"g");y=y.replace(oe,q)}})}return zr(y,c)}function zr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?fe.parse(fe.resolve(r,e)):fe.parse(e),a=fe.parse(r),s=ct(n.protocol)||ct(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",m;if(s&&c){var v;m=_e()(v="".concat(s,"://")).call(v,c+p)}else m=p;return m[m.length-1]==="/"?Xn()(m).call(m,0,-1):m}function Sr(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function An(e){var r=e.spec,n=e.scheme,a=e.contextUrl,s=a===void 0?"":a,c=fe.parse(s),p=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||p||ct(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(m&&v){var I;b=_e()(I="".concat(m,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Xn()(b).call(b,0,-1):b}Gt.http=$a,Gt.makeHttp=of.bind(null,Gt.http),Gt.resolve=zs,Gt.resolveSubtree=Gs,Gt.execute=rt,Gt.serializeRes=ws,Gt.serializeHeaders=jl,Gt.clearCache=Cd,Gt.makeApisTagOperation=Od,Gt.buildRequest=gt,Gt.helpers={opId:jo},Gt.getBaseUrl=Dt;function Gt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Gt))return new Gt(n);te()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||te()(r,Gt.makeApisTagOperation(r)),r});return a.client=this,a}Gt.prototype={http:$a,execute:function(r){return this.applyDefaults(),Gt.execute(K({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gt.resolve(K({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Gt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&H()(n).call(n,"http")){var a=fe.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Nr=Gt.helpers;const hn=Gt;var L=o(2784),Bt=o(77078),pt=o(27020),mr=o(77532),Fr=o(96087),Sa=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Ri=Object.values(Fr.FileUploadFormats),Xr=["application/octet-stream","application/pdf","application/gzip","application/zip"],Qn=["image/","audio/","video/"];function Dr(e){if(Qn.some(r=>e.startsWith(r)))return e}function ro(e){return Xr.includes(e)?!0:Qn.some(r=>e.startsWith(r))}function Mi(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(ro(n)?"binary":"");return r.type===Fr.DefinitionTypes.STRING&&Ri.includes(a)}function Zi(e,r){if(!e||!e.type||e.type==="any")return ro(r);const n=e.format||e.contentEncoding||"";return e.type===Fr.DefinitionTypes.STRING&&Ri.includes(n)}function qi(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function Qr({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Fr.FileUploadFormats.BASE64)}function no(e,r){return Sa(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===Fr.DefinitionTypes.STRING&&Qr(r)?a=yield qi(n[0]):r.type===Fr.DefinitionTypes.ARRAY&&r.items&&(Qr(r.items)?a=yield Promise.all(n.map(c=>Sa(this,null,function*(){return yield qi(c)}))):a=n),a})}var Ks=o(93892),ar=o(80127),Qt=o(58180),Nn=o(43284),Fg=o(16610);function kg({response:e}){return L.createElement(L.Fragment,null,L.createElement(Nn.EE,null," Body: "),Rg(e))}function Rg(e){return e.body?L.createElement(Bt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?L.createElement(Fg.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?L.createElement(Bt.SourceCode,{lang:(0,pt.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):L.createElement(Nn.w3,null,L.createElement("i",null,"(no content)")):null}var Xf=o(79978);function Mg({headers:e}){const r=(0,L.useContext)(Xf.jI),[n,a]=(0,L.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,c=Object.keys(e),p=!!s&&c.length>s,m=p&&n?[...c].splice(0,s):[...c],v=()=>{a(!n)};return L.createElement(L.Fragment,null,L.createElement(Nn.EE,null," Headers: "),L.createElement(Nn.w3,null,m.map(y=>L.createElement("div",{key:y},L.createElement(Tp,null,y,":"),L.createElement("code",null,e[y]))),p&&L.createElement(Pp,{onClick:v},n?"Show more...":"Hide headers")))}const Tp=Qt.ZP.strong`
93
+ */function ba(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jf(e){var r,n;return ba(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(ba(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const $s={body:Pd,header:Id,query:kd,path:Fd,formData:Or};function Pd(e){var r=e.req,n=e.value;r.body=n}function Or(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Id(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Fd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function kd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function xa(e,r){return Ge()(r).call(r,"application/json")?typeof e=="string"?e:zt()(e):e.toString()}function t(e){var r=e.req,n=e.value,a=e.parameter,s=a.name,c=a.style,p=a.explode,m=a.content;if(m){var v=Rt()(m)[0];r.url=r.url.split("{".concat(s,"}")).join(Pr(xa(n,v),{escape:!0}));return}var y=Ir({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(y)}function i(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var s=Rt()(a.content)[0];r.query[a.name]=xa(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var u=["accept","authorization","content-type"];function l(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(u.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=Rt()(n.content)[0];r.headers[n.name]=xa(a,s);return}typeof a!="undefined"&&(r.headers[n.name]=Ir({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function f(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var s=G(a);if(n.content){var c,p=Rt()(n.content)[0];r.headers.Cookie=_e()(c="".concat(n.name,"=")).call(c,xa(a,p));return}if(s!=="undefined"){var m=s==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+Ir({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var g=o(1858),S=o.n(g),T=function(){return typeof S()!="undefined"?S():typeof self!="undefined"?self:window}(),R=T.btoa;const j=R;function le(e,r){var n=e.operation,a=e.requestBody,s=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=de({request:r,securities:s,operation:n,spec:c});var v=n.requestBody||{},y=Rt()(v.content||{}),b=m&&y.indexOf(m)>-1;if(a||p){if(m&&b)r.headers["Content-Type"]=m;else if(!m){var I=y[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&b&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var D,B=$e()(D=Ar()(n.responses)).call(D,function(K){var q=at(K,2),oe=q[0],ae=q[1],pe=parseInt(oe,10);return pe>=200&&pe<300&&Jf(ae.content)}).reduce(function(K,q){var oe=at(q,2),ae=oe[1];return _e()(K).call(K,Rt()(ae.content))},[]);B.length>0&&(r.headers.accept=B.join(", "))}if(a)if(m){if(y.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(G(a)==="object"){var $=(v.content[m]||{}).encoding||{};r.form={},Rt()(a).forEach(function(K){r.form[K]={value:a[K],encoding:$[K]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function de(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,m=Y({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!Rt()(y).length,D=pn()(p,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Rt()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(B){Rt()(B).forEach(function($){var K=y[$],q=D[$];if(!!K){var oe=K.value||K,ae=q.type;if(K){if(ae==="apiKey")q.in==="query"&&(m.query[q.name]=oe),q.in==="header"&&(m.headers[q.name]=oe),q.in==="cookie"&&(m.cookies[q.name]=oe);else if(ae==="http"){if(/^basic$/i.test(q.scheme)){var pe,Ce=oe.username||"",Se=oe.password||"",Pe=j(_e()(pe="".concat(Ce,":")).call(pe,Se));m.headers.Authorization="Basic ".concat(Pe)}/^bearer$/i.test(q.scheme)&&(m.headers.Authorization="Bearer ".concat(oe))}else if(ae==="oauth2"||ae==="openIdConnect"){var he,me=K.token||{},we=q["x-tokenName"]||"access_token",Fe=me[we],Re=me.token_type;(!Re||Re.toLowerCase()==="bearer")&&(Re="Bearer"),m.headers.Authorization=_e()(he="".concat(Re," ")).call(he,Fe)}}}})}),m)}function Ae(e,r){var n=e.spec,a=e.operation,s=e.securities,c=e.requestContentType,p=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=ye({request:r,securities:s,operation:a,spec:n}),r.body||r.form||m){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=at(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=at(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&$e()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&$e()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var D,B,$=a.parameters&&$e()(D=a.parameters).call(D,function(q){return q.in==="body"}).length>0,K=a.parameters&&$e()(B=a.parameters).call(B,function(q){return q.in==="formData"}).length>0;($||K)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function ye(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,m=Y({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,D=c.security||I,B=y&&!!Rt()(y).length,$=p.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Rt()(a).length||!B||!D||Array.isArray(c.security)&&!c.security.length?r:(D.forEach(function(K){Rt()(K).forEach(function(q){var oe=y[q];if(!!oe){var ae=oe.token,pe=oe.value||oe,Ce=$[q],Se=Ce.type,Pe=Ce["x-tokenName"]||"access_token",he=ae&&ae[Pe],me=ae&&ae.token_type;if(oe){if(Se==="apiKey"){var we=Ce.in==="query"?"query":"headers";m[we]=m[we]||{},m[we][Ce.name]=pe}else if(Se==="basic")if(pe.header)m.headers.authorization=pe.header;else{var Fe,Re=pe.username||"",Ue=pe.password||"";pe.base64=j(_e()(Fe="".concat(Re,":")).call(Fe,Ue)),m.headers.authorization="Basic ".concat(pe.base64)}else if(Se==="oauth2"&&he){var ze;me=!me||me.toLowerCase()==="bearer"?"Bearer":me,m.headers.authorization=_e()(ze="".concat(me," ")).call(ze,he)}}}})}),m)}var Ie=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Ne=function(r){return Array.isArray(r)?r:[]},He=kf("OperationNotFoundError",function(r,n,a){this.originalError=a,te()(this,n||{})}),Ye=function(r,n){return $e()(n).call(n,function(a){return a.name===r})},Qe=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var a=[];return Rt()(n).forEach(function(s){Rt()(n[s]).forEach(function(c){a.push(n[s][c])})}),a},Je={buildRequest:gt};function rt(e){var r=e.http,n=e.fetch,a=e.spec,s=e.operationId,c=e.pathName,p=e.method,m=e.parameters,v=e.securities,y=Yf(e,Ie),b=r||n||$a;c&&p&&!s&&(s=_l(c,p));var I=Je.buildRequest(Y({spec:a,operationId:s,parameters:m,securities:v,http:b},y));return I.body&&(Jf(I.body)||Array.isArray(I.body))&&(I.body=zt()(I.body)),b(I)}function gt(e){var r,n,a=e.spec,s=e.operationId,c=e.responseContentType,p=e.scheme,m=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,D=e.serverVariables,B=e.http,$=e.signal,K=e.parameters,q=e.parameterBuilders,oe=ql(a);q||(oe?q=w:q=$s);var ae=B&&B.withCredentials?"include":"same-origin",pe={url:"",credentials:ae,headers:{},cookies:{}};$&&(pe.signal=$),m&&(pe.requestInterceptor=m),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var Ce=Hs(a,s);if(!Ce)throw new He("Operation ".concat(s," not found"));var Se=Ce.operation,Pe=Se===void 0?{}:Se,he=Ce.method,me=Ce.pathName;if(pe.url+=Dt({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:D,pathName:me,method:he}),!s)return delete pe.cookies,pe;pe.url+=me,pe.method="".concat(he).toUpperCase(),K=K||{};var we=a.paths[me]||{};c&&(pe.headers.accept=c);var Fe=Qe(_e()(r=_e()(n=[]).call(n,Ne(Pe.parameters))).call(r,Ne(we.parameters)));Fe.forEach(function(ze){var Ct=q[ze.in],qe;if(ze.in==="body"&&ze.schema&&ze.schema.properties&&(qe=K),qe=ze&&ze.name&&K[ze.name],typeof qe=="undefined"){var nr;qe=ze&&ze.name&&K[_e()(nr="".concat(ze.in,".")).call(nr,ze.name)]}else if(Ye(ze.name,Fe).length>1){var ur;console.warn(_e()(ur="Parameter '".concat(ze.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(ur,ze.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof ze.default!="undefined"&&typeof qe=="undefined"&&(qe=ze.default),typeof qe=="undefined"&&ze.required&&!ze.allowEmptyValue)throw new Error("Required parameter ".concat(ze.name," is not provided"));if(oe&&ze.schema&&ze.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(jt){throw new Error("Could not parse object parameter value string as JSON")}Ct&&Ct({req:pe,parameter:ze,value:qe,operation:Pe,spec:a})}});var Re=Y(Y({},e),{},{operation:Pe});if(oe?pe=le(Re,pe):pe=Ae(Re,pe),pe.cookies&&Rt()(pe.cookies).length){var Ue=Rt()(pe.cookies).reduce(function(ze,Ct){var qe=pe.cookies[Ct],nr=ze?"&":"",ur=Td.serialize(Ct,qe);return ze+nr+ur},"");pe.headers.Cookie=Ue}return pe.cookies&&delete pe.cookies,af(pe),pe}var ct=function(r){return r?r.replace(/\W/g,""):null};function Dt(e){var r=ql(e.spec);return r?dr(e):An(e)}function dr(e){var r=e.spec,n=e.pathName,a=e.method,s=e.server,c=e.contextUrl,p=e.serverVariables,m=p===void 0?{}:p,v=pn()(r,["paths",n,(a||"").toLowerCase(),"servers"])||pn()(r,["paths",n,"servers"])||pn()(r,["servers"]),y="",b=null;if(s&&v&&v.length){var I=Xe()(v).call(v,function($){return $.url});I.indexOf(s)>-1&&(y=s,b=v[I.indexOf(s)])}if(!y&&v&&v.length){y=v[0].url;var D=at(v,1);b=D[0]}if(y.indexOf("{")>-1){var B=Sr(y);B.forEach(function($){if(b.variables&&b.variables[$]){var K=b.variables[$],q=m[$]||K.default,oe=new RegExp("{".concat($,"}"),"g");y=y.replace(oe,q)}})}return zr(y,c)}function zr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?fe.parse(fe.resolve(r,e)):fe.parse(e),a=fe.parse(r),s=ct(n.protocol)||ct(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",m;if(s&&c){var v;m=_e()(v="".concat(s,"://")).call(v,c+p)}else m=p;return m[m.length-1]==="/"?Xn()(m).call(m,0,-1):m}function Sr(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function An(e){var r=e.spec,n=e.scheme,a=e.contextUrl,s=a===void 0?"":a,c=fe.parse(s),p=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||p||ct(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(m&&v){var I;b=_e()(I="".concat(m,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Xn()(b).call(b,0,-1):b}Gt.http=$a,Gt.makeHttp=of.bind(null,Gt.http),Gt.resolve=zs,Gt.resolveSubtree=Gs,Gt.execute=rt,Gt.serializeRes=ws,Gt.serializeHeaders=jl,Gt.clearCache=Cd,Gt.makeApisTagOperation=Od,Gt.buildRequest=gt,Gt.helpers={opId:jo},Gt.getBaseUrl=Dt;function Gt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Gt))return new Gt(n);te()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||te()(r,Gt.makeApisTagOperation(r)),r});return a.client=this,a}Gt.prototype={http:$a,execute:function(r){return this.applyDefaults(),Gt.execute(Y({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gt.resolve(Y({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Gt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&H()(n).call(n,"http")){var a=fe.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Nr=Gt.helpers;const hn=Gt;var M=o(2784),Bt=o(77078),dt=o(27020),mr=o(77532),Fr=o(96087),Sa=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Ri=Object.values(Fr.FileUploadFormats),Xr=["application/octet-stream","application/pdf","application/gzip","application/zip"],Qn=["image/","audio/","video/"];function Dr(e){if(Qn.some(r=>e.startsWith(r)))return e}function ro(e){return Xr.includes(e)?!0:Qn.some(r=>e.startsWith(r))}function Mi(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(ro(n)?"binary":"");return r.type===Fr.DefinitionTypes.STRING&&Ri.includes(a)}function Zi(e,r){if(!e||!e.type||e.type==="any")return ro(r);const n=e.format||e.contentEncoding||"";return e.type===Fr.DefinitionTypes.STRING&&Ri.includes(n)}function qi(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function Qr({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Fr.FileUploadFormats.BASE64)}function no(e,r){return Sa(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===Fr.DefinitionTypes.STRING&&Qr(r)?a=yield qi(n[0]):r.type===Fr.DefinitionTypes.ARRAY&&r.items&&(Qr(r.items)?a=yield Promise.all(n.map(c=>Sa(this,null,function*(){return yield qi(c)}))):a=n),a})}var Ks=o(93892),ar=o(80127),Qt=o(58180),Nn=o(43284),kg=o(16610);function Rg({response:e}){return M.createElement(M.Fragment,null,M.createElement(Nn.EE,null," Body: "),Mg(e))}function Mg(e){return e.body?M.createElement(Bt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?M.createElement(kg.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?M.createElement(Bt.SourceCode,{lang:(0,dt.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):M.createElement(Nn.w3,null,M.createElement("i",null,"(no content)")):null}var Xf=o(73908);function Lg({headers:e}){const r=(0,M.useContext)(Xf.jI),[n,a]=(0,M.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,c=Object.keys(e),p=!!s&&c.length>s,m=p&&n?[...c].splice(0,s):[...c],v=()=>{a(!n)};return M.createElement(M.Fragment,null,M.createElement(Nn.EE,null," Headers: "),M.createElement(Nn.w3,null,m.map(y=>M.createElement("div",{key:y},M.createElement(Tp,null,y,":"),M.createElement("code",null,e[y]))),p&&M.createElement(Pp,{onClick:v},n?"Show more...":"Hide headers")))}const Tp=Qt.ZP.strong`
94
94
  text-transform: capitalize;
95
95
  display: inline-block;
96
96
  padding-right: 5px;
@@ -98,7 +98,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
98
98
  cursor: pointer;
99
99
  margin-top: 5px;
100
100
  font-size: 14px;
101
- `;Tp.displayName="HeaderName",Pp.displayName="StyledShowMoreLabel";const Lg=Qt.ZP.div`
101
+ `;Tp.displayName="HeaderName",Pp.displayName="StyledShowMoreLabel";const Ng=Qt.ZP.div`
102
102
  margin-bottom: 10px;
103
103
  `,Rd=Qt.ZP.div`
104
104
  display: inline-block;
@@ -106,15 +106,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
106
106
  padding: 2px 0;
107
107
  text-align: center;
108
108
  color: var(--text-color-inverse);
109
- `,Ng=(0,Qt.ZP)(Rd)`
109
+ `,Dg=(0,Qt.ZP)(Rd)`
110
110
  color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
111
111
  `,Ip=Qt.ZP.header`
112
112
  font-weight: bold;
113
113
  margin-bottom: 10px;
114
- `,Dg=Qt.ZP.code`
114
+ `,Bg=Qt.ZP.code`
115
115
  border-left: 3px solid #ff4040;
116
116
  padding-left: 5px;
117
- `,Bg=({error:e,response:r,time:n})=>{const a=r||e&&e.response,s=a&&a.data&&a.data.length||0;let c;return s>1e6?c=(s/1e6).toFixed(2)+" MB":s>1e3?c=(s/1e3).toFixed(2)+" KB":c=s+" B",e&&!e.response||!a?L.createElement(L.Fragment,null,L.createElement(Ip,null," Could not get any response "),L.createElement(Dg,null,e&&e.message||"Unknown error"),L.createElement("br",null),L.createElement(Ip,null," Why this might have happened:"),L.createElement("div",null," - CORS is misconfigured on the server"),L.createElement("div",null," - The server couldn't send a response"),L.createElement("div",null," - No internet access"),L.createElement("div",null," - Documentation issue - contact API owner"),L.createElement("div",null," - Misconfigured security definition")):a?L.createElement(L.Fragment,null,L.createElement(Lg,null,L.createElement(Ng,{code:a.status},L.createElement("span",null," Status: "),a.status," ",a.statusText),L.createElement(Rd,null,L.createElement("span",null," Time: "),n,"ms"),L.createElement(Rd,null,L.createElement("span",null," Size: "),c)),L.createElement("div",null,L.createElement(Mg,{headers:a.headers}),L.createElement(kg,{response:a}))):L.createElement(L.Fragment,null,"Something went wrong")},jg=Qt.ZP.div`
117
+ `,jg=({error:e,response:r,time:n})=>{const a=r||e&&e.response,s=a&&a.data&&a.data.length||0;let c;return s>1e6?c=(s/1e6).toFixed(2)+" MB":s>1e3?c=(s/1e3).toFixed(2)+" KB":c=s+" B",e&&!e.response||!a?M.createElement(M.Fragment,null,M.createElement(Ip,null," Could not get any response "),M.createElement(Bg,null,e&&e.message||"Unknown error"),M.createElement("br",null),M.createElement(Ip,null," Why this might have happened:"),M.createElement("div",null," - CORS is misconfigured on the server"),M.createElement("div",null," - The server couldn't send a response"),M.createElement("div",null," - No internet access"),M.createElement("div",null," - Documentation issue - contact API owner"),M.createElement("div",null," - Misconfigured security definition")):a?M.createElement(M.Fragment,null,M.createElement(Ng,null,M.createElement(Dg,{code:a.status},M.createElement("span",null," Status: "),a.status," ",a.statusText),M.createElement(Rd,null,M.createElement("span",null," Time: "),n,"ms"),M.createElement(Rd,null,M.createElement("span",null," Size: "),c)),M.createElement("div",null,M.createElement(Lg,{headers:a.headers}),M.createElement(Rg,{response:a}))):M.createElement(M.Fragment,null,"Something went wrong")},Vg=Qt.ZP.div`
118
118
  display: flex;
119
119
  font-size: 12px;
120
120
  button {
@@ -160,14 +160,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
160
160
  background-color: var(--panel-try-it-tabs-disabled-background-color);
161
161
  color: var(--panel-try-it-tabs-disabled-text-color);
162
162
  `||""}
163
- `;function Vg({onChange:e,active:r,hasResponse:n}){return L.createElement(jg,null,L.createElement(Fp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),L.createElement(Fp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var kp=o(46521),Rp=o(50397);function Ug(e,r,n){const a=r.path||{},s=r.query||{},c=Object.keys(s);let p=(0,ar.v5)(e,a);const m=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!s[v])return"";const y=m(v);return y?(0,pt.d$)(y,s[v]):`${v}=${encodeURIComponent(s[v])}`}).filter(Boolean).join("&")),p}const Wg=({loading:e,operation:r,hasResponse:n,execute:a,params:s={}})=>L.createElement(mr.k1,null,L.createElement(kp.__,null,L.createElement(Rp.FH,{type:r.httpVerb},r.httpVerb),L.createElement(kp.y$,{wrap:"true"},Ug(r.path,s,r.parameters))),L.createElement(Hg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),Hg=(0,Qt.ZP)(Bt.Button)`
163
+ `;function Ug({onChange:e,active:r,hasResponse:n}){return M.createElement(Vg,null,M.createElement(Fp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),M.createElement(Fp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var kp=o(46521),Rp=o(50397);function Wg(e,r,n){const a=r.path||{},s=r.query||{},c=Object.keys(s);let p=(0,ar.v5)(e,a);const m=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!s[v])return"";const y=m(v);return y?(0,dt.d$)(y,s[v]):`${v}=${encodeURIComponent(s[v])}`}).filter(Boolean).join("&")),p}const Hg=({loading:e,operation:r,hasResponse:n,execute:a,params:s={}})=>M.createElement(mr.k1,null,M.createElement(kp.__,null,M.createElement(Rp.FH,{type:r.httpVerb},r.httpVerb),M.createElement(kp.y$,{wrap:"true"},Wg(r.path,s,r.parameters))),M.createElement(zg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),zg=(0,Qt.ZP)(Bt.Button)`
164
164
  width: var(--panel-try-it-action-button-width);
165
- `,zg=(0,L.memo)(Wg);function Md(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Mp(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ld(e,r,n){return r&&Mp(e.prototype,r),n&&Mp(e,n),e}function Gg(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Br(){return Br=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Br.apply(this,arguments)}function Lp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function Mt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Lp(Object(n),!0).forEach(function(a){Gg(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function $g(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Nd(e,r)}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qf(e)}function Nd(e,r){return Nd=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},Nd(e,r)}function Kg(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Yg(e,r){if(e==null)return{};var n={},a=Object.keys(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(r.indexOf(s)>=0)&&(n[s]=e[s]);return n}function jr(e,r){if(e==null)return{};var n=Yg(e,r),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)a=c[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function Jg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xg(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:Jg(e)}function Qg(e){var r=Kg();return function(){var a=Qf(e),s;if(r){var c=Qf(this).constructor;s=Reflect.construct(a,arguments,c)}else s=a.apply(this,arguments);return Xg(this,s)}}function kr(e,r){return qg(e)||em(e,r)||Dd(e,r)||rm()}function an(e){return Zg(e)||_g(e)||Dd(e)||tm()}function Zg(e){if(Array.isArray(e))return Bd(e)}function qg(e){if(Array.isArray(e))return e}function _g(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function em(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,s=!1,c=void 0;try{for(var p=e[Symbol.iterator](),m;!(a=(m=p.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(v){s=!0,c=v}finally{try{!a&&p.return!=null&&p.return()}finally{if(s)throw c}}return n}}function Dd(e,r){if(!!e){if(typeof e=="string")return Bd(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bd(e,r)}}function Bd(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function tm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
166
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
167
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nm(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Dd(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(v){throw v},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
168
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var v=n.next();return c=v.done,v},e:function(v){p=!0,m=v},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function im(e,r){return r={exports:{}},e(r,r.exports),r.exports}var _i=im(function(e){function r(b,I){for(var R=0,N=0;N<b.length;N++)R=(R<<5)-R+b.charCodeAt(N),R|=0;return I[Math.abs(R)%I.length]}function n(b,I){var R=I.namespace;if(I.useColors){var N=I.color,G="\x1B[3"+(N<8?N:"8;5;"+N),ee=" ".concat(G,";1m").concat(R," \x1B[0m");b[0]=ee+b[0].split(`
165
+ `,Gg=(0,M.memo)(Hg);function Md(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Mp(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ld(e,r,n){return r&&Mp(e.prototype,r),n&&Mp(e,n),e}function $g(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Br(){return Br=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Br.apply(this,arguments)}function Lp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function Mt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Lp(Object(n),!0).forEach(function(a){$g(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Kg(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Nd(e,r)}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qf(e)}function Nd(e,r){return Nd=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},Nd(e,r)}function Yg(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Jg(e,r){if(e==null)return{};var n={},a=Object.keys(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(r.indexOf(s)>=0)&&(n[s]=e[s]);return n}function jr(e,r){if(e==null)return{};var n=Jg(e,r),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)a=c[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function Xg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qg(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:Xg(e)}function Zg(e){var r=Yg();return function(){var a=Qf(e),s;if(r){var c=Qf(this).constructor;s=Reflect.construct(a,arguments,c)}else s=a.apply(this,arguments);return Qg(this,s)}}function kr(e,r){return _g(e)||tm(e,r)||Dd(e,r)||nm()}function an(e){return qg(e)||em(e)||Dd(e)||rm()}function qg(e){if(Array.isArray(e))return Bd(e)}function _g(e){if(Array.isArray(e))return e}function em(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function tm(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,s=!1,c=void 0;try{for(var p=e[Symbol.iterator](),m;!(a=(m=p.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(v){s=!0,c=v}finally{try{!a&&p.return!=null&&p.return()}finally{if(s)throw c}}return n}}function Dd(e,r){if(!!e){if(typeof e=="string")return Bd(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bd(e,r)}}function Bd(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function rm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
166
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
167
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function im(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Dd(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(v){throw v},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
168
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var v=n.next();return c=v.done,v},e:function(v){p=!0,m=v},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function am(e,r){return r={exports:{}},e(r,r.exports),r.exports}var _i=am(function(e){function r(b,I){for(var D=0,B=0;B<b.length;B++)D=(D<<5)-D+b.charCodeAt(B),D|=0;return I[Math.abs(D)%I.length]}function n(b,I){var D=I.namespace;if(I.useColors){var B=I.color,$="\x1B[3"+(B<8?B:"8;5;"+B),K=" ".concat($,";1m").concat(D," \x1B[0m");b[0]=K+b[0].split(`
169
169
  `).join(`
170
- `+ee)}else b[0]=R+" "+b[0]}function a(b,I){if(b[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var R="color: "+I.color,N=0,G=0;b[0].replace(/%[a-zA-Z%]/g,function(ee){ee!=="%%"&&(N++,ee==="%c"&&(G=N))}),b.splice(G,0,R)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function c(){var b;try{b=localStorage.getItem("debug")}catch(I){}return!b&&typeof process!="undefined"&&"env"in process&&(b={}.DEBUG),{namespaces:b||"",colors:s,useColors:!0,formatArgs:a}}function p(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var R=arguments.length,N=new Array(R),G=0;G<R;G++)N[G]=arguments[G];b&&N.unshift(b);var ee=I.namespaces.split(",").map(function(pe){return pe[pe.length-1]==="*"?new RegExp("^"+pe.slice(0,pe.length-1)+".*$"):new RegExp("^"+pe+"$")}),q=ee.some(function(pe){return pe.test(b)}),oe={color:r(b,I.colors),namespace:b,useColors:I.useColors};if(!1)var ae}}function v(b){return m(b,p())}function y(b){return m(b,c())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=y:e.exports=v}),Ho=_i("informed:ObjMap "),Zf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},qf=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(c,p){return c!=null?c[p]:c},r);return s===void 0||s===r?a:s},Np=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},am=function(r){return r.replace(Np(r),"").replace(/\./,"")},om=function(r,n){var a=Np(n),s=am(n),c=a?qf(r,a):r;return!!(c&&Object.hasOwnProperty.call(c,s.replace(/\[(.*)\]/,"$1")))},Dp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return p===m.length-1?(s[c]=a,s[c]):s[c]===void 0?(Number.isInteger(+m[p+1])?s[c]=[]:s[c]={},s[c]):(Number.isInteger(+m[p+1])&&!Array.isArray(s[c])&&(s[c]=[]),s[c])},r)},Bp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return s===void 0?s:(p===m.length-1&&(delete s[c],a=!0),s[c])},r),a},sm=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return s===void 0?s:(p===m.length-1&&Array.isArray(s)&&(a=s.splice(c,1)),s[c])},r),a},lm=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},jd=function(r){var n=Zf(r);return Number.isInteger(+n[n.length-1])},At=function(){function e(){Md(this,e)}return Ld(e,null,[{key:"empty",value:function(n){return lm(n).length===0}},{key:"get",value:function(n,a){var s=qf(n,a);return s}},{key:"has",value:function(n,a){return om(n,a)}},{key:"set",value:function(n,a,s){if(s!==void 0)Ho("SETTING",a,s),Dp(n,a,s);else if(jd(a)&&e.get(n,a)!==void 0){Ho("Special case SETTING",a,"to undefined"),Dp(n,a,void 0);var c=Zf(a);c=c.slice(0,c.length-1),_f(n,c)}else!jd(a)&&e.get(n,a)!==void 0&&(Ho("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){Ho("DELETE",a),jd(a)?(Ho("ARRAY",a),this.pullOut(n,a)):Bp(n,a);var s=Zf(a);s=s.slice(0,s.length-1),_f(n,s)}},{key:"pullOut",value:function(n,a){var s=Zf(a),c=s[s.length-1];s=s.slice(0,s.length-1),Ho("Pulling out:",s,"index",c);var p=qf(n,s);Ho("Array",p),Array.isArray(p)&&sm(p,c),_f(n,s)}}]),e}();function _f(e,r){if(r.length!==0){var n=qf(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Bp(e,r),_f(e,r.slice(0,r.length-1))}}var Zn=L.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),nu=L.createContext({}),iu=L.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jp=L.createContext(),Vp=L.createContext(),Up=L.createContext(),Vd=L.createContext(),Wp=L.createContext(),Hp=L.createContext(),zp=L.createContext(),Gp=L.createContext();function Li(){var e=(0,L.useContext)(iu);return e}function wa(e){var r=(0,L.useRef)(),n=(0,L.useRef)(!0),a=(0,L.useState)(e),s=kr(a,2),c=s[0],p=s[1];r.current=c;var m=function(b){r.current=b,n.current&&p(b)},v=function(){return r.current};return(0,L.useEffect)(function(){return function(){n.current=!1}},[]),[c,m,v]}var $p=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},Kp=function(r){var n={};if(r.inner){if(r.inner.length===0){At.set(n,r.path,r.message);return}var a=nm(r.inner),s;try{for(a.s();!(s=a.n()).done;){var c=s.value;At.get(n,c.path)||At.set(n,c.path,c.message)}}catch(p){a.e(p)}finally{a.f()}}return n},Yp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(s){var a=Kp(s);return a}},Jp=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Xp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return Jp(a)}},Qp=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(s){var c=s.message,p=s.dataPath,m=s.keyword,v=s.params,y=p;m==="required"&&(y="".concat(y,".").concat(v.missingProperty)),y=y.replace(".",""),At.set(a,y,c)}),a},zo=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},um=function(r,n){var a;return function(){for(var c=arguments.length,p=new Array(c),m=0;m<c;m++)p[m]=arguments[m];var v=function(){clearTimeout(a),r.apply(void 0,p)};clearTimeout(a),a=setTimeout(v,n)}},Ud=function(r,n,a){var s=n["ui:control"],c=n["informed:props"],p=n["input:props"],m=n["ui:before"],v=n["ui:after"],y=n.oneOf,b=n.items,I=n.enum,R=n.title,N=n.minimum,G=n.maximum,ee=n.minLength,q=n.maxLength,oe=n.pattern,ae=n.type,pe=n.properties,ve=zo();p&&p.id&&(ve=p.id);var me={componentType:s,field:a?"".concat(a,".").concat(r):r,type:ae,uiBefore:m,uiAfter:v,properties:ae==="object"?pe:void 0,items:ae==="array"?b:void 0,props:Mt(Mt({label:R,id:ve,min:N,max:G,minLength:ee,maxLength:q,pattern:oe},c),p)};if(y){var Te=n.oneOf.map(function(Ce){var Fe=Ce["input:props"],Re=Fe===void 0?{}:Fe;return Mt({value:Ce.const,label:Ce.title},Re)});me.props.options=Te}if(I){var Ae=n.enum.map(function(Ce){return{value:Ce,label:Ce}});me.props.options=Ae}if(b&&b.oneOf){var Se=b.oneOf.map(function(Ce){var Fe=Ce["input:props"],Re=Fe===void 0?{}:Fe;return Mt({value:Ce.const,label:Ce.title},Re)});me.props.options=Se}return me},Zp=function(r,n,a){if(!r||n)return[];var s=r.properties,c=s===void 0?{}:s,p=r.allOf,m=r.propertyOrder,v=m===void 0?[]:m;if(Object.keys(c).length>0){var y=Object.keys(c).sort(function(b,I){var R=v.indexOf(b),N=v.indexOf(I);return(R>-1?R:v.length+1)-(N>-1?N:v.length+1)}).map(function(b){var I=c[b],R=Ud(b,I,a);return R});return p&&y.push({componentType:"conditionals",allOf:p}),y}return[]},qp=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},fm=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},cm=function(r,n){for(var a=0,s=-1,c=!0;c&&a<r.length;)r[a]==n[a]?s=a:c=!1,a=a+1;return s},ec=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),s=fm(n,a),c=s.findIndex(function(q){return typeof q!="string"}),p=s.length-an(s).reverse().findIndex(function(q){return typeof q!="string"}),m=[],v=a.split(""),y=0,b=0,I=cm(s.slice(0,c),v.slice(0,c));I>-1&&(y=I+1,m=m.concat(s.slice(0,I+1)),b=I+1),I<0&&(m=m.concat(s.slice(0,c)),b=c);for(var R=b;R<s.length;R++){var N=s[R];if(y!=v.length){var G=v[y];if(typeof N=="function")m.push(N(G)),y=y+1;else{var ee=typeof N=="string"?N===G:N.test(G);ee&&typeof N=="string"?(m.push(N),y=y+1):!ee&&typeof N=="string"?y!=v.length&&m.push(N):ee&&typeof N!="string"?(m.push(G),y=y+1):!ee&&typeof N!="string"&&(y=y+1,R=R-1)}}else if(typeof N=="string"&&R>=p)m.push(N);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},dm=function(r,n){var a,s,c=new Intl.NumberFormat(r,n),p=new Intl.NumberFormat(r),m=(a=(s=p.formatToParts(.1).find(function(q){var oe=q.type;return oe==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function v(q,oe){return q instanceof RegExp&&oe instanceof RegExp&&q.source===oe.source&&q.global===oe.global&&q.ignoreCase===oe.ignoreCase&&q.multiline===oe.multiline}function y(q,oe){for(var ae=q.length;ae--;)if(oe(q[ae]))return ae;return-1}function b(q,oe,ae){var pe=an(q);return Array.isArray(ae)?pe.splice.apply(pe,[oe,0].concat(an(ae))):pe.splice(oe,0,ae),pe}function I(q){return"".concat(q).replace(/\D/g,"")}function R(q){return"".concat(q).split(m).map(function(oe){return I(oe)}).join(".")}function N(q){if(typeof q=="number")return q;var oe=parseFloat(R(q));return Number.isNaN(oe)?void 0:oe}function G(q){var oe=R(q),ae="".concat(oe).split(".")[1],pe=c.formatToParts(Number(oe));ae==="0"&&pe.push({type:"decimal",value:m},{type:"fraction",value:ae});var ve=pe.reduce(function(Ae,Se){var Ce=Se.type,Fe=Se.value;return["decimal","fraction"].includes(Ce)&&ae==null?Ae:["integer","fraction"].includes(Ce)?[].concat(an(Ae),an(Fe.split("").filter(function(Re,Ue){return Ce==="fraction"?Ue<ae.length:!0}).map(function(){return/\d/}))):Ce==="currency"?[].concat(an(Ae),an(Fe.split(""))):[].concat(an(Ae),[Fe])},[]),me=y(ve,function(Ae){return v(Ae,/\d/)});ve.indexOf(m)===-1&&"".concat(q).indexOf(m)!==-1&&(ve=b(ve,me+1,[m,"[]"]),me+=2);var Te=ve.slice(me+1).join("");return ve=[].concat(an(ve.slice(0,me+1)),[Te]),ve}var ee=function(oe){if(oe!=null)return N(oe)};return{formatter:G,parser:ee}},r1=Object.freeze({__proto__:null,getChildDisplayName:$p,yupToFormErrors:Kp,validateYupSchema:Yp,yupToFormError:Jp,validateYupField:Xp,validateAjvSchema:Qp,uuidv4:zo,debounce:um,computeFieldFromProperty:Ud,computeFieldsFromSchema:Zp,getSchemaPathFromJsonPath:qp,informedFormat:ec,createIntlNumberFormatter:dm}),Ni=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?L.useLayoutEffect:L.useEffect,pm=function(r){var n=r.value,a=r.inputRef,s=r.maintainCursor,c=s===void 0?!0:s,p=wa(0),m=kr(p,3),v=m[0],y=m[1],b=m[2],I=wa(0),R=kr(I,3),N=R[0],G=R[1],ee=R[2];return Ni(function(){if(a.current!=null&&b()){var q=b()+ee();ee()!=0&&c?a.current.setSelectionRange(q+1,q+1):c&&a.current.setSelectionRange(q,q)}},[n]),{setCursorOffset:G,setCursor:y,cursor:v,getCursor:b,cursorOffset:N}},hm=function(r,n){var a=(0,L.useRef)(!0),s=a.current;(0,L.useEffect)(function(){if(s)a.current=!1;else return r()},n)},Dn=_i("informed:useField "),_p=function(r,n,a,s,c){if(r!=null){if(c)return c(r);if(n)return n(r);if(a&&!s){var p=ec(r,a);return p.value}return r}},vm=function(r,n,a,s){if(n&&a)return n(r);if(s){var c=ec(r,s);return c.value}return r},gm=function(r,n,a){var s=a.required;if(r||n)return function(c,p){if(n)return Xp(n,c);if(r)return r(c,p)};if(s)return function(c){return Sm(c,s)}},mm=function(r){var n=r.fieldType,a=r.setValue,s=r.onChange,c=r.multiple,p=r.ref,m=function(y){return a(y)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(y){return a(y.target.value,y)}),n==="select"&&(m=function(){var y=Array.from(p.current).filter(function(b){return b.selected}).map(function(b){return b.value});a(c?y:y[0]||"")}),n==="checkbox"&&(m=function(y){a(y.target.checked),s&&s(y)}),function(v){m(v)}},ym=function(r){var n=r.setTouched,a=r.onBlur;return function(s){n(!0),a&&a(s)}},bm=function(r){var n=r.fieldType,a=r.maskedValue,s=r.multiple,c=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return c||(s?[]:"");case"checkbox":return!!c;default:return c}},xm=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Sm=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function au(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,s=e.asyncValidate,c=e.validationSchema,p=e.mask,m=e.maskWithCursorOffset,v=e.format,y=e.parse,b=e.formatter,I=e.parser,R=e.initialValue,N=e.validateOnChange,G=e.validateOnBlur,ee=e.validateOnMount,q=e.asyncValidateOnBlur,oe=e.maskOnBlur,ae=e.allowEmptyString,pe=e.onValueChange,ve=e.notify,me=e.keepState,Te=e.maintainCursor,Ae=e.debug,Se=e.shadow,Ce=e.step,Fe=e.fieldType,Re=e.multiple,Ue=e.onChange,ze=e.onBlur,Ct=e.formController,qe=e.relevant,nr=e.required,ur=e.keepStateIfRelevant,jt=e.initialize,fr=e.formatterDependencies,$t=fr===void 0?[]:fr,cr=jr(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wr=(0,L.useState)(zo()),Ut=kr(wr,1),ft=Ut[0],Ot=(0,L.useContext)(Zn),Zt=(0,L.useContext)(Gp),Wt=Zt||ur,Kt=Li(),qr=(0,L.useRef)(),Un=(0,L.useRef)(!0),pi=(0,L.useRef)(),Vr=(0,L.useRef)(!1),sn=function(){return!Vr.current},Jo=function(){return Vr.current};Ct&&(Ot=Ct.updater,Kt=Ct.getFormApi());var Fn=gm(a,c,{required:nr}),Xo=(0,L.useState)(function(){return Ot.getInitialValue(n)}),cp=kr(Xo,1),ji=cp[0],Vi=Ot.getSavedValue(n),Oa,il;(me||Wt)&&Vi?(Dn("Setting field ".concat(Ep,"'s kept state"),Vi),Oa=Vi.value,il=Vi.touched,Kt.removeSavedState(Ep)):R!=null?Oa=R:Oa=ji;var xu=wa(_p(Oa,p,b,I,jt)),qt=kr(xu,3),En=qt[0],dp=qt[1],Lx=qt[2],Nx=wa(ee?Fn(En):void 0),pp=kr(Nx,3),xg=pp[0],Sg=pp[1],Dx=pp[2],Bx=wa(il),hp=kr(Bx,3),wg=hp[0],jx=hp[1],Ag=hp[2],Vx=(0,L.useState)(function(){return vm(En,v,y,b)}),Cg=kr(Vx,2),vp=Cg[0],gp=Cg[1],Eg=(0,L.useRef)();Eg.current=vp;var Og=(0,L.useRef)(R),Qo=(0,L.useRef)(n),Tg=(0,L.useRef)();Og.current=R,Qo.current=n;var Ux=(0,L.useRef)(null),ra=L.useMemo(function(){return r||Ux},[]),mp=pm({value:En,inputRef:ra,maintainCursor:!!Te}),yp=mp.getCursor,Wx=mp.setCursor,bp=mp.setCursorOffset,Hx=function(){return!0},xp=function(pr){var ln=qe||Hx,Wn=Kt.getFullField(Qo.current)||Qo.current,_t={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,Au){return At.get(Hn,Au)}};return Zt&&Zt.relevant?ln(pr,_t)&&Zt.relevant(pr,_t):ln(pr,_t)},zx=wa(xp(Kt.getValues())),Sp=kr(zx,3),Oc=Sp[0],Gx=Sp[1],Pg=Sp[2],$x=function(pr){return Zt&&Zt.relevant?Zt.relevant(pr):!0},Kx=function(){var pr=xp(Kt.getValues()),ln=Pg();return pr!=ln&&Gx(pr),pr};(0,L.useEffect)(function(){!Oc&&!me&&qr.current.reset()},[Oc]);var hi=function(){return Se?Kt.getDerrivedValue(n):Lx()},Su=function(pr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=ln.preventUpdate;Ce&&Kt.getStep()<Ce?(Dn("Setting ".concat(n,"'s error to undefined as we are not at that step")),Sg(void 0),Ot.setError(ft,void 0,!Wn)):(Dn("Setting ".concat(n,"'s error to ").concat(pr)),Sg(pr),Ot.setError(ft,pr,!Wn))},wp=function(pr,ln){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=pr;Vr.current=!0,Dn("Setting ".concat(n," to ").concat(_t)),jt&&(_t=jt(_t));var Zo=Kt.getOptions(),Hn=_t;if(_t===""&&!ae&&!Wn.allowEmptyString&&!Zo.allowEmptyStrings&&(_t=void 0),(e.type==="number"||Fe==="number")&&_t!==void 0&&(_t=+_t),ln&&ln.target&&ln.target.selectionStart&&Wx(ln.target.selectionStart),p&&!oe&&(Hn=p(_t,yp()),_t=p(_t,yp())),m&&!oe){var Au=m(_t,yp());Hn=Au.value,_t=Au.value,bp(Au.offset)}if(v&&y&&(_t=y(_t),Hn=v(_t)),b){var Ig=ec(_t,b);bp(Ig.offset),Hn=Ig.value,_t=Hn}I&&(_t=_t!=null?I(_t):_t),Fn&&N&&!Wn.initial&&(Dn("Validating after change ".concat(n," ").concat(_t)),Su(Fn(_t,Kt.getValues()))),dp(_t),gp(Hn),pe&&pe(_t),Ot.setValue(ft,_t,!Wn.preventUpdate)};hm(function(){qr.current.setValue(Eg.current)},an($t));var Ap=function(pr,ln){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=Wn.preventUpdate;if(Dn("Field ".concat(n," has been touched")),Fn&&G&&!ln&&pr&&(Dn("Validating after blur ".concat(n," ").concat(hi())),Su(Fn(hi(),Kt.getValues()))),s&&q&&!ln&&pr&&(Dn("Validating async after blur ".concat(n," ").concat(hi())),s(hi(),Kt.getValues())),p&&oe){var Zo=p(hi());dp(Zo),gp(Zo),pe&&pe(Zo),Ot.setValue(ft,Zo,!_t)}if(m&&oe){var Hn=m(hi());bp(Hn.offset),dp(Hn.value),gp(Hn.value),pe&&pe(Hn.value),Ot.setValue(ft,Hn.value,!_t)}jx(pr),Ot.setTouched(ft,pr,!_t)},Yx=function(){var pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=pr.preventUpdate,Wn=_p(Og.current||Ot.getInitialValue(Qo.current),p,b,I,jt);wp(Wn,null,{initial:!0,preventUpdate:ln}),Su(ee?Fn(Wn):void 0,{preventUpdate:ln}),Ap(void 0,!0,{preventUpdate:ln}),Vr.current=!1},Jx=function(pr){Fn&&(Dn("Field validating ".concat(n," ").concat(hi())),Su(Fn(hi(),pr||Kt.getValues())))},Xx=function(pr){s&&(Dn("Field async validating ".concat(n," ").concat(hi())),s(hi(),pr||Kt.getValues()))},Cp={setValue:wp,setTouched:Ap,setError:Su,reset:Yx,validate:Jx,asyncValidate:Xx,getValue:hi,getTouched:Ag,getError:Dx,getIsRelevant:Pg,getDirty:Jo,getPristine:sn,getFieldState:function(){return{value:hi(),touched:Ag(),dirty:Jo(),pristine:sn()}},relevant:xp,multistepRelevant:$x,checkRelevant:Kx};qr.current=Cp;var wu={value:En,error:xg,touched:wg,maskedValue:vp,isRelevant:Oc,dirty:Vr.current,pristine:!Vr.current};Se&&(wu={error:xg,touched:wg}),Dn("Render",Kt.getFullField(n),wu),Ni(function(){var _r=Kt.getFullField(Qo.current);return Dn("Register",ft,Qo.current),pi.current={field:_r,fieldId:ft,fieldApi:Cp,fieldState:wu,notify:ve,keepState:me,inMultistep:Wt,shadow:Se},Ot.register(ft,pi.current),function(){var pr=Kt.getFullField(Qo.current);Dn("Deregister",ft,pr),Ot.deregister(ft)}},[]),(0,L.useEffect)(function(){var _r=Kt.getFullField(n);return Un.current?Un.current=!1:(Dn("Update",n,Wt),pi.current.field=_r,Ot.update(ft,pi.current,Tg.current)),function(){Tg.current=_r}},[n]),Ni(function(){Ae&&ra&&(ra.current.style.border="5px solid orange",setTimeout(function(){ra.current.style.borderWidth="2px",ra.current.style.borderStyle="inset",ra.current.style.borderColor="initial",ra.current.style.borderImage="initial"},500))});var Qx=[].concat(an(Object.values(wu)),an(Object.values(e)),an(Object.values(cr))),Zx=function(pr){return(0,L.useMemo)(function(){return Oc?pr:null},an(Qx))},Ep=n,qx=mm({fieldType:Fe,setValue:wp,onChange:Ue,multiple:Re,ref:ra}),_x=ym({setTouched:Ap,onBlur:ze}),e1=bm({fieldType:Fe,maskedValue:vp,multiple:Re,value:En}),t1=xm(Fe);return{fieldState:wu,fieldApi:Cp,render:Zx,ref:ra,userProps:Mt(Mt({},cr),{},{multiple:Re,onChange:Ue,onBlur:ze,id:cr.id||ft}),informed:Mt({name:Ep,multiple:Re,onChange:qx,onBlur:_x,value:e1,ref:ra,type:t1,id:cr.id||ft},cr)}}var Aa=function(r){var n=L.forwardRef(function(a,s){var c=au(a,s),p=c.fieldState,m=c.fieldApi,v=c.render,y=c.ref,b=c.userProps;return v(L.createElement(r,Br({fieldApi:m,fieldState:p,field:a.field,forwardedRef:y,debug:a.debug,type:a.type},b)))});return n.displayName="asField(".concat($p(r),")"),n},wm=_i("informed:Text "),Am=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,R=s.forwardedRef,N=s.debug,G=s.label,ee=s.title,q=s.id,oe=jr(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return wm("Render",b),Ni(function(){N&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),L.createElement(L.Fragment,null,G?L.createElement("label",{htmlFor:q}," ",G," "):null,L.createElement("input",Br({},oe,{id:q,name:b,ref:R,value:!c&&c!==0?"":c,onChange:function(pe){p(pe.target.value,pe),v&&v(pe)},onBlur:function(pe){m(!0),y&&y(pe)}})))},Cm=Aa(Am),Em=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,R=s.forwardedRef,N=s.debug,G=s.label,ee=s.id,q=jr(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Ni(function(){N&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),L.createElement(L.Fragment,null,G?L.createElement("label",{htmlFor:ee}," ",G," "):null,L.createElement("textarea",Br({},q,{id:ee,name:b,ref:R,value:c||"",onChange:function(ae){p(ae.target.value,ae),v&&v(ae)},onBlur:function(ae){m(!0),y&&y(ae)}})))},Om=Aa(Em),Tm=_i("informed:Select "),Pm=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.value,p=n.setTouched,m=s.onChange,v=s.onBlur,y=s.field,b=s.initialValue,I=s.options,R=s.children,N=s.forwardedRef,G=s.debug,ee=s.multiple,q=s.label,oe=s.id,ae=jr(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),pe=(0,L.useRef)(),ve=function(Te){var Ae=Array.from((N||pe).current).filter(function(Se){return Se.selected}).map(function(Se){return Se.value});n.setValue(ee?Ae:Ae[0]||""),m&&Te&&m(Te)};return Ni(function(){G&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),Tm("Render",y,c),L.createElement(L.Fragment,null,q?L.createElement("label",{htmlFor:oe}," ",q," "):null,L.createElement("select",Br({},ae,{id:oe,multiple:ee,name:y,ref:N||pe,value:c||(ee?[]:""),onChange:ve,onBlur:function(Te){p(!0),v&&v(Te)}}),I?I.map(function(me){return L.createElement("option",{key:me.value,value:me.value,disabled:me.disabled},me.label)}):R))},Im=Aa(Pm),Fm=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.value,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,R=s.debug,N=s.forwardedRef,G=s.id,ee=s.label,q=jr(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return L.createElement(L.Fragment,null,ee?L.createElement("label",{htmlFor:G}," ",ee," "):null,L.createElement("input",Br({},q,{id:G,name:b,ref:N,checked:!!c,onChange:function(ae){p(ae.target.checked),v&&v(ae)},onBlur:function(ae){m(!0),y&&y(ae)},type:"checkbox"})))},km=Aa(Fm),Rm=function(r){return L.forwardRef(function(n,a){return L.createElement(jp.Consumer,null,function(s){var c=s.radioGroupApi,p=s.radioGroupState;return L.createElement(r,Br({radioGroupApi:c,radioGroupState:p,ref:a},n))})})},Mm=function(r){var n=r.radioGroupApi,a=r.radioGroupState,s=jr(r,["radioGroupApi","radioGroupState"]),c=a.value,p=n.setValue,m=n.setTouched,v=n.onChange,y=n.onBlur,b=s.value,I=s.onChange,R=s.onBlur,N=s.field,G=s.initialValue,ee=s.forwardedRef,q=jr(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return L.createElement("input",Br({},q,{name:N,ref:ee,value:b,checked:c===b,onChange:function(ae){!ae.target.checked||(p(b),I&&I(ae),v&&v(ae))},onBlur:function(ae){m(!0),R&&R(ae),y&&y(ae)},type:"radio"}))},Lm=Rm(Mm),Nm=function(e){$g(n,e);var r=Qg(n);function n(){return Md(this,n),r.apply(this,arguments)}return Ld(n,[{key:"render",value:function(){var s=this.props,c=s.options,p=s.children;return L.createElement(jp.Provider,{value:this.groupContext},c?c.map(function(m){return L.createElement("label",{key:m.value},m.label," ",L.createElement(Lm,{value:m.value}))}):p)}},{key:"groupContext",get:function(){return{radioGroupApi:Mt(Mt({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(L.Component),Dm=Aa(Nm);function Bm(){return(0,L.useContext)(Up)}var jm=function(){var r=Bm(),n=r.add;return L.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Vm(){return(0,L.useContext)(Vd)}var Um=function(){var r=Vm(),n=r.remove;return L.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},tc=_i("informed:useArrayField "),Wm=function(r){var n=r.field,a=r.initialValue,s=r.validate,c=r.arrayFieldApiRef,p=jr(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Li(),v=(0,L.useState)(new Map),y=kr(v,1),b=y[0],I=(0,L.useContext)(Zn),R=m.getFullField(n),N=I.getInitialValue(n)||a||[],G=m.getSavedValue(R)&&m.getSavedValue(R).value,ee=wa(G||N),q=kr(ee,3),oe=q[0],ae=q[1],pe=q[2],ve=oe?oe.map(function(){return zo()}):[],me=wa(ve),Te=kr(me,3),Ae=Te[0],Se=Te[1],Ce=Te[2],Fe=(0,L.useMemo)(function(){return function(Ut,ft){var Ot=Ce()==null?0:Ce().length;return s?s(Ut,Ot,ft):void 0}}),Re=au(Mt({field:n,validate:s?Fe:void 0,shadow:!0},p)),Ue=Re.fieldApi;Ni(function(){var Ut=function(Ot){Ot!==R&&(tc("".concat(R," changed")),RegExp("".concat(R,"\\[[0-9]+\\]")).test(Ot)&&Ue.validate())};return m.emitter.on("value",Ut),function(){m.emitter.removeListener("value",Ut)}},[n]);var ze=function(ft){tc("EXPECTING REMOVAL OF","".concat(n,"[").concat(ft,"] and ").concat(n,"[").concat(Ae.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(ft,"]")),I.expectRemoval("".concat(n,"[").concat(Ae.length-1,"]"));var Ot=Ae.slice(0,ft).concat(Ae.slice(ft+1,Ae.length));Se(Ot);var Zt=pe(),Wt=Zt.slice(0,ft).concat(Zt.slice(ft+1,Zt.length));ae(Wt)},Ct=function(ft,Ot){tc("Swapping","".concat(n,"[").concat(ft,"] and ").concat(n,"[").concat(Ot,"]"));var Zt=an(Ae);Ae[ft]&&Ae[Ot]?(Zt[ft]=Ae[Ot],Zt[Ot]=Ae[ft]):console.warn("Attempted to swap ".concat(ft," with ").concat(Ot," but one of them does not exist :(")),Se(Zt)},qe=function(){Ae.push(zo()),Se(an(Ae))},nr=function(ft){Ae.push(zo()),Se(an(Ae));var Ot=an(pe());Ot[Ae.length-1]=ft,ae(Ot)},ur=function(){var ft=I.getInitialValue(n)||a||[];ae(ft);var Ot=ft?ft.map(function(){return zo()}):[];Se(Ot)},jt=Ae.map(function(Ut,ft){var Ot={remove:function(){return ze(ft)}},Zt={initialValue:oe&&oe[ft],key:Ut,field:"".concat(n,"[").concat(ft,"]"),index:ft};return Mt(Mt({arrayFieldItemApi:Ot,arrayFieldItemState:Zt},Ot),Zt)}),fr={add:qe,swap:Ct,addWithInitialValue:nr,reset:ur};c&&(c.current=fr);var $t={fields:jt,field:n},cr=Mt(Mt({},I),{},{register:function(ft,Ot){b.set(ft,Ot);for(var Zt=arguments.length,Wt=new Array(Zt>2?Zt-2:0),Kt=2;Kt<Zt;Kt++)Wt[Kt-2]=arguments[Kt];I.register.apply(I,[ft,Ot].concat(Wt))},deregister:function(ft){b.delete(ft);for(var Ot=arguments.length,Zt=new Array(Ot>1?Ot-1:0),Wt=1;Wt<Ot;Wt++)Zt[Wt-1]=arguments[Wt];I.deregister.apply(I,[ft].concat(Zt))},getInitialValue:function(ft){if(RegExp("".concat(R,"\\[[0-9]+\\]")).test(ft)){var Ot=ft.replace(n,""),Zt=At.get(pe(),Ot);return tc("Resetting ".concat(Ot," to ").concat(Zt)),Zt}return I.getInitialValue(ft)}}),wr=function(ft){return L.createElement(Zn.Provider,{value:cr},L.createElement(Up.Provider,{value:fr},L.createElement(Vp.Provider,{value:$t},ft)))};return{render:wr,add:qe,swap:Ct,addWithInitialValue:nr,fields:jt,arrayFieldState:$t,arrayFieldApi:fr,field:n}},Hm=function(r,n){return Mt(Mt({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return n.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})};function zm(e){var r=Li(),n=(0,L.useMemo)(function(){return Hm(e,r)},[e]);return n}function rc(){var e=(0,L.useContext)(nu);return e}var eh=function(r){var n=r.when,a=r.children,s=rc(),c=n(s);return c?a:null},Wd=function(r){var n=r.relevant,a=r.field,s=jr(r,["relevant","field"]),c=Li();if(n){var p=c.getFullField(a),m={path:p,parentPath:p.replace(/(.*)[.[].*/,"$1"),get:function(b,I){return At.get(b,I)}},v=function(b){var I=b.values;return n(I,m)};return L.createElement(eh,{when:v},L.createElement(th,Br({field:a},s)))}else return L.createElement(th,Br({field:a},s))},th=function(r){var n=r.children,a=jr(r,["children"]),s=Wm(a),c=s.render,p=s.arrayFieldState,m=s.arrayFieldApi,v=s.field;return c(typeof n=="function"?n(Mt(Mt({field:v,arrayFieldApi:m,arrayFieldState:p},m),p)):n)},Gm=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,c=(0,L.useContext)(Zn),p=Li(),m=(0,L.useState)(0),v=kr(m,2),y=v[0],b=v[1],I=(0,L.useState)(new Map),R=kr(I,1),N=R[0],G=n.field,ee=zm(G),q=function(){var Ae=p.getState(),Se=Ae.values,Ce=Ae.errors,Fe=Ae.touched,Re={values:At.get(Se,G),errors:At.get(Ce,G),touched:At.get(Fe,G)};return Re};(0,L.useEffect)(function(){var Te=function(Se){var Ce=Se.slice(0,Se.lastIndexOf("[")!=-1?Se.lastIndexOf("]")+1:Se.length);Ce===G&&b(Math.random())};return p.emitter.on("value",Te),function(){p.emitter.removeListener("value",Te)}},[G]);var oe=function(){N.forEach(function(Ae){Ae.fieldApi.reset()})},ae=q(),pe=Mt(Mt({},c),{},{register:function(Ae,Se,Ce){N.set(Ae,Se),c.register(Ae,Se,Ce)},deregister:function(Ae){N.delete(Ae);for(var Se=arguments.length,Ce=new Array(Se>1?Se-1:0),Fe=1;Fe<Se;Fe++)Ce[Fe-1]=arguments[Fe];c.deregister.apply(c,[Ae].concat(Ce))}}),ve=Mt(Mt(Mt({},a),ee),{},{reset:oe}),me=Mt(Mt({},n),ae);return typeof s=="function"?L.createElement(Zn.Provider,{value:pe},L.createElement(Vd.Provider,{value:ve},L.createElement(Wp.Provider,{value:me},s(Mt(Mt({arrayFieldItemApi:ve,arrayFieldItemState:me},ve),me))))):L.createElement(Zn.Provider,{value:pe},L.createElement(Vd.Provider,{value:ve},L.createElement(Wp.Provider,{value:me},s)))};Wd.Items=function(e){var r=e.children,n=(0,L.useContext)(Vp),a=n.fields;return a.map(function(s){var c=s.arrayFieldItemState,p=s.arrayFieldItemApi,m=c.key;return L.createElement(Gm,{key:m,arrayFieldItemApi:p,arrayFieldItemState:c},r)})};var nc=function(r){var n=r.components,a=(0,L.useContext)(Zn),s=a.fieldMap;return n?n.map(function(c,p){var m=c["ui:control"],v=s[m];return L.createElement(v,{key:"ui-comp-".concat(p)})}):null},$m=_i("informed:FormFields "),Hd=function e(r){var n=r.schema,a=r.prefix,s=r.onlyValidateSchema,c=(0,L.useContext)(Zn),p=c.fieldMap,m=(0,L.useMemo)(function(){var v=Zp(n,s,a),y=v.map(function(b,I){var R=b.field,N=b.props,G=b.type,ee=b.properties,q=b.items,oe=b.componentType,ae=b.uiBefore,pe=b.uiAfter,ve=b.allOf,me=p[oe];return $m("Rendering Field",R,b),!me&&G==="object"&&ee?L.createElement(e,{schema:b,prefix:R,key:"ScheamField-".concat(I)}):!me&&G==="array"&&q?L.createElement(rh,Br({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ae,uiAfter:pe},N)):me&&oe==="array"&&q&&G==="array"?L.createElement(me,Br({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ae,uiAfter:pe},N)):oe==="conditionals"?ve.map(function(Te){var Ae=Te.then,Se=Te.if.properties,Ce=function(Re){var Ue=Re.values;return Object.keys(Se).every(function(ze){var Ct=Se[ze];return Ue[ze]===Ct.const})};return L.createElement(eh,{key:"ScheamField-".concat(I),when:Ce},L.createElement(e,{schema:Ae}))}):me?L.createElement(me,Br({key:"ScheamField-".concat(I),field:R},N)):null});return y},[n,a]);return m},rh=function(r){var n=r.field,a=r.items,s=r.uiBefore,c=r.uiAfter,p=jr(r,["field","items","uiBefore","uiAfter"]);return L.createElement(Wd,Br({field:n},p),L.createElement(nc,{components:s}),L.createElement(Wd.Items,null,function(m){var v=m.field;return L.createElement(L.Fragment,null,L.createElement(nc,{components:a["ui:before"]}),L.createElement(Hd,{schema:a,prefix:v}),L.createElement(nc,{components:a["ui:after"]}))}),L.createElement(nc,{components:c}))},Km={select:Im,input:Cm,textarea:Om,checkbox:km,radio:Dm,add:jm,remove:Um,array:rh},hr=_i("informed:Controller "),Ym=function(r,n){var a=Object.keys(n).find(function(c){return r.includes(c)});if(!!a){var s=r.slice(0,a.length);return s===a}},fi=function(){},Jm=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Md(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,s=n.schema,c=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=c||Km,this.fieldsById=new Map,this.fieldsByName={get:function(m){var v;return r.fieldsById.forEach(function(y){y&&y.field===m&&(v=y)}),v}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:fi,setTouched:fi,setError:fi,reset:fi,validate:fi,getValue:fi,getTouched:fi,getError:fi,getFieldState:fi,checkRelevant:fi,getPristine:fi,getDirty:fi}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);b.shadow||At.set(r.state.values,b.field,b.fieldApi.getValue()),b.fieldApi.relevant(r.state.values)||At.delete(r.state.values,b.field),r.fieldsById.forEach(function(I){var R=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!R&&!I.keepState)&&(At.delete(r.state.values,I.field),At.delete(r.state.touched,I.field),At.delete(r.state.errors,I.field))}),y&&(r.emit("change"),r.emit("field",b.field),r.emit("value",b.field,v))},setTouched:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&At.set(r.state.touched,b.field,b.fieldApi.getTouched()),b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)&&At.set(r.state.touched,b.field,b.fieldApi.getTouched()),y&&(r.emit("change"),r.emit("field",b.field))},setError:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&At.set(r.state.errors,b.field,b.fieldApi.getError());var I=At.get(r.state.errors,b.field);(b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)||b.shadow&&b.fieldApi.getError()===void 0&&b.fieldApi.relevant(r.state.values)&&typeof I=="string")&&At.set(r.state.errors,b.field,b.fieldApi.getError()),y&&(r.emit("change"),r.emit("field",b.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(p){delete r.state.error,r.notify(p)})}return Ld(e,[{key:"emit",value:function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var p=this.subscriptions.get(n);p&&p.forEach(function(m){return m.apply(void 0,s)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var s=this.subscriptions.get(n);s.add(a)}},{key:"removeListener",value:function(n,a){var s=this.subscriptions.get(n);s.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,s){this.getField(n).fieldApi.setValue(a,null,Mt({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(hr("Submit",this.state),this.emit("submit")):(hr("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,a){At.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return hr("Returning form state"),Mt(Mt({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return At.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return hr("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return hr("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return hr("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return hr("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return hr("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return hr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return hr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return hr("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?At.get(this.savedValues,"shadow-".concat(n)):At.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?At.delete(this.savedValues,"shadow-".concat(n)):At.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return At.get(this.options.initialValues,n)}},{key:"getField",value:function(n){hr("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,s=this.getField(n);s&&s.notify&&s.notify.forEach(function(c){var p=".".concat(n),m="".concat(p.replace(/(.*)[.[].*/,"$1"),".").concat(c).slice(1),v=a.getField(m);v&&(hr("Notifying",v.field),v.fieldApi.validate(),v.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!(At.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var s=kr(a,2),c=s[1];return c.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!At.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){hr("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){hr("Setting values"),this.fieldsById.forEach(function(a){var s=At.get(n,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;hr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Yp(this.options.validationSchema,a);this.fieldsById.forEach(function(v){if(At.has(s,v.field)){var y=At.get(s,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.options.schema&&this.options.ajv){var c=Qp(this.ajvValidate,a);this.fieldsById.forEach(function(v){if(At.has(c,v.field)){var y=At.get(c,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.fieldsById.forEach(function(v){v.fieldApi.validate(a),v.fieldApi.setTouched(!0,!0)}),this.options.validate){var p=this.options.validate(a);this.setFormError(p)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(v){if(At.has(m,v.field)){var y=At.get(m,v.field);n.setError(v.field,y)}})}}},{key:"asyncValidate",value:function(){hr("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(hr("Submit",this.state),this.emit("submit")):(hr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,s){var c=a.field,p=a.state;hr("Register ID:",n,"Name:",c,p,"Initial",s);var m=c.slice(0,c.lastIndexOf("[")!=-1?c.lastIndexOf("]")+1:c.length),v;this.fieldsById.forEach(function(y,b){y&&y.field===c&&(v=b)}),v&&(a.keepState||a.inMultistep)?(hr("Already Registered",c),this.fieldsById.delete(v)):v&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",c),hr("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),hr("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",c))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),s=a.field;hr("Deregister",n,s),delete this.onScreen[n];var c=Ym(s,this.expectedRemovals),p=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!c&&(hr("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?At.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):At.set(this.savedValues,s,a.fieldApi.getFieldState())),(c||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(hr("Removing field",s),this.fieldsById.delete(n),c||(At.delete(this.state.values,s),At.delete(this.state.touched,s),At.delete(this.state.errors,s),a.shadow?At.delete(this.savedValues,"shadow-".concat(s)):At.delete(this.savedValues,s)),c&&this.pulledOut[p]&&(hr("Pulling out",s,"with magic value",p),At.pullOut(this.state.values,p),At.pullOut(this.state.touched,p),At.pullOut(this.state.errors,p),At.pullOut(this.savedValues,p),delete this.pulledOut[p])),this.emit("change")}},{key:"expectRemoval",value:function(n){hr("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,s){hr("Update",n,a.field,s,a.fieldState.value);var c=a.fieldApi.getValue(),p=a.fieldApi.getError(),m=a.fieldApi.getTouched(),v=this.fieldsByName.get(s);s&&!v&&(At.set(this.state.values,s),At.set(this.state.errors,s),At.set(this.state.touched,s)),At.set(this.state.values,a.field,c),At.set(this.state.errors,a.field,p),At.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),zd=_i("informed:FormProvider "),Xm=function(r){var n=r.children,a=r.formApi,s=r.formController,c=r.formState,p=jr(r,["children","formApi","formController","formState"]);if(zd("Render FormProvider"),a)return zd("Render FormProvider with given values"),L.createElement(Zn.Provider,{value:s.updater},L.createElement(iu.Provider,{value:a},L.createElement(nu.Provider,{value:c},n)));zd("Render FormProvider with generated values");var m=ih(p);return L.createElement(Zn.Provider,{value:m.formController.updater},L.createElement(iu.Provider,{value:m.formApi},L.createElement(nu.Provider,{value:m.formState},n)))},nh=_i("informed:useForm "),ih=function(r){var n=r.dontPreventDefault,a=r.initialValues,s=r.validate,c=r.validateFields,p=r.allowEmptyStrings,m=r.preventEnter,v=r.getApi,y=r.apiRef,b=r.onChange,I=r.onReset,R=r.onSubmit,N=r.onValueChange,G=r.onSubmitFailure,ee=r.validationSchema,q=r.schema,oe=r.ajv,ae=r.fieldMap,pe=r.onlyValidateSchema,ve=jr(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);nh("Render useForm");var me=(0,L.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:s,validateFields:c,allowEmptyStrings:p,preventEnter:m,validationSchema:ee,schema:q,ajv:oe,fieldMap:ae}},[n,a,s,c,p,m,ee,q,oe,ae]),Te=(0,L.useState)(function(){return new Jm(me)}),Ae=kr(Te,1),Se=Ae[0];(0,L.useEffect)(function(){Se.setOptions(me)},[me]),Ni(function(){Se.mount()},[]);var Ce=(0,L.useState)(function(){return Se.getFormState()}),Fe=kr(Ce,2),Re=Fe[0],Ue=Fe[1];Ni(function(){var ur=function(){return b&&b(Se.getFormState())},jt=function(){return I&&I()},fr=function(){return R&&R(Se.getFormState().values)},$t=function(){return N&&N(Se.getFormState().values)},cr=function(){return G&&G(Se.getFormState().errors)};return Se.on("change",ur),Se.on("reset",jt),Se.on("submit",fr),Se.on("value",$t),Se.on("failure",cr),function(){Se.removeListener("change",ur),Se.removeListener("reset",jt),Se.removeListener("submit",fr),Se.removeListener("value",$t),Se.removeListener("failure",cr)}},[b,I,R,N,G]),(0,L.useState)(function(){var ur=function(){nh("Setting form state"),Ue(Se.getFormState())};Se.on("change",ur),v&&v(Se.getFormApi()),y&&(y.current=Se.getFormApi())});var ze=(0,L.useState)(function(){return Se.getFormApi()}),Ct=kr(ze,1),qe=Ct[0],nr=function(jt){return L.createElement(Xm,{formApi:qe,formState:Re,formController:Se},L.createElement(L.Fragment,null,jt||L.createElement(Hd,{schema:q,onlyValidateSchema:pe})))};return{formApi:qe,formState:Re,formController:Se,render:nr,userProps:ve}},Qm=_i("informed:Form "),Zm=function(r){var n=r.children,a=r.render,s=r.component,c=jr(r,["children","render","component"]);Qm("Render FORM");var p=ih(c),m=p.formApi,v=p.formController,y=p.formState,b=p.render,I=p.userProps,R=function(){var G={formState:y,formApi:m};return s?L.createElement(s,G,n):a?a(G):typeof n=="function"?n(G):n};return b(L.createElement("form",Br({},I,{onReset:v.reset,onSubmit:v.submitForm,onKeyDown:v.keyDown}),R()))},qm=function(r,n){return Mt(Mt({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})},_m=function(r,n){var a=n.register,s=n.deregister,c=n.setValue,p=n.setTouched,m=n.setError,v=n.update,y=n.getField,b=n.expectRemoval,I=n.getInitialValue,R=n.fieldMap,N=n.getSavedValue;return{register:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return a.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},deregister:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return s.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},update:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return v.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},setValue:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return c.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},setTouched:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return p.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},setError:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return m.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},getField:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return y.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},expectRemoval:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return b.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},getInitialValue:function(ee){return I("".concat(r,".").concat(ee))},getSavedValue:function(ee){return N("".concat(r,".").concat(ee))},fieldMap:R}},n1=function(r){var n=r.scope,a=r.children,s=useContext(Zn),c=Li(),p=rc(),m=useMemo(function(){return qm(n,c)},[n]),v=useMemo(function(){return _m(n,s)},[n]);return React.createElement(Zn.Provider,{value:v},React.createElement(iu.Provider,{value:m},React.createElement(nu.Provider,{value:p},a)))},i1=function(r){var n=rc(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(N){a[N]=n[N]}):a=n;var s=a,c=s.pristine,p=s.dirty,m=s.invalid,v=s.values,y=s.errors,b=s.touched,I=s.validating,R=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:c,dirty:p,invalid:m,values:v,errors:y,touched:b,validating:I,submitting:R},null,2)))},ey=function(r){var n=r.initialStep,a=r.multistepApiRef,s=Li(),c=s.getValues,p=s.validate,m=s.screenValid,v=(0,L.useState)(new Map),y=kr(v,1),b=y[0],I=(0,L.useRef)(0),R=wa({current:n,steps:[],goal:null}),N=kr(R,3),G=N[0],ee=N[1],q=N[2],oe=(0,L.useState)(function(){var me=function(){var Se=q(),Ce=Se.current,Fe=b.get(Ce);return Fe},Te={getState:function(){return q()},getCurrentStep:me,getStep:function(Se){return b.get(Se)},getNumberOfSteps:function(){return b.size},next:function(){if(p(),m()){var Se=me(),Ce=Se.getNext,Fe=Ce(),Re=typeof Fe=="function"?Fe(c()):Fe;Re&&ee(function(Ue){return Mt(Mt({},Ue),{},{current:Re})})}},back:function(){var Se=me(),Ce=Se.getPrevious,Fe=Ce(),Re=typeof Fe=="function"?Fe(c()):Fe;Re&&ee(function(Ue){return Mt(Mt({},Ue),{},{current:Re})})},setCurrent:function(Se){if(Se){var Ce=b.get(Se).index;Ce<me().index?ee(function(Fe){return Mt(Mt({},Fe),{},{current:Se,goal:null})}):ee(function(Fe){return Mt(Mt({},Fe),{},{goal:Se})})}},register:function(Se,Ce,Fe){Fe?(I.current=I.current+1,b.set(Se,Mt(Mt({},Ce),{},{index:I.current}))):ee(function(Re){return Mt(Mt({},Re),{},{steps:Array.from(b.keys())})})},deregister:function(Se){b.delete(Se),I.current=I.current-1,ee(function(Ce){return Mt(Mt({},Ce),{},{steps:Array.from(b.keys())})})}};return a&&(a.current=Te),Te}),ae=kr(oe,1),pe=ae[0],ve=function(Te){return L.createElement(zp.Provider,{value:pe},L.createElement(Hp.Provider,{value:G},Te))};return Mt(Mt(Mt({},pe),G),{},{render:ve})};function ty(){return(0,L.useContext)(Hp)}function ry(){return(0,L.useContext)(zp)}var ny=function(r){var n=r.step,a=r.next,s=r.previous,c=r.relevant,p=rc(),m=p.values,v=ty(),y=v.current,b=v.goal,I=ry(),R=I.register,N=I.deregister,G=I.next,ee=n===y,q=c?c(m):!0,oe=(0,L.useRef)(a),ae=(0,L.useRef)(s),pe=(0,L.useRef)();oe.current=a,ae.current=s,pe.current=c,(0,L.useState)(function(){R(n,{name:n,getNext:function(){return oe.current},getPrevious:function(){return ae.current}},!0)}),(0,L.useEffect)(function(){return R(n,{name:n,getNext:function(){return oe.current},getPrevious:function(){return ae.current}}),function(){N(n)}},[n]),(0,L.useEffect)(function(){b&&ee&&b!==n&&G()},[b,ee]);var ve=function(Te){return L.createElement(Gp.Provider,{value:{relevant:function(Se){return pe.current?pe.current(Se):!0},multistep:!0}},ee&&q?Te:null)};return{isCurrent:ee,isRelevant:q,step:n,render:ve}};function iy(e){var r=e.children,n=jr(e,["children"]),a=ey(n),s=a.render,c=jr(a,["render"]);return s(typeof r=="function"?r(c):r)}iy.Step=function(r){var n=r.children,a=jr(r,["children"]),s=ny(a),c=s.render;return c(n)};var a1=function(r){var n=r.field,a=useContext(Zn),s=a.fieldMap,c=Li(),p=c.getFullField,m=c.getOptions,v=p(n),y=m(),b=y.schema,I=qp(v),R=At.get(b,I);if(!R)return null;var N=Ud(n,R),G=N.props,ee=N.componentType,q=s[ee];return React.createElement(q,Br({field:n},G))},o1=function(){var r=Li(),n=r.getOptions,a=n(),s=a.schema;return React.createElement(Hd,{schema:s})},s1=function(r){return React.forwardRef(function(n,a){return React.createElement(iu.Consumer,null,function(s){return React.createElement(r,Br({formApi:s,ref:a},n))})})},l1=function(r){return React.forwardRef(function(n,a){return React.createElement(nu.Consumer,null,function(s){return React.createElement(r,Br({formState:s,ref:a},n))})})},ay=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(s){return r.setValue(n,s)},getTouched:function(){return r.getTouched(n)},setTouched:function(s){return r.setTouched(n,s)},getError:function(){return r.getError(n)},setError:function(s){return r.setError(n,s)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function ah(e){var r=Li(),n=useMemo(function(){return ay(r,e)},[e]);return n}function oy(e){var r=ah(e),n=Li(),a=React.useState(),s=kr(a,2),c=s[1],p=React.useCallback(function(){return c({})},[]);return Ni(function(){var m=function(y){y===e&&p()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Ni(function(){p()},[]),r.getFieldState()||{}}var u1=function(r){return function(n){return function(a){var s=oy(r);return React.createElement(n,Br({fieldState:s},a))}}},f1=function(r){return function(n){return function(a){var s=ah(r);return React.createElement(n,Br({fieldApi:s},a))}}},c1=function(r){var n=r.value,a=r.forwardedRef,s=r.children,c=jr(r,["value","forwardedRef","children"]);return React.createElement("option",Br({ref:a,value:n,key:n},c),s)},d1=null,oh=o(56642),io=o(67262),sy=Object.defineProperty,ly=Object.defineProperties,uy=Object.getOwnPropertyDescriptors,sh=Object.getOwnPropertySymbols,fy=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable,lh=(e,r,n)=>r in e?sy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ou=(e,r)=>{for(var n in r||(r={}))fy.call(r,n)&&lh(e,n,r[n]);if(sh)for(var n of sh(r))cy.call(r,n)&&lh(e,n,r[n]);return e},dy=(e,r)=>ly(e,uy(r)),ic=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const uh="/oauth2-redirect.html";class Di{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:s={},routingBasePath:c,redirectUri:p,successCallback:m,errorCallback:v}){const y=(0,io.p8)({date:new Date().toString()}),b=new URL(r),I=c==="/"?"":c,R=`${window.location.origin}${I}${uh}`;b.searchParams.set("client_id",n),b.searchParams.set("redirect_uri",p||R),b.searchParams.set("response_type","token"),b.searchParams.set("state",y),Array.isArray(a)&&b.searchParams.set("scope",a.join(" "));for(const N in s)b.searchParams.set(N,s[N]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:y,successCallback:N=>{m(N),Di.clearRedirectData("implicit")},errorCallback:N=>{v(N),Di.clearRedirectData("implicit")}},window.open(b.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:s,codeVerifier:c,codeChallenge:p,scopes:m,extraParams:v={},extraHeaders:y={},routingBasePath:b,redirectUri:I,successCallback:R,errorCallback:N}){const G=new URL(r),ee=b==="/"?"":b,q=`${window.location.origin}${ee}${uh}`,oe=(0,io.p8)({date:new Date().toString()});G.searchParams.set("client_id",a),G.searchParams.set("redirect_uri",I||q),G.searchParams.set("response_type","code"),G.searchParams.set("state",oe),Array.isArray(m)&&G.searchParams.set("scope",m.join(" ")),p&&(G.searchParams.set("code_challenge",p),G.searchParams.set("code_challenge_method","S256"));for(const ae in v)G.searchParams.set(ae,v[ae]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:oe,successCallback:ae=>ic(this,[ae],function*({auth_code:pe}){try{const ve=yield fetch(n,{method:"POST",headers:ou({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:oh.stringify(ou(dy(ou({client_id:a,client_secret:s},c&&{code_verifier:c}),{code:pe,grant_type:"authorization_code",redirect_uri:I||q}),v))});yield fh(ve,R,N)}catch(ve){N(ve)}Di.clearRedirectData("authorizationCode")}),errorCallback:ae=>{N(ae),Di.clearRedirectData("authorizationCode")}},window.open(G.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return ic(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:s,scopes:c=[],extraParams:p={},extraHeaders:m={},successCallback:v,errorCallback:y}){try{const b=JSON.parse(JSON.stringify(ou({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},p))),I=yield fetch(n,{method:"POST",headers:ou({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:oh.stringify(b)});yield fh(I,v,y)}catch(b){y(b)}})}}const p1=new Di;function fh(e,r,n){return ic(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function ch(e){return ic(this,null,function*(){return(0,io.rS)(yield(0,io.JQ)(e))})}var su=o(3682),ht=o(45091),py=o(31453),hy=o(43454),vy=Object.defineProperty,gy=Object.defineProperties,my=Object.getOwnPropertyDescriptors,ac=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,hh=(e,r,n)=>r in e?vy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,oc=(e,r)=>{for(var n in r||(r={}))dh.call(r,n)&&hh(e,n,r[n]);if(ac)for(var n of ac(r))ph.call(r,n)&&hh(e,n,r[n]);return e},yy=(e,r)=>gy(e,my(r)),by=(e,r)=>{var n={};for(var a in e)dh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&ac)for(var a of ac(e))r.indexOf(a)<0&&ph.call(e,a)&&(n[a]=e[a]);return n};const vh=e=>Qt.iv`
170
+ `+K)}else b[0]=D+" "+b[0]}function a(b,I){if(b[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var D="color: "+I.color,B=0,$=0;b[0].replace(/%[a-zA-Z%]/g,function(K){K!=="%%"&&(B++,K==="%c"&&($=B))}),b.splice($,0,D)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function c(){var b;try{b=localStorage.getItem("debug")}catch(I){}return!b&&typeof process!="undefined"&&"env"in process&&(b={}.DEBUG),{namespaces:b||"",colors:s,useColors:!0,formatArgs:a}}function p(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var D=arguments.length,B=new Array(D),$=0;$<D;$++)B[$]=arguments[$];b&&B.unshift(b);var K=I.namespaces.split(",").map(function(pe){return pe[pe.length-1]==="*"?new RegExp("^"+pe.slice(0,pe.length-1)+".*$"):new RegExp("^"+pe+"$")}),q=K.some(function(pe){return pe.test(b)}),oe={color:r(b,I.colors),namespace:b,useColors:I.useColors};if(!1)var ae}}function v(b){return m(b,p())}function y(b){return m(b,c())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=y:e.exports=v}),Ho=_i("informed:ObjMap "),Zf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},qf=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(c,p){return c!=null?c[p]:c},r);return s===void 0||s===r?a:s},Np=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},om=function(r){return r.replace(Np(r),"").replace(/\./,"")},sm=function(r,n){var a=Np(n),s=om(n),c=a?qf(r,a):r;return!!(c&&Object.hasOwnProperty.call(c,s.replace(/\[(.*)\]/,"$1")))},Dp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return p===m.length-1?(s[c]=a,s[c]):s[c]===void 0?(Number.isInteger(+m[p+1])?s[c]=[]:s[c]={},s[c]):(Number.isInteger(+m[p+1])&&!Array.isArray(s[c])&&(s[c]=[]),s[c])},r)},Bp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return s===void 0?s:(p===m.length-1&&(delete s[c],a=!0),s[c])},r),a},lm=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return s===void 0?s:(p===m.length-1&&Array.isArray(s)&&(a=s.splice(c,1)),s[c])},r),a},um=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},jd=function(r){var n=Zf(r);return Number.isInteger(+n[n.length-1])},At=function(){function e(){Md(this,e)}return Ld(e,null,[{key:"empty",value:function(n){return um(n).length===0}},{key:"get",value:function(n,a){var s=qf(n,a);return s}},{key:"has",value:function(n,a){return sm(n,a)}},{key:"set",value:function(n,a,s){if(s!==void 0)Ho("SETTING",a,s),Dp(n,a,s);else if(jd(a)&&e.get(n,a)!==void 0){Ho("Special case SETTING",a,"to undefined"),Dp(n,a,void 0);var c=Zf(a);c=c.slice(0,c.length-1),_f(n,c)}else!jd(a)&&e.get(n,a)!==void 0&&(Ho("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){Ho("DELETE",a),jd(a)?(Ho("ARRAY",a),this.pullOut(n,a)):Bp(n,a);var s=Zf(a);s=s.slice(0,s.length-1),_f(n,s)}},{key:"pullOut",value:function(n,a){var s=Zf(a),c=s[s.length-1];s=s.slice(0,s.length-1),Ho("Pulling out:",s,"index",c);var p=qf(n,s);Ho("Array",p),Array.isArray(p)&&lm(p,c),_f(n,s)}}]),e}();function _f(e,r){if(r.length!==0){var n=qf(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Bp(e,r),_f(e,r.slice(0,r.length-1))}}var Zn=M.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),nu=M.createContext({}),iu=M.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jp=M.createContext(),Vp=M.createContext(),Up=M.createContext(),Vd=M.createContext(),Wp=M.createContext(),Hp=M.createContext(),zp=M.createContext(),Gp=M.createContext();function Li(){var e=(0,M.useContext)(iu);return e}function wa(e){var r=(0,M.useRef)(),n=(0,M.useRef)(!0),a=(0,M.useState)(e),s=kr(a,2),c=s[0],p=s[1];r.current=c;var m=function(b){r.current=b,n.current&&p(b)},v=function(){return r.current};return(0,M.useEffect)(function(){return function(){n.current=!1}},[]),[c,m,v]}var $p=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},Kp=function(r){var n={};if(r.inner){if(r.inner.length===0){At.set(n,r.path,r.message);return}var a=im(r.inner),s;try{for(a.s();!(s=a.n()).done;){var c=s.value;At.get(n,c.path)||At.set(n,c.path,c.message)}}catch(p){a.e(p)}finally{a.f()}}return n},Yp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(s){var a=Kp(s);return a}},Jp=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Xp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return Jp(a)}},Qp=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(s){var c=s.message,p=s.dataPath,m=s.keyword,v=s.params,y=p;m==="required"&&(y="".concat(y,".").concat(v.missingProperty)),y=y.replace(".",""),At.set(a,y,c)}),a},zo=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},fm=function(r,n){var a;return function(){for(var c=arguments.length,p=new Array(c),m=0;m<c;m++)p[m]=arguments[m];var v=function(){clearTimeout(a),r.apply(void 0,p)};clearTimeout(a),a=setTimeout(v,n)}},Ud=function(r,n,a){var s=n["ui:control"],c=n["informed:props"],p=n["input:props"],m=n["ui:before"],v=n["ui:after"],y=n.oneOf,b=n.items,I=n.enum,D=n.title,B=n.minimum,$=n.maximum,K=n.minLength,q=n.maxLength,oe=n.pattern,ae=n.type,pe=n.properties,Ce=zo();p&&p.id&&(Ce=p.id);var Se={componentType:s,field:a?"".concat(a,".").concat(r):r,type:ae,uiBefore:m,uiAfter:v,properties:ae==="object"?pe:void 0,items:ae==="array"?b:void 0,props:Mt(Mt({label:D,id:Ce,min:B,max:$,minLength:K,maxLength:q,pattern:oe},c),p)};if(y){var Pe=n.oneOf.map(function(we){var Fe=we["input:props"],Re=Fe===void 0?{}:Fe;return Mt({value:we.const,label:we.title},Re)});Se.props.options=Pe}if(I){var he=n.enum.map(function(we){return{value:we,label:we}});Se.props.options=he}if(b&&b.oneOf){var me=b.oneOf.map(function(we){var Fe=we["input:props"],Re=Fe===void 0?{}:Fe;return Mt({value:we.const,label:we.title},Re)});Se.props.options=me}return Se},Zp=function(r,n,a){if(!r||n)return[];var s=r.properties,c=s===void 0?{}:s,p=r.allOf,m=r.propertyOrder,v=m===void 0?[]:m;if(Object.keys(c).length>0){var y=Object.keys(c).sort(function(b,I){var D=v.indexOf(b),B=v.indexOf(I);return(D>-1?D:v.length+1)-(B>-1?B:v.length+1)}).map(function(b){var I=c[b],D=Ud(b,I,a);return D});return p&&y.push({componentType:"conditionals",allOf:p}),y}return[]},qp=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},cm=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},dm=function(r,n){for(var a=0,s=-1,c=!0;c&&a<r.length;)r[a]==n[a]?s=a:c=!1,a=a+1;return s},ec=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),s=cm(n,a),c=s.findIndex(function(q){return typeof q!="string"}),p=s.length-an(s).reverse().findIndex(function(q){return typeof q!="string"}),m=[],v=a.split(""),y=0,b=0,I=dm(s.slice(0,c),v.slice(0,c));I>-1&&(y=I+1,m=m.concat(s.slice(0,I+1)),b=I+1),I<0&&(m=m.concat(s.slice(0,c)),b=c);for(var D=b;D<s.length;D++){var B=s[D];if(y!=v.length){var $=v[y];if(typeof B=="function")m.push(B($)),y=y+1;else{var K=typeof B=="string"?B===$:B.test($);K&&typeof B=="string"?(m.push(B),y=y+1):!K&&typeof B=="string"?y!=v.length&&m.push(B):K&&typeof B!="string"?(m.push($),y=y+1):!K&&typeof B!="string"&&(y=y+1,D=D-1)}}else if(typeof B=="string"&&D>=p)m.push(B);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},pm=function(r,n){var a,s,c=new Intl.NumberFormat(r,n),p=new Intl.NumberFormat(r),m=(a=(s=p.formatToParts(.1).find(function(q){var oe=q.type;return oe==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function v(q,oe){return q instanceof RegExp&&oe instanceof RegExp&&q.source===oe.source&&q.global===oe.global&&q.ignoreCase===oe.ignoreCase&&q.multiline===oe.multiline}function y(q,oe){for(var ae=q.length;ae--;)if(oe(q[ae]))return ae;return-1}function b(q,oe,ae){var pe=an(q);return Array.isArray(ae)?pe.splice.apply(pe,[oe,0].concat(an(ae))):pe.splice(oe,0,ae),pe}function I(q){return"".concat(q).replace(/\D/g,"")}function D(q){return"".concat(q).split(m).map(function(oe){return I(oe)}).join(".")}function B(q){if(typeof q=="number")return q;var oe=parseFloat(D(q));return Number.isNaN(oe)?void 0:oe}function $(q){var oe=D(q),ae="".concat(oe).split(".")[1],pe=c.formatToParts(Number(oe));ae==="0"&&pe.push({type:"decimal",value:m},{type:"fraction",value:ae});var Ce=pe.reduce(function(he,me){var we=me.type,Fe=me.value;return["decimal","fraction"].includes(we)&&ae==null?he:["integer","fraction"].includes(we)?[].concat(an(he),an(Fe.split("").filter(function(Re,Ue){return we==="fraction"?Ue<ae.length:!0}).map(function(){return/\d/}))):we==="currency"?[].concat(an(he),an(Fe.split(""))):[].concat(an(he),[Fe])},[]),Se=y(Ce,function(he){return v(he,/\d/)});Ce.indexOf(m)===-1&&"".concat(q).indexOf(m)!==-1&&(Ce=b(Ce,Se+1,[m,"[]"]),Se+=2);var Pe=Ce.slice(Se+1).join("");return Ce=[].concat(an(Ce.slice(0,Se+1)),[Pe]),Ce}var K=function(oe){if(oe!=null)return B(oe)};return{formatter:$,parser:K}},n1=Object.freeze({__proto__:null,getChildDisplayName:$p,yupToFormErrors:Kp,validateYupSchema:Yp,yupToFormError:Jp,validateYupField:Xp,validateAjvSchema:Qp,uuidv4:zo,debounce:fm,computeFieldFromProperty:Ud,computeFieldsFromSchema:Zp,getSchemaPathFromJsonPath:qp,informedFormat:ec,createIntlNumberFormatter:pm}),Ni=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,hm=function(r){var n=r.value,a=r.inputRef,s=r.maintainCursor,c=s===void 0?!0:s,p=wa(0),m=kr(p,3),v=m[0],y=m[1],b=m[2],I=wa(0),D=kr(I,3),B=D[0],$=D[1],K=D[2];return Ni(function(){if(a.current!=null&&b()){var q=b()+K();K()!=0&&c?a.current.setSelectionRange(q+1,q+1):c&&a.current.setSelectionRange(q,q)}},[n]),{setCursorOffset:$,setCursor:y,cursor:v,getCursor:b,cursorOffset:B}},vm=function(r,n){var a=(0,M.useRef)(!0),s=a.current;(0,M.useEffect)(function(){if(s)a.current=!1;else return r()},n)},Dn=_i("informed:useField "),_p=function(r,n,a,s,c){if(r!=null){if(c)return c(r);if(n)return n(r);if(a&&!s){var p=ec(r,a);return p.value}return r}},gm=function(r,n,a,s){if(n&&a)return n(r);if(s){var c=ec(r,s);return c.value}return r},mm=function(r,n,a){var s=a.required;if(r||n)return function(c,p){if(n)return Xp(n,c);if(r)return r(c,p)};if(s)return function(c){return wm(c,s)}},ym=function(r){var n=r.fieldType,a=r.setValue,s=r.onChange,c=r.multiple,p=r.ref,m=function(y){return a(y)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(y){return a(y.target.value,y)}),n==="select"&&(m=function(){var y=Array.from(p.current).filter(function(b){return b.selected}).map(function(b){return b.value});a(c?y:y[0]||"")}),n==="checkbox"&&(m=function(y){a(y.target.checked),s&&s(y)}),function(v){m(v)}},bm=function(r){var n=r.setTouched,a=r.onBlur;return function(s){n(!0),a&&a(s)}},xm=function(r){var n=r.fieldType,a=r.maskedValue,s=r.multiple,c=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return c||(s?[]:"");case"checkbox":return!!c;default:return c}},Sm=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},wm=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function au(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,s=e.asyncValidate,c=e.validationSchema,p=e.mask,m=e.maskWithCursorOffset,v=e.format,y=e.parse,b=e.formatter,I=e.parser,D=e.initialValue,B=e.validateOnChange,$=e.validateOnBlur,K=e.validateOnMount,q=e.asyncValidateOnBlur,oe=e.maskOnBlur,ae=e.allowEmptyString,pe=e.onValueChange,Ce=e.notify,Se=e.keepState,Pe=e.maintainCursor,he=e.debug,me=e.shadow,we=e.step,Fe=e.fieldType,Re=e.multiple,Ue=e.onChange,ze=e.onBlur,Ct=e.formController,qe=e.relevant,nr=e.required,ur=e.keepStateIfRelevant,jt=e.initialize,fr=e.formatterDependencies,$t=fr===void 0?[]:fr,cr=jr(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wr=(0,M.useState)(zo()),Ut=kr(wr,1),ft=Ut[0],Ot=(0,M.useContext)(Zn),Zt=(0,M.useContext)(Gp),Wt=Zt||ur,Kt=Li(),qr=(0,M.useRef)(),Un=(0,M.useRef)(!0),pi=(0,M.useRef)(),Vr=(0,M.useRef)(!1),sn=function(){return!Vr.current},Jo=function(){return Vr.current};Ct&&(Ot=Ct.updater,Kt=Ct.getFormApi());var Fn=mm(a,c,{required:nr}),Xo=(0,M.useState)(function(){return Ot.getInitialValue(n)}),cp=kr(Xo,1),ji=cp[0],Vi=Ot.getSavedValue(n),Oa,il;(Se||Wt)&&Vi?(Dn("Setting field ".concat(Ep,"'s kept state"),Vi),Oa=Vi.value,il=Vi.touched,Kt.removeSavedState(Ep)):D!=null?Oa=D:Oa=ji;var xu=wa(_p(Oa,p,b,I,jt)),qt=kr(xu,3),En=qt[0],dp=qt[1],Nx=qt[2],Dx=wa(K?Fn(En):void 0),pp=kr(Dx,3),Sg=pp[0],wg=pp[1],Bx=pp[2],jx=wa(il),hp=kr(jx,3),Ag=hp[0],Vx=hp[1],Cg=hp[2],Ux=(0,M.useState)(function(){return gm(En,v,y,b)}),Eg=kr(Ux,2),vp=Eg[0],gp=Eg[1],Og=(0,M.useRef)();Og.current=vp;var Tg=(0,M.useRef)(D),Qo=(0,M.useRef)(n),Pg=(0,M.useRef)();Tg.current=D,Qo.current=n;var Wx=(0,M.useRef)(null),ra=M.useMemo(function(){return r||Wx},[]),mp=hm({value:En,inputRef:ra,maintainCursor:!!Pe}),yp=mp.getCursor,Hx=mp.setCursor,bp=mp.setCursorOffset,zx=function(){return!0},xp=function(pr){var ln=qe||zx,Wn=Kt.getFullField(Qo.current)||Qo.current,_t={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,Au){return At.get(Hn,Au)}};return Zt&&Zt.relevant?ln(pr,_t)&&Zt.relevant(pr,_t):ln(pr,_t)},Gx=wa(xp(Kt.getValues())),Sp=kr(Gx,3),Oc=Sp[0],$x=Sp[1],Ig=Sp[2],Kx=function(pr){return Zt&&Zt.relevant?Zt.relevant(pr):!0},Yx=function(){var pr=xp(Kt.getValues()),ln=Ig();return pr!=ln&&$x(pr),pr};(0,M.useEffect)(function(){!Oc&&!Se&&qr.current.reset()},[Oc]);var hi=function(){return me?Kt.getDerrivedValue(n):Nx()},Su=function(pr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=ln.preventUpdate;we&&Kt.getStep()<we?(Dn("Setting ".concat(n,"'s error to undefined as we are not at that step")),wg(void 0),Ot.setError(ft,void 0,!Wn)):(Dn("Setting ".concat(n,"'s error to ").concat(pr)),wg(pr),Ot.setError(ft,pr,!Wn))},wp=function(pr,ln){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=pr;Vr.current=!0,Dn("Setting ".concat(n," to ").concat(_t)),jt&&(_t=jt(_t));var Zo=Kt.getOptions(),Hn=_t;if(_t===""&&!ae&&!Wn.allowEmptyString&&!Zo.allowEmptyStrings&&(_t=void 0),(e.type==="number"||Fe==="number")&&_t!==void 0&&(_t=+_t),ln&&ln.target&&ln.target.selectionStart&&Hx(ln.target.selectionStart),p&&!oe&&(Hn=p(_t,yp()),_t=p(_t,yp())),m&&!oe){var Au=m(_t,yp());Hn=Au.value,_t=Au.value,bp(Au.offset)}if(v&&y&&(_t=y(_t),Hn=v(_t)),b){var Fg=ec(_t,b);bp(Fg.offset),Hn=Fg.value,_t=Hn}I&&(_t=_t!=null?I(_t):_t),Fn&&B&&!Wn.initial&&(Dn("Validating after change ".concat(n," ").concat(_t)),Su(Fn(_t,Kt.getValues()))),dp(_t),gp(Hn),pe&&pe(_t),Ot.setValue(ft,_t,!Wn.preventUpdate)};vm(function(){qr.current.setValue(Og.current)},an($t));var Ap=function(pr,ln){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=Wn.preventUpdate;if(Dn("Field ".concat(n," has been touched")),Fn&&$&&!ln&&pr&&(Dn("Validating after blur ".concat(n," ").concat(hi())),Su(Fn(hi(),Kt.getValues()))),s&&q&&!ln&&pr&&(Dn("Validating async after blur ".concat(n," ").concat(hi())),s(hi(),Kt.getValues())),p&&oe){var Zo=p(hi());dp(Zo),gp(Zo),pe&&pe(Zo),Ot.setValue(ft,Zo,!_t)}if(m&&oe){var Hn=m(hi());bp(Hn.offset),dp(Hn.value),gp(Hn.value),pe&&pe(Hn.value),Ot.setValue(ft,Hn.value,!_t)}Vx(pr),Ot.setTouched(ft,pr,!_t)},Jx=function(){var pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=pr.preventUpdate,Wn=_p(Tg.current||Ot.getInitialValue(Qo.current),p,b,I,jt);wp(Wn,null,{initial:!0,preventUpdate:ln}),Su(K?Fn(Wn):void 0,{preventUpdate:ln}),Ap(void 0,!0,{preventUpdate:ln}),Vr.current=!1},Xx=function(pr){Fn&&(Dn("Field validating ".concat(n," ").concat(hi())),Su(Fn(hi(),pr||Kt.getValues())))},Qx=function(pr){s&&(Dn("Field async validating ".concat(n," ").concat(hi())),s(hi(),pr||Kt.getValues()))},Cp={setValue:wp,setTouched:Ap,setError:Su,reset:Jx,validate:Xx,asyncValidate:Qx,getValue:hi,getTouched:Cg,getError:Bx,getIsRelevant:Ig,getDirty:Jo,getPristine:sn,getFieldState:function(){return{value:hi(),touched:Cg(),dirty:Jo(),pristine:sn()}},relevant:xp,multistepRelevant:Kx,checkRelevant:Yx};qr.current=Cp;var wu={value:En,error:Sg,touched:Ag,maskedValue:vp,isRelevant:Oc,dirty:Vr.current,pristine:!Vr.current};me&&(wu={error:Sg,touched:Ag}),Dn("Render",Kt.getFullField(n),wu),Ni(function(){var _r=Kt.getFullField(Qo.current);return Dn("Register",ft,Qo.current),pi.current={field:_r,fieldId:ft,fieldApi:Cp,fieldState:wu,notify:Ce,keepState:Se,inMultistep:Wt,shadow:me},Ot.register(ft,pi.current),function(){var pr=Kt.getFullField(Qo.current);Dn("Deregister",ft,pr),Ot.deregister(ft)}},[]),(0,M.useEffect)(function(){var _r=Kt.getFullField(n);return Un.current?Un.current=!1:(Dn("Update",n,Wt),pi.current.field=_r,Ot.update(ft,pi.current,Pg.current)),function(){Pg.current=_r}},[n]),Ni(function(){he&&ra&&(ra.current.style.border="5px solid orange",setTimeout(function(){ra.current.style.borderWidth="2px",ra.current.style.borderStyle="inset",ra.current.style.borderColor="initial",ra.current.style.borderImage="initial"},500))});var Zx=[].concat(an(Object.values(wu)),an(Object.values(e)),an(Object.values(cr))),qx=function(pr){return(0,M.useMemo)(function(){return Oc?pr:null},an(Zx))},Ep=n,_x=ym({fieldType:Fe,setValue:wp,onChange:Ue,multiple:Re,ref:ra}),e1=bm({setTouched:Ap,onBlur:ze}),t1=xm({fieldType:Fe,maskedValue:vp,multiple:Re,value:En}),r1=Sm(Fe);return{fieldState:wu,fieldApi:Cp,render:qx,ref:ra,userProps:Mt(Mt({},cr),{},{multiple:Re,onChange:Ue,onBlur:ze,id:cr.id||ft}),informed:Mt({name:Ep,multiple:Re,onChange:_x,onBlur:e1,value:t1,ref:ra,type:r1,id:cr.id||ft},cr)}}var Aa=function(r){var n=M.forwardRef(function(a,s){var c=au(a,s),p=c.fieldState,m=c.fieldApi,v=c.render,y=c.ref,b=c.userProps;return v(M.createElement(r,Br({fieldApi:m,fieldState:p,field:a.field,forwardedRef:y,debug:a.debug,type:a.type},b)))});return n.displayName="asField(".concat($p(r),")"),n},Am=_i("informed:Text "),Cm=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,D=s.forwardedRef,B=s.debug,$=s.label,K=s.title,q=s.id,oe=jr(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Am("Render",b),Ni(function(){B&&D&&(D.current.style.background="red",setTimeout(function(){D.current.style.background="white"},500))}),M.createElement(M.Fragment,null,$?M.createElement("label",{htmlFor:q}," ",$," "):null,M.createElement("input",Br({},oe,{id:q,name:b,ref:D,value:!c&&c!==0?"":c,onChange:function(pe){p(pe.target.value,pe),v&&v(pe)},onBlur:function(pe){m(!0),y&&y(pe)}})))},Em=Aa(Cm),Om=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,D=s.forwardedRef,B=s.debug,$=s.label,K=s.id,q=jr(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Ni(function(){B&&D&&(D.current.style.background="red",setTimeout(function(){D.current.style.background="white"},500))}),M.createElement(M.Fragment,null,$?M.createElement("label",{htmlFor:K}," ",$," "):null,M.createElement("textarea",Br({},q,{id:K,name:b,ref:D,value:c||"",onChange:function(ae){p(ae.target.value,ae),v&&v(ae)},onBlur:function(ae){m(!0),y&&y(ae)}})))},Tm=Aa(Om),Pm=_i("informed:Select "),Im=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.value,p=n.setTouched,m=s.onChange,v=s.onBlur,y=s.field,b=s.initialValue,I=s.options,D=s.children,B=s.forwardedRef,$=s.debug,K=s.multiple,q=s.label,oe=s.id,ae=jr(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),pe=(0,M.useRef)(),Ce=function(Pe){var he=Array.from((B||pe).current).filter(function(me){return me.selected}).map(function(me){return me.value});n.setValue(K?he:he[0]||""),m&&Pe&&m(Pe)};return Ni(function(){$&&B&&(B.current.style.background="red",setTimeout(function(){B.current.style.background="white"},500))}),Pm("Render",y,c),M.createElement(M.Fragment,null,q?M.createElement("label",{htmlFor:oe}," ",q," "):null,M.createElement("select",Br({},ae,{id:oe,multiple:K,name:y,ref:B||pe,value:c||(K?[]:""),onChange:Ce,onBlur:function(Pe){p(!0),v&&v(Pe)}}),I?I.map(function(Se){return M.createElement("option",{key:Se.value,value:Se.value,disabled:Se.disabled},Se.label)}):D))},Fm=Aa(Im),km=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.value,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,D=s.debug,B=s.forwardedRef,$=s.id,K=s.label,q=jr(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return M.createElement(M.Fragment,null,K?M.createElement("label",{htmlFor:$}," ",K," "):null,M.createElement("input",Br({},q,{id:$,name:b,ref:B,checked:!!c,onChange:function(ae){p(ae.target.checked),v&&v(ae)},onBlur:function(ae){m(!0),y&&y(ae)},type:"checkbox"})))},Rm=Aa(km),Mm=function(r){return M.forwardRef(function(n,a){return M.createElement(jp.Consumer,null,function(s){var c=s.radioGroupApi,p=s.radioGroupState;return M.createElement(r,Br({radioGroupApi:c,radioGroupState:p,ref:a},n))})})},Lm=function(r){var n=r.radioGroupApi,a=r.radioGroupState,s=jr(r,["radioGroupApi","radioGroupState"]),c=a.value,p=n.setValue,m=n.setTouched,v=n.onChange,y=n.onBlur,b=s.value,I=s.onChange,D=s.onBlur,B=s.field,$=s.initialValue,K=s.forwardedRef,q=jr(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return M.createElement("input",Br({},q,{name:B,ref:K,value:b,checked:c===b,onChange:function(ae){!ae.target.checked||(p(b),I&&I(ae),v&&v(ae))},onBlur:function(ae){m(!0),D&&D(ae),y&&y(ae)},type:"radio"}))},Nm=Mm(Lm),Dm=function(e){Kg(n,e);var r=Zg(n);function n(){return Md(this,n),r.apply(this,arguments)}return Ld(n,[{key:"render",value:function(){var s=this.props,c=s.options,p=s.children;return M.createElement(jp.Provider,{value:this.groupContext},c?c.map(function(m){return M.createElement("label",{key:m.value},m.label," ",M.createElement(Nm,{value:m.value}))}):p)}},{key:"groupContext",get:function(){return{radioGroupApi:Mt(Mt({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(M.Component),Bm=Aa(Dm);function jm(){return(0,M.useContext)(Up)}var Vm=function(){var r=jm(),n=r.add;return M.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Um(){return(0,M.useContext)(Vd)}var Wm=function(){var r=Um(),n=r.remove;return M.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},tc=_i("informed:useArrayField "),Hm=function(r){var n=r.field,a=r.initialValue,s=r.validate,c=r.arrayFieldApiRef,p=jr(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Li(),v=(0,M.useState)(new Map),y=kr(v,1),b=y[0],I=(0,M.useContext)(Zn),D=m.getFullField(n),B=I.getInitialValue(n)||a||[],$=m.getSavedValue(D)&&m.getSavedValue(D).value,K=wa($||B),q=kr(K,3),oe=q[0],ae=q[1],pe=q[2],Ce=oe?oe.map(function(){return zo()}):[],Se=wa(Ce),Pe=kr(Se,3),he=Pe[0],me=Pe[1],we=Pe[2],Fe=(0,M.useMemo)(function(){return function(Ut,ft){var Ot=we()==null?0:we().length;return s?s(Ut,Ot,ft):void 0}}),Re=au(Mt({field:n,validate:s?Fe:void 0,shadow:!0},p)),Ue=Re.fieldApi;Ni(function(){var Ut=function(Ot){Ot!==D&&(tc("".concat(D," changed")),RegExp("".concat(D,"\\[[0-9]+\\]")).test(Ot)&&Ue.validate())};return m.emitter.on("value",Ut),function(){m.emitter.removeListener("value",Ut)}},[n]);var ze=function(ft){tc("EXPECTING REMOVAL OF","".concat(n,"[").concat(ft,"] and ").concat(n,"[").concat(he.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(ft,"]")),I.expectRemoval("".concat(n,"[").concat(he.length-1,"]"));var Ot=he.slice(0,ft).concat(he.slice(ft+1,he.length));me(Ot);var Zt=pe(),Wt=Zt.slice(0,ft).concat(Zt.slice(ft+1,Zt.length));ae(Wt)},Ct=function(ft,Ot){tc("Swapping","".concat(n,"[").concat(ft,"] and ").concat(n,"[").concat(Ot,"]"));var Zt=an(he);he[ft]&&he[Ot]?(Zt[ft]=he[Ot],Zt[Ot]=he[ft]):console.warn("Attempted to swap ".concat(ft," with ").concat(Ot," but one of them does not exist :(")),me(Zt)},qe=function(){he.push(zo()),me(an(he))},nr=function(ft){he.push(zo()),me(an(he));var Ot=an(pe());Ot[he.length-1]=ft,ae(Ot)},ur=function(){var ft=I.getInitialValue(n)||a||[];ae(ft);var Ot=ft?ft.map(function(){return zo()}):[];me(Ot)},jt=he.map(function(Ut,ft){var Ot={remove:function(){return ze(ft)}},Zt={initialValue:oe&&oe[ft],key:Ut,field:"".concat(n,"[").concat(ft,"]"),index:ft};return Mt(Mt({arrayFieldItemApi:Ot,arrayFieldItemState:Zt},Ot),Zt)}),fr={add:qe,swap:Ct,addWithInitialValue:nr,reset:ur};c&&(c.current=fr);var $t={fields:jt,field:n},cr=Mt(Mt({},I),{},{register:function(ft,Ot){b.set(ft,Ot);for(var Zt=arguments.length,Wt=new Array(Zt>2?Zt-2:0),Kt=2;Kt<Zt;Kt++)Wt[Kt-2]=arguments[Kt];I.register.apply(I,[ft,Ot].concat(Wt))},deregister:function(ft){b.delete(ft);for(var Ot=arguments.length,Zt=new Array(Ot>1?Ot-1:0),Wt=1;Wt<Ot;Wt++)Zt[Wt-1]=arguments[Wt];I.deregister.apply(I,[ft].concat(Zt))},getInitialValue:function(ft){if(RegExp("".concat(D,"\\[[0-9]+\\]")).test(ft)){var Ot=ft.replace(n,""),Zt=At.get(pe(),Ot);return tc("Resetting ".concat(Ot," to ").concat(Zt)),Zt}return I.getInitialValue(ft)}}),wr=function(ft){return M.createElement(Zn.Provider,{value:cr},M.createElement(Up.Provider,{value:fr},M.createElement(Vp.Provider,{value:$t},ft)))};return{render:wr,add:qe,swap:Ct,addWithInitialValue:nr,fields:jt,arrayFieldState:$t,arrayFieldApi:fr,field:n}},zm=function(r,n){return Mt(Mt({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return n.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})};function Gm(e){var r=Li(),n=(0,M.useMemo)(function(){return zm(e,r)},[e]);return n}function rc(){var e=(0,M.useContext)(nu);return e}var eh=function(r){var n=r.when,a=r.children,s=rc(),c=n(s);return c?a:null},Wd=function(r){var n=r.relevant,a=r.field,s=jr(r,["relevant","field"]),c=Li();if(n){var p=c.getFullField(a),m={path:p,parentPath:p.replace(/(.*)[.[].*/,"$1"),get:function(b,I){return At.get(b,I)}},v=function(b){var I=b.values;return n(I,m)};return M.createElement(eh,{when:v},M.createElement(th,Br({field:a},s)))}else return M.createElement(th,Br({field:a},s))},th=function(r){var n=r.children,a=jr(r,["children"]),s=Hm(a),c=s.render,p=s.arrayFieldState,m=s.arrayFieldApi,v=s.field;return c(typeof n=="function"?n(Mt(Mt({field:v,arrayFieldApi:m,arrayFieldState:p},m),p)):n)},$m=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,c=(0,M.useContext)(Zn),p=Li(),m=(0,M.useState)(0),v=kr(m,2),y=v[0],b=v[1],I=(0,M.useState)(new Map),D=kr(I,1),B=D[0],$=n.field,K=Gm($),q=function(){var he=p.getState(),me=he.values,we=he.errors,Fe=he.touched,Re={values:At.get(me,$),errors:At.get(we,$),touched:At.get(Fe,$)};return Re};(0,M.useEffect)(function(){var Pe=function(me){var we=me.slice(0,me.lastIndexOf("[")!=-1?me.lastIndexOf("]")+1:me.length);we===$&&b(Math.random())};return p.emitter.on("value",Pe),function(){p.emitter.removeListener("value",Pe)}},[$]);var oe=function(){B.forEach(function(he){he.fieldApi.reset()})},ae=q(),pe=Mt(Mt({},c),{},{register:function(he,me,we){B.set(he,me),c.register(he,me,we)},deregister:function(he){B.delete(he);for(var me=arguments.length,we=new Array(me>1?me-1:0),Fe=1;Fe<me;Fe++)we[Fe-1]=arguments[Fe];c.deregister.apply(c,[he].concat(we))}}),Ce=Mt(Mt(Mt({},a),K),{},{reset:oe}),Se=Mt(Mt({},n),ae);return typeof s=="function"?M.createElement(Zn.Provider,{value:pe},M.createElement(Vd.Provider,{value:Ce},M.createElement(Wp.Provider,{value:Se},s(Mt(Mt({arrayFieldItemApi:Ce,arrayFieldItemState:Se},Ce),Se))))):M.createElement(Zn.Provider,{value:pe},M.createElement(Vd.Provider,{value:Ce},M.createElement(Wp.Provider,{value:Se},s)))};Wd.Items=function(e){var r=e.children,n=(0,M.useContext)(Vp),a=n.fields;return a.map(function(s){var c=s.arrayFieldItemState,p=s.arrayFieldItemApi,m=c.key;return M.createElement($m,{key:m,arrayFieldItemApi:p,arrayFieldItemState:c},r)})};var nc=function(r){var n=r.components,a=(0,M.useContext)(Zn),s=a.fieldMap;return n?n.map(function(c,p){var m=c["ui:control"],v=s[m];return M.createElement(v,{key:"ui-comp-".concat(p)})}):null},Km=_i("informed:FormFields "),Hd=function e(r){var n=r.schema,a=r.prefix,s=r.onlyValidateSchema,c=(0,M.useContext)(Zn),p=c.fieldMap,m=(0,M.useMemo)(function(){var v=Zp(n,s,a),y=v.map(function(b,I){var D=b.field,B=b.props,$=b.type,K=b.properties,q=b.items,oe=b.componentType,ae=b.uiBefore,pe=b.uiAfter,Ce=b.allOf,Se=p[oe];return Km("Rendering Field",D,b),!Se&&$==="object"&&K?M.createElement(e,{schema:b,prefix:D,key:"ScheamField-".concat(I)}):!Se&&$==="array"&&q?M.createElement(rh,Br({key:"ScheamField-".concat(I),field:D,items:q,uiBefore:ae,uiAfter:pe},B)):Se&&oe==="array"&&q&&$==="array"?M.createElement(Se,Br({key:"ScheamField-".concat(I),field:D,items:q,uiBefore:ae,uiAfter:pe},B)):oe==="conditionals"?Ce.map(function(Pe){var he=Pe.then,me=Pe.if.properties,we=function(Re){var Ue=Re.values;return Object.keys(me).every(function(ze){var Ct=me[ze];return Ue[ze]===Ct.const})};return M.createElement(eh,{key:"ScheamField-".concat(I),when:we},M.createElement(e,{schema:he}))}):Se?M.createElement(Se,Br({key:"ScheamField-".concat(I),field:D},B)):null});return y},[n,a]);return m},rh=function(r){var n=r.field,a=r.items,s=r.uiBefore,c=r.uiAfter,p=jr(r,["field","items","uiBefore","uiAfter"]);return M.createElement(Wd,Br({field:n},p),M.createElement(nc,{components:s}),M.createElement(Wd.Items,null,function(m){var v=m.field;return M.createElement(M.Fragment,null,M.createElement(nc,{components:a["ui:before"]}),M.createElement(Hd,{schema:a,prefix:v}),M.createElement(nc,{components:a["ui:after"]}))}),M.createElement(nc,{components:c}))},Ym={select:Fm,input:Em,textarea:Tm,checkbox:Rm,radio:Bm,add:Vm,remove:Wm,array:rh},hr=_i("informed:Controller "),Jm=function(r,n){var a=Object.keys(n).find(function(c){return r.includes(c)});if(!!a){var s=r.slice(0,a.length);return s===a}},fi=function(){},Xm=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Md(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,s=n.schema,c=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=c||Ym,this.fieldsById=new Map,this.fieldsByName={get:function(m){var v;return r.fieldsById.forEach(function(y){y&&y.field===m&&(v=y)}),v}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:fi,setTouched:fi,setError:fi,reset:fi,validate:fi,getValue:fi,getTouched:fi,getError:fi,getFieldState:fi,checkRelevant:fi,getPristine:fi,getDirty:fi}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);b.shadow||At.set(r.state.values,b.field,b.fieldApi.getValue()),b.fieldApi.relevant(r.state.values)||At.delete(r.state.values,b.field),r.fieldsById.forEach(function(I){var D=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!D&&!I.keepState)&&(At.delete(r.state.values,I.field),At.delete(r.state.touched,I.field),At.delete(r.state.errors,I.field))}),y&&(r.emit("change"),r.emit("field",b.field),r.emit("value",b.field,v))},setTouched:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&At.set(r.state.touched,b.field,b.fieldApi.getTouched()),b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)&&At.set(r.state.touched,b.field,b.fieldApi.getTouched()),y&&(r.emit("change"),r.emit("field",b.field))},setError:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&At.set(r.state.errors,b.field,b.fieldApi.getError());var I=At.get(r.state.errors,b.field);(b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)||b.shadow&&b.fieldApi.getError()===void 0&&b.fieldApi.relevant(r.state.values)&&typeof I=="string")&&At.set(r.state.errors,b.field,b.fieldApi.getError()),y&&(r.emit("change"),r.emit("field",b.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(p){delete r.state.error,r.notify(p)})}return Ld(e,[{key:"emit",value:function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var p=this.subscriptions.get(n);p&&p.forEach(function(m){return m.apply(void 0,s)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var s=this.subscriptions.get(n);s.add(a)}},{key:"removeListener",value:function(n,a){var s=this.subscriptions.get(n);s.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,s){this.getField(n).fieldApi.setValue(a,null,Mt({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(hr("Submit",this.state),this.emit("submit")):(hr("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,a){At.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return hr("Returning form state"),Mt(Mt({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return At.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return hr("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return hr("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return hr("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return hr("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return hr("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return hr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return hr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return hr("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?At.get(this.savedValues,"shadow-".concat(n)):At.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?At.delete(this.savedValues,"shadow-".concat(n)):At.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return At.get(this.options.initialValues,n)}},{key:"getField",value:function(n){hr("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,s=this.getField(n);s&&s.notify&&s.notify.forEach(function(c){var p=".".concat(n),m="".concat(p.replace(/(.*)[.[].*/,"$1"),".").concat(c).slice(1),v=a.getField(m);v&&(hr("Notifying",v.field),v.fieldApi.validate(),v.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!(At.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var s=kr(a,2),c=s[1];return c.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!At.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){hr("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){hr("Setting values"),this.fieldsById.forEach(function(a){var s=At.get(n,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;hr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Yp(this.options.validationSchema,a);this.fieldsById.forEach(function(v){if(At.has(s,v.field)){var y=At.get(s,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.options.schema&&this.options.ajv){var c=Qp(this.ajvValidate,a);this.fieldsById.forEach(function(v){if(At.has(c,v.field)){var y=At.get(c,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.fieldsById.forEach(function(v){v.fieldApi.validate(a),v.fieldApi.setTouched(!0,!0)}),this.options.validate){var p=this.options.validate(a);this.setFormError(p)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(v){if(At.has(m,v.field)){var y=At.get(m,v.field);n.setError(v.field,y)}})}}},{key:"asyncValidate",value:function(){hr("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(hr("Submit",this.state),this.emit("submit")):(hr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,s){var c=a.field,p=a.state;hr("Register ID:",n,"Name:",c,p,"Initial",s);var m=c.slice(0,c.lastIndexOf("[")!=-1?c.lastIndexOf("]")+1:c.length),v;this.fieldsById.forEach(function(y,b){y&&y.field===c&&(v=b)}),v&&(a.keepState||a.inMultistep)?(hr("Already Registered",c),this.fieldsById.delete(v)):v&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",c),hr("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),hr("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",c))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),s=a.field;hr("Deregister",n,s),delete this.onScreen[n];var c=Jm(s,this.expectedRemovals),p=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!c&&(hr("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?At.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):At.set(this.savedValues,s,a.fieldApi.getFieldState())),(c||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(hr("Removing field",s),this.fieldsById.delete(n),c||(At.delete(this.state.values,s),At.delete(this.state.touched,s),At.delete(this.state.errors,s),a.shadow?At.delete(this.savedValues,"shadow-".concat(s)):At.delete(this.savedValues,s)),c&&this.pulledOut[p]&&(hr("Pulling out",s,"with magic value",p),At.pullOut(this.state.values,p),At.pullOut(this.state.touched,p),At.pullOut(this.state.errors,p),At.pullOut(this.savedValues,p),delete this.pulledOut[p])),this.emit("change")}},{key:"expectRemoval",value:function(n){hr("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,s){hr("Update",n,a.field,s,a.fieldState.value);var c=a.fieldApi.getValue(),p=a.fieldApi.getError(),m=a.fieldApi.getTouched(),v=this.fieldsByName.get(s);s&&!v&&(At.set(this.state.values,s),At.set(this.state.errors,s),At.set(this.state.touched,s)),At.set(this.state.values,a.field,c),At.set(this.state.errors,a.field,p),At.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),zd=_i("informed:FormProvider "),Qm=function(r){var n=r.children,a=r.formApi,s=r.formController,c=r.formState,p=jr(r,["children","formApi","formController","formState"]);if(zd("Render FormProvider"),a)return zd("Render FormProvider with given values"),M.createElement(Zn.Provider,{value:s.updater},M.createElement(iu.Provider,{value:a},M.createElement(nu.Provider,{value:c},n)));zd("Render FormProvider with generated values");var m=ih(p);return M.createElement(Zn.Provider,{value:m.formController.updater},M.createElement(iu.Provider,{value:m.formApi},M.createElement(nu.Provider,{value:m.formState},n)))},nh=_i("informed:useForm "),ih=function(r){var n=r.dontPreventDefault,a=r.initialValues,s=r.validate,c=r.validateFields,p=r.allowEmptyStrings,m=r.preventEnter,v=r.getApi,y=r.apiRef,b=r.onChange,I=r.onReset,D=r.onSubmit,B=r.onValueChange,$=r.onSubmitFailure,K=r.validationSchema,q=r.schema,oe=r.ajv,ae=r.fieldMap,pe=r.onlyValidateSchema,Ce=jr(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);nh("Render useForm");var Se=(0,M.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:s,validateFields:c,allowEmptyStrings:p,preventEnter:m,validationSchema:K,schema:q,ajv:oe,fieldMap:ae}},[n,a,s,c,p,m,K,q,oe,ae]),Pe=(0,M.useState)(function(){return new Xm(Se)}),he=kr(Pe,1),me=he[0];(0,M.useEffect)(function(){me.setOptions(Se)},[Se]),Ni(function(){me.mount()},[]);var we=(0,M.useState)(function(){return me.getFormState()}),Fe=kr(we,2),Re=Fe[0],Ue=Fe[1];Ni(function(){var ur=function(){return b&&b(me.getFormState())},jt=function(){return I&&I()},fr=function(){return D&&D(me.getFormState().values)},$t=function(){return B&&B(me.getFormState().values)},cr=function(){return $&&$(me.getFormState().errors)};return me.on("change",ur),me.on("reset",jt),me.on("submit",fr),me.on("value",$t),me.on("failure",cr),function(){me.removeListener("change",ur),me.removeListener("reset",jt),me.removeListener("submit",fr),me.removeListener("value",$t),me.removeListener("failure",cr)}},[b,I,D,B,$]),(0,M.useState)(function(){var ur=function(){nh("Setting form state"),Ue(me.getFormState())};me.on("change",ur),v&&v(me.getFormApi()),y&&(y.current=me.getFormApi())});var ze=(0,M.useState)(function(){return me.getFormApi()}),Ct=kr(ze,1),qe=Ct[0],nr=function(jt){return M.createElement(Qm,{formApi:qe,formState:Re,formController:me},M.createElement(M.Fragment,null,jt||M.createElement(Hd,{schema:q,onlyValidateSchema:pe})))};return{formApi:qe,formState:Re,formController:me,render:nr,userProps:Ce}},Zm=_i("informed:Form "),qm=function(r){var n=r.children,a=r.render,s=r.component,c=jr(r,["children","render","component"]);Zm("Render FORM");var p=ih(c),m=p.formApi,v=p.formController,y=p.formState,b=p.render,I=p.userProps,D=function(){var $={formState:y,formApi:m};return s?M.createElement(s,$,n):a?a($):typeof n=="function"?n($):n};return b(M.createElement("form",Br({},I,{onReset:v.reset,onSubmit:v.submitForm,onKeyDown:v.keyDown}),D()))},_m=function(r,n){return Mt(Mt({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})},ey=function(r,n){var a=n.register,s=n.deregister,c=n.setValue,p=n.setTouched,m=n.setError,v=n.update,y=n.getField,b=n.expectRemoval,I=n.getInitialValue,D=n.fieldMap,B=n.getSavedValue;return{register:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return a.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},deregister:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return s.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},update:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return v.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},setValue:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return c.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},setTouched:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return p.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},setError:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return m.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},getField:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return y.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},expectRemoval:function(K){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return b.apply(void 0,["".concat(r,".").concat(K)].concat(oe))},getInitialValue:function(K){return I("".concat(r,".").concat(K))},getSavedValue:function(K){return B("".concat(r,".").concat(K))},fieldMap:D}},i1=function(r){var n=r.scope,a=r.children,s=useContext(Zn),c=Li(),p=rc(),m=useMemo(function(){return _m(n,c)},[n]),v=useMemo(function(){return ey(n,s)},[n]);return React.createElement(Zn.Provider,{value:v},React.createElement(iu.Provider,{value:m},React.createElement(nu.Provider,{value:p},a)))},a1=function(r){var n=rc(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(B){a[B]=n[B]}):a=n;var s=a,c=s.pristine,p=s.dirty,m=s.invalid,v=s.values,y=s.errors,b=s.touched,I=s.validating,D=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:c,dirty:p,invalid:m,values:v,errors:y,touched:b,validating:I,submitting:D},null,2)))},ty=function(r){var n=r.initialStep,a=r.multistepApiRef,s=Li(),c=s.getValues,p=s.validate,m=s.screenValid,v=(0,M.useState)(new Map),y=kr(v,1),b=y[0],I=(0,M.useRef)(0),D=wa({current:n,steps:[],goal:null}),B=kr(D,3),$=B[0],K=B[1],q=B[2],oe=(0,M.useState)(function(){var Se=function(){var me=q(),we=me.current,Fe=b.get(we);return Fe},Pe={getState:function(){return q()},getCurrentStep:Se,getStep:function(me){return b.get(me)},getNumberOfSteps:function(){return b.size},next:function(){if(p(),m()){var me=Se(),we=me.getNext,Fe=we(),Re=typeof Fe=="function"?Fe(c()):Fe;Re&&K(function(Ue){return Mt(Mt({},Ue),{},{current:Re})})}},back:function(){var me=Se(),we=me.getPrevious,Fe=we(),Re=typeof Fe=="function"?Fe(c()):Fe;Re&&K(function(Ue){return Mt(Mt({},Ue),{},{current:Re})})},setCurrent:function(me){if(me){var we=b.get(me).index;we<Se().index?K(function(Fe){return Mt(Mt({},Fe),{},{current:me,goal:null})}):K(function(Fe){return Mt(Mt({},Fe),{},{goal:me})})}},register:function(me,we,Fe){Fe?(I.current=I.current+1,b.set(me,Mt(Mt({},we),{},{index:I.current}))):K(function(Re){return Mt(Mt({},Re),{},{steps:Array.from(b.keys())})})},deregister:function(me){b.delete(me),I.current=I.current-1,K(function(we){return Mt(Mt({},we),{},{steps:Array.from(b.keys())})})}};return a&&(a.current=Pe),Pe}),ae=kr(oe,1),pe=ae[0],Ce=function(Pe){return M.createElement(zp.Provider,{value:pe},M.createElement(Hp.Provider,{value:$},Pe))};return Mt(Mt(Mt({},pe),$),{},{render:Ce})};function ry(){return(0,M.useContext)(Hp)}function ny(){return(0,M.useContext)(zp)}var iy=function(r){var n=r.step,a=r.next,s=r.previous,c=r.relevant,p=rc(),m=p.values,v=ry(),y=v.current,b=v.goal,I=ny(),D=I.register,B=I.deregister,$=I.next,K=n===y,q=c?c(m):!0,oe=(0,M.useRef)(a),ae=(0,M.useRef)(s),pe=(0,M.useRef)();oe.current=a,ae.current=s,pe.current=c,(0,M.useState)(function(){D(n,{name:n,getNext:function(){return oe.current},getPrevious:function(){return ae.current}},!0)}),(0,M.useEffect)(function(){return D(n,{name:n,getNext:function(){return oe.current},getPrevious:function(){return ae.current}}),function(){B(n)}},[n]),(0,M.useEffect)(function(){b&&K&&b!==n&&$()},[b,K]);var Ce=function(Pe){return M.createElement(Gp.Provider,{value:{relevant:function(me){return pe.current?pe.current(me):!0},multistep:!0}},K&&q?Pe:null)};return{isCurrent:K,isRelevant:q,step:n,render:Ce}};function ay(e){var r=e.children,n=jr(e,["children"]),a=ty(n),s=a.render,c=jr(a,["render"]);return s(typeof r=="function"?r(c):r)}ay.Step=function(r){var n=r.children,a=jr(r,["children"]),s=iy(a),c=s.render;return c(n)};var o1=function(r){var n=r.field,a=useContext(Zn),s=a.fieldMap,c=Li(),p=c.getFullField,m=c.getOptions,v=p(n),y=m(),b=y.schema,I=qp(v),D=At.get(b,I);if(!D)return null;var B=Ud(n,D),$=B.props,K=B.componentType,q=s[K];return React.createElement(q,Br({field:n},$))},s1=function(){var r=Li(),n=r.getOptions,a=n(),s=a.schema;return React.createElement(Hd,{schema:s})},l1=function(r){return React.forwardRef(function(n,a){return React.createElement(iu.Consumer,null,function(s){return React.createElement(r,Br({formApi:s,ref:a},n))})})},u1=function(r){return React.forwardRef(function(n,a){return React.createElement(nu.Consumer,null,function(s){return React.createElement(r,Br({formState:s,ref:a},n))})})},oy=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(s){return r.setValue(n,s)},getTouched:function(){return r.getTouched(n)},setTouched:function(s){return r.setTouched(n,s)},getError:function(){return r.getError(n)},setError:function(s){return r.setError(n,s)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function ah(e){var r=Li(),n=useMemo(function(){return oy(r,e)},[e]);return n}function sy(e){var r=ah(e),n=Li(),a=React.useState(),s=kr(a,2),c=s[1],p=React.useCallback(function(){return c({})},[]);return Ni(function(){var m=function(y){y===e&&p()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Ni(function(){p()},[]),r.getFieldState()||{}}var f1=function(r){return function(n){return function(a){var s=sy(r);return React.createElement(n,Br({fieldState:s},a))}}},c1=function(r){return function(n){return function(a){var s=ah(r);return React.createElement(n,Br({fieldApi:s},a))}}},d1=function(r){var n=r.value,a=r.forwardedRef,s=r.children,c=jr(r,["value","forwardedRef","children"]);return React.createElement("option",Br({ref:a,value:n,key:n},c),s)},p1=null,oh=o(56642),io=o(67262),ly=Object.defineProperty,uy=Object.defineProperties,fy=Object.getOwnPropertyDescriptors,sh=Object.getOwnPropertySymbols,cy=Object.prototype.hasOwnProperty,dy=Object.prototype.propertyIsEnumerable,lh=(e,r,n)=>r in e?ly(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ou=(e,r)=>{for(var n in r||(r={}))cy.call(r,n)&&lh(e,n,r[n]);if(sh)for(var n of sh(r))dy.call(r,n)&&lh(e,n,r[n]);return e},py=(e,r)=>uy(e,fy(r)),ic=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const uh="/oauth2-redirect.html";class Di{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:s={},routingBasePath:c,redirectUri:p,successCallback:m,errorCallback:v}){const y=(0,io.p8)({date:new Date().toString()}),b=new URL(r),I=c==="/"?"":c,D=`${window.location.origin}${I}${uh}`;b.searchParams.set("client_id",n),b.searchParams.set("redirect_uri",p||D),b.searchParams.set("response_type","token"),b.searchParams.set("state",y),Array.isArray(a)&&b.searchParams.set("scope",a.join(" "));for(const B in s)b.searchParams.set(B,s[B]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:y,successCallback:B=>{m(B),Di.clearRedirectData("implicit")},errorCallback:B=>{v(B),Di.clearRedirectData("implicit")}},window.open(b.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:s,codeVerifier:c,codeChallenge:p,scopes:m,extraParams:v={},extraHeaders:y={},routingBasePath:b,redirectUri:I,successCallback:D,errorCallback:B}){const $=new URL(r),K=b==="/"?"":b,q=`${window.location.origin}${K}${uh}`,oe=(0,io.p8)({date:new Date().toString()});$.searchParams.set("client_id",a),$.searchParams.set("redirect_uri",I||q),$.searchParams.set("response_type","code"),$.searchParams.set("state",oe),Array.isArray(m)&&$.searchParams.set("scope",m.join(" ")),p&&($.searchParams.set("code_challenge",p),$.searchParams.set("code_challenge_method","S256"));for(const ae in v)$.searchParams.set(ae,v[ae]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:oe,successCallback:ae=>ic(this,[ae],function*({auth_code:pe}){try{const Ce=yield fetch(n,{method:"POST",headers:ou({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:oh.stringify(ou(py(ou({client_id:a,client_secret:s},c&&{code_verifier:c}),{code:pe,grant_type:"authorization_code",redirect_uri:I||q}),v))});yield fh(Ce,D,B)}catch(Ce){B(Ce)}Di.clearRedirectData("authorizationCode")}),errorCallback:ae=>{B(ae),Di.clearRedirectData("authorizationCode")}},window.open($.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return ic(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:s,scopes:c=[],extraParams:p={},extraHeaders:m={},successCallback:v,errorCallback:y}){try{const b=JSON.parse(JSON.stringify(ou({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},p))),I=yield fetch(n,{method:"POST",headers:ou({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:oh.stringify(b)});yield fh(I,v,y)}catch(b){y(b)}})}}const h1=new Di;function fh(e,r,n){return ic(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function ch(e){return ic(this,null,function*(){return(0,io.rS)(yield(0,io.JQ)(e))})}var su=o(3682),ht=o(45091),hy=o(31453),vy=o(43454),gy=Object.defineProperty,my=Object.defineProperties,yy=Object.getOwnPropertyDescriptors,ac=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,hh=(e,r,n)=>r in e?gy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,oc=(e,r)=>{for(var n in r||(r={}))dh.call(r,n)&&hh(e,n,r[n]);if(ac)for(var n of ac(r))ph.call(r,n)&&hh(e,n,r[n]);return e},by=(e,r)=>my(e,yy(r)),xy=(e,r)=>{var n={};for(var a in e)dh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&ac)for(var a of ac(e))r.indexOf(a)<0&&ph.call(e,a)&&(n[a]=e[a]);return n};const vh=e=>Qt.iv`
171
171
  border: var(--input-border);
172
172
  outline: none;
173
173
  padding: var(--input-padding);
@@ -199,9 +199,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
199
199
  `,gh=Qt.ZP.div`
200
200
  display: ${({type:e})=>e==="hidden"?"none":"inline-block"};
201
201
  ${({fullWidth:e})=>e?"width: 100%;":""}
202
- `,xy=Qt.ZP.div`
202
+ `,Sy=Qt.ZP.div`
203
203
  position: relative;
204
- `,Sy=Qt.ZP.input`
204
+ `,wy=Qt.ZP.input`
205
205
  ${({panel:e})=>vh(e)}
206
206
  ${({inputType:e,inputActionButton:r})=>e==="password"||r?"padding-right: 40px;":""};
207
207
  ${({fullWidth:e})=>e?"width: 100%;":""}
@@ -215,15 +215,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215
215
  cursor: pointer;
216
216
  text-align: center;
217
217
  color: var(--panel-samples-text-color);
218
- `;function wy(e,r){var n=e,{fullWidth:a,errorMessage:s,type:c,inputActionButton:p,panel:m="samples"}=n,v=by(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[y,b]=(0,L.useState)(c==="password"),I=(0,L.useCallback)(()=>{b(!y)},[y]);return L.createElement(gh,{fullWidth:a,type:c},L.createElement(xy,null,L.createElement(Sy,oc({fullWidth:a,inputActionButton:p,type:y?"password":"text",inputType:c,ref:r,panel:m},v)),p?L.createElement(mh,{onClick:p.onClick},p.label):c==="password"?L.createElement(mh,{onClick:I},y?"show":"hide"):null),s?L.createElement(ht.Xq,null,s):null)}const lu=(0,L.forwardRef)(wy);function Bn(e){const r=au(oc({fieldType:"text"},e)),{userProps:n,render:a,fieldState:s}=r,c=r.informed;return a(L.createElement(lu,yy(oc(oc({},n),c),{errorMessage:s.error})))}const uu=Aa(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const s=r.map((y,b)=>({value:y.title||y.value,idx:b,origValue:y.value})),c=s.find(y=>y.origValue===e),[p,m]=(0,L.useState)(c==null?void 0:c.value);(0,Bt.useMount)(()=>{e&&n.setValue(e)});const v=(0,L.useCallback)(y=>{n.setValue(s[y.idx].origValue),m(s[y.idx].value)},[n,s]);return L.createElement(gh,{fullWidth:!0},L.createElement(hy.Dropdown,{fullWidth:!0,variant:"dark",value:p,options:s,onChange:v}),a.error?L.createElement(ht.Xq,null,a.error):null)});function Ay({name:e,value:r,description:n,variableEnum:a,onChange:s,defaultValue:c}){const p=(0,L.useCallback)(y=>s(y.target.value),[s]),m=(0,L.useCallback)(y=>s(y.value),[s]),v=a?a.map((y,b)=>({value:y,idx:b})):[];return L.createElement(ht.NI,null,L.createElement(ht.lX,null,e,":"),v&&v.length?L.createElement(Nn.VD,{fullWidth:!0,variant:"dark",value:r,options:v,onChange:m}):L.createElement(lu,{fullWidth:!0,value:r,onChange:p,placeholder:c,panel:"try-it"}),n&&L.createElement(Cy,{compact:!0,source:n}))}const Cy=(0,Qt.ZP)(py.Markdown)`
218
+ `;function Ay(e,r){var n=e,{fullWidth:a,errorMessage:s,type:c,inputActionButton:p,panel:m="samples"}=n,v=xy(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[y,b]=(0,M.useState)(c==="password"),I=(0,M.useCallback)(()=>{b(!y)},[y]);return M.createElement(gh,{fullWidth:a,type:c},M.createElement(Sy,null,M.createElement(wy,oc({fullWidth:a,inputActionButton:p,type:y?"password":"text",inputType:c,ref:r,panel:m},v)),p?M.createElement(mh,{onClick:p.onClick},p.label):c==="password"?M.createElement(mh,{onClick:I},y?"show":"hide"):null),s?M.createElement(ht.Xq,null,s):null)}const lu=(0,M.forwardRef)(Ay);function Bn(e){const r=au(oc({fieldType:"text"},e)),{userProps:n,render:a,fieldState:s}=r,c=r.informed;return a(M.createElement(lu,by(oc(oc({},n),c),{errorMessage:s.error})))}const uu=Aa(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const s=r.map((y,b)=>({value:y.title||y.value,idx:b,origValue:y.value})),c=s.find(y=>y.origValue===e),[p,m]=(0,M.useState)(c==null?void 0:c.value);(0,Bt.useMount)(()=>{e&&n.setValue(e)});const v=(0,M.useCallback)(y=>{n.setValue(s[y.idx].origValue),m(s[y.idx].value)},[n,s]);return M.createElement(gh,{fullWidth:!0},M.createElement(vy.Dropdown,{fullWidth:!0,variant:"dark",value:p,options:s,onChange:v}),a.error?M.createElement(ht.Xq,null,a.error):null)});function Cy({name:e,value:r,description:n,variableEnum:a,onChange:s,defaultValue:c}){const p=(0,M.useCallback)(y=>s(y.target.value),[s]),m=(0,M.useCallback)(y=>s(y.value),[s]),v=a?a.map((y,b)=>({value:y,idx:b})):[];return M.createElement(ht.NI,null,M.createElement(ht.lX,null,e,":"),v&&v.length?M.createElement(Nn.VD,{fullWidth:!0,variant:"dark",value:r,options:v,onChange:m}):M.createElement(lu,{fullWidth:!0,value:r,onChange:p,placeholder:c,panel:"try-it"}),n&&M.createElement(Ey,{compact:!0,source:n}))}const Ey=(0,Qt.ZP)(hy.Markdown)`
219
219
  margin-top: 5px;
220
220
  color: #d0d0d0;
221
- `;var Ey=Object.defineProperty,Oy=Object.defineProperties,Ty=Object.getOwnPropertyDescriptors,yh=Object.getOwnPropertySymbols,Py=Object.prototype.hasOwnProperty,Iy=Object.prototype.propertyIsEnumerable,bh=(e,r,n)=>r in e?Ey(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,xh=(e,r)=>{for(var n in r||(r={}))Py.call(r,n)&&bh(e,n,r[n]);if(yh)for(var n of yh(r))Iy.call(r,n)&&bh(e,n,r[n]);return e},Sh=(e,r)=>Oy(e,Ty(r));const Fy=(0,A.Pi)(({operation:e,onChange:r})=>{const n=(0,pt.YQ)("serverUrl"),a=e.servers.findIndex(R=>R.url===n),[s,c]=(0,L.useState)(a<0?0:a),[p,m]=(0,L.useState)({});(0,Bt.useMount)(()=>{const R=(0,ar.fz)(e.servers,s);r(R),m(R.variables)});const v=R=>{const N=e.servers.find(q=>q.url===R.serverUrl),G=e.servers.findIndex(q=>q.url===R.serverUrl),ee=(0,ar.mj)(N);r({url:R.serverUrl||"",variables:ee}),(0,pt.WW)("serverUrl",R.serverUrl||""),c(G),m(ee)},y=(R,N)=>{const G=e.servers[s],ee=N||N===""?N:(0,ar.mj)(G)[R],q=Sh(xh({},p),{[R]:ee});m(q),(0,ar.UY)(R,ee),r(Sh(xh({},G),{variables:q}))},b=e.servers.map((R,N)=>({idx:N,serverUrl:R.url,value:`
222
- ${(0,ar.nq)((0,ar.v5)(R.url,p),R.variables)}
223
- - ${R.description||"Default"}
224
- `})),I=Object.keys(p);return L.createElement(ky,{"data-cy":"console-target-server"},L.createElement(ht.lX,{htmlFor:"server"},"Target server: "),L.createElement(ht.NI,null,L.createElement(Nn.VD,{variant:"dark",value:b[s].value,options:b,fullWidth:!0,onChange:v})),I==null?void 0:I.map(R=>{var N;const G=(N=e.servers[s].variables)==null?void 0:N[R];if(G)return L.createElement(Ay,{key:R,name:R,value:p[R],defaultValue:G.default,onChange:ee=>y(R,ee),variableEnum:G.enum,description:G.description})}))}),ky=Qt.ZP.div`
221
+ `;var Oy=Object.defineProperty,Ty=Object.defineProperties,Py=Object.getOwnPropertyDescriptors,yh=Object.getOwnPropertySymbols,Iy=Object.prototype.hasOwnProperty,Fy=Object.prototype.propertyIsEnumerable,bh=(e,r,n)=>r in e?Oy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,xh=(e,r)=>{for(var n in r||(r={}))Iy.call(r,n)&&bh(e,n,r[n]);if(yh)for(var n of yh(r))Fy.call(r,n)&&bh(e,n,r[n]);return e},Sh=(e,r)=>Ty(e,Py(r));const ky=(0,A.Pi)(({operation:e,onChange:r})=>{const n=(0,dt.YQ)("serverUrl"),a=e.servers.findIndex(D=>D.url===n),[s,c]=(0,M.useState)(a<0?0:a),[p,m]=(0,M.useState)({});(0,Bt.useMount)(()=>{const D=(0,ar.fz)(e.servers,s);r(D),m(D.variables)});const v=D=>{const B=e.servers.find(q=>q.url===D.serverUrl),$=e.servers.findIndex(q=>q.url===D.serverUrl),K=(0,ar.mj)(B);r({url:D.serverUrl||"",variables:K}),(0,dt.WW)("serverUrl",D.serverUrl||""),c($),m(K)},y=(D,B)=>{const $=e.servers[s],K=B||B===""?B:(0,ar.mj)($)[D],q=Sh(xh({},p),{[D]:K});m(q),(0,ar.UY)(D,K),r(Sh(xh({},$),{variables:q}))},b=e.servers.map((D,B)=>({idx:B,serverUrl:D.url,value:`
222
+ ${(0,ar.nq)((0,ar.v5)(D.url,p),D.variables)}
223
+ - ${D.description||"Default"}
224
+ `})),I=Object.keys(p);return M.createElement(Ry,{"data-cy":"console-target-server"},M.createElement(ht.lX,{htmlFor:"server"},"Target server: "),M.createElement(ht.NI,null,M.createElement(Nn.VD,{variant:"dark",value:b[s].value,options:b,fullWidth:!0,onChange:v})),I==null?void 0:I.map(D=>{var B;const $=(B=e.servers[s].variables)==null?void 0:B[D];if($)return M.createElement(Cy,{key:D,name:D,value:p[D],defaultValue:$.default,onChange:K=>y(D,K),variableEnum:$.enum,description:$.description})}))}),Ry=Qt.ZP.div`
225
225
  margin-bottom: 20px;
226
- `;var wh=o(27341),Ry=Object.defineProperty,My=Object.defineProperties,Ly=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Eh=(e,r,n)=>r in e?Ry(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ny=(e,r)=>{for(var n in r||(r={}))Ah.call(r,n)&&Eh(e,n,r[n]);if(sc)for(var n of sc(r))Ch.call(r,n)&&Eh(e,n,r[n]);return e},Dy=(e,r)=>My(e,Ly(r)),By=(e,r)=>{var n={};for(var a in e)Ah.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&sc)for(var a of sc(e))r.indexOf(a)<0&&Ch.call(e,a)&&(n[a]=e[a]);return n};function Gd(e){var r=e,{header:n,error:a,success:s}=r,c=By(r,["header","error","success"]);const p=({toggle:m,expanded:v=!1})=>L.createElement(Bt.PanelHeader,{onClick:m,expanded:v,"data-cy":c["data-cy"]},L.createElement(mr.xz,null,L.createElement(Bt.PanelHeaderTitle,null,n),L.createElement(Bt.ShelfIcon,{direction:v?"down":"right"})),a&&L.createElement(wh.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&L.createElement(wh.LockIcon,{size:"14px",color:"--color-success-500"})||null);return L.createElement(jy,Dy(Ny({className:"panel-try-it-nested"},c),{header:p}))}const jy=(0,Qt.ZP)(Bt.Panel)`
226
+ `;var wh=o(27341),My=Object.defineProperty,Ly=Object.defineProperties,Ny=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Eh=(e,r,n)=>r in e?My(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Dy=(e,r)=>{for(var n in r||(r={}))Ah.call(r,n)&&Eh(e,n,r[n]);if(sc)for(var n of sc(r))Ch.call(r,n)&&Eh(e,n,r[n]);return e},By=(e,r)=>Ly(e,Ny(r)),jy=(e,r)=>{var n={};for(var a in e)Ah.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&sc)for(var a of sc(e))r.indexOf(a)<0&&Ch.call(e,a)&&(n[a]=e[a]);return n};function Gd(e){var r=e,{header:n,error:a,success:s}=r,c=jy(r,["header","error","success"]);const p=({toggle:m,expanded:v=!1})=>M.createElement(Bt.PanelHeader,{onClick:m,expanded:v,"data-cy":c["data-cy"]},M.createElement(mr.xz,null,M.createElement(Bt.PanelHeaderTitle,null,n),M.createElement(Bt.ShelfIcon,{direction:v?"down":"right"})),a&&M.createElement(wh.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&M.createElement(wh.LockIcon,{size:"14px",color:"--color-success-500"})||null);return M.createElement(Vy,By(Dy({className:"panel-try-it-nested"},c),{header:p}))}const Vy=(0,Qt.ZP)(Bt.Panel)`
227
227
  ${Bt.PanelHeader} {
228
228
  border: 1px solid
229
229
  ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
@@ -235,10 +235,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
235
235
  ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
236
236
  border-top: 0;
237
237
  }
238
- `;var Vy=o(76479),Uy=o(78051),Wy=o(61747);const Hy=(0,Qt.ZP)(Rp.A3)`
238
+ `;var Uy=o(76479),Wy=o(78051),Hy=o(61747);const zy=(0,Qt.ZP)(Rp.A3)`
239
239
  border-radius: var(--panel-border-radius);
240
240
  margin-bottom: 10px;
241
- `;var lc=o(41199),$d=o(74032),zy=Object.defineProperty,uc=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Th=Object.prototype.propertyIsEnumerable,Ph=(e,r,n)=>r in e?zy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gy=(e,r)=>{for(var n in r||(r={}))Oh.call(r,n)&&Ph(e,n,r[n]);if(uc)for(var n of uc(r))Th.call(r,n)&&Ph(e,n,r[n]);return e},Ih=(e,r)=>{var n={};for(var a in e)Oh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&uc)for(var a of uc(e))r.indexOf(a)<0&&Th.call(e,a)&&(n[a]=e[a]);return n},$y=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Fh=(0,L.forwardRef)((e,r)=>{var n=Ih(e,[]);const a=n,{schema:s,contentName:c,onChange:p,name:m}=a,v=Ih(a,["schema","contentName","onChange","name"]),{render:y}=au(Gy({field:m},v)),b=I=>$y(void 0,null,function*(){const R=yield no(I.target.files,s);p(c,R)});return y(L.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:b,multiple:n.multiple,accept:n.accept,ref:r}))});Fh.displayName="FileUpload";const Ky=(0,A.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:s}=e,c=n.examples||{},{exampleKey:p}=(0,$d.C6)(n.operation,c),m=(r=c[p])==null?void 0:r.rawValue,v=Yy(n);(0,L.useEffect)(()=>s&&v.forEach(b=>{var I,R;const N=m==null?void 0:m[b.name],G=(R=(I=b.example)!=null?I:N==null?void 0:N.example)!=null?R:N,ee=typeof G=="object"?JSON.stringify(G):G;G!==void 0&&s.setValue("body."+b.name,`${ee}`)}),[p]);const y=n.schema||{};return Zi(y,n.name)?L.createElement(kh,null,L.createElement(ht.NI,null,L.createElement(Rh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:Dr(n.name),schema:y,contentName:n.name,onChange:a}))):y.type!==Fr.DefinitionTypes.OBJECT&&!v?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,y),null):L.createElement(kh,null,v.map(b=>{const I=b.schema||{contentMediaType:"",type:"",description:""},R=n.name===lc.Tr.MULTIPART&&Mi(I),N=I.contentMediaType||"",G=R?L.createElement(Rh,{fullWidth:!0,id:"body."+b.name,name:"body."+b.name,accept:Dr(N),multiple:I.type==="array",schema:I,contentName:b.name,onChange:a}):L.createElement(Bn,{fullWidth:!0,id:"body."+b.name,field:"body."+b.name,placeholder:I.description||b.name,panel:"try-it"});return L.createElement(ht.NI,{key:b.name},L.createElement(ht.lX,null,b.name,":"),G)}))});function Yy(e){var r,n,a,s,c;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((s=e.schema)==null?void 0:s.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((c=e.schema)==null?void 0:c.fields)||[]).filter(p=>!p.schema.readOnly)}const kh=Qt.ZP.div`
241
+ `;var lc=o(41199),$d=o(74032),Gy=Object.defineProperty,uc=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Th=Object.prototype.propertyIsEnumerable,Ph=(e,r,n)=>r in e?Gy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,$y=(e,r)=>{for(var n in r||(r={}))Oh.call(r,n)&&Ph(e,n,r[n]);if(uc)for(var n of uc(r))Th.call(r,n)&&Ph(e,n,r[n]);return e},Ih=(e,r)=>{var n={};for(var a in e)Oh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&uc)for(var a of uc(e))r.indexOf(a)<0&&Th.call(e,a)&&(n[a]=e[a]);return n},Ky=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Fh=(0,M.forwardRef)((e,r)=>{var n=Ih(e,[]);const a=n,{schema:s,contentName:c,onChange:p,name:m}=a,v=Ih(a,["schema","contentName","onChange","name"]),{render:y}=au($y({field:m},v)),b=I=>Ky(void 0,null,function*(){const D=yield no(I.target.files,s);p(c,D)});return y(M.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:b,multiple:n.multiple,accept:n.accept,ref:r}))});Fh.displayName="FileUpload";const Yy=(0,A.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:s}=e,c=n.examples||{},{exampleKey:p}=(0,$d.C6)(n.operation,c),m=(r=c[p])==null?void 0:r.rawValue,v=Jy(n);(0,M.useEffect)(()=>s&&v.forEach(b=>{var I,D;const B=m==null?void 0:m[b.name],$=(D=(I=b.example)!=null?I:B==null?void 0:B.example)!=null?D:B,K=typeof $=="object"?JSON.stringify($):$;$!==void 0&&s.setValue("body."+b.name,`${K}`)}),[p]);const y=n.schema||{};return Zi(y,n.name)?M.createElement(kh,null,M.createElement(ht.NI,null,M.createElement(Rh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:Dr(n.name),schema:y,contentName:n.name,onChange:a}))):y.type!==Fr.DefinitionTypes.OBJECT&&!v?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,y),null):M.createElement(kh,null,v.map(b=>{const I=b.schema||{contentMediaType:"",type:"",description:""},D=n.name===lc.Tr.MULTIPART&&Mi(I),B=I.contentMediaType||"",$=D?M.createElement(Rh,{fullWidth:!0,id:"body."+b.name,name:"body."+b.name,accept:Dr(B),multiple:I.type==="array",schema:I,contentName:b.name,onChange:a}):M.createElement(Bn,{fullWidth:!0,id:"body."+b.name,field:"body."+b.name,placeholder:I.description||b.name,panel:"try-it"});return M.createElement(ht.NI,{key:b.name},M.createElement(ht.lX,null,b.name,":"),$)}))});function Jy(e){var r,n,a,s,c;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((s=e.schema)==null?void 0:s.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((c=e.schema)==null?void 0:c.fields)||[]).filter(p=>!p.schema.readOnly)}const kh=Qt.ZP.div`
242
242
  > div {
243
243
  margin-top: 10px;
244
244
  }
@@ -246,36 +246,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
246
246
  ${vh("try-it")};
247
247
  ${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
248
248
  ${({fullWidth:e})=>e?"width: 100%;":""}
249
- `;var Jy=o(63277),Ys=o(23326);function fc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,s="",c=0,p=16,m=0,v=0,y=0,b=0,I=0;function R(pe,ve){for(var me=0,Te=0;me<pe||!ve;){var Ae=e.charCodeAt(a);if(Ae>=48&&Ae<=57)Te=Te*16+Ae-48;else if(Ae>=65&&Ae<=70)Te=Te*16+Ae-65+10;else if(Ae>=97&&Ae<=102)Te=Te*16+Ae-97+10;else break;a++,me++}return me<pe&&(Te=-1),Te}function N(pe){a=pe,s="",c=0,p=16,I=0}function G(){var pe=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&Js(e.charCodeAt(a)))for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;else return I=3,e.substring(pe,a);var ve=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&Js(e.charCodeAt(a))){for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;ve=a}else I=3;return e.substring(pe,ve)}function ee(){for(var pe="",ve=a;;){if(a>=n){pe+=e.substring(ve,a),I=2;break}var me=e.charCodeAt(a);if(me===34){pe+=e.substring(ve,a),a++;break}if(me===92){if(pe+=e.substring(ve,a),a++,a>=n){I=2;break}var Te=e.charCodeAt(a++);switch(Te){case 34:pe+='"';break;case 92:pe+="\\";break;case 47:pe+="/";break;case 98:pe+="\b";break;case 102:pe+="\f";break;case 110:pe+=`
250
- `;break;case 114:pe+="\r";break;case 116:pe+=" ";break;case 117:var Ae=R(4,!0);Ae>=0?pe+=String.fromCharCode(Ae):I=4;break;default:I=5}ve=a;continue}if(me>=0&&me<=31)if(fu(me)){pe+=e.substring(ve,a),I=2;break}else I=6;a++}return pe}function q(){if(s="",I=0,c=a,v=m,b=y,a>=n)return c=n,p=17;var pe=e.charCodeAt(a);if(Kd(pe)){do a++,s+=String.fromCharCode(pe),pe=e.charCodeAt(a);while(Kd(pe));return p=15}if(fu(pe))return a++,s+=String.fromCharCode(pe),pe===13&&e.charCodeAt(a)===10&&(a++,s+=`
251
- `),m++,y=a,p=14;switch(pe){case 123:return a++,p=1;case 125:return a++,p=2;case 91:return a++,p=3;case 93:return a++,p=4;case 58:return a++,p=6;case 44:return a++,p=5;case 34:return a++,s=ee(),p=10;case 47:var ve=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!fu(e.charCodeAt(a));)a++;return s=e.substring(ve,a),p=12}if(e.charCodeAt(a+1)===42){a+=2;for(var me=n-1,Te=!1;a<me;){var Ae=e.charCodeAt(a);if(Ae===42&&e.charCodeAt(a+1)===47){a+=2,Te=!0;break}a++,fu(Ae)&&(Ae===13&&e.charCodeAt(a)===10&&a++,m++,y=a)}return Te||(a++,I=1),s=e.substring(ve,a),p=13}return s+=String.fromCharCode(pe),a++,p=16;case 45:if(s+=String.fromCharCode(pe),a++,a===n||!Js(e.charCodeAt(a)))return p=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=G(),p=11;default:for(;a<n&&oe(pe);)a++,pe=e.charCodeAt(a);if(c!==a){switch(s=e.substring(c,a),s){case"true":return p=8;case"false":return p=9;case"null":return p=7}return p=16}return s+=String.fromCharCode(pe),a++,p=16}}function oe(pe){if(Kd(pe)||fu(pe))return!1;switch(pe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ae(){var pe;do pe=q();while(pe>=12&&pe<=15);return pe}return{setPosition:N,getPosition:function(){return a},scan:r?ae:q,getToken:function(){return p},getTokenValue:function(){return s},getTokenOffset:function(){return c},getTokenLength:function(){return a-c},getTokenStartLine:function(){return v},getTokenStartCharacter:function(){return c-b},getTokenError:function(){return I}}}function Kd(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function fu(e){return e===10||e===13||e===8232||e===8233}function Js(e){return e>=48&&e<=57}function Xy(e,r,n){var a,s,c,p,m;if(r){for(p=r.offset,m=p+r.length,c=p;c>0&&!Mh(e,c-1);)c--;for(var v=m;v<e.length&&!Mh(e,v);)v++;s=e.substring(c,v),a=Qy(s,n)}else s=e,a=0,c=0,p=0,m=e.length;var y=Zy(n,e),b=!1,I=0,R;n.insertSpaces?R=Yd(" ",n.tabSize||4):R=" ";var N=fc(s,!1),G=!1;function ee(){return y+Yd(R,a+I)}function q(){var Re=N.scan();for(b=!1;Re===15||Re===14;)b=b||Re===14,Re=N.scan();return G=Re===16||N.getTokenError()!==0,Re}var oe=[];function ae(Re,Ue,ze){!G&&Ue<m&&ze>p&&e.substring(Ue,ze)!==Re&&oe.push({offset:Ue,length:ze-Ue,content:Re})}var pe=q();if(pe!==17){var ve=N.getTokenOffset()+c,me=Yd(R,a);ae(me,c,ve)}for(;pe!==17;){for(var Te=N.getTokenOffset()+N.getTokenLength()+c,Ae=q(),Se="";!b&&(Ae===12||Ae===13);){var Ce=N.getTokenOffset()+c;ae(" ",Te,Ce),Te=N.getTokenOffset()+N.getTokenLength()+c,Se=Ae===12?ee():"",Ae=q()}if(Ae===2)pe!==1&&(I--,Se=ee());else if(Ae===4)pe!==3&&(I--,Se=ee());else{switch(pe){case 3:case 1:I++,Se=ee();break;case 5:case 12:Se=ee();break;case 13:b?Se=ee():Se=" ";break;case 6:Se=" ";break;case 10:if(Ae===6){Se="";break}case 7:case 8:case 9:case 11:case 2:case 4:Ae===12||Ae===13?Se=" ":Ae!==5&&Ae!==17&&(G=!0);break;case 16:G=!0;break}b&&(Ae===12||Ae===13)&&(Se=ee())}var Fe=N.getTokenOffset()+c;ae(Se,Te,Fe),pe=Ae}return oe}function Yd(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function Qy(e,r){for(var n=0,a=0,s=r.tabSize||4;n<e.length;){var c=e.charAt(n);if(c===" ")a++;else if(c===" ")a+=s;else break;n++}return Math.floor(a/s)}function Zy(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
249
+ `;var Xy=o(63277),Ys=o(23326);function fc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,s="",c=0,p=16,m=0,v=0,y=0,b=0,I=0;function D(pe,Ce){for(var Se=0,Pe=0;Se<pe||!Ce;){var he=e.charCodeAt(a);if(he>=48&&he<=57)Pe=Pe*16+he-48;else if(he>=65&&he<=70)Pe=Pe*16+he-65+10;else if(he>=97&&he<=102)Pe=Pe*16+he-97+10;else break;a++,Se++}return Se<pe&&(Pe=-1),Pe}function B(pe){a=pe,s="",c=0,p=16,I=0}function $(){var pe=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&Js(e.charCodeAt(a)))for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;else return I=3,e.substring(pe,a);var Ce=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&Js(e.charCodeAt(a))){for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;Ce=a}else I=3;return e.substring(pe,Ce)}function K(){for(var pe="",Ce=a;;){if(a>=n){pe+=e.substring(Ce,a),I=2;break}var Se=e.charCodeAt(a);if(Se===34){pe+=e.substring(Ce,a),a++;break}if(Se===92){if(pe+=e.substring(Ce,a),a++,a>=n){I=2;break}var Pe=e.charCodeAt(a++);switch(Pe){case 34:pe+='"';break;case 92:pe+="\\";break;case 47:pe+="/";break;case 98:pe+="\b";break;case 102:pe+="\f";break;case 110:pe+=`
250
+ `;break;case 114:pe+="\r";break;case 116:pe+=" ";break;case 117:var he=D(4,!0);he>=0?pe+=String.fromCharCode(he):I=4;break;default:I=5}Ce=a;continue}if(Se>=0&&Se<=31)if(fu(Se)){pe+=e.substring(Ce,a),I=2;break}else I=6;a++}return pe}function q(){if(s="",I=0,c=a,v=m,b=y,a>=n)return c=n,p=17;var pe=e.charCodeAt(a);if(Kd(pe)){do a++,s+=String.fromCharCode(pe),pe=e.charCodeAt(a);while(Kd(pe));return p=15}if(fu(pe))return a++,s+=String.fromCharCode(pe),pe===13&&e.charCodeAt(a)===10&&(a++,s+=`
251
+ `),m++,y=a,p=14;switch(pe){case 123:return a++,p=1;case 125:return a++,p=2;case 91:return a++,p=3;case 93:return a++,p=4;case 58:return a++,p=6;case 44:return a++,p=5;case 34:return a++,s=K(),p=10;case 47:var Ce=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!fu(e.charCodeAt(a));)a++;return s=e.substring(Ce,a),p=12}if(e.charCodeAt(a+1)===42){a+=2;for(var Se=n-1,Pe=!1;a<Se;){var he=e.charCodeAt(a);if(he===42&&e.charCodeAt(a+1)===47){a+=2,Pe=!0;break}a++,fu(he)&&(he===13&&e.charCodeAt(a)===10&&a++,m++,y=a)}return Pe||(a++,I=1),s=e.substring(Ce,a),p=13}return s+=String.fromCharCode(pe),a++,p=16;case 45:if(s+=String.fromCharCode(pe),a++,a===n||!Js(e.charCodeAt(a)))return p=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=$(),p=11;default:for(;a<n&&oe(pe);)a++,pe=e.charCodeAt(a);if(c!==a){switch(s=e.substring(c,a),s){case"true":return p=8;case"false":return p=9;case"null":return p=7}return p=16}return s+=String.fromCharCode(pe),a++,p=16}}function oe(pe){if(Kd(pe)||fu(pe))return!1;switch(pe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ae(){var pe;do pe=q();while(pe>=12&&pe<=15);return pe}return{setPosition:B,getPosition:function(){return a},scan:r?ae:q,getToken:function(){return p},getTokenValue:function(){return s},getTokenOffset:function(){return c},getTokenLength:function(){return a-c},getTokenStartLine:function(){return v},getTokenStartCharacter:function(){return c-b},getTokenError:function(){return I}}}function Kd(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function fu(e){return e===10||e===13||e===8232||e===8233}function Js(e){return e>=48&&e<=57}function Qy(e,r,n){var a,s,c,p,m;if(r){for(p=r.offset,m=p+r.length,c=p;c>0&&!Mh(e,c-1);)c--;for(var v=m;v<e.length&&!Mh(e,v);)v++;s=e.substring(c,v),a=Zy(s,n)}else s=e,a=0,c=0,p=0,m=e.length;var y=qy(n,e),b=!1,I=0,D;n.insertSpaces?D=Yd(" ",n.tabSize||4):D=" ";var B=fc(s,!1),$=!1;function K(){return y+Yd(D,a+I)}function q(){var Re=B.scan();for(b=!1;Re===15||Re===14;)b=b||Re===14,Re=B.scan();return $=Re===16||B.getTokenError()!==0,Re}var oe=[];function ae(Re,Ue,ze){!$&&Ue<m&&ze>p&&e.substring(Ue,ze)!==Re&&oe.push({offset:Ue,length:ze-Ue,content:Re})}var pe=q();if(pe!==17){var Ce=B.getTokenOffset()+c,Se=Yd(D,a);ae(Se,c,Ce)}for(;pe!==17;){for(var Pe=B.getTokenOffset()+B.getTokenLength()+c,he=q(),me="";!b&&(he===12||he===13);){var we=B.getTokenOffset()+c;ae(" ",Pe,we),Pe=B.getTokenOffset()+B.getTokenLength()+c,me=he===12?K():"",he=q()}if(he===2)pe!==1&&(I--,me=K());else if(he===4)pe!==3&&(I--,me=K());else{switch(pe){case 3:case 1:I++,me=K();break;case 5:case 12:me=K();break;case 13:b?me=K():me=" ";break;case 6:me=" ";break;case 10:if(he===6){me="";break}case 7:case 8:case 9:case 11:case 2:case 4:he===12||he===13?me=" ":he!==5&&he!==17&&($=!0);break;case 16:$=!0;break}b&&(he===12||he===13)&&(me=K())}var Fe=B.getTokenOffset()+c;ae(me,Pe,Fe),pe=he}return oe}function Yd(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function Zy(e,r){for(var n=0,a=0,s=r.tabSize||4;n<e.length;){var c=e.charAt(n);if(c===" ")a++;else if(c===" ")a+=s;else break;n++}return Math.floor(a/s)}function qy(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
252
252
  `?`\r
253
253
  `:"\r";if(a===`
254
254
  `)return`
255
255
  `}return e&&e.eol||`
256
256
  `}function Mh(e,r){return`\r
257
- `.indexOf(e.charAt(r))!==-1}var cu;(function(e){e.DEFAULT={allowTrailingComma:!1}})(cu||(cu={}));function qy(e,r){var n=[],a=new Object,s=void 0,c={value:{},offset:0,length:0,type:"object",parent:void 0},p=!1;function m(v,y,b,I){c.value=v,c.offset=y,c.length=b,c.type=I,c.colonOffset=void 0,s=c}try{cc(e,{onObjectBegin:function(v,y){if(r<=v)throw a;s=void 0,p=r>v,n.push("")},onObjectProperty:function(v,y,b){if(r<y||(m(v,y,b,"property"),n[n.length-1]=v,r<=y+b))throw a},onObjectEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onArrayBegin:function(v,y){if(r<=v)throw a;s=void 0,n.push(0)},onArrayEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onLiteralValue:function(v,y,b){if(r<y||(m(v,y,b,Dh(v)),r<=y+b))throw a},onSeparator:function(v,y,b){if(r<=y)throw a;if(v===":"&&s&&s.type==="property")s.colonOffset=y,p=!1,s=void 0;else if(v===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(p=!0,n[n.length-1]=""),s=void 0}}})}catch(v){if(v!==a)throw v}return{path:n,previousNode:s,isAtPropertyKey:p,matches:function(v){for(var y=0,b=0;y<v.length&&b<n.length;b++)if(v[y]===n[b]||v[y]==="*")y++;else if(v[y]!=="**")return!1;return y===v.length}}}function _y(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=cu.DEFAULT);var a=null,s=[],c=[];function p(v){Array.isArray(s)?s.push(v):a!==null&&(s[a]=v)}var m={onObjectBegin:function(){var v={};p(v),c.push(s),s=v,a=null},onObjectProperty:function(v){a=v},onObjectEnd:function(){s=c.pop()},onArrayBegin:function(){var v=[];p(v),c.push(s),s=v,a=null},onArrayEnd:function(){s=c.pop()},onLiteralValue:p,onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};return cc(e,m,n),s[0]}function e0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=cu.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(v){a.type==="property"&&(a.length=v-a.offset,a=a.parent)}function c(v){return a.children.push(v),v}var p={onObjectBegin:function(v){a=c({type:"object",offset:v,length:-1,parent:a,children:[]})},onObjectProperty:function(v,y,b){a=c({type:"property",offset:y,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:v,offset:y,length:b,parent:a})},onObjectEnd:function(v,y){s(v+y),a.length=v+y-a.offset,a=a.parent,s(v+y)},onArrayBegin:function(v,y){a=c({type:"array",offset:v,length:-1,parent:a,children:[]})},onArrayEnd:function(v,y){a.length=v+y-a.offset,a=a.parent,s(v+y)},onLiteralValue:function(v,y,b){c({type:Dh(v),offset:y,length:b,parent:a,value:v}),s(y+b)},onSeparator:function(v,y,b){a.type==="property"&&(v===":"?a.colonOffset=y:v===","&&s(y))},onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};cc(e,p,n);var m=a.children[0];return m&&delete m.parent,m}function t0(e,r){if(!!e){for(var n=e,a=0,s=r;a<s.length;a++){var c=s[a];if(typeof c=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var p=!1,m=0,v=n.children;m<v.length;m++){var y=v[m];if(Array.isArray(y.children)&&y.children[0].value===c){n=y.children[1],p=!0;break}}if(!p)return}else{var b=c;if(n.type!=="array"||b<0||!Array.isArray(n.children)||b>=n.children.length)return;n=n.children[b]}}return n}}function Lh(e){if(!e.parent||!e.parent.children)return[];var r=Lh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Jd(e){switch(e.type){case"array":return e.children.map(Jd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var s=a[n],c=s.children[1];c&&(r[s.children[0].value]=Jd(c))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function r0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Nh(e,r,n){if(n===void 0&&(n=!1),r0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var c=Nh(a[s],r,n);if(c)return c}return e}}function cc(e,r,n){n===void 0&&(n=cu.DEFAULT);var a=fc(e,!1);function s(Ce){return Ce?function(){return Ce(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(Ce){return Ce?function(Fe){return Ce(Fe,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var p=s(r.onObjectBegin),m=c(r.onObjectProperty),v=s(r.onObjectEnd),y=s(r.onArrayBegin),b=s(r.onArrayEnd),I=c(r.onLiteralValue),R=c(r.onSeparator),N=s(r.onComment),G=c(r.onError),ee=n&&n.disallowComments,q=n&&n.allowTrailingComma;function oe(){for(;;){var Ce=a.scan();switch(a.getTokenError()){case 4:ae(14);break;case 5:ae(15);break;case 3:ae(13);break;case 1:ee||ae(11);break;case 2:ae(12);break;case 6:ae(16);break}switch(Ce){case 12:case 13:ee?ae(10):N();break;case 16:ae(1);break;case 15:case 14:break;default:return Ce}}}function ae(Ce,Fe,Re){if(Fe===void 0&&(Fe=[]),Re===void 0&&(Re=[]),G(Ce),Fe.length+Re.length>0)for(var Ue=a.getToken();Ue!==17;){if(Fe.indexOf(Ue)!==-1){oe();break}else if(Re.indexOf(Ue)!==-1)break;Ue=oe()}}function pe(Ce){var Fe=a.getTokenValue();return Ce?I(Fe):m(Fe),oe(),!0}function ve(){switch(a.getToken()){case 11:var Ce=a.getTokenValue(),Fe=Number(Ce);isNaN(Fe)&&(ae(2),Fe=0),I(Fe);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return oe(),!0}function me(){return a.getToken()!==10?(ae(3,[],[2,5]),!1):(pe(!1),a.getToken()===6?(R(":"),oe(),Se()||ae(4,[],[2,5])):ae(5,[],[2,5]),!0)}function Te(){p(),oe();for(var Ce=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Ce||ae(4,[],[]),R(","),oe(),a.getToken()===2&&q)break}else Ce&&ae(6,[],[]);me()||ae(4,[],[2,5]),Ce=!0}return v(),a.getToken()!==2?ae(7,[2],[]):oe(),!0}function Ae(){y(),oe();for(var Ce=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Ce||ae(4,[],[]),R(","),oe(),a.getToken()===4&&q)break}else Ce&&ae(6,[],[]);Se()||ae(4,[],[4,5]),Ce=!0}return b(),a.getToken()!==4?ae(8,[4],[]):oe(),!0}function Se(){switch(a.getToken()){case 3:return Ae();case 1:return Te();case 10:return pe(!0);default:return ve()}}return oe(),a.getToken()===17?n.allowEmptyContent?!0:(ae(4,[],[]),!1):Se()?(a.getToken()!==17&&ae(9,[],[]),!0):(ae(4,[],[]),!1)}function n0(e,r){var n=fc(e),a=[],s,c=0,p;do switch(p=n.getPosition(),s=n.scan(),s){case 12:case 13:case 17:c!==p&&a.push(e.substring(c,p)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),c=n.getPosition();break}while(s!==17);return a.join("")}function Dh(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function v1(e,r,n){return i0(e,r,void 0,n)}function i0(e,r,n,a){for(var s,c=r.slice(),p=[],m=parseTree(e,p),v=void 0,y=void 0;c.length>0&&(y=c.pop(),v=findNodeAtLocation(m,c),v===void 0&&n!==void 0);)typeof y=="string"?n=(s={},s[y]=n,s):n=[n];if(v)if(v.type==="object"&&typeof y=="string"&&Array.isArray(v.children)){var b=findNodeAtLocation(v,[y]);if(b!==void 0)if(n===void 0){if(!b.parent)throw new Error("Malformed AST");var I=v.children.indexOf(b.parent),R=void 0,N=b.parent.offset+b.parent.length;if(I>0){var G=v.children[I-1];R=G.offset+G.length}else if(R=v.offset+1,v.children.length>1){var ee=v.children[1];N=ee.offset}return Go(e,{offset:R,length:N-R,content:""},a)}else return Go(e,{offset:b.offset,length:b.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var q=JSON.stringify(y)+": "+JSON.stringify(n),oe=a.getInsertionIndex?a.getInsertionIndex(v.children.map(function(Ce){return Ce.children[0].value})):v.children.length,ae=void 0;if(oe>0){var G=v.children[oe-1];ae={offset:G.offset+G.length,length:0,content:","+q}}else v.children.length===0?ae={offset:v.offset+1,length:0,content:q}:ae={offset:v.offset+1,length:0,content:q+","};return Go(e,ae,a)}}else if(v.type==="array"&&typeof y=="number"&&Array.isArray(v.children)){var pe=y;if(pe===-1){var q=""+JSON.stringify(n),ae=void 0;if(v.children.length===0)ae={offset:v.offset+1,length:0,content:q};else{var G=v.children[v.children.length-1];ae={offset:G.offset+G.length,length:0,content:","+q}}return Go(e,ae,a)}else if(n===void 0&&v.children.length>=0){var ve=y,me=v.children[ve],ae=void 0;if(v.children.length===1)ae={offset:v.offset+1,length:v.length-2,content:""};else if(v.children.length-1===ve){var G=v.children[ve-1],Te=G.offset+G.length,Ae=v.offset+v.length;ae={offset:Te,length:Ae-2-Te,content:""}}else ae={offset:me.offset,length:v.children[ve+1].offset-me.offset,content:""};return Go(e,ae,a)}else if(n!==void 0){var ae=void 0,q=""+JSON.stringify(n);if(!a.isArrayInsertion&&v.children.length>y){var Se=v.children[y];ae={offset:Se.offset,length:Se.length,content:q}}else if(v.children.length===0||y===0)ae={offset:v.offset+1,length:0,content:v.children.length===0?q:q+","};else{var oe=y>v.children.length?v.children.length:y,G=v.children[oe-1];ae={offset:G.offset+G.length,length:0,content:","+q}}return Go(e,ae,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+pe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof y!="number"?"index":"property")+" to parent of type "+v.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Go(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Go(e,r,n){if(!n.formattingOptions)return[r];var a=Bh(e,r),s=r.offset,c=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;c<a.length&&!isEOL(a,c);)c++}for(var p=format(a,{offset:s,length:c-s},n.formattingOptions),m=p.length-1;m>=0;m--){var v=p[m];a=Bh(a,v),s=Math.min(s,v.offset),c=Math.max(c,v.offset+v.length),c+=v.content.length-v.length}var y=e.length-(a.length-c)-s;return[{offset:s,length:y,content:a.substring(s,c)}]}function Bh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function g1(e,r){return`\r
258
- `.indexOf(e.charAt(r))!==-1}var Xs=fc,m1=qy,a0=_y,y1=e0,b1=t0,o0=Nh,s0=Lh,l0=Jd,x1=cc,S1=n0;function w1(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function u0(e,r,n){return Xy(e,r,n)}function A1(e,r,n,a){return edit.setProperty(e,r,n,a)}function C1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function du(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!du(e[n],r[n]))return!1}else{var s=[];for(a in e)s.push(a);s.sort();var c=[];for(a in r)c.push(a);if(c.sort(),!du(s,c))return!1;for(n=0;n<s.length;n++)if(!du(e[s[n]],r[s[n]]))return!1}return!0}function qn(e){return typeof e=="number"}function Ca(e){return typeof e!="undefined"}function ea(e){return typeof e=="boolean"}function f0(e){return typeof e=="string"}var jh;(function(e){function r(n){return typeof n=="string"}e.is=r})(jh||(jh={}));var Xd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Xd||(Xd={}));var Vh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Vh||(Vh={}));var dc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(dc||(dc={}));var ci;(function(e){function r(a,s){return a===Number.MAX_VALUE&&(a=dc.MAX_VALUE),s===Number.MAX_VALUE&&(s=dc.MAX_VALUE),{line:a,character:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.uinteger(s.line)&&Pe.uinteger(s.character)}e.is=n})(ci||(ci={}));var sr;(function(e){function r(a,s,c,p){if(Pe.uinteger(a)&&Pe.uinteger(s)&&Pe.uinteger(c)&&Pe.uinteger(p))return{start:ci.create(a,s),end:ci.create(c,p)};if(ci.is(a)&&ci.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(s,", ").concat(c,", ").concat(p,"]"))}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ci.is(s.start)&&ci.is(s.end)}e.is=n})(sr||(sr={}));var Qs;(function(e){function r(a,s){return{uri:a,range:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.range)&&(Pe.string(s.uri)||Pe.undefined(s.uri))}e.is=n})(Qs||(Qs={}));var Uh;(function(e){function r(a,s,c,p){return{targetUri:a,targetRange:s,targetSelectionRange:c,originSelectionRange:p}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.targetRange)&&Pe.string(s.targetUri)&&sr.is(s.targetSelectionRange)&&(sr.is(s.originSelectionRange)||Pe.undefined(s.originSelectionRange))}e.is=n})(Uh||(Uh={}));var Qd;(function(e){function r(a,s,c,p){return{red:a,green:s,blue:c,alpha:p}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.numberRange(s.red,0,1)&&Pe.numberRange(s.green,0,1)&&Pe.numberRange(s.blue,0,1)&&Pe.numberRange(s.alpha,0,1)}e.is=n})(Qd||(Qd={}));var Wh;(function(e){function r(a,s){return{range:a,color:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.range)&&Qd.is(s.color)}e.is=n})(Wh||(Wh={}));var Hh;(function(e){function r(a,s,c){return{label:a,textEdit:s,additionalTextEdits:c}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.string(s.label)&&(Pe.undefined(s.textEdit)||di.is(s))&&(Pe.undefined(s.additionalTextEdits)||Pe.typedArray(s.additionalTextEdits,di.is))}e.is=n})(Hh||(Hh={}));var pu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(pu||(pu={}));var zh;(function(e){function r(a,s,c,p,m,v){var y={startLine:a,endLine:s};return Pe.defined(c)&&(y.startCharacter=c),Pe.defined(p)&&(y.endCharacter=p),Pe.defined(m)&&(y.kind=m),Pe.defined(v)&&(y.collapsedText=v),y}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.uinteger(s.startLine)&&Pe.uinteger(s.startLine)&&(Pe.undefined(s.startCharacter)||Pe.uinteger(s.startCharacter))&&(Pe.undefined(s.endCharacter)||Pe.uinteger(s.endCharacter))&&(Pe.undefined(s.kind)||Pe.string(s.kind))}e.is=n})(zh||(zh={}));var Zd;(function(e){function r(a,s){return{location:a,message:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Qs.is(s.location)&&Pe.string(s.message)}e.is=n})(Zd||(Zd={}));var Ht;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Ht||(Ht={}));var Gh;(function(e){e.Unnecessary=1,e.Deprecated=2})(Gh||(Gh={}));var $h;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&Pe.string(a.href)}e.is=r})($h||($h={}));var Ea;(function(e){function r(a,s,c,p,m,v){var y={range:a,message:s};return Pe.defined(c)&&(y.severity=c),Pe.defined(p)&&(y.code=p),Pe.defined(m)&&(y.source=m),Pe.defined(v)&&(y.relatedInformation=v),y}e.create=r;function n(a){var s,c=a;return Pe.defined(c)&&sr.is(c.range)&&Pe.string(c.message)&&(Pe.number(c.severity)||Pe.undefined(c.severity))&&(Pe.integer(c.code)||Pe.string(c.code)||Pe.undefined(c.code))&&(Pe.undefined(c.codeDescription)||Pe.string((s=c.codeDescription)===null||s===void 0?void 0:s.href))&&(Pe.string(c.source)||Pe.undefined(c.source))&&(Pe.undefined(c.relatedInformation)||Pe.typedArray(c.relatedInformation,Zd.is))}e.is=n})(Ea||(Ea={}));var Zs;(function(e){function r(a,s){for(var c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];var m={title:a,command:s};return Pe.defined(c)&&c.length>0&&(m.arguments=c),m}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.title)&&Pe.string(s.command)}e.is=n})(Zs||(Zs={}));var di;(function(e){function r(c,p){return{range:c,newText:p}}e.replace=r;function n(c,p){return{range:{start:c,end:c},newText:p}}e.insert=n;function a(c){return{range:c,newText:""}}e.del=a;function s(c){var p=c;return Pe.objectLiteral(p)&&Pe.string(p.newText)&&sr.is(p.range)}e.is=s})(di||(di={}));var qs;(function(e){function r(a,s,c){var p={label:a};return s!==void 0&&(p.needsConfirmation=s),c!==void 0&&(p.description=c),p}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.string(s.label)&&(Pe.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Pe.string(s.description)||s.description===void 0)}e.is=n})(qs||(qs={}));var Cn;(function(e){function r(n){var a=n;return Pe.string(a)}e.is=r})(Cn||(Cn={}));var ao;(function(e){function r(c,p,m){return{range:c,newText:p,annotationId:m}}e.replace=r;function n(c,p,m){return{range:{start:c,end:c},newText:p,annotationId:m}}e.insert=n;function a(c,p){return{range:c,newText:"",annotationId:p}}e.del=a;function s(c){var p=c;return di.is(p)&&(qs.is(p.annotationId)||Cn.is(p.annotationId))}e.is=s})(ao||(ao={}));var pc;(function(e){function r(a,s){return{textDocument:a,edits:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&vc.is(s.textDocument)&&Array.isArray(s.edits)}e.is=n})(pc||(pc={}));var hu;(function(e){function r(a,s,c){var p={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="create"&&Pe.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Pe.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Pe.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(hu||(hu={}));var vu;(function(e){function r(a,s,c,p){var m={kind:"rename",oldUri:a,newUri:s};return c!==void 0&&(c.overwrite!==void 0||c.ignoreIfExists!==void 0)&&(m.options=c),p!==void 0&&(m.annotationId=p),m}e.create=r;function n(a){var s=a;return s&&s.kind==="rename"&&Pe.string(s.oldUri)&&Pe.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Pe.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Pe.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(vu||(vu={}));var gu;(function(e){function r(a,s,c){var p={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="delete"&&Pe.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Pe.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Pe.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(gu||(gu={}));var qd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Pe.string(s.kind)?hu.is(s)||vu.is(s)||gu.is(s):pc.is(s)}))}e.is=r})(qd||(qd={}));var hc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var s,c;if(a===void 0?s=di.insert(r,n):Cn.is(a)?(c=a,s=ao.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=ao.insert(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.replace=function(r,n,a){var s,c;if(a===void 0?s=di.replace(r,n):Cn.is(a)?(c=a,s=ao.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=ao.replace(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.delete=function(r,n){var a,s;if(n===void 0?a=di.del(r):Cn.is(n)?(s=n,a=ao.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),a=ao.del(r,s)),this.edits.push(a),s!==void 0)return s},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Kh=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Cn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),E1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Kh(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(pc.is(a)){var s=new hc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new hc(r.changes[a]);n._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(vc.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},a=this._textEditChanges[n.uri];if(!a){var s=[],c={textDocument:n,edits:s};this._workspaceEdit.documentChanges.push(c),a=new hc(s,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new hc(s),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Kh,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;qs.is(n)||Cn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=hu.create(r,a):(p=Cn.is(s)?s:this._changeAnnotations.manage(s),c=hu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e.prototype.renameFile=function(r,n,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;qs.is(a)||Cn.is(a)?c=a:s=a;var p,m;if(c===void 0?p=vu.create(r,n,s):(m=Cn.is(c)?c:this._changeAnnotations.manage(c),p=vu.create(r,n,s,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;qs.is(n)||Cn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=gu.create(r,a):(p=Cn.is(s)?s:this._changeAnnotations.manage(s),c=gu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e}(),Yh;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)}e.is=n})(Yh||(Yh={}));var Jh;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&Pe.integer(s.version)}e.is=n})(Jh||(Jh={}));var vc;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&(s.version===null||Pe.integer(s.version))}e.is=n})(vc||(vc={}));var Xh;(function(e){function r(a,s,c,p){return{uri:a,languageId:s,version:c,text:p}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&Pe.string(s.languageId)&&Pe.integer(s.version)&&Pe.string(s.text)}e.is=n})(Xh||(Xh={}));var $o;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})($o||($o={}));var mu;(function(e){function r(n){var a=n;return Pe.objectLiteral(n)&&$o.is(a.kind)&&Pe.string(a.value)}e.is=r})(mu||(mu={}));var _n;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_n||(_n={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var Qh;(function(e){e.Deprecated=1})(Qh||(Qh={}));var Zh;(function(e){function r(a,s,c){return{newText:a,insert:s,replace:c}}e.create=r;function n(a){var s=a;return s&&Pe.string(s.newText)&&sr.is(s.insert)&&sr.is(s.replace)}e.is=n})(Zh||(Zh={}));var qh;(function(e){e.asIs=1,e.adjustIndentation=2})(qh||(qh={}));var _h;(function(e){function r(n){var a=n;return a&&(Pe.string(a.detail)||a.detail===void 0)&&(Pe.string(a.description)||a.description===void 0)}e.is=r})(_h||(_h={}));var _d;(function(e){function r(n){return{label:n}}e.create=r})(_d||(_d={}));var ev;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(ev||(ev={}));var gc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var s=a;return Pe.string(s)||Pe.objectLiteral(s)&&Pe.string(s.language)&&Pe.string(s.value)}e.is=n})(gc||(gc={}));var tv;(function(e){function r(n){var a=n;return!!a&&Pe.objectLiteral(a)&&(mu.is(a.contents)||gc.is(a.contents)||Pe.typedArray(a.contents,gc.is))&&(n.range===void 0||sr.is(n.range))}e.is=r})(tv||(tv={}));var rv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(rv||(rv={}));var nv;(function(e){function r(n,a){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var p={label:n};return Pe.defined(a)&&(p.documentation=a),Pe.defined(s)?p.parameters=s:p.parameters=[],p}e.create=r})(nv||(nv={}));var iv;(function(e){e.Text=1,e.Read=2,e.Write=3})(iv||(iv={}));var av;(function(e){function r(n,a){var s={range:n};return Pe.number(a)&&(s.kind=a),s}e.create=r})(av||(av={}));var ta;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ta||(ta={}));var ov;(function(e){e.Deprecated=1})(ov||(ov={}));var sv;(function(e){function r(n,a,s,c,p){var m={name:n,kind:a,location:{uri:c,range:s}};return p&&(m.containerName=p),m}e.create=r})(sv||(sv={}));var lv;(function(e){function r(n,a,s,c){return c!==void 0?{name:n,kind:a,location:{uri:s,range:c}}:{name:n,kind:a,location:{uri:s}}}e.create=r})(lv||(lv={}));var uv;(function(e){function r(a,s,c,p,m,v){var y={name:a,detail:s,kind:c,range:p,selectionRange:m};return v!==void 0&&(y.children=v),y}e.create=r;function n(a){var s=a;return s&&Pe.string(s.name)&&Pe.number(s.kind)&&sr.is(s.range)&&sr.is(s.selectionRange)&&(s.detail===void 0||Pe.string(s.detail))&&(s.deprecated===void 0||Pe.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=n})(uv||(uv={}));var fv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(fv||(fv={}));var mc;(function(e){e.Invoked=1,e.Automatic=2})(mc||(mc={}));var cv;(function(e){function r(a,s,c){var p={diagnostics:a};return s!=null&&(p.only=s),c!=null&&(p.triggerKind=c),p}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.typedArray(s.diagnostics,Ea.is)&&(s.only===void 0||Pe.typedArray(s.only,Pe.string))&&(s.triggerKind===void 0||s.triggerKind===mc.Invoked||s.triggerKind===mc.Automatic)}e.is=n})(cv||(cv={}));var dv;(function(e){function r(a,s,c){var p={title:a},m=!0;return typeof s=="string"?(m=!1,p.kind=s):Zs.is(s)?p.command=s:p.edit=s,m&&c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return s&&Pe.string(s.title)&&(s.diagnostics===void 0||Pe.typedArray(s.diagnostics,Ea.is))&&(s.kind===void 0||Pe.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Zs.is(s.command))&&(s.isPreferred===void 0||Pe.boolean(s.isPreferred))&&(s.edit===void 0||qd.is(s.edit))}e.is=n})(dv||(dv={}));var pv;(function(e){function r(a,s){var c={range:a};return Pe.defined(s)&&(c.data=s),c}e.create=r;function n(a){var s=a;return Pe.defined(s)&&sr.is(s.range)&&(Pe.undefined(s.command)||Zs.is(s.command))}e.is=n})(pv||(pv={}));var hv;(function(e){function r(a,s){return{tabSize:a,insertSpaces:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.uinteger(s.tabSize)&&Pe.boolean(s.insertSpaces)}e.is=n})(hv||(hv={}));var vv;(function(e){function r(a,s,c){return{range:a,target:s,data:c}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&sr.is(s.range)&&(Pe.undefined(s.target)||Pe.string(s.target))}e.is=n})(vv||(vv={}));var yc;(function(e){function r(a,s){return{range:a,parent:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=n})(yc||(yc={}));var gv;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(gv||(gv={}));var mv;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(mv||(mv={}));var yv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(yv||(yv={}));var bv;(function(e){function r(a,s){return{range:a,text:s}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&Pe.string(s.text)}e.is=n})(bv||(bv={}));var xv;(function(e){function r(a,s,c){return{range:a,variableName:s,caseSensitiveLookup:c}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&Pe.boolean(s.caseSensitiveLookup)&&(Pe.string(s.variableName)||s.variableName===void 0)}e.is=n})(xv||(xv={}));var Sv;(function(e){function r(a,s){return{range:a,expression:s}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&(Pe.string(s.expression)||s.expression===void 0)}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(a,s){return{frameId:a,stoppedLocation:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&sr.is(a.stoppedLocation)}e.is=n})(wv||(wv={}));var ep;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(ep||(ep={}));var tp;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&(s.tooltip===void 0||Pe.string(s.tooltip)||mu.is(s.tooltip))&&(s.location===void 0||Qs.is(s.location))&&(s.command===void 0||Zs.is(s.command))}e.is=n})(tp||(tp={}));var Av;(function(e){function r(a,s,c){var p={position:a,label:s};return c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ci.is(s.position)&&(Pe.string(s.label)||Pe.typedArray(s.label,tp.is))&&(s.kind===void 0||ep.is(s.kind))&&s.textEdits===void 0||Pe.typedArray(s.textEdits,di.is)&&(s.tooltip===void 0||Pe.string(s.tooltip)||mu.is(s.tooltip))&&(s.paddingLeft===void 0||Pe.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Pe.boolean(s.paddingRight))}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&Xd.is(a.uri)&&Pe.string(a.name)}e.is=r})(Cv||(Cv={}));var O1=null,Ev;(function(e){function r(c,p,m,v){return new c0(c,p,m,v)}e.create=r;function n(c){var p=c;return!!(Pe.defined(p)&&Pe.string(p.uri)&&(Pe.undefined(p.languageId)||Pe.string(p.languageId))&&Pe.uinteger(p.lineCount)&&Pe.func(p.getText)&&Pe.func(p.positionAt)&&Pe.func(p.offsetAt))}e.is=n;function a(c,p){for(var m=c.getText(),v=s(p,function(G,ee){var q=G.range.start.line-ee.range.start.line;return q===0?G.range.start.character-ee.range.start.character:q}),y=m.length,b=v.length-1;b>=0;b--){var I=v[b],R=c.offsetAt(I.range.start),N=c.offsetAt(I.range.end);if(N<=y)m=m.substring(0,R)+I.newText+m.substring(N,m.length);else throw new Error("Overlapping edit");y=R}return m}e.applyEdits=a;function s(c,p){if(c.length<=1)return c;var m=c.length/2|0,v=c.slice(0,m),y=c.slice(m);s(v,p),s(y,p);for(var b=0,I=0,R=0;b<v.length&&I<y.length;){var N=p(v[b],y[I]);N<=0?c[R++]=v[b++]:c[R++]=y[I++]}for(;b<v.length;)c[R++]=v[b++];for(;I<y.length;)c[R++]=y[I++];return c}})(Ev||(Ev={}));var c0=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,s=0;s<n.length;s++){a&&(r.push(s),a=!1);var c=n.charAt(s);a=c==="\r"||c===`
257
+ `.indexOf(e.charAt(r))!==-1}var cu;(function(e){e.DEFAULT={allowTrailingComma:!1}})(cu||(cu={}));function _y(e,r){var n=[],a=new Object,s=void 0,c={value:{},offset:0,length:0,type:"object",parent:void 0},p=!1;function m(v,y,b,I){c.value=v,c.offset=y,c.length=b,c.type=I,c.colonOffset=void 0,s=c}try{cc(e,{onObjectBegin:function(v,y){if(r<=v)throw a;s=void 0,p=r>v,n.push("")},onObjectProperty:function(v,y,b){if(r<y||(m(v,y,b,"property"),n[n.length-1]=v,r<=y+b))throw a},onObjectEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onArrayBegin:function(v,y){if(r<=v)throw a;s=void 0,n.push(0)},onArrayEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onLiteralValue:function(v,y,b){if(r<y||(m(v,y,b,Dh(v)),r<=y+b))throw a},onSeparator:function(v,y,b){if(r<=y)throw a;if(v===":"&&s&&s.type==="property")s.colonOffset=y,p=!1,s=void 0;else if(v===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(p=!0,n[n.length-1]=""),s=void 0}}})}catch(v){if(v!==a)throw v}return{path:n,previousNode:s,isAtPropertyKey:p,matches:function(v){for(var y=0,b=0;y<v.length&&b<n.length;b++)if(v[y]===n[b]||v[y]==="*")y++;else if(v[y]!=="**")return!1;return y===v.length}}}function e0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=cu.DEFAULT);var a=null,s=[],c=[];function p(v){Array.isArray(s)?s.push(v):a!==null&&(s[a]=v)}var m={onObjectBegin:function(){var v={};p(v),c.push(s),s=v,a=null},onObjectProperty:function(v){a=v},onObjectEnd:function(){s=c.pop()},onArrayBegin:function(){var v=[];p(v),c.push(s),s=v,a=null},onArrayEnd:function(){s=c.pop()},onLiteralValue:p,onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};return cc(e,m,n),s[0]}function t0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=cu.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(v){a.type==="property"&&(a.length=v-a.offset,a=a.parent)}function c(v){return a.children.push(v),v}var p={onObjectBegin:function(v){a=c({type:"object",offset:v,length:-1,parent:a,children:[]})},onObjectProperty:function(v,y,b){a=c({type:"property",offset:y,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:v,offset:y,length:b,parent:a})},onObjectEnd:function(v,y){s(v+y),a.length=v+y-a.offset,a=a.parent,s(v+y)},onArrayBegin:function(v,y){a=c({type:"array",offset:v,length:-1,parent:a,children:[]})},onArrayEnd:function(v,y){a.length=v+y-a.offset,a=a.parent,s(v+y)},onLiteralValue:function(v,y,b){c({type:Dh(v),offset:y,length:b,parent:a,value:v}),s(y+b)},onSeparator:function(v,y,b){a.type==="property"&&(v===":"?a.colonOffset=y:v===","&&s(y))},onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};cc(e,p,n);var m=a.children[0];return m&&delete m.parent,m}function r0(e,r){if(!!e){for(var n=e,a=0,s=r;a<s.length;a++){var c=s[a];if(typeof c=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var p=!1,m=0,v=n.children;m<v.length;m++){var y=v[m];if(Array.isArray(y.children)&&y.children[0].value===c){n=y.children[1],p=!0;break}}if(!p)return}else{var b=c;if(n.type!=="array"||b<0||!Array.isArray(n.children)||b>=n.children.length)return;n=n.children[b]}}return n}}function Lh(e){if(!e.parent||!e.parent.children)return[];var r=Lh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Jd(e){switch(e.type){case"array":return e.children.map(Jd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var s=a[n],c=s.children[1];c&&(r[s.children[0].value]=Jd(c))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function n0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Nh(e,r,n){if(n===void 0&&(n=!1),n0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var c=Nh(a[s],r,n);if(c)return c}return e}}function cc(e,r,n){n===void 0&&(n=cu.DEFAULT);var a=fc(e,!1);function s(we){return we?function(){return we(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(we){return we?function(Fe){return we(Fe,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var p=s(r.onObjectBegin),m=c(r.onObjectProperty),v=s(r.onObjectEnd),y=s(r.onArrayBegin),b=s(r.onArrayEnd),I=c(r.onLiteralValue),D=c(r.onSeparator),B=s(r.onComment),$=c(r.onError),K=n&&n.disallowComments,q=n&&n.allowTrailingComma;function oe(){for(;;){var we=a.scan();switch(a.getTokenError()){case 4:ae(14);break;case 5:ae(15);break;case 3:ae(13);break;case 1:K||ae(11);break;case 2:ae(12);break;case 6:ae(16);break}switch(we){case 12:case 13:K?ae(10):B();break;case 16:ae(1);break;case 15:case 14:break;default:return we}}}function ae(we,Fe,Re){if(Fe===void 0&&(Fe=[]),Re===void 0&&(Re=[]),$(we),Fe.length+Re.length>0)for(var Ue=a.getToken();Ue!==17;){if(Fe.indexOf(Ue)!==-1){oe();break}else if(Re.indexOf(Ue)!==-1)break;Ue=oe()}}function pe(we){var Fe=a.getTokenValue();return we?I(Fe):m(Fe),oe(),!0}function Ce(){switch(a.getToken()){case 11:var we=a.getTokenValue(),Fe=Number(we);isNaN(Fe)&&(ae(2),Fe=0),I(Fe);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return oe(),!0}function Se(){return a.getToken()!==10?(ae(3,[],[2,5]),!1):(pe(!1),a.getToken()===6?(D(":"),oe(),me()||ae(4,[],[2,5])):ae(5,[],[2,5]),!0)}function Pe(){p(),oe();for(var we=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(we||ae(4,[],[]),D(","),oe(),a.getToken()===2&&q)break}else we&&ae(6,[],[]);Se()||ae(4,[],[2,5]),we=!0}return v(),a.getToken()!==2?ae(7,[2],[]):oe(),!0}function he(){y(),oe();for(var we=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(we||ae(4,[],[]),D(","),oe(),a.getToken()===4&&q)break}else we&&ae(6,[],[]);me()||ae(4,[],[4,5]),we=!0}return b(),a.getToken()!==4?ae(8,[4],[]):oe(),!0}function me(){switch(a.getToken()){case 3:return he();case 1:return Pe();case 10:return pe(!0);default:return Ce()}}return oe(),a.getToken()===17?n.allowEmptyContent?!0:(ae(4,[],[]),!1):me()?(a.getToken()!==17&&ae(9,[],[]),!0):(ae(4,[],[]),!1)}function i0(e,r){var n=fc(e),a=[],s,c=0,p;do switch(p=n.getPosition(),s=n.scan(),s){case 12:case 13:case 17:c!==p&&a.push(e.substring(c,p)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),c=n.getPosition();break}while(s!==17);return a.join("")}function Dh(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function g1(e,r,n){return a0(e,r,void 0,n)}function a0(e,r,n,a){for(var s,c=r.slice(),p=[],m=parseTree(e,p),v=void 0,y=void 0;c.length>0&&(y=c.pop(),v=findNodeAtLocation(m,c),v===void 0&&n!==void 0);)typeof y=="string"?n=(s={},s[y]=n,s):n=[n];if(v)if(v.type==="object"&&typeof y=="string"&&Array.isArray(v.children)){var b=findNodeAtLocation(v,[y]);if(b!==void 0)if(n===void 0){if(!b.parent)throw new Error("Malformed AST");var I=v.children.indexOf(b.parent),D=void 0,B=b.parent.offset+b.parent.length;if(I>0){var $=v.children[I-1];D=$.offset+$.length}else if(D=v.offset+1,v.children.length>1){var K=v.children[1];B=K.offset}return Go(e,{offset:D,length:B-D,content:""},a)}else return Go(e,{offset:b.offset,length:b.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var q=JSON.stringify(y)+": "+JSON.stringify(n),oe=a.getInsertionIndex?a.getInsertionIndex(v.children.map(function(we){return we.children[0].value})):v.children.length,ae=void 0;if(oe>0){var $=v.children[oe-1];ae={offset:$.offset+$.length,length:0,content:","+q}}else v.children.length===0?ae={offset:v.offset+1,length:0,content:q}:ae={offset:v.offset+1,length:0,content:q+","};return Go(e,ae,a)}}else if(v.type==="array"&&typeof y=="number"&&Array.isArray(v.children)){var pe=y;if(pe===-1){var q=""+JSON.stringify(n),ae=void 0;if(v.children.length===0)ae={offset:v.offset+1,length:0,content:q};else{var $=v.children[v.children.length-1];ae={offset:$.offset+$.length,length:0,content:","+q}}return Go(e,ae,a)}else if(n===void 0&&v.children.length>=0){var Ce=y,Se=v.children[Ce],ae=void 0;if(v.children.length===1)ae={offset:v.offset+1,length:v.length-2,content:""};else if(v.children.length-1===Ce){var $=v.children[Ce-1],Pe=$.offset+$.length,he=v.offset+v.length;ae={offset:Pe,length:he-2-Pe,content:""}}else ae={offset:Se.offset,length:v.children[Ce+1].offset-Se.offset,content:""};return Go(e,ae,a)}else if(n!==void 0){var ae=void 0,q=""+JSON.stringify(n);if(!a.isArrayInsertion&&v.children.length>y){var me=v.children[y];ae={offset:me.offset,length:me.length,content:q}}else if(v.children.length===0||y===0)ae={offset:v.offset+1,length:0,content:v.children.length===0?q:q+","};else{var oe=y>v.children.length?v.children.length:y,$=v.children[oe-1];ae={offset:$.offset+$.length,length:0,content:","+q}}return Go(e,ae,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+pe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof y!="number"?"index":"property")+" to parent of type "+v.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Go(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Go(e,r,n){if(!n.formattingOptions)return[r];var a=Bh(e,r),s=r.offset,c=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;c<a.length&&!isEOL(a,c);)c++}for(var p=format(a,{offset:s,length:c-s},n.formattingOptions),m=p.length-1;m>=0;m--){var v=p[m];a=Bh(a,v),s=Math.min(s,v.offset),c=Math.max(c,v.offset+v.length),c+=v.content.length-v.length}var y=e.length-(a.length-c)-s;return[{offset:s,length:y,content:a.substring(s,c)}]}function Bh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function m1(e,r){return`\r
258
+ `.indexOf(e.charAt(r))!==-1}var Xs=fc,y1=_y,o0=e0,b1=t0,x1=r0,s0=Nh,l0=Lh,u0=Jd,S1=cc,w1=i0;function A1(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function f0(e,r,n){return Qy(e,r,n)}function C1(e,r,n,a){return edit.setProperty(e,r,n,a)}function E1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function du(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!du(e[n],r[n]))return!1}else{var s=[];for(a in e)s.push(a);s.sort();var c=[];for(a in r)c.push(a);if(c.sort(),!du(s,c))return!1;for(n=0;n<s.length;n++)if(!du(e[s[n]],r[s[n]]))return!1}return!0}function qn(e){return typeof e=="number"}function Ca(e){return typeof e!="undefined"}function ea(e){return typeof e=="boolean"}function c0(e){return typeof e=="string"}var jh;(function(e){function r(n){return typeof n=="string"}e.is=r})(jh||(jh={}));var Xd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Xd||(Xd={}));var Vh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Vh||(Vh={}));var dc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(dc||(dc={}));var ci;(function(e){function r(a,s){return a===Number.MAX_VALUE&&(a=dc.MAX_VALUE),s===Number.MAX_VALUE&&(s=dc.MAX_VALUE),{line:a,character:s}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&Te.uinteger(s.line)&&Te.uinteger(s.character)}e.is=n})(ci||(ci={}));var sr;(function(e){function r(a,s,c,p){if(Te.uinteger(a)&&Te.uinteger(s)&&Te.uinteger(c)&&Te.uinteger(p))return{start:ci.create(a,s),end:ci.create(c,p)};if(ci.is(a)&&ci.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(s,", ").concat(c,", ").concat(p,"]"))}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&ci.is(s.start)&&ci.is(s.end)}e.is=n})(sr||(sr={}));var Qs;(function(e){function r(a,s){return{uri:a,range:s}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&sr.is(s.range)&&(Te.string(s.uri)||Te.undefined(s.uri))}e.is=n})(Qs||(Qs={}));var Uh;(function(e){function r(a,s,c,p){return{targetUri:a,targetRange:s,targetSelectionRange:c,originSelectionRange:p}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&sr.is(s.targetRange)&&Te.string(s.targetUri)&&sr.is(s.targetSelectionRange)&&(sr.is(s.originSelectionRange)||Te.undefined(s.originSelectionRange))}e.is=n})(Uh||(Uh={}));var Qd;(function(e){function r(a,s,c,p){return{red:a,green:s,blue:c,alpha:p}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&Te.numberRange(s.red,0,1)&&Te.numberRange(s.green,0,1)&&Te.numberRange(s.blue,0,1)&&Te.numberRange(s.alpha,0,1)}e.is=n})(Qd||(Qd={}));var Wh;(function(e){function r(a,s){return{range:a,color:s}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&sr.is(s.range)&&Qd.is(s.color)}e.is=n})(Wh||(Wh={}));var Hh;(function(e){function r(a,s,c){return{label:a,textEdit:s,additionalTextEdits:c}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&Te.string(s.label)&&(Te.undefined(s.textEdit)||di.is(s))&&(Te.undefined(s.additionalTextEdits)||Te.typedArray(s.additionalTextEdits,di.is))}e.is=n})(Hh||(Hh={}));var pu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(pu||(pu={}));var zh;(function(e){function r(a,s,c,p,m,v){var y={startLine:a,endLine:s};return Te.defined(c)&&(y.startCharacter=c),Te.defined(p)&&(y.endCharacter=p),Te.defined(m)&&(y.kind=m),Te.defined(v)&&(y.collapsedText=v),y}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&Te.uinteger(s.startLine)&&Te.uinteger(s.startLine)&&(Te.undefined(s.startCharacter)||Te.uinteger(s.startCharacter))&&(Te.undefined(s.endCharacter)||Te.uinteger(s.endCharacter))&&(Te.undefined(s.kind)||Te.string(s.kind))}e.is=n})(zh||(zh={}));var Zd;(function(e){function r(a,s){return{location:a,message:s}}e.create=r;function n(a){var s=a;return Te.defined(s)&&Qs.is(s.location)&&Te.string(s.message)}e.is=n})(Zd||(Zd={}));var Ht;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Ht||(Ht={}));var Gh;(function(e){e.Unnecessary=1,e.Deprecated=2})(Gh||(Gh={}));var $h;(function(e){function r(n){var a=n;return Te.objectLiteral(a)&&Te.string(a.href)}e.is=r})($h||($h={}));var Ea;(function(e){function r(a,s,c,p,m,v){var y={range:a,message:s};return Te.defined(c)&&(y.severity=c),Te.defined(p)&&(y.code=p),Te.defined(m)&&(y.source=m),Te.defined(v)&&(y.relatedInformation=v),y}e.create=r;function n(a){var s,c=a;return Te.defined(c)&&sr.is(c.range)&&Te.string(c.message)&&(Te.number(c.severity)||Te.undefined(c.severity))&&(Te.integer(c.code)||Te.string(c.code)||Te.undefined(c.code))&&(Te.undefined(c.codeDescription)||Te.string((s=c.codeDescription)===null||s===void 0?void 0:s.href))&&(Te.string(c.source)||Te.undefined(c.source))&&(Te.undefined(c.relatedInformation)||Te.typedArray(c.relatedInformation,Zd.is))}e.is=n})(Ea||(Ea={}));var Zs;(function(e){function r(a,s){for(var c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];var m={title:a,command:s};return Te.defined(c)&&c.length>0&&(m.arguments=c),m}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.string(s.title)&&Te.string(s.command)}e.is=n})(Zs||(Zs={}));var di;(function(e){function r(c,p){return{range:c,newText:p}}e.replace=r;function n(c,p){return{range:{start:c,end:c},newText:p}}e.insert=n;function a(c){return{range:c,newText:""}}e.del=a;function s(c){var p=c;return Te.objectLiteral(p)&&Te.string(p.newText)&&sr.is(p.range)}e.is=s})(di||(di={}));var qs;(function(e){function r(a,s,c){var p={label:a};return s!==void 0&&(p.needsConfirmation=s),c!==void 0&&(p.description=c),p}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&Te.string(s.label)&&(Te.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Te.string(s.description)||s.description===void 0)}e.is=n})(qs||(qs={}));var Cn;(function(e){function r(n){var a=n;return Te.string(a)}e.is=r})(Cn||(Cn={}));var ao;(function(e){function r(c,p,m){return{range:c,newText:p,annotationId:m}}e.replace=r;function n(c,p,m){return{range:{start:c,end:c},newText:p,annotationId:m}}e.insert=n;function a(c,p){return{range:c,newText:"",annotationId:p}}e.del=a;function s(c){var p=c;return di.is(p)&&(qs.is(p.annotationId)||Cn.is(p.annotationId))}e.is=s})(ao||(ao={}));var pc;(function(e){function r(a,s){return{textDocument:a,edits:s}}e.create=r;function n(a){var s=a;return Te.defined(s)&&vc.is(s.textDocument)&&Array.isArray(s.edits)}e.is=n})(pc||(pc={}));var hu;(function(e){function r(a,s,c){var p={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="create"&&Te.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Te.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Te.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(hu||(hu={}));var vu;(function(e){function r(a,s,c,p){var m={kind:"rename",oldUri:a,newUri:s};return c!==void 0&&(c.overwrite!==void 0||c.ignoreIfExists!==void 0)&&(m.options=c),p!==void 0&&(m.annotationId=p),m}e.create=r;function n(a){var s=a;return s&&s.kind==="rename"&&Te.string(s.oldUri)&&Te.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Te.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Te.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(vu||(vu={}));var gu;(function(e){function r(a,s,c){var p={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="delete"&&Te.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Te.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Te.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(gu||(gu={}));var qd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Te.string(s.kind)?hu.is(s)||vu.is(s)||gu.is(s):pc.is(s)}))}e.is=r})(qd||(qd={}));var hc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var s,c;if(a===void 0?s=di.insert(r,n):Cn.is(a)?(c=a,s=ao.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=ao.insert(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.replace=function(r,n,a){var s,c;if(a===void 0?s=di.replace(r,n):Cn.is(a)?(c=a,s=ao.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=ao.replace(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.delete=function(r,n){var a,s;if(n===void 0?a=di.del(r):Cn.is(n)?(s=n,a=ao.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),a=ao.del(r,s)),this.edits.push(a),s!==void 0)return s},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Kh=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Cn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),O1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Kh(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(pc.is(a)){var s=new hc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new hc(r.changes[a]);n._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(vc.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},a=this._textEditChanges[n.uri];if(!a){var s=[],c={textDocument:n,edits:s};this._workspaceEdit.documentChanges.push(c),a=new hc(s,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new hc(s),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Kh,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;qs.is(n)||Cn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=hu.create(r,a):(p=Cn.is(s)?s:this._changeAnnotations.manage(s),c=hu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e.prototype.renameFile=function(r,n,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;qs.is(a)||Cn.is(a)?c=a:s=a;var p,m;if(c===void 0?p=vu.create(r,n,s):(m=Cn.is(c)?c:this._changeAnnotations.manage(c),p=vu.create(r,n,s,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;qs.is(n)||Cn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=gu.create(r,a):(p=Cn.is(s)?s:this._changeAnnotations.manage(s),c=gu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e}(),Yh;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.string(s.uri)}e.is=n})(Yh||(Yh={}));var Jh;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.string(s.uri)&&Te.integer(s.version)}e.is=n})(Jh||(Jh={}));var vc;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.string(s.uri)&&(s.version===null||Te.integer(s.version))}e.is=n})(vc||(vc={}));var Xh;(function(e){function r(a,s,c,p){return{uri:a,languageId:s,version:c,text:p}}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.string(s.uri)&&Te.string(s.languageId)&&Te.integer(s.version)&&Te.string(s.text)}e.is=n})(Xh||(Xh={}));var $o;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})($o||($o={}));var mu;(function(e){function r(n){var a=n;return Te.objectLiteral(n)&&$o.is(a.kind)&&Te.string(a.value)}e.is=r})(mu||(mu={}));var _n;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_n||(_n={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var Qh;(function(e){e.Deprecated=1})(Qh||(Qh={}));var Zh;(function(e){function r(a,s,c){return{newText:a,insert:s,replace:c}}e.create=r;function n(a){var s=a;return s&&Te.string(s.newText)&&sr.is(s.insert)&&sr.is(s.replace)}e.is=n})(Zh||(Zh={}));var qh;(function(e){e.asIs=1,e.adjustIndentation=2})(qh||(qh={}));var _h;(function(e){function r(n){var a=n;return a&&(Te.string(a.detail)||a.detail===void 0)&&(Te.string(a.description)||a.description===void 0)}e.is=r})(_h||(_h={}));var _d;(function(e){function r(n){return{label:n}}e.create=r})(_d||(_d={}));var ev;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(ev||(ev={}));var gc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var s=a;return Te.string(s)||Te.objectLiteral(s)&&Te.string(s.language)&&Te.string(s.value)}e.is=n})(gc||(gc={}));var tv;(function(e){function r(n){var a=n;return!!a&&Te.objectLiteral(a)&&(mu.is(a.contents)||gc.is(a.contents)||Te.typedArray(a.contents,gc.is))&&(n.range===void 0||sr.is(n.range))}e.is=r})(tv||(tv={}));var rv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(rv||(rv={}));var nv;(function(e){function r(n,a){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var p={label:n};return Te.defined(a)&&(p.documentation=a),Te.defined(s)?p.parameters=s:p.parameters=[],p}e.create=r})(nv||(nv={}));var iv;(function(e){e.Text=1,e.Read=2,e.Write=3})(iv||(iv={}));var av;(function(e){function r(n,a){var s={range:n};return Te.number(a)&&(s.kind=a),s}e.create=r})(av||(av={}));var ta;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ta||(ta={}));var ov;(function(e){e.Deprecated=1})(ov||(ov={}));var sv;(function(e){function r(n,a,s,c,p){var m={name:n,kind:a,location:{uri:c,range:s}};return p&&(m.containerName=p),m}e.create=r})(sv||(sv={}));var lv;(function(e){function r(n,a,s,c){return c!==void 0?{name:n,kind:a,location:{uri:s,range:c}}:{name:n,kind:a,location:{uri:s}}}e.create=r})(lv||(lv={}));var uv;(function(e){function r(a,s,c,p,m,v){var y={name:a,detail:s,kind:c,range:p,selectionRange:m};return v!==void 0&&(y.children=v),y}e.create=r;function n(a){var s=a;return s&&Te.string(s.name)&&Te.number(s.kind)&&sr.is(s.range)&&sr.is(s.selectionRange)&&(s.detail===void 0||Te.string(s.detail))&&(s.deprecated===void 0||Te.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=n})(uv||(uv={}));var fv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(fv||(fv={}));var mc;(function(e){e.Invoked=1,e.Automatic=2})(mc||(mc={}));var cv;(function(e){function r(a,s,c){var p={diagnostics:a};return s!=null&&(p.only=s),c!=null&&(p.triggerKind=c),p}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.typedArray(s.diagnostics,Ea.is)&&(s.only===void 0||Te.typedArray(s.only,Te.string))&&(s.triggerKind===void 0||s.triggerKind===mc.Invoked||s.triggerKind===mc.Automatic)}e.is=n})(cv||(cv={}));var dv;(function(e){function r(a,s,c){var p={title:a},m=!0;return typeof s=="string"?(m=!1,p.kind=s):Zs.is(s)?p.command=s:p.edit=s,m&&c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return s&&Te.string(s.title)&&(s.diagnostics===void 0||Te.typedArray(s.diagnostics,Ea.is))&&(s.kind===void 0||Te.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Zs.is(s.command))&&(s.isPreferred===void 0||Te.boolean(s.isPreferred))&&(s.edit===void 0||qd.is(s.edit))}e.is=n})(dv||(dv={}));var pv;(function(e){function r(a,s){var c={range:a};return Te.defined(s)&&(c.data=s),c}e.create=r;function n(a){var s=a;return Te.defined(s)&&sr.is(s.range)&&(Te.undefined(s.command)||Zs.is(s.command))}e.is=n})(pv||(pv={}));var hv;(function(e){function r(a,s){return{tabSize:a,insertSpaces:s}}e.create=r;function n(a){var s=a;return Te.defined(s)&&Te.uinteger(s.tabSize)&&Te.boolean(s.insertSpaces)}e.is=n})(hv||(hv={}));var vv;(function(e){function r(a,s,c){return{range:a,target:s,data:c}}e.create=r;function n(a){var s=a;return Te.defined(s)&&sr.is(s.range)&&(Te.undefined(s.target)||Te.string(s.target))}e.is=n})(vv||(vv={}));var yc;(function(e){function r(a,s){return{range:a,parent:s}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&sr.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=n})(yc||(yc={}));var gv;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(gv||(gv={}));var mv;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(mv||(mv={}));var yv;(function(e){function r(n){var a=n;return Te.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(yv||(yv={}));var bv;(function(e){function r(a,s){return{range:a,text:s}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&Te.string(s.text)}e.is=n})(bv||(bv={}));var xv;(function(e){function r(a,s,c){return{range:a,variableName:s,caseSensitiveLookup:c}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&Te.boolean(s.caseSensitiveLookup)&&(Te.string(s.variableName)||s.variableName===void 0)}e.is=n})(xv||(xv={}));var Sv;(function(e){function r(a,s){return{range:a,expression:s}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&(Te.string(s.expression)||s.expression===void 0)}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(a,s){return{frameId:a,stoppedLocation:s}}e.create=r;function n(a){var s=a;return Te.defined(s)&&sr.is(a.stoppedLocation)}e.is=n})(wv||(wv={}));var ep;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(ep||(ep={}));var tp;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&(s.tooltip===void 0||Te.string(s.tooltip)||mu.is(s.tooltip))&&(s.location===void 0||Qs.is(s.location))&&(s.command===void 0||Zs.is(s.command))}e.is=n})(tp||(tp={}));var Av;(function(e){function r(a,s,c){var p={position:a,label:s};return c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return Te.objectLiteral(s)&&ci.is(s.position)&&(Te.string(s.label)||Te.typedArray(s.label,tp.is))&&(s.kind===void 0||ep.is(s.kind))&&s.textEdits===void 0||Te.typedArray(s.textEdits,di.is)&&(s.tooltip===void 0||Te.string(s.tooltip)||mu.is(s.tooltip))&&(s.paddingLeft===void 0||Te.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Te.boolean(s.paddingRight))}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(n){var a=n;return Te.objectLiteral(a)&&Xd.is(a.uri)&&Te.string(a.name)}e.is=r})(Cv||(Cv={}));var T1=null,Ev;(function(e){function r(c,p,m,v){return new d0(c,p,m,v)}e.create=r;function n(c){var p=c;return!!(Te.defined(p)&&Te.string(p.uri)&&(Te.undefined(p.languageId)||Te.string(p.languageId))&&Te.uinteger(p.lineCount)&&Te.func(p.getText)&&Te.func(p.positionAt)&&Te.func(p.offsetAt))}e.is=n;function a(c,p){for(var m=c.getText(),v=s(p,function($,K){var q=$.range.start.line-K.range.start.line;return q===0?$.range.start.character-K.range.start.character:q}),y=m.length,b=v.length-1;b>=0;b--){var I=v[b],D=c.offsetAt(I.range.start),B=c.offsetAt(I.range.end);if(B<=y)m=m.substring(0,D)+I.newText+m.substring(B,m.length);else throw new Error("Overlapping edit");y=D}return m}e.applyEdits=a;function s(c,p){if(c.length<=1)return c;var m=c.length/2|0,v=c.slice(0,m),y=c.slice(m);s(v,p),s(y,p);for(var b=0,I=0,D=0;b<v.length&&I<y.length;){var B=p(v[b],y[I]);B<=0?c[D++]=v[b++]:c[D++]=y[I++]}for(;b<v.length;)c[D++]=v[b++];for(;I<y.length;)c[D++]=y[I++];return c}})(Ev||(Ev={}));var d0=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,s=0;s<n.length;s++){a&&(r.push(s),a=!1);var c=n.charAt(s);a=c==="\r"||c===`
259
259
  `,c==="\r"&&s+1<n.length&&n.charAt(s+1)===`
260
- `&&s++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return ci.create(0,r);for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return ci.create(p,r-n[p])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Pe;(function(e){var r=Object.prototype.toString;function n(N){return typeof N!="undefined"}e.defined=n;function a(N){return typeof N=="undefined"}e.undefined=a;function s(N){return N===!0||N===!1}e.boolean=s;function c(N){return r.call(N)==="[object String]"}e.string=c;function p(N){return r.call(N)==="[object Number]"}e.number=p;function m(N,G,ee){return r.call(N)==="[object Number]"&&G<=N&&N<=ee}e.numberRange=m;function v(N){return r.call(N)==="[object Number]"&&-2147483648<=N&&N<=2147483647}e.integer=v;function y(N){return r.call(N)==="[object Number]"&&0<=N&&N<=2147483647}e.uinteger=y;function b(N){return r.call(N)==="[object Function]"}e.func=b;function I(N){return N!==null&&typeof N=="object"}e.objectLiteral=I;function R(N,G){return Array.isArray(N)&&N.every(G)}e.typedArray=R})(Pe||(Pe={}));var d0=function(e,r,n){if(n||arguments.length===2)for(var a=0,s=r.length,c;a<s;a++)(c||!(a in r))&&(c||(c=Array.prototype.slice.call(r,0,a)),c[a]=r[a]);return e.concat(c||Array.prototype.slice.call(r))},Ov=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){for(var a=0,s=r;a<s.length;a++){var c=s[a];if(e.isIncremental(c)){var p=Pv(c.range),m=this.offsetAt(p.start),v=this.offsetAt(p.end);this._content=this._content.substring(0,m)+c.text+this._content.substring(v,this._content.length);var y=Math.max(p.start.line,0),b=Math.max(p.end.line,0),I=this._lineOffsets,R=Tv(c.text,!1,m);if(b-y===R.length)for(var N=0,G=R.length;N<G;N++)I[N+y+1]=R[N];else R.length<1e4?I.splice.apply(I,d0([y+1,b-y],R,!1)):this._lineOffsets=I=I.slice(0,y+1).concat(R,I.slice(b+1));var ee=c.text.length-(v-m);if(ee!==0)for(var N=y+1+R.length,G=I.length;N<G;N++)I[N]=I[N]+ee}else if(e.isFull(c))this._content=c.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Tv(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return{line:0,character:r};for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return{line:p,character:r-n[p]}},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e.isIncremental=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},e.isFull=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),bc;(function(e){function r(s,c,p,m){return new Ov(s,c,p,m)}e.create=r;function n(s,c,p){if(s instanceof Ov)return s.update(c,p),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(s,c){for(var p=s.getText(),m=rp(c.map(p0),function(G,ee){var q=G.range.start.line-ee.range.start.line;return q===0?G.range.start.character-ee.range.start.character:q}),v=0,y=[],b=0,I=m;b<I.length;b++){var R=I[b],N=s.offsetAt(R.range.start);if(N<v)throw new Error("Overlapping edit");N>v&&y.push(p.substring(v,N)),R.newText.length&&y.push(R.newText),v=s.offsetAt(R.range.end)}return y.push(p.substr(v)),y.join("")}e.applyEdits=a})(bc||(bc={}));function rp(e,r){if(e.length<=1)return e;var n=e.length/2|0,a=e.slice(0,n),s=e.slice(n);rp(a,r),rp(s,r);for(var c=0,p=0,m=0;c<a.length&&p<s.length;){var v=r(a[c],s[p]);v<=0?e[m++]=a[c++]:e[m++]=s[p++]}for(;c<a.length;)e[m++]=a[c++];for(;p<s.length;)e[m++]=s[p++];return e}function Tv(e,r,n){n===void 0&&(n=0);for(var a=r?[n]:[],s=0;s<e.length;s++){var c=e.charCodeAt(s);(c===13||c===10)&&(c===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,a.push(n+s+1))}return a}function Pv(e){var r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function p0(e){var r=Pv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var or;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(or||(or={}));var Iv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[$o.Markdown,$o.PlainText],commitCharactersSupport:!0}}}}})(Iv||(Iv={}));var Ko=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),h0={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Yo=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),v0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="null",s.value=null,s}return r}(Yo),Fv=function(e){Ko(r,e);function r(n,a,s){var c=e.call(this,n,s)||this;return c.type="boolean",c.value=a,c}return r}(Yo),g0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Yo),m0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Yo),kv=function(e){Ko(r,e);function r(n,a,s){var c=e.call(this,n,a,s)||this;return c.type="string",c.value="",c}return r}(Yo),y0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Yo),b0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Yo);function jn(e){return ea(e)?e?{}:{not:{}}:e}var Rv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Rv||(Rv={}));var x0=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||Mv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),np=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Vn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var s=a[n];this.merge(s)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var s=a[n];s.code===or.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(c){return JSON.stringify(c)}).join(", ")+".")}}},e.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},e}();function S0(e,r){return r===void 0&&(r=[]),new Lv(e,r,[])}function oo(e){return l0(e)}function ip(e){return s0(e)}function Mv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Lv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return o0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var s=r(a),c=a.children;if(Array.isArray(c))for(var p=0;p<c.length&&s;p++)s=n(c[p]);return s};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Vn;return vn(this.root,n,a,np.instance),a.problems.map(function(s){var c=sr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return Ea.create(c,s.message,s.severity,s.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var s=new x0(n,a);return this.root&&r&&vn(this.root,r,new Vn,s),s.schemas},e}();function vn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":v(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":p(e,r,n,a);break;case"number":c(e,r,n,a);break;case"property":return vn(e.valueNode,r,n,a)}s(),a.add({node:e,schema:r});function s(){function y(Ue){return e.type===Ue||Ue==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(y)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(y(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var b=0,I=r.allOf;b<I.length;b++){var R=I[b];vn(e,jn(R),n,a)}var N=jn(r.not);if(N){var G=new Vn,ee=a.newSub();vn(e,N,G,ee),G.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var q=0,oe=ee.schemas;q<oe.length;q++){var ae=oe[q];ae.inverted=!ae.inverted,a.add(ae)}}var pe=function(Ue,ze){for(var Ct=[],qe=null,nr=0,ur=Ue;nr<ur.length;nr++){var jt=ur[nr],fr=jn(jt),$t=new Vn,cr=a.newSub();if(vn(e,fr,$t,cr),$t.hasProblems()||Ct.push(fr),!qe)qe={schema:fr,validationResult:$t,matchingSchemas:cr};else if(!ze&&!$t.hasProblems()&&!qe.validationResult.hasProblems())qe.matchingSchemas.merge(cr),qe.validationResult.propertiesMatches+=$t.propertiesMatches,qe.validationResult.propertiesValueMatches+=$t.propertiesValueMatches;else{var wr=$t.compare(qe.validationResult);wr>0?qe={schema:fr,validationResult:$t,matchingSchemas:cr}:wr===0&&(qe.matchingSchemas.merge(cr),qe.validationResult.mergeEnumValues($t))}}return Ct.length>1&&ze&&n.problems.push({location:{offset:e.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),qe!==null&&(n.merge(qe.validationResult),n.propertiesMatches+=qe.validationResult.propertiesMatches,n.propertiesValueMatches+=qe.validationResult.propertiesValueMatches,a.merge(qe.matchingSchemas)),Ct.length};Array.isArray(r.anyOf)&&pe(r.anyOf,!1),Array.isArray(r.oneOf)&&pe(r.oneOf,!0);var ve=function(Ue){var ze=new Vn,Ct=a.newSub();vn(e,jn(Ue),ze,Ct),n.merge(ze),n.propertiesMatches+=ze.propertiesMatches,n.propertiesValueMatches+=ze.propertiesValueMatches,a.merge(Ct)},me=function(Ue,ze,Ct){var qe=jn(Ue),nr=new Vn,ur=a.newSub();vn(e,qe,nr,ur),a.merge(ur),nr.hasProblems()?Ct&&ve(Ct):ze&&ve(ze)},Te=jn(r.if);if(Te&&me(Te,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var Ae=oo(e),Se=!1,Ce=0,Fe=r.enum;Ce<Fe.length;Ce++){var Re=Fe[Ce];if(du(Ae,Re)){Se=!0;break}}n.enumValues=r.enum,n.enumValueMatch=Se,Se||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,code:or.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ue){return JSON.stringify(Ue)}).join(", ")+"."})}if(Ca(r.const)){var Ae=oo(e);du(Ae,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,code:or.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function c(y,b,I,R){var N=y.value;qn(b.multipleOf)&&N%b.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is not divisible by "+b.multipleOf+"."});function G(ve,me){if(qn(me))return me;if(ea(me)&&me)return ve}function ee(ve,me){if(!ea(me)||!me)return ve}var q=G(b.minimum,b.exclusiveMinimum);qn(q)&&N<=q&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+q+"."});var oe=G(b.maximum,b.exclusiveMaximum);qn(oe)&&N>=oe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+oe+"."});var ae=ee(b.minimum,b.exclusiveMinimum);qn(ae)&&N<ae&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is below the minimum of "+ae+"."});var pe=ee(b.maximum,b.exclusiveMaximum);qn(pe)&&N>pe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is above the maximum of "+pe+"."})}function p(y,b,I,R){if(qn(b.minLength)&&y.value.length<b.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+b.minLength+"."}),qn(b.maxLength)&&y.value.length>b.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+b.maxLength+"."}),f0(b.pattern)){var N=new RegExp(b.pattern);N.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||'String does not match the pattern of "'+b.pattern+'".'})}if(b.format)switch(b.format){case"uri":case"uri-reference":{var G=void 0;if(!y.value)G="URI expected.";else{var ee=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);ee?!ee[2]&&b.format==="uri"&&(G="URI with a scheme is expected."):G="URI is expected."}G&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||"String is not a URI: "+G})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var q=h0[b.format];(!y.value||!q.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||q.errorMessage});break;default:}}function m(y,b,I,R){if(Array.isArray(b.items)){for(var N=b.items,G=0;G<N.length;G++){var ee=N[G],q=jn(ee),oe=new Vn,ae=y.items[G];ae?(vn(ae,q,oe,R),I.mergePropertyMatch(oe)):y.items.length>=N.length&&I.propertiesValueMatches++}if(y.items.length>N.length)if(typeof b.additionalItems=="object")for(var pe=N.length;pe<y.items.length;pe++){var oe=new Vn;vn(y.items[pe],b.additionalItems,oe,R),I.mergePropertyMatch(oe)}else b.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+N.length+" or fewer."})}else{var ve=jn(b.items);if(ve)for(var me=0,Te=y.items;me<Te.length;me++){var ae=Te[me],oe=new Vn;vn(ae,ve,oe,R),I.mergePropertyMatch(oe)}}var Ae=jn(b.contains);if(Ae){var Se=y.items.some(function(Re){var Ue=new Vn;return vn(Re,Ae,Ue,np.instance),!Ue.hasProblems()});Se||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.errorMessage||"Array does not contain required item."})}if(qn(b.minItems)&&y.items.length<b.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too few items. Expected "+b.minItems+" or more."}),qn(b.maxItems)&&y.items.length>b.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too many items. Expected "+b.maxItems+" or fewer."}),b.uniqueItems===!0){var Ce=oo(y),Fe=Ce.some(function(Re,Ue){return Ue!==Ce.lastIndexOf(Re)});Fe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function v(y,b,I,R){for(var N=Object.create(null),G=[],ee=0,q=y.properties;ee<q.length;ee++){var oe=q[ee],ae=oe.keyNode.value;N[ae]=oe.valueNode,G.push(ae)}if(Array.isArray(b.required))for(var pe=0,ve=b.required;pe<ve.length;pe++){var me=ve[pe];if(!N[me]){var Te=y.parent&&y.parent.type==="property"&&y.parent.keyNode,Ae=Te?{offset:Te.offset,length:Te.length}:{offset:y.offset,length:1};I.problems.push({location:Ae,severity:Ht.Warning,message:'Missing property "'+me+'".'})}}var Se=function(Fn){for(var Xo=G.indexOf(Fn);Xo>=0;)G.splice(Xo,1),Xo=G.indexOf(Fn)};if(b.properties)for(var Ce=0,Fe=Object.keys(b.properties);Ce<Fe.length;Ce++){var me=Fe[Ce];Se(me);var Re=b.properties[me],Ue=N[me];if(Ue)if(ea(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}else{var ze=new Vn;vn(Ue,Re,ze,R),I.mergePropertyMatch(ze)}}if(b.patternProperties)for(var Ct=0,qe=Object.keys(b.patternProperties);Ct<qe.length;Ct++)for(var nr=qe[Ct],ur=new RegExp(nr),jt=0,fr=G.slice(0);jt<fr.length;jt++){var me=fr[jt];if(ur.test(me)){Se(me);var Ue=N[me];if(Ue){var Re=b.patternProperties[nr];if(ea(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}else{var ze=new Vn;vn(Ue,Re,ze,R),I.mergePropertyMatch(ze)}}}}if(typeof b.additionalProperties=="object")for(var $t=0,cr=G;$t<cr.length;$t++){var me=cr[$t],Ue=N[me];if(Ue){var ze=new Vn;vn(Ue,b.additionalProperties,ze,R),I.mergePropertyMatch(ze)}}else if(b.additionalProperties===!1&&G.length>0)for(var wr=0,Ut=G;wr<Ut.length;wr++){var me=Ut[wr],Ue=N[me];if(Ue){var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}}if(qn(b.maxProperties)&&y.properties.length>b.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object has more properties than limit of "+b.maxProperties+"."}),qn(b.minProperties)&&y.properties.length<b.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+b.minProperties}),b.dependencies)for(var ft=0,Ot=Object.keys(b.dependencies);ft<Ot.length;ft++){var ae=Ot[ft],Zt=N[ae];if(Zt){var Wt=b.dependencies[ae];if(Array.isArray(Wt))for(var Kt=0,qr=Wt;Kt<qr.length;Kt++){var Un=qr[Kt];N[Un]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object is missing property "+Un+" required by property {$key}."})}else{var Re=jn(Wt);if(Re){var ze=new Vn;vn(y,Re,ze,R),I.mergePropertyMatch(ze)}}}}var pi=jn(b.propertyNames);if(pi)for(var Vr=0,sn=y.properties;Vr<sn.length;Vr++){var Jo=sn[Vr],ae=Jo.keyNode;ae&&vn(ae,pi,I,np.instance)}}}function w0(e,r){var n=[],a=-1,s=e.getText(),c=Xs(s,!1),p=r&&r.collectComments?[]:void 0;function m(){for(;;){var Te=c.scan();switch(I(),Te){case 12:case 13:Array.isArray(p)&&p.push(sr.create(e.positionAt(c.getTokenOffset()),e.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Te}}}function v(Te){return c.getToken()===Te?(m(),!0):!1}function y(Te,Ae,Se,Ce,Fe){if(Fe===void 0&&(Fe=Ht.Error),n.length===0||Se!==a){var Re=sr.create(e.positionAt(Se),e.positionAt(Ce));n.push(Ea.create(Re,Te,Fe,Ae,e.languageId)),a=Se}}function b(Te,Ae,Se,Ce,Fe){Se===void 0&&(Se=null),Ce===void 0&&(Ce=[]),Fe===void 0&&(Fe=[]);var Re=c.getTokenOffset(),Ue=c.getTokenOffset()+c.getTokenLength();if(Re===Ue&&Re>0){for(Re--;Re>0&&/\s/.test(s.charAt(Re));)Re--;Ue=Re+1}if(y(Te,Ae,Re,Ue),Se&&R(Se,!1),Ce.length+Fe.length>0)for(var ze=c.getToken();ze!==17;){if(Ce.indexOf(ze)!==-1){m();break}else if(Fe.indexOf(ze)!==-1)break;ze=m()}return Se}function I(){switch(c.getTokenError()){case 4:return b("Invalid unicode sequence in string.",or.InvalidUnicode),!0;case 5:return b("Invalid escape character in string.",or.InvalidEscapeCharacter),!0;case 3:return b("Unexpected end of number.",or.UnexpectedEndOfNumber),!0;case 1:return b("Unexpected end of comment.",or.UnexpectedEndOfComment),!0;case 2:return b("Unexpected end of string.",or.UnexpectedEndOfString),!0;case 6:return b("Invalid characters in string. Control characters must be escaped.",or.InvalidCharacter),!0}return!1}function R(Te,Ae){return Te.length=c.getTokenOffset()+c.getTokenLength()-Te.offset,Ae&&m(),Te}function N(Te){if(c.getToken()!==3)return null;var Ae=new g0(Te,c.getTokenOffset());m();for(var Se=0,Ce=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){Ce||b("Value expected",or.ValueExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===4){Ce&&y("Trailing comma",or.TrailingComma,Fe,Fe+1);continue}}else Ce&&b("Expected comma",or.CommaExpected);var Re=pe(Ae,Se++);Re?Ae.items.push(Re):b("Value expected",or.ValueExpected,null,[],[4,5]),Ce=!0}return c.getToken()!==4?b("Expected comma or closing bracket",or.CommaOrCloseBacketExpected,Ae):R(Ae,!0)}function G(Te,Ae){var Se=new y0(Te,c.getTokenOffset()),Ce=q(Se);if(!Ce)if(c.getToken()===16){b("Property keys must be doublequoted",or.Undefined);var Fe=new kv(Se,c.getTokenOffset(),c.getTokenLength());Fe.value=c.getTokenValue(),Ce=Fe,m()}else return null;Se.keyNode=Ce;var Re=Ae[Ce.value];if(Re?(y("Duplicate object key",or.DuplicateKey,Se.keyNode.offset,Se.keyNode.offset+Se.keyNode.length,Ht.Warning),typeof Re=="object"&&y("DuplicateKeyWarning",or.DuplicateKey,Re.keyNode.offset,Re.keyNode.offset+Re.keyNode.length,Ht.Warning),Ae[Ce.value]=!0):Ae[Ce.value]=Se,c.getToken()===6)Se.colonOffset=c.getTokenOffset(),m();else if(b("Colon expected",or.ColonExpected),c.getToken()===10&&e.positionAt(Ce.offset+Ce.length).line<e.positionAt(c.getTokenOffset()).line)return Se.length=Ce.length,Se;var Ue=pe(Se,Ce.value);return Ue?(Se.valueNode=Ue,Se.length=Ue.offset+Ue.length-Se.offset,Se):b("Value expected",or.ValueExpected,Se,[],[2,5])}function ee(Te){if(c.getToken()!==1)return null;var Ae=new b0(Te,c.getTokenOffset()),Se=Object.create(null);m();for(var Ce=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){Ce||b("Property expected",or.PropertyExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===2){Ce&&y("Trailing comma",or.TrailingComma,Fe,Fe+1);continue}}else Ce&&b("Expected comma",or.CommaExpected);var Re=G(Ae,Se);Re?Ae.properties.push(Re):b("Property expected",or.PropertyExpected,null,[],[2,5]),Ce=!0}return c.getToken()!==2?b("Expected comma or closing brace",or.CommaOrCloseBraceExpected,Ae):R(Ae,!0)}function q(Te){if(c.getToken()!==10)return null;var Ae=new kv(Te,c.getTokenOffset());return Ae.value=c.getTokenValue(),R(Ae,!0)}function oe(Te){if(c.getToken()!==11)return null;var Ae=new m0(Te,c.getTokenOffset());if(c.getTokenError()===0){var Se=c.getTokenValue();try{var Ce=JSON.parse(Se);if(!qn(Ce))return b("Invalid number format.",or.Undefined,Ae);Ae.value=Ce}catch(Fe){return b("Invalid number format.",or.Undefined,Ae)}Ae.isInteger=Se.indexOf(".")===-1}return R(Ae,!0)}function ae(Te){var Ae;switch(c.getToken()){case 7:return R(new v0(Te,c.getTokenOffset()),!0);case 8:return R(new Fv(Te,!0,c.getTokenOffset()),!0);case 9:return R(new Fv(Te,!1,c.getTokenOffset()),!0);default:return null}}function pe(Te,Ae){return N(Te)||ee(Te)||q(Te)||oe(Te)||ae(Te)}var ve=null,me=m();return me!==17&&(ve=pe(null,null),ve?c.getToken()!==17&&b("End of file expected.",or.Undefined):b("Expected a JSON object, array or literal.",or.Undefined)),new Lv(ve,n,p)}function ap(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var s=`[
260
+ `&&s++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return ci.create(0,r);for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return ci.create(p,r-n[p])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Te;(function(e){var r=Object.prototype.toString;function n(B){return typeof B!="undefined"}e.defined=n;function a(B){return typeof B=="undefined"}e.undefined=a;function s(B){return B===!0||B===!1}e.boolean=s;function c(B){return r.call(B)==="[object String]"}e.string=c;function p(B){return r.call(B)==="[object Number]"}e.number=p;function m(B,$,K){return r.call(B)==="[object Number]"&&$<=B&&B<=K}e.numberRange=m;function v(B){return r.call(B)==="[object Number]"&&-2147483648<=B&&B<=2147483647}e.integer=v;function y(B){return r.call(B)==="[object Number]"&&0<=B&&B<=2147483647}e.uinteger=y;function b(B){return r.call(B)==="[object Function]"}e.func=b;function I(B){return B!==null&&typeof B=="object"}e.objectLiteral=I;function D(B,$){return Array.isArray(B)&&B.every($)}e.typedArray=D})(Te||(Te={}));var p0=function(e,r,n){if(n||arguments.length===2)for(var a=0,s=r.length,c;a<s;a++)(c||!(a in r))&&(c||(c=Array.prototype.slice.call(r,0,a)),c[a]=r[a]);return e.concat(c||Array.prototype.slice.call(r))},Ov=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){for(var a=0,s=r;a<s.length;a++){var c=s[a];if(e.isIncremental(c)){var p=Pv(c.range),m=this.offsetAt(p.start),v=this.offsetAt(p.end);this._content=this._content.substring(0,m)+c.text+this._content.substring(v,this._content.length);var y=Math.max(p.start.line,0),b=Math.max(p.end.line,0),I=this._lineOffsets,D=Tv(c.text,!1,m);if(b-y===D.length)for(var B=0,$=D.length;B<$;B++)I[B+y+1]=D[B];else D.length<1e4?I.splice.apply(I,p0([y+1,b-y],D,!1)):this._lineOffsets=I=I.slice(0,y+1).concat(D,I.slice(b+1));var K=c.text.length-(v-m);if(K!==0)for(var B=y+1+D.length,$=I.length;B<$;B++)I[B]=I[B]+K}else if(e.isFull(c))this._content=c.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Tv(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return{line:0,character:r};for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return{line:p,character:r-n[p]}},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e.isIncremental=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},e.isFull=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),bc;(function(e){function r(s,c,p,m){return new Ov(s,c,p,m)}e.create=r;function n(s,c,p){if(s instanceof Ov)return s.update(c,p),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(s,c){for(var p=s.getText(),m=rp(c.map(h0),function($,K){var q=$.range.start.line-K.range.start.line;return q===0?$.range.start.character-K.range.start.character:q}),v=0,y=[],b=0,I=m;b<I.length;b++){var D=I[b],B=s.offsetAt(D.range.start);if(B<v)throw new Error("Overlapping edit");B>v&&y.push(p.substring(v,B)),D.newText.length&&y.push(D.newText),v=s.offsetAt(D.range.end)}return y.push(p.substr(v)),y.join("")}e.applyEdits=a})(bc||(bc={}));function rp(e,r){if(e.length<=1)return e;var n=e.length/2|0,a=e.slice(0,n),s=e.slice(n);rp(a,r),rp(s,r);for(var c=0,p=0,m=0;c<a.length&&p<s.length;){var v=r(a[c],s[p]);v<=0?e[m++]=a[c++]:e[m++]=s[p++]}for(;c<a.length;)e[m++]=a[c++];for(;p<s.length;)e[m++]=s[p++];return e}function Tv(e,r,n){n===void 0&&(n=0);for(var a=r?[n]:[],s=0;s<e.length;s++){var c=e.charCodeAt(s);(c===13||c===10)&&(c===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,a.push(n+s+1))}return a}function Pv(e){var r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function h0(e){var r=Pv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var or;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(or||(or={}));var Iv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[$o.Markdown,$o.PlainText],commitCharactersSupport:!0}}}}})(Iv||(Iv={}));var Ko=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),v0={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Yo=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),g0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="null",s.value=null,s}return r}(Yo),Fv=function(e){Ko(r,e);function r(n,a,s){var c=e.call(this,n,s)||this;return c.type="boolean",c.value=a,c}return r}(Yo),m0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Yo),y0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Yo),kv=function(e){Ko(r,e);function r(n,a,s){var c=e.call(this,n,a,s)||this;return c.type="string",c.value="",c}return r}(Yo),b0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Yo),x0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Yo);function jn(e){return ea(e)?e?{}:{not:{}}:e}var Rv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Rv||(Rv={}));var S0=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||Mv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),np=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Vn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var s=a[n];this.merge(s)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var s=a[n];s.code===or.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(c){return JSON.stringify(c)}).join(", ")+".")}}},e.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},e}();function w0(e,r){return r===void 0&&(r=[]),new Lv(e,r,[])}function oo(e){return u0(e)}function ip(e){return l0(e)}function Mv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Lv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return s0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var s=r(a),c=a.children;if(Array.isArray(c))for(var p=0;p<c.length&&s;p++)s=n(c[p]);return s};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Vn;return vn(this.root,n,a,np.instance),a.problems.map(function(s){var c=sr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return Ea.create(c,s.message,s.severity,s.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var s=new S0(n,a);return this.root&&r&&vn(this.root,r,new Vn,s),s.schemas},e}();function vn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":v(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":p(e,r,n,a);break;case"number":c(e,r,n,a);break;case"property":return vn(e.valueNode,r,n,a)}s(),a.add({node:e,schema:r});function s(){function y(Ue){return e.type===Ue||Ue==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(y)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(y(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var b=0,I=r.allOf;b<I.length;b++){var D=I[b];vn(e,jn(D),n,a)}var B=jn(r.not);if(B){var $=new Vn,K=a.newSub();vn(e,B,$,K),$.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var q=0,oe=K.schemas;q<oe.length;q++){var ae=oe[q];ae.inverted=!ae.inverted,a.add(ae)}}var pe=function(Ue,ze){for(var Ct=[],qe=null,nr=0,ur=Ue;nr<ur.length;nr++){var jt=ur[nr],fr=jn(jt),$t=new Vn,cr=a.newSub();if(vn(e,fr,$t,cr),$t.hasProblems()||Ct.push(fr),!qe)qe={schema:fr,validationResult:$t,matchingSchemas:cr};else if(!ze&&!$t.hasProblems()&&!qe.validationResult.hasProblems())qe.matchingSchemas.merge(cr),qe.validationResult.propertiesMatches+=$t.propertiesMatches,qe.validationResult.propertiesValueMatches+=$t.propertiesValueMatches;else{var wr=$t.compare(qe.validationResult);wr>0?qe={schema:fr,validationResult:$t,matchingSchemas:cr}:wr===0&&(qe.matchingSchemas.merge(cr),qe.validationResult.mergeEnumValues($t))}}return Ct.length>1&&ze&&n.problems.push({location:{offset:e.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),qe!==null&&(n.merge(qe.validationResult),n.propertiesMatches+=qe.validationResult.propertiesMatches,n.propertiesValueMatches+=qe.validationResult.propertiesValueMatches,a.merge(qe.matchingSchemas)),Ct.length};Array.isArray(r.anyOf)&&pe(r.anyOf,!1),Array.isArray(r.oneOf)&&pe(r.oneOf,!0);var Ce=function(Ue){var ze=new Vn,Ct=a.newSub();vn(e,jn(Ue),ze,Ct),n.merge(ze),n.propertiesMatches+=ze.propertiesMatches,n.propertiesValueMatches+=ze.propertiesValueMatches,a.merge(Ct)},Se=function(Ue,ze,Ct){var qe=jn(Ue),nr=new Vn,ur=a.newSub();vn(e,qe,nr,ur),a.merge(ur),nr.hasProblems()?Ct&&Ce(Ct):ze&&Ce(ze)},Pe=jn(r.if);if(Pe&&Se(Pe,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var he=oo(e),me=!1,we=0,Fe=r.enum;we<Fe.length;we++){var Re=Fe[we];if(du(he,Re)){me=!0;break}}n.enumValues=r.enum,n.enumValueMatch=me,me||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,code:or.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ue){return JSON.stringify(Ue)}).join(", ")+"."})}if(Ca(r.const)){var he=oo(e);du(he,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,code:or.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function c(y,b,I,D){var B=y.value;qn(b.multipleOf)&&B%b.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is not divisible by "+b.multipleOf+"."});function $(Ce,Se){if(qn(Se))return Se;if(ea(Se)&&Se)return Ce}function K(Ce,Se){if(!ea(Se)||!Se)return Ce}var q=$(b.minimum,b.exclusiveMinimum);qn(q)&&B<=q&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+q+"."});var oe=$(b.maximum,b.exclusiveMaximum);qn(oe)&&B>=oe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+oe+"."});var ae=K(b.minimum,b.exclusiveMinimum);qn(ae)&&B<ae&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is below the minimum of "+ae+"."});var pe=K(b.maximum,b.exclusiveMaximum);qn(pe)&&B>pe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is above the maximum of "+pe+"."})}function p(y,b,I,D){if(qn(b.minLength)&&y.value.length<b.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+b.minLength+"."}),qn(b.maxLength)&&y.value.length>b.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+b.maxLength+"."}),c0(b.pattern)){var B=new RegExp(b.pattern);B.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||'String does not match the pattern of "'+b.pattern+'".'})}if(b.format)switch(b.format){case"uri":case"uri-reference":{var $=void 0;if(!y.value)$="URI expected.";else{var K=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);K?!K[2]&&b.format==="uri"&&($="URI with a scheme is expected."):$="URI is expected."}$&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||"String is not a URI: "+$})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var q=v0[b.format];(!y.value||!q.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||q.errorMessage});break;default:}}function m(y,b,I,D){if(Array.isArray(b.items)){for(var B=b.items,$=0;$<B.length;$++){var K=B[$],q=jn(K),oe=new Vn,ae=y.items[$];ae?(vn(ae,q,oe,D),I.mergePropertyMatch(oe)):y.items.length>=B.length&&I.propertiesValueMatches++}if(y.items.length>B.length)if(typeof b.additionalItems=="object")for(var pe=B.length;pe<y.items.length;pe++){var oe=new Vn;vn(y.items[pe],b.additionalItems,oe,D),I.mergePropertyMatch(oe)}else b.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+B.length+" or fewer."})}else{var Ce=jn(b.items);if(Ce)for(var Se=0,Pe=y.items;Se<Pe.length;Se++){var ae=Pe[Se],oe=new Vn;vn(ae,Ce,oe,D),I.mergePropertyMatch(oe)}}var he=jn(b.contains);if(he){var me=y.items.some(function(Re){var Ue=new Vn;return vn(Re,he,Ue,np.instance),!Ue.hasProblems()});me||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.errorMessage||"Array does not contain required item."})}if(qn(b.minItems)&&y.items.length<b.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too few items. Expected "+b.minItems+" or more."}),qn(b.maxItems)&&y.items.length>b.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too many items. Expected "+b.maxItems+" or fewer."}),b.uniqueItems===!0){var we=oo(y),Fe=we.some(function(Re,Ue){return Ue!==we.lastIndexOf(Re)});Fe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function v(y,b,I,D){for(var B=Object.create(null),$=[],K=0,q=y.properties;K<q.length;K++){var oe=q[K],ae=oe.keyNode.value;B[ae]=oe.valueNode,$.push(ae)}if(Array.isArray(b.required))for(var pe=0,Ce=b.required;pe<Ce.length;pe++){var Se=Ce[pe];if(!B[Se]){var Pe=y.parent&&y.parent.type==="property"&&y.parent.keyNode,he=Pe?{offset:Pe.offset,length:Pe.length}:{offset:y.offset,length:1};I.problems.push({location:he,severity:Ht.Warning,message:'Missing property "'+Se+'".'})}}var me=function(Fn){for(var Xo=$.indexOf(Fn);Xo>=0;)$.splice(Xo,1),Xo=$.indexOf(Fn)};if(b.properties)for(var we=0,Fe=Object.keys(b.properties);we<Fe.length;we++){var Se=Fe[we];me(Se);var Re=b.properties[Se],Ue=B[Se];if(Ue)if(ea(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+Se+" is not allowed."})}else{var ze=new Vn;vn(Ue,Re,ze,D),I.mergePropertyMatch(ze)}}if(b.patternProperties)for(var Ct=0,qe=Object.keys(b.patternProperties);Ct<qe.length;Ct++)for(var nr=qe[Ct],ur=new RegExp(nr),jt=0,fr=$.slice(0);jt<fr.length;jt++){var Se=fr[jt];if(ur.test(Se)){me(Se);var Ue=B[Se];if(Ue){var Re=b.patternProperties[nr];if(ea(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+Se+" is not allowed."})}else{var ze=new Vn;vn(Ue,Re,ze,D),I.mergePropertyMatch(ze)}}}}if(typeof b.additionalProperties=="object")for(var $t=0,cr=$;$t<cr.length;$t++){var Se=cr[$t],Ue=B[Se];if(Ue){var ze=new Vn;vn(Ue,b.additionalProperties,ze,D),I.mergePropertyMatch(ze)}}else if(b.additionalProperties===!1&&$.length>0)for(var wr=0,Ut=$;wr<Ut.length;wr++){var Se=Ut[wr],Ue=B[Se];if(Ue){var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+Se+" is not allowed."})}}if(qn(b.maxProperties)&&y.properties.length>b.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object has more properties than limit of "+b.maxProperties+"."}),qn(b.minProperties)&&y.properties.length<b.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+b.minProperties}),b.dependencies)for(var ft=0,Ot=Object.keys(b.dependencies);ft<Ot.length;ft++){var ae=Ot[ft],Zt=B[ae];if(Zt){var Wt=b.dependencies[ae];if(Array.isArray(Wt))for(var Kt=0,qr=Wt;Kt<qr.length;Kt++){var Un=qr[Kt];B[Un]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object is missing property "+Un+" required by property {$key}."})}else{var Re=jn(Wt);if(Re){var ze=new Vn;vn(y,Re,ze,D),I.mergePropertyMatch(ze)}}}}var pi=jn(b.propertyNames);if(pi)for(var Vr=0,sn=y.properties;Vr<sn.length;Vr++){var Jo=sn[Vr],ae=Jo.keyNode;ae&&vn(ae,pi,I,np.instance)}}}function A0(e,r){var n=[],a=-1,s=e.getText(),c=Xs(s,!1),p=r&&r.collectComments?[]:void 0;function m(){for(;;){var Pe=c.scan();switch(I(),Pe){case 12:case 13:Array.isArray(p)&&p.push(sr.create(e.positionAt(c.getTokenOffset()),e.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Pe}}}function v(Pe){return c.getToken()===Pe?(m(),!0):!1}function y(Pe,he,me,we,Fe){if(Fe===void 0&&(Fe=Ht.Error),n.length===0||me!==a){var Re=sr.create(e.positionAt(me),e.positionAt(we));n.push(Ea.create(Re,Pe,Fe,he,e.languageId)),a=me}}function b(Pe,he,me,we,Fe){me===void 0&&(me=null),we===void 0&&(we=[]),Fe===void 0&&(Fe=[]);var Re=c.getTokenOffset(),Ue=c.getTokenOffset()+c.getTokenLength();if(Re===Ue&&Re>0){for(Re--;Re>0&&/\s/.test(s.charAt(Re));)Re--;Ue=Re+1}if(y(Pe,he,Re,Ue),me&&D(me,!1),we.length+Fe.length>0)for(var ze=c.getToken();ze!==17;){if(we.indexOf(ze)!==-1){m();break}else if(Fe.indexOf(ze)!==-1)break;ze=m()}return me}function I(){switch(c.getTokenError()){case 4:return b("Invalid unicode sequence in string.",or.InvalidUnicode),!0;case 5:return b("Invalid escape character in string.",or.InvalidEscapeCharacter),!0;case 3:return b("Unexpected end of number.",or.UnexpectedEndOfNumber),!0;case 1:return b("Unexpected end of comment.",or.UnexpectedEndOfComment),!0;case 2:return b("Unexpected end of string.",or.UnexpectedEndOfString),!0;case 6:return b("Invalid characters in string. Control characters must be escaped.",or.InvalidCharacter),!0}return!1}function D(Pe,he){return Pe.length=c.getTokenOffset()+c.getTokenLength()-Pe.offset,he&&m(),Pe}function B(Pe){if(c.getToken()!==3)return null;var he=new m0(Pe,c.getTokenOffset());m();for(var me=0,we=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){we||b("Value expected",or.ValueExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===4){we&&y("Trailing comma",or.TrailingComma,Fe,Fe+1);continue}}else we&&b("Expected comma",or.CommaExpected);var Re=pe(he,me++);Re?he.items.push(Re):b("Value expected",or.ValueExpected,null,[],[4,5]),we=!0}return c.getToken()!==4?b("Expected comma or closing bracket",or.CommaOrCloseBacketExpected,he):D(he,!0)}function $(Pe,he){var me=new b0(Pe,c.getTokenOffset()),we=q(me);if(!we)if(c.getToken()===16){b("Property keys must be doublequoted",or.Undefined);var Fe=new kv(me,c.getTokenOffset(),c.getTokenLength());Fe.value=c.getTokenValue(),we=Fe,m()}else return null;me.keyNode=we;var Re=he[we.value];if(Re?(y("Duplicate object key",or.DuplicateKey,me.keyNode.offset,me.keyNode.offset+me.keyNode.length,Ht.Warning),typeof Re=="object"&&y("DuplicateKeyWarning",or.DuplicateKey,Re.keyNode.offset,Re.keyNode.offset+Re.keyNode.length,Ht.Warning),he[we.value]=!0):he[we.value]=me,c.getToken()===6)me.colonOffset=c.getTokenOffset(),m();else if(b("Colon expected",or.ColonExpected),c.getToken()===10&&e.positionAt(we.offset+we.length).line<e.positionAt(c.getTokenOffset()).line)return me.length=we.length,me;var Ue=pe(me,we.value);return Ue?(me.valueNode=Ue,me.length=Ue.offset+Ue.length-me.offset,me):b("Value expected",or.ValueExpected,me,[],[2,5])}function K(Pe){if(c.getToken()!==1)return null;var he=new x0(Pe,c.getTokenOffset()),me=Object.create(null);m();for(var we=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){we||b("Property expected",or.PropertyExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===2){we&&y("Trailing comma",or.TrailingComma,Fe,Fe+1);continue}}else we&&b("Expected comma",or.CommaExpected);var Re=$(he,me);Re?he.properties.push(Re):b("Property expected",or.PropertyExpected,null,[],[2,5]),we=!0}return c.getToken()!==2?b("Expected comma or closing brace",or.CommaOrCloseBraceExpected,he):D(he,!0)}function q(Pe){if(c.getToken()!==10)return null;var he=new kv(Pe,c.getTokenOffset());return he.value=c.getTokenValue(),D(he,!0)}function oe(Pe){if(c.getToken()!==11)return null;var he=new y0(Pe,c.getTokenOffset());if(c.getTokenError()===0){var me=c.getTokenValue();try{var we=JSON.parse(me);if(!qn(we))return b("Invalid number format.",or.Undefined,he);he.value=we}catch(Fe){return b("Invalid number format.",or.Undefined,he)}he.isInteger=me.indexOf(".")===-1}return D(he,!0)}function ae(Pe){var he;switch(c.getToken()){case 7:return D(new g0(Pe,c.getTokenOffset()),!0);case 8:return D(new Fv(Pe,!0,c.getTokenOffset()),!0);case 9:return D(new Fv(Pe,!1,c.getTokenOffset()),!0);default:return null}}function pe(Pe,he){return B(Pe)||K(Pe)||q(Pe)||oe(Pe)||ae(Pe)}var Ce=null,Se=m();return Se!==17&&(Ce=pe(null,null),Ce?c.getToken()!==17&&b("End of file expected.",or.Undefined):b("Expected a JSON object, array or literal.",or.Undefined)),new Lv(Ce,n,p)}function ap(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var s=`[
261
261
  `,c=0;c<e.length;c++)s+=a+ap(e[c],a,n),c<e.length-1&&(s+=","),s+=`
262
262
  `;return s+=r+"]",s}else{var p=Object.keys(e);if(p.length===0)return"{}";for(var s=`{
263
263
  `,c=0;c<p.length;c++){var m=p[c];s+=a+JSON.stringify(m)+": "+ap(e[m],a,n),c<p.length-1&&(s+=","),s+=`
264
- `}return s+=r+"}",s}}return n(e)}function A0(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function op(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function C0(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function T1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var E0=[",","}","]"],O0=[":"],T0=function(){function e(r,n,a,s){n===void 0&&(n=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var s=this,c={items:[],isIncomplete:!1},p=r.getText(),m=r.offsetAt(n),v=a.getNodeFromOffset(m,!0);if(this.isInComment(r,v?v.offset:0,m))return Promise.resolve(c);if(v&&m===v.offset+v.length&&m>0){var y=p[m-1];(v.type==="object"&&y==="}"||v.type==="array"&&y==="]")&&(v=v.parent)}var b=this.getCurrentWord(r,m),I=null;if(v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null"))I=sr.create(r.positionAt(v.offset),r.positionAt(v.offset+v.length));else{var R=m-b.length;R>0&&p[R-1]==='"'&&R--,I=sr.create(r.positionAt(R),n)}var N=this.doesSupportsCommitCharacters(),G={},ee={add:function(q){var oe=G[q.label];oe?oe.documentation||(oe.documentation=q.documentation):(G[q.label]=q,I&&(q.textEdit=di.replace(I,q.insertText)),N&&(q.commitCharacters=q.kind===_n.Property?O0:E0),c.items.push(q))},setAsIncomplete:function(){c.isIncomplete=!0},error:function(q){console.error(q)},log:function(q){console.log(q)},getNumberOfProposals:function(){return c.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(q){var oe=[],ae=!0,pe="",ve=null;if(v&&v.type==="string"){var me=v.parent;me&&me.type==="property"&&me.keyNode===v&&(ae=!me.valueNode,ve=me,pe=p.substr(v.offset+1,v.length-2),me&&(v=me.parent))}if(v&&v.type==="object"){if(v.offset===m)return c;var Te=v.properties;Te.forEach(function(Fe){(!ve||ve!==Fe)&&(G[Fe.keyNode.value]=_d.create("__"))});var Ae="";ae&&(Ae=s.evaluateSeparatorAfter(r,r.offsetAt(I.end))),q?s.getPropertyCompletions(q,a,v,ae,Ae,ee):s.getSchemaLessPropertyCompletions(a,v,pe,ee);var Se=ip(v);s.contributions.forEach(function(Fe){var Re=Fe.collectPropertyCompletions(r.uri,Se,b,ae,Ae==="",ee);Re&&oe.push(Re)}),!q&&b.length>0&&p.charAt(m-b.length-1)!=='"'&&(ee.add({kind:_n.Property,label:s.getLabelForValue(b),insertText:s.getInsertTextForProperty(b,null,!1,Ae),insertTextFormat:Zr.Snippet,documentation:""}),ee.setAsIncomplete())}var Ce={};return q?s.getValueCompletions(q,a,v,m,r,ee,Ce):s.getSchemaLessValueCompletions(a,v,m,r,ee),s.contributions.length>0&&s.getContributedValueCompletions(a,v,m,r,ee,oe),s.promiseConstructor.all(oe).then(function(){if(ee.getNumberOfProposals()===0){var Fe=m;v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null")&&(Fe=v.offset+v.length);var Re=s.evaluateSeparatorAfter(r,Fe);s.addFillerValueCompletions(Ce,Re,ee)}return c})})},e.prototype.getPropertyCompletions=function(r,n,a,s,c,p){var m=this,v=n.getMatchingSchemas(r.schema,a.offset);v.forEach(function(y){if(y.node===a&&!y.inverted){var b=y.schema.properties;b&&Object.keys(b).forEach(function(I){var R=b[I],N=!1;if(typeof R=="object"&&R.allOf)for(var G=0,ee=R.allOf;G<ee.length;G++){var q=ee[G];if(q.readOnly){N=!0;break}}if(typeof R=="object"&&!R.deprecationMessage&&!R.doNotSuggest&&!N){var oe={kind:_n.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,R,s,c),insertTextFormat:Zr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(R.markdownDescription)||R.description||""};op(oe.insertText,"$1"+c)&&(oe.command={title:"Suggest",command:"editor.action.triggerSuggest"}),p.add(oe)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,s){var c=this,p=function(v){v.properties.forEach(function(y){var b=y.keyNode.value;s.add({kind:_n.Property,label:c.sanitizeLabel(b),insertText:c.getInsertTextForValue(b,""),insertTextFormat:Zr.Snippet,filterText:c.getFilterTextForValue(b),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(v){return v.type==="property"&&v!==n.parent&&v.keyNode.value===m&&v.valueNode&&v.valueNode.type==="object"&&p(v.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(v){v.type==="object"&&v!==n&&p(v)});else n.type==="object"&&s.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,s,c){var p=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){c.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),c.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var v=this.evaluateSeparatorAfter(s,m),y=function(N){Mv(N.parent,a,!0)||c.add({kind:p.getSuggestionKind(N.type),label:p.getLabelTextForMatchingNode(N,s),insertText:p.getInsertTextForMatchingNode(N,s,v),insertTextFormat:Zr.Snippet,documentation:""}),N.type==="boolean"&&p.addBooleanValueCompletion(!N.value,v,c)};if(n.type==="property"&&a>n.colonOffset){var b=n.valueNode;if(b&&(a>b.offset+b.length||b.type==="object"||b.type==="array"))return;var I=n.keyNode.value;r.visit(function(N){return N.type==="property"&&N.keyNode.value===I&&N.valueNode&&y(N.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(v,c)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var R=n.parent.keyNode.value;r.visit(function(N){return N.type==="property"&&N.keyNode.value===R&&N.valueNode&&N.valueNode.type==="array"&&N.valueNode.items.forEach(y),!0})}else n.items.forEach(y)},e.prototype.getValueCompletions=function(r,n,a,s,c,p,m){var v=this,y=s,b=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(y=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",p,m);return}if(a.type==="property"&&s>a.colonOffset){var R=a.valueNode;if(R&&s>R.offset+R.length)return;b=a.keyNode.value,a=a.parent}if(a&&(b!==null||a.type==="array")){var N=this.evaluateSeparatorAfter(c,y),G=n.getMatchingSchemas(r.schema,a.offset,I);G.forEach(function(ee){if(ee.node===a&&!ee.inverted&&ee.schema){if(a.type==="array"&&ee.schema.items)if(Array.isArray(ee.schema.items)){var q=v.findItemAtOffset(a,c,s);q<ee.schema.items.length&&v.addSchemaValueCompletions(ee.schema.items[q],N,p,m)}else v.addSchemaValueCompletions(ee.schema.items,N,p,m);if(ee.schema.properties){var oe=ee.schema.properties[b];oe&&v.addSchemaValueCompletions(oe,N,p,m)}}}),b==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(N,p),m.boolean&&(this.addBooleanValueCompletion(!0,N,p),this.addBooleanValueCompletion(!1,N,p)),m.null&&this.addNullValueCompletion(N,p)}},e.prototype.getContributedValueCompletions=function(r,n,a,s,c,p){if(!n)this.contributions.forEach(function(b){var I=b.collectDefaultCompletions(s.uri,c);I&&p.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,v=n.valueNode;if(!v||a<=v.offset+v.length){var y=ip(n.parent);this.contributions.forEach(function(b){var I=b.collectValueCompletions(s.uri,y,m,c);I&&p.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,s){var c=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,s){var c=this;s===void 0&&(s=0);var p=!1;if(Ca(r.default)){for(var m=r.type,v=r.default,y=s;y>0;y--)v=[v],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(v),insertText:this.getInsertTextForValue(v,n),insertTextFormat:Zr.Snippet}),p=!0}Array.isArray(r.examples)&&r.examples.forEach(function(b){for(var I=r.type,R=b,N=s;N>0;N--)R=[R],I="array";a.add({kind:c.getSuggestionKind(I),label:c.getLabelForValue(R),insertText:c.getInsertTextForValue(R,n),insertTextFormat:Zr.Snippet}),p=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(b){var I=r.type,R=b.body,N=b.label,G,ee;if(Ca(R)){for(var q=r.type,oe=s;oe>0;oe--)R=[R],q="array";G=c.getInsertTextForSnippetValue(R,n),ee=c.getFilterTextForSnippetValue(R),N=N||c.getLabelForSnippetValue(R)}else if(typeof b.bodyText=="string"){for(var ae="",pe="",ve="",oe=s;oe>0;oe--)ae=ae+ve+`[
264
+ `}return s+=r+"}",s}}return n(e)}function C0(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function op(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function E0(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function P1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var O0=[",","}","]"],T0=[":"],P0=function(){function e(r,n,a,s){n===void 0&&(n=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var s=this,c={items:[],isIncomplete:!1},p=r.getText(),m=r.offsetAt(n),v=a.getNodeFromOffset(m,!0);if(this.isInComment(r,v?v.offset:0,m))return Promise.resolve(c);if(v&&m===v.offset+v.length&&m>0){var y=p[m-1];(v.type==="object"&&y==="}"||v.type==="array"&&y==="]")&&(v=v.parent)}var b=this.getCurrentWord(r,m),I=null;if(v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null"))I=sr.create(r.positionAt(v.offset),r.positionAt(v.offset+v.length));else{var D=m-b.length;D>0&&p[D-1]==='"'&&D--,I=sr.create(r.positionAt(D),n)}var B=this.doesSupportsCommitCharacters(),$={},K={add:function(q){var oe=$[q.label];oe?oe.documentation||(oe.documentation=q.documentation):($[q.label]=q,I&&(q.textEdit=di.replace(I,q.insertText)),B&&(q.commitCharacters=q.kind===_n.Property?T0:O0),c.items.push(q))},setAsIncomplete:function(){c.isIncomplete=!0},error:function(q){console.error(q)},log:function(q){console.log(q)},getNumberOfProposals:function(){return c.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(q){var oe=[],ae=!0,pe="",Ce=null;if(v&&v.type==="string"){var Se=v.parent;Se&&Se.type==="property"&&Se.keyNode===v&&(ae=!Se.valueNode,Ce=Se,pe=p.substr(v.offset+1,v.length-2),Se&&(v=Se.parent))}if(v&&v.type==="object"){if(v.offset===m)return c;var Pe=v.properties;Pe.forEach(function(Fe){(!Ce||Ce!==Fe)&&($[Fe.keyNode.value]=_d.create("__"))});var he="";ae&&(he=s.evaluateSeparatorAfter(r,r.offsetAt(I.end))),q?s.getPropertyCompletions(q,a,v,ae,he,K):s.getSchemaLessPropertyCompletions(a,v,pe,K);var me=ip(v);s.contributions.forEach(function(Fe){var Re=Fe.collectPropertyCompletions(r.uri,me,b,ae,he==="",K);Re&&oe.push(Re)}),!q&&b.length>0&&p.charAt(m-b.length-1)!=='"'&&(K.add({kind:_n.Property,label:s.getLabelForValue(b),insertText:s.getInsertTextForProperty(b,null,!1,he),insertTextFormat:Zr.Snippet,documentation:""}),K.setAsIncomplete())}var we={};return q?s.getValueCompletions(q,a,v,m,r,K,we):s.getSchemaLessValueCompletions(a,v,m,r,K),s.contributions.length>0&&s.getContributedValueCompletions(a,v,m,r,K,oe),s.promiseConstructor.all(oe).then(function(){if(K.getNumberOfProposals()===0){var Fe=m;v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null")&&(Fe=v.offset+v.length);var Re=s.evaluateSeparatorAfter(r,Fe);s.addFillerValueCompletions(we,Re,K)}return c})})},e.prototype.getPropertyCompletions=function(r,n,a,s,c,p){var m=this,v=n.getMatchingSchemas(r.schema,a.offset);v.forEach(function(y){if(y.node===a&&!y.inverted){var b=y.schema.properties;b&&Object.keys(b).forEach(function(I){var D=b[I],B=!1;if(typeof D=="object"&&D.allOf)for(var $=0,K=D.allOf;$<K.length;$++){var q=K[$];if(q.readOnly){B=!0;break}}if(typeof D=="object"&&!D.deprecationMessage&&!D.doNotSuggest&&!B){var oe={kind:_n.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,D,s,c),insertTextFormat:Zr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(D.markdownDescription)||D.description||""};op(oe.insertText,"$1"+c)&&(oe.command={title:"Suggest",command:"editor.action.triggerSuggest"}),p.add(oe)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,s){var c=this,p=function(v){v.properties.forEach(function(y){var b=y.keyNode.value;s.add({kind:_n.Property,label:c.sanitizeLabel(b),insertText:c.getInsertTextForValue(b,""),insertTextFormat:Zr.Snippet,filterText:c.getFilterTextForValue(b),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(v){return v.type==="property"&&v!==n.parent&&v.keyNode.value===m&&v.valueNode&&v.valueNode.type==="object"&&p(v.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(v){v.type==="object"&&v!==n&&p(v)});else n.type==="object"&&s.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,s,c){var p=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){c.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),c.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var v=this.evaluateSeparatorAfter(s,m),y=function(B){Mv(B.parent,a,!0)||c.add({kind:p.getSuggestionKind(B.type),label:p.getLabelTextForMatchingNode(B,s),insertText:p.getInsertTextForMatchingNode(B,s,v),insertTextFormat:Zr.Snippet,documentation:""}),B.type==="boolean"&&p.addBooleanValueCompletion(!B.value,v,c)};if(n.type==="property"&&a>n.colonOffset){var b=n.valueNode;if(b&&(a>b.offset+b.length||b.type==="object"||b.type==="array"))return;var I=n.keyNode.value;r.visit(function(B){return B.type==="property"&&B.keyNode.value===I&&B.valueNode&&y(B.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(v,c)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var D=n.parent.keyNode.value;r.visit(function(B){return B.type==="property"&&B.keyNode.value===D&&B.valueNode&&B.valueNode.type==="array"&&B.valueNode.items.forEach(y),!0})}else n.items.forEach(y)},e.prototype.getValueCompletions=function(r,n,a,s,c,p,m){var v=this,y=s,b=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(y=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",p,m);return}if(a.type==="property"&&s>a.colonOffset){var D=a.valueNode;if(D&&s>D.offset+D.length)return;b=a.keyNode.value,a=a.parent}if(a&&(b!==null||a.type==="array")){var B=this.evaluateSeparatorAfter(c,y),$=n.getMatchingSchemas(r.schema,a.offset,I);$.forEach(function(K){if(K.node===a&&!K.inverted&&K.schema){if(a.type==="array"&&K.schema.items)if(Array.isArray(K.schema.items)){var q=v.findItemAtOffset(a,c,s);q<K.schema.items.length&&v.addSchemaValueCompletions(K.schema.items[q],B,p,m)}else v.addSchemaValueCompletions(K.schema.items,B,p,m);if(K.schema.properties){var oe=K.schema.properties[b];oe&&v.addSchemaValueCompletions(oe,B,p,m)}}}),b==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(B,p),m.boolean&&(this.addBooleanValueCompletion(!0,B,p),this.addBooleanValueCompletion(!1,B,p)),m.null&&this.addNullValueCompletion(B,p)}},e.prototype.getContributedValueCompletions=function(r,n,a,s,c,p){if(!n)this.contributions.forEach(function(b){var I=b.collectDefaultCompletions(s.uri,c);I&&p.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,v=n.valueNode;if(!v||a<=v.offset+v.length){var y=ip(n.parent);this.contributions.forEach(function(b){var I=b.collectValueCompletions(s.uri,y,m,c);I&&p.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,s){var c=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,s){var c=this;s===void 0&&(s=0);var p=!1;if(Ca(r.default)){for(var m=r.type,v=r.default,y=s;y>0;y--)v=[v],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(v),insertText:this.getInsertTextForValue(v,n),insertTextFormat:Zr.Snippet}),p=!0}Array.isArray(r.examples)&&r.examples.forEach(function(b){for(var I=r.type,D=b,B=s;B>0;B--)D=[D],I="array";a.add({kind:c.getSuggestionKind(I),label:c.getLabelForValue(D),insertText:c.getInsertTextForValue(D,n),insertTextFormat:Zr.Snippet}),p=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(b){var I=r.type,D=b.body,B=b.label,$,K;if(Ca(D)){for(var q=r.type,oe=s;oe>0;oe--)D=[D],q="array";$=c.getInsertTextForSnippetValue(D,n),K=c.getFilterTextForSnippetValue(D),B=B||c.getLabelForSnippetValue(D)}else if(typeof b.bodyText=="string"){for(var ae="",pe="",Ce="",oe=s;oe>0;oe--)ae=ae+Ce+`[
265
265
  `,pe=pe+`
266
- `+ve+"]",ve+=" ",I="array";G=ae+ve+b.bodyText.split(`
266
+ `+Ce+"]",Ce+=" ",I="array";$=ae+Ce+b.bodyText.split(`
267
267
  `).join(`
268
- `+ve)+pe+n,N=N||c.sanitizeLabel(G),ee=G.replace(/[\n]/g,"")}a.add({kind:c.getSuggestionKind(I),label:N,documentation:c.fromMarkup(b.markdownDescription)||b.description,insertText:G,insertTextFormat:Zr.Snippet,filterText:ee}),p=!0}),!p&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,s+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(Ca(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,c=r.enum.length;s<c;s++){var p=r.enum[s],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(m=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(p),insertText:this.getInsertTextForValue(p,n),insertTextFormat:Zr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||Ca(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return n[s]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(c){return c==="http"||c==="https"});s.forEach(function(c){return n.add({kind:_n.Module,label:a.getLabelForValue(c),filterText:a.getFilterTextForValue(c),insertText:a.getInsertTextForValue(c,r),insertTextFormat:Zr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return ap(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},e.prototype.getInsertTextForProperty=function(r,n,a,s){var c=this.getInsertTextForValue(r,"");if(!a)return c;var p=c+": ",m,v=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var y=n.defaultSnippets[0].body;Ca(y)&&(m=this.getInsertTextForSnippetValue(y,""))}v+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),v+=n.enum.length),Ca(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),v++),v===0){var b=Array.isArray(n.type)?n.type[0]:n.type;switch(b||(n.properties?b="object":n.items&&(b="array")),b){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return c}}}return(!m||v>1)&&(m="$1"),p+m+s},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,s=r.getText();a>=0&&`
269
- \r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Xs(r.getText(),!0);a.setPosition(n);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var s=Xs(n.getText(),!0),c=r.items,p=c.length-1;p>=0;p--){var m=c[p];if(a>m.offset+m.length){s.setPosition(m.offset+m.length);var v=s.scan();return v===5&&a>=s.getTokenOffset()+s.getTokenLength()?p+1:p}else if(a>=m.offset)return p}return 0},e.prototype.isInComment=function(r,n,a){var s=Xs(r.getText(),!1);s.setPosition(n);for(var c=s.scan();c!==17&&s.getTokenOffset()+s.getTokenLength()<a;)c=s.scan();return(c===12||c===13)&&s.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:$o.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!Ca(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf($o.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Ca(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),P0=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var s=r.offsetAt(n),c=a.getNodeFromOffset(s);if(!c||(c.type==="object"||c.type==="array")&&s>c.offset+1&&s<c.offset+c.length-1)return this.promise.resolve(null);var p=c;if(c.type==="string"){var m=c.parent;if(m&&m.type==="property"&&m.keyNode===c&&(c=m.valueNode,!c))return this.promise.resolve(null)}for(var v=sr.create(r.positionAt(p.offset),r.positionAt(p.offset+p.length)),y=function(G){var ee={contents:G,range:v};return ee},b=ip(c),I=this.contributions.length-1;I>=0;I--){var R=this.contributions[I],N=R.getInfoContribution(r.uri,b);if(N)return N.then(function(G){return y(G)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(G){if(G){var ee=a.getMatchingSchemas(G.schema,c.offset),q=null,oe=null,ae=null,pe=null;ee.every(function(me){if(me.node===c&&!me.inverted&&me.schema&&(q=q||me.schema.title,oe=oe||me.schema.markdownDescription||sp(me.schema.description),me.schema.enum)){var Te=me.schema.enum.indexOf(oo(c));me.schema.markdownEnumDescriptions?ae=me.schema.markdownEnumDescriptions[Te]:me.schema.enumDescriptions&&(ae=sp(me.schema.enumDescriptions[Te])),ae&&(pe=me.schema.enum[Te],typeof pe!="string"&&(pe=JSON.stringify(pe)))}return!0});var ve="";return q&&(ve=sp(q)),oe&&(ve.length>0&&(ve+=`
268
+ `+Ce)+pe+n,B=B||c.sanitizeLabel($),K=$.replace(/[\n]/g,"")}a.add({kind:c.getSuggestionKind(I),label:B,documentation:c.fromMarkup(b.markdownDescription)||b.description,insertText:$,insertTextFormat:Zr.Snippet,filterText:K}),p=!0}),!p&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,s+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(Ca(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,c=r.enum.length;s<c;s++){var p=r.enum[s],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(m=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(p),insertText:this.getInsertTextForValue(p,n),insertTextFormat:Zr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||Ca(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return n[s]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(c){return c==="http"||c==="https"});s.forEach(function(c){return n.add({kind:_n.Module,label:a.getLabelForValue(c),filterText:a.getFilterTextForValue(c),insertText:a.getInsertTextForValue(c,r),insertTextFormat:Zr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return ap(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},e.prototype.getInsertTextForProperty=function(r,n,a,s){var c=this.getInsertTextForValue(r,"");if(!a)return c;var p=c+": ",m,v=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var y=n.defaultSnippets[0].body;Ca(y)&&(m=this.getInsertTextForSnippetValue(y,""))}v+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),v+=n.enum.length),Ca(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),v++),v===0){var b=Array.isArray(n.type)?n.type[0]:n.type;switch(b||(n.properties?b="object":n.items&&(b="array")),b){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return c}}}return(!m||v>1)&&(m="$1"),p+m+s},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,s=r.getText();a>=0&&`
269
+ \r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Xs(r.getText(),!0);a.setPosition(n);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var s=Xs(n.getText(),!0),c=r.items,p=c.length-1;p>=0;p--){var m=c[p];if(a>m.offset+m.length){s.setPosition(m.offset+m.length);var v=s.scan();return v===5&&a>=s.getTokenOffset()+s.getTokenLength()?p+1:p}else if(a>=m.offset)return p}return 0},e.prototype.isInComment=function(r,n,a){var s=Xs(r.getText(),!1);s.setPosition(n);for(var c=s.scan();c!==17&&s.getTokenOffset()+s.getTokenLength()<a;)c=s.scan();return(c===12||c===13)&&s.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:$o.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!Ca(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf($o.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Ca(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),I0=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var s=r.offsetAt(n),c=a.getNodeFromOffset(s);if(!c||(c.type==="object"||c.type==="array")&&s>c.offset+1&&s<c.offset+c.length-1)return this.promise.resolve(null);var p=c;if(c.type==="string"){var m=c.parent;if(m&&m.type==="property"&&m.keyNode===c&&(c=m.valueNode,!c))return this.promise.resolve(null)}for(var v=sr.create(r.positionAt(p.offset),r.positionAt(p.offset+p.length)),y=function($){var K={contents:$,range:v};return K},b=ip(c),I=this.contributions.length-1;I>=0;I--){var D=this.contributions[I],B=D.getInfoContribution(r.uri,b);if(B)return B.then(function($){return y($)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function($){if($){var K=a.getMatchingSchemas($.schema,c.offset),q=null,oe=null,ae=null,pe=null;K.every(function(Se){if(Se.node===c&&!Se.inverted&&Se.schema&&(q=q||Se.schema.title,oe=oe||Se.schema.markdownDescription||sp(Se.schema.description),Se.schema.enum)){var Pe=Se.schema.enum.indexOf(oo(c));Se.schema.markdownEnumDescriptions?ae=Se.schema.markdownEnumDescriptions[Pe]:Se.schema.enumDescriptions&&(ae=sp(Se.schema.enumDescriptions[Pe])),ae&&(pe=Se.schema.enum[Pe],typeof pe!="string"&&(pe=JSON.stringify(pe)))}return!0});var Ce="";return q&&(Ce=sp(q)),oe&&(Ce.length>0&&(Ce+=`
270
270
 
271
- `),ve+=oe),ae&&(ve.length>0&&(ve+=`
271
+ `),Ce+=oe),ae&&(Ce.length>0&&(Ce+=`
272
272
 
273
- `),ve+="`"+I0(pe)+"`: "+ae),y([ve])}return null})},e}();function sp(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
273
+ `),Ce+="`"+F0(pe)+"`: "+ae),y([Ce])}return null})},e}();function sp(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
274
274
 
275
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var F0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Gr,yu;if(typeof process=="object")yu=!1;else if(typeof navigator=="object"){var k0=navigator.userAgent;yu=k0.indexOf("Windows")>=0}function P1(e){return 55296<=e&&e<=56319}function I1(e){return 56320<=e&&e<=57343}function F1(e){return e>=97&&e<=102}function R0(e){return e>=97&&e<=122}function M0(e){return e>=65&&e<=90}function k1(e){return R0(e)||M0(e)}var L0=/^\w[\w\d+.-]*$/,N0=/^\//,D0=/^\/\//;function B0(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!L0.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!N0.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(D0.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function j0(e,r){return!e&&!r?"file":e}function V0(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Bi&&(r=Bi+r):r=Bi;break}return r}var br="",Bi="/",U0=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,lp=function(){function e(r,n,a,s,c,p){p===void 0&&(p=!1),typeof r=="object"?(this.scheme=r.scheme||br,this.authority=r.authority||br,this.path=r.path||br,this.query=r.query||br,this.fragment=r.fragment||br):(this.scheme=j0(r,p),this.authority=n||br,this.path=V0(this.scheme,a||br),this.query=s||br,this.fragment=c||br,B0(this,p))}return e.isUri=function(r){return r instanceof e?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return jv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,s=r.path,c=r.query,p=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=br),a===void 0?a=this.authority:a===null&&(a=br),s===void 0?s=this.path:s===null&&(s=br),c===void 0?c=this.query:c===null&&(c=br),p===void 0?p=this.fragment:p===null&&(p=br),n===this.scheme&&a===this.authority&&s===this.path&&c===this.query&&p===this.fragment?this:new _s(n,a,s,c,p)},e.parse=function(r,n){n===void 0&&(n=!1);var a=U0.exec(r);return a?new _s(a[2]||br,xc(a[4]||br),xc(a[5]||br),xc(a[7]||br),xc(a[9]||br),n):new _s(br,br,br,br,br)},e.file=function(r){var n=br;if(yu&&(r=r.replace(/\\/g,Bi)),r[0]===Bi&&r[1]===Bi){var a=r.indexOf(Bi,2);a===-1?(n=r.substring(2),r=Bi):(n=r.substring(2,a),r=r.substring(a)||Bi)}return new _s("file",n,r,br,br)},e.from=function(r){return new _s(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),up(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new _s(r);return n._formatted=r.external,n._fsPath=r._sep===Nv?r.fsPath:null,n}else return r},e}(),Nv=yu?1:void 0,_s=function(e){F0(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=jv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?up(this,!0):(this._formatted||(this._formatted=up(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Nv),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(lp),Dv=(Gr={},Gr[58]="%3A",Gr[47]="%2F",Gr[63]="%3F",Gr[35]="%23",Gr[91]="%5B",Gr[93]="%5D",Gr[64]="%40",Gr[33]="%21",Gr[36]="%24",Gr[38]="%26",Gr[39]="%27",Gr[40]="%28",Gr[41]="%29",Gr[42]="%2A",Gr[43]="%2B",Gr[44]="%2C",Gr[59]="%3B",Gr[61]="%3D",Gr[32]="%20",Gr);function Bv(e,r){for(var n=void 0,a=-1,s=0;s<e.length;s++){var c=e.charCodeAt(s);if(c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||r&&c===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n!==void 0&&(n+=e.charAt(s));else{n===void 0&&(n=e.substr(0,s));var p=Dv[c];p!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n+=p):a===-1&&(a=s)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function W0(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Dv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function jv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,yu&&(n=n.replace(/\//g,"\\")),n}function up(e,r){var n=r?W0:Bv,a="",s=e.scheme,c=e.authority,p=e.path,m=e.query,v=e.fragment;if(s&&(a+=s,a+=":"),(c||s==="file")&&(a+=Bi,a+=Bi),c){var y=c.indexOf("@");if(y!==-1){var b=c.substr(0,y);c=c.substr(y+1),y=b.indexOf(":"),y===-1?a+=n(b,!1):(a+=n(b.substr(0,y),!1),a+=":",a+=n(b.substr(y+1),!1)),a+="@"}c=c.toLowerCase(),y=c.indexOf(":"),y===-1?a+=n(c,!1):(a+=n(c.substr(0,y),!1),a+=c.substr(y))}if(p){if(p.length>=3&&p.charCodeAt(0)===47&&p.charCodeAt(2)===58){var I=p.charCodeAt(1);I>=65&&I<=90&&(p="/"+String.fromCharCode(I+32)+":"+p.substr(3))}else if(p.length>=2&&p.charCodeAt(1)===58){var I=p.charCodeAt(0);I>=65&&I<=90&&(p=String.fromCharCode(I+32)+":"+p.substr(2))}a+=n(p,!0)}return m&&(a+="?",a+=n(m,!1)),v&&(a+="#",a+=r?v:Bv(v,!1)),a}function Vv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Vv(e.substr(3)):e}}var Uv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xc(e){return e.match(Uv)?e.replace(Uv,function(r){return Vv(r)}):e}var H0=function(){function e(r){try{this.patternRegExp=new RegExp(C0(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),z0=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new el(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),el=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Wv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var s=0,c=Object.keys(n.patternProperties);s<c.length;s++){var p=c[s],m=new RegExp(p);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[p])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var v=parseInt(a,10);if(!isNaN(v)&&n.items[v])return this.getSectionRecursive(r,n.items[v])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),G0=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=lp.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var s=[r],c=Object.keys(this.schemasById).map(function(y){return n.schemasById[y]});s.length;)for(var p=s.pop(),m=0;m<c.length;m++){var v=c[m];v&&(v.url===p||v.dependencies[p])&&(v.url!==p&&s.push(v.url),v.clearSchema(),c[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return lp.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,n[a])}}if(r.schemaAssociations){var c=r.schemaAssociations;for(var p in c){var m=c[p];this.contributionAssociations[p]=m;for(var v=this.getOrAddFilePatternAssociation(p),y=0,b=m;y<b.length;y++){var I=b[y],a=this.normalizeId(I);v.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new z0(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new H0(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,n)for(var c=0,p=n;c<p.length;c++){var m=p[c];this.getOrAddFilePatternAssociation(m).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(n),s=0,c=this.contributionAssociations[n];s<c.length;s++){var p=c[s],r=this.normalizeId(p);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Sc(r)+"'. No schema request service available";return this.promise.resolve(new el({},[n]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Sc(r)+"': No content.";return new el({},[s])}var c={},p=[];c=a0(a,p);var m=p.length?["Unable to parse content from '"+Sc(r)+"': Parse error at offset "+p[0].offset]:[];return new el(c,m)},function(a){var s="Unable to load schema from '"+Sc(r)+"': "+a.toString();return new el({},[s])})},e.prototype.resolveSchemaContent=function(r,n,a){var s=this,c=r.errors.slice(0),p=r.schema;if(p.$schema){var m=this.normalizeId(p.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Wv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var v=this.contextService,y=function(N,G){if(!G)return N;var ee=N;return G[0]==="/"&&(G=G.substr(1)),G.split("/").some(function(q){return ee=ee[q],!ee}),ee},b=function(N,G,ee,q){var oe=y(G,q);if(oe)for(var ae in oe)oe.hasOwnProperty(ae)&&!N.hasOwnProperty(ae)&&(N[ae]=oe[ae]);else c.push("$ref '"+q+"' in '"+ee+"' can not be resolved.")},I=function(N,G,ee,q,oe){v&&!/^\w+:\/\/.*/.test(G)&&(G=v.resolveRelativePath(G,q)),G=s.normalizeId(G);var ae=s.getOrAddSchemaHandle(G);return ae.getUnresolvedSchema().then(function(pe){if(oe[G]=!0,pe.errors.length){var ve=ee?G+"#"+ee:G;c.push("Problems loading reference '"+ve+"': "+pe.errors[0]+".")}return b(N,pe.schema,G,ee),R(N,pe.schema,G,ae.dependencies)})},R=function(N,G,ee,q){if(!N||typeof N!="object")return Promise.resolve(null);for(var oe=[N],ae=[],pe=[],ve=function(){for(var Ce=[],Fe=0;Fe<arguments.length;Fe++)Ce[Fe]=arguments[Fe];for(var Re=0,Ue=Ce;Re<Ue.length;Re++){var ze=Ue[Re];typeof ze=="object"&&oe.push(ze)}},me=function(){for(var Ce=[],Fe=0;Fe<arguments.length;Fe++)Ce[Fe]=arguments[Fe];for(var Re=0,Ue=Ce;Re<Ue.length;Re++){var ze=Ue[Re];if(typeof ze=="object")for(var Ct in ze){var qe=ze[Ct];typeof qe=="object"&&oe.push(qe)}}},Te=function(){for(var Ce=[],Fe=0;Fe<arguments.length;Fe++)Ce[Fe]=arguments[Fe];for(var Re=0,Ue=Ce;Re<Ue.length;Re++){var ze=Ue[Re];if(Array.isArray(ze))for(var Ct=0,qe=ze;Ct<qe.length;Ct++){var nr=qe[Ct];typeof nr=="object"&&oe.push(nr)}}},Ae=function(Ce){for(var Fe=[];Ce.$ref;){var Re=Ce.$ref,Ue=Re.split("#",2);if(delete Ce.$ref,Ue[0].length>0){pe.push(I(Ce,Ue[0],Ue[1],ee,q));return}else Fe.indexOf(Re)===-1&&(b(Ce,G,ee,Ue[1]),Fe.push(Re))}ve(Ce.items,Ce.additionalProperties,Ce.not,Ce.contains,Ce.propertyNames,Ce.if,Ce.then,Ce.else),me(Ce.definitions,Ce.properties,Ce.patternProperties,Ce.dependencies),Te(Ce.anyOf,Ce.allOf,Ce.oneOf,Ce.items)};oe.length;){var Se=oe.pop();ae.indexOf(Se)>=0||(ae.push(Se),Ae(Se))}return s.promise.all(pe)};return R(p,p,n,a).then(function(N){return new Wv(p,c)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function(G){return G.keyNode.value==="$schema"&&G.valueNode&&G.valueNode.type==="string"});if(a.length>0){var s=oo(a[0].valueNode);if(s&&A0(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var c=this.normalizeId(s);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}for(var p=Object.create(null),m=[],v=0,y=this.filePatternAssociations;v<y.length;v++){var b=y[v];if(b.matchesPattern(r))for(var I=0,R=b.getSchemas();I<R.length;I++){var N=R[I];p[N]||(m.push(N),p[N]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:n.map(function(c){return{$ref:c}})};return this.addSchemaHandle(a,s)},e}();function Sc(e){try{}catch(r){}return e}var $0=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},e.prototype.doValidation=function(r,n,a,s){var c=this;if(!this.validationEnabled)return this.promise.resolve([]);var p=[],m={},v=function(I){var R=I.range.start.line+" "+I.range.start.character+" "+I.message;m[R]||(m[R]=!0,p.push(I))},y=function(I){var R=a?Gv(a.trailingCommas):Ht.Error,N=a?Gv(a.comments):c.commentSeverity;if(I){if(I.errors.length&&n.root){var G=n.root,ee=G.type==="object"?G.properties[0]:null;if(ee&&ee.keyNode.value==="$schema"){var q=ee.valueNode||ee,oe=sr.create(r.positionAt(q.offset),r.positionAt(q.offset+q.length));v(Ea.create(oe,I.errors[0],Ht.Warning,or.SchemaResolveError))}else{var oe=sr.create(r.positionAt(G.offset),r.positionAt(G.offset+1));v(Ea.create(oe,I.errors[0],Ht.Warning,or.SchemaResolveError))}}else{var ae=n.validate(r,I.schema);ae&&ae.forEach(v)}Hv(I.schema)&&(N=void 0),zv(I.schema)&&(R=void 0)}for(var pe=0,ve=n.syntaxErrors;pe<ve.length;pe++){var me=ve[pe];if(me.code===or.TrailingComma){if(typeof R!="number")continue;me.severity=R}v(me)}if(typeof N=="number"){var Te="Comments are not permitted in JSON.";n.comments.forEach(function(Ae){v(Ea.create(Ae,Te,N,or.CommentNotPermitted))})}return p};if(s){var b=s.id||"schemaservice://untitled/"+K0++;return this.jsonSchemaService.resolveSchemaContent(new el(s),b,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return y(I)})},e}(),K0=0;function Hv(e){if(e&&typeof e=="object"){if(ea(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=Hv(a);if(ea(s))return s}}}function zv(e){if(e&&typeof e=="object"){if(ea(e.allowTrailingCommas))return e.allowTrailingCommas;if(ea(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=zv(a);if(ea(s))return s}}}function Gv(e){switch(e){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var $v=48,Y0=57,J0=65,wc=97,X0=102;function $r(e){return e<$v?0:e<=Y0?e-$v:(e<wc&&(e+=wc-J0),e>=wc&&e<=X0?e-wc+10:0)}function Q0(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:$r(e.charCodeAt(1))*17/255,green:$r(e.charCodeAt(2))*17/255,blue:$r(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:$r(e.charCodeAt(1))*17/255,green:$r(e.charCodeAt(2))*17/255,blue:$r(e.charCodeAt(3))*17/255,alpha:$r(e.charCodeAt(4))*17/255};case 7:return{red:($r(e.charCodeAt(1))*16+$r(e.charCodeAt(2)))/255,green:($r(e.charCodeAt(3))*16+$r(e.charCodeAt(4)))/255,blue:($r(e.charCodeAt(5))*16+$r(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:($r(e.charCodeAt(1))*16+$r(e.charCodeAt(2)))/255,green:($r(e.charCodeAt(3))*16+$r(e.charCodeAt(4)))/255,blue:($r(e.charCodeAt(5))*16+$r(e.charCodeAt(6)))/255,alpha:($r(e.charCodeAt(7))*16+$r(e.charCodeAt(8)))/255}}return null}function R1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Z0=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||op(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var R=0,N=I.properties;R<N.length;R++){var G=N[R];if(G.keyNode.value==="key"&&G.valueNode){var ee=Qs.create(r.uri,so(r,I));if(v.push({name:oo(G.valueNode),kind:ta.Function,location:ee}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var q=function(ae,pe,ve){return p>=0&&(pe.type==="array"?pe.items.forEach(function(me){return q(ae,me,ve)}):pe.type==="object"&&pe.properties.forEach(function(me){if(p>=0){var Te=me.valueNode;if(Te){p--;var Ae=Qs.create(r.uri,so(r,me)),Se=ve?ve+"."+me.keyNode.value:me.keyNode.value;ae.push({name:s.getKeyLabel(me),kind:s.getSymbolKind(Te.type),location:Ae,containerName:ve}),q(ae,Te,Se)}}})),ae},oe=q([],c,void 0);return p<0&&(oe.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),oe},e.prototype.findDocumentSymbols2=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||op(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var R=0,N=I.properties;R<N.length;R++){var G=N[R];if(G.keyNode.value==="key"&&G.valueNode){var ee=so(r,I),q=so(r,G.keyNode);if(v.push({name:oo(G.valueNode),kind:ta.Function,range:ee,selectionRange:q}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var oe=function(pe,ve){return p>=0&&(ve.type==="array"?ve.items.forEach(function(me,Te){if(me&&p>=0){p--;var Ae=so(r,me),Se=Ae,Ce=String(Te),Fe=oe([],me);pe.push({name:Ce,kind:s.getSymbolKind(me.type),range:Ae,selectionRange:Se,children:Fe})}}):ve.type==="object"&&ve.properties.forEach(function(me){var Te=me.valueNode;if(Te&&p>=0){p--;var Ae=so(r,me),Se=so(r,me.keyNode),Ce=oe([],Te);pe.push({name:s.getKeyLabel(me),kind:s.getSymbolKind(Te.type),range:Ae,selectionRange:Se,children:Ce})}})),pe},ae=oe([],c);return p<0&&(ae.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ae},e.prototype.getSymbolKind=function(r){switch(r){case"object":return ta.Module;case"string":return ta.String;case"number":return ta.Number;case"array":return ta.Array;case"boolean":return ta.Boolean;default:return ta.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(s){var c=[];if(s)for(var p=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(s.schema),v={},y=0,b=m;y<b.length;y++){var I=b[y];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var R=String(I.node.offset);if(!v[R]){var N=Q0(oo(I.node));if(N){var G=so(r,I.node);c.push({color:N,range:G})}if(v[R]=!0,p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),c}}}return c})},e.prototype.getColorPresentations=function(r,n,a,s){var c=[],p=Math.round(a.red*255),m=Math.round(a.green*255),v=Math.round(a.blue*255);function y(I){var R=I.toString(16);return R.length!==2?"0"+R:R}var b;return a.alpha===1?b="#"+y(p)+y(m)+y(v):b="#"+y(p)+y(m)+y(v)+y(Math.round(a.alpha*255)),c.push({label:b,textEdit:di.replace(s,JSON.stringify(b))}),c},e}();function so(e,r){return sr.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var q0={schemaAssociations:{},schemas:{}};function _0(e,r){var n=[],a=[],s=[],c=-1,p=Xs(e.getText(),!1),m=p.scan();function v(Fe){n.push(Fe),a.push(s.length)}for(;m!==17;){switch(m){case 1:case 3:{var y=e.positionAt(p.getTokenOffset()).line,b={startLine:y,endLine:y,kind:m===1?"object":"array"};s.push(b);break}case 2:case 4:{var I=m===2?"object":"array";if(s.length>0&&s[s.length-1].kind===I){var b=s.pop(),R=e.positionAt(p.getTokenOffset()).line;b&&R>b.startLine+1&&c!==b.startLine&&(b.endLine=R-1,v(b),c=b.startLine)}break}case 13:{var y=e.positionAt(p.getTokenOffset()).line,N=e.positionAt(p.getTokenOffset()+p.getTokenLength()).line;p.getTokenError()===1&&y+1<e.lineCount?p.setPosition(e.offsetAt(ci.create(y+1,0))):y<N&&(v({startLine:y,endLine:N,kind:pu.Comment}),c=y);break}case 12:{var G=e.getText().substr(p.getTokenOffset(),p.getTokenLength()),ee=G.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ee){var R=e.positionAt(p.getTokenOffset()).line;if(ee[1]){var b={startLine:R,endLine:R,kind:pu.Region};s.push(b)}else{for(var q=s.length-1;q>=0&&s[q].kind!==pu.Region;)q--;if(q>=0){var b=s[q];s.length=q,R>b.startLine&&c!==b.startLine&&(b.endLine=R,v(b),c=b.startLine)}}}break}}m=p.scan()}var oe=r&&r.rangeLimit;if(typeof oe!="number"||n.length<=oe)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ae=[],pe=0,ve=a;pe<ve.length;pe++){var me=ve[pe];me<30&&(ae[me]=(ae[me]||0)+1)}for(var Te=0,Ae=0,q=0;q<ae.length;q++){var Se=ae[q];if(Se){if(Se+Te>oe){Ae=q;break}Te+=Se}}for(var Ce=[],q=0;q<n.length;q++){var me=a[q];typeof me=="number"&&(me<Ae||me===Ae&&Te++<oe)&&Ce.push(n[q])}return Ce}function eb(e,r,n){function a(m){for(var v=e.offsetAt(m),y=n.getNodeFromOffset(v,!0),b=[];y;){switch(y.type){case"string":case"object":case"array":var I=y.offset+1,R=y.offset+y.length-1;I<R&&v>=I&&v<=R&&b.push(s(I,R)),b.push(s(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":b.push(s(y.offset,y.offset+y.length));break}if(y.type==="property"||y.parent&&y.parent.type==="array"){var N=p(y.offset+y.length,5);N!==-1&&b.push(s(y.offset,N))}y=y.parent}for(var G=void 0,ee=b.length-1;ee>=0;ee--)G=yc.create(b[ee],G);return G||(G=yc.create(sr.create(m,m))),G}function s(m,v){return sr.create(e.positionAt(m),e.positionAt(v))}var c=Xs(e.getText(),!0);function p(m,v){c.setPosition(m);var y=c.scan();return y===v?c.getTokenOffset()+c.getTokenLength():-1}return r.map(a)}function tb(e){var r=e.promiseConstructor||Promise,n=new G0(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(q0);var a=new T0(n,e.contributions,r,e.clientCapabilities),s=new P0(n,e.contributions,r),c=new Z0(n),p=new $0(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(v){n.registerExternalSchema(v.uri,v.fileMatch,v.schema)}),p.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:p.doValidation.bind(p),parseJSONDocument:function(m){return w0(m,{collectComments:!0})},newJSONDocument:function(m,v){return S0(m,v)},doComplete:a.doComplete.bind(a),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findDocumentSymbols2.bind(c),findColorSymbols:function(m,v){return c.findDocumentColors(m,v).then(function(y){return y.map(function(b){return b.range})})},findDocumentColors:c.findDocumentColors.bind(c),getColorPresentations:c.getColorPresentations.bind(c),doHover:s.doHover.bind(s),getFoldingRanges:_0,getSelectionRanges:eb,format:function(m,v,y){var b=void 0;if(v){var I=m.offsetAt(v.start),R=m.offsetAt(v.end)-I;b={offset:I,length:R}}var N={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
276
- `};return u0(m.getText(),b,N).map(function(G){return di.replace(sr.create(m.positionAt(G.offset),m.positionAt(G.offset+G.length)),G.content)})}}}var M1=o(49055),L1=o(32407),N1=o(29387),D1=o(22130),B1=o(61682),j1=o(19757),V1=o(76239),U1=o(49032),W1=o(4570),H1=o(79375),Kv=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const tl=tb({});Ys.registerHelper("lint","json",function(e,r){return Kv(this,null,function*(){const{schema:n,setError:a}=r;tl.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const s=bc.create(r.id+".json","json",0,e),c=tl.parseJSONDocument(s),p=yield tl.doValidation(s,c);return p.length?a&&a(p[0].message):a&&a(void 0),p.map(m=>({from:Ys.Pos(m.range.start.line,m.range.start.character),to:Ys.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),Ys.registerHelper("hint","json",(e,r)=>Kv(void 0,null,function*(){const n=r.schema;if(!n)return;tl.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),s=e.getTokenAt(a),c=bc.create(r.id+".json","json",0,e.getValue()),p=tl.parseJSONDocument(c),m=yield tl.doComplete(c,{line:a.line,character:a.ch},p),v=b=>{let I="";for(;b--;)I+=" ";return I};let y=m?m.items.map(b=>({text:b.insertText,displayText:b.label,filter:b.filterText||b.label,from:{line:b.textEdit.range.start.line,ch:b.textEdit.range.start.character},to:{line:b.textEdit.range.end.line,ch:b.textEdit.range.end.character},hint:(I,R,N)=>{const G="_$__REDOC_CURSOR_HERE";let ee=N.text.replace(/(\$1|\${1:[^}]+})/,G)||"";if(ee=ee.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(N.from,N.to),ee.indexOf(`
277
- `)>-1){const oe=I.getLine(I.getCursor().line).search(/(\S|$)/);ee=ee.replace(/\n/g,`
278
- `+v(oe))}I.replaceSelection(ee);const q=I.getSearchCursor(G,N.from);q.findNext()&&(I.setCursor(q.from()),q.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(y=y.filter(b=>b.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:Ys.Pos(a.line,s.start),to:Ys.Pos(a.line,a.ch),list:y}}));const rb=Qt.vJ`
275
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function F0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var k0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Gr,yu;if(typeof process=="object")yu=!1;else if(typeof navigator=="object"){var R0=navigator.userAgent;yu=R0.indexOf("Windows")>=0}function I1(e){return 55296<=e&&e<=56319}function F1(e){return 56320<=e&&e<=57343}function k1(e){return e>=97&&e<=102}function M0(e){return e>=97&&e<=122}function L0(e){return e>=65&&e<=90}function R1(e){return M0(e)||L0(e)}var N0=/^\w[\w\d+.-]*$/,D0=/^\//,B0=/^\/\//;function j0(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!N0.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!D0.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(B0.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function V0(e,r){return!e&&!r?"file":e}function U0(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Bi&&(r=Bi+r):r=Bi;break}return r}var br="",Bi="/",W0=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,lp=function(){function e(r,n,a,s,c,p){p===void 0&&(p=!1),typeof r=="object"?(this.scheme=r.scheme||br,this.authority=r.authority||br,this.path=r.path||br,this.query=r.query||br,this.fragment=r.fragment||br):(this.scheme=V0(r,p),this.authority=n||br,this.path=U0(this.scheme,a||br),this.query=s||br,this.fragment=c||br,j0(this,p))}return e.isUri=function(r){return r instanceof e?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return jv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,s=r.path,c=r.query,p=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=br),a===void 0?a=this.authority:a===null&&(a=br),s===void 0?s=this.path:s===null&&(s=br),c===void 0?c=this.query:c===null&&(c=br),p===void 0?p=this.fragment:p===null&&(p=br),n===this.scheme&&a===this.authority&&s===this.path&&c===this.query&&p===this.fragment?this:new _s(n,a,s,c,p)},e.parse=function(r,n){n===void 0&&(n=!1);var a=W0.exec(r);return a?new _s(a[2]||br,xc(a[4]||br),xc(a[5]||br),xc(a[7]||br),xc(a[9]||br),n):new _s(br,br,br,br,br)},e.file=function(r){var n=br;if(yu&&(r=r.replace(/\\/g,Bi)),r[0]===Bi&&r[1]===Bi){var a=r.indexOf(Bi,2);a===-1?(n=r.substring(2),r=Bi):(n=r.substring(2,a),r=r.substring(a)||Bi)}return new _s("file",n,r,br,br)},e.from=function(r){return new _s(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),up(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new _s(r);return n._formatted=r.external,n._fsPath=r._sep===Nv?r.fsPath:null,n}else return r},e}(),Nv=yu?1:void 0,_s=function(e){k0(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=jv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?up(this,!0):(this._formatted||(this._formatted=up(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Nv),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(lp),Dv=(Gr={},Gr[58]="%3A",Gr[47]="%2F",Gr[63]="%3F",Gr[35]="%23",Gr[91]="%5B",Gr[93]="%5D",Gr[64]="%40",Gr[33]="%21",Gr[36]="%24",Gr[38]="%26",Gr[39]="%27",Gr[40]="%28",Gr[41]="%29",Gr[42]="%2A",Gr[43]="%2B",Gr[44]="%2C",Gr[59]="%3B",Gr[61]="%3D",Gr[32]="%20",Gr);function Bv(e,r){for(var n=void 0,a=-1,s=0;s<e.length;s++){var c=e.charCodeAt(s);if(c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||r&&c===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n!==void 0&&(n+=e.charAt(s));else{n===void 0&&(n=e.substr(0,s));var p=Dv[c];p!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n+=p):a===-1&&(a=s)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function H0(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Dv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function jv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,yu&&(n=n.replace(/\//g,"\\")),n}function up(e,r){var n=r?H0:Bv,a="",s=e.scheme,c=e.authority,p=e.path,m=e.query,v=e.fragment;if(s&&(a+=s,a+=":"),(c||s==="file")&&(a+=Bi,a+=Bi),c){var y=c.indexOf("@");if(y!==-1){var b=c.substr(0,y);c=c.substr(y+1),y=b.indexOf(":"),y===-1?a+=n(b,!1):(a+=n(b.substr(0,y),!1),a+=":",a+=n(b.substr(y+1),!1)),a+="@"}c=c.toLowerCase(),y=c.indexOf(":"),y===-1?a+=n(c,!1):(a+=n(c.substr(0,y),!1),a+=c.substr(y))}if(p){if(p.length>=3&&p.charCodeAt(0)===47&&p.charCodeAt(2)===58){var I=p.charCodeAt(1);I>=65&&I<=90&&(p="/"+String.fromCharCode(I+32)+":"+p.substr(3))}else if(p.length>=2&&p.charCodeAt(1)===58){var I=p.charCodeAt(0);I>=65&&I<=90&&(p=String.fromCharCode(I+32)+":"+p.substr(2))}a+=n(p,!0)}return m&&(a+="?",a+=n(m,!1)),v&&(a+="#",a+=r?v:Bv(v,!1)),a}function Vv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Vv(e.substr(3)):e}}var Uv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xc(e){return e.match(Uv)?e.replace(Uv,function(r){return Vv(r)}):e}var z0=function(){function e(r){try{this.patternRegExp=new RegExp(E0(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),G0=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new el(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),el=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Wv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var s=0,c=Object.keys(n.patternProperties);s<c.length;s++){var p=c[s],m=new RegExp(p);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[p])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var v=parseInt(a,10);if(!isNaN(v)&&n.items[v])return this.getSectionRecursive(r,n.items[v])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),$0=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=lp.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var s=[r],c=Object.keys(this.schemasById).map(function(y){return n.schemasById[y]});s.length;)for(var p=s.pop(),m=0;m<c.length;m++){var v=c[m];v&&(v.url===p||v.dependencies[p])&&(v.url!==p&&s.push(v.url),v.clearSchema(),c[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return lp.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,n[a])}}if(r.schemaAssociations){var c=r.schemaAssociations;for(var p in c){var m=c[p];this.contributionAssociations[p]=m;for(var v=this.getOrAddFilePatternAssociation(p),y=0,b=m;y<b.length;y++){var I=b[y],a=this.normalizeId(I);v.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new G0(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new z0(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,n)for(var c=0,p=n;c<p.length;c++){var m=p[c];this.getOrAddFilePatternAssociation(m).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(n),s=0,c=this.contributionAssociations[n];s<c.length;s++){var p=c[s],r=this.normalizeId(p);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Sc(r)+"'. No schema request service available";return this.promise.resolve(new el({},[n]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Sc(r)+"': No content.";return new el({},[s])}var c={},p=[];c=o0(a,p);var m=p.length?["Unable to parse content from '"+Sc(r)+"': Parse error at offset "+p[0].offset]:[];return new el(c,m)},function(a){var s="Unable to load schema from '"+Sc(r)+"': "+a.toString();return new el({},[s])})},e.prototype.resolveSchemaContent=function(r,n,a){var s=this,c=r.errors.slice(0),p=r.schema;if(p.$schema){var m=this.normalizeId(p.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Wv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var v=this.contextService,y=function(B,$){if(!$)return B;var K=B;return $[0]==="/"&&($=$.substr(1)),$.split("/").some(function(q){return K=K[q],!K}),K},b=function(B,$,K,q){var oe=y($,q);if(oe)for(var ae in oe)oe.hasOwnProperty(ae)&&!B.hasOwnProperty(ae)&&(B[ae]=oe[ae]);else c.push("$ref '"+q+"' in '"+K+"' can not be resolved.")},I=function(B,$,K,q,oe){v&&!/^\w+:\/\/.*/.test($)&&($=v.resolveRelativePath($,q)),$=s.normalizeId($);var ae=s.getOrAddSchemaHandle($);return ae.getUnresolvedSchema().then(function(pe){if(oe[$]=!0,pe.errors.length){var Ce=K?$+"#"+K:$;c.push("Problems loading reference '"+Ce+"': "+pe.errors[0]+".")}return b(B,pe.schema,$,K),D(B,pe.schema,$,ae.dependencies)})},D=function(B,$,K,q){if(!B||typeof B!="object")return Promise.resolve(null);for(var oe=[B],ae=[],pe=[],Ce=function(){for(var we=[],Fe=0;Fe<arguments.length;Fe++)we[Fe]=arguments[Fe];for(var Re=0,Ue=we;Re<Ue.length;Re++){var ze=Ue[Re];typeof ze=="object"&&oe.push(ze)}},Se=function(){for(var we=[],Fe=0;Fe<arguments.length;Fe++)we[Fe]=arguments[Fe];for(var Re=0,Ue=we;Re<Ue.length;Re++){var ze=Ue[Re];if(typeof ze=="object")for(var Ct in ze){var qe=ze[Ct];typeof qe=="object"&&oe.push(qe)}}},Pe=function(){for(var we=[],Fe=0;Fe<arguments.length;Fe++)we[Fe]=arguments[Fe];for(var Re=0,Ue=we;Re<Ue.length;Re++){var ze=Ue[Re];if(Array.isArray(ze))for(var Ct=0,qe=ze;Ct<qe.length;Ct++){var nr=qe[Ct];typeof nr=="object"&&oe.push(nr)}}},he=function(we){for(var Fe=[];we.$ref;){var Re=we.$ref,Ue=Re.split("#",2);if(delete we.$ref,Ue[0].length>0){pe.push(I(we,Ue[0],Ue[1],K,q));return}else Fe.indexOf(Re)===-1&&(b(we,$,K,Ue[1]),Fe.push(Re))}Ce(we.items,we.additionalProperties,we.not,we.contains,we.propertyNames,we.if,we.then,we.else),Se(we.definitions,we.properties,we.patternProperties,we.dependencies),Pe(we.anyOf,we.allOf,we.oneOf,we.items)};oe.length;){var me=oe.pop();ae.indexOf(me)>=0||(ae.push(me),he(me))}return s.promise.all(pe)};return D(p,p,n,a).then(function(B){return new Wv(p,c)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function($){return $.keyNode.value==="$schema"&&$.valueNode&&$.valueNode.type==="string"});if(a.length>0){var s=oo(a[0].valueNode);if(s&&C0(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var c=this.normalizeId(s);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}for(var p=Object.create(null),m=[],v=0,y=this.filePatternAssociations;v<y.length;v++){var b=y[v];if(b.matchesPattern(r))for(var I=0,D=b.getSchemas();I<D.length;I++){var B=D[I];p[B]||(m.push(B),p[B]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:n.map(function(c){return{$ref:c}})};return this.addSchemaHandle(a,s)},e}();function Sc(e){try{}catch(r){}return e}var K0=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},e.prototype.doValidation=function(r,n,a,s){var c=this;if(!this.validationEnabled)return this.promise.resolve([]);var p=[],m={},v=function(I){var D=I.range.start.line+" "+I.range.start.character+" "+I.message;m[D]||(m[D]=!0,p.push(I))},y=function(I){var D=a?Gv(a.trailingCommas):Ht.Error,B=a?Gv(a.comments):c.commentSeverity;if(I){if(I.errors.length&&n.root){var $=n.root,K=$.type==="object"?$.properties[0]:null;if(K&&K.keyNode.value==="$schema"){var q=K.valueNode||K,oe=sr.create(r.positionAt(q.offset),r.positionAt(q.offset+q.length));v(Ea.create(oe,I.errors[0],Ht.Warning,or.SchemaResolveError))}else{var oe=sr.create(r.positionAt($.offset),r.positionAt($.offset+1));v(Ea.create(oe,I.errors[0],Ht.Warning,or.SchemaResolveError))}}else{var ae=n.validate(r,I.schema);ae&&ae.forEach(v)}Hv(I.schema)&&(B=void 0),zv(I.schema)&&(D=void 0)}for(var pe=0,Ce=n.syntaxErrors;pe<Ce.length;pe++){var Se=Ce[pe];if(Se.code===or.TrailingComma){if(typeof D!="number")continue;Se.severity=D}v(Se)}if(typeof B=="number"){var Pe="Comments are not permitted in JSON.";n.comments.forEach(function(he){v(Ea.create(he,Pe,B,or.CommentNotPermitted))})}return p};if(s){var b=s.id||"schemaservice://untitled/"+Y0++;return this.jsonSchemaService.resolveSchemaContent(new el(s),b,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return y(I)})},e}(),Y0=0;function Hv(e){if(e&&typeof e=="object"){if(ea(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=Hv(a);if(ea(s))return s}}}function zv(e){if(e&&typeof e=="object"){if(ea(e.allowTrailingCommas))return e.allowTrailingCommas;if(ea(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=zv(a);if(ea(s))return s}}}function Gv(e){switch(e){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var $v=48,J0=57,X0=65,wc=97,Q0=102;function $r(e){return e<$v?0:e<=J0?e-$v:(e<wc&&(e+=wc-X0),e>=wc&&e<=Q0?e-wc+10:0)}function Z0(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:$r(e.charCodeAt(1))*17/255,green:$r(e.charCodeAt(2))*17/255,blue:$r(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:$r(e.charCodeAt(1))*17/255,green:$r(e.charCodeAt(2))*17/255,blue:$r(e.charCodeAt(3))*17/255,alpha:$r(e.charCodeAt(4))*17/255};case 7:return{red:($r(e.charCodeAt(1))*16+$r(e.charCodeAt(2)))/255,green:($r(e.charCodeAt(3))*16+$r(e.charCodeAt(4)))/255,blue:($r(e.charCodeAt(5))*16+$r(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:($r(e.charCodeAt(1))*16+$r(e.charCodeAt(2)))/255,green:($r(e.charCodeAt(3))*16+$r(e.charCodeAt(4)))/255,blue:($r(e.charCodeAt(5))*16+$r(e.charCodeAt(6)))/255,alpha:($r(e.charCodeAt(7))*16+$r(e.charCodeAt(8)))/255}}return null}function M1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var q0=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||op(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var D=0,B=I.properties;D<B.length;D++){var $=B[D];if($.keyNode.value==="key"&&$.valueNode){var K=Qs.create(r.uri,so(r,I));if(v.push({name:oo($.valueNode),kind:ta.Function,location:K}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var q=function(ae,pe,Ce){return p>=0&&(pe.type==="array"?pe.items.forEach(function(Se){return q(ae,Se,Ce)}):pe.type==="object"&&pe.properties.forEach(function(Se){if(p>=0){var Pe=Se.valueNode;if(Pe){p--;var he=Qs.create(r.uri,so(r,Se)),me=Ce?Ce+"."+Se.keyNode.value:Se.keyNode.value;ae.push({name:s.getKeyLabel(Se),kind:s.getSymbolKind(Pe.type),location:he,containerName:Ce}),q(ae,Pe,me)}}})),ae},oe=q([],c,void 0);return p<0&&(oe.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),oe},e.prototype.findDocumentSymbols2=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||op(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var D=0,B=I.properties;D<B.length;D++){var $=B[D];if($.keyNode.value==="key"&&$.valueNode){var K=so(r,I),q=so(r,$.keyNode);if(v.push({name:oo($.valueNode),kind:ta.Function,range:K,selectionRange:q}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var oe=function(pe,Ce){return p>=0&&(Ce.type==="array"?Ce.items.forEach(function(Se,Pe){if(Se&&p>=0){p--;var he=so(r,Se),me=he,we=String(Pe),Fe=oe([],Se);pe.push({name:we,kind:s.getSymbolKind(Se.type),range:he,selectionRange:me,children:Fe})}}):Ce.type==="object"&&Ce.properties.forEach(function(Se){var Pe=Se.valueNode;if(Pe&&p>=0){p--;var he=so(r,Se),me=so(r,Se.keyNode),we=oe([],Pe);pe.push({name:s.getKeyLabel(Se),kind:s.getSymbolKind(Pe.type),range:he,selectionRange:me,children:we})}})),pe},ae=oe([],c);return p<0&&(ae.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ae},e.prototype.getSymbolKind=function(r){switch(r){case"object":return ta.Module;case"string":return ta.String;case"number":return ta.Number;case"array":return ta.Array;case"boolean":return ta.Boolean;default:return ta.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(s){var c=[];if(s)for(var p=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(s.schema),v={},y=0,b=m;y<b.length;y++){var I=b[y];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var D=String(I.node.offset);if(!v[D]){var B=Z0(oo(I.node));if(B){var $=so(r,I.node);c.push({color:B,range:$})}if(v[D]=!0,p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),c}}}return c})},e.prototype.getColorPresentations=function(r,n,a,s){var c=[],p=Math.round(a.red*255),m=Math.round(a.green*255),v=Math.round(a.blue*255);function y(I){var D=I.toString(16);return D.length!==2?"0"+D:D}var b;return a.alpha===1?b="#"+y(p)+y(m)+y(v):b="#"+y(p)+y(m)+y(v)+y(Math.round(a.alpha*255)),c.push({label:b,textEdit:di.replace(s,JSON.stringify(b))}),c},e}();function so(e,r){return sr.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var _0={schemaAssociations:{},schemas:{}};function eb(e,r){var n=[],a=[],s=[],c=-1,p=Xs(e.getText(),!1),m=p.scan();function v(Fe){n.push(Fe),a.push(s.length)}for(;m!==17;){switch(m){case 1:case 3:{var y=e.positionAt(p.getTokenOffset()).line,b={startLine:y,endLine:y,kind:m===1?"object":"array"};s.push(b);break}case 2:case 4:{var I=m===2?"object":"array";if(s.length>0&&s[s.length-1].kind===I){var b=s.pop(),D=e.positionAt(p.getTokenOffset()).line;b&&D>b.startLine+1&&c!==b.startLine&&(b.endLine=D-1,v(b),c=b.startLine)}break}case 13:{var y=e.positionAt(p.getTokenOffset()).line,B=e.positionAt(p.getTokenOffset()+p.getTokenLength()).line;p.getTokenError()===1&&y+1<e.lineCount?p.setPosition(e.offsetAt(ci.create(y+1,0))):y<B&&(v({startLine:y,endLine:B,kind:pu.Comment}),c=y);break}case 12:{var $=e.getText().substr(p.getTokenOffset(),p.getTokenLength()),K=$.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(K){var D=e.positionAt(p.getTokenOffset()).line;if(K[1]){var b={startLine:D,endLine:D,kind:pu.Region};s.push(b)}else{for(var q=s.length-1;q>=0&&s[q].kind!==pu.Region;)q--;if(q>=0){var b=s[q];s.length=q,D>b.startLine&&c!==b.startLine&&(b.endLine=D,v(b),c=b.startLine)}}}break}}m=p.scan()}var oe=r&&r.rangeLimit;if(typeof oe!="number"||n.length<=oe)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ae=[],pe=0,Ce=a;pe<Ce.length;pe++){var Se=Ce[pe];Se<30&&(ae[Se]=(ae[Se]||0)+1)}for(var Pe=0,he=0,q=0;q<ae.length;q++){var me=ae[q];if(me){if(me+Pe>oe){he=q;break}Pe+=me}}for(var we=[],q=0;q<n.length;q++){var Se=a[q];typeof Se=="number"&&(Se<he||Se===he&&Pe++<oe)&&we.push(n[q])}return we}function tb(e,r,n){function a(m){for(var v=e.offsetAt(m),y=n.getNodeFromOffset(v,!0),b=[];y;){switch(y.type){case"string":case"object":case"array":var I=y.offset+1,D=y.offset+y.length-1;I<D&&v>=I&&v<=D&&b.push(s(I,D)),b.push(s(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":b.push(s(y.offset,y.offset+y.length));break}if(y.type==="property"||y.parent&&y.parent.type==="array"){var B=p(y.offset+y.length,5);B!==-1&&b.push(s(y.offset,B))}y=y.parent}for(var $=void 0,K=b.length-1;K>=0;K--)$=yc.create(b[K],$);return $||($=yc.create(sr.create(m,m))),$}function s(m,v){return sr.create(e.positionAt(m),e.positionAt(v))}var c=Xs(e.getText(),!0);function p(m,v){c.setPosition(m);var y=c.scan();return y===v?c.getTokenOffset()+c.getTokenLength():-1}return r.map(a)}function rb(e){var r=e.promiseConstructor||Promise,n=new $0(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(_0);var a=new P0(n,e.contributions,r,e.clientCapabilities),s=new I0(n,e.contributions,r),c=new q0(n),p=new K0(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(v){n.registerExternalSchema(v.uri,v.fileMatch,v.schema)}),p.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:p.doValidation.bind(p),parseJSONDocument:function(m){return A0(m,{collectComments:!0})},newJSONDocument:function(m,v){return w0(m,v)},doComplete:a.doComplete.bind(a),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findDocumentSymbols2.bind(c),findColorSymbols:function(m,v){return c.findDocumentColors(m,v).then(function(y){return y.map(function(b){return b.range})})},findDocumentColors:c.findDocumentColors.bind(c),getColorPresentations:c.getColorPresentations.bind(c),doHover:s.doHover.bind(s),getFoldingRanges:eb,getSelectionRanges:tb,format:function(m,v,y){var b=void 0;if(v){var I=m.offsetAt(v.start),D=m.offsetAt(v.end)-I;b={offset:I,length:D}}var B={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
276
+ `};return f0(m.getText(),b,B).map(function($){return di.replace(sr.create(m.positionAt($.offset),m.positionAt($.offset+$.length)),$.content)})}}}var L1=o(49055),N1=o(32407),D1=o(29387),B1=o(22130),j1=o(61682),V1=o(19757),U1=o(76239),W1=o(49032),H1=o(4570),z1=o(79375),Kv=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const tl=rb({});Ys.registerHelper("lint","json",function(e,r){return Kv(this,null,function*(){const{schema:n,setError:a}=r;tl.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const s=bc.create(r.id+".json","json",0,e),c=tl.parseJSONDocument(s),p=yield tl.doValidation(s,c);return p.length?a&&a(p[0].message):a&&a(void 0),p.map(m=>({from:Ys.Pos(m.range.start.line,m.range.start.character),to:Ys.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),Ys.registerHelper("hint","json",(e,r)=>Kv(void 0,null,function*(){const n=r.schema;if(!n)return;tl.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),s=e.getTokenAt(a),c=bc.create(r.id+".json","json",0,e.getValue()),p=tl.parseJSONDocument(c),m=yield tl.doComplete(c,{line:a.line,character:a.ch},p),v=b=>{let I="";for(;b--;)I+=" ";return I};let y=m?m.items.map(b=>({text:b.insertText,displayText:b.label,filter:b.filterText||b.label,from:{line:b.textEdit.range.start.line,ch:b.textEdit.range.start.character},to:{line:b.textEdit.range.end.line,ch:b.textEdit.range.end.character},hint:(I,D,B)=>{const $="_$__REDOC_CURSOR_HERE";let K=B.text.replace(/(\$1|\${1:[^}]+})/,$)||"";if(K=K.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(B.from,B.to),K.indexOf(`
277
+ `)>-1){const oe=I.getLine(I.getCursor().line).search(/(\S|$)/);K=K.replace(/\n/g,`
278
+ `+v(oe))}I.replaceSelection(K);const q=I.getSearchCursor($,B.from);q.findNext()&&(I.setCursor(q.from()),q.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(y=y.filter(b=>b.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:Ys.Pos(a.line,s.start),to:Ys.Pos(a.line,a.ch),list:y}}));const nb=Qt.vJ`
279
279
  .cm-s-material.CodeMirror {
280
280
  background-color: var(--panel-samples-controls-background-color)!important;
281
281
  color: var(--text-color-inverse)!important;
@@ -323,7 +323,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.i
323
323
  flex: 1;
324
324
  border-radius: var(--panel-border-radius);
325
325
  }
326
- `,nb=Aa(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:s,id:c,mode:p,schema:m})=>{let v;const y=(oe,ae)=>{/^[a-zA-Z0-9_":]$/.test(ae.key)&&v.execCommand("autocomplete")},b=oe=>{v=oe,v.on("keyup",y)},I=()=>{v.refresh()},R=()=>v.showHint({completeSingle:!0});(0,Bt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Bt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:N}=e,{setValue:G,setTouched:ee,setError:q}=r;return L.createElement(L.Fragment,null,L.createElement(rb,null),L.createElement(Jy.fk,{editorDidMount:b,value:N||"",ref:s,onBeforeChange:(oe,ae,pe)=>{G(pe),n&&n(pe)},onBlur:oe=>{ee(!1),a&&a(oe)},options:{mode:p||lc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":R,"Ctrl-Space":R},hintOptions:{id:c,completeSingle:!1,schema:m},lint:{id:c,schema:m,setError:q}}}))});function ib({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:s,formApi:c,getActiveSample:p,validate:m}){const v=e.examples||{},y=Object.keys(v),b=e.schema,I=Zi(b||{},e.name)||e.name===lc.Tr.MULTIPART||e.name===lc.Tr.URL_ENCODED,{exampleKey:R}=(0,$d.C6)(e.operation,v),N=(0,pt.YQ)((0,ar.P6)(a,e.name,R,v))||(0,ar.oY)(v[R],n),G=(0,L.useCallback)((oe="",ae="",pe=[])=>ve=>{(0,pt.WW)((0,ar.P6)(a,oe,ae,pe),ve)},[a]),ee=(0,L.useCallback)(oe=>{r==null||r.activateExampleName(oe),c.setValue("body",p(oe))},[c,p,r]),q=(0,L.useCallback)((oe,ae)=>{c.setValue(`body.${oe}`,ae)},[c]);return L.createElement(L.Fragment,null,y.length&&y.length!==1&&L.createElement($d.b_,{examples:v,onChange:ee,exampleKey:R,panel:"try-it"})||null,I?L.createElement(Ky,{mediaType:e,formApi:c,onChange:q}):L.createElement(nb,{id:"body"+a,field:"body",initialValue:N,schema:((s==null?void 0:s.content[e.name])||{}).schema,mode:e.name,validate:m,onChange:G(e.name,R,v)}))}const ab=(0,A.Pi)(ib);var ob=Object.defineProperty,sb=Object.defineProperties,lb=Object.getOwnPropertyDescriptors,Yv=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,Jv=(e,r,n)=>r in e?ob(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,cb=(e,r)=>{for(var n in r||(r={}))ub.call(r,n)&&Jv(e,n,r[n]);if(Yv)for(var n of Yv(r))fb.call(r,n)&&Jv(e,n,r[n]);return e},db=(e,r)=>sb(e,lb(r));function pb({body:e,formApi:r,resolvedBody:n,properties:a,id:s,validate:c}){var p,m;const v=e.content,y=(0,L.useCallback)(R=>{var N;if(!v||!v.hasSample)return"";const G=(N=v.active)==null?void 0:N.examples;if(!(G!=null&&G[R]))return"";const ee=G==null?void 0:G[R].value,q=a?Hl()(ee,a,{arrayMerge:io.lN}):ee;return JSON.stringify(q,null,2)},[v,a]),b=(p=v==null?void 0:v.operation)==null?void 0:p.activeExampleName;(0,L.useEffect)(()=>{var R,N;if((R=v==null?void 0:v.operation)!=null&&R.activeMimeName){const G=(0,ar.P6)(s,v.operation.activeMimeName,b,(N=v==null?void 0:v.active)==null?void 0:N.examples);r.setValue("body",(0,pt.YQ)(G)||y(b||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[b,(m=v==null?void 0:v.operation)==null?void 0:m.activeMimeName,v==null?void 0:v.active]);const I=R=>L.createElement(Vy.C,db(cb({},R),{variant:"dark",fullWidth:!0,Label:Hy,Dropdown:Wy.Lt}));return L.createElement(L.Fragment,null,L.createElement(Uy.d,{content:e.content,renderDropdown:I},R=>L.createElement(ab,{mediaType:R,mediaContent:v,resolvedBody:n,id:s,properties:a,getActiveSample:y,formApi:r,validate:c})))}const hb=(0,A.Pi)(pb);var vb=o(61687);const gb=Aa(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,s]=(0,L.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),s(v.value)};(0,Bt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";s(v),n.setValue(v)}else s(e),n.setValue(e)});const m=()=>{n.setValue(""),s("")};return L.createElement(Nn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:m,onChange:p})}),mb=({name:e,param:r,place:n,renderParameter:a})=>{var s,c,p,m,v;const[y,b]=L.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},R=G=>{b(y.filter(ee=>ee!==G))},N=(s=r.schema.items)!=null&&s.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(m=r.schema.items)==null?void 0:m.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return L.createElement(L.Fragment,null,L.createElement(Xv,null,L.createElement(ht.lX,{required:r.required},e,"(",y.length," items)"),L.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map((G,ee)=>L.createElement(Xv,{key:G},L.createElement(yb,{onClick:()=>R(G)},"delete"),N.map(q=>a(q,n,`${e}.[${G}]`,`[${ee}]${q.name&&"."+q.name}`)))))},Xv=Qt.ZP.div`
326
+ `,ib=Aa(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:s,id:c,mode:p,schema:m})=>{let v;const y=(oe,ae)=>{/^[a-zA-Z0-9_":]$/.test(ae.key)&&v.execCommand("autocomplete")},b=oe=>{v=oe,v.on("keyup",y)},I=()=>{v.refresh()},D=()=>v.showHint({completeSingle:!0});(0,Bt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Bt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:B}=e,{setValue:$,setTouched:K,setError:q}=r;return M.createElement(M.Fragment,null,M.createElement(nb,null),M.createElement(Xy.fk,{editorDidMount:b,value:B||"",ref:s,onBeforeChange:(oe,ae,pe)=>{$(pe),n&&n(pe)},onBlur:oe=>{K(!1),a&&a(oe)},options:{mode:p||lc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":D,"Ctrl-Space":D},hintOptions:{id:c,completeSingle:!1,schema:m},lint:{id:c,schema:m,setError:q}}}))});function ab({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:s,formApi:c,getActiveSample:p,validate:m}){const v=e.examples||{},y=Object.keys(v),b=e.schema,I=Zi(b||{},e.name)||e.name===lc.Tr.MULTIPART||e.name===lc.Tr.URL_ENCODED,{exampleKey:D}=(0,$d.C6)(e.operation,v),B=(0,dt.YQ)((0,ar.P6)(a,e.name,D,v))||(0,ar.oY)(v[D],n),$=(0,M.useCallback)((oe="",ae="",pe=[])=>Ce=>{(0,dt.WW)((0,ar.P6)(a,oe,ae,pe),Ce)},[a]),K=(0,M.useCallback)(oe=>{r==null||r.activateExampleName(oe),c.setValue("body",p(oe))},[c,p,r]),q=(0,M.useCallback)((oe,ae)=>{c.setValue(`body.${oe}`,ae)},[c]);return M.createElement(M.Fragment,null,y.length&&y.length!==1&&M.createElement($d.b_,{examples:v,onChange:K,exampleKey:D,panel:"try-it"})||null,I?M.createElement(Yy,{mediaType:e,formApi:c,onChange:q}):M.createElement(ib,{id:"body"+a,field:"body",initialValue:B,schema:((s==null?void 0:s.content[e.name])||{}).schema,mode:e.name,validate:m,onChange:$(e.name,D,v)}))}const ob=(0,A.Pi)(ab);var sb=Object.defineProperty,lb=Object.defineProperties,ub=Object.getOwnPropertyDescriptors,Yv=Object.getOwnPropertySymbols,fb=Object.prototype.hasOwnProperty,cb=Object.prototype.propertyIsEnumerable,Jv=(e,r,n)=>r in e?sb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,db=(e,r)=>{for(var n in r||(r={}))fb.call(r,n)&&Jv(e,n,r[n]);if(Yv)for(var n of Yv(r))cb.call(r,n)&&Jv(e,n,r[n]);return e},pb=(e,r)=>lb(e,ub(r));function hb({body:e,formApi:r,resolvedBody:n,properties:a,id:s,validate:c}){var p,m;const v=e.content,y=(0,M.useCallback)(D=>{var B;if(!v||!v.hasSample)return"";const $=(B=v.active)==null?void 0:B.examples;if(!($!=null&&$[D]))return"";const K=$==null?void 0:$[D].value,q=a?Hl()(K,a,{arrayMerge:io.lN}):K;return JSON.stringify(q,null,2)},[v,a]),b=(p=v==null?void 0:v.operation)==null?void 0:p.activeExampleName;(0,M.useEffect)(()=>{var D,B;if((D=v==null?void 0:v.operation)!=null&&D.activeMimeName){const $=(0,ar.P6)(s,v.operation.activeMimeName,b,(B=v==null?void 0:v.active)==null?void 0:B.examples);r.setValue("body",(0,dt.YQ)($)||y(b||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[b,(m=v==null?void 0:v.operation)==null?void 0:m.activeMimeName,v==null?void 0:v.active]);const I=D=>M.createElement(Uy.C,pb(db({},D),{variant:"dark",fullWidth:!0,Label:zy,Dropdown:Hy.Lt}));return M.createElement(M.Fragment,null,M.createElement(Wy.d,{content:e.content,renderDropdown:I},D=>M.createElement(ob,{mediaType:D,mediaContent:v,resolvedBody:n,id:s,properties:a,getActiveSample:y,formApi:r,validate:c})))}const vb=(0,A.Pi)(hb);var Xv=o(61687);const gb=Aa(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,s]=(0,M.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),s(v.value)};(0,Bt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";s(v),n.setValue(v)}else s(e),n.setValue(e)});const m=()=>{n.setValue(""),s("")};return M.createElement(Nn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:m,onChange:p})}),mb=({name:e,param:r,place:n,renderParameter:a})=>{var s,c,p,m,v;const[y,b]=M.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},D=$=>{b(y.filter(K=>K!==$))},B=(s=r.schema.items)!=null&&s.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(m=r.schema.items)==null?void 0:m.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return M.createElement(M.Fragment,null,M.createElement(Qv,null,M.createElement(ht.lX,{required:r.required},e,"(",y.length," items)"),M.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map(($,K)=>M.createElement(Qv,{key:$},M.createElement(yb,{onClick:()=>D($)},"delete"),B.map(q=>a(q,n,`${e}.[${$}]`,`[${K}]${q.name&&"."+q.name}`)))))},Qv=Qt.ZP.div`
327
327
  display: flex;
328
328
  width: 100%;
329
329
  align-items: center;
@@ -349,7 +349,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.i
349
349
  border: none;
350
350
  cursor: pointer;
351
351
  position: relative;
352
- `;var bu=(e=>(e.ARRAY="array",e.OBJECT="object",e))(bu||{});function bb({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function xb(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function Sb({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===bu.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function wb(e){if(e.type===bu.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,pt.Kn)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function Ab({oneOfType:e}){return e}const Cb=["path","query","cookie","header"];function Eb({id:e,param:r,values:n}){const a=(0,L.useMemo)(()=>Sb(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,c=wb(r.schema),p=e.split(".").map(m=>(0,pt.dw)(m));return s?L.createElement(ht.NI,null,L.createElement(gb,{initValue:c,paramEnum:s,field:e})):L.createElement(Bn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:bb(r),validate:a,initialValue:c||(0,pt.U2)(n,p),validateOnBlur:!0,validateOnChange:!0})}function Ob({values:e,operation:r}){const n=(0,L.useMemo)(()=>xb(r.parameters||[]),[r]),a=(c,p,m,v)=>{var y;const b=m?(0,pt.s1)(m,c.name):c.name,I=Ab(c.schema),R=m?[p,m]:[c.in],N=(0,pt.s1)(...R,(0,pt.A8)(c.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),c.schema.type===bu.ARRAY?L.createElement(mb,{key:N,name:b,param:c,place:p,renderParameter:a}):c.schema.type===bu.OBJECT?(y=c.schema.fields)==null?void 0:y.map(G=>a(G,p,b)):L.createElement(ht.NI,{key:N},L.createElement(ht.lX,{required:c.required},v||b,":"),I?L.createElement(ht.GE,null,"Unsupported field schema definition"):L.createElement(Eb,{id:N,param:c,values:e}))},s=c=>{const p=n[c];return!p||!p.length?null:L.createElement(L.Fragment,{key:c},L.createElement(ht.NI,null,L.createElement(ht.iG,null," # ",c," parameters "),L.createElement("span",null,"\xA0")),p.map(m=>a(m,c)))};return L.createElement(ht.iA,null,Cb.map(s))}var Tb=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function Pb(e){return Tb(this,null,function*(){return(yield fetch(e)).json()})}const Ib=Qt.ZP.div`
352
+ `;var bu=(e=>(e.ARRAY="array",e.OBJECT="object",e))(bu||{});function bb({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function xb(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function Sb({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===bu.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function wb(e){if(e.type===bu.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,dt.Kn)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function Ab({oneOfType:e}){return e}const Cb=["path","query","cookie","header"];function Eb({id:e,param:r,values:n}){const a=(0,M.useMemo)(()=>Sb(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,c=wb(r.schema),p=e.split(".").map(m=>(0,dt.dw)(m));return s?M.createElement(ht.NI,null,M.createElement(gb,{initValue:c,paramEnum:s,field:e})):M.createElement(Bn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:bb(r),validate:a,initialValue:c||(0,dt.U2)(n,p),validateOnBlur:!0,validateOnChange:!0})}function Ob({values:e,operation:r}){const n=(0,M.useMemo)(()=>xb(r.parameters||[]),[r]),a=(c,p,m,v)=>{var y;const b=m?(0,dt.s1)(m,c.name):c.name,I=Ab(c.schema),D=m?[p,m]:[c.in],B=(0,dt.s1)(...D,(0,dt.A8)(c.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),c.schema.type===bu.ARRAY?M.createElement(mb,{key:B,name:b,param:c,place:p,renderParameter:a}):c.schema.type===bu.OBJECT?(y=c.schema.fields)==null?void 0:y.map($=>a($,p,b)):M.createElement(ht.NI,{key:B},M.createElement(ht.lX,{required:c.required},v||b,":"),I?M.createElement(ht.GE,null,"Unsupported field schema definition"):M.createElement(Eb,{id:B,param:c,values:e}))},s=c=>{const p=n[c];return!p||!p.length?null:M.createElement(M.Fragment,{key:c},M.createElement(ht.NI,null,M.createElement(ht.iG,null," # ",c," parameters "),M.createElement("span",null,"\xA0")),p.map(m=>a(m,c)))};return M.createElement(ht.iA,null,Cb.map(s))}var Tb=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function Pb(e){return Tb(this,null,function*(){return(yield fetch(e)).json()})}const Ib=Qt.ZP.div`
353
353
  position: relative;
354
354
  height: 4px;
355
355
  display: block;
@@ -451,7 +451,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.i
451
451
  right: -8%;
452
452
  }
453
453
  }
454
- `,Qv=()=>L.createElement(Ib,null,L.createElement("div",{className:"indeterminate"})),Fb=Qt.ZP.div`
454
+ `,Zv=()=>M.createElement(Ib,null,M.createElement("div",{className:"indeterminate"})),Fb=Qt.ZP.div`
455
455
  font-family: var(--font-family-monospaced);
456
456
  margin-top: 10px;
457
457
  line-height: 1;
@@ -463,7 +463,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.i
463
463
  padding: 8px 0 20px;
464
464
  `,Mb=Qt.ZP.div`
465
465
  padding: 4px 0;
466
- `;var Lb=Object.defineProperty,Nb=Object.defineProperties,Db=Object.getOwnPropertyDescriptors,Zv=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,jb=Object.prototype.propertyIsEnumerable,qv=(e,r,n)=>r in e?Lb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Vb=(e,r)=>{for(var n in r||(r={}))Bb.call(r,n)&&qv(e,n,r[n]);if(Zv)for(var n of Zv(r))jb.call(r,n)&&qv(e,n,r[n]);return e},Ub=(e,r)=>Nb(e,Db(r));const Wb=Qt.ZP.input`
466
+ `;var Lb=Object.defineProperty,Nb=Object.defineProperties,Db=Object.getOwnPropertyDescriptors,qv=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,jb=Object.prototype.propertyIsEnumerable,_v=(e,r,n)=>r in e?Lb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Vb=(e,r)=>{for(var n in r||(r={}))Bb.call(r,n)&&_v(e,n,r[n]);if(qv)for(var n of qv(r))jb.call(r,n)&&_v(e,n,r[n]);return e},Ub=(e,r)=>Nb(e,Db(r));const Wb=Qt.ZP.input`
467
467
  cursor: pointer;
468
468
  margin-left: 0;
469
469
  margin-right: 5px;
@@ -496,12 +496,12 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.i
496
496
  margin-top: 5px;
497
497
  }
498
498
  `}
499
- `;function Gb(e,r){const{fullWidth:n,id:a,label:s,nowrap:c}=e;return L.createElement(zb,{fullWidth:n,nowrap:c},L.createElement(Wb,Ub(Vb({},e),{type:"checkbox",ref:r})),L.createElement(Hb,{htmlFor:a},s))}const _v=(0,L.forwardRef)(Gb),$b=11,Kb=Aa(({items:e,fieldApi:r,validateOnChange:n,maxDisplayedItems:a,showControls:s,trimItemsLength:c})=>{const[p,m]=(0,L.useState)(!0),v=q=>{const oe=q.target.value,ae=q.target.checked;r.setTouched(!0);const pe=r.getValue()||[];let ve;if(ae)ve=[...pe,oe];else{const me=pe.indexOf(oe);ve=[...pe.slice(0,me),...pe.slice(me+1)]}r.setValue(ve)},y=q=>r.getValue().includes(q),b=()=>{m(q=>!q)},I=()=>{r.setValue(e)},R=()=>{r.setValue([])},N=r.getError(),G=a||$b,ee=c&&p?e.slice(0,G):e;return L.createElement("div",null,s?L.createElement(Yb,null,L.createElement(Bt.SamplesControlButton,{onClick:()=>{I()}},"Select all"),L.createElement(Bt.SamplesControlButton,{onClick:()=>{R()}},"Clear")):null,L.createElement("div",null,ee.map(q=>L.createElement(_v,{fullWidth:!0,id:q,value:q,checked:y(q),label:q,key:q,onChange:oe=>{v(oe),n&&r.validate()}})),e.length>G&&c?L.createElement(Jb,{onClick:()=>{b()}},p?"Show all":"Collapse"):null),N?L.createElement(ht.Xq,null,N):"")}),Yb=(0,Qt.ZP)(Bt.SampleControls)`
499
+ `;function Gb(e,r){const{fullWidth:n,id:a,label:s,nowrap:c}=e;return M.createElement(zb,{fullWidth:n,nowrap:c},M.createElement(Wb,Ub(Vb({},e),{type:"checkbox",ref:r})),M.createElement(Hb,{htmlFor:a},s))}const eg=(0,M.forwardRef)(Gb),$b=11,Kb=Aa(({items:e,fieldApi:r,validateOnChange:n,maxDisplayedItems:a,showControls:s,trimItemsLength:c})=>{const[p,m]=(0,M.useState)(!0),v=q=>{const oe=q.target.value,ae=q.target.checked;r.setTouched(!0);const pe=r.getValue()||[];let Ce;if(ae)Ce=[...pe,oe];else{const Se=pe.indexOf(oe);Ce=[...pe.slice(0,Se),...pe.slice(Se+1)]}r.setValue(Ce)},y=q=>r.getValue().includes(q),b=()=>{m(q=>!q)},I=()=>{r.setValue(e)},D=()=>{r.setValue([])},B=r.getError(),$=a||$b,K=c&&p?e.slice(0,$):e;return M.createElement("div",null,s?M.createElement(Yb,null,M.createElement(Bt.SamplesControlButton,{onClick:()=>{I()}},"Select all"),M.createElement(Bt.SamplesControlButton,{onClick:()=>{D()}},"Clear")):null,M.createElement("div",null,K.map(q=>M.createElement(eg,{fullWidth:!0,id:q,value:q,checked:y(q),label:q,key:q,onChange:oe=>{v(oe),n&&r.validate()}})),e.length>$&&c?M.createElement(Jb,{onClick:()=>{b()}},p?"Show all":"Collapse"):null),B?M.createElement(ht.Xq,null,B):"")}),Yb=(0,Qt.ZP)(Bt.SampleControls)`
500
500
  opacity: 1;
501
501
  text-align: left;
502
502
  `,Jb=(0,Qt.ZP)(Bt.SamplesControlButton)`
503
503
  float: right;
504
- `;function eg(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,pt.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?L.createElement(L.Fragment,null):L.createElement(ht.NI,null,L.createElement(ht.lX,null," Scopes: "),L.createElement(Kb,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const Xb=({token:e,loading:r,error:n})=>r?L.createElement(ht.GE,null,"Please, finish your authorization flow or cancel authorization."):n?L.createElement(Fb,null,L.createElement(ht.Xq,null,n)):e!=null&&e.access_token?null:L.createElement(ht.GE,null," No Access Token. Please, Authorize. ");var Qb=Object.defineProperty,Zb=Object.defineProperties,qb=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,_b=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?Qb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ac=(e,r)=>{for(var n in r||(r={}))_b.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))ex.call(r,n)&&rg(e,n,r[n]);return e},fp=(e,r)=>Zb(e,qb(r)),tx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function rx(e){if(!e)return"Field is required"}const Cc=({usePkce:e,form:r,id:n,formApi:a,flow:s,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:m,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:R})=>{var N,G,ee,q;const{oAuth2RedirectURI:oe,routingBasePath:ae}=(0,L.useContext)(Xf.jI),[pe,ve]=(0,L.useState)(null),[me,Te]=(0,L.useState)(!1),[Ae,Se]=(0,L.useState)(!1),[Ce,Fe]=(0,L.useState)(void 0),[Re,Ue]=(0,L.useState)(void 0),[ze,Ct]=(0,L.useState)(void 0),qe=((G=(N=r.values)==null?void 0:N.auth)==null?void 0:G[n])||{},nr=((q=(ee=r.errors)==null?void 0:ee.auth)==null?void 0:q[n])||{},ur=Ce!==void 0&&Re!==ze?{label:"sync",onClick:()=>{Ce&&Ue(ze)}}:void 0;(0,L.useEffect)(()=>{if(e){const Wt=(0,io.CY)(43);ch(Wt).then(Kt=>{Fe(Wt),Ue(Kt),Ct(Kt)})}},[e]);const jt=Wt=>{if(!Wt||(a.validate(),!(0,io.Qr)(nr)))return;Te(!0),ve(null);const Kt=p?p+(0,ar.jg)(Wt):Wt,qr=p&&c?p+(0,ar.jg)(c):c,Un=a.getValue(`auth.${n}.scopes`),pi={authorizationUrl:Kt.startsWith("http")?Kt:v+Kt,clientId:qe.client_id,scopes:Un,redirectUri:oe,routingBasePath:ae,successCallback:Vr=>{a.setValue(`auth.${n}.token`,Vr),Te(!1),ve(null)},errorCallback:Vr=>{Te(!1),ve((Vr==null?void 0:Vr.message)||"Failed to retrieve the access token")}};if(s==="implicit"&&Di.authorizeImplicit(pi),!(0,ar.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}s==="authorizationCode"&&Di.authorizeAuthorizationCode(Ac(fp(Ac({},pi),{tokenUrl:qr!=null&&qr.startsWith("http")?qr:v+qr,clientSecret:qe.client_secret,extraHeaders:(0,ar.Or)({authMethod:m,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:Ce,codeChallenge:Re}))},fr=()=>{cr(),ve(null)},$t=()=>{Te(!1),ve(null),Di.clearRedirectData(s)},cr=()=>{a.setValue(`auth.${n}.token`,"")},wr=()=>{Se(Wt=>!Wt)},Ut=Wt=>tx(void 0,[Wt],function*({target:{value:Kt}}){const qr=yield ch(Kt);Fe(Kt),Ct(qr)});if(!b)return L.createElement(ht.Xq,null,"No flow info");let ft=(0,pt.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);ft=ft?JSON.parse(ft):"";const Ot=(0,pt.Al)(n,"client_id"),Zt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),initValue:(0,pt.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:rx,validateOnBlur:!0,validateOnChange:!0};return L.createElement("div",null,L.createElement(ht.n5,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null," Client ID: "),Ot?L.createElement(uu,fp(Ac({},Zt),{options:Ot})):L.createElement(Bn,fp(Ac({},Zt),{"data-cy":"client-id-input",panel:"try-it"}))),s==="authorizationCode"&&L.createElement(L.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client Secret:"),L.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,pt.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&L.createElement(Rb,null,L.createElement(_v,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:Ae,onChange:wr,"data-cy":"pkce-options-toggle"}),Ae&&L.createElement(Mb,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Code Verifier"),L.createElement(lu,{fullWidth:!0,value:Ce,onChange:Ut,panel:"try-it","data-cy":"code-verifier-input"})),L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Code Challenge"),L.createElement(lu,{fullWidth:!0,value:Re,onChange:({target:{value:Wt}})=>{Ue(Wt)},inputActionButton:ur,panel:"try-it","data-cy":"code-challenge-input"}))))),L.createElement(Bn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:ft,panel:"try-it"}),L.createElement(eg,{id:n,scopes:y}),qe.token&&qe.token.access_token?L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token: "),L.createElement(lu,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),L.createElement(kb,null,qe.token&&qe.token.access_token?L.createElement(Bt.Button,{fullWidth:!0,onClick:fr},"Log out"):me?L.createElement(L.Fragment,null,L.createElement(Bt.Button,{fullWidth:!0,onClick:$t},"Cancel"),L.createElement(Qv,null)):L.createElement(Bt.Button,{fullWidth:!0,disabled:!(0,io.Qr)(nr),onClick:()=>{jt(b)}},"Authorize")),me||pe||!qe.token||!qe.token.access_token&&L.createElement(Xb,{loading:me,error:pe,token:qe.token}))};var nx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function ix(e){var r,n;const{scheme:a,defaultValues:s}=e,[c,p]=(0,L.useState)({}),[m,v]=(0,L.useState)(),[y,b]=(0,L.useState)(!1);(0,L.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=R=>nx(this,null,function*(){b(!0),v("");try{const N=yield Pb(R);p(N)}catch(N){v(N.message)}b(!1)});return y?L.createElement(ax,null):m?L.createElement(ng,{message:m}):L.createElement("div",null,L.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?L.createElement(L.Fragment,null,L.createElement(Nn.S6,null,"OAuth2 Implicit Flow"),L.createElement(Cc,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:s})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?L.createElement(L.Fragment,null,L.createElement(Nn.S6,null,"OAuth2 Authorization Flow"),L.createElement(Cc,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):L.createElement("div",null,"Unsupported flow")))}function ax(){return L.createElement("div",null,L.createElement("div",null,L.createElement("div",null,"Fetching OpenID Connect metadata..."),L.createElement(Qv,null)))}function ng({message:e}){return L.createElement("div",null,L.createElement("div",null,L.createElement(ht.Xq,null,e)))}var ox=Object.defineProperty,sx=Object.defineProperties,lx=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,ux=Object.prototype.hasOwnProperty,fx=Object.prototype.propertyIsEnumerable,ag=(e,r,n)=>r in e?ox(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,og=(e,r)=>{for(var n in r||(r={}))ux.call(r,n)&&ag(e,n,r[n]);if(ig)for(var n of ig(r))fx.call(r,n)&&ag(e,n,r[n]);return e},sg=(e,r)=>sx(e,lx(r)),cx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function dx(e){if(!e)return"Token is required"}const px=({form:e,id:r,formApi:n,server:a,flow:s,authCorsProxyUrl:c,defaultValues:p,clientId:m})=>{var v,y,b,I;const[R,N]=(0,L.useState)(""),[G,ee]=(0,L.useState)(!1),[q,oe]=(0,L.useState)(!0),ae=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},ve=()=>{n.setValue(`auth.${r}.token`,""),(0,pt.WW)(`auth.${r}.token`,"")},me=()=>{oe(Re=>!Re)},Te=()=>cx(void 0,null,function*(){if(G)return;const Re=c&&s.tokenUrl?c+(0,ar.jg)(s.tokenUrl):s.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const Ue=ae.client_id,ze=ae.client_secret;if(!Ue||!ze){console.log("Provide client_id and client_secret");return}ee(!0);const Ct=s["x-tokenEndpointAuthMethod"];if(!(0,ar.xl)(Ct)){console.log(`Unsupported token endpoint auth method: ${Ct}`);return}yield Di.authorizeClientCredentials({tokenUrl:Re.startsWith("http")?Re:a+Re,clientId:Ue,clientSecret:ze,scopes:ae.scopes,extraHeaders:(0,ar.Or)({authMethod:Ct,clientId:Ue,clientSecret:ze}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),ee(!1)},errorCallback:qe=>{ve(),N(qe.message),ee(!1)}})}),Ae=Object.keys(s.scopes);let Se=(0,pt.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);Se=Se?JSON.parse(Se):"";const Ce=(0,pt.Al)(r,"client_id"),Fe={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),initValue:(0,pt.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return L.createElement(L.Fragment,null,L.createElement(ht.n5,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client ID:"),Ce?L.createElement(uu,sg(og({},Fe),{options:Ce})):L.createElement(Bn,sg(og({},Fe),{type:"password",panel:"try-it"}))),L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client Secret:"),L.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,pt.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),L.createElement(Bn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:Se,validate:dx}),L.createElement(eg,{id:r,scopes:Ae})),L.createElement(Bt.Button,{color:"primary",onClick:Te,blinking:G},G?"Loading...":"Request Token"),L.createElement(ht.ph,null," Access Token "),R?L.createElement(ht.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",L.createElement("pre",null,R)," "):ae.token&&ae.token.access_token?L.createElement(ht.TR,null,L.createElement(ht.WA,{length:ae.token.access_token.length,masked:q},ae.token.access_token),L.createElement(ht.lf,{onClick:me},q?"Show":"Hide"," "),L.createElement(ht.h,{onClick:ve}," Clear ")):L.createElement(ht.Xq,{style:{marginBottom:"1em"}},"No token"))};var hx=Object.defineProperty,vx=Object.defineProperties,gx=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,ug=(e,r,n)=>r in e?hx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,rl=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&ug(e,n,r[n]);if(lg)for(var n of lg(r))yx.call(r,n)&&ug(e,n,r[n]);return e},nl=(e,r)=>vx(e,gx(r));const bx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:s,formApi:c})=>{const[p,m]=(0,L.useState)(0);(0,L.useEffect)(()=>{const R=r.security.map(ee=>ee.schemes.map(q=>q.id).join(" and ")),N=(0,pt.YQ)("securityRequirementName"),G=R.findIndex(ee=>ee===N);m(G<0?0:G)},[r]);const v=R=>{m(R.idx),(0,pt.WW)("securityRequirementName",R.value)},y=r.security,I=y.map(R=>R.schemes.map(N=>N.id).join(" and ")).filter(Boolean).map((R,N)=>({value:R,idx:N}));return I.length===0?L.createElement(ng,{message:"Cannot find security schema in the definition"}):L.createElement(L.Fragment,null,L.createElement(ht.n5,null,I.length>1&&L.createElement(ht.NI,null,L.createElement(ht.lX,null," Security scheme: "),L.createElement(Nn.VD,{variant:"dark",fullWidth:!0,options:I,value:I[p].value,onChange:v}))||null,y[p].schemes.map(R=>{var N,G,ee,q,oe,ae,pe;const ve=(0,pt.A8)(R.id);if(R.type==="apiKey"){const me=(0,pt.Al)(ve,""),Te={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,ar.NG)(R)||(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,ar.NG)(R)||(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(ht.NI,{key:ve},L.createElement(ht.lX,null," ",R.name,": "),me?L.createElement(uu,nl(rl({},Te),{options:me})):L.createElement(Bn,nl(rl({},Te),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(R.type==="http"){if(R.scheme==="basic"){const me=(0,pt.Al)(ve,"username"),Te={field:`auth.${ve}.username`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${ve}.username`)||((N=e==null?void 0:e[ve])==null?void 0:N.username),initValue:(0,pt.YQ)(`auth.${ve}.username`)||((G=e==null?void 0:e[ve])==null?void 0:G.username),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," ",(0,su.l)("tryItAuthBasicUsername"),": "),me?L.createElement(uu,nl(rl({},Te),{options:me})):L.createElement(Bn,nl(rl({},Te),{panel:"try-it"}))),L.createElement(ht.NI,null,L.createElement(ht.lX,null," ",(0,su.l)("tryItAuthBasicPassword"),": "),L.createElement(Bn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ve}.password`,initialValue:(0,pt.YQ)(`auth.${ve}.password`)||((ee=e==null?void 0:e[ve])==null?void 0:ee.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.scheme==="bearer"){const me=(0,pt.Al)(ve,""),Te={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," Bearer Token: "),me?L.createElement(uu,nl(rl({},Te),{options:me})):L.createElement(Bn,nl(rl({},Te),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(R.type==="oauth2"&&R.flows&&R.flows.clientCredentials)return L.createElement(px,{key:ve,flow:R.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:ve,form:s,formApi:c,clientId:R.flows.clientCredentials["x-defaultClientId"]||R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"&&R.flows&&R.flows.implicit)return L.createElement(Cc,{key:ve,authorizationUrl:R.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((oe=(q=R==null?void 0:R.flows)==null?void 0:q.implicit)==null?void 0:oe.scopes)||{}),server:n,id:ve,form:s,formApi:c,clientId:R.flows.implicit["x-defaultClientId"]||R["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"&&R.flows&&R.flows.authorizationCode)return L.createElement(Cc,{key:ve,authorizationUrl:R.flows.authorizationCode.authorizationUrl,tokenUrl:R.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((ae=R.flows.authorizationCode)==null?void 0:ae.scopes)||{}),server:n,id:ve,form:s,formApi:c,clientId:R.flows.authorizationCode["x-defaultClientId"]||R["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:R.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:R.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"){let me=(0,pt.YQ)(`auth.${ve}.token`)||JSON.stringify((pe=e==null?void 0:e[ve])==null?void 0:pe.token);return me=me?JSON.parse(me):{},L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token Type: "),L.createElement(Bn,{fullWidth:!0,field:`auth.${ve}.token.token_type`,initialValue:me.token_type||"Bearer",panel:"try-it"})),L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token: "),L.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${ve}.token.access_token`,validate:ar.np,initialValue:me.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.type==="openIdConnect")return L.createElement(ix,{key:ve,server:n,authCorsProxyUrl:a,id:ve,form:s,formApi:c,scheme:R,clientId:R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]})}})),L.createElement("small",null,L.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var xx=Object.defineProperty,fg=Object.getOwnPropertySymbols,Sx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,cg=(e,r,n)=>r in e?xx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ax=(e,r)=>{for(var n in r||(r={}))Sx.call(r,n)&&cg(e,n,r[n]);if(fg)for(var n of fg(r))wx.call(r,n)&&cg(e,n,r[n]);return e};const Cx=({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:s,server:c,formApi:p,setFormApi:m,handleChange:v,handleServerChange:y})=>{const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:R,authCorsProxyUrl:N}=(0,L.useContext)(Xf.jI),G=s&&pt.IB.get(s,e.pointer);let ee=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!ee||!a.values.auth[ee])&&(ee=void 0),ee&&(a.values.auth[ee].token!==void 0||a.values.auth[ee].client_id!==void 0||a.values.auth[ee].client_secret!==void 0)&&(!a.values.auth[ee].token||!a.values.auth[ee].token.access_token)&&(ee=void 0),ee&&a.values.auth[ee].username!=null&&(!a.values.auth[ee].username||!a.values.auth[ee].password)&&(ee=void 0);const q=e.parameters||[];return!s&&L.createElement(L.Fragment,null,"Loading...")||L.createElement(Zm,{onChange:v,getApi:m,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},L.createElement(Fy,{operation:e,onChange:y}),L.createElement(mr.UQ,{initialActiveIdx:e.security.length&&ee?1:0},e.security.length&&p&&L.createElement(Gd,{header:(0,su.l)("tryItAuth"),"data-cy":"security-trigger",error:!ee&&!!b.auth,success:!!ee,renderChildrenHidden:!0},R!=null&&R.ReplaceTryItSecurityPanel?L.createElement(Ex,{field:"auth",validate:ar.np},oe=>L.createElement(vb.Q,{Hook:R==null?void 0:R.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:oe,OAuth2:Di}})):L.createElement(bx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:N,securityDefaults:n}))||null,e.requestBody&&p&&L.createElement(Gd,{header:(0,su.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},L.createElement(hb,{validate:Ox,formApi:p,body:e.requestBody,id:e.id,resolvedBody:G==null?void 0:G.requestBody,properties:r}))||null,q.length&&L.createElement(Gd,{header:(0,su.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},L.createElement(Ob,{operation:e,values:a.values,errors:a.errors||{}}))||null))};function Ex(e){const{fieldApi:r,render:n,userProps:a}=au(Ax({},e)),{setValue:s}=r,{children:c}=a;return n(L.createElement(L.Fragment,null,c(s)))}function Ox(){}const Tx=(0,A.Pi)(Cx);var dg=o(39448);const Px=e=>{const{shaking:r,className:n,children:a,rootElement:s}=e,[c]=(0,dg.B)(s),p=(0,L.useContext)(Xf.xf);return L.createElement(Nn.q2,{scrollYOffset:p==null?void 0:p.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:c==null?void 0:c.width},a)},Ix=(0,A.Pi)(Px);var Fx=Object.defineProperty,kx=Object.defineProperties,Rx=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,pg=Object.prototype.hasOwnProperty,hg=Object.prototype.propertyIsEnumerable,vg=(e,r,n)=>r in e?Fx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,on=(e,r)=>{for(var n in r||(r={}))pg.call(r,n)&&vg(e,n,r[n]);if(Ec)for(var n of Ec(r))hg.call(r,n)&&vg(e,n,r[n]);return e},ei=(e,r)=>kx(e,Rx(r)),gg=(e,r)=>{var n={};for(var a in e)pg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ec)for(var a of Ec(e))r.indexOf(a)<0&&hg.call(e,a)&&(n[a]=e[a]);return n},mg=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function yg(e){return e.startsWith("//")?"https:"+e:e}const bg=({operation:e,store:r,onResponse:n,className:a,rootElement:s,properties:c,securityDefaults:p,onClose:m})=>{let v=(0,L.useRef)();const[y,b]=(0,L.useState)(e.activeServer),[I,R]=(0,L.useState)(0),[N,G]=(0,L.useState)(!1),[ee,q]=(0,L.useState)(!1),[oe,ae]=(0,L.useState)({values:{path:(0,ar.ZS)(e.parameters,"path"),cookie:(0,ar.ZS)(e.parameters,"cookie"),header:(0,ar.ZS)(e.parameters,"header"),query:(0,ar.ZS)(e.parameters,"query")}}),[pe,ve]=(0,L.useState)(),[me,Te]=(0,L.useState)(),[Ae,Se]=(0,L.useState)(),[Ce,Fe]=(0,L.useState)(),Re=(0,dg.D)(e),Ue=(jt,fr=jt.getState())=>{var $t=fr,{values:cr}=$t,wr=gg($t,["values"]);v.current=jt,setTimeout(()=>{ae(ei(on({},wr),{values:ei(on({},cr),{query:(0,ar.FU)(cr.query||{})})}))},0)},ze=(0,L.useCallback)(jt=>{var fr=jt,{values:$t}=fr,cr=gg(fr,["values"]);const wr=ei(on({},cr),{values:ei(on({},$t),{query:(0,ar.FU)($t.query||{})})});ae(wr),(0,ar.Hc)(wr),e.setRequestValues($t)},[e]),Ct=jt=>{R(jt)},qe=jt=>{b(jt),e.setActiveServer(jt)},nr=()=>mg(void 0,null,function*(){var jt,fr,$t,cr,wr,Ut,ft,Ot,Zt;const{values:Wt,invalid:Kt}=((jt=v==null?void 0:v.current)==null?void 0:jt.getState())||oe||{};if((fr=v.current)==null||fr.submitForm(),Kt){q(!0),setTimeout(()=>q(!1),1e3),(cr=($t=r==null?void 0:r.options.events)==null?void 0:$t.tryItSent)==null||cr.call($t,{eventType:Ks.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:qr,requestBody:Un}=e,pi=Un&&Un.content&&Un.content.active&&Un.content.active.name||"";let Vr=Wt.body;if(/json/.test(pi))try{Vr=JSON.parse(Vr)}catch(qt){console.error(qt)}G(!0);const sn=pe,Jo=(e.httpVerb||"").toLowerCase();if(!qr)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Fn=qr.find(qt=>y.url.endsWith(qt.url.endsWith("/")?qt.url.substring(0,qt.url.length-1):qt.url)),Xo=Date.now(),cp=!!window.document.documentMode;let ji,Vi=Wt.auth;if(Wt.auth){const qt=Object.keys(Wt.auth)[0],En=(0,pt.dw)(qt);ji=ei(on({},sn),{components:ei(on({},sn==null?void 0:sn.components),{securitySchemes:ei(on({},sn==null?void 0:sn.components.securitySchemes),{[En]:ei(on({},sn==null?void 0:sn.components.securitySchemes[En]),{type:(sn==null?void 0:sn.components.securitySchemes[En].type)==="openIdConnect"?"oauth2":sn==null?void 0:sn.components.securitySchemes[En].type})})})}),Vi=ei(on({},Vi),{[En]:Vi[qt]})}else ji=on({},sn);ji.servers=qr;const Oa=r.options.corsProxyUrl;Oa&&qr.length&&(ji.servers=qr.map(qt=>ei(on({},qt),{url:Oa+yg(qt.url)})),ji.paths=ei(on({},ji.paths),{[e.path]:ei(on({},ji.paths[e.path]),{[Jo]:ei(on({},ji.paths[e.path][Jo]),{servers:void 0}),servers:void 0})}));const il=((Ut=(wr=Un==null?void 0:Un.content)==null?void 0:wr.active)==null?void 0:Ut.name)||null;if(il&&Vr&&ro(il)){const qt=Object.values(Vr);Vr=qt.length>1?qt:qt[0]}const xu={userFetch:cp&&o(96279).fetch,server:Oa?Oa+yg(Fn.url):Fn.url,serverVariables:Fn.variables,spec:ji,pathName:e.path,method:e.httpVerb,parameters:on(on(on(on({},Wt.path),Wt.query),Wt.header),Wt.cookie),securities:{authorized:Vi},requestBody:Vr,requestContentType:il,responseContentType:((ft=Wt.header)==null?void 0:ft.Accept)||null,requestInterceptor:(0,ar.Tz)(r.options,e,Vi==null?void 0:Vi.Authorization)};try{const qt=yield hn.execute(xu),En=qt==null?void 0:qt.data;En instanceof Blob&&(ro(En.type)&&(qt.fileInfo={rawData:En,fileName:(0,ar.AM)(qt.headers)}),qt.data=yield En.text()),n==null||n({request:xu,response:qt}),Fe(qt),Se(void 0)}catch(qt){qt&&qt.response&&qt.response.data instanceof Blob&&(qt.response.data=yield qt.response.data.text(),n==null||n({request:xu,response:qt.response})),Fe(void 0),Se(qt)}finally{G(!1),R(1),Te(Date.now()-Xo),(Zt=(Ot=r==null?void 0:r.options.events)==null?void 0:Ot.tryItSent)==null||Zt.call(Ot,{eventType:Ks.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}});(0,Bt.useMount)(()=>mg(void 0,null,function*(){var jt;const fr=yield r.dereferenceSpecForTryIt(e);ve(fr),(jt=v.current)==null||jt.setValues({})})),(0,L.useEffect)(()=>{Re!==e&&(Fe(void 0),Se(void 0),R(0))},[e,Re]);const ur=!!(Ce||Ae);return L.createElement(Ix,{shaking:ee,className:a,rootElement:s},L.createElement(mr.Hc,null,L.createElement(Vg,{active:I,hasResponse:ur,onChange:Ct}),m&&L.createElement(Nn.PZ,{onClick:m}," \u2715 ")),L.createElement(Nn.RE,{hidden:I!==0,"data-cy":"console-request-body"},L.createElement(Tx,{operation:e,properties:c,securityDefaults:p,form:oe,resolvedRawSpec:pe,server:y,formApi:v.current,setFormApi:Ue,handleChange:ze,handleServerChange:qe})),L.createElement(Nn.RE,{hidden:I!==1,"data-cy":"console-response-body"},L.createElement(Bg,{response:Ce,error:Ae,time:me}),";"),L.createElement(zg,{hasResponse:ur,params:oe.values,operation:e,loading:N,execute:nr}))},Mx=(0,A.Pi)(bg)},37795:h=>{"use strict";var E="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(A){var O=this;if(typeof O!="function"||d.call(O)!==x)throw new TypeError(E+O);for(var k=o.call(arguments,1),U,Z=function(){if(this instanceof U){var Y=O.apply(this,k.concat(o.call(arguments)));return Object(Y)===Y?Y:this}else return O.apply(A,k.concat(o.call(arguments)))},re=Math.max(0,O.length-k.length),ue=[],ne=0;ne<re;ne++)ue.push("$"+ne);if(U=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),O.prototype){var ie=function(){};ie.prototype=O.prototype,U.prototype=new ie,ie.prototype=null}return U}},4090:(h,E,o)=>{"use strict";var d=o(37795);h.exports=Function.prototype.bind||d},67286:(h,E,o)=>{"use strict";var d,x=SyntaxError,w=Function,A=TypeError,O=function(he){try{return w('"use strict"; return ('+he+").constructor;")()}catch(_){}},k=Object.getOwnPropertyDescriptor;if(k)try{k({},"")}catch(he){k=null}var U=function(){throw new A},Z=k?function(){try{return arguments.callee,U}catch(he){try{return k(arguments,"callee").get}catch(_){return U}}}():U,re=o(32636)(),ue=Object.getPrototypeOf||function(he){return he.__proto__},ne={},ie=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":re?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re?ue(""[Symbol.iterator]()):d,"%Symbol%":re?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":ie,"%TypeError%":A,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},P=function he(_){var Q;if(_==="%AsyncFunction%")Q=O("async function () {}");else if(_==="%GeneratorFunction%")Q=O("function* () {}");else if(_==="%AsyncGeneratorFunction%")Q=O("async function* () {}");else if(_==="%AsyncGenerator%"){var z=he("%AsyncGeneratorFunction%");z&&(Q=z.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ge=he("%AsyncGenerator%");ge&&(Q=ue(ge.prototype))}return Y[_]=Q,Q},$={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=o(4090),C=o(23198),F=D.call(Function.call,Array.prototype.concat),V=D.call(Function.apply,Array.prototype.splice),X=D.call(Function.call,String.prototype.replace),K=D.call(Function.call,String.prototype.slice),W=D.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,H=function(_){var Q=K(_,0,1),z=K(_,-1);if(Q==="%"&&z!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&Q!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ge=[];return X(_,te,function(Ee,je,ke,it){ge[ge.length]=ke?X(it,J,"$1"):je||Ee}),ge},fe=function(_,Q){var z=_,ge;if(C($,z)&&(ge=$[z],z="%"+ge[0]+"%"),C(Y,z)){var Ee=Y[z];if(Ee===ne&&(Ee=P(z)),typeof Ee=="undefined"&&!Q)throw new A("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ge,name:z,value:Ee}}throw new x("intrinsic "+_+" does not exist!")};h.exports=function(_,Q){if(typeof _!="string"||_.length===0)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new A('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=H(_),ge=z.length>0?z[0]:"",Ee=fe("%"+ge+"%",Q),je=Ee.name,ke=Ee.value,it=!1,et=Ee.alias;et&&(ge=et[0],V(z,F([0,1],et)));for(var at=1,Tt=!0;at<z.length;at+=1){var St=z[at],Le=K(St,0,1),Oe=K(St,-1);if((Le==='"'||Le==="'"||Le==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Le!==Oe)throw new x("property names with quotes must have matching quotes");if((St==="constructor"||!Tt)&&(it=!0),ge+="."+St,je="%"+ge+"%",C(Y,je))ke=Y[je];else if(ke!=null){if(!(St in ke)){if(!Q)throw new A("base intrinsic for "+_+" exists, but the property is not available.");return}if(k&&at+1>=z.length){var be=k(ke,St);Tt=!!be,Tt&&"get"in be&&!("originalValue"in be.get)?ke=be.get:ke=ke[St]}else Tt=C(ke,St),ke=ke[St];Tt&&!it&&(Y[je]=ke)}}return ke}},32636:(h,E,o)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=o(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;o[d]=w;for(d in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var A=Object.getOwnPropertySymbols(o);if(A.length!==1||A[0]!==d||!Object.prototype.propertyIsEnumerable.call(o,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var O=Object.getOwnPropertyDescriptor(o,d);if(O.value!==w||O.enumerable!==!0)return!1}return!0}},23198:(h,E,o)=>{"use strict";var d=o(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,E,o)=>{var d=o(52118),x=o(96909),w=o(98138),A=o(4174),O=o(7942);function k(U){var Z=-1,re=U==null?0:U.length;for(this.clear();++Z<re;){var ue=U[Z];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},80235:(h,E,o)=>{var d=o(3945),x=o(21846),w=o(88028),A=o(72344),O=o(94769);function k(U){var Z=-1,re=U==null?0:U.length;for(this.clear();++Z<re;){var ue=U[Z];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},10326:(h,E,o)=>{var d=o(38761),x=o(37772),w=d(x,"Map");h.exports=w},96738:(h,E,o)=>{var d=o(92411),x=o(36417),w=o(86928),A=o(79493),O=o(24150);function k(U){var Z=-1,re=U==null?0:U.length;for(this.clear();++Z<re;){var ue=U[Z];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},50857:(h,E,o)=>{var d=o(37772),x=d.Symbol;h.exports=x},50343:h=>{function E(o,d){for(var x=-1,w=o==null?0:o.length,A=Array(w);++x<w;)A[x]=d(o[x],x,o);return A}h.exports=E},22218:(h,E,o)=>{var d=o(41225);function x(w,A){for(var O=w.length;O--;)if(d(w[O][0],A))return O;return-1}h.exports=x},13324:(h,E,o)=>{var d=o(17297),x=o(33812);function w(A,O){O=d(O,A);for(var k=0,U=O.length;A!=null&&k<U;)A=A[x(O[k++])];return k&&k==U?A:void 0}h.exports=w},53366:(h,E,o)=>{var d=o(50857),x=o(62107),w=o(37157),A="[object Null]",O="[object Undefined]",k=d?d.toStringTag:void 0;function U(Z){return Z==null?Z===void 0?O:A:k&&k in Object(Z)?x(Z):w(Z)}h.exports=U},6840:(h,E,o)=>{var d=o(61049),x=o(47394),w=o(29259),A=o(87035),O=/[\\^$.*+?()[\]{}|]/g,k=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,re=U.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+re.call(ue).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(Y){if(!w(Y)||x(Y))return!1;var P=d(Y)?ne:k;return P.test(A(Y))}h.exports=ie},1054:(h,E,o)=>{var d=o(50857),x=o(50343),w=o(86152),A=o(4795),O=1/0,k=d?d.prototype:void 0,U=k?k.toString:void 0;function Z(re){if(typeof re=="string")return re;if(w(re))return x(re,Z)+"";if(A(re))return U?U.call(re):"";var ue=re+"";return ue=="0"&&1/re==-O?"-0":ue}h.exports=Z},17297:(h,E,o)=>{var d=o(86152),x=o(21401),w=o(54452),A=o(66188);function O(k,U){return d(k)?k:x(k,U)?[k]:w(A(k))}h.exports=O},24019:(h,E,o)=>{var d=o(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,E,o)=>{var d=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=d},27937:(h,E,o)=>{var d=o(98304);function x(w,A){var O=w.__data__;return d(A)?O[typeof A=="string"?"string":"hash"]:O.map}h.exports=x},38761:(h,E,o)=>{var d=o(6840),x=o(98109);function w(A,O){var k=x(A,O);return d(k)?k:void 0}h.exports=w},62107:(h,E,o)=>{var d=o(50857),x=Object.prototype,w=x.hasOwnProperty,A=x.toString,O=d?d.toStringTag:void 0;function k(U){var Z=w.call(U,O),re=U[O];try{U[O]=void 0;var ue=!0}catch(ie){}var ne=A.call(U);return ue&&(Z?U[O]=re:delete U[O]),ne}h.exports=k},98109:h=>{function E(o,d){return o==null?void 0:o[d]}h.exports=E},52118:(h,E,o)=>{var d=o(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function E(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}h.exports=E},98138:(h,E,o)=>{var d=o(99191),x="__lodash_hash_undefined__",w=Object.prototype,A=w.hasOwnProperty;function O(k){var U=this.__data__;if(d){var Z=U[k];return Z===x?void 0:Z}return A.call(U,k)?U[k]:void 0}h.exports=O},4174:(h,E,o)=>{var d=o(99191),x=Object.prototype,w=x.hasOwnProperty;function A(O){var k=this.__data__;return d?k[O]!==void 0:w.call(k,O)}h.exports=A},7942:(h,E,o)=>{var d=o(99191),x="__lodash_hash_undefined__";function w(A,O){var k=this.__data__;return this.size+=this.has(A)?0:1,k[A]=d&&O===void 0?x:O,this}h.exports=w},21401:(h,E,o)=>{var d=o(86152),x=o(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;function O(k,U){if(d(k))return!1;var Z=typeof k;return Z=="number"||Z=="symbol"||Z=="boolean"||k==null||x(k)?!0:A.test(k)||!w.test(k)||U!=null&&k in Object(U)}h.exports=O},98304:h=>{function E(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}h.exports=E},47394:(h,E,o)=>{var d=o(24019),x=function(){var A=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function w(A){return!!x&&x in A}h.exports=w},3945:h=>{function E(){this.__data__=[],this.size=0}h.exports=E},21846:(h,E,o)=>{var d=o(22218),x=Array.prototype,w=x.splice;function A(O){var k=this.__data__,U=d(k,O);if(U<0)return!1;var Z=k.length-1;return U==Z?k.pop():w.call(k,U,1),--this.size,!0}h.exports=A},88028:(h,E,o)=>{var d=o(22218);function x(w){var A=this.__data__,O=d(A,w);return O<0?void 0:A[O][1]}h.exports=x},72344:(h,E,o)=>{var d=o(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,E,o)=>{var d=o(22218);function x(w,A){var O=this.__data__,k=d(O,w);return k<0?(++this.size,O.push([w,A])):O[k][1]=A,this}h.exports=x},92411:(h,E,o)=>{var d=o(89612),x=o(80235),w=o(10326);function A(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=A},36417:(h,E,o)=>{var d=o(27937);function x(w){var A=d(this,w).delete(w);return this.size-=A?1:0,A}h.exports=x},86928:(h,E,o)=>{var d=o(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,E,o)=>{var d=o(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,E,o)=>{var d=o(27937);function x(w,A){var O=d(this,w),k=O.size;return O.set(w,A),this.size+=O.size==k?0:1,this}h.exports=x},77777:(h,E,o)=>{var d=o(30733),x=500;function w(A){var O=d(A,function(U){return k.size===x&&k.clear(),U}),k=O.cache;return O}h.exports=w},99191:(h,E,o)=>{var d=o(38761),x=d(Object,"create");h.exports=x},37157:h=>{var E=Object.prototype,o=E.toString;function d(x){return o.call(x)}h.exports=d},37772:(h,E,o)=>{var d=o(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,E,o)=>{var d=o(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,A=d(function(O){var k=[];return O.charCodeAt(0)===46&&k.push(""),O.replace(x,function(U,Z,re,ue){k.push(re?ue.replace(w,"$1"):Z||U)}),k});h.exports=A},33812:(h,E,o)=>{var d=o(4795),x=1/0;function w(A){if(typeof A=="string"||d(A))return A;var O=A+"";return O=="0"&&1/A==-x?"-0":O}h.exports=w},87035:h=>{var E=Function.prototype,o=E.toString;function d(x){if(x!=null){try{return o.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function E(o,d){return o===d||o!==o&&d!==d}h.exports=E},72579:(h,E,o)=>{var d=o(13324);function x(w,A,O){var k=w==null?void 0:d(w,A);return k===void 0?O:k}h.exports=x},86152:h=>{var E=Array.isArray;h.exports=E},61049:(h,E,o)=>{var d=o(53366),x=o(29259),w="[object AsyncFunction]",A="[object Function]",O="[object GeneratorFunction]",k="[object Proxy]";function U(Z){if(!x(Z))return!1;var re=d(Z);return re==A||re==O||re==w||re==k}h.exports=U},29259:h=>{function E(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}h.exports=E},15125:h=>{function E(o){return o!=null&&typeof o=="object"}h.exports=E},4795:(h,E,o)=>{var d=o(53366),x=o(15125),w="[object Symbol]";function A(O){return typeof O=="symbol"||x(O)&&d(O)==w}h.exports=A},30733:(h,E,o)=>{var d=o(96738),x="Expected a function";function w(A,O){if(typeof A!="function"||O!=null&&typeof O!="function")throw new TypeError(x);var k=function(){var U=arguments,Z=O?O.apply(this,U):U[0],re=k.cache;if(re.has(Z))return re.get(Z);var ue=A.apply(this,U);return k.cache=re.set(Z,ue)||re,ue};return k.cache=new(w.Cache||d),k}w.Cache=d,h.exports=w},66188:(h,E,o)=>{var d=o(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,E,o)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,A=d&&Map.prototype.forEach,O=typeof Set=="function"&&Set.prototype,k=Object.getOwnPropertyDescriptor&&O?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=O&&k&&typeof k.get=="function"?k.get:null,Z=O&&Set.prototype.forEach,re=typeof WeakMap=="function"&&WeakMap.prototype,ue=re?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,ie=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,P=Y?WeakRef.prototype.deref:null,$=Boolean.prototype.valueOf,D=Object.prototype.toString,C=Function.prototype.toString,F=String.prototype.match,V=String.prototype.slice,X=String.prototype.replace,K=String.prototype.toUpperCase,W=String.prototype.toLowerCase,te=RegExp.prototype.test,J=Array.prototype.concat,H=Array.prototype.join,fe=Array.prototype.slice,he=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Q=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge?"object":"symbol")?Symbol.toStringTag:null,je=Object.prototype.propertyIsEnumerable,ke=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ce){return ce.__proto__}:null);function it(ce,xe){if(ce===1/0||ce===-1/0||ce!==ce||ce&&ce>-1e3&&ce<1e3||te.call(/e/,xe))return xe;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ce=="number"){var Ke=ce<0?-he(-ce):he(ce);if(Ke!==ce){var st=String(Ke),xt=V.call(xe,st.length+1);return X.call(st,Be,"$&_")+"."+X.call(X.call(xt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return X.call(xe,Be,"$&_")}var et=o(53260),at=et.custom,Tt=Et(at)?at:null;h.exports=function ce(xe,Be,Ke,st){var xt=Be||{};if(nt(xt,"quoteStyle")&&xt.quoteStyle!=="single"&&xt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nt(xt,"maxStringLength")&&(typeof xt.maxStringLength=="number"?xt.maxStringLength<0&&xt.maxStringLength!==1/0:xt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=nt(xt,"customInspect")?xt.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nt(xt,"indent")&&xt.indent!==null&&xt.indent!==" "&&!(parseInt(xt.indent,10)===xt.indent&&xt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(nt(xt,"numericSeparator")&&typeof xt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var yr=xt.numericSeparator;if(typeof xe=="undefined")return"undefined";if(xe===null)return"null";if(typeof xe=="boolean")return xe?"true":"false";if(typeof xe=="string")return yt(xe,xt);if(typeof xe=="number"){if(xe===0)return 1/0/xe>0?"0":"-0";var Nt=String(xe);return yr?it(xe,Nt):Nt}if(typeof xe=="bigint"){var Yt=String(xe)+"n";return yr?it(xe,Yt):Yt}var zn=typeof xt.depth=="undefined"?5:xt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=zn&&zn>0&&typeof xe=="object")return Oe(xe)?"[Array]":"[Object]";var Ur=Pt(xt,Ke);if(typeof st=="undefined")st=[];else if(Rt(st,xe)>=0)return"[Circular]";function Kr(fn,Cr,yi){if(Cr&&(st=fe.call(st),st.push(Cr)),yi){var kn={depth:xt.depth};return nt(xt,"quoteStyle")&&(kn.quoteStyle=xt.quoteStyle),ce(fn,kn,Ke+1,st)}return ce(fn,xt,Ke+1,st)}if(typeof xe=="function"&&!De(xe)){var vi=er(xe),tn=Ve(xe,Kr);return"[Function"+(vi?": "+vi:" (anonymous)")+"]"+(tn.length>0?" { "+H.call(tn,", ")+" }":"")}if(Et(xe)){var gi=ge?X.call(String(xe),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(xe);return typeof xe=="object"&&!ge?wt(gi):gi}if($e(xe)){for(var mi="<"+W.call(String(xe.nodeName)),rn=xe.attributes||[],xr=0;xr<rn.length;xr++)mi+=" "+rn[xr].name+"="+St(Le(rn[xr].value),"double",xt);return mi+=">",xe.childNodes&&xe.childNodes.length&&(mi+="..."),mi+="</"+W.call(String(xe.nodeName))+">",mi}if(Oe(xe)){if(xe.length===0)return"[]";var Gn=Ve(xe,Kr);return Ur&&!vt(Gn)?"["+ot(Gn,Ur)+"]":"[ "+H.call(Gn,", ")+" ]"}if(Ge(xe)){var Ui=Ve(xe,Kr);return!("cause"in Error.prototype)&&"cause"in xe&&!je.call(xe,"cause")?"{ ["+String(xe)+"] "+H.call(J.call("[cause]: "+Kr(xe.cause),Ui),", ")+" }":Ui.length===0?"["+String(xe)+"]":"{ ["+String(xe)+"] "+H.call(Ui,", ")+" }"}if(typeof xe=="object"&&kt){if(Tt&&typeof xe[Tt]=="function"&&et)return et(xe,{depth:zn-Ke});if(kt!=="symbol"&&typeof xe.inspect=="function")return xe.inspect()}if(Rr(xe)){var Wi=[];return A.call(xe,function(fn,Cr){Wi.push(Kr(Cr,xe,!0)+" => "+Kr(fn,xe))}),dt("Map",w.call(xe),Wi,Ur)}if(Ar(xe)){var gn=[];return Z.call(xe,function(fn){gn.push(Kr(fn,xe))}),dt("Set",U.call(xe),gn,Ur)}if(_e(xe))return Ft("WeakMap");if(en(xe))return Ft("WeakSet");if(Mr(xe))return Ft("WeakRef");if(Ze(xe))return wt(Kr(Number(xe)));if(Xt(xe))return wt(Kr(_.call(xe)));if(bt(xe))return wt($.call(xe));if(tt(xe))return wt(Kr(String(xe)));if(!be(xe)&&!De(xe)){var un=Ve(xe,Kr),mn=ke?ke(xe)===Object.prototype:xe instanceof Object||xe.constructor===Object,yn=xe instanceof Object?"":"null prototype",On=!mn&&Ee&&Object(xe)===xe&&Ee in xe?V.call(Xe(xe),8,-1):yn?"Object":"",lo=mn||typeof xe.constructor!="function"?"":xe.constructor.name?xe.constructor.name+" ":"",$n=lo+(On||yn?"["+H.call(J.call([],On||[],yn||[]),": ")+"] ":"");return un.length===0?$n+"{}":Ur?$n+"{"+ot(un,Ur)+"}":$n+"{ "+H.call(un,", ")+" }"}return String(xe)};function St(ce,xe,Be){var Ke=(Be.quoteStyle||xe)==="double"?'"':"'";return Ke+ce+Ke}function Le(ce){return X.call(String(ce),/"/g,"&quot;")}function Oe(ce){return Xe(ce)==="[object Array]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function be(ce){return Xe(ce)==="[object Date]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function De(ce){return Xe(ce)==="[object RegExp]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Ge(ce){return Xe(ce)==="[object Error]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function tt(ce){return Xe(ce)==="[object String]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Ze(ce){return Xe(ce)==="[object Number]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function bt(ce){return Xe(ce)==="[object Boolean]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Et(ce){if(ge)return ce&&typeof ce=="object"&&ce instanceof Symbol;if(typeof ce=="symbol")return!0;if(!ce||typeof ce!="object"||!z)return!1;try{return z.call(ce),!0}catch(xe){}return!1}function Xt(ce){if(!ce||typeof ce!="object"||!_)return!1;try{return _.call(ce),!0}catch(xe){}return!1}var zt=Object.prototype.hasOwnProperty||function(ce){return ce in this};function nt(ce,xe){return zt.call(ce,xe)}function Xe(ce){return D.call(ce)}function er(ce){if(ce.name)return ce.name;var xe=F.call(C.call(ce),/^function\s*([\w$]+)/);return xe?xe[1]:null}function Rt(ce,xe){if(ce.indexOf)return ce.indexOf(xe);for(var Be=0,Ke=ce.length;Be<Ke;Be++)if(ce[Be]===xe)return Be;return-1}function Rr(ce){if(!w||!ce||typeof ce!="object")return!1;try{w.call(ce);try{U.call(ce)}catch(xe){return!0}return ce instanceof Map}catch(xe){}return!1}function _e(ce){if(!ue||!ce||typeof ce!="object")return!1;try{ue.call(ce,ue);try{ie.call(ce,ie)}catch(xe){return!0}return ce instanceof WeakMap}catch(xe){}return!1}function Mr(ce){if(!P||!ce||typeof ce!="object")return!1;try{return P.call(ce),!0}catch(xe){}return!1}function Ar(ce){if(!U||!ce||typeof ce!="object")return!1;try{U.call(ce);try{w.call(ce)}catch(xe){return!0}return ce instanceof Set}catch(xe){}return!1}function en(ce){if(!ie||!ce||typeof ce!="object")return!1;try{ie.call(ce,ie);try{ue.call(ce,ue)}catch(xe){return!0}return ce instanceof WeakSet}catch(xe){}return!1}function $e(ce){return!ce||typeof ce!="object"?!1:typeof HTMLElement!="undefined"&&ce instanceof HTMLElement?!0:typeof ce.nodeName=="string"&&typeof ce.getAttribute=="function"}function yt(ce,xe){if(ce.length>xe.maxStringLength){var Be=ce.length-xe.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return yt(V.call(ce,0,xe.maxStringLength),xe)+Ke}var st=X.call(X.call(ce,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lt);return St(st,"single",xe)}function Lt(ce){var xe=ce.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[xe];return Be?"\\"+Be:"\\x"+(xe<16?"0":"")+K.call(xe.toString(16))}function wt(ce){return"Object("+ce+")"}function Ft(ce){return ce+" { ? }"}function dt(ce,xe,Be,Ke){var st=Ke?ot(Be,Ke):H.call(Be,", ");return ce+" ("+xe+") {"+st+"}"}function vt(ce){for(var xe=0;xe<ce.length;xe++)if(Rt(ce[xe],`
504
+ `;function tg(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,dt.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?M.createElement(M.Fragment,null):M.createElement(ht.NI,null,M.createElement(ht.lX,null," Scopes: "),M.createElement(Kb,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const Xb=({token:e,loading:r,error:n})=>r?M.createElement(ht.GE,null,"Please, finish your authorization flow or cancel authorization."):n?M.createElement(Fb,null,M.createElement(ht.Xq,null,n)):e!=null&&e.access_token?null:M.createElement(ht.GE,null," No Access Token. Please, Authorize. ");var Qb=Object.defineProperty,Zb=Object.defineProperties,qb=Object.getOwnPropertyDescriptors,rg=Object.getOwnPropertySymbols,_b=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,ng=(e,r,n)=>r in e?Qb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ac=(e,r)=>{for(var n in r||(r={}))_b.call(r,n)&&ng(e,n,r[n]);if(rg)for(var n of rg(r))ex.call(r,n)&&ng(e,n,r[n]);return e},fp=(e,r)=>Zb(e,qb(r)),tx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function rx(e){if(!e)return"Field is required"}const Cc=({usePkce:e,form:r,id:n,formApi:a,flow:s,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:m,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:D})=>{var B,$,K,q;const{oAuth2RedirectURI:oe,routingBasePath:ae}=(0,M.useContext)(Xf.jI),[pe,Ce]=(0,M.useState)(null),[Se,Pe]=(0,M.useState)(!1),[he,me]=(0,M.useState)(!1),[we,Fe]=(0,M.useState)(void 0),[Re,Ue]=(0,M.useState)(void 0),[ze,Ct]=(0,M.useState)(void 0),qe=(($=(B=r.values)==null?void 0:B.auth)==null?void 0:$[n])||{},nr=((q=(K=r.errors)==null?void 0:K.auth)==null?void 0:q[n])||{},ur=we!==void 0&&Re!==ze?{label:"sync",onClick:()=>{we&&Ue(ze)}}:void 0;(0,M.useEffect)(()=>{if(e){const Wt=(0,io.CY)(43);ch(Wt).then(Kt=>{Fe(Wt),Ue(Kt),Ct(Kt)})}},[e]);const jt=Wt=>{if(!Wt||(a.validate(),!(0,io.Qr)(nr)))return;Pe(!0),Ce(null);const Kt=p?p+(0,ar.jg)(Wt):Wt,qr=p&&c?p+(0,ar.jg)(c):c,Un=a.getValue(`auth.${n}.scopes`),pi={authorizationUrl:Kt.startsWith("http")?Kt:v+Kt,clientId:qe.client_id,scopes:Un,redirectUri:oe,routingBasePath:ae,successCallback:Vr=>{a.setValue(`auth.${n}.token`,Vr),Pe(!1),Ce(null)},errorCallback:Vr=>{Pe(!1),Ce((Vr==null?void 0:Vr.message)||"Failed to retrieve the access token")}};if(s==="implicit"&&Di.authorizeImplicit(pi),!(0,ar.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}s==="authorizationCode"&&Di.authorizeAuthorizationCode(Ac(fp(Ac({},pi),{tokenUrl:qr!=null&&qr.startsWith("http")?qr:v+qr,clientSecret:qe.client_secret,extraHeaders:(0,ar.Or)({authMethod:m,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:we,codeChallenge:Re}))},fr=()=>{cr(),Ce(null)},$t=()=>{Pe(!1),Ce(null),Di.clearRedirectData(s)},cr=()=>{a.setValue(`auth.${n}.token`,"")},wr=()=>{me(Wt=>!Wt)},Ut=Wt=>tx(void 0,[Wt],function*({target:{value:Kt}}){const qr=yield ch(Kt);Fe(Kt),Ct(qr)});if(!b)return M.createElement(ht.Xq,null,"No flow info");let ft=(0,dt.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);ft=ft?JSON.parse(ft):"";const Ot=(0,dt.Al)(n,"client_id"),Zt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,dt.YQ)(`auth.${n}.client_id`)||D||(I==null?void 0:I.client_id),initValue:(0,dt.YQ)(`auth.${n}.client_id`)||D||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:rx,validateOnBlur:!0,validateOnChange:!0};return M.createElement("div",null,M.createElement(ht.n5,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null," Client ID: "),Ot?M.createElement(uu,fp(Ac({},Zt),{options:Ot})):M.createElement(Bn,fp(Ac({},Zt),{"data-cy":"client-id-input",panel:"try-it"}))),s==="authorizationCode"&&M.createElement(M.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client Secret:"),M.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,dt.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&M.createElement(Rb,null,M.createElement(eg,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:he,onChange:wr,"data-cy":"pkce-options-toggle"}),he&&M.createElement(Mb,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Code Verifier"),M.createElement(lu,{fullWidth:!0,value:we,onChange:Ut,panel:"try-it","data-cy":"code-verifier-input"})),M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Code Challenge"),M.createElement(lu,{fullWidth:!0,value:Re,onChange:({target:{value:Wt}})=>{Ue(Wt)},inputActionButton:ur,panel:"try-it","data-cy":"code-challenge-input"}))))),M.createElement(Bn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:ft,panel:"try-it"}),M.createElement(tg,{id:n,scopes:y}),qe.token&&qe.token.access_token?M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token: "),M.createElement(lu,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),M.createElement(kb,null,qe.token&&qe.token.access_token?M.createElement(Bt.Button,{fullWidth:!0,onClick:fr},"Log out"):Se?M.createElement(M.Fragment,null,M.createElement(Bt.Button,{fullWidth:!0,onClick:$t},"Cancel"),M.createElement(Zv,null)):M.createElement(Bt.Button,{fullWidth:!0,disabled:!(0,io.Qr)(nr),onClick:()=>{jt(b)}},"Authorize")),Se||pe||!qe.token||!qe.token.access_token&&M.createElement(Xb,{loading:Se,error:pe,token:qe.token}))};var nx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function ix(e){var r,n;const{scheme:a,defaultValues:s}=e,[c,p]=(0,M.useState)({}),[m,v]=(0,M.useState)(),[y,b]=(0,M.useState)(!1);(0,M.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=D=>nx(this,null,function*(){b(!0),v("");try{const B=yield Pb(D);p(B)}catch(B){v(B.message)}b(!1)});return y?M.createElement(ax,null):m?M.createElement(ig,{message:m}):M.createElement("div",null,M.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?M.createElement(M.Fragment,null,M.createElement(Nn.S6,null,"OAuth2 Implicit Flow"),M.createElement(Cc,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:s})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?M.createElement(M.Fragment,null,M.createElement(Nn.S6,null,"OAuth2 Authorization Flow"),M.createElement(Cc,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):M.createElement("div",null,"Unsupported flow")))}function ax(){return M.createElement("div",null,M.createElement("div",null,M.createElement("div",null,"Fetching OpenID Connect metadata..."),M.createElement(Zv,null)))}function ig({message:e}){return M.createElement("div",null,M.createElement("div",null,M.createElement(ht.Xq,null,e)))}var ox=Object.defineProperty,sx=Object.defineProperties,lx=Object.getOwnPropertyDescriptors,ag=Object.getOwnPropertySymbols,ux=Object.prototype.hasOwnProperty,fx=Object.prototype.propertyIsEnumerable,og=(e,r,n)=>r in e?ox(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,sg=(e,r)=>{for(var n in r||(r={}))ux.call(r,n)&&og(e,n,r[n]);if(ag)for(var n of ag(r))fx.call(r,n)&&og(e,n,r[n]);return e},lg=(e,r)=>sx(e,lx(r)),cx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function dx(e){if(!e)return"Token is required"}const px=({form:e,id:r,formApi:n,server:a,flow:s,authCorsProxyUrl:c,defaultValues:p,clientId:m})=>{var v,y,b,I;const[D,B]=(0,M.useState)(""),[$,K]=(0,M.useState)(!1),[q,oe]=(0,M.useState)(!0),ae=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},Ce=()=>{n.setValue(`auth.${r}.token`,""),(0,dt.WW)(`auth.${r}.token`,"")},Se=()=>{oe(Re=>!Re)},Pe=()=>cx(void 0,null,function*(){if($)return;const Re=c&&s.tokenUrl?c+(0,ar.jg)(s.tokenUrl):s.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const Ue=ae.client_id,ze=ae.client_secret;if(!Ue||!ze){console.log("Provide client_id and client_secret");return}K(!0);const Ct=s["x-tokenEndpointAuthMethod"];if(!(0,ar.xl)(Ct)){console.log(`Unsupported token endpoint auth method: ${Ct}`);return}yield Di.authorizeClientCredentials({tokenUrl:Re.startsWith("http")?Re:a+Re,clientId:Ue,clientSecret:ze,scopes:ae.scopes,extraHeaders:(0,ar.Or)({authMethod:Ct,clientId:Ue,clientSecret:ze}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),K(!1)},errorCallback:qe=>{Ce(),B(qe.message),K(!1)}})}),he=Object.keys(s.scopes);let me=(0,dt.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);me=me?JSON.parse(me):"";const we=(0,dt.Al)(r,"client_id"),Fe={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,dt.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),initValue:(0,dt.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return M.createElement(M.Fragment,null,M.createElement(ht.n5,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client ID:"),we?M.createElement(uu,lg(sg({},Fe),{options:we})):M.createElement(Bn,lg(sg({},Fe),{type:"password",panel:"try-it"}))),M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client Secret:"),M.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,dt.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),M.createElement(Bn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:me,validate:dx}),M.createElement(tg,{id:r,scopes:he})),M.createElement(Bt.Button,{color:"primary",onClick:Pe,blinking:$},$?"Loading...":"Request Token"),M.createElement(ht.ph,null," Access Token "),D?M.createElement(ht.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",M.createElement("pre",null,D)," "):ae.token&&ae.token.access_token?M.createElement(ht.TR,null,M.createElement(ht.WA,{length:ae.token.access_token.length,masked:q},ae.token.access_token),M.createElement(ht.lf,{onClick:Se},q?"Show":"Hide"," "),M.createElement(ht.h,{onClick:Ce}," Clear ")):M.createElement(ht.Xq,{style:{marginBottom:"1em"}},"No token"))};var hx=o(1682),vx=Object.defineProperty,gx=Object.defineProperties,mx=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,bx=Object.prototype.propertyIsEnumerable,fg=(e,r,n)=>r in e?vx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,rl=(e,r)=>{for(var n in r||(r={}))yx.call(r,n)&&fg(e,n,r[n]);if(ug)for(var n of ug(r))bx.call(r,n)&&fg(e,n,r[n]);return e},nl=(e,r)=>gx(e,mx(r));const xx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:s,formApi:c})=>{const[p,m]=(0,M.useState)(0),{hooks:v}=M.useContext(hx.jI);(0,M.useEffect)(()=>{const K=r.security.map(ae=>ae.schemes.map(pe=>pe.id).join(" and ")),q=(0,dt.YQ)("securityRequirementName"),oe=K.findIndex(ae=>ae===q);m(oe<0?0:oe)},[r]);const y=K=>{m(K.idx),(0,dt.WW)("securityRequirementName",K.value)},b=r.security,D=b.map(K=>K.schemes.map(q=>q.id).join(" and ")).filter(Boolean).map((K,q)=>({value:K,idx:q}));if(D.length===0)return M.createElement(ig,{message:"Cannot find security schema in the definition"});const B=b[p],$=(0,dt.A8)(B.schemes[0].id);return M.createElement(M.Fragment,null,M.createElement(ht.n5,null,D.length>1&&M.createElement(ht.NI,null,M.createElement(ht.lX,null," Security scheme: "),M.createElement(Nn.VD,{variant:"dark",fullWidth:!0,options:D,value:D[p].value,onChange:y}))||null,M.createElement(Xv.Q,{Hook:v==null?void 0:v.BeforeSecurityPanel,props:{server:r.activeServer,operation:r,value:c.getValue(`auth.${$}`),onChange:K=>{c.setValue(`auth.${$}`,K)}}}),b[p].schemes.map(K=>{var q,oe,ae,pe,Ce,Se,Pe;const he=(0,dt.A8)(K.id);if(K.type==="apiKey"){const me=(0,dt.Al)(he,""),we={field:`auth.${he}`,fullWidth:!0,initialValue:(0,ar.NG)(K)||(0,dt.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),initValue:(0,ar.NG)(K)||(0,dt.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(ht.NI,{key:he},M.createElement(ht.lX,null," ",K.name,": "),me?M.createElement(uu,nl(rl({},we),{options:me})):M.createElement(Bn,nl(rl({},we),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(K.type==="http"){if(K.scheme==="basic"){const me=(0,dt.Al)(he,"username"),we={field:`auth.${he}.username`,fullWidth:!0,initialValue:(0,dt.YQ)(`auth.${he}.username`)||((q=e==null?void 0:e[he])==null?void 0:q.username),initValue:(0,dt.YQ)(`auth.${he}.username`)||((oe=e==null?void 0:e[he])==null?void 0:oe.username),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," ",(0,su.l)("tryItAuthBasicUsername"),": "),me?M.createElement(uu,nl(rl({},we),{options:me})):M.createElement(Bn,nl(rl({},we),{panel:"try-it"}))),M.createElement(ht.NI,null,M.createElement(ht.lX,null," ",(0,su.l)("tryItAuthBasicPassword"),": "),M.createElement(Bn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${he}.password`,initialValue:(0,dt.YQ)(`auth.${he}.password`)||((ae=e==null?void 0:e[he])==null?void 0:ae.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(K.scheme==="bearer"){const me=(0,dt.Al)(he,""),we={field:`auth.${he}`,fullWidth:!0,initialValue:(0,dt.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),initValue:(0,dt.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," Bearer Token: "),me?M.createElement(uu,nl(rl({},we),{options:me})):M.createElement(Bn,nl(rl({},we),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(K.type==="oauth2"&&K.flows&&K.flows.clientCredentials)return M.createElement(px,{key:he,flow:K.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:he,form:s,formApi:c,clientId:K.flows.clientCredentials["x-defaultClientId"]||K["x-defaultClientId"],defaultValues:e==null?void 0:e[he]});if(K.type==="oauth2"&&K.flows&&K.flows.implicit)return M.createElement(Cc,{key:he,authorizationUrl:K.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((Ce=(pe=K==null?void 0:K.flows)==null?void 0:pe.implicit)==null?void 0:Ce.scopes)||{}),server:n,id:he,form:s,formApi:c,clientId:K.flows.implicit["x-defaultClientId"]||K["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[he]});if(K.type==="oauth2"&&K.flows&&K.flows.authorizationCode)return M.createElement(Cc,{key:he,authorizationUrl:K.flows.authorizationCode.authorizationUrl,tokenUrl:K.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((Se=K.flows.authorizationCode)==null?void 0:Se.scopes)||{}),server:n,id:he,form:s,formApi:c,clientId:K.flows.authorizationCode["x-defaultClientId"]||K["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:K.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:K.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[he]});if(K.type==="oauth2"){let me=(0,dt.YQ)(`auth.${he}.token`)||JSON.stringify((Pe=e==null?void 0:e[he])==null?void 0:Pe.token);return me=me?JSON.parse(me):{},M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token Type: "),M.createElement(Bn,{fullWidth:!0,field:`auth.${he}.token.token_type`,initialValue:me.token_type||"Bearer",panel:"try-it"})),M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token: "),M.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${he}.token.access_token`,validate:ar.np,initialValue:me.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(K.type==="openIdConnect")return M.createElement(ix,{key:he,server:n,authCorsProxyUrl:a,id:he,form:s,formApi:c,scheme:K,clientId:K["x-defaultClientId"],defaultValues:e==null?void 0:e[he]})}})),M.createElement("small",null,M.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var Sx=Object.defineProperty,cg=Object.getOwnPropertySymbols,wx=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,dg=(e,r,n)=>r in e?Sx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Cx=(e,r)=>{for(var n in r||(r={}))wx.call(r,n)&&dg(e,n,r[n]);if(cg)for(var n of cg(r))Ax.call(r,n)&&dg(e,n,r[n]);return e};const Ex=({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:s,server:c,formApi:p,setFormApi:m,handleChange:v,handleServerChange:y})=>{const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:D,authCorsProxyUrl:B}=(0,M.useContext)(Xf.jI),$=s&&dt.IB.get(s,e.pointer);let K=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!K||!a.values.auth[K])&&(K=void 0),K&&(a.values.auth[K].token!==void 0||a.values.auth[K].client_id!==void 0||a.values.auth[K].client_secret!==void 0)&&(!a.values.auth[K].token||!a.values.auth[K].token.access_token)&&(K=void 0),K&&a.values.auth[K].username!=null&&(!a.values.auth[K].username||!a.values.auth[K].password)&&(K=void 0);const q=e.parameters||[];return!s&&M.createElement(M.Fragment,null,"Loading...")||M.createElement(qm,{onChange:v,getApi:m,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},M.createElement(ky,{operation:e,onChange:y}),M.createElement(mr.UQ,{initialActiveIdx:e.security.length&&K?1:0},e.security.length&&p&&M.createElement(Gd,{header:(0,su.l)("tryItAuth"),"data-cy":"security-trigger",error:!K&&!!b.auth,success:!!K,renderChildrenHidden:!0},D!=null&&D.ReplaceTryItSecurityPanel?M.createElement(Ox,{field:"auth",validate:ar.np},oe=>M.createElement(Xv.Q,{Hook:D==null?void 0:D.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:oe,OAuth2:Di}})):M.createElement(xx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:B,securityDefaults:n}))||null,e.requestBody&&p&&M.createElement(Gd,{header:(0,su.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},M.createElement(vb,{validate:Tx,formApi:p,body:e.requestBody,id:e.id,resolvedBody:$==null?void 0:$.requestBody,properties:r}))||null,q.length&&M.createElement(Gd,{header:(0,su.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},M.createElement(Ob,{operation:e,values:a.values,errors:a.errors||{}}))||null))};function Ox(e){const{fieldApi:r,render:n,userProps:a}=au(Cx({},e)),{setValue:s}=r,{children:c}=a;return n(M.createElement(M.Fragment,null,c(s)))}function Tx(){}const Px=(0,A.Pi)(Ex);var pg=o(39448);const Ix=e=>{const{shaking:r,className:n,children:a,rootElement:s}=e,[c]=(0,pg.B)(s),p=(0,M.useContext)(Xf.xf);return M.createElement(Nn.q2,{scrollYOffset:p==null?void 0:p.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:c==null?void 0:c.width},a)},Fx=(0,A.Pi)(Ix);var kx=Object.defineProperty,Rx=Object.defineProperties,Mx=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,hg=Object.prototype.hasOwnProperty,vg=Object.prototype.propertyIsEnumerable,gg=(e,r,n)=>r in e?kx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,on=(e,r)=>{for(var n in r||(r={}))hg.call(r,n)&&gg(e,n,r[n]);if(Ec)for(var n of Ec(r))vg.call(r,n)&&gg(e,n,r[n]);return e},ei=(e,r)=>Rx(e,Mx(r)),mg=(e,r)=>{var n={};for(var a in e)hg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ec)for(var a of Ec(e))r.indexOf(a)<0&&vg.call(e,a)&&(n[a]=e[a]);return n},yg=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function bg(e){return e.startsWith("//")?"https:"+e:e}const xg=({operation:e,store:r,onResponse:n,className:a,rootElement:s,properties:c,securityDefaults:p,onClose:m})=>{let v=(0,M.useRef)();const[y,b]=(0,M.useState)(e.activeServer),[I,D]=(0,M.useState)(0),[B,$]=(0,M.useState)(!1),[K,q]=(0,M.useState)(!1),[oe,ae]=(0,M.useState)({values:{path:(0,ar.ZS)(e.parameters,"path"),cookie:(0,ar.ZS)(e.parameters,"cookie"),header:(0,ar.ZS)(e.parameters,"header"),query:(0,ar.ZS)(e.parameters,"query")}}),[pe,Ce]=(0,M.useState)(),[Se,Pe]=(0,M.useState)(),[he,me]=(0,M.useState)(),[we,Fe]=(0,M.useState)(),Re=(0,pg.D)(e),Ue=(jt,fr=jt.getState())=>{var $t=fr,{values:cr}=$t,wr=mg($t,["values"]);v.current=jt,setTimeout(()=>{ae(ei(on({},wr),{values:ei(on({},cr),{query:(0,ar.FU)(cr.query||{})})}))},0)},ze=(0,M.useCallback)(jt=>{var fr=jt,{values:$t}=fr,cr=mg(fr,["values"]);const wr=ei(on({},cr),{values:ei(on({},$t),{query:(0,ar.FU)($t.query||{})})});ae(wr),(0,ar.Hc)(wr),e.setRequestValues($t)},[e]),Ct=jt=>{D(jt)},qe=jt=>{b(jt),e.setActiveServer(jt)},nr=()=>yg(void 0,null,function*(){var jt,fr,$t,cr,wr,Ut,ft,Ot,Zt;const{values:Wt,invalid:Kt}=((jt=v==null?void 0:v.current)==null?void 0:jt.getState())||oe||{};if((fr=v.current)==null||fr.submitForm(),Kt){q(!0),setTimeout(()=>q(!1),1e3),(cr=($t=r==null?void 0:r.options.events)==null?void 0:$t.tryItSent)==null||cr.call($t,{eventType:Ks.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:qr,requestBody:Un}=e,pi=Un&&Un.content&&Un.content.active&&Un.content.active.name||"";let Vr=Wt.body;if(/json/.test(pi))try{Vr=JSON.parse(Vr)}catch(qt){console.error(qt)}$(!0);const sn=pe,Jo=(e.httpVerb||"").toLowerCase();if(!qr)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Fn=qr.find(qt=>y.url.endsWith(qt.url.endsWith("/")?qt.url.substring(0,qt.url.length-1):qt.url)),Xo=Date.now(),cp=!!window.document.documentMode;let ji,Vi=Wt.auth;if(Wt.auth){const qt=Object.keys(Wt.auth)[0],En=(0,dt.dw)(qt);ji=ei(on({},sn),{components:ei(on({},sn==null?void 0:sn.components),{securitySchemes:ei(on({},sn==null?void 0:sn.components.securitySchemes),{[En]:ei(on({},sn==null?void 0:sn.components.securitySchemes[En]),{type:(sn==null?void 0:sn.components.securitySchemes[En].type)==="openIdConnect"?"oauth2":sn==null?void 0:sn.components.securitySchemes[En].type})})})}),Vi=ei(on({},Vi),{[En]:Vi[qt]})}else ji=on({},sn);ji.servers=qr;const Oa=r.options.corsProxyUrl;Oa&&qr.length&&(ji.servers=qr.map(qt=>ei(on({},qt),{url:Oa+bg(qt.url)})),ji.paths=ei(on({},ji.paths),{[e.path]:ei(on({},ji.paths[e.path]),{[Jo]:ei(on({},ji.paths[e.path][Jo]),{servers:void 0}),servers:void 0})}));const il=((Ut=(wr=Un==null?void 0:Un.content)==null?void 0:wr.active)==null?void 0:Ut.name)||null;if(il&&Vr&&ro(il)){const qt=Object.values(Vr);Vr=qt.length>1?qt:qt[0]}const xu={userFetch:cp&&o(96279).fetch,server:Oa?Oa+bg(Fn.url):Fn.url,serverVariables:Fn.variables,spec:ji,pathName:e.path,method:e.httpVerb,parameters:on(on(on(on({},Wt.path),Wt.query),Wt.header),Wt.cookie),securities:{authorized:Vi},requestBody:Vr,requestContentType:il,responseContentType:((ft=Wt.header)==null?void 0:ft.Accept)||null,requestInterceptor:(0,ar.Tz)(r.options,e,Vi==null?void 0:Vi.Authorization)};try{const qt=yield hn.execute(xu),En=qt==null?void 0:qt.data;En instanceof Blob&&(ro(En.type)&&(qt.fileInfo={rawData:En,fileName:(0,ar.AM)(qt.headers)}),qt.data=yield En.text()),n==null||n({request:xu,response:qt}),Fe(qt),me(void 0)}catch(qt){qt&&qt.response&&qt.response.data instanceof Blob&&(qt.response.data=yield qt.response.data.text(),n==null||n({request:xu,response:qt.response})),Fe(void 0),me(qt)}finally{$(!1),D(1),Pe(Date.now()-Xo),(Zt=(Ot=r==null?void 0:r.options.events)==null?void 0:Ot.tryItSent)==null||Zt.call(Ot,{eventType:Ks.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}});(0,Bt.useMount)(()=>yg(void 0,null,function*(){var jt;const fr=yield r.dereferenceSpecForTryIt(e);Ce(fr),(jt=v.current)==null||jt.setValues({})})),(0,M.useEffect)(()=>{Re!==e&&(Fe(void 0),me(void 0),D(0))},[e,Re]);const ur=!!(we||he);return M.createElement(Fx,{shaking:K,className:a,rootElement:s},M.createElement(mr.Hc,null,M.createElement(Ug,{active:I,hasResponse:ur,onChange:Ct}),m&&M.createElement(Nn.PZ,{onClick:m}," \u2715 ")),M.createElement(Nn.RE,{hidden:I!==0,"data-cy":"console-request-body"},M.createElement(Px,{operation:e,properties:c,securityDefaults:p,form:oe,resolvedRawSpec:pe,server:y,formApi:v.current,setFormApi:Ue,handleChange:ze,handleServerChange:qe})),M.createElement(Nn.RE,{hidden:I!==1,"data-cy":"console-response-body"},M.createElement(jg,{response:we,error:he,time:Se}),";"),M.createElement(Gg,{hasResponse:ur,params:oe.values,operation:e,loading:B,execute:nr}))},Lx=(0,A.Pi)(xg)},37795:h=>{"use strict";var E="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(A){var O=this;if(typeof O!="function"||d.call(O)!==x)throw new TypeError(E+O);for(var k=o.call(arguments,1),U,_=function(){if(this instanceof U){var J=O.apply(this,k.concat(o.call(arguments)));return Object(J)===J?J:this}else return O.apply(A,k.concat(o.call(arguments)))},re=Math.max(0,O.length-k.length),ue=[],ne=0;ne<re;ne++)ue.push("$"+ne);if(U=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(_),O.prototype){var ie=function(){};ie.prototype=O.prototype,U.prototype=new ie,ie.prototype=null}return U}},4090:(h,E,o)=>{"use strict";var d=o(37795);h.exports=Function.prototype.bind||d},67286:(h,E,o)=>{"use strict";var d,x=SyntaxError,w=Function,A=TypeError,O=function(ve){try{return w('"use strict"; return ('+ve+").constructor;")()}catch(ee){}},k=Object.getOwnPropertyDescriptor;if(k)try{k({},"")}catch(ve){k=null}var U=function(){throw new A},_=k?function(){try{return arguments.callee,U}catch(ve){try{return k(arguments,"callee").get}catch(ee){return U}}}():U,re=o(32636)(),ue=Object.getPrototypeOf||function(ve){return ve.__proto__},ne={},ie=typeof Uint8Array=="undefined"?d:ue(Uint8Array),J={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":re?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re?ue(""[Symbol.iterator]()):d,"%Symbol%":re?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":_,"%TypedArray%":ie,"%TypeError%":A,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},P=function ve(ee){var Z;if(ee==="%AsyncFunction%")Z=O("async function () {}");else if(ee==="%GeneratorFunction%")Z=O("function* () {}");else if(ee==="%AsyncGeneratorFunction%")Z=O("async function* () {}");else if(ee==="%AsyncGenerator%"){var z=ve("%AsyncGeneratorFunction%");z&&(Z=z.prototype)}else if(ee==="%AsyncIteratorPrototype%"){var ge=ve("%AsyncGenerator%");ge&&(Z=ue(ge.prototype))}return J[ee]=Z,Z},G={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=o(4090),C=o(23198),F=L.call(Function.call,Array.prototype.concat),V=L.call(Function.apply,Array.prototype.splice),Q=L.call(Function.call,String.prototype.replace),Y=L.call(Function.call,String.prototype.slice),W=L.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,H=function(ee){var Z=Y(ee,0,1),z=Y(ee,-1);if(Z==="%"&&z!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&Z!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ge=[];return Q(ee,te,function(Ee,je,ke,it){ge[ge.length]=ke?Q(it,X,"$1"):je||Ee}),ge},fe=function(ee,Z){var z=ee,ge;if(C(G,z)&&(ge=G[z],z="%"+ge[0]+"%"),C(J,z)){var Ee=J[z];if(Ee===ne&&(Ee=P(z)),typeof Ee=="undefined"&&!Z)throw new A("intrinsic "+ee+" exists, but is not available. Please file an issue!");return{alias:ge,name:z,value:Ee}}throw new x("intrinsic "+ee+" does not exist!")};h.exports=function(ee,Z){if(typeof ee!="string"||ee.length===0)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new A('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,ee)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=H(ee),ge=z.length>0?z[0]:"",Ee=fe("%"+ge+"%",Z),je=Ee.name,ke=Ee.value,it=!1,et=Ee.alias;et&&(ge=et[0],V(z,F([0,1],et)));for(var at=1,Tt=!0;at<z.length;at+=1){var St=z[at],Le=Y(St,0,1),Oe=Y(St,-1);if((Le==='"'||Le==="'"||Le==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Le!==Oe)throw new x("property names with quotes must have matching quotes");if((St==="constructor"||!Tt)&&(it=!0),ge+="."+St,je="%"+ge+"%",C(J,je))ke=J[je];else if(ke!=null){if(!(St in ke)){if(!Z)throw new A("base intrinsic for "+ee+" exists, but the property is not available.");return}if(k&&at+1>=z.length){var be=k(ke,St);Tt=!!be,Tt&&"get"in be&&!("originalValue"in be.get)?ke=be.get:ke=ke[St]}else Tt=C(ke,St),ke=ke[St];Tt&&!it&&(J[je]=ke)}}return ke}},32636:(h,E,o)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=o(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;o[d]=w;for(d in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var A=Object.getOwnPropertySymbols(o);if(A.length!==1||A[0]!==d||!Object.prototype.propertyIsEnumerable.call(o,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var O=Object.getOwnPropertyDescriptor(o,d);if(O.value!==w||O.enumerable!==!0)return!1}return!0}},23198:(h,E,o)=>{"use strict";var d=o(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,E,o)=>{var d=o(52118),x=o(96909),w=o(98138),A=o(4174),O=o(7942);function k(U){var _=-1,re=U==null?0:U.length;for(this.clear();++_<re;){var ue=U[_];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},80235:(h,E,o)=>{var d=o(3945),x=o(21846),w=o(88028),A=o(72344),O=o(94769);function k(U){var _=-1,re=U==null?0:U.length;for(this.clear();++_<re;){var ue=U[_];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},10326:(h,E,o)=>{var d=o(38761),x=o(37772),w=d(x,"Map");h.exports=w},96738:(h,E,o)=>{var d=o(92411),x=o(36417),w=o(86928),A=o(79493),O=o(24150);function k(U){var _=-1,re=U==null?0:U.length;for(this.clear();++_<re;){var ue=U[_];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},50857:(h,E,o)=>{var d=o(37772),x=d.Symbol;h.exports=x},50343:h=>{function E(o,d){for(var x=-1,w=o==null?0:o.length,A=Array(w);++x<w;)A[x]=d(o[x],x,o);return A}h.exports=E},22218:(h,E,o)=>{var d=o(41225);function x(w,A){for(var O=w.length;O--;)if(d(w[O][0],A))return O;return-1}h.exports=x},13324:(h,E,o)=>{var d=o(17297),x=o(33812);function w(A,O){O=d(O,A);for(var k=0,U=O.length;A!=null&&k<U;)A=A[x(O[k++])];return k&&k==U?A:void 0}h.exports=w},53366:(h,E,o)=>{var d=o(50857),x=o(62107),w=o(37157),A="[object Null]",O="[object Undefined]",k=d?d.toStringTag:void 0;function U(_){return _==null?_===void 0?O:A:k&&k in Object(_)?x(_):w(_)}h.exports=U},6840:(h,E,o)=>{var d=o(61049),x=o(47394),w=o(29259),A=o(87035),O=/[\\^$.*+?()[\]{}|]/g,k=/^\[object .+?Constructor\]$/,U=Function.prototype,_=Object.prototype,re=U.toString,ue=_.hasOwnProperty,ne=RegExp("^"+re.call(ue).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(J){if(!w(J)||x(J))return!1;var P=d(J)?ne:k;return P.test(A(J))}h.exports=ie},1054:(h,E,o)=>{var d=o(50857),x=o(50343),w=o(86152),A=o(4795),O=1/0,k=d?d.prototype:void 0,U=k?k.toString:void 0;function _(re){if(typeof re=="string")return re;if(w(re))return x(re,_)+"";if(A(re))return U?U.call(re):"";var ue=re+"";return ue=="0"&&1/re==-O?"-0":ue}h.exports=_},17297:(h,E,o)=>{var d=o(86152),x=o(21401),w=o(54452),A=o(66188);function O(k,U){return d(k)?k:x(k,U)?[k]:w(A(k))}h.exports=O},24019:(h,E,o)=>{var d=o(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,E,o)=>{var d=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=d},27937:(h,E,o)=>{var d=o(98304);function x(w,A){var O=w.__data__;return d(A)?O[typeof A=="string"?"string":"hash"]:O.map}h.exports=x},38761:(h,E,o)=>{var d=o(6840),x=o(98109);function w(A,O){var k=x(A,O);return d(k)?k:void 0}h.exports=w},62107:(h,E,o)=>{var d=o(50857),x=Object.prototype,w=x.hasOwnProperty,A=x.toString,O=d?d.toStringTag:void 0;function k(U){var _=w.call(U,O),re=U[O];try{U[O]=void 0;var ue=!0}catch(ie){}var ne=A.call(U);return ue&&(_?U[O]=re:delete U[O]),ne}h.exports=k},98109:h=>{function E(o,d){return o==null?void 0:o[d]}h.exports=E},52118:(h,E,o)=>{var d=o(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function E(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}h.exports=E},98138:(h,E,o)=>{var d=o(99191),x="__lodash_hash_undefined__",w=Object.prototype,A=w.hasOwnProperty;function O(k){var U=this.__data__;if(d){var _=U[k];return _===x?void 0:_}return A.call(U,k)?U[k]:void 0}h.exports=O},4174:(h,E,o)=>{var d=o(99191),x=Object.prototype,w=x.hasOwnProperty;function A(O){var k=this.__data__;return d?k[O]!==void 0:w.call(k,O)}h.exports=A},7942:(h,E,o)=>{var d=o(99191),x="__lodash_hash_undefined__";function w(A,O){var k=this.__data__;return this.size+=this.has(A)?0:1,k[A]=d&&O===void 0?x:O,this}h.exports=w},21401:(h,E,o)=>{var d=o(86152),x=o(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;function O(k,U){if(d(k))return!1;var _=typeof k;return _=="number"||_=="symbol"||_=="boolean"||k==null||x(k)?!0:A.test(k)||!w.test(k)||U!=null&&k in Object(U)}h.exports=O},98304:h=>{function E(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}h.exports=E},47394:(h,E,o)=>{var d=o(24019),x=function(){var A=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function w(A){return!!x&&x in A}h.exports=w},3945:h=>{function E(){this.__data__=[],this.size=0}h.exports=E},21846:(h,E,o)=>{var d=o(22218),x=Array.prototype,w=x.splice;function A(O){var k=this.__data__,U=d(k,O);if(U<0)return!1;var _=k.length-1;return U==_?k.pop():w.call(k,U,1),--this.size,!0}h.exports=A},88028:(h,E,o)=>{var d=o(22218);function x(w){var A=this.__data__,O=d(A,w);return O<0?void 0:A[O][1]}h.exports=x},72344:(h,E,o)=>{var d=o(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,E,o)=>{var d=o(22218);function x(w,A){var O=this.__data__,k=d(O,w);return k<0?(++this.size,O.push([w,A])):O[k][1]=A,this}h.exports=x},92411:(h,E,o)=>{var d=o(89612),x=o(80235),w=o(10326);function A(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=A},36417:(h,E,o)=>{var d=o(27937);function x(w){var A=d(this,w).delete(w);return this.size-=A?1:0,A}h.exports=x},86928:(h,E,o)=>{var d=o(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,E,o)=>{var d=o(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,E,o)=>{var d=o(27937);function x(w,A){var O=d(this,w),k=O.size;return O.set(w,A),this.size+=O.size==k?0:1,this}h.exports=x},77777:(h,E,o)=>{var d=o(30733),x=500;function w(A){var O=d(A,function(U){return k.size===x&&k.clear(),U}),k=O.cache;return O}h.exports=w},99191:(h,E,o)=>{var d=o(38761),x=d(Object,"create");h.exports=x},37157:h=>{var E=Object.prototype,o=E.toString;function d(x){return o.call(x)}h.exports=d},37772:(h,E,o)=>{var d=o(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,E,o)=>{var d=o(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,A=d(function(O){var k=[];return O.charCodeAt(0)===46&&k.push(""),O.replace(x,function(U,_,re,ue){k.push(re?ue.replace(w,"$1"):_||U)}),k});h.exports=A},33812:(h,E,o)=>{var d=o(4795),x=1/0;function w(A){if(typeof A=="string"||d(A))return A;var O=A+"";return O=="0"&&1/A==-x?"-0":O}h.exports=w},87035:h=>{var E=Function.prototype,o=E.toString;function d(x){if(x!=null){try{return o.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function E(o,d){return o===d||o!==o&&d!==d}h.exports=E},72579:(h,E,o)=>{var d=o(13324);function x(w,A,O){var k=w==null?void 0:d(w,A);return k===void 0?O:k}h.exports=x},86152:h=>{var E=Array.isArray;h.exports=E},61049:(h,E,o)=>{var d=o(53366),x=o(29259),w="[object AsyncFunction]",A="[object Function]",O="[object GeneratorFunction]",k="[object Proxy]";function U(_){if(!x(_))return!1;var re=d(_);return re==A||re==O||re==w||re==k}h.exports=U},29259:h=>{function E(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}h.exports=E},15125:h=>{function E(o){return o!=null&&typeof o=="object"}h.exports=E},4795:(h,E,o)=>{var d=o(53366),x=o(15125),w="[object Symbol]";function A(O){return typeof O=="symbol"||x(O)&&d(O)==w}h.exports=A},30733:(h,E,o)=>{var d=o(96738),x="Expected a function";function w(A,O){if(typeof A!="function"||O!=null&&typeof O!="function")throw new TypeError(x);var k=function(){var U=arguments,_=O?O.apply(this,U):U[0],re=k.cache;if(re.has(_))return re.get(_);var ue=A.apply(this,U);return k.cache=re.set(_,ue)||re,ue};return k.cache=new(w.Cache||d),k}w.Cache=d,h.exports=w},66188:(h,E,o)=>{var d=o(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,E,o)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,A=d&&Map.prototype.forEach,O=typeof Set=="function"&&Set.prototype,k=Object.getOwnPropertyDescriptor&&O?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=O&&k&&typeof k.get=="function"?k.get:null,_=O&&Set.prototype.forEach,re=typeof WeakMap=="function"&&WeakMap.prototype,ue=re?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,ie=ne?WeakSet.prototype.has:null,J=typeof WeakRef=="function"&&WeakRef.prototype,P=J?WeakRef.prototype.deref:null,G=Boolean.prototype.valueOf,L=Object.prototype.toString,C=Function.prototype.toString,F=String.prototype.match,V=String.prototype.slice,Q=String.prototype.replace,Y=String.prototype.toUpperCase,W=String.prototype.toLowerCase,te=RegExp.prototype.test,X=Array.prototype.concat,H=Array.prototype.join,fe=Array.prototype.slice,ve=Math.floor,ee=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge?"object":"symbol")?Symbol.toStringTag:null,je=Object.prototype.propertyIsEnumerable,ke=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ce){return ce.__proto__}:null);function it(ce,xe){if(ce===1/0||ce===-1/0||ce!==ce||ce&&ce>-1e3&&ce<1e3||te.call(/e/,xe))return xe;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ce=="number"){var Ke=ce<0?-ve(-ce):ve(ce);if(Ke!==ce){var st=String(Ke),xt=V.call(xe,st.length+1);return Q.call(st,Be,"$&_")+"."+Q.call(Q.call(xt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Q.call(xe,Be,"$&_")}var et=o(53260),at=et.custom,Tt=Et(at)?at:null;h.exports=function ce(xe,Be,Ke,st){var xt=Be||{};if(nt(xt,"quoteStyle")&&xt.quoteStyle!=="single"&&xt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nt(xt,"maxStringLength")&&(typeof xt.maxStringLength=="number"?xt.maxStringLength<0&&xt.maxStringLength!==1/0:xt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=nt(xt,"customInspect")?xt.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nt(xt,"indent")&&xt.indent!==null&&xt.indent!==" "&&!(parseInt(xt.indent,10)===xt.indent&&xt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(nt(xt,"numericSeparator")&&typeof xt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var yr=xt.numericSeparator;if(typeof xe=="undefined")return"undefined";if(xe===null)return"null";if(typeof xe=="boolean")return xe?"true":"false";if(typeof xe=="string")return yt(xe,xt);if(typeof xe=="number"){if(xe===0)return 1/0/xe>0?"0":"-0";var Nt=String(xe);return yr?it(xe,Nt):Nt}if(typeof xe=="bigint"){var Yt=String(xe)+"n";return yr?it(xe,Yt):Yt}var zn=typeof xt.depth=="undefined"?5:xt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=zn&&zn>0&&typeof xe=="object")return Oe(xe)?"[Array]":"[Object]";var Ur=Pt(xt,Ke);if(typeof st=="undefined")st=[];else if(Rt(st,xe)>=0)return"[Circular]";function Kr(fn,Cr,yi){if(Cr&&(st=fe.call(st),st.push(Cr)),yi){var kn={depth:xt.depth};return nt(xt,"quoteStyle")&&(kn.quoteStyle=xt.quoteStyle),ce(fn,kn,Ke+1,st)}return ce(fn,xt,Ke+1,st)}if(typeof xe=="function"&&!De(xe)){var vi=er(xe),tn=Ve(xe,Kr);return"[Function"+(vi?": "+vi:" (anonymous)")+"]"+(tn.length>0?" { "+H.call(tn,", ")+" }":"")}if(Et(xe)){var gi=ge?Q.call(String(xe),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(xe);return typeof xe=="object"&&!ge?wt(gi):gi}if($e(xe)){for(var mi="<"+W.call(String(xe.nodeName)),rn=xe.attributes||[],xr=0;xr<rn.length;xr++)mi+=" "+rn[xr].name+"="+St(Le(rn[xr].value),"double",xt);return mi+=">",xe.childNodes&&xe.childNodes.length&&(mi+="..."),mi+="</"+W.call(String(xe.nodeName))+">",mi}if(Oe(xe)){if(xe.length===0)return"[]";var Gn=Ve(xe,Kr);return Ur&&!vt(Gn)?"["+ot(Gn,Ur)+"]":"[ "+H.call(Gn,", ")+" ]"}if(Ge(xe)){var Ui=Ve(xe,Kr);return!("cause"in Error.prototype)&&"cause"in xe&&!je.call(xe,"cause")?"{ ["+String(xe)+"] "+H.call(X.call("[cause]: "+Kr(xe.cause),Ui),", ")+" }":Ui.length===0?"["+String(xe)+"]":"{ ["+String(xe)+"] "+H.call(Ui,", ")+" }"}if(typeof xe=="object"&&kt){if(Tt&&typeof xe[Tt]=="function"&&et)return et(xe,{depth:zn-Ke});if(kt!=="symbol"&&typeof xe.inspect=="function")return xe.inspect()}if(Rr(xe)){var Wi=[];return A.call(xe,function(fn,Cr){Wi.push(Kr(Cr,xe,!0)+" => "+Kr(fn,xe))}),pt("Map",w.call(xe),Wi,Ur)}if(Ar(xe)){var gn=[];return _.call(xe,function(fn){gn.push(Kr(fn,xe))}),pt("Set",U.call(xe),gn,Ur)}if(_e(xe))return Ft("WeakMap");if(en(xe))return Ft("WeakSet");if(Mr(xe))return Ft("WeakRef");if(Ze(xe))return wt(Kr(Number(xe)));if(Xt(xe))return wt(Kr(ee.call(xe)));if(bt(xe))return wt(G.call(xe));if(tt(xe))return wt(Kr(String(xe)));if(!be(xe)&&!De(xe)){var un=Ve(xe,Kr),mn=ke?ke(xe)===Object.prototype:xe instanceof Object||xe.constructor===Object,yn=xe instanceof Object?"":"null prototype",On=!mn&&Ee&&Object(xe)===xe&&Ee in xe?V.call(Xe(xe),8,-1):yn?"Object":"",lo=mn||typeof xe.constructor!="function"?"":xe.constructor.name?xe.constructor.name+" ":"",$n=lo+(On||yn?"["+H.call(X.call([],On||[],yn||[]),": ")+"] ":"");return un.length===0?$n+"{}":Ur?$n+"{"+ot(un,Ur)+"}":$n+"{ "+H.call(un,", ")+" }"}return String(xe)};function St(ce,xe,Be){var Ke=(Be.quoteStyle||xe)==="double"?'"':"'";return Ke+ce+Ke}function Le(ce){return Q.call(String(ce),/"/g,"&quot;")}function Oe(ce){return Xe(ce)==="[object Array]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function be(ce){return Xe(ce)==="[object Date]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function De(ce){return Xe(ce)==="[object RegExp]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Ge(ce){return Xe(ce)==="[object Error]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function tt(ce){return Xe(ce)==="[object String]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Ze(ce){return Xe(ce)==="[object Number]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function bt(ce){return Xe(ce)==="[object Boolean]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Et(ce){if(ge)return ce&&typeof ce=="object"&&ce instanceof Symbol;if(typeof ce=="symbol")return!0;if(!ce||typeof ce!="object"||!z)return!1;try{return z.call(ce),!0}catch(xe){}return!1}function Xt(ce){if(!ce||typeof ce!="object"||!ee)return!1;try{return ee.call(ce),!0}catch(xe){}return!1}var zt=Object.prototype.hasOwnProperty||function(ce){return ce in this};function nt(ce,xe){return zt.call(ce,xe)}function Xe(ce){return L.call(ce)}function er(ce){if(ce.name)return ce.name;var xe=F.call(C.call(ce),/^function\s*([\w$]+)/);return xe?xe[1]:null}function Rt(ce,xe){if(ce.indexOf)return ce.indexOf(xe);for(var Be=0,Ke=ce.length;Be<Ke;Be++)if(ce[Be]===xe)return Be;return-1}function Rr(ce){if(!w||!ce||typeof ce!="object")return!1;try{w.call(ce);try{U.call(ce)}catch(xe){return!0}return ce instanceof Map}catch(xe){}return!1}function _e(ce){if(!ue||!ce||typeof ce!="object")return!1;try{ue.call(ce,ue);try{ie.call(ce,ie)}catch(xe){return!0}return ce instanceof WeakMap}catch(xe){}return!1}function Mr(ce){if(!P||!ce||typeof ce!="object")return!1;try{return P.call(ce),!0}catch(xe){}return!1}function Ar(ce){if(!U||!ce||typeof ce!="object")return!1;try{U.call(ce);try{w.call(ce)}catch(xe){return!0}return ce instanceof Set}catch(xe){}return!1}function en(ce){if(!ie||!ce||typeof ce!="object")return!1;try{ie.call(ce,ie);try{ue.call(ce,ue)}catch(xe){return!0}return ce instanceof WeakSet}catch(xe){}return!1}function $e(ce){return!ce||typeof ce!="object"?!1:typeof HTMLElement!="undefined"&&ce instanceof HTMLElement?!0:typeof ce.nodeName=="string"&&typeof ce.getAttribute=="function"}function yt(ce,xe){if(ce.length>xe.maxStringLength){var Be=ce.length-xe.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return yt(V.call(ce,0,xe.maxStringLength),xe)+Ke}var st=Q.call(Q.call(ce,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lt);return St(st,"single",xe)}function Lt(ce){var xe=ce.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[xe];return Be?"\\"+Be:"\\x"+(xe<16?"0":"")+Y.call(xe.toString(16))}function wt(ce){return"Object("+ce+")"}function Ft(ce){return ce+" { ? }"}function pt(ce,xe,Be,Ke){var st=Ke?ot(Be,Ke):H.call(Be,", ");return ce+" ("+xe+") {"+st+"}"}function vt(ce){for(var xe=0;xe<ce.length;xe++)if(Rt(ce[xe],`
505
505
  `)>=0)return!1;return!0}function Pt(ce,xe){var Be;if(ce.indent===" ")Be=" ";else if(typeof ce.indent=="number"&&ce.indent>0)Be=H.call(Array(ce.indent+1)," ");else return null;return{base:Be,prev:H.call(Array(xe+1),Be)}}function ot(ce,xe){if(ce.length===0)return"";var Be=`
506
506
  `+xe.prev+xe.base;return Be+H.call(ce,","+Be)+`
507
- `+xe.prev}function Ve(ce,xe){var Be=Oe(ce),Ke=[];if(Be){Ke.length=ce.length;for(var st=0;st<ce.length;st++)Ke[st]=nt(ce,st)?xe(ce[st],ce):""}var xt=typeof Q=="function"?Q(ce):[],kt;if(ge){kt={};for(var yr=0;yr<xt.length;yr++)kt["$"+xt[yr]]=xt[yr]}for(var Nt in ce)!nt(ce,Nt)||Be&&String(Number(Nt))===Nt&&Nt<ce.length||ge&&kt["$"+Nt]instanceof Symbol||(te.call(/[^\w$]/,Nt)?Ke.push(xe(Nt,ce)+": "+xe(ce[Nt],ce)):Ke.push(Nt+": "+xe(ce[Nt],ce)));if(typeof Q=="function")for(var Yt=0;Yt<xt.length;Yt++)je.call(ce,xt[Yt])&&Ke.push("["+xe(xt[Yt])+"]: "+xe(ce[xt[Yt]],ce));return Ke}},85527:h=>{"use strict";var E=String.prototype.replace,o=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return E.call(x,o,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,E,o)=>{"use strict";var d=o(66845),x=o(29166),w=o(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,E,o)=>{"use strict";var d=o(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},O=function(Y){return Y.replace(/&#(\d+);/g,function(P,$){return String.fromCharCode(parseInt($,10))})},k=function(Y,P){return Y&&typeof Y=="string"&&P.comma&&Y.indexOf(",")>-1?Y.split(","):Y},U="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",re=function(P,$){var D={},C=$.ignoreQueryPrefix?P.replace(/^\?/,""):P,F=$.parameterLimit===1/0?void 0:$.parameterLimit,V=C.split($.delimiter,F),X=-1,K,W=$.charset;if($.charsetSentinel)for(K=0;K<V.length;++K)V[K].indexOf("utf8=")===0&&(V[K]===Z?W="utf-8":V[K]===U&&(W="iso-8859-1"),X=K,K=V.length);for(K=0;K<V.length;++K)if(K!==X){var te=V[K],J=te.indexOf("]="),H=J===-1?te.indexOf("="):J+1,fe,he;H===-1?(fe=$.decoder(te,A.decoder,W,"key"),he=$.strictNullHandling?null:""):(fe=$.decoder(te.slice(0,H),A.decoder,W,"key"),he=d.maybeMap(k(te.slice(H+1),$),function(_){return $.decoder(_,A.decoder,W,"value")})),he&&$.interpretNumericEntities&&W==="iso-8859-1"&&(he=O(he)),te.indexOf("[]=")>-1&&(he=w(he)?[he]:he),x.call(D,fe)?D[fe]=d.combine(D[fe],he):D[fe]=he}return D},ue=function(Y,P,$,D){for(var C=D?P:k(P,$),F=Y.length-1;F>=0;--F){var V,X=Y[F];if(X==="[]"&&$.parseArrays)V=[].concat(C);else{V=$.plainObjects?Object.create(null):{};var K=X.charAt(0)==="["&&X.charAt(X.length-1)==="]"?X.slice(1,-1):X,W=parseInt(K,10);!$.parseArrays&&K===""?V={0:C}:!isNaN(W)&&X!==K&&String(W)===K&&W>=0&&$.parseArrays&&W<=$.arrayLimit?(V=[],V[W]=C):K!=="__proto__"&&(V[K]=C)}C=V}return C},ne=function(P,$,D,C){if(!!P){var F=D.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,V=/(\[[^[\]]*])/,X=/(\[[^[\]]*])/g,K=D.depth>0&&V.exec(F),W=K?F.slice(0,K.index):F,te=[];if(W){if(!D.plainObjects&&x.call(Object.prototype,W)&&!D.allowPrototypes)return;te.push(W)}for(var J=0;D.depth>0&&(K=X.exec(F))!==null&&J<D.depth;){if(J+=1,!D.plainObjects&&x.call(Object.prototype,K[1].slice(1,-1))&&!D.allowPrototypes)return;te.push(K[1])}return K&&te.push("["+F.slice(K.index)+"]"),ue(te,$,D,C)}},ie=function(P){if(!P)return A;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var $=typeof P.charset=="undefined"?A.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?A.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:A.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:A.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:A.arrayLimit,charset:$,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:A.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:A.comma,decoder:typeof P.decoder=="function"?P.decoder:A.decoder,delimiter:typeof P.delimiter=="string"||d.isRegExp(P.delimiter)?P.delimiter:A.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:A.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:A.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:A.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:A.strictNullHandling}};h.exports=function(Y,P){var $=ie(P);if(Y===""||Y===null||typeof Y=="undefined")return $.plainObjects?Object.create(null):{};for(var D=typeof Y=="string"?re(Y,$):Y,C=$.plainObjects?Object.create(null):{},F=Object.keys(D),V=0;V<F.length;++V){var X=F[V],K=ne(X,D[X],$,typeof Y=="string");C=d.merge(C,K,$)}return $.allowSparse===!0?C:d.compact(C)}},66845:(h,E,o)=>{"use strict";var d=o(74294),x=o(12493),w=o(85527),A=Object.prototype.hasOwnProperty,O={brackets:function(F){return F+"[]"},comma:"comma",indices:function(F,V){return F+"["+V+"]"},repeat:function(F){return F}},k=Array.isArray,U=String.prototype.split,Z=Array.prototype.push,re=function(C,F){Z.apply(C,k(F)?F:[F])},ue=Date.prototype.toISOString,ne=w.default,ie={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(F){return ue.call(F)},skipNulls:!1,strictNullHandling:!1},Y=function(F){return typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="symbol"||typeof F=="bigint"},P={},$=function C(F,V,X,K,W,te,J,H,fe,he,_,Q,z,ge,Ee,je){for(var ke=F,it=je,et=0,at=!1;(it=it.get(P))!==void 0&&!at;){var Tt=it.get(F);if(et+=1,typeof Tt!="undefined"){if(Tt===et)throw new RangeError("Cyclic object value");at=!0}typeof it.get(P)=="undefined"&&(et=0)}if(typeof H=="function"?ke=H(V,ke):ke instanceof Date?ke=_(ke):X==="comma"&&k(ke)&&(ke=x.maybeMap(ke,function(Xe){return Xe instanceof Date?_(Xe):Xe})),ke===null){if(W)return J&&!ge?J(V,ie.encoder,Ee,"key",Q):V;ke=""}if(Y(ke)||x.isBuffer(ke)){if(J){var St=ge?V:J(V,ie.encoder,Ee,"key",Q);if(X==="comma"&&ge){for(var Le=U.call(String(ke),","),Oe="",be=0;be<Le.length;++be)Oe+=(be===0?"":",")+z(J(Le[be],ie.encoder,Ee,"value",Q));return[z(St)+(K&&k(ke)&&Le.length===1?"[]":"")+"="+Oe]}return[z(St)+"="+z(J(ke,ie.encoder,Ee,"value",Q))]}return[z(V)+"="+z(String(ke))]}var De=[];if(typeof ke=="undefined")return De;var Ge;if(X==="comma"&&k(ke))Ge=[{value:ke.length>0?ke.join(",")||null:void 0}];else if(k(H))Ge=H;else{var tt=Object.keys(ke);Ge=fe?tt.sort(fe):tt}for(var Ze=K&&k(ke)&&ke.length===1?V+"[]":V,bt=0;bt<Ge.length;++bt){var Et=Ge[bt],Xt=typeof Et=="object"&&typeof Et.value!="undefined"?Et.value:ke[Et];if(!(te&&Xt===null)){var zt=k(ke)?typeof X=="function"?X(Ze,Et):Ze:Ze+(he?"."+Et:"["+Et+"]");je.set(F,et);var nt=d();nt.set(P,je),re(De,C(Xt,zt,X,K,W,te,J,H,fe,he,_,Q,z,ge,Ee,nt))}}return De},D=function(F){if(!F)return ie;if(F.encoder!==null&&typeof F.encoder!="undefined"&&typeof F.encoder!="function")throw new TypeError("Encoder has to be a function.");var V=F.charset||ie.charset;if(typeof F.charset!="undefined"&&F.charset!=="utf-8"&&F.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=w.default;if(typeof F.format!="undefined"){if(!A.call(w.formatters,F.format))throw new TypeError("Unknown format option provided.");X=F.format}var K=w.formatters[X],W=ie.filter;return(typeof F.filter=="function"||k(F.filter))&&(W=F.filter),{addQueryPrefix:typeof F.addQueryPrefix=="boolean"?F.addQueryPrefix:ie.addQueryPrefix,allowDots:typeof F.allowDots=="undefined"?ie.allowDots:!!F.allowDots,charset:V,charsetSentinel:typeof F.charsetSentinel=="boolean"?F.charsetSentinel:ie.charsetSentinel,delimiter:typeof F.delimiter=="undefined"?ie.delimiter:F.delimiter,encode:typeof F.encode=="boolean"?F.encode:ie.encode,encoder:typeof F.encoder=="function"?F.encoder:ie.encoder,encodeValuesOnly:typeof F.encodeValuesOnly=="boolean"?F.encodeValuesOnly:ie.encodeValuesOnly,filter:W,format:X,formatter:K,serializeDate:typeof F.serializeDate=="function"?F.serializeDate:ie.serializeDate,skipNulls:typeof F.skipNulls=="boolean"?F.skipNulls:ie.skipNulls,sort:typeof F.sort=="function"?F.sort:null,strictNullHandling:typeof F.strictNullHandling=="boolean"?F.strictNullHandling:ie.strictNullHandling}};h.exports=function(C,F){var V=C,X=D(F),K,W;typeof X.filter=="function"?(W=X.filter,V=W("",V)):k(X.filter)&&(W=X.filter,K=W);var te=[];if(typeof V!="object"||V===null)return"";var J;F&&F.arrayFormat in O?J=F.arrayFormat:F&&"indices"in F?J=F.indices?"indices":"repeat":J="indices";var H=O[J];if(F&&"commaRoundTrip"in F&&typeof F.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var fe=H==="comma"&&F&&F.commaRoundTrip;K||(K=Object.keys(V)),X.sort&&K.sort(X.sort);for(var he=d(),_=0;_<K.length;++_){var Q=K[_];X.skipNulls&&V[Q]===null||re(te,$(V[Q],Q,H,fe,X.strictNullHandling,X.skipNulls,X.encode?X.encoder:null,X.filter,X.sort,X.allowDots,X.serializeDate,X.format,X.formatter,X.encodeValuesOnly,X.charset,he))}var z=te.join(X.delimiter),ge=X.addQueryPrefix===!0?"?":"";return X.charsetSentinel&&(X.charset==="iso-8859-1"?ge+="utf8=%26%2310003%3B&":ge+="utf8=%E2%9C%93&"),z.length>0?ge+z:""}},12493:(h,E,o)=>{"use strict";var d=o(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,A=function(){for(var D=[],C=0;C<256;++C)D.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return D}(),O=function(C){for(;C.length>1;){var F=C.pop(),V=F.obj[F.prop];if(w(V)){for(var X=[],K=0;K<V.length;++K)typeof V[K]!="undefined"&&X.push(V[K]);F.obj[F.prop]=X}}},k=function(C,F){for(var V=F&&F.plainObjects?Object.create(null):{},X=0;X<C.length;++X)typeof C[X]!="undefined"&&(V[X]=C[X]);return V},U=function D(C,F,V){if(!F)return C;if(typeof F!="object"){if(w(C))C.push(F);else if(C&&typeof C=="object")(V&&(V.plainObjects||V.allowPrototypes)||!x.call(Object.prototype,F))&&(C[F]=!0);else return[C,F];return C}if(!C||typeof C!="object")return[C].concat(F);var X=C;return w(C)&&!w(F)&&(X=k(C,V)),w(C)&&w(F)?(F.forEach(function(K,W){if(x.call(C,W)){var te=C[W];te&&typeof te=="object"&&K&&typeof K=="object"?C[W]=D(te,K,V):C.push(K)}else C[W]=K}),C):Object.keys(F).reduce(function(K,W){var te=F[W];return x.call(K,W)?K[W]=D(K[W],te,V):K[W]=te,K},X)},Z=function(C,F){return Object.keys(F).reduce(function(V,X){return V[X]=F[X],V},C)},re=function(D,C,F){var V=D.replace(/\+/g," ");if(F==="iso-8859-1")return V.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(V)}catch(X){return V}},ue=function(C,F,V,X,K){if(C.length===0)return C;var W=C;if(typeof C=="symbol"?W=Symbol.prototype.toString.call(C):typeof C!="string"&&(W=String(C)),V==="iso-8859-1")return escape(W).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var te="",J=0;J<W.length;++J){var H=W.charCodeAt(J);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||K===d.RFC1738&&(H===40||H===41)){te+=W.charAt(J);continue}if(H<128){te=te+A[H];continue}if(H<2048){te=te+(A[192|H>>6]+A[128|H&63]);continue}if(H<55296||H>=57344){te=te+(A[224|H>>12]+A[128|H>>6&63]+A[128|H&63]);continue}J+=1,H=65536+((H&1023)<<10|W.charCodeAt(J)&1023),te+=A[240|H>>18]+A[128|H>>12&63]+A[128|H>>6&63]+A[128|H&63]}return te},ne=function(C){for(var F=[{obj:{o:C},prop:"o"}],V=[],X=0;X<F.length;++X)for(var K=F[X],W=K.obj[K.prop],te=Object.keys(W),J=0;J<te.length;++J){var H=te[J],fe=W[H];typeof fe=="object"&&fe!==null&&V.indexOf(fe)===-1&&(F.push({obj:W,prop:H}),V.push(fe))}return O(F),C},ie=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},Y=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,F){return[].concat(C,F)},$=function(C,F){if(w(C)){for(var V=[],X=0;X<C.length;X+=1)V.push(F(C[X]));return V}return F(C)};h.exports={arrayToObject:k,assign:Z,combine:P,compact:ne,decode:re,encode:ue,isBuffer:Y,isRegExp:ie,maybeMap:$,merge:U}},63277:(h,E,o)=>{"use strict";var d;function x(){return x=Object.assign||function(ie){for(var Y=1;Y<arguments.length;Y++){var P=arguments[Y];for(var $ in P)Object.prototype.hasOwnProperty.call(P,$)&&(ie[$]=P[$])}return ie},x.apply(this,arguments)}function w(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(P){return typeof P}:w=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},w(ie)}var A=function(){var ie=function(P,$){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var F in C)C.hasOwnProperty(F)&&(D[F]=C[F])},ie(P,$)};return function(Y,P){ie(Y,P);function $(){this.constructor=Y}Y.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}}();d={value:!0},d=E.fk=void 0;var O=o(2784),k=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,U;k||(U=o(23326));var Z=function(){function ie(){}return ie.equals=function(Y,P){var $=this,D=Object.keys,C=w(Y),F=w(P);return Y&&P&&C==="object"&&C===F?D(Y).length===D(P).length&&D(Y).every(function(V){return $.equals(Y[V],P[V])}):Y===P},ie}(),re=function(){function ie(Y,P){this.editor=Y,this.props=P}return ie.prototype.delegateCursor=function(Y,P,$){var D=this.editor.getDoc();$&&this.editor.focus(),P?D.setCursor(Y):D.setCursor(Y,null,{scroll:!1})},ie.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},ie.prototype.delegateSelection=function(Y,P){var $=this.editor.getDoc();$.setSelections(Y),P&&this.editor.focus()},ie.prototype.apply=function(Y){Y&&Y.selection&&Y.selection.ranges&&this.delegateSelection(Y.selection.ranges,Y.selection.focus||!1),Y&&Y.cursor&&this.delegateCursor(Y.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1),Y&&Y.scroll&&this.delegateScroll(Y.scroll)},ie.prototype.applyNext=function(Y,P,$){Y&&Y.selection&&Y.selection.ranges&&P&&P.selection&&P.selection.ranges&&!Z.equals(Y.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),Y&&Y.cursor&&P&&P.cursor&&!Z.equals(Y.cursor,P.cursor)&&this.delegateCursor($.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),Y&&Y.scroll&&P&&P.scroll&&!Z.equals(Y.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ie.prototype.applyUserDefined=function(Y,P){P&&P.cursor&&this.delegateCursor(P.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ie.prototype.wire=function(Y){var P=this;Object.keys(Y||{}).filter(function($){return/^on/.test($)}).forEach(function($){switch($){case"onBlur":P.editor.on("blur",function(D,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(D,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(D,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(D){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(D){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(D,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(D,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(D,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(D,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(D,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(D,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(D,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(D,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(D,C,F,V){P.props.onGutterClick(P.editor,C,F,V)});break;case"onInputRead":P.editor.on("inputRead",function(D,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(D,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(D,C,F){P.props.onKeyHandled(P.editor,C,F)});break;case"onKeyPress":P.editor.on("keypress",function(D,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(D,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(D,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(D,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(D,C,F){P.props.onRenderLine(P.editor,C,F)});break}case"onScroll":P.editor.on("scroll",function(D){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(D,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(D,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(D){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(D,C,F){P.props.onViewportChange(P.editor,C,F)});break}})},ie}(),ue=function(ie){A(Y,ie);function Y(P){var $=ie.call(this,P)||this;return k||($.applied=!1,$.appliedNext=!1,$.appliedUserDefined=!1,$.deferred=null,$.emulating=!1,$.hydrated=!1,$.initCb=function(){$.props.editorDidConfigure&&$.props.editorDidConfigure($.editor)},$.mounted=!1),$}return Y.prototype.hydrate=function(P){var $=this,D=P&&P.options?P.options:{},C=x({},U.defaults,this.editor.options,D),F=Object.keys(C).some(function(V){return $.editor.getOption(V)!==C[V]});F&&Object.keys(C).forEach(function(V){D.hasOwnProperty(V)&&$.editor.getOption(V)!==C[V]&&($.editor.setOption(V,C[V]),$.mirror.setOption(V,C[V]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},Y.prototype.initChange=function(P){this.emulating=!0;var $=this.editor.getDoc(),D=$.lastLine(),C=$.getLine($.lastLine()).length;$.replaceRange(P||"",{line:0,ch:0},{line:D,ch:C}),this.mirror.setValue(P),$.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.prototype.resolveChange=function(P){this.emulating=!0;var $=this.editor.getDoc();if(this.deferred.origin==="undo"?$.undo():this.deferred.origin==="redo"?$.redo():$.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==$.getValue()){var D=$.getCursor();$.setValue(P),$.setCursor(D)}this.emulating=!1,this.deferred=null},Y.prototype.mirrorChange=function(P){var $=this.editor.getDoc();return P.origin==="undo"?($.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?($.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},Y.prototype.componentDidMount=function(){var P=this;k||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new re(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function($,D){if(!P.emulating){D.cancel(),P.deferred=D;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function($,D){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,D,P.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(P){if(!k){var $={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&($.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,$),this.appliedNext=!0),this.shared.applyUserDefined(P,$),this.appliedUserDefined=!0}},Y.prototype.componentWillUnmount=function(){k||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(P,$){return!k},Y.prototype.render=function(){var P=this;if(k)return null;var $=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return O.createElement("div",{className:$,ref:function(C){return P.ref=C}})},Y}(O.Component);E.fk=ue;var ne=function(ie){A(Y,ie);function Y(P){var $=ie.call(this,P)||this;return k||($.applied=!1,$.appliedUserDefined=!1,$.continueChange=!1,$.detached=!1,$.hydrated=!1,$.initCb=function(){$.props.editorDidConfigure&&$.props.editorDidConfigure($.editor)},$.mounted=!1,$.onBeforeChangeCb=function(){$.continueChange=!0}),$}return Y.prototype.hydrate=function(P){var $=this,D=P&&P.options?P.options:{},C=x({},U.defaults,this.editor.options,D),F=Object.keys(C).some(function(W){return $.editor.getOption(W)!==C[W]});if(F&&Object.keys(C).forEach(function(W){D.hasOwnProperty(W)&&$.editor.getOption(W)!==C[W]&&$.editor.setOption(W,C[W])}),!this.hydrated){var V=this.editor.getDoc(),X=V.lastLine(),K=V.getLine(V.lastLine()).length;V.replaceRange(P.value||"",{line:0,ch:0},{line:X,ch:K})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var P=this;k||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new re(this.editor,this.props),this.editor.on("beforeChange",function($,D){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,D,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function($,D){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,D,P.editor.getValue()):P.props.onChange(P.editor,D,P.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(k||this.detached)){var $={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&($.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,$),this.appliedUserDefined=!0)}},Y.prototype.componentWillUnmount=function(){k||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(P,$){var D=!0;return k&&(D=!1),this.detached&&P.detach&&(D=!1),D},Y.prototype.render=function(){var P=this;if(k)return null;var $=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return O.createElement("div",{className:$,ref:function(C){return P.ref=C}})},Y}(O.Component);d=ne},74294:(h,E,o)=>{"use strict";var d=o(67286),x=o(62680),w=o(99500),A=d("%TypeError%"),O=d("%WeakMap%",!0),k=d("%Map%",!0),U=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),re=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),ie=x("Map.prototype.has",!0),Y=function(C,F){for(var V=C,X;(X=V.next)!==null;V=X)if(X.key===F)return V.next=X.next,X.next=C.next,C.next=X,X},P=function(C,F){var V=Y(C,F);return V&&V.value},$=function(C,F,V){var X=Y(C,F);X?X.value=V:C.next={key:F,next:C.next,value:V}},D=function(C,F){return!!Y(C,F)};h.exports=function(){var F,V,X,K={assert:function(W){if(!K.has(W))throw new A("Side channel does not contain "+w(W))},get:function(W){if(O&&W&&(typeof W=="object"||typeof W=="function")){if(F)return U(F,W)}else if(k){if(V)return ue(V,W)}else if(X)return P(X,W)},has:function(W){if(O&&W&&(typeof W=="object"||typeof W=="function")){if(F)return re(F,W)}else if(k){if(V)return ie(V,W)}else if(X)return D(X,W);return!1},set:function(W,te){O&&W&&(typeof W=="object"||typeof W=="function")?(F||(F=new O),Z(F,W,te)):k?(V||(V=new k),ne(V,W,te)):(X||(X={key:{},next:null}),$(X,W,te))}};return K}},79375:(h,E,o)=>{var d=o(46062),x=o(45957);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},4570:(h,E,o)=>{var d=o(46062),x=o(73792);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},76239:(h,E,o)=>{var d=o(46062),x=o(59062);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},49032:(h,E,o)=>{var d=o(46062),x=o(32024);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},56855:h=>{"use strict";function E(P){return Object.prototype.toString.call(P)}function o(P){return E(P)==="[object Date]"}function d(P){return E(P)==="[object RegExp]"}function x(P){return E(P)==="[object Error]"}function w(P){return E(P)==="[object Boolean]"}function A(P){return E(P)==="[object Number]"}function O(P){return E(P)==="[object String]"}var k=Array.isArray||function($){return Object.prototype.toString.call($)==="[object Array]"};function U(P,$){if(P.forEach)return P.forEach($);for(var D=0;D<P.length;D++)$(P[D],D,P)}var Z=Object.keys||function($){var D=[];for(var C in $)D.push(C);return D},re=Object.prototype.hasOwnProperty||function(P,$){return $ in P};function ue(P){if(typeof P=="object"&&P!==null){var $;if(k(P))$=[];else if(o(P))$=new Date(P.getTime?P.getTime():P);else if(d(P))$=new RegExp(P);else if(x(P))$={message:P.message};else if(w(P)||A(P)||O(P))$=Object(P);else if(Object.create&&Object.getPrototypeOf)$=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)$={};else{var D=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=D,$=new C}return U(Z(P),function(F){$[F]=P[F]}),$}return P}function ne(P,$,D){var C=[],F=[],V=!0;return function X(K){var W=D?ue(K):K,te={},J=!0,H={node:W,node_:K,path:[].concat(C),parent:F[F.length-1],parents:F,key:C[C.length-1],isRoot:C.length===0,level:C.length,circular:null,update:function(_,Q){H.isRoot||(H.parent.node[H.key]=_),H.node=_,Q&&(J=!1)},delete:function(_){delete H.parent.node[H.key],_&&(J=!1)},remove:function(_){k(H.parent.node)?H.parent.node.splice(H.key,1):delete H.parent.node[H.key],_&&(J=!1)},keys:null,before:function(_){te.before=_},after:function(_){te.after=_},pre:function(_){te.pre=_},post:function(_){te.post=_},stop:function(){V=!1},block:function(){J=!1}};if(!V)return H;function fe(){if(typeof H.node=="object"&&H.node!==null){(!H.keys||H.node_!==H.node)&&(H.keys=Z(H.node)),H.isLeaf=H.keys.length===0;for(var _=0;_<F.length;_++)if(F[_].node_===K){H.circular=F[_];break}}else H.isLeaf=!0,H.keys=null;H.notLeaf=!H.isLeaf,H.notRoot=!H.isRoot}fe();var he=$.call(H,H.node);return he!==void 0&&H.update&&H.update(he),te.before&&te.before.call(H,H.node),J&&(typeof H.node=="object"&&H.node!==null&&!H.circular&&(F.push(H),fe(),U(H.keys,function(_,Q){C.push(_),te.pre&&te.pre.call(H,H.node[_],_);var z=X(H.node[_]);D&&re.call(H.node,_)&&(H.node[_]=z.node),z.isLast=Q===H.keys.length-1,z.isFirst=Q===0,te.post&&te.post.call(H,z),C.pop()}),F.pop()),te.after&&te.after.call(H,H.node)),H}(P).node}function ie(P){this.value=P}ie.prototype.get=function(P){for(var $=this.value,D=0;D<P.length;D++){var C=P[D];if(!$||!re.call($,C))return;$=$[C]}return $},ie.prototype.has=function(P){for(var $=this.value,D=0;D<P.length;D++){var C=P[D];if(!$||!re.call($,C))return!1;$=$[C]}return!0},ie.prototype.set=function(P,$){for(var D=this.value,C=0;C<P.length-1;C++){var F=P[C];re.call(D,F)||(D[F]={}),D=D[F]}return D[P[C]]=$,$},ie.prototype.map=function(P){return ne(this.value,P,!0)},ie.prototype.forEach=function(P){return this.value=ne(this.value,P,!1),this.value},ie.prototype.reduce=function(P,$){var D=arguments.length===1,C=D?this.value:$;return this.forEach(function(F){(!this.isRoot||!D)&&(C=P.call(this,C,F))}),C},ie.prototype.paths=function(){var P=[];return this.forEach(function(){P.push(this.path)}),P},ie.prototype.nodes=function(){var P=[];return this.forEach(function(){P.push(this.node)}),P},ie.prototype.clone=function(){var P=[],$=[];return function D(C){for(var F=0;F<P.length;F++)if(P[F]===C)return $[F];if(typeof C=="object"&&C!==null){var V=ue(C);return P.push(C),$.push(V),U(Z(C),function(X){V[X]=D(C[X])}),P.pop(),$.pop(),V}return C}(this.value)};function Y(P){return new ie(P)}U(Z(ie.prototype),function(P){Y[P]=function($){var D=[].slice.call(arguments,1),C=new ie($);return C[P].apply(C,D)}}),h.exports=Y},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(h,E,o)=>{h.exports=o(53822)},40192:(h,E,o)=>{h.exports=o(44877)},42126:(h,E,o)=>{h.exports=o(10140)},40453:(h,E,o)=>{h.exports=o(55603)},35784:(h,E,o)=>{h.exports=o(76237)},82985:(h,E,o)=>{h.exports=o(56515)},14903:(h,E,o)=>{h.exports=o(20057)},71488:(h,E,o)=>{h.exports=o(24741)},93963:(h,E,o)=>{h.exports=o(8368)},51661:(h,E,o)=>{h.exports=o(342)},85337:(h,E,o)=>{h.exports=o(392)},45932:(h,E,o)=>{h.exports=o(28478)},31175:(h,E,o)=>{h.exports=o(58202)},2921:(h,E,o)=>{h.exports=o(45636)},22583:(h,E,o)=>{h.exports=o(46618)},8304:(h,E,o)=>{h.exports=o(72946)},36394:(h,E,o)=>{h.exports=o(11235)},50557:(h,E,o)=>{h.exports=o(62813)},72010:(h,E,o)=>{h.exports=o(68664)},5490:(h,E,o)=>{h.exports=o(21457)},1858:(h,E,o)=>{h.exports=o(36516)},84870:(h,E,o)=>{h.exports=o(87611)},48145:(h,E,o)=>{h.exports=o(4161)},26405:(h,E,o)=>{h.exports=o(75159)},9600:(h,E,o)=>{h.exports=o(87708)},72383:(h,E,o)=>{h.exports=o(42937)},8626:(h,E,o)=>{h.exports=o(69297)},45055:(h,E,o)=>{h.exports=o(10353)},49800:(h,E,o)=>{h.exports=o(8026)},79494:(h,E,o)=>{h.exports=o(67362)},11807:(h,E,o)=>{h.exports=o(57532)},24463:(h,E,o)=>{h.exports=o(61903)},21889:(h,E,o)=>{h.exports=o(42044)},25575:(h,E,o)=>{h.exports=o(60902)},68861:(h,E,o)=>{h.exports=o(2214)},64772:(h,E,o)=>{h.exports=o(983)},57829:(h,E,o)=>{h.exports=o(59256)},92876:(h,E,o)=>{h.exports=o(95659)},92903:(h,E,o)=>{h.exports=o(93698)},18730:(h,E,o)=>{var d=o(69696).default,x=o(49800),w=o(57829),A=o(8626),O=o(21889),k=o(48145),U=o(68861),Z=o(64772),re=o(9600),ue=o(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return ie},h.exports.__esModule=!0,h.exports.default=h.exports;var ie={},Y=Object.prototype,P=Y.hasOwnProperty,$=x||function(Le,Oe,be){Le[Oe]=be.value},D=typeof w=="function"?w:{},C=D.iterator||"@@iterator",F=D.asyncIterator||"@@asyncIterator",V=D.toStringTag||"@@toStringTag";function X(Le,Oe,be){return x(Le,Oe,{value:be,enumerable:!0,configurable:!0,writable:!0}),Le[Oe]}try{X({},"")}catch(Le){X=function(be,De,Ge){return be[De]=Ge}}function K(Le,Oe,be,De){var Ge=Oe&&Oe.prototype instanceof J?Oe:J,tt=A(Ge.prototype),Ze=new at(De||[]);return $(tt,"_invoke",{value:je(Le,be,Ze)}),tt}function W(Le,Oe,be){try{return{type:"normal",arg:Le.call(Oe,be)}}catch(De){return{type:"throw",arg:De}}}ie.wrap=K;var te={};function J(){}function H(){}function fe(){}var he={};X(he,C,function(){return this});var _=O,Q=_&&_(_(Tt([])));Q&&Q!==Y&&P.call(Q,C)&&(he=Q);var z=fe.prototype=J.prototype=A(he);function ge(Le){var Oe;k(Oe=["next","throw","return"]).call(Oe,function(be){X(Le,be,function(De){return this._invoke(be,De)})})}function Ee(Le,Oe){function be(Ge,tt,Ze,bt){var Et=W(Le[Ge],Le,tt);if(Et.type!=="throw"){var Xt=Et.arg,zt=Xt.value;return zt&&d(zt)=="object"&&P.call(zt,"__await")?Oe.resolve(zt.__await).then(function(nt){be("next",nt,Ze,bt)},function(nt){be("throw",nt,Ze,bt)}):Oe.resolve(zt).then(function(nt){Xt.value=nt,Ze(Xt)},function(nt){return be("throw",nt,Ze,bt)})}bt(Et.arg)}var De;$(this,"_invoke",{value:function(tt,Ze){function bt(){return new Oe(function(Et,Xt){be(tt,Ze,Et,Xt)})}return De=De?De.then(bt,bt):bt()}})}function je(Le,Oe,be){var De="suspendedStart";return function(Ge,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if(Ge==="throw")throw tt;return St()}for(be.method=Ge,be.arg=tt;;){var Ze=be.delegate;if(Ze){var bt=ke(Ze,be);if(bt){if(bt===te)continue;return bt}}if(be.method==="next")be.sent=be._sent=be.arg;else if(be.method==="throw"){if(De==="suspendedStart")throw De="completed",be.arg;be.dispatchException(be.arg)}else be.method==="return"&&be.abrupt("return",be.arg);De="executing";var Et=W(Le,Oe,be);if(Et.type==="normal"){if(De=be.done?"completed":"suspendedYield",Et.arg===te)continue;return{value:Et.arg,done:be.done}}Et.type==="throw"&&(De="completed",be.method="throw",be.arg=Et.arg)}}}function ke(Le,Oe){var be=Oe.method,De=Le.iterator[be];if(De===void 0)return Oe.delegate=null,be==="throw"&&Le.iterator.return&&(Oe.method="return",Oe.arg=void 0,ke(Le,Oe),Oe.method==="throw")||be!=="return"&&(Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a '"+be+"' method")),te;var Ge=W(De,Le.iterator,Oe.arg);if(Ge.type==="throw")return Oe.method="throw",Oe.arg=Ge.arg,Oe.delegate=null,te;var tt=Ge.arg;return tt?tt.done?(Oe[Le.resultName]=tt.value,Oe.next=Le.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,te):tt:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,te)}function it(Le){var Oe={tryLoc:Le[0]};1 in Le&&(Oe.catchLoc=Le[1]),2 in Le&&(Oe.finallyLoc=Le[2],Oe.afterLoc=Le[3]),this.tryEntries.push(Oe)}function et(Le){var Oe=Le.completion||{};Oe.type="normal",delete Oe.arg,Le.completion=Oe}function at(Le){this.tryEntries=[{tryLoc:"root"}],k(Le).call(Le,it,this),this.reset(!0)}function Tt(Le){if(Le){var Oe=Le[C];if(Oe)return Oe.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var be=-1,De=function Ge(){for(;++be<Le.length;)if(P.call(Le,be))return Ge.value=Le[be],Ge.done=!1,Ge;return Ge.value=void 0,Ge.done=!0,Ge};return De.next=De}}return{next:St}}function St(){return{value:void 0,done:!0}}return H.prototype=fe,$(z,"constructor",{value:fe,configurable:!0}),$(fe,"constructor",{value:H,configurable:!0}),H.displayName=X(fe,V,"GeneratorFunction"),ie.isGeneratorFunction=function(Le){var Oe=typeof Le=="function"&&Le.constructor;return!!Oe&&(Oe===H||(Oe.displayName||Oe.name)==="GeneratorFunction")},ie.mark=function(Le){return U?U(Le,fe):(Le.__proto__=fe,X(Le,V,"GeneratorFunction")),Le.prototype=A(z),Le},ie.awrap=function(Le){return{__await:Le}},ge(Ee.prototype),X(Ee.prototype,F,function(){return this}),ie.AsyncIterator=Ee,ie.async=function(Le,Oe,be,De,Ge){Ge===void 0&&(Ge=Z);var tt=new Ee(K(Le,Oe,be,De),Ge);return ie.isGeneratorFunction(Oe)?tt:tt.next().then(function(Ze){return Ze.done?Ze.value:tt.next()})},ge(z),X(z,V,"Generator"),X(z,C,function(){return this}),X(z,"toString",function(){return"[object Generator]"}),ie.keys=function(Le){var Oe=Object(Le),be=[];for(var De in Oe)be.push(De);return re(be).call(be),function Ge(){for(;be.length;){var tt=be.pop();if(tt in Oe)return Ge.value=tt,Ge.done=!1,Ge}return Ge.done=!0,Ge}},ie.values=Tt,at.prototype={constructor:at,reset:function(Oe){var be;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,k(be=this.tryEntries).call(be,et),!Oe)for(var De in this)De.charAt(0)==="t"&&P.call(this,De)&&!isNaN(+ue(De).call(De,1))&&(this[De]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var be=this;function De(Xt,zt){return Ze.type="throw",Ze.arg=Oe,be.next=Xt,zt&&(be.method="next",be.arg=void 0),!!zt}for(var Ge=this.tryEntries.length-1;Ge>=0;--Ge){var tt=this.tryEntries[Ge],Ze=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var bt=P.call(tt,"catchLoc"),Et=P.call(tt,"finallyLoc");if(bt&&Et){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}else if(bt){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0)}else{if(!Et)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}}}},abrupt:function(Oe,be){for(var De=this.tryEntries.length-1;De>=0;--De){var Ge=this.tryEntries[De];if(Ge.tryLoc<=this.prev&&P.call(Ge,"finallyLoc")&&this.prev<Ge.finallyLoc){var tt=Ge;break}}tt&&(Oe==="break"||Oe==="continue")&&tt.tryLoc<=be&&be<=tt.finallyLoc&&(tt=null);var Ze=tt?tt.completion:{};return Ze.type=Oe,Ze.arg=be,tt?(this.method="next",this.next=tt.finallyLoc,te):this.complete(Ze)},complete:function(Oe,be){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&be&&(this.next=be),te},finish:function(Oe){for(var be=this.tryEntries.length-1;be>=0;--be){var De=this.tryEntries[be];if(De.finallyLoc===Oe)return this.complete(De.completion,De.afterLoc),et(De),te}},catch:function(Oe){for(var be=this.tryEntries.length-1;be>=0;--be){var De=this.tryEntries[be];if(De.tryLoc===Oe){var Ge=De.completion;if(Ge.type==="throw"){var tt=Ge.arg;et(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,be,De){return this.delegate={iterator:Tt(Oe),resultName:be,nextLoc:De},this.method==="next"&&(this.arg=void 0),te}},ie}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,E,o)=>{var d=o(57829),x=o(92876);function w(A){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(O){return typeof O}:function(O){return O&&typeof d=="function"&&O.constructor===d&&O!==d.prototype?"symbol":typeof O},h.exports.__esModule=!0,h.exports.default=h.exports,w(A)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,E,o)=>{var d=o(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);
507
+ `+xe.prev}function Ve(ce,xe){var Be=Oe(ce),Ke=[];if(Be){Ke.length=ce.length;for(var st=0;st<ce.length;st++)Ke[st]=nt(ce,st)?xe(ce[st],ce):""}var xt=typeof Z=="function"?Z(ce):[],kt;if(ge){kt={};for(var yr=0;yr<xt.length;yr++)kt["$"+xt[yr]]=xt[yr]}for(var Nt in ce)!nt(ce,Nt)||Be&&String(Number(Nt))===Nt&&Nt<ce.length||ge&&kt["$"+Nt]instanceof Symbol||(te.call(/[^\w$]/,Nt)?Ke.push(xe(Nt,ce)+": "+xe(ce[Nt],ce)):Ke.push(Nt+": "+xe(ce[Nt],ce)));if(typeof Z=="function")for(var Yt=0;Yt<xt.length;Yt++)je.call(ce,xt[Yt])&&Ke.push("["+xe(xt[Yt])+"]: "+xe(ce[xt[Yt]],ce));return Ke}},85527:h=>{"use strict";var E=String.prototype.replace,o=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return E.call(x,o,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,E,o)=>{"use strict";var d=o(66845),x=o(29166),w=o(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,E,o)=>{"use strict";var d=o(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},O=function(J){return J.replace(/&#(\d+);/g,function(P,G){return String.fromCharCode(parseInt(G,10))})},k=function(J,P){return J&&typeof J=="string"&&P.comma&&J.indexOf(",")>-1?J.split(","):J},U="utf8=%26%2310003%3B",_="utf8=%E2%9C%93",re=function(P,G){var L={},C=G.ignoreQueryPrefix?P.replace(/^\?/,""):P,F=G.parameterLimit===1/0?void 0:G.parameterLimit,V=C.split(G.delimiter,F),Q=-1,Y,W=G.charset;if(G.charsetSentinel)for(Y=0;Y<V.length;++Y)V[Y].indexOf("utf8=")===0&&(V[Y]===_?W="utf-8":V[Y]===U&&(W="iso-8859-1"),Q=Y,Y=V.length);for(Y=0;Y<V.length;++Y)if(Y!==Q){var te=V[Y],X=te.indexOf("]="),H=X===-1?te.indexOf("="):X+1,fe,ve;H===-1?(fe=G.decoder(te,A.decoder,W,"key"),ve=G.strictNullHandling?null:""):(fe=G.decoder(te.slice(0,H),A.decoder,W,"key"),ve=d.maybeMap(k(te.slice(H+1),G),function(ee){return G.decoder(ee,A.decoder,W,"value")})),ve&&G.interpretNumericEntities&&W==="iso-8859-1"&&(ve=O(ve)),te.indexOf("[]=")>-1&&(ve=w(ve)?[ve]:ve),x.call(L,fe)?L[fe]=d.combine(L[fe],ve):L[fe]=ve}return L},ue=function(J,P,G,L){for(var C=L?P:k(P,G),F=J.length-1;F>=0;--F){var V,Q=J[F];if(Q==="[]"&&G.parseArrays)V=[].concat(C);else{V=G.plainObjects?Object.create(null):{};var Y=Q.charAt(0)==="["&&Q.charAt(Q.length-1)==="]"?Q.slice(1,-1):Q,W=parseInt(Y,10);!G.parseArrays&&Y===""?V={0:C}:!isNaN(W)&&Q!==Y&&String(W)===Y&&W>=0&&G.parseArrays&&W<=G.arrayLimit?(V=[],V[W]=C):Y!=="__proto__"&&(V[Y]=C)}C=V}return C},ne=function(P,G,L,C){if(!!P){var F=L.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,V=/(\[[^[\]]*])/,Q=/(\[[^[\]]*])/g,Y=L.depth>0&&V.exec(F),W=Y?F.slice(0,Y.index):F,te=[];if(W){if(!L.plainObjects&&x.call(Object.prototype,W)&&!L.allowPrototypes)return;te.push(W)}for(var X=0;L.depth>0&&(Y=Q.exec(F))!==null&&X<L.depth;){if(X+=1,!L.plainObjects&&x.call(Object.prototype,Y[1].slice(1,-1))&&!L.allowPrototypes)return;te.push(Y[1])}return Y&&te.push("["+F.slice(Y.index)+"]"),ue(te,G,L,C)}},ie=function(P){if(!P)return A;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var G=typeof P.charset=="undefined"?A.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?A.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:A.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:A.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:A.arrayLimit,charset:G,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:A.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:A.comma,decoder:typeof P.decoder=="function"?P.decoder:A.decoder,delimiter:typeof P.delimiter=="string"||d.isRegExp(P.delimiter)?P.delimiter:A.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:A.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:A.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:A.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:A.strictNullHandling}};h.exports=function(J,P){var G=ie(P);if(J===""||J===null||typeof J=="undefined")return G.plainObjects?Object.create(null):{};for(var L=typeof J=="string"?re(J,G):J,C=G.plainObjects?Object.create(null):{},F=Object.keys(L),V=0;V<F.length;++V){var Q=F[V],Y=ne(Q,L[Q],G,typeof J=="string");C=d.merge(C,Y,G)}return G.allowSparse===!0?C:d.compact(C)}},66845:(h,E,o)=>{"use strict";var d=o(74294),x=o(12493),w=o(85527),A=Object.prototype.hasOwnProperty,O={brackets:function(F){return F+"[]"},comma:"comma",indices:function(F,V){return F+"["+V+"]"},repeat:function(F){return F}},k=Array.isArray,U=String.prototype.split,_=Array.prototype.push,re=function(C,F){_.apply(C,k(F)?F:[F])},ue=Date.prototype.toISOString,ne=w.default,ie={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(F){return ue.call(F)},skipNulls:!1,strictNullHandling:!1},J=function(F){return typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="symbol"||typeof F=="bigint"},P={},G=function C(F,V,Q,Y,W,te,X,H,fe,ve,ee,Z,z,ge,Ee,je){for(var ke=F,it=je,et=0,at=!1;(it=it.get(P))!==void 0&&!at;){var Tt=it.get(F);if(et+=1,typeof Tt!="undefined"){if(Tt===et)throw new RangeError("Cyclic object value");at=!0}typeof it.get(P)=="undefined"&&(et=0)}if(typeof H=="function"?ke=H(V,ke):ke instanceof Date?ke=ee(ke):Q==="comma"&&k(ke)&&(ke=x.maybeMap(ke,function(Xe){return Xe instanceof Date?ee(Xe):Xe})),ke===null){if(W)return X&&!ge?X(V,ie.encoder,Ee,"key",Z):V;ke=""}if(J(ke)||x.isBuffer(ke)){if(X){var St=ge?V:X(V,ie.encoder,Ee,"key",Z);if(Q==="comma"&&ge){for(var Le=U.call(String(ke),","),Oe="",be=0;be<Le.length;++be)Oe+=(be===0?"":",")+z(X(Le[be],ie.encoder,Ee,"value",Z));return[z(St)+(Y&&k(ke)&&Le.length===1?"[]":"")+"="+Oe]}return[z(St)+"="+z(X(ke,ie.encoder,Ee,"value",Z))]}return[z(V)+"="+z(String(ke))]}var De=[];if(typeof ke=="undefined")return De;var Ge;if(Q==="comma"&&k(ke))Ge=[{value:ke.length>0?ke.join(",")||null:void 0}];else if(k(H))Ge=H;else{var tt=Object.keys(ke);Ge=fe?tt.sort(fe):tt}for(var Ze=Y&&k(ke)&&ke.length===1?V+"[]":V,bt=0;bt<Ge.length;++bt){var Et=Ge[bt],Xt=typeof Et=="object"&&typeof Et.value!="undefined"?Et.value:ke[Et];if(!(te&&Xt===null)){var zt=k(ke)?typeof Q=="function"?Q(Ze,Et):Ze:Ze+(ve?"."+Et:"["+Et+"]");je.set(F,et);var nt=d();nt.set(P,je),re(De,C(Xt,zt,Q,Y,W,te,X,H,fe,ve,ee,Z,z,ge,Ee,nt))}}return De},L=function(F){if(!F)return ie;if(F.encoder!==null&&typeof F.encoder!="undefined"&&typeof F.encoder!="function")throw new TypeError("Encoder has to be a function.");var V=F.charset||ie.charset;if(typeof F.charset!="undefined"&&F.charset!=="utf-8"&&F.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Q=w.default;if(typeof F.format!="undefined"){if(!A.call(w.formatters,F.format))throw new TypeError("Unknown format option provided.");Q=F.format}var Y=w.formatters[Q],W=ie.filter;return(typeof F.filter=="function"||k(F.filter))&&(W=F.filter),{addQueryPrefix:typeof F.addQueryPrefix=="boolean"?F.addQueryPrefix:ie.addQueryPrefix,allowDots:typeof F.allowDots=="undefined"?ie.allowDots:!!F.allowDots,charset:V,charsetSentinel:typeof F.charsetSentinel=="boolean"?F.charsetSentinel:ie.charsetSentinel,delimiter:typeof F.delimiter=="undefined"?ie.delimiter:F.delimiter,encode:typeof F.encode=="boolean"?F.encode:ie.encode,encoder:typeof F.encoder=="function"?F.encoder:ie.encoder,encodeValuesOnly:typeof F.encodeValuesOnly=="boolean"?F.encodeValuesOnly:ie.encodeValuesOnly,filter:W,format:Q,formatter:Y,serializeDate:typeof F.serializeDate=="function"?F.serializeDate:ie.serializeDate,skipNulls:typeof F.skipNulls=="boolean"?F.skipNulls:ie.skipNulls,sort:typeof F.sort=="function"?F.sort:null,strictNullHandling:typeof F.strictNullHandling=="boolean"?F.strictNullHandling:ie.strictNullHandling}};h.exports=function(C,F){var V=C,Q=L(F),Y,W;typeof Q.filter=="function"?(W=Q.filter,V=W("",V)):k(Q.filter)&&(W=Q.filter,Y=W);var te=[];if(typeof V!="object"||V===null)return"";var X;F&&F.arrayFormat in O?X=F.arrayFormat:F&&"indices"in F?X=F.indices?"indices":"repeat":X="indices";var H=O[X];if(F&&"commaRoundTrip"in F&&typeof F.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var fe=H==="comma"&&F&&F.commaRoundTrip;Y||(Y=Object.keys(V)),Q.sort&&Y.sort(Q.sort);for(var ve=d(),ee=0;ee<Y.length;++ee){var Z=Y[ee];Q.skipNulls&&V[Z]===null||re(te,G(V[Z],Z,H,fe,Q.strictNullHandling,Q.skipNulls,Q.encode?Q.encoder:null,Q.filter,Q.sort,Q.allowDots,Q.serializeDate,Q.format,Q.formatter,Q.encodeValuesOnly,Q.charset,ve))}var z=te.join(Q.delimiter),ge=Q.addQueryPrefix===!0?"?":"";return Q.charsetSentinel&&(Q.charset==="iso-8859-1"?ge+="utf8=%26%2310003%3B&":ge+="utf8=%E2%9C%93&"),z.length>0?ge+z:""}},12493:(h,E,o)=>{"use strict";var d=o(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,A=function(){for(var L=[],C=0;C<256;++C)L.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return L}(),O=function(C){for(;C.length>1;){var F=C.pop(),V=F.obj[F.prop];if(w(V)){for(var Q=[],Y=0;Y<V.length;++Y)typeof V[Y]!="undefined"&&Q.push(V[Y]);F.obj[F.prop]=Q}}},k=function(C,F){for(var V=F&&F.plainObjects?Object.create(null):{},Q=0;Q<C.length;++Q)typeof C[Q]!="undefined"&&(V[Q]=C[Q]);return V},U=function L(C,F,V){if(!F)return C;if(typeof F!="object"){if(w(C))C.push(F);else if(C&&typeof C=="object")(V&&(V.plainObjects||V.allowPrototypes)||!x.call(Object.prototype,F))&&(C[F]=!0);else return[C,F];return C}if(!C||typeof C!="object")return[C].concat(F);var Q=C;return w(C)&&!w(F)&&(Q=k(C,V)),w(C)&&w(F)?(F.forEach(function(Y,W){if(x.call(C,W)){var te=C[W];te&&typeof te=="object"&&Y&&typeof Y=="object"?C[W]=L(te,Y,V):C.push(Y)}else C[W]=Y}),C):Object.keys(F).reduce(function(Y,W){var te=F[W];return x.call(Y,W)?Y[W]=L(Y[W],te,V):Y[W]=te,Y},Q)},_=function(C,F){return Object.keys(F).reduce(function(V,Q){return V[Q]=F[Q],V},C)},re=function(L,C,F){var V=L.replace(/\+/g," ");if(F==="iso-8859-1")return V.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(V)}catch(Q){return V}},ue=function(C,F,V,Q,Y){if(C.length===0)return C;var W=C;if(typeof C=="symbol"?W=Symbol.prototype.toString.call(C):typeof C!="string"&&(W=String(C)),V==="iso-8859-1")return escape(W).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var te="",X=0;X<W.length;++X){var H=W.charCodeAt(X);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||Y===d.RFC1738&&(H===40||H===41)){te+=W.charAt(X);continue}if(H<128){te=te+A[H];continue}if(H<2048){te=te+(A[192|H>>6]+A[128|H&63]);continue}if(H<55296||H>=57344){te=te+(A[224|H>>12]+A[128|H>>6&63]+A[128|H&63]);continue}X+=1,H=65536+((H&1023)<<10|W.charCodeAt(X)&1023),te+=A[240|H>>18]+A[128|H>>12&63]+A[128|H>>6&63]+A[128|H&63]}return te},ne=function(C){for(var F=[{obj:{o:C},prop:"o"}],V=[],Q=0;Q<F.length;++Q)for(var Y=F[Q],W=Y.obj[Y.prop],te=Object.keys(W),X=0;X<te.length;++X){var H=te[X],fe=W[H];typeof fe=="object"&&fe!==null&&V.indexOf(fe)===-1&&(F.push({obj:W,prop:H}),V.push(fe))}return O(F),C},ie=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},J=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,F){return[].concat(C,F)},G=function(C,F){if(w(C)){for(var V=[],Q=0;Q<C.length;Q+=1)V.push(F(C[Q]));return V}return F(C)};h.exports={arrayToObject:k,assign:_,combine:P,compact:ne,decode:re,encode:ue,isBuffer:J,isRegExp:ie,maybeMap:G,merge:U}},63277:(h,E,o)=>{"use strict";var d;function x(){return x=Object.assign||function(ie){for(var J=1;J<arguments.length;J++){var P=arguments[J];for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&(ie[G]=P[G])}return ie},x.apply(this,arguments)}function w(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(P){return typeof P}:w=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},w(ie)}var A=function(){var ie=function(P,G){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,C){L.__proto__=C}||function(L,C){for(var F in C)C.hasOwnProperty(F)&&(L[F]=C[F])},ie(P,G)};return function(J,P){ie(J,P);function G(){this.constructor=J}J.prototype=P===null?Object.create(P):(G.prototype=P.prototype,new G)}}();d={value:!0},d=E.fk=void 0;var O=o(2784),k=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,U;k||(U=o(23326));var _=function(){function ie(){}return ie.equals=function(J,P){var G=this,L=Object.keys,C=w(J),F=w(P);return J&&P&&C==="object"&&C===F?L(J).length===L(P).length&&L(J).every(function(V){return G.equals(J[V],P[V])}):J===P},ie}(),re=function(){function ie(J,P){this.editor=J,this.props=P}return ie.prototype.delegateCursor=function(J,P,G){var L=this.editor.getDoc();G&&this.editor.focus(),P?L.setCursor(J):L.setCursor(J,null,{scroll:!1})},ie.prototype.delegateScroll=function(J){this.editor.scrollTo(J.x,J.y)},ie.prototype.delegateSelection=function(J,P){var G=this.editor.getDoc();G.setSelections(J),P&&this.editor.focus()},ie.prototype.apply=function(J){J&&J.selection&&J.selection.ranges&&this.delegateSelection(J.selection.ranges,J.selection.focus||!1),J&&J.cursor&&this.delegateCursor(J.cursor,J.autoScroll||!1,this.editor.getOption("autofocus")||!1),J&&J.scroll&&this.delegateScroll(J.scroll)},ie.prototype.applyNext=function(J,P,G){J&&J.selection&&J.selection.ranges&&P&&P.selection&&P.selection.ranges&&!_.equals(J.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),J&&J.cursor&&P&&P.cursor&&!_.equals(J.cursor,P.cursor)&&this.delegateCursor(G.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),J&&J.scroll&&P&&P.scroll&&!_.equals(J.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ie.prototype.applyUserDefined=function(J,P){P&&P.cursor&&this.delegateCursor(P.cursor,J.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ie.prototype.wire=function(J){var P=this;Object.keys(J||{}).filter(function(G){return/^on/.test(G)}).forEach(function(G){switch(G){case"onBlur":P.editor.on("blur",function(L,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(L,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(L,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(L){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(L){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(L,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(L,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(L,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(L,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(L,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(L,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(L,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(L,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(L,C,F,V){P.props.onGutterClick(P.editor,C,F,V)});break;case"onInputRead":P.editor.on("inputRead",function(L,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(L,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(L,C,F){P.props.onKeyHandled(P.editor,C,F)});break;case"onKeyPress":P.editor.on("keypress",function(L,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(L,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(L,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(L,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(L,C,F){P.props.onRenderLine(P.editor,C,F)});break}case"onScroll":P.editor.on("scroll",function(L){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(L,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(L,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(L){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(L,C,F){P.props.onViewportChange(P.editor,C,F)});break}})},ie}(),ue=function(ie){A(J,ie);function J(P){var G=ie.call(this,P)||this;return k||(G.applied=!1,G.appliedNext=!1,G.appliedUserDefined=!1,G.deferred=null,G.emulating=!1,G.hydrated=!1,G.initCb=function(){G.props.editorDidConfigure&&G.props.editorDidConfigure(G.editor)},G.mounted=!1),G}return J.prototype.hydrate=function(P){var G=this,L=P&&P.options?P.options:{},C=x({},U.defaults,this.editor.options,L),F=Object.keys(C).some(function(V){return G.editor.getOption(V)!==C[V]});F&&Object.keys(C).forEach(function(V){L.hasOwnProperty(V)&&G.editor.getOption(V)!==C[V]&&(G.editor.setOption(V,C[V]),G.mirror.setOption(V,C[V]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},J.prototype.initChange=function(P){this.emulating=!0;var G=this.editor.getDoc(),L=G.lastLine(),C=G.getLine(G.lastLine()).length;G.replaceRange(P||"",{line:0,ch:0},{line:L,ch:C}),this.mirror.setValue(P),G.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},J.prototype.resolveChange=function(P){this.emulating=!0;var G=this.editor.getDoc();if(this.deferred.origin==="undo"?G.undo():this.deferred.origin==="redo"?G.redo():G.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==G.getValue()){var L=G.getCursor();G.setValue(P),G.setCursor(L)}this.emulating=!1,this.deferred=null},J.prototype.mirrorChange=function(P){var G=this.editor.getDoc();return P.origin==="undo"?(G.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?(G.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},J.prototype.componentDidMount=function(){var P=this;k||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new re(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(G,L){if(!P.emulating){L.cancel(),P.deferred=L;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function(G,L){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,L,P.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},J.prototype.componentDidUpdate=function(P){if(!k){var G={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(G.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,G),this.appliedNext=!0),this.shared.applyUserDefined(P,G),this.appliedUserDefined=!0}},J.prototype.componentWillUnmount=function(){k||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},J.prototype.shouldComponentUpdate=function(P,G){return!k},J.prototype.render=function(){var P=this;if(k)return null;var G=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return O.createElement("div",{className:G,ref:function(C){return P.ref=C}})},J}(O.Component);E.fk=ue;var ne=function(ie){A(J,ie);function J(P){var G=ie.call(this,P)||this;return k||(G.applied=!1,G.appliedUserDefined=!1,G.continueChange=!1,G.detached=!1,G.hydrated=!1,G.initCb=function(){G.props.editorDidConfigure&&G.props.editorDidConfigure(G.editor)},G.mounted=!1,G.onBeforeChangeCb=function(){G.continueChange=!0}),G}return J.prototype.hydrate=function(P){var G=this,L=P&&P.options?P.options:{},C=x({},U.defaults,this.editor.options,L),F=Object.keys(C).some(function(W){return G.editor.getOption(W)!==C[W]});if(F&&Object.keys(C).forEach(function(W){L.hasOwnProperty(W)&&G.editor.getOption(W)!==C[W]&&G.editor.setOption(W,C[W])}),!this.hydrated){var V=this.editor.getDoc(),Q=V.lastLine(),Y=V.getLine(V.lastLine()).length;V.replaceRange(P.value||"",{line:0,ch:0},{line:Q,ch:Y})}this.hydrated=!0},J.prototype.componentDidMount=function(){var P=this;k||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new re(this.editor,this.props),this.editor.on("beforeChange",function(G,L){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,L,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function(G,L){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,L,P.editor.getValue()):P.props.onChange(P.editor,L,P.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},J.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(k||this.detached)){var G={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&(G.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,G),this.appliedUserDefined=!0)}},J.prototype.componentWillUnmount=function(){k||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},J.prototype.shouldComponentUpdate=function(P,G){var L=!0;return k&&(L=!1),this.detached&&P.detach&&(L=!1),L},J.prototype.render=function(){var P=this;if(k)return null;var G=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return O.createElement("div",{className:G,ref:function(C){return P.ref=C}})},J}(O.Component);d=ne},74294:(h,E,o)=>{"use strict";var d=o(67286),x=o(62680),w=o(99500),A=d("%TypeError%"),O=d("%WeakMap%",!0),k=d("%Map%",!0),U=x("WeakMap.prototype.get",!0),_=x("WeakMap.prototype.set",!0),re=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),ie=x("Map.prototype.has",!0),J=function(C,F){for(var V=C,Q;(Q=V.next)!==null;V=Q)if(Q.key===F)return V.next=Q.next,Q.next=C.next,C.next=Q,Q},P=function(C,F){var V=J(C,F);return V&&V.value},G=function(C,F,V){var Q=J(C,F);Q?Q.value=V:C.next={key:F,next:C.next,value:V}},L=function(C,F){return!!J(C,F)};h.exports=function(){var F,V,Q,Y={assert:function(W){if(!Y.has(W))throw new A("Side channel does not contain "+w(W))},get:function(W){if(O&&W&&(typeof W=="object"||typeof W=="function")){if(F)return U(F,W)}else if(k){if(V)return ue(V,W)}else if(Q)return P(Q,W)},has:function(W){if(O&&W&&(typeof W=="object"||typeof W=="function")){if(F)return re(F,W)}else if(k){if(V)return ie(V,W)}else if(Q)return L(Q,W);return!1},set:function(W,te){O&&W&&(typeof W=="object"||typeof W=="function")?(F||(F=new O),_(F,W,te)):k?(V||(V=new k),ne(V,W,te)):(Q||(Q={key:{},next:null}),G(Q,W,te))}};return Y}},79375:(h,E,o)=>{var d=o(46062),x=o(45957);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},4570:(h,E,o)=>{var d=o(46062),x=o(73792);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},76239:(h,E,o)=>{var d=o(46062),x=o(59062);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},49032:(h,E,o)=>{var d=o(46062),x=o(32024);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},56855:h=>{"use strict";function E(P){return Object.prototype.toString.call(P)}function o(P){return E(P)==="[object Date]"}function d(P){return E(P)==="[object RegExp]"}function x(P){return E(P)==="[object Error]"}function w(P){return E(P)==="[object Boolean]"}function A(P){return E(P)==="[object Number]"}function O(P){return E(P)==="[object String]"}var k=Array.isArray||function(G){return Object.prototype.toString.call(G)==="[object Array]"};function U(P,G){if(P.forEach)return P.forEach(G);for(var L=0;L<P.length;L++)G(P[L],L,P)}var _=Object.keys||function(G){var L=[];for(var C in G)L.push(C);return L},re=Object.prototype.hasOwnProperty||function(P,G){return G in P};function ue(P){if(typeof P=="object"&&P!==null){var G;if(k(P))G=[];else if(o(P))G=new Date(P.getTime?P.getTime():P);else if(d(P))G=new RegExp(P);else if(x(P))G={message:P.message};else if(w(P)||A(P)||O(P))G=Object(P);else if(Object.create&&Object.getPrototypeOf)G=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)G={};else{var L=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=L,G=new C}return U(_(P),function(F){G[F]=P[F]}),G}return P}function ne(P,G,L){var C=[],F=[],V=!0;return function Q(Y){var W=L?ue(Y):Y,te={},X=!0,H={node:W,node_:Y,path:[].concat(C),parent:F[F.length-1],parents:F,key:C[C.length-1],isRoot:C.length===0,level:C.length,circular:null,update:function(ee,Z){H.isRoot||(H.parent.node[H.key]=ee),H.node=ee,Z&&(X=!1)},delete:function(ee){delete H.parent.node[H.key],ee&&(X=!1)},remove:function(ee){k(H.parent.node)?H.parent.node.splice(H.key,1):delete H.parent.node[H.key],ee&&(X=!1)},keys:null,before:function(ee){te.before=ee},after:function(ee){te.after=ee},pre:function(ee){te.pre=ee},post:function(ee){te.post=ee},stop:function(){V=!1},block:function(){X=!1}};if(!V)return H;function fe(){if(typeof H.node=="object"&&H.node!==null){(!H.keys||H.node_!==H.node)&&(H.keys=_(H.node)),H.isLeaf=H.keys.length===0;for(var ee=0;ee<F.length;ee++)if(F[ee].node_===Y){H.circular=F[ee];break}}else H.isLeaf=!0,H.keys=null;H.notLeaf=!H.isLeaf,H.notRoot=!H.isRoot}fe();var ve=G.call(H,H.node);return ve!==void 0&&H.update&&H.update(ve),te.before&&te.before.call(H,H.node),X&&(typeof H.node=="object"&&H.node!==null&&!H.circular&&(F.push(H),fe(),U(H.keys,function(ee,Z){C.push(ee),te.pre&&te.pre.call(H,H.node[ee],ee);var z=Q(H.node[ee]);L&&re.call(H.node,ee)&&(H.node[ee]=z.node),z.isLast=Z===H.keys.length-1,z.isFirst=Z===0,te.post&&te.post.call(H,z),C.pop()}),F.pop()),te.after&&te.after.call(H,H.node)),H}(P).node}function ie(P){this.value=P}ie.prototype.get=function(P){for(var G=this.value,L=0;L<P.length;L++){var C=P[L];if(!G||!re.call(G,C))return;G=G[C]}return G},ie.prototype.has=function(P){for(var G=this.value,L=0;L<P.length;L++){var C=P[L];if(!G||!re.call(G,C))return!1;G=G[C]}return!0},ie.prototype.set=function(P,G){for(var L=this.value,C=0;C<P.length-1;C++){var F=P[C];re.call(L,F)||(L[F]={}),L=L[F]}return L[P[C]]=G,G},ie.prototype.map=function(P){return ne(this.value,P,!0)},ie.prototype.forEach=function(P){return this.value=ne(this.value,P,!1),this.value},ie.prototype.reduce=function(P,G){var L=arguments.length===1,C=L?this.value:G;return this.forEach(function(F){(!this.isRoot||!L)&&(C=P.call(this,C,F))}),C},ie.prototype.paths=function(){var P=[];return this.forEach(function(){P.push(this.path)}),P},ie.prototype.nodes=function(){var P=[];return this.forEach(function(){P.push(this.node)}),P},ie.prototype.clone=function(){var P=[],G=[];return function L(C){for(var F=0;F<P.length;F++)if(P[F]===C)return G[F];if(typeof C=="object"&&C!==null){var V=ue(C);return P.push(C),G.push(V),U(_(C),function(Q){V[Q]=L(C[Q])}),P.pop(),G.pop(),V}return C}(this.value)};function J(P){return new ie(P)}U(_(ie.prototype),function(P){J[P]=function(G){var L=[].slice.call(arguments,1),C=new ie(G);return C[P].apply(C,L)}}),h.exports=J},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(h,E,o)=>{h.exports=o(53822)},40192:(h,E,o)=>{h.exports=o(44877)},42126:(h,E,o)=>{h.exports=o(10140)},40453:(h,E,o)=>{h.exports=o(55603)},35784:(h,E,o)=>{h.exports=o(76237)},82985:(h,E,o)=>{h.exports=o(56515)},14903:(h,E,o)=>{h.exports=o(20057)},71488:(h,E,o)=>{h.exports=o(24741)},93963:(h,E,o)=>{h.exports=o(8368)},51661:(h,E,o)=>{h.exports=o(342)},85337:(h,E,o)=>{h.exports=o(392)},45932:(h,E,o)=>{h.exports=o(28478)},31175:(h,E,o)=>{h.exports=o(58202)},2921:(h,E,o)=>{h.exports=o(45636)},22583:(h,E,o)=>{h.exports=o(46618)},8304:(h,E,o)=>{h.exports=o(72946)},36394:(h,E,o)=>{h.exports=o(11235)},50557:(h,E,o)=>{h.exports=o(62813)},72010:(h,E,o)=>{h.exports=o(68664)},5490:(h,E,o)=>{h.exports=o(21457)},1858:(h,E,o)=>{h.exports=o(36516)},84870:(h,E,o)=>{h.exports=o(87611)},48145:(h,E,o)=>{h.exports=o(4161)},26405:(h,E,o)=>{h.exports=o(75159)},9600:(h,E,o)=>{h.exports=o(87708)},72383:(h,E,o)=>{h.exports=o(42937)},8626:(h,E,o)=>{h.exports=o(69297)},45055:(h,E,o)=>{h.exports=o(10353)},49800:(h,E,o)=>{h.exports=o(8026)},79494:(h,E,o)=>{h.exports=o(67362)},11807:(h,E,o)=>{h.exports=o(57532)},24463:(h,E,o)=>{h.exports=o(61903)},21889:(h,E,o)=>{h.exports=o(42044)},25575:(h,E,o)=>{h.exports=o(60902)},68861:(h,E,o)=>{h.exports=o(2214)},64772:(h,E,o)=>{h.exports=o(983)},57829:(h,E,o)=>{h.exports=o(59256)},92876:(h,E,o)=>{h.exports=o(95659)},92903:(h,E,o)=>{h.exports=o(93698)},18730:(h,E,o)=>{var d=o(69696).default,x=o(49800),w=o(57829),A=o(8626),O=o(21889),k=o(48145),U=o(68861),_=o(64772),re=o(9600),ue=o(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return ie},h.exports.__esModule=!0,h.exports.default=h.exports;var ie={},J=Object.prototype,P=J.hasOwnProperty,G=x||function(Le,Oe,be){Le[Oe]=be.value},L=typeof w=="function"?w:{},C=L.iterator||"@@iterator",F=L.asyncIterator||"@@asyncIterator",V=L.toStringTag||"@@toStringTag";function Q(Le,Oe,be){return x(Le,Oe,{value:be,enumerable:!0,configurable:!0,writable:!0}),Le[Oe]}try{Q({},"")}catch(Le){Q=function(be,De,Ge){return be[De]=Ge}}function Y(Le,Oe,be,De){var Ge=Oe&&Oe.prototype instanceof X?Oe:X,tt=A(Ge.prototype),Ze=new at(De||[]);return G(tt,"_invoke",{value:je(Le,be,Ze)}),tt}function W(Le,Oe,be){try{return{type:"normal",arg:Le.call(Oe,be)}}catch(De){return{type:"throw",arg:De}}}ie.wrap=Y;var te={};function X(){}function H(){}function fe(){}var ve={};Q(ve,C,function(){return this});var ee=O,Z=ee&&ee(ee(Tt([])));Z&&Z!==J&&P.call(Z,C)&&(ve=Z);var z=fe.prototype=X.prototype=A(ve);function ge(Le){var Oe;k(Oe=["next","throw","return"]).call(Oe,function(be){Q(Le,be,function(De){return this._invoke(be,De)})})}function Ee(Le,Oe){function be(Ge,tt,Ze,bt){var Et=W(Le[Ge],Le,tt);if(Et.type!=="throw"){var Xt=Et.arg,zt=Xt.value;return zt&&d(zt)=="object"&&P.call(zt,"__await")?Oe.resolve(zt.__await).then(function(nt){be("next",nt,Ze,bt)},function(nt){be("throw",nt,Ze,bt)}):Oe.resolve(zt).then(function(nt){Xt.value=nt,Ze(Xt)},function(nt){return be("throw",nt,Ze,bt)})}bt(Et.arg)}var De;G(this,"_invoke",{value:function(tt,Ze){function bt(){return new Oe(function(Et,Xt){be(tt,Ze,Et,Xt)})}return De=De?De.then(bt,bt):bt()}})}function je(Le,Oe,be){var De="suspendedStart";return function(Ge,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if(Ge==="throw")throw tt;return St()}for(be.method=Ge,be.arg=tt;;){var Ze=be.delegate;if(Ze){var bt=ke(Ze,be);if(bt){if(bt===te)continue;return bt}}if(be.method==="next")be.sent=be._sent=be.arg;else if(be.method==="throw"){if(De==="suspendedStart")throw De="completed",be.arg;be.dispatchException(be.arg)}else be.method==="return"&&be.abrupt("return",be.arg);De="executing";var Et=W(Le,Oe,be);if(Et.type==="normal"){if(De=be.done?"completed":"suspendedYield",Et.arg===te)continue;return{value:Et.arg,done:be.done}}Et.type==="throw"&&(De="completed",be.method="throw",be.arg=Et.arg)}}}function ke(Le,Oe){var be=Oe.method,De=Le.iterator[be];if(De===void 0)return Oe.delegate=null,be==="throw"&&Le.iterator.return&&(Oe.method="return",Oe.arg=void 0,ke(Le,Oe),Oe.method==="throw")||be!=="return"&&(Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a '"+be+"' method")),te;var Ge=W(De,Le.iterator,Oe.arg);if(Ge.type==="throw")return Oe.method="throw",Oe.arg=Ge.arg,Oe.delegate=null,te;var tt=Ge.arg;return tt?tt.done?(Oe[Le.resultName]=tt.value,Oe.next=Le.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,te):tt:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,te)}function it(Le){var Oe={tryLoc:Le[0]};1 in Le&&(Oe.catchLoc=Le[1]),2 in Le&&(Oe.finallyLoc=Le[2],Oe.afterLoc=Le[3]),this.tryEntries.push(Oe)}function et(Le){var Oe=Le.completion||{};Oe.type="normal",delete Oe.arg,Le.completion=Oe}function at(Le){this.tryEntries=[{tryLoc:"root"}],k(Le).call(Le,it,this),this.reset(!0)}function Tt(Le){if(Le){var Oe=Le[C];if(Oe)return Oe.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var be=-1,De=function Ge(){for(;++be<Le.length;)if(P.call(Le,be))return Ge.value=Le[be],Ge.done=!1,Ge;return Ge.value=void 0,Ge.done=!0,Ge};return De.next=De}}return{next:St}}function St(){return{value:void 0,done:!0}}return H.prototype=fe,G(z,"constructor",{value:fe,configurable:!0}),G(fe,"constructor",{value:H,configurable:!0}),H.displayName=Q(fe,V,"GeneratorFunction"),ie.isGeneratorFunction=function(Le){var Oe=typeof Le=="function"&&Le.constructor;return!!Oe&&(Oe===H||(Oe.displayName||Oe.name)==="GeneratorFunction")},ie.mark=function(Le){return U?U(Le,fe):(Le.__proto__=fe,Q(Le,V,"GeneratorFunction")),Le.prototype=A(z),Le},ie.awrap=function(Le){return{__await:Le}},ge(Ee.prototype),Q(Ee.prototype,F,function(){return this}),ie.AsyncIterator=Ee,ie.async=function(Le,Oe,be,De,Ge){Ge===void 0&&(Ge=_);var tt=new Ee(Y(Le,Oe,be,De),Ge);return ie.isGeneratorFunction(Oe)?tt:tt.next().then(function(Ze){return Ze.done?Ze.value:tt.next()})},ge(z),Q(z,V,"Generator"),Q(z,C,function(){return this}),Q(z,"toString",function(){return"[object Generator]"}),ie.keys=function(Le){var Oe=Object(Le),be=[];for(var De in Oe)be.push(De);return re(be).call(be),function Ge(){for(;be.length;){var tt=be.pop();if(tt in Oe)return Ge.value=tt,Ge.done=!1,Ge}return Ge.done=!0,Ge}},ie.values=Tt,at.prototype={constructor:at,reset:function(Oe){var be;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,k(be=this.tryEntries).call(be,et),!Oe)for(var De in this)De.charAt(0)==="t"&&P.call(this,De)&&!isNaN(+ue(De).call(De,1))&&(this[De]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var be=this;function De(Xt,zt){return Ze.type="throw",Ze.arg=Oe,be.next=Xt,zt&&(be.method="next",be.arg=void 0),!!zt}for(var Ge=this.tryEntries.length-1;Ge>=0;--Ge){var tt=this.tryEntries[Ge],Ze=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var bt=P.call(tt,"catchLoc"),Et=P.call(tt,"finallyLoc");if(bt&&Et){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}else if(bt){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0)}else{if(!Et)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}}}},abrupt:function(Oe,be){for(var De=this.tryEntries.length-1;De>=0;--De){var Ge=this.tryEntries[De];if(Ge.tryLoc<=this.prev&&P.call(Ge,"finallyLoc")&&this.prev<Ge.finallyLoc){var tt=Ge;break}}tt&&(Oe==="break"||Oe==="continue")&&tt.tryLoc<=be&&be<=tt.finallyLoc&&(tt=null);var Ze=tt?tt.completion:{};return Ze.type=Oe,Ze.arg=be,tt?(this.method="next",this.next=tt.finallyLoc,te):this.complete(Ze)},complete:function(Oe,be){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&be&&(this.next=be),te},finish:function(Oe){for(var be=this.tryEntries.length-1;be>=0;--be){var De=this.tryEntries[be];if(De.finallyLoc===Oe)return this.complete(De.completion,De.afterLoc),et(De),te}},catch:function(Oe){for(var be=this.tryEntries.length-1;be>=0;--be){var De=this.tryEntries[be];if(De.tryLoc===Oe){var Ge=De.completion;if(Ge.type==="throw"){var tt=Ge.arg;et(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,be,De){return this.delegate={iterator:Tt(Oe),resultName:be,nextLoc:De},this.method==="next"&&(this.arg=void 0),te}},ie}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,E,o)=>{var d=o(57829),x=o(92876);function w(A){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(O){return typeof O}:function(O){return O&&typeof d=="function"&&O.constructor===d&&O!==d.prototype?"symbol":typeof O},h.exports.__esModule=!0,h.exports.default=h.exports,w(A)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,E,o)=>{var d=o(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);