@redocly/openapi-docs 3.0.0-alpha.11 → 3.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli/commands/redocly-docs-cli.min.js +715 -425
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +36 -3
- package/dist/console.redocly-reference-docs.min.js +138 -138
- package/dist/oauth2-redirect.js +2 -2
- package/dist/redocly-reference-docs.min.js +1243 -907
- package/lib/components/Endpoint/types.d.ts +1 -1
- package/lib/components/Fields/types.d.ts +1 -1
- package/lib/components/Markdown/types.d.ts +1 -1
- package/lib/components/Responses/types.d.ts +1 -1
- package/lib/components/Search/types.d.ts +2 -2
- package/lib/components/common/CheckboxList.d.ts +1 -1
- package/lib/components/common/panels.js +0 -4
- package/lib/components/rightPanel/Console/types.d.ts +1 -1
- package/lib/events/types.d.ts +2 -2
- package/lib/models/RequestBody.d.ts +1 -1
- package/lib/models/Response.d.ts +1 -1
- package/lib/models/Schema.d.ts +1 -1
- package/lib/models/file-upload.d.ts +1 -1
- package/lib/models/types.d.ts +1 -1
- package/lib/services/MarkdownRenderer.js +1 -1
- package/lib/services/ProMenu.d.ts +3 -1
- package/lib/services/ProMenu.js +1 -1
- package/lib/services/ProStore.d.ts +2 -0
- package/lib/services/ProStore.js +1 -1
- package/lib/services/check.d.ts +1 -1
- package/lib/services/code-samples/generator.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -1
- package/lib/services/code-samples/httpsnippet/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/php/types.d.ts +2 -2
- package/lib/services/code-samples/types.d.ts +2 -2
- package/lib/services/labels/types.d.ts +1 -1
- package/lib/services/search/SearchStore.js +1 -1
- package/lib/services/search/types.d.ts +1 -1
- package/lib/services/types.d.ts +18 -16
- package/lib/types/open-api.d.ts +4 -4
- package/lib/types/security.d.ts +1 -1
- package/lib/utils/loadAndBundleSpec.js +1 -1
- package/lib/utils/media-css.d.ts +1 -1
- package/lib-esm/components/Endpoint/types.d.ts +1 -1
- package/lib-esm/components/Fields/types.d.ts +1 -1
- package/lib-esm/components/Markdown/types.d.ts +1 -1
- package/lib-esm/components/Responses/types.d.ts +1 -1
- package/lib-esm/components/Search/types.d.ts +2 -2
- package/lib-esm/components/common/CheckboxList.d.ts +1 -1
- package/lib-esm/components/common/panels.js +0 -4
- package/lib-esm/components/rightPanel/Console/types.d.ts +1 -1
- package/lib-esm/events/types.d.ts +2 -2
- package/lib-esm/models/RequestBody.d.ts +1 -1
- package/lib-esm/models/Response.d.ts +1 -1
- package/lib-esm/models/Schema.d.ts +1 -1
- package/lib-esm/models/file-upload.d.ts +1 -1
- package/lib-esm/models/types.d.ts +1 -1
- package/lib-esm/services/MarkdownRenderer.js +1 -1
- package/lib-esm/services/ProMenu.d.ts +3 -1
- package/lib-esm/services/ProMenu.js +1 -1
- package/lib-esm/services/ProStore.d.ts +2 -0
- package/lib-esm/services/ProStore.js +1 -1
- package/lib-esm/services/check.d.ts +1 -1
- package/lib-esm/services/code-samples/generator.d.ts +1 -1
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +1 -1
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/index.d.ts +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +2 -2
- package/lib-esm/services/code-samples/types.d.ts +2 -2
- package/lib-esm/services/labels/types.d.ts +1 -1
- package/lib-esm/services/search/SearchStore.js +1 -1
- package/lib-esm/services/search/types.d.ts +1 -1
- package/lib-esm/services/types.d.ts +18 -16
- package/lib-esm/types/open-api.d.ts +4 -4
- package/lib-esm/types/security.d.ts +1 -1
- package/lib-esm/utils/loadAndBundleSpec.js +1 -1
- package/lib-esm/utils/media-css.d.ts +1 -1
- package/package.json +10 -5
|
@@ -2,121 +2,125 @@
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
6
|
-
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(h,
|
|
7
|
-
`;N.replaceSelection(U+U,null),ne(N,-1),j=N.listSelections();for(var re=0;re<j.length;re++){var X=j[re].head.line;N.indentLine(X,null,!0),N.indentLine(X+1,null,!0)}})}function ne(N,C){for(var k=[],j=N.listSelections(),J=0,K=0;K<j.length;K++){var U=j[K];U.head==N.getCursor()&&(J=K);var re=U.head.ch||C>0?{line:U.head.line,ch:U.head.ch+C}:{line:U.head.line-1};k.push({anchor:re,head:re})}N.setSelections(k,J)}function ae(N){var C=d.cmpPos(N.anchor,N.head)>0;return{anchor:new w(N.anchor.line,N.anchor.ch+(C?-1:1)),head:new w(N.head.line,N.head.ch+(C?1:-1))}}function Y(N,C){var k=Z(N);if(!k||N.getOption("disableInput"))return d.Pass;var j=A(k,"pairs"),J=j.indexOf(C);if(J==-1)return d.Pass;for(var K=A(k,"closeBefore"),U=A(k,"triples"),re=j.charAt(J+1)==C,X=N.listSelections(),z=J%2==0,ce,he=0;he<X.length;he++){var _=X[he],Q=_.head,H,ye=N.getRange(Q,w(Q.line,Q.ch+1));if(z&&!_.empty())H="surround";else if((re||!z)&&ye==C)re&&G(N,Q)?H="both":U.indexOf(C)>=0&&N.getRange(Q,w(Q.line,Q.ch+3))==C+C+C?H="skipThree":H="skip";else if(re&&Q.ch>1&&U.indexOf(C)>=0&&N.getRange(w(Q.line,Q.ch-2),Q)==C+C){if(Q.ch>2&&/\bstring/.test(N.getTokenTypeAt(w(Q.line,Q.ch-2))))return d.Pass;H="addFour"}else if(re){var ke=Q.ch==0?" ":N.getRange(w(Q.line,Q.ch-1),Q);if(!d.isWordChar(ye)&&ke!=C&&!d.isWordChar(ke))H="both";else return d.Pass}else if(z&&(ye.length===0||/\s/.test(ye)||K.indexOf(ye)>-1))H="both";else return d.Pass;if(!ce)ce=H;else if(ce!=H)return d.Pass}var je=J%2?j.charAt(J-1):C,De=J%2?C:j.charAt(J+1);N.operation(function(){if(ce=="skip")ne(N,1);else if(ce=="skipThree")ne(N,3);else if(ce=="surround"){for(var nt=N.getSelections(),tt=0;tt<nt.length;tt++)nt[tt]=je+nt[tt]+De;N.replaceSelections(nt,"around"),nt=N.listSelections().slice();for(var tt=0;tt<nt.length;tt++)nt[tt]=ae(nt[tt]);N.setSelections(nt)}else ce=="both"?(N.replaceSelection(je+De,null),N.triggerElectric(je+De),ne(N,-1)):ce=="addFour"&&(N.replaceSelection(je+je+je+je,"before"),ne(N,1))})}function P(N,C){var k=N.getRange(w(C.line,C.ch-1),w(C.line,C.ch+1));return k.length==2?k:null}function G(N,C){var k=N.getTokenAt(w(C.line,C.ch+1));return/\bstring/.test(k.type)&&k.start==C.ch&&(C.ch==0||!/\bstring/.test(N.getTokenTypeAt(C)))}})},32407:(h,O,s)=>{(function(d){d(s(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function E(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function F(ne,ae,Y){var P=ne.getLineHandle(ae.line),G=ae.ch-1,N=Y&&Y.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var C=E(Y),k=!N&&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(!k)return null;var j=k.charAt(1)==">"?1:-1;if(Y&&Y.strict&&j>0!=(G==ae.ch))return null;var J=ne.getTokenTypeAt(w(ae.line,G+1)),K=W(ne,w(ae.line,G+(j>0?1:0)),j,J,Y);return K==null?null:{from:w(ae.line,G),to:K&&K.pos,match:K&&K.ch==k.charAt(0),forward:j>0}}function W(ne,ae,Y,P,G){for(var N=G&&G.maxScanLineLength||1e4,C=G&&G.maxScanLines||1e3,k=[],j=E(G),J=Y>0?Math.min(ae.line+C,ne.lastLine()+1):Math.max(ne.firstLine()-1,ae.line-C),K=ae.line;K!=J;K+=Y){var U=ne.getLine(K);if(!!U){var re=Y>0?0:U.length-1,X=Y>0?U.length:-1;if(!(U.length>N))for(K==ae.line&&(re=ae.ch-(Y<0?1:0));re!=X;re+=Y){var z=U.charAt(re);if(j.test(z)&&(P===void 0||(ne.getTokenTypeAt(w(K,re+1))||"")==(P||""))){var ce=A[z];if(ce&&ce.charAt(1)==">"==Y>0)k.push(z);else if(k.length)k.pop();else return{pos:w(K,re),ch:z}}}}}return K-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,ae,Y){for(var P=ne.state.matchBrackets.maxHighlightLineLength||1e3,G=Y&&Y.highlightNonMatching,N=[],C=ne.listSelections(),k=0;k<C.length;k++){var j=C[k].empty()&&F(ne,C[k].head,Y);if(j&&(j.match||G!==!1)&&ne.getLine(j.from.line).length<=P){var J=j.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(ne.markText(j.from,w(j.from.line,j.from.ch+1),{className:J})),j.to&&ne.getLine(j.to.line).length<=P&&N.push(ne.markText(j.to,w(j.to.line,j.to.ch+1),{className:J}))}}if(N.length){x&&ne.state.focused&&ne.focus();var K=function(){ne.operation(function(){for(var U=0;U<N.length;U++)N[U].clear()})};if(ae)setTimeout(K,800);else return K}}function ee(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,ae,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",ee),ne.off("focus",ee),ne.off("blur",ue),ue(ne)),ae&&(ne.state.matchBrackets=typeof ae=="object"?ae:{},ne.on("cursorActivity",ee),ne.on("focus",ee),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,ae,Y){return(Y||typeof ae=="boolean")&&(Y?(Y.strict=ae,ae=Y):ae=ae?{strict:!0}:null),F(this,ne,ae)}),d.defineExtension("scanForBracket",function(ne,ae,Y,P){return W(this,ne,ae,Y,P)})})},22130:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(N,C,k){if(!C)return N.showHint(k);k&&k.async&&(C.async=!0);var j={hint:C};if(k)for(var J in k)j[J]=k[J];return N.showHint(j)},d.defineExtension("showHint",function(N){N=W(this,this.getCursor("start"),N);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var k=0;k<C.length;k++)if(C[k].head.line!=C[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var j=this.state.completionActive=new A(this,N);!j.options.hint||(d.signal(this,"startCompletion",this),j.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(N,C){if(this.cm=N,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 k=this;N.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var E=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},F=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(N,C){var k=N.list[C],j=this;this.cm.operation(function(){k.hint?k.hint(j.cm,N,k):j.cm.replaceRange(Z(k),k.from||N.from,k.to||N.to,"complete"),d.signal(N,"pick",k),j.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var C=this.cm.getCursor(),k=this.cm.getLine(C.line);if(C.line!=this.startPos.line||k.length-C.ch!=this.startLen-this.startPos.ch||C.ch<N.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(k.charAt(C.ch-1)))this.close();else{var j=this;this.debounce=E(function(){j.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var C=this,k=++this.tick;Y(this.options.hint,this.cm,this.options,function(j){C.tick==k&&C.finishUpdate(j,N)})}},finishUpdate:function(N,C){this.data&&d.signal(this.data,"update");var k=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(k&&N.list.length==1?this.pick(N,0):(this.widget=new ne(this,N),d.signal(N,"shown")))}};function W(N,C,k){var j=N.options.hintOptions,J={};for(var K in G)J[K]=G[K];if(j)for(var K in j)j[K]!==void 0&&(J[K]=j[K]);if(k)for(var K in k)k[K]!==void 0&&(J[K]=k[K]);return J.hint.resolve&&(J.hint=J.hint.resolve(N,C)),J}function Z(N){return typeof N=="string"?N:N.text}function ee(N,C){var k={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},j=/Mac/.test(navigator.platform);j&&(k["Ctrl-P"]=function(){C.moveFocus(-1)},k["Ctrl-N"]=function(){C.moveFocus(1)});var J=N.options.customKeys,K=J?{}:k;function U(z,ce){var he;typeof ce!="string"?he=function(_){return ce(_,C)}:k.hasOwnProperty(ce)?he=k[ce]:he=ce,K[z]=he}if(J)for(var re in J)J.hasOwnProperty(re)&&U(re,J[re]);var X=N.options.extraKeys;if(X)for(var re in X)X.hasOwnProperty(re)&&U(re,X[re]);return K}function ue(N,C){for(;C&&C!=N;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==N)return C;C=C.parentNode}}function ne(N,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=C,this.picked=!1;var k=this,j=N.cm,J=j.getInputField().ownerDocument,K=J.defaultView||J.parentWindow,U=this.hints=J.createElement("ul");U.setAttribute("role","listbox"),U.setAttribute("aria-expanded","true"),U.id=this.id;var re=N.cm.options.theme;U.className="CodeMirror-hints "+re,this.selectedHint=C.selectedHint||0;for(var X=C.list,z=0;z<X.length;++z){var ce=U.appendChild(J.createElement("li")),he=X[z],_=x+(z!=this.selectedHint?"":" "+w);he.className!=null&&(_=he.className+" "+_),ce.className=_,z==this.selectedHint&&ce.setAttribute("aria-selected","true"),ce.id=this.id+"-"+z,ce.setAttribute("role","option"),he.render?he.render(ce,C,he):ce.appendChild(J.createTextNode(he.displayText||Z(he))),ce.hintId=z}var Q=N.options.container||J.body,H=j.cursorCoords(N.options.alignWithWord?C.from:null),ye=H.left,ke=H.bottom,je=!0,De=0,nt=0;if(Q!==J.body){var tt=["absolute","relative","fixed"].indexOf(K.getComputedStyle(Q).position)!==-1,bt=tt?Q:Q.offsetParent,Ne=bt.getBoundingClientRect(),Oe=J.body.getBoundingClientRect();De=Ne.left-Oe.left-bt.scrollLeft,nt=Ne.top-Oe.top-bt.scrollTop}U.style.left=ye-De+"px",U.style.top=ke-nt+"px";var He=K.innerWidth||Math.max(J.body.offsetWidth,J.documentElement.offsetWidth),Pe=K.innerHeight||Math.max(J.body.offsetHeight,J.documentElement.offsetHeight);Q.appendChild(U),j.getInputField().setAttribute("aria-autocomplete","list"),j.getInputField().setAttribute("aria-owns",this.id),j.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Te=N.options.moveOnOverlap?U.getBoundingClientRect():new DOMRect,Ye=N.options.paddingForScrollbar?U.scrollHeight>U.clientHeight+1:!1,at;setTimeout(function(){at=j.getScrollInfo()});var jt=Te.bottom-Pe;if(jt>0){var rt=Te.bottom-Te.top,it=Te.top-(H.bottom-H.top)-2;Pe-Te.top<it?(rt>it&&(U.style.height=(rt=it)+"px"),U.style.top=(ke=H.top-rt)+nt+"px",je=!1):U.style.height=Pe-Te.top-2+"px"}var Ft=Te.right-He;if(Ye&&(Ft+=j.display.nativeBarWidth),Ft>0&&(Te.right-Te.left>He&&(U.style.width=He-5+"px",Ft-=Te.right-Te.left-He),U.style.left=(ye=Math.max(H.left-Ft-De,0))+"px"),Ye)for(var ot=U.firstChild;ot;ot=ot.nextSibling)ot.style.paddingRight=j.display.nativeBarWidth+"px";if(j.addKeyMap(this.keyMap=ee(N,{moveFocus:function(Ct,ze){k.changeActive(k.selectedHint+Ct,ze)},setFocus:function(Ct){k.changeActive(Ct)},menuSize:function(){return k.screenAmount()},length:X.length,close:function(){N.close()},pick:function(){k.pick()},data:C})),N.options.closeOnUnfocus){var or;j.on("blur",this.onBlur=function(){or=setTimeout(function(){N.close()},100)}),j.on("focus",this.onFocus=function(){clearTimeout(or)})}j.on("scroll",this.onScroll=function(){var Ct=j.getScrollInfo(),ze=j.getWrapperElement().getBoundingClientRect();at||(at=j.getScrollInfo());var Zr=ke+at.top-Ct.top,Er=Zr-(K.pageYOffset||(J.documentElement||J.body).scrollTop);if(je||(Er+=U.offsetHeight),Er<=ze.top||Er>=ze.bottom)return N.close();U.style.top=Zr+"px",U.style.left=ye+at.left-Ct.left+"px"}),d.on(U,"dblclick",function(Ct){var ze=ue(U,Ct.target||Ct.srcElement);ze&&ze.hintId!=null&&(k.changeActive(ze.hintId),k.pick())}),d.on(U,"click",function(Ct){var ze=ue(U,Ct.target||Ct.srcElement);ze&&ze.hintId!=null&&(k.changeActive(ze.hintId),N.options.completeOnSingleClick&&k.pick())}),d.on(U,"mousedown",function(){setTimeout(function(){j.focus()},20)});var Je=this.getSelectedHintRange();return(Je.from!==0||Je.to!==0)&&this.scrollToActive(),d.signal(C,"select",X[this.selectedHint],U.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 N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.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 N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,C){if(N>=this.data.list.length?N=C?this.data.list.length-1:0:N<0&&(N=C?0:this.data.list.length-1),this.selectedHint!=N){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+w,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=N],k.className+=" "+w,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var N=this.getSelectedHintRange(),C=this.hints.childNodes[N.from],k=this.hints.childNodes[N.to],j=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-j.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+j.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function ae(N,C){if(!N.somethingSelected())return C;for(var k=[],j=0;j<C.length;j++)C[j].supportsSelection&&k.push(C[j]);return k}function Y(N,C,k,j){if(N.async)N(C,j,k);else{var J=N(C,k);J&&J.then?J.then(j):j(J)}}function P(N,C){var k=N.getHelpers(C,"hint"),j;if(k.length){var J=function(K,U,re){var X=ae(K,k);function z(ce){if(ce==X.length)return U(null);Y(X[ce],K,re,function(he){he&&he.list.length>0?U(he):z(ce+1)})}z(0)};return J.async=!0,J.supportsSelection=!0,J}else return(j=N.getHelper(N.getCursor(),"hintWords"))?function(K){return d.hint.fromList(K,{words:j})}:d.hint.anyword?function(K,U){return d.hint.anyword(K,U)}:function(){}}d.registerHelper("hint","auto",{resolve:P}),d.registerHelper("hint","fromList",function(N,C){var k=N.getCursor(),j=N.getTokenAt(k),J,K=d.Pos(k.line,j.start),U=k;j.start<k.ch&&/\w/.test(j.string.charAt(k.ch-j.start-1))?J=j.string.substr(0,k.ch-j.start):(J="",K=k);for(var re=[],X=0;X<C.words.length;X++){var z=C.words[X];z.slice(0,J.length)==J&&re.push(z)}if(re.length)return{list:re,from:K,to:U}}),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,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function A(U,re,X){var z=document.createElement("div");z.className="CodeMirror-lint-tooltip cm-s-"+U.options.theme,z.appendChild(X.cloneNode(!0)),U.state.lint.options.selfContain?U.getWrapperElement().appendChild(z):document.body.appendChild(z);function ce(he){if(!z.parentNode)return d.off(document,"mousemove",ce);z.style.top=Math.max(0,he.clientY-z.offsetHeight-5)+"px",z.style.left=he.clientX+5+"px"}return d.on(document,"mousemove",ce),ce(re),z.style.opacity!=null&&(z.style.opacity=1),z}function E(U){U.parentNode&&U.parentNode.removeChild(U)}function F(U){!U.parentNode||(U.style.opacity==null&&E(U),U.style.opacity=0,setTimeout(function(){E(U)},600))}function W(U,re,X,z){var ce=A(U,re,X);function he(){d.off(z,"mouseout",he),ce&&(F(ce),ce=null)}var _=setInterval(function(){if(ce)for(var Q=z;;Q=Q.parentNode){if(Q&&Q.nodeType==11&&(Q=Q.host),Q==document.body)return;if(!Q){he();break}}if(!ce)return clearInterval(_)},400);d.on(z,"mouseout",he)}function Z(U,re,X){this.marked=[],re instanceof Function&&(re={getAnnotations:re}),(!re||re===!0)&&(re={}),this.options={},this.linterOptions=re.options||{};for(var z in ee)this.options[z]=ee[z];for(var z in re)ee.hasOwnProperty(z)?re[z]!=null&&(this.options[z]=re[z]):re.options||(this.linterOptions[z]=re[z]);this.timeout=null,this.hasGutter=X,this.onMouseOver=function(ce){K(U,ce)},this.waitingFor=0}var ee={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(U){var re=U.state.lint;re.hasGutter&&U.clearGutter(x),re.options.highlightLines&&ne(U);for(var X=0;X<re.marked.length;++X)re.marked[X].clear();re.marked.length=0}function ne(U){U.eachLine(function(re){var X=re.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(re.wrapClass);X&&U.removeLineClass(re,"wrap",X[0])})}function ae(U,re,X,z,ce){var he=document.createElement("div"),_=he;return he.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+X,z&&(_=he.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ce!=!1&&d.on(_,"mouseover",function(Q){W(U,Q,re,_)}),he}function Y(U,re){return U=="error"?U:re}function P(U){for(var re=[],X=0;X<U.length;++X){var z=U[X],ce=z.from.line;(re[ce]||(re[ce]=[])).push(z)}return re}function G(U){var re=U.severity;re||(re="error");var X=document.createElement("div");return X.className="CodeMirror-lint-message CodeMirror-lint-message-"+re,typeof U.messageHTML!="undefined"?X.innerHTML=U.messageHTML:X.appendChild(document.createTextNode(U.message)),X}function N(U,re){var X=U.state.lint,z=++X.waitingFor;function ce(){z=-1,U.off("change",ce)}U.on("change",ce),re(U.getValue(),function(he,_){U.off("change",ce),X.waitingFor==z&&(_&&he instanceof d&&(he=_),U.operation(function(){k(U,he)}))},X.linterOptions,U)}function C(U){var re=U.state.lint;if(!!re){var X=re.options,z=X.getAnnotations||U.getHelper(d.Pos(0,0),"lint");if(!!z)if(X.async||z.async)N(U,z);else{var ce=z(U.getValue(),re.linterOptions,U);if(!ce)return;ce.then?ce.then(function(he){U.operation(function(){k(U,he)})}):U.operation(function(){k(U,ce)})}}}function k(U,re){var X=U.state.lint;if(!!X){var z=X.options;ue(U);for(var ce=P(re),he=0;he<ce.length;++he){var _=ce[he];if(!!_){var Q=[];_=_.filter(function(nt){return Q.indexOf(nt.message)>-1?!1:Q.push(nt.message)});for(var H=null,ye=X.hasGutter&&document.createDocumentFragment(),ke=0;ke<_.length;++ke){var je=_[ke],De=je.severity;De||(De="error"),H=Y(H,De),z.formatAnnotation&&(je=z.formatAnnotation(je)),X.hasGutter&&ye.appendChild(G(je)),je.to&&X.marked.push(U.markText(je.from,je.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+De,__annotation:je}))}X.hasGutter&&U.setGutterMarker(he,x,ae(U,ye,H,ce[he].length>1,z.tooltips)),z.highlightLines&&U.addLineClass(he,"wrap",w+H)}}z.onUpdateLinting&&z.onUpdateLinting(re,ce,U)}}function j(U){var re=U.state.lint;!re||(clearTimeout(re.timeout),re.timeout=setTimeout(function(){C(U)},re.options.delay))}function J(U,re,X){for(var z=X.target||X.srcElement,ce=document.createDocumentFragment(),he=0;he<re.length;he++){var _=re[he];ce.appendChild(G(_))}W(U,X,ce,z)}function K(U,re){var X=re.target||re.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(X.className)){for(var z=X.getBoundingClientRect(),ce=(z.left+z.right)/2,he=(z.top+z.bottom)/2,_=U.findMarksAt(U.coordsChar({left:ce,top:he},"client")),Q=[],H=0;H<_.length;++H){var ye=_[H].__annotation;ye&&Q.push(ye)}Q.length&&J(U,Q,re)}}d.defineOption("lint",!1,function(U,re,X){if(X&&X!=d.Init&&(ue(U),U.state.lint.options.lintOnChange!==!1&&U.off("change",j),d.off(U.getWrapperElement(),"mouseover",U.state.lint.onMouseOver),clearTimeout(U.state.lint.timeout),delete U.state.lint),re){for(var z=U.getOption("gutters"),ce=!1,he=0;he<z.length;++he)z[he]==x&&(ce=!0);var _=U.state.lint=new Z(U,re,ce);_.options.lintOnChange&&U.on("change",j),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(U.getWrapperElement(),"mouseover",_.onMouseOver),C(U)}}),d.defineExtension("performLint",function(){C(this)})})},19757:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";var x=d.Pos;function w(C){var k=C.flags;return k!=null?k:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function A(C,k){for(var j=w(C),J=j,K=0;K<k.length;K++)J.indexOf(k.charAt(K))==-1&&(J+=k.charAt(K));return j==J?C:new RegExp(C.source,J)}function E(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function F(C,k,j){k=A(k,"g");for(var J=j.line,K=j.ch,U=C.lastLine();J<=U;J++,K=0){k.lastIndex=K;var re=C.getLine(J),X=k.exec(re);if(X)return{from:x(J,X.index),to:x(J,X.index+X[0].length),match:X}}}function W(C,k,j){if(!E(k))return F(C,k,j);k=A(k,"gm");for(var J,K=1,U=j.line,re=C.lastLine();U<=re;){for(var X=0;X<K&&!(U>re);X++){var z=C.getLine(U++);J=J==null?z:J+`
|
|
8
|
-
`+
|
|
9
|
-
`),_=
|
|
10
|
-
`),Q=
|
|
11
|
-
`+
|
|
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
12
|
`),Q=he[0].split(`
|
|
13
|
-
`),H=re+_.length,ye=_[_.length-1].length;return{from:x(H,ye),to:x(H+Q.length-1,Q.length==1?ye+Q[0].length:Q[Q.length-1].length),match:he}}}}var ne,ae;String.prototype.normalize?(ne=function(C){return C.normalize("NFD").toLowerCase()},ae=function(C){return C.normalize("NFD")}):(ne=function(C){return C.toLowerCase()},ae=function(C){return C});function Y(C,k,j,J){if(C.length==k.length)return j;for(var K=0,U=j+Math.max(0,C.length-k.length);;){if(K==U)return K;var re=K+U>>1,X=J(C.slice(0,re)).length;if(X==j)return re;X>j?U=re:K=re+1}}function P(C,k,j,J){if(!k.length)return null;var K=J?ne:ae,U=K(k).split(/\r|\n\r?/);e:for(var re=j.line,X=j.ch,z=C.lastLine()+1-U.length;re<=z;re++,X=0){var ce=C.getLine(re).slice(X),he=K(ce);if(U.length==1){var _=he.indexOf(U[0]);if(_==-1)continue e;var j=Y(ce,he,_,K)+X;return{from:x(re,Y(ce,he,_,K)+X),to:x(re,Y(ce,he,_+U[0].length,K)+X)}}else{var Q=he.length-U[0].length;if(he.slice(Q)!=U[0])continue e;for(var H=1;H<U.length-1;H++)if(K(C.getLine(re+H))!=U[H])continue e;var ye=C.getLine(re+U.length-1),ke=K(ye),je=U[U.length-1];if(ke.slice(0,je.length)!=je)continue e;return{from:x(re,Y(ce,he,Q,K)+X),to:x(re+U.length-1,Y(ye,ke,je.length,K))}}}}function G(C,k,j,J){if(!k.length)return null;var K=J?ne:ae,U=K(k).split(/\r|\n\r?/);e:for(var re=j.line,X=j.ch,z=C.firstLine()-1+U.length;re>=z;re--,X=-1){var ce=C.getLine(re);X>-1&&(ce=ce.slice(0,X));var he=K(ce);if(U.length==1){var _=he.lastIndexOf(U[0]);if(_==-1)continue e;return{from:x(re,Y(ce,he,_,K)),to:x(re,Y(ce,he,_+U[0].length,K))}}else{var Q=U[U.length-1];if(he.slice(0,Q.length)!=Q)continue e;for(var H=1,j=re-U.length+1;H<U.length-1;H++)if(K(C.getLine(j+H))!=U[H])continue e;var ye=C.getLine(re+1-U.length),ke=K(ye);if(ke.slice(ke.length-U[0].length)!=U[0])continue e;return{from:x(re+1-U.length,Y(ye,ke,ye.length-U[0].length,K)),to:x(re,Y(ce,he,Q.length,K))}}}}function N(C,k,j,J){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,j=j?C.clipPos(j):x(0,0),this.pos={from:j,to:j};var K;typeof J=="object"?K=J.caseFold:(K=J,J=null),typeof k=="string"?(K==null&&(K=!1),this.matches=function(U,re){return(U?G:P)(C,k,re,K)}):(k=A(k,"gm"),!J||J.multiline!==!1?this.matches=function(U,re){return(U?ue:W)(C,k,re)}:this.matches=function(U,re){return(U?ee:F)(C,k,re)})}N.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var k=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=x(k.line,k.ch),C?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),d.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var j=this.matches(C,k);if(this.afterEmptyMatch=j&&d.cmpPos(j.from,j.to)==0,j)return this.pos=j,this.atOccurrence=!0,this.pos.match||!0;var J=x(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:J,to:J},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,k){if(!!this.atOccurrence){var j=d.splitLines(C);this.doc.replaceRange(j,this.pos.from,this.pos.to,k),this.pos.to=x(this.pos.from.line+j.length-1,j[j.length-1].length+(j.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(C,k,j){return new N(this.doc,C,k,j)}),d.defineDocExtension("getSearchCursor",function(C,k,j){return new N(this,C,k,j)}),d.defineExtension("selectMatches",function(C,k){for(var j=[],J=this.getSearchCursor(C,this.getCursor("from"),k);J.findNext()&&!(d.cmpPos(J.to(),this.getCursor("to"))>0);)j.push({anchor:J.from(),head:J.to()});j.length&&this.setSelections(j,0)})})},23326:function(h){(function(O,s){h.exports=s()})(this,function(){"use strict";var O=navigator.userAgent,s=navigator.platform,d=/gecko\/\d/i.test(O),x=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),A=/Edge\/(\d+)/.exec(O),E=x||w||A,F=E&&(x?document.documentMode||6:+(A||w)[1]),W=!A&&/WebKit\//.test(O),Z=W&&/Qt\/\d+\.\d+/.test(O),ee=!A&&/Chrome\/(\d+)/.exec(O),ue=ee&&+ee[1],ne=/Opera\//.test(O),ae=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),P=/PhantomJS/.test(O),G=ae&&(/Mobile\/\w+/.test(O)||navigator.maxTouchPoints>2),N=/Android/.test(O),C=G||N||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),k=G||/Mac/.test(s),j=/\bCrOS\b/.test(O),J=/win/i.test(s),K=ne&&O.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(ne=!1,W=!0);var U=k&&(Z||ne&&(K==null||K<12.11)),re=d||E&&F>=9;function X(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var z=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 ce(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return ce(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 H;document.createRange?H=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:H=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 ye(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 ke(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 De(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 nt=function(t){t.select()};G?nt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:E&&(nt=function(t){try{t.select()}catch(i){}});function tt(t){return t.display.wrapper.ownerDocument}function bt(t){return tt(t).defaultView}function Ne(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Oe(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 He(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 Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=Ne(this.onTimeout,this)};Pe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Pe.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 Te(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var Ye=50,at={toString:function(){return"CodeMirror.Pass"}},jt={scroll:!1},rt={origin:"*mouse"},it={origin:"+move"};function Ft(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 ot=[""];function or(t){for(;ot.length<=t;)ot.push(Je(ot)+" ");return ot[t]}function Je(t){return t[t.length-1]}function Ct(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function ze(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function Zr(){}function Er(t,i){var u;return Object.create?u=Object.create(t):(Zr.prototype=t,u=new Zr),i&&Oe(i,u),u}var un=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||un.test(t))}function Or(t,i){return i?i.source.indexOf("\\w")>-1&&tr(t)?!0:i.test(t):tr(t)}function _r(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var Ze=/[\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 gt(t){return t.charCodeAt(0)>=768&&Ze.test(t)}function Lt(t,i,u){for(;(u<0?i>0:i<t.length)&>(t.charAt(i));)i+=u;return i}function Ot(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 kt(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 mt(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 Tt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(V){return V<=247?t.charAt(V):1424<=V&&V<=1524?"R":1536<=V&&V<=1785?i.charAt(V-1536):1774<=V&&V<=2220?"r":8192<=V&&V<=8203?"w":V==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,S=/[Lb1n]/,T=/[1n]/;function L(V,le,de){this.level=V,this.from=le,this.to=de}return function(V,le){var de=le=="ltr"?"L":"R";if(V.length==0||le=="ltr"&&!l.test(V))return!1;for(var Se=V.length,me=[],Ie=0;Ie<Se;++Ie)me.push(u(V.charCodeAt(Ie)));for(var Me=0,$e=de;Me<Se;++Me){var Qe=me[Me];Qe=="m"?me[Me]=$e:$e=Qe}for(var _e=0,Xe=de;_e<Se;++_e){var et=me[_e];et=="1"&&Xe=="r"?me[_e]="n":g.test(et)&&(Xe=et,et=="r"&&(me[_e]="R"))}for(var yt=1,ht=me[0];yt<Se-1;++yt){var Bt=me[yt];Bt=="+"&&ht=="1"&&me[yt+1]=="1"?me[yt]="1":Bt==","&&ht==me[yt+1]&&(ht=="1"||ht=="n")&&(me[yt]=ht),ht=Bt}for(var fr=0;fr<Se;++fr){var Wt=me[fr];if(Wt==",")me[fr]="N";else if(Wt=="%"){var wr=void 0;for(wr=fr+1;wr<Se&&me[wr]=="%";++wr);for(var xn=fr&&me[fr-1]=="!"||wr<Se&&me[wr]=="1"?"1":"N",M=fr;M<wr;++M)me[M]=xn;fr=wr-1}}for(var Dt=0,St=de;Dt<Se;++Dt){var Ir=me[Dt];St=="L"&&Ir=="1"?me[Dt]="L":g.test(Ir)&&(St=Ir)}for(var vr=0;vr<Se;++vr)if(f.test(me[vr])){var Cr=void 0;for(Cr=vr+1;Cr<Se&&f.test(me[Cr]);++Cr);for(var br=(vr?me[vr-1]:de)=="L",hn=(Cr<Se?me[Cr]:de)=="L",ha=br==hn?br?"L":"R":de,Li=vr;Li<Cr;++Li)me[Li]=ha;vr=Cr-1}for(var Rr=[],ci,Lr=0;Lr<Se;)if(S.test(me[Lr])){var $s=Lr;for(++Lr;Lr<Se&&S.test(me[Lr]);++Lr);Rr.push(new L(0,$s,Lr))}else{var di=Lr,va=Rr.length,Yi=le=="rtl"?1:0;for(++Lr;Lr<Se&&me[Lr]!="L";++Lr);for(var It=di;It<Lr;)if(T.test(me[It])){di<It&&(Rr.splice(va,0,new L(1,di,It)),va+=Yi);var Vt=It;for(++It;It<Lr&&T.test(me[It]);++It);Rr.splice(va,0,new L(2,Vt,It)),va+=Yi,di=It}else++It;di<Lr&&Rr.splice(va,0,new L(1,di,Lr))}return le=="ltr"&&(Rr[0].level==1&&(ci=V.match(/^\s+/))&&(Rr[0].from=ci[0].length,Rr.unshift(new L(0,0,ci[0].length))),Je(Rr).level==1&&(ci=V.match(/\s+$/))&&(Je(Rr).to-=ci[0].length,Rr.push(new L(0,Se-ci[0].length,Se)))),le=="rtl"?Rr.reverse():Rr}}();function st(t,i){var u=t.order;return u==null&&(u=t.order=Tt(t.text,i)),u}var Ue=[],fe=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]||Ue).concat(u)}};function be(t,i){return t._handlers&&t._handlers[i]||Ue}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=Te(f,u);g>-1&&(l[i]=f.slice(0,g).concat(f.slice(g+1)))}}}function Ve(t,i){var u=be(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 lt(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ve(t,u||i.type,t,i),yi(i)||i.codemirrorIgnore}function vt(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)Te(u,i[l])==-1&&u.push(i[l])}function Mt(t,i){return be(t,i).length>0}function pr(t){t.prototype.on=function(i,u){fe(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Nt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Tr(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function yi(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Hr(t){Nt(t),Tr(t)}function zr(t){return t.target||t.srcElement}function bi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var qr=function(){if(E&&F<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),gr;function ei(t){if(gr==null){var i=_("span","\u200B");he(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(gr=i.offsetWidth<=1&&i.offsetHeight>2&&!(E&&F<8))}var u=gr?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var en;function ti(t){if(en!=null)return en;var i=he(t,document.createTextNode("A\u062EA")),u=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return ce(t),!u||u.left==u.right?!1:en=l.right-u.right<3}var Un=`
|
|
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=`
|
|
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/)},xi=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},_i=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),gn=null;function fn(t){if(gn!=null)return gn;var i=he(t,_("span","x")),u=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return gn=Math.abs(u.left-l.left)>1}var An={},Cn={};function Pn(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),An[t]=i}function Sa(t,i){Cn[t]=i}function Wn(t){if(typeof t=="string"&&Cn.hasOwnProperty(t))t=Cn[t];else if(t&&typeof t.name=="string"&&Cn.hasOwnProperty(t.name)){var i=Cn[t.name];typeof i=="string"&&(i={name:i}),t=Er(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Wn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Wn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function cn(t,i){i=Wn(i);var u=An[i.name];if(!u)return cn(t,"text/plain");var l=u(t,i);if(Pr.hasOwnProperty(i.name)){var f=Pr[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 Pr={};function ri(t,i){var u=Pr.hasOwnProperty(t)?Pr[t]:Pr[t]={};Oe(i,u)}function In(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 wa(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 Qo(t,i,u){return t.startState?t.startState(i,u):!0}var hr=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};hr.prototype.eol=function(){return this.pos>=this.string.length},hr.prototype.sol=function(){return this.pos==this.lineStart},hr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},hr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},hr.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},hr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},hr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},hr.prototype.skipToEnd=function(){this.pos=this.string.length},hr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},hr.prototype.backUp=function(t){this.pos-=t},hr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=He(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?He(this.string,this.lineStart,this.tabSize):0)},hr.prototype.indentation=function(){return He(this.string,null,this.tabSize)-(this.lineStart?He(this.string,this.lineStart,this.tabSize):0)},hr.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)}},hr.prototype.current=function(){return this.string.slice(this.start,this.pos)},hr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},hr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},hr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ut(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 Si(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 Ui(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function kn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function Zt(t){if(t.parent==null)return null;for(var i=t.parent,u=Te(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 wi(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],L=T.height;if(i<L)break;i-=L}return u+S}function qi(t,i){return i>=t.first&&i<t.first+t.size}function Aa(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function D(t,i,u){if(u===void 0&&(u=null),!(this instanceof D))return new D(t,i,u);this.line=t,this.ch=i,this.sticky=u}function oe(t,i){return t.line-i.line||t.ch-i.ch}function Re(t,i){return t.sticky==i.sticky&&oe(t,i)==0}function Ge(t){return D(t.line,t.ch)}function Pt(t,i){return oe(t,i)<0?i:t}function Ht(t,i){return oe(t,i)<0?t:i}function rr(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ft(t,i){if(i.line<t.first)return D(t.first,0);var u=t.first+t.size-1;return i.line>u?D(u,ut(t,u).text.length):Fn(i,ut(t,i.line).text.length)}function Fn(t,i){var u=t.ch;return u==null||u>i?D(t.line,i):u<0?D(t.line,0):t}function eo(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ft(t,i[l]);return u}var Zo=function(t,i){this.state=t,this.lookAhead=i},Hn=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Hn.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},Hn.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}},Hn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hn.fromSaved=function(t,i,u){return i instanceof Zo?new Hn(t,In(t.mode,i.state),u,i.lookAhead):new Hn(t,In(t.mode,i),u)},Hn.prototype.save=function(t){var i=t!==!1?In(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Zo(i,this.maxLookAhead):i};function _o(t,i,u,l){var f=[t.state.modeGen],g={};Hu(t,i.text,t.doc.mode,u,function(V,le){return f.push(V,le)},g,l);for(var S=u.state,T=function(V){u.baseTokens=f;var le=t.state.overlays[V],de=1,Se=0;u.state=!0,Hu(t,i.text,le.mode,u,function(me,Ie){for(var Me=de;Se<me;){var $e=f[de];$e>me&&f.splice(de,1,me,f[de+1],$e),de+=2,Se=Math.min(me,$e)}if(!!Ie)if(le.opaque)f.splice(Me,de-Me,me,"overlay "+Ie),de=Me+2;else for(;Me<de;Me+=2){var Qe=f[Me+1];f[Me+1]=(Qe?Qe+" ":"")+"overlay "+Ie}},g),u.state=S,u.baseTokens=null,u.baseTokenPos=1},L=0;L<t.state.overlays.length;++L)T(L);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function Bu(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=to(t,Zt(i)),f=i.text.length>t.options.maxHighlightLength&&In(t.doc.mode,l.state),g=_o(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 to(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new Hn(l,!0,i);var g=zu(t,i,u),S=g>l.first&&ut(l,g-1).stateAfter,T=S?Hn.fromSaved(l,S,g):new Hn(l,Qo(l.mode),g);return l.iter(g,i,function(L){il(t,L.text,T);var V=T.line;L.stateAfter=V==i-1||V%5==0||V>=f.viewFrom&&V<f.viewTo?T.save():null,T.nextLine()}),u&&(l.modeFrontier=T.line),T}function il(t,i,u,l){var f=t.doc.mode,g=new hr(i,t.options.tabSize,u);for(g.start=g.pos=l||0,i==""&&ju(f,u.state);!g.eol();)qo(f,g,u.state),g.start=g.pos}function ju(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=wa(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function qo(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=wa(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 Vu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function Uu(t,i,u,l){var f=t.doc,g=f.mode,S;i=ft(f,i);var T=ut(f,i.line),L=to(t,i.line,u),V=new hr(T.text,t.options.tabSize,L),le;for(l&&(le=[]);(l||V.pos<i.ch)&&!V.eol();)V.start=V.pos,S=qo(g,V,L.state),l&&le.push(new Vu(V,S,In(f.mode,L.state)));return l?le:new Vu(V,S,L.state)}function Wu(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 Hu(t,i,u,l,f,g,S){var T=u.flattenSpans;T==null&&(T=t.options.flattenSpans);var L=0,V=null,le=new hr(i,t.options.tabSize,l),de,Se=t.options.addModeClass&&[null];for(i==""&&Wu(ju(u,l.state),g);!le.eol();){if(le.pos>t.options.maxHighlightLength?(T=!1,S&&il(t,i,l,le.pos),le.pos=i.length,de=null):de=Wu(qo(u,le,l.state,Se),g),Se){var me=Se[0].name;me&&(de="m-"+(de?me+" "+de:me))}if(!T||V!=de){for(;L<le.start;)L=Math.min(le.start,L+5e3),f(L,V);V=de}le.start=le.pos}for(;L<le.pos;){var Ie=Math.min(le.pos,L+5e3);f(Ie,V),L=Ie}}function zu(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 L=ut(g,T-1),V=L.stateAfter;if(V&&(!u||T+(V instanceof Zo?V.lookAhead:0)<=g.modeFrontier))return T;var le=He(L.text,null,t.options.tabSize);(f==null||l>le)&&(f=T-1,l=le)}return f}function Rc(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=ut(t,l).stateAfter;if(f&&(!(f instanceof Zo)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var Gu=!1,Ai=!1;function $u(){Gu=!0}function Lc(){Ai=!0}function es(t,i,u){this.marker=t,this.from=i,this.to=u}function ro(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function Ku(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function al(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 Wi(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 L=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new es(S,g.from,L?null:g.to))}}return l}function ts(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 L=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new es(S,L?null:g.from-i,g.to==null?null:g.to-i))}}return l}function rs(t,i){if(i.full)return null;var u=qi(t,i.from.line)&&ut(t,i.from.line).markedSpans,l=qi(t,i.to.line)&&ut(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,g=i.to.ch,S=oe(i.from,i.to)==0,T=Wi(u,f,S),L=ts(l,g,S),V=i.text.length==1,le=Je(i.text).length+(V?f:0);if(T)for(var de=0;de<T.length;++de){var Se=T[de];if(Se.to==null){var me=ro(L,Se.marker);me?V&&(Se.to=me.to==null?null:me.to+le):Se.to=f}}if(L)for(var Ie=0;Ie<L.length;++Ie){var Me=L[Ie];if(Me.to!=null&&(Me.to+=le),Me.from==null){var $e=ro(T,Me.marker);$e||(Me.from=le,V&&(T||(T=[])).push(Me))}else Me.from+=le,V&&(T||(T=[])).push(Me)}T&&(T=ol(T)),L&&L!=T&&(L=ol(L));var Qe=[T];if(!V){var _e=i.text.length-2,Xe;if(_e>0&&T)for(var et=0;et<T.length;++et)T[et].to==null&&(Xe||(Xe=[])).push(new es(T[et].marker,null,null));for(var yt=0;yt<_e;++yt)Qe.push(Xe);Qe.push(L)}return Qe}function ol(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 ns(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(me){if(me.markedSpans)for(var Ie=0;Ie<me.markedSpans.length;++Ie){var Me=me.markedSpans[Ie].marker;Me.readOnly&&(!l||Te(l,Me)==-1)&&(l||(l=[])).push(Me)}}),!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),L=0;L<f.length;++L){var V=f[L];if(!(oe(V.to,T.from)<0||oe(V.from,T.to)>0)){var le=[L,1],de=oe(V.from,T.from),Se=oe(V.to,T.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:V.from,to:T.from}),(Se>0||!S.inclusiveRight&&!Se)&&le.push({from:T.to,to:V.to}),f.splice.apply(f,le),L+=le.length-3}}return f}function is(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function Yu(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function no(t){return t.inclusiveLeft?-1:0}function as(t){return t.inclusiveRight?1:0}function sl(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),g=oe(l.from,f.from)||no(t)-no(i);if(g)return-g;var S=oe(l.to,f.to)||as(t)-as(i);return S||i.id-t.id}function Ju(t,i){var u=Ai&&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||sl(l,f.marker)<0)&&(l=f.marker);return l}function ll(t){return Ju(t,!0)}function io(t){return Ju(t,!1)}function Xu(t,i){var u=Ai&&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||sl(l,g.marker)<0)&&(l=g.marker)}return l}function zn(t,i,u,l,f){var g=ut(t,i),S=Ai&&g.markedSpans;if(S)for(var T=0;T<S.length;++T){var L=S[T];if(!!L.marker.collapsed){var V=L.marker.find(0),le=oe(V.from,u)||no(L.marker)-no(f),de=oe(V.to,l)||as(L.marker)-as(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(L.marker.inclusiveRight&&f.inclusiveLeft?oe(V.to,u)>=0:oe(V.to,u)>0)||le>=0&&(L.marker.inclusiveRight&&f.inclusiveLeft?oe(V.from,l)<=0:oe(V.from,l)<0)))return!0}}}function Gr(t){for(var i;i=ll(t);)t=i.find(-1,!0).line;return t}function mn(t){for(var i;i=io(t);)t=i.find(1,!0).line;return t}function Ca(t){for(var i,u;i=io(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function ul(t,i){var u=ut(t,i),l=Gr(u);return u==l?i:Zt(l)}function Qu(t,i){if(i>t.lastLine())return i;var u=ut(t,i),l;if(!Hi(t,u))return i;for(;l=io(u);)u=l.find(1,!0).line;return Zt(u)+1}function Hi(t,i){var u=Ai&&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&&os(t,i,l))return!0}}}function os(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return os(t,l.line,ro(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)&&os(t,i,f))return!0}function Ci(t){t=Gr(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 ao(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=ll(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=io(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 ss(t){var i=t.display,u=t.doc;i.maxLine=ut(u,u.first),i.maxLineLength=ao(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=ao(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Gn=function(t,i,u){this.text=t,Yu(this,i),this.height=u?u(this):1};Gn.prototype.lineNo=function(){return Zt(this)},pr(Gn);function Mc(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),is(t),Yu(t,u);var f=l?l(t):1;f!=t.height&&kn(t,f)}function Zu(t){t.parent=null,is(t)}var xt={},ls={};function fl(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?ls:xt;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function Ei(t,i){var u=Q("span",null,null,W?"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=Ea,ti(t.display.measure)&&(S=st(g,t.doc.direction))&&(l.addToken=Fr(l.addToken,S)),l.map=[];var T=i!=t.display.externalMeasured&&Zt(g);dl(g,l,Bu(t,g,T)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=De(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=De(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ei(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(W){var L=l.content.lastChild;(/\bcm-tab\b/.test(L.className)||L.querySelector&&L.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ve(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=De(l.pre.className,l.textClass||"")),l}function _u(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Ea(t,i,u,l,f,g,S){if(!!i){var T=t.splitSpaces?cl(i,t.trailingSpace):i,L=t.cm.state.specialChars,V=!1,le;if(!L.test(i))t.col+=i.length,le=document.createTextNode(T),t.map.push(t.pos,t.pos+i.length,le),E&&F<9&&(V=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){L.lastIndex=de;var Se=L.exec(i),me=Se?Se.index-de:i.length-de;if(me){var Ie=document.createTextNode(T.slice(de,de+me));E&&F<9?le.appendChild(_("span",[Ie])):le.appendChild(Ie),t.map.push(t.pos,t.pos+me,Ie),t.col+=me,t.pos+=me}if(!Se)break;de+=me+1;var Me=void 0;if(Se[0]==" "){var $e=t.cm.options.tabSize,Qe=$e-t.col%$e;Me=le.appendChild(_("span",or(Qe),"cm-tab")),Me.setAttribute("role","presentation"),Me.setAttribute("cm-text"," "),t.col+=Qe}else Se[0]=="\r"||Se[0]==`
|
|
17
|
-
`?(Me=le.appendChild(_("span",Se[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Me.setAttribute("cm-text",Se[0]),t.col+=1):(Me=t.cm.options.specialCharPlaceholder(Se[0]),Me.setAttribute("cm-text",Se[0]),E&&F<9?le.appendChild(_("span",[Me])):le.appendChild(Me),t.col+=1);t.map.push(t.pos,t.pos+1,Me),t.pos++}}if(t.trailingSpace=T.charCodeAt(i.length-1)==32,u||l||f||V||g||S){var _e=u||"";l&&(_e+=l),f&&(_e+=f);var Xe=_("span",[le],_e,g);if(S)for(var et in S)S.hasOwnProperty(et)&&et!="style"&&et!="class"&&Xe.setAttribute(et,S[et]);return t.content.appendChild(Xe)}t.content.appendChild(le)}}function cl(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 Fr(t,i){return function(u,l,f,g,S,T,L){f=f?f+" cm-force-border":"cm-force-border";for(var V=u.pos,le=V+l.length;;){for(var de=void 0,Se=0;Se<i.length&&(de=i[Se],!(de.to>V&&de.from<=V));Se++);if(de.to>=le)return t(u,l,f,g,S,T,L);t(u,l.slice(0,de.to-V),f,g,null,T,L),g=null,l=l.slice(de.to-V),V=de.to}}}function oo(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 dl(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]),fl(u[S+1],i.cm.options));return}for(var T=f.length,L=0,V=1,le="",de,Se,me=0,Ie,Me,$e,Qe,_e;;){if(me==L){Ie=Me=$e=Se="",_e=null,Qe=null,me=1/0;for(var Xe=[],et=void 0,yt=0;yt<l.length;++yt){var ht=l[yt],Bt=ht.marker;if(Bt.type=="bookmark"&&ht.from==L&&Bt.widgetNode)Xe.push(Bt);else if(ht.from<=L&&(ht.to==null||ht.to>L||Bt.collapsed&&ht.to==L&&ht.from==L)){if(ht.to!=null&&ht.to!=L&&me>ht.to&&(me=ht.to,Me=""),Bt.className&&(Ie+=" "+Bt.className),Bt.css&&(Se=(Se?Se+";":"")+Bt.css),Bt.startStyle&&ht.from==L&&($e+=" "+Bt.startStyle),Bt.endStyle&&ht.to==me&&(et||(et=[])).push(Bt.endStyle,ht.to),Bt.title&&((_e||(_e={})).title=Bt.title),Bt.attributes)for(var fr in Bt.attributes)(_e||(_e={}))[fr]=Bt.attributes[fr];Bt.collapsed&&(!Qe||sl(Qe.marker,Bt)<0)&&(Qe=ht)}else ht.from>L&&me>ht.from&&(me=ht.from)}if(et)for(var Wt=0;Wt<et.length;Wt+=2)et[Wt+1]==me&&(Me+=" "+et[Wt]);if(!Qe||Qe.from==L)for(var wr=0;wr<Xe.length;++wr)oo(i,0,Xe[wr]);if(Qe&&(Qe.from||0)==L){if(oo(i,(Qe.to==null?T+1:Qe.to)-L,Qe.marker,Qe.from==null),Qe.to==null)return;Qe.to==L&&(Qe=!1)}}if(L>=T)break;for(var xn=Math.min(T,me);;){if(le){var M=L+le.length;if(!Qe){var Dt=M>xn?le.slice(0,xn-L):le;i.addToken(i,Dt,de?de+Ie:Ie,$e,L+Dt.length==me?Me:"",Se,_e)}if(M>=xn){le=le.slice(xn-L),L=xn;break}L=M,$e=""}le=f.slice(g,g=u[V++]),de=fl(u[V++],i.cm.options)}}}function qu(t,i,u){this.line=i,this.rest=Ca(i),this.size=this.rest?Zt(Je(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Hi(t,i)}function us(t,i,u){for(var l=[],f,g=i;g<u;g=f){var S=new qu(t.doc,ut(t.doc,g),g);f=g+S.size,l.push(S)}return l}var Oa=null;function Nc(t){Oa?Oa.ops.push(t):t.ownsGroup=Oa={ops:[t],delayedCallbacks:[]}}function Dc(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 ef(t,i){var u=t.ownsGroup;if(!!u)try{Dc(u)}finally{Oa=null,i(u)}}var so=null;function Br(t,i){var u=be(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;Oa?f=Oa.delayedCallbacks:so?f=so:(f=so=[],setTimeout(Bc,0));for(var g=function(T){f.push(function(){return u[T].apply(null,l)})},S=0;S<u.length;++S)g(S)}}function Bc(){var t=so;so=null;for(var i=0;i<t.length;++i)t[i]()}function tf(t,i,u,l){for(var f=0;f<i.changes.length;f++){var g=i.changes[f];g=="text"?Vc(t,i):g=="gutter"?rf(t,i,u,l):g=="class"?hl(t,i):g=="widget"&&Uc(t,i,l)}i.changes=null}function ni(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),E&&F<8&&(t.node.style.zIndex=2)),t.node}function jc(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=ni(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function pl(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):Ei(t,i)}function Vc(t,i){var u=i.text.className,l=pl(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,hl(t,i)):u&&(i.text.className=u)}function hl(t,i){jc(t,i),i.line.wrapClass?ni(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 rf(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=ni(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=ni(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",Aa(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var L=0;L<t.display.gutterSpecs.length;++L){var V=t.display.gutterSpecs[L].className,le=g.hasOwnProperty(V)&&g[V];le&&T.appendChild(_("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[V]+"px; width: "+l.gutterWidth[V]+"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);vl(t,i,u)}function nf(t,i,u,l){var f=pl(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),hl(t,i),rf(t,i,u,l),vl(t,i,l),i.node}function vl(t,i,u){if(gl(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)gl(t,i.rest[l],i,u,!1)}function gl(t,i,u,l,f){if(!!i.widgets)for(var g=ni(u),S=0,T=i.widgets;S<T.length;++S){var L=T[S],V=_("div",[L.node],"CodeMirror-linewidget"+(L.className?" "+L.className:""));L.handleMouseEvents||V.setAttribute("cm-ignore-events","true"),ml(L,V,u,l),t.display.input.setUneditable(V),f&&L.above?g.insertBefore(V,u.gutter||u.text):g.appendChild(V),Br(L,"redraw")}}function ml(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 lo(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ye(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 En(t,i){for(var u=zr(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 fs(t){return t.lineSpace.offsetTop}function yl(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function af(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 ii(t){return Ye-t.display.nativeBarWidth}function Oi(t){return t.display.scroller.clientWidth-ii(t)-t.display.barWidth}function bl(t){return t.display.scroller.clientHeight-ii(t)-t.display.barHeight}function Wc(t,i,u){var l=t.options.lineWrapping,f=l&&Oi(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 L=S[T],V=S[T+1];Math.abs(L.bottom-V.bottom)>2&&g.push((L.bottom+V.top)/2-u.top)}}g.push(u.bottom-u.top)}}function of(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(Zt(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function Hc(t,i){i=Gr(i);var u=Zt(i),l=t.display.externalMeasured=new qu(t.doc,i,u);l.lineN=u;var f=l.built=Ei(t,l);return l.text=f.pre,he(t.display.lineMeasure,f.pre),l}function xl(t,i,u,l){return ai(t,Ti(t,i),u,l)}function Sl(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Rn(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function Ti(t,i){var u=Zt(i),l=Sl(t,u);l&&!l.text?l=null:l&&l.changes&&(tf(t,l,u,vs(t)),t.curOp.forceUpdate=!0),l||(l=Hc(t,i));var f=of(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function ai(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||(Wc(t,i.view,i.rect),i.hasHeights=!0),S=uf(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 sf={left:0,right:0,top:0,bottom:0};function lf(t,i,u){for(var l,f,g,S,T,L,V=0;V<t.length;V+=3)if(T=t[V],L=t[V+1],i<T?(f=0,g=1,S="left"):i<L?(f=i-T,g=f+1):(V==t.length-3||i==L&&t[V+3]>i)&&(g=L-T,f=g-1,i>=L&&(S="right")),f!=null){if(l=t[V+2],T==L&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;V&&t[V-2]==t[V-3]&&t[V-1].insertLeft;)l=t[(V-=3)+2],S="left";if(u=="right"&&f==L-T)for(;V<t.length-3&&t[V+3]==t[V+4]&&!t[V+5].insertLeft;)l=t[(V+=3)+2],S="right";break}return{node:l,start:f,end:g,collapse:S,coverStart:T,coverEnd:L}}function zc(t,i){var u=sf;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 uf(t,i,u,l){var f=lf(i.map,u,l),g=f.node,S=f.start,T=f.end,L=f.collapse,V;if(g.nodeType==3){for(var le=0;le<4;le++){for(;S&>(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+T<f.coverEnd&>(i.line.text.charAt(f.coverStart+T));)++T;if(E&&F<9&&S==0&&T==f.coverEnd-f.coverStart?V=g.parentNode.getBoundingClientRect():V=zc(H(g,S,T).getClientRects(),l),V.left||V.right||S==0)break;T=S,S=S-1,L="right"}E&&F<11&&(V=ff(t.display.measure,V))}else{S>0&&(L=l="right");var de;t.options.lineWrapping&&(de=g.getClientRects()).length>1?V=de[l=="right"?de.length-1:0]:V=g.getBoundingClientRect()}if(E&&F<9&&!S&&(!V||!V.left&&!V.right)){var Se=g.parentNode.getClientRects()[0];Se?V={left:Se.left,right:Se.left+oi(t.display),top:Se.top,bottom:Se.bottom}:V=sf}for(var me=V.top-i.rect.top,Ie=V.bottom-i.rect.top,Me=(me+Ie)/2,$e=i.view.measure.heights,Qe=0;Qe<$e.length-1&&!(Me<$e[Qe]);Qe++);var _e=Qe?$e[Qe-1]:0,Xe=$e[Qe],et={left:(L=="right"?V.right:V.left)-i.rect.left,right:(L=="left"?V.left:V.right)-i.rect.left,top:_e,bottom:Xe};return!V.left&&!V.right&&(et.bogus=!0),t.options.singleCursorHeightPerLine||(et.rtop=me,et.rbottom=Ie),et}function ff(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(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 cf(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 wl(t){t.display.externalMeasure=null,ce(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)cf(t.display.view[i])}function uo(t){wl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Al(t){return ee&&N?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function $r(t){return ee&&N?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Cl(t){var i=Gr(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=lo(u[f]));return l}function cs(t,i,u,l,f){if(!f){var g=Cl(i);u.top+=g,u.bottom+=g}if(l=="line")return u;l||(l="local");var S=Ci(i);if(l=="local"?S+=fs(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var T=t.display.lineSpace.getBoundingClientRect();S+=T.top+(l=="window"?0:$r(tt(t)));var L=T.left+(l=="window"?0:Al(tt(t)));u.left+=L,u.right+=L}return u.top+=S,u.bottom+=S,u}function df(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Al(tt(t)),f-=$r(tt(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 ds(t,i,u,l,f){return l||(l=ut(t.doc,i.line)),cs(t,l,xl(t,l,i.ch,f),u)}function $n(t,i,u,l,f,g){l=l||ut(t.doc,i.line),f||(f=Ti(t,l));function S(Ie,Me){var $e=ai(t,f,Ie,Me?"right":"left",g);return Me?$e.left=$e.right:$e.right=$e.left,cs(t,l,$e,u)}var T=st(l,t.doc.direction),L=i.ch,V=i.sticky;if(L>=l.text.length?(L=l.text.length,V="before"):L<=0&&(L=0,V="after"),!T)return S(V=="before"?L-1:L,V=="before");function le(Ie,Me,$e){var Qe=T[Me],_e=Qe.level==1;return S($e?Ie-1:Ie,_e!=$e)}var de=mt(T,L,V),Se=dt,me=le(L,de,V=="before");return Se!=null&&(me.other=le(L,Se,V!="before")),me}function Ta(t,i){var u=0;i=ft(t.doc,i),t.options.lineWrapping||(u=oi(t.display)*i.ch);var l=ut(t.doc,i.line),f=Ci(l)+fs(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function El(t,i,u,l,f){var g=D(t,i,u);return g.xRel=f,l&&(g.outside=l),g}function ps(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return El(l.first,0,null,-1,-1);var f=wi(l,u),g=l.first+l.size-1;if(f>g)return El(l.first+l.size-1,ut(l,g).text.length,null,1,1);i<0&&(i=0);for(var S=ut(l,f);;){var T=fo(t,S,f,i,u),L=Xu(S,T.ch+(T.xRel>0||T.outside>0?1:0));if(!L)return T;var V=L.find(1);if(V.line==f)return V;S=ut(l,f=V.line)}}function hs(t,i,u,l){l-=Cl(i);var f=i.text.length,g=Ot(function(S){return ai(t,u,S-1).bottom<=l},f,0);return f=Ot(function(S){return ai(t,u,S).top>l},g,f),{begin:g,end:f}}function pf(t,i,u,l){u||(u=Ti(t,i));var f=cs(t,i,ai(t,u,l),"line").top;return hs(t,i,u,f)}function Pa(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function fo(t,i,u,l,f){f-=Ci(i);var g=Ti(t,i),S=Cl(i),T=0,L=i.text.length,V=!0,le=st(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?vf:hf)(t,i,u,g,le,l,f);V=de.level!=1,T=V?de.from:de.to-1,L=V?de.to:de.from-1}var Se=null,me=null,Ie=Ot(function(yt){var ht=ai(t,g,yt);return ht.top+=S,ht.bottom+=S,Pa(ht,l,f,!1)?(ht.top<=f&&ht.left<=l&&(Se=yt,me=ht),!0):!1},T,L),Me,$e,Qe=!1;if(me){var _e=l-me.left<me.right-l,Xe=_e==V;Ie=Se+(Xe?0:1),$e=Xe?"after":"before",Me=_e?me.left:me.right}else{!V&&(Ie==L||Ie==T)&&Ie++,$e=Ie==0?"after":Ie==i.text.length?"before":ai(t,g,Ie-(V?1:0)).bottom+S<=f==V?"after":"before";var et=$n(t,D(u,Ie,$e),"line",i,g);Me=et.left,Qe=f<et.top?-1:f>=et.bottom?1:0}return Ie=Lt(i.text,Ie,1),El(u,Ie,$e,Qe,l-Me)}function hf(t,i,u,l,f,g,S){var T=Ot(function(de){var Se=f[de],me=Se.level!=1;return Pa($n(t,D(u,me?Se.to:Se.from,me?"before":"after"),"line",i,l),g,S,!0)},0,f.length-1),L=f[T];if(T>0){var V=L.level!=1,le=$n(t,D(u,V?L.from:L.to,V?"after":"before"),"line",i,l);Pa(le,g,S,!0)&&le.top>S&&(L=f[T-1])}return L}function vf(t,i,u,l,f,g,S){var T=hs(t,i,l,S),L=T.begin,V=T.end;/\s/.test(i.text.charAt(V-1))&&V--;for(var le=null,de=null,Se=0;Se<f.length;Se++){var me=f[Se];if(!(me.from>=V||me.to<=L)){var Ie=me.level!=1,Me=ai(t,l,Ie?Math.min(V,me.to)-1:Math.max(L,me.from)).right,$e=Me<g?g-Me+1e9:Me-g;(!le||de>$e)&&(le=me,de=$e)}}return le||(le=f[f.length-1]),le.from<L&&(le={from:L,to:le.to,level:le.level}),le.to>V&&(le={from:le.from,to:V,level:le.level}),le}var ea;function Ia(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(ea==null){ea=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ea.appendChild(document.createTextNode("x")),ea.appendChild(_("br"));ea.appendChild(document.createTextNode("x"))}he(t.measure,ea);var u=ea.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),ce(t.measure),u||1}function oi(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 vs(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:gs(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function gs(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ms(t){var i=Ia(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/oi(t.display)-3);return function(f){if(Hi(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 ys(t){var i=t.doc,u=ms(t);i.iter(function(l){var f=u(l);f!=l.height&&kn(l,f)})}function zi(t,i,u,l){var f=t.display;if(!u&&zr(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 L=ps(t,g,S),V;if(l&&L.xRel>0&&(V=ut(t.doc,L.line).text).length==L.ch){var le=He(V,V.length,t.options.tabSize)-V.length;L=D(L.line,Math.max(0,Math.round((g-af(t.display).left)/oi(t.display))-le))}return L}function Rn(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 dn(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)Ai&&ul(t.doc,i)<f.viewTo&&Pi(t);else if(u<=f.viewFrom)Ai&&Qu(t.doc,u+l)>f.viewFrom?Pi(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)Pi(t);else if(i<=f.viewFrom){var g=co(t,u,u+l,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=l):Pi(t)}else if(u>=f.viewTo){var S=co(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):Pi(t)}else{var T=co(t,i,i,-1),L=co(t,u,u+l,1);T&&L?(f.view=f.view.slice(0,T.index).concat(us(t,T.lineN,L.lineN)).concat(f.view.slice(L.index)),f.viewTo+=l):Pi(t)}var V=f.externalMeasured;V&&(u<V.lineN?V.lineN+=l:i<V.lineN+V.size&&(f.externalMeasured=null))}function Gi(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[Rn(t,i)];if(g.node!=null){var S=g.changes||(g.changes=[]);Te(S,u)==-1&&S.push(u)}}}function Pi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function co(t,i,u,l){var f=Rn(t,i),g,S=t.display.view;if(!Ai||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var T=t.display.viewFrom,L=0;L<f;L++)T+=S[L].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(;ul(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 Gc(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=us(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=us(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Rn(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(us(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Rn(t,u)))),l.viewTo=u}function Ol(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 po(t){t.display.input.showSelection(t.display.input.prepareSelection())}function gf(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 L=u.sel.ranges[T];if(!(L.from().line>=t.display.viewTo||L.to().line<t.display.viewFrom)){var V=L.empty();if(S){var le=S(t,L);le&&bs(t,le,f)}else(V||t.options.showCursorWhenSelecting)&&bs(t,L.head,f);V||$c(t,L,g)}}return l}function bs(t,i,u){var l=$n(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=ds(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 xs(t,i){return t.top-i.top||t.left-i.left}function $c(t,i,u){var l=t.display,f=t.doc,g=document.createDocumentFragment(),S=af(t.display),T=S.left,L=Math.max(l.sizerWidth,Oi(t)-l.sizer.offsetLeft)-S.right,V=f.direction=="ltr";function le(Xe,et,yt,ht){et<0&&(et=0),et=Math.round(et),ht=Math.round(ht),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Xe+`px;
|
|
18
|
-
top: `+
|
|
19
|
-
height: `+(
|
|
20
|
-
top: `+(i.top-u.viewOffset-
|
|
21
|
-
height: `+(i.bottom-i.top+
|
|
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 Yc(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?D(i.line,i.ch+1,"before"):i,i=i.ch?D(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var S=!1,T=$n(t,i),L=!u||u==i?T:$n(t,u);f={left:Math.min(T.left,L.left),top:Math.min(T.top,L.top)-l,right:Math.max(T.left,L.left),bottom:Math.max(T.bottom,L.bottom)+l};var V=Pl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(V.scrollTop!=null&&(go(t,V.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),V.scrollLeft!=null&&(ta(t,V.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function Jc(t,i){var u=Pl(t,i);u.scrollTop!=null&&go(t,u.scrollTop),u.scrollLeft!=null&&ta(t,u.scrollLeft)}function Pl(t,i){var u=t.display,l=Ia(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),L=i.top<l,V=i.bottom>T-l;if(i.top<f)S.scrollTop=L?0:i.top;else if(i.bottom>f+g){var le=Math.min(i.top,(V?T:i.bottom)-g);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,Se=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,me=Oi(t)-u.gutters.offsetWidth,Ie=i.right-i.left>me;return Ie&&(i.right=i.left+me),i.left<10?S.scrollLeft=0:i.left<Se?S.scrollLeft=Math.max(0,i.left+de-(Ie?0:10)):i.right>me+Se-3&&(S.scrollLeft=i.right+(Ie?0:10)-me),S}function Il(t,i){i!=null&&(As(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function Ra(t){As(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function vo(t,i,u){(i!=null||u!=null)&&As(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function Xc(t,i){As(t),t.curOp.scrollToPos=i}function As(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Ta(t,i.from),l=Ta(t,i.to);yf(t,u,l,i.margin)}}function yf(t,i,u,l){var f=Pl(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});vo(t,f.scrollLeft,f.scrollTop)}function go(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||Nl(t,{top:i}),bf(t,i,!0),d&&Nl(t),bo(t,100))}function bf(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 ta(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,Sf(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function mo(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+ii(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ra=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),fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),fe(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ra.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}},ra.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ra.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ra.prototype.zeroWidthHack=function(){var t=k&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pe,this.disableVert=new Pe},ra.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)},ra.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var La=function(){};La.prototype.update=function(){return{bottom:0,right:0}},La.prototype.setScrollLeft=function(){},La.prototype.setScrollTop=function(){},La.prototype.clear=function(){};function Ma(t,i){i||(i=mo(t));var u=t.display.barWidth,l=t.display.barHeight;kl(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&ws(t),kl(t,mo(t)),u=t.display.barWidth,l=t.display.barHeight}function kl(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 yo={native:ra,null:La};function Fl(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&z(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new yo[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),fe(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"?ta(t,i):go(t,i)},t),t.display.scrollbars.addClass&&je(t.display.wrapper,t.display.scrollbars.addClass)}var Qc=0;function na(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:++Qc,markArrays:null},Nc(t.curOp)}function ia(t){var i=t.curOp;i&&ef(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;aa(u)})}function aa(t){for(var i=t.ops,u=0;u<i.length;u++)Zc(i[u]);for(var l=0;l<i.length;l++)Kn(i[l]);for(var f=0;f<i.length;f++)_c(i[f]);for(var g=0;g<i.length;g++)qc(i[g]);for(var S=0;S<i.length;S++)Na(i[S])}function Zc(t){var i=t.cm,u=i.display;Cs(i),t.updateMaxLine&&ss(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 Da(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Kn(t){t.updatedDisplay=t.mustUpdate&&Ll(t.cm,t.update)}function _c(t){var i=t.cm,u=i.display;t.updatedDisplay&&ws(i),t.barMeasure=mo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=xl(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+ii(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-Oi(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function qc(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ta(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==ke(tt(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Ma(i,t.barMeasure),t.updatedDisplay&&Es(i,t.barMeasure),t.selectionChanged&&Ss(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&si(t.cm)}function Na(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&Ml(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&bf(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ta(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Yc(i,ft(l,t.scrollToPos.from),ft(l,t.scrollToPos.to),t.scrollToPos.margin);Kc(i,f)}var g=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(g)for(var T=0;T<g.length;++T)g[T].lines.length||Ve(g[T],"hide");if(S)for(var L=0;L<S.length;++L)S[L].lines.length&&Ve(S[L],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ve(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function tn(t,i){if(t.curOp)return i();na(t);try{return i()}finally{ia(t)}}function jr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);na(t);try{return i.apply(t,arguments)}finally{ia(t)}}}function rn(t){return function(){if(this.curOp)return t.apply(this,arguments);na(this);try{return t.apply(this,arguments)}finally{ia(this)}}}function Vr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);na(i);try{return t.apply(this,arguments)}finally{ia(i)}}}function bo(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Ne(ed,t))}function ed(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=to(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?In(i.mode,l.state):null,L=_o(t,g,l,!0);T&&(l.state=T),g.styles=L.styles;var V=g.styleClasses,le=L.classes;le?g.styleClasses=le:V&&(g.styleClasses=null);for(var de=!S||S.length!=g.styles.length||V!=le&&(!V||!le||V.bgClass!=le.bgClass||V.textClass!=le.textClass),Se=0;!de&&Se<S.length;++Se)de=S[Se]!=g.styles[Se];de&&f.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=t.options.maxHighlightLength&&il(t,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return bo(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&tn(t,function(){for(var g=0;g<f.length;g++)Gi(t,f[g],"text")})}}var Da=function(t,i,u){var l=t.display;this.viewport=i,this.visible=Fa(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Oi(t),this.force=u,this.dims=vs(t),this.events=[]};Da.prototype.signal=function(t,i){Mt(t,i)&&this.events.push(arguments)},Da.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ve.apply(null,this.events[t])};function Cs(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ii(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ii(t)+"px",i.scrollbarsClipped=!0)}function Rl(t){if(t.hasFocus())return null;var i=ke(tt(t));if(!i||!ye(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=bt(t).getSelection();l.anchorNode&&l.extend&&ye(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function td(t){if(!(!t||!t.activeElt||t.activeElt==ke(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ye(document.body,t.anchorNode)&&ye(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 Ll(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return Pi(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&&Ol(t)==0)return!1;wf(t)&&(Pi(t),i.dims=vs(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)),Ai&&(g=ul(t.doc,g),S=Qu(t.doc,S));var T=g!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;Gc(t,g,S),u.viewOffset=Ci(ut(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var L=Ol(t);if(!T&&L==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var V=Rl(t);return L>4&&(u.lineDiv.style.display="none"),xf(t,u.updateLineNumbers,i.dims),L>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,td(V),ce(u.cursorDiv),ce(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,T&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,bo(t,400)),u.updateLineNumbers=null,!0}function Ml(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==Oi(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+yl(t.display)-bl(t),u.top)}),i.visible=Fa(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=Fa(t.display,t.doc,u));if(!Ll(t,i))break;ws(t);var f=mo(t);po(t),Ma(t,f),Es(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 Nl(t,i){var u=new Da(t,i);if(Ll(t,u)){ws(t),Ml(t,u);var l=mo(t);po(t),Ma(t,l),Es(t,l),u.finish()}}function xf(t,i,u){var l=t.display,f=t.options.lineNumbers,g=l.lineDiv,S=g.firstChild;function T(Ie){var Me=Ie.nextSibling;return W&&k&&t.display.currentWheelTarget==Ie?Ie.style.display="none":Ie.parentNode.removeChild(Ie),Me}for(var L=l.view,V=l.viewFrom,le=0;le<L.length;le++){var de=L[le];if(!de.hidden)if(!de.node||de.node.parentNode!=g){var Se=nf(t,de,V,u);g.insertBefore(Se,S)}else{for(;S!=de.node;)S=T(S);var me=f&&i!=null&&i<=V&&de.lineNumber;de.changes&&(Te(de.changes,"gutter")>-1&&(me=!1),tf(t,de,V,u)),me&&(ce(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Aa(t.options,V)))),S=de.node.nextSibling}V+=de.size}for(;S;)S=T(S)}function xo(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Br(t,"gutterChanged",t)}function Es(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+ii(t)+"px"}function Sf(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=gs(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 L=0;L<T.length;L++)T[L].style.left=g}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function wf(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Aa(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",xo(t.display),!0}return!1}function Os(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 Dl(t){var i=t.gutters,u=t.gutterSpecs;ce(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",xo(t)}function So(t){Dl(t.display),dn(t),Sf(t)}function Af(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: "+Ye+"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"),ee&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),E&&F<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!W&&!(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=Os(l.gutters,l.lineNumbers),Dl(f),u.init(f)}var wo=0,Ii=null;E?Ii=-.53:d?Ii=15:ee?Ii=-.7:ae&&(Ii=-1/3);function Bl(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 Cf(t){var i=Bl(t);return i.x*=Ii,i.y*=Ii,i}function jl(t,i){ee&&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=Bl(i),l=u.x,f=u.y,g=Ii;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,g=1);var S=t.display,T=S.scroller,L=T.scrollWidth>T.clientWidth,V=T.scrollHeight>T.clientHeight;if(!!(l&&L||f&&V)){if(f&&k&&W){e:for(var le=i.target,de=S.view;le!=T;le=le.parentNode)for(var Se=0;Se<de.length;Se++)if(de[Se].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&g!=null){f&&V&&go(t,Math.max(0,T.scrollTop+f*g)),ta(t,Math.max(0,T.scrollLeft+l*g)),(!f||f&&V)&&Nt(i),S.wheelStartX=null;return}if(f&&g!=null){var me=f*g,Ie=t.doc.scrollTop,Me=Ie+S.wrapper.clientHeight;me<0?Ie=Math.max(0,Ie+me-50):Me=Math.min(t.doc.height,Me+me+50),Nl(t,{top:Ie,bottom:Me})}wo<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 $e=T.scrollLeft-S.wheelStartX,Qe=T.scrollTop-S.wheelStartY,_e=Qe&&S.wheelDY&&Qe/S.wheelDY||$e&&S.wheelDX&&$e/S.wheelDX;S.wheelStartX=S.wheelStartY=null,_e&&(Ii=(Ii*wo+_e)/(wo+1),++wo)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var On=function(t,i){this.ranges=t,this.primIndex=i};On.prototype.primary=function(){return this.ranges[this.primIndex]},On.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(!Re(u.anchor,l.anchor)||!Re(u.head,l.head))return!1}return!0},On.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new qt(Ge(this.ranges[i].anchor),Ge(this.ranges[i].head));return new On(t,this.primIndex)},On.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},On.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(oe(i,l.from())>=0&&oe(t,l.to())<=0)return u}return-1};var qt=function(t,i){this.anchor=t,this.head=i};qt.prototype.from=function(){return Ht(this.anchor,this.head)},qt.prototype.to=function(){return Pt(this.anchor,this.head)},qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yn(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(Se,me){return oe(Se.from(),me.from())}),u=Te(i,f);for(var g=1;g<i.length;g++){var S=i[g],T=i[g-1],L=oe(T.to(),S.from());if(l&&!S.empty()?L>0:L>=0){var V=Ht(T.from(),S.from()),le=Pt(T.to(),S.to()),de=T.empty()?S.from()==S.head:T.from()==T.head;g<=u&&--u,i.splice(--g,2,new qt(de?le:V,de?V:le))}}return new On(i,u)}function yn(t,i){return new On([new qt(t,i||t)],0)}function $i(t){return t.text?D(t.from.line+t.text.length-1,Je(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Ef(t,i){if(oe(t,i.from)<0)return t;if(oe(t,i.to)<=0)return $i(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+=$i(i).ch-i.to.ch),D(u,l)}function Vl(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new qt(Ef(f.anchor,i),Ef(f.head,i)))}return Yn(t.cm,u,t.sel.primIndex)}function Of(t,i,u){return t.line==i.line?D(u.line,t.ch-i.ch+u.ch):D(u.line+(t.line-i.line),t.ch)}function Ts(t,i,u){for(var l=[],f=D(t.first,0),g=f,S=0;S<i.length;S++){var T=i[S],L=Of(T.from,f,g),V=Of($i(T),f,g);if(f=T.to,g=V,u=="around"){var le=t.sel.ranges[S],de=oe(le.head,le.anchor)<0;l[S]=new qt(de?V:L,de?L:V)}else l[S]=new qt(L,L)}return new On(l,t.sel.primIndex)}function Ao(t){t.doc.mode=cn(t.options,t.doc.modeOption),Kr(t)}function Kr(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,bo(t,100),t.state.modeGen++,t.curOp&&dn(t)}function Ps(t,i){return i.from.ch==0&&i.to.ch==0&&Je(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Jn(t,i,u,l){function f(_e){return u?u[_e]:null}function g(_e,Xe,et){Mc(_e,Xe,et,l),Br(_e,"change",_e,i)}function S(_e,Xe){for(var et=[],yt=_e;yt<Xe;++yt)et.push(new Gn(V[yt],f(yt),l));return et}var T=i.from,L=i.to,V=i.text,le=ut(t,T.line),de=ut(t,L.line),Se=Je(V),me=f(V.length-1),Ie=L.line-T.line;if(i.full)t.insert(0,S(0,V.length)),t.remove(V.length,t.size-V.length);else if(Ps(t,i)){var Me=S(0,V.length-1);g(de,de.text,me),Ie&&t.remove(T.line,Ie),Me.length&&t.insert(T.line,Me)}else if(le==de)if(V.length==1)g(le,le.text.slice(0,T.ch)+Se+le.text.slice(L.ch),me);else{var $e=S(1,V.length-1);$e.push(new Gn(Se+le.text.slice(L.ch),me,l)),g(le,le.text.slice(0,T.ch)+V[0],f(0)),t.insert(T.line+1,$e)}else if(V.length==1)g(le,le.text.slice(0,T.ch)+V[0]+de.text.slice(L.ch),f(0)),t.remove(T.line+1,Ie);else{g(le,le.text.slice(0,T.ch)+V[0],f(0)),g(de,Se+de.text.slice(L.ch),me);var Qe=S(1,V.length-1);Ie>1&&t.remove(T.line+1,Ie-1),t.insert(T.line+1,Qe)}Br(t,"change",t,i)}function ki(t,i,u){function l(f,g,S){if(f.linked)for(var T=0;T<f.linked.length;++T){var L=f.linked[T];if(L.doc!=g){var V=S&&L.sharedHist;u&&!V||(i(L.doc,V),l(L.doc,f,V))}}}l(t,null,!0)}function Ul(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,ys(t),Ao(t),rd(t),t.options.direction=i.direction,t.options.lineWrapping||ss(t),t.options.mode=i.modeOption,dn(t)}function rd(t){(t.doc.direction=="rtl"?je:z)(t.display.lineDiv,"CodeMirror-rtl")}function Wl(t){tn(t,function(){rd(t),dn(t)})}function Co(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 Is(t,i){var u={from:Ge(i.from),to:$i(i),text:Si(t,i.from,i.to)};return Fi(t,u,i.from.line,i.to.line+1),ki(t,function(l){return Fi(l,u,i.from.line,i.to.line+1)},!0),u}function Sr(t){for(;t.length;){var i=Je(t);if(i.ranges)t.pop();else break}}function nd(t,i){if(i)return Sr(t.done),Je(t.done);if(t.done.length&&!Je(t.done).ranges)return Je(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Je(t.done)}function oa(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=nd(f,f.lastOp==l)))T=Je(S.changes),oe(i.from,i.to)==0&&oe(i.from,T.to)==0?T.to=$i(i):S.changes.push(Is(t,i));else{var L=Je(f.done);for((!L||!L.ranges)&&li(t.sel,f.done),S={changes:[Is(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||Ve(t,"historyAdded")}function id(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 Eo(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||id(t,g,Je(f.done),i))?f.done[f.done.length-1]=i:li(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=u,l&&l.clearRedo!==!1&&Sr(f.undone)}function li(t,i){var u=Je(i);u&&u.ranges&&u.equals(t)||i.push(t)}function Fi(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 ad(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 ks(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(ad(u[f]));return l}function Hl(t,i){var u=ks(t,i),l=rs(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 L=S[T],V=0;V<g.length;++V)if(g[V].marker==L.marker)continue e;g.push(L)}}else S&&(u[f]=S)}return u}function ui(t,i,u){for(var l=[],f=0;f<t.length;++f){var g=t[f];if(g.ranges){l.push(u?On.prototype.deepCopy.call(g):g);continue}var S=g.changes,T=[];l.push({changes:T});for(var L=0;L<S.length;++L){var V=S[L],le=void 0;if(T.push({from:V.from,to:V.to,text:V.text}),i)for(var de in V)(le=de.match(/^spans_(\d+)$/))&&Te(i,Number(le[1]))>-1&&(Je(T)[de]=V[de],delete V[de])}}return l}function Oo(t,i,u,l){if(l){var f=t.anchor;if(u){var g=oe(i,f)<0;g!=oe(u,f)<0?(f=i,i=u):g!=oe(i,u)<0&&(i=u)}return new qt(f,i)}else return new qt(u||i,i)}function Fs(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Yr(t,new On([Oo(t.sel.primary(),i,u,f)],0),l)}function Tf(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]=Oo(t.sel.ranges[g],i[g],null,f);var S=Yn(t.cm,l,t.sel.primIndex);Yr(t,S,u)}function zl(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Yr(t,Yn(t.cm,f,t.sel.primIndex),l)}function Pf(t,i,u,l){Yr(t,yn(i,u),l)}function od(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 qt(ft(t,f[g].anchor),ft(t,f[g].head))},origin:u&&u.origin};return Ve(t,"beforeSelectionChange",t,l),t.cm&&Ve(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?Yn(t.cm,l.ranges,l.ranges.length-1):i}function If(t,i,u){var l=t.history.done,f=Je(l);f&&f.ranges?(l[l.length-1]=i,Ba(t,i,u)):Yr(t,i,u)}function Yr(t,i,u){Ba(t,i,u),Eo(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Ba(t,i,u){(Mt(t,"beforeSelectionChange")||t.cm&&Mt(t.cm,"beforeSelectionChange"))&&(i=od(t,i,u));var l=u&&u.bias||(oe(i.primary().head,t.sel.primary().head)<0?-1:1);Rs(t,sd(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Ra(t.cm)}function Rs(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,vt(t.cm)),Br(t,"cursorActivity",t))}function kf(t){Rs(t,sd(t,t.sel,null,!1))}function sd(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],L=To(t,S.anchor,T&&T.anchor,u,l),V=S.head==S.anchor?L:To(t,S.head,T&&T.head,u,l);(f||L!=S.anchor||V!=S.head)&&(f||(f=i.ranges.slice(0,g)),f[g]=new qt(L,V))}return f?Yn(t.cm,f,i.primIndex):i}function ja(t,i,u,l,f){var g=ut(t,i.line);if(g.markedSpans)for(var S=0;S<g.markedSpans.length;++S){var T=g.markedSpans[S],L=T.marker,V="selectLeft"in L?!L.selectLeft:L.inclusiveLeft,le="selectRight"in L?!L.selectRight:L.inclusiveRight;if((T.from==null||(V?T.from<=i.ch:T.from<i.ch))&&(T.to==null||(le?T.to>=i.ch:T.to>i.ch))){if(f&&(Ve(L,"beforeCursorEnter"),L.explicitlyCleared))if(g.markedSpans){--S;continue}else break;if(!L.atomic)continue;if(u){var de=L.find(l<0?1:-1),Se=void 0;if((l<0?le:V)&&(de=nr(t,de,-l,de&&de.line==i.line?g:null)),de&&de.line==i.line&&(Se=oe(de,u))&&(l<0?Se<0:Se>0))return ja(t,de,i,l,f)}var me=L.find(l<0?-1:1);return(l<0?V:le)&&(me=nr(t,me,l,me.line==i.line?g:null)),me?ja(t,me,i,l,f):null}}return i}function To(t,i,u,l,f){var g=l||1,S=ja(t,i,u,g,f)||!f&&ja(t,i,u,g,!0)||ja(t,i,u,-g,f)||!f&&ja(t,i,u,-g,!0);return S||(t.cantEdit=!0,D(t.first,0))}function nr(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ft(t,D(i.line-1)):null:u>0&&i.ch==(l||ut(t,i.line)).text.length?i.line<t.first+t.size-1?D(i.line+1,0):null:new D(i.line,i.ch+u)}function Ff(t){t.setSelection(D(t.firstLine(),0),D(t.lastLine()),jt)}function Gl(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=ft(t,f)),g&&(l.to=ft(t,g)),S&&(l.text=S),T!==void 0&&(l.origin=T)}),Ve(t,"beforeChange",t,l),t.cm&&Ve(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 Va(t,i,u){if(t.cm){if(!t.cm.curOp)return jr(t.cm,Va)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((Mt(t,"beforeChange")||t.cm&&Mt(t.cm,"beforeChange"))&&(i=Gl(t,i,!0),!i))){var l=Gu&&!u&&ns(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)Po(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else Po(t,i)}}function Po(t,i){if(!(i.text.length==1&&i.text[0]==""&&oe(i.from,i.to)==0)){var u=Vl(t,i);oa(t,i,u,t.cm?t.cm.curOp.id:NaN),Io(t,i,u,rs(t,i));var l=[];ki(t,function(f,g){!g&&Te(l,f.history)==-1&&(Ms(f.history,i),l.push(f.history)),Io(f,i,null,rs(f,i))})}}function Ls(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,L=i=="undo"?f.undone:f.done,V=0;V<T.length&&(g=T[V],!(u?g.ranges&&!g.equals(t.sel):!g.ranges));V++);if(V!=T.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=T.pop(),g.ranges){if(li(g,L),u&&!g.equals(t.sel)){Yr(t,g,{clearRedo:!1});return}S=g}else if(l){T.push(g);return}else break;var le=[];li(S,L),L.push({changes:le,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var de=Mt(t,"beforeChange")||t.cm&&Mt(t.cm,"beforeChange"),Se=function(Me){var $e=g.changes[Me];if($e.origin=i,de&&!Gl(t,$e,!1))return T.length=0,{};le.push(Is(t,$e));var Qe=Me?Vl(t,$e):Je(T);Io(t,$e,Qe,Hl(t,$e)),!Me&&t.cm&&t.cm.scrollIntoView({from:$e.from,to:$i($e)});var _e=[];ki(t,function(Xe,et){!et&&Te(_e,Xe.history)==-1&&(Ms(Xe.history,$e),_e.push(Xe.history)),Io(Xe,$e,null,Hl(Xe,$e))})},me=g.changes.length-1;me>=0;--me){var Ie=Se(me);if(Ie)return Ie.v}}}}function Rf(t,i){if(i!=0&&(t.first+=i,t.sel=new On(Ct(t.sel.ranges,function(f){return new qt(D(f.anchor.line+i,f.anchor.ch),D(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){dn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Gi(t.cm,l,"gutter")}}function Io(t,i,u,l){if(t.cm&&!t.cm.curOp)return jr(t.cm,Io)(t,i,u,l);if(i.to.line<t.first){Rf(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);Rf(t,f),i={from:D(t.first,0),to:D(i.to.line+f,i.to.ch),text:[Je(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:D(g,ut(t,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Si(t,i.from,i.to),u||(u=Vl(t,i)),t.cm?ld(t.cm,i,l):Jn(t,i,l),Ba(t,u,jt),t.cantEdit&&To(t,D(t.firstLine(),0))&&(t.cantEdit=!1)}}function ld(t,i,u){var l=t.doc,f=t.display,g=i.from,S=i.to,T=!1,L=g.line;t.options.lineWrapping||(L=Zt(Gr(ut(l,g.line))),l.iter(L,S.line+1,function(me){if(me==f.maxLine)return T=!0,!0})),l.sel.contains(i.from,i.to)>-1&&vt(t),Jn(l,i,u,ms(t)),t.options.lineWrapping||(l.iter(L,g.line+i.text.length,function(me){var Ie=ao(me);Ie>f.maxLineLength&&(f.maxLine=me,f.maxLineLength=Ie,f.maxLineChanged=!0,T=!1)}),T&&(t.curOp.updateMaxLine=!0)),Rc(l,g.line),bo(t,400);var V=i.text.length-(S.line-g.line)-1;i.full?dn(t):g.line==S.line&&i.text.length==1&&!Ps(t.doc,i)?Gi(t,g.line,"text"):dn(t,g.line,S.line+1,V);var le=Mt(t,"changes"),de=Mt(t,"change");if(de||le){var Se={from:g,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Br(t,"change",t,Se),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Se)}t.display.selForContextMenu=null}function Ua(t,i,u,l,f){var g;l||(l=u),oe(l,u)<0&&(g=[l,u],u=g[0],l=g[1]),typeof i=="string"&&(i=t.splitLines(i)),Va(t,{from:u,to:l,text:i,origin:f})}function Lf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function $l(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++)Lf(g.ranges[T].anchor,i,u,l),Lf(g.ranges[T].head,i,u,l);continue}for(var L=0;L<g.changes.length;++L){var V=g.changes[L];if(u<V.from.line)V.from=D(V.from.line+l,V.from.ch),V.to=D(V.to.line+l,V.to.ch);else if(i<=V.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function Ms(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;$l(t.done,u,l,f),$l(t.undone,u,l,f)}function sa(t,i,u,l){var f=i,g=i;return typeof i=="number"?g=ut(t,rr(t,i)):f=Zt(i),f==null?null:(l(g,f)&&t.cm&&Gi(t.cm,f,u),g)}function ko(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}ko.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,Zu(f),Br(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 Fo(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}Fo.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 ko))){var T=[];this.collapse(T),this.children=[new ko(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 L=new ko(f.lines.slice(T,T+=25));f.height-=L.height,this.children.splice(++l,0,L),L.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 Fo(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=Te(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new Fo(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 Ro=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};Ro.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=Zt(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=lo(this);kn(u,Math.max(0,u.height-g)),t&&(tn(t,function(){Kl(t,u,-g),Gi(t,l,"widget")}),Br(t,"lineWidgetCleared",t,this,l))}},Ro.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=lo(this)-i;!f||(Hi(this.doc,l)||kn(l,l.height+f),u&&tn(u,function(){u.curOp.forceUpdate=!0,Kl(u,l,f),Br(u,"lineWidgetChanged",u,t,Zt(l))}))},pr(Ro);function Kl(t,i,u){Ci(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Il(t,u)}function Lo(t,i,u,l){var f=new Ro(t,u,l),g=t.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),sa(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&&!Hi(t,S)){var L=Ci(S)<t.scrollTop;kn(S,S.height+lo(f)),L&&Il(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&Br(g,"lineWidgetAdded",g,f,typeof i=="number"?i:Zt(i)),f}var Yl=0,bn=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Yl};bn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&na(t),Mt(this,"clear")){var u=this.find();u&&Br(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=ro(S.markedSpans,this);t&&!this.collapsed?Gi(t,Zt(S),"text"):t&&(T.to!=null&&(f=Zt(S)),T.from!=null&&(l=Zt(S))),S.markedSpans=Ku(S.markedSpans,T),T.from==null&&this.collapsed&&!Hi(this.doc,S)&&t&&kn(S,Ia(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var L=0;L<this.lines.length;++L){var V=Gr(this.lines[L]),le=ao(V);le>t.display.maxLineLength&&(t.display.maxLine=V,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&dn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&kf(t.doc)),t&&Br(t,"markerCleared",t,this,l,f),i&&ia(t),this.parent&&this.parent.clear()}},bn.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=ro(g.markedSpans,this);if(S.from!=null&&(u=D(i?g:Zt(g),S.from),t==-1))return u;if(S.to!=null&&(l=D(i?g:Zt(g),S.to),t==1))return l}return u&&{from:u,to:l}},bn.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||tn(l,function(){var f=i.line,g=Zt(i.line),S=Sl(l,g);if(S&&(cf(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Hi(u.doc,f)&&u.height!=null){var T=u.height;u.height=null;var L=lo(u)-T;L&&kn(f,f.height+L)}Br(l,"markerChanged",l,t)})},bn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Te(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},bn.prototype.detachLine=function(t){if(this.lines.splice(Te(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(bn);function Wa(t,i,u,l,f){if(l&&l.shared)return ud(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return jr(t.cm,Wa)(t,i,u,l,f);var g=new bn(t,f),S=oe(i,u);if(l&&Oe(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(zn(t,i.line,i,u,g)||i.line!=u.line&&zn(t,u.line,i,u,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lc()}g.addToHistory&&oa(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var T=i.line,L=t.cm,V;if(t.iter(T,u.line+1,function(de){L&&g.collapsed&&!L.options.lineWrapping&&Gr(de)==L.display.maxLine&&(V=!0),g.collapsed&&T!=i.line&&kn(de,0),al(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){Hi(t,de)&&kn(de,0)}),g.clearOnEnter&&fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&($u(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++Yl,g.atomic=!0),L){if(V&&(L.curOp.updateMaxLine=!0),g.collapsed)dn(L,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++)Gi(L,le,"text");g.atomic&&kf(L.doc),Br(L,"markerAdded",L,g)}return g}var Ha=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Ha.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Br(this,"clear")}},Ha.prototype.find=function(t,i){return this.primary.find(t,i)},pr(Ha);function ud(t,i,u,l,f){l=Oe(l),l.shared=!1;var g=[Wa(t,i,u,l,f)],S=g[0],T=l.widgetNode;return ki(t,function(L){T&&(l.widgetNode=T.cloneNode(!0)),g.push(Wa(L,ft(L,i),ft(L,u),l,f));for(var V=0;V<L.linked.length;++V)if(L.linked[V].isParent)return;S=Je(g)}),new Ha(g,S)}function Jl(t){return t.findMarks(D(t.first,0),t.clipPos(D(t.lastLine())),function(i){return i.parent})}function fd(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(oe(g,S)){var T=Wa(t,g,S,l.primary,l.primary.type);l.markers.push(T),T.parent=l}}}function Mf(t){for(var i=function(l){var f=t[l],g=[f.primary.doc];ki(f.primary.doc,function(L){return g.push(L)});for(var S=0;S<f.markers.length;S++){var T=f.markers[S];Te(g,T.doc)==-1&&(T.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Ns=0,pn=function(t,i,u,l,f){if(!(this instanceof pn))return new pn(t,i,u,l,f);u==null&&(u=0),Fo.call(this,[new ko([new Gn("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var g=D(u,0);this.sel=yn(g),this.history=new Co(null),this.id=++Ns,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Jn(this,{from:g,to:g,text:t}),Yr(this,yn(g),jt)};pn.prototype=Er(Fo.prototype,{constructor:pn,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=Ui(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Vr(function(t){var i=D(this.first,0),u=this.first+this.size-1;Va(this,{from:i,to:D(u,ut(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&vo(this.cm,0,0),Yr(this,yn(i),jt)}),replaceRange:function(t,i,u,l){i=ft(this,i),u=u?ft(this,u):i,Ua(this,t,i,u,l)},getRange:function(t,i,u){var l=Si(this,ft(this,t),ft(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(qi(this,t))return ut(this,t)},getLineNumber:function(t){return Zt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ut(this,t)),Gr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ft(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:Vr(function(t,i,u){Pf(this,ft(this,typeof t=="number"?D(t,i||0):t),null,u)}),setSelection:Vr(function(t,i,u){Pf(this,ft(this,t),ft(this,i||t),u)}),extendSelection:Vr(function(t,i,u){Fs(this,ft(this,t),i&&ft(this,i),u)}),extendSelections:Vr(function(t,i){Tf(this,eo(this,t),i)}),extendSelectionsBy:Vr(function(t,i){var u=Ct(this.sel.ranges,t);Tf(this,eo(this,u),i)}),setSelections:Vr(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new qt(ft(this,t[f].anchor),ft(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Yr(this,Yn(this.cm,l,i),u)}}),addSelection:Vr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new qt(ft(this,t),ft(this,i||t))),Yr(this,Yn(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=Si(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=Si(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:Vr(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"&&Ts(this,l,i),L=l.length-1;L>=0;L--)Va(this,l[L]);T?If(this,T):this.cm&&Ra(this.cm)}),undo:Vr(function(){Ls(this,"undo")}),redo:Vr(function(){Ls(this,"redo")}),undoSelection:Vr(function(){Ls(this,"undo",!0)}),redoSelection:Vr(function(){Ls(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 Co(this.history),ki(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:ui(this.history.done),undone:ui(this.history.undone)}},setHistory:function(t){var i=this.history=new Co(this.history);i.done=ui(t.done.slice(0),null,!0),i.undone=ui(t.undone.slice(0),null,!0)},setGutterMarker:Vr(function(t,i,u){return sa(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&_r(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Vr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&sa(i,u,"gutter",function(){return u.gutterMarkers[t]=null,_r(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!qi(this,t)||(i=t,t=ut(this,t),!t))return null}else if(i=Zt(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:Vr(function(t,i,u){return sa(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:Vr(function(t,i,u){return sa(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:Vr(function(t,i,u){return Lo(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Wa(this,ft(this,t),ft(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=ft(this,t),Wa(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ft(this,t);var i=[],u=ut(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=ft(this,t),i=ft(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 L=S[T];!(L.to!=null&&f==t.line&&t.ch>=L.to||L.from==null&&f!=t.line||L.from!=null&&f==i.line&&L.from>=i.ch)&&(!u||u(L.marker))&&l.push(L.marker.parent||L.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}),ft(this,D(u,i))},indexFromPos:function(t){t=ft(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 pn(Ui(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 pn(Ui(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}],fd(l,Jl(this)),l},unlinkDoc:function(t){if(t instanceof mr&&(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),Mf(Jl(this));break}}if(t.history==this.history){var l=[t.id];ki(t,function(f){return l.push(f.id)},!0),t.history=new Co(null),t.history.done=ui(this.history.done,l),t.history.undone=ui(this.history.undone,l)}},iterLinkedDocs:function(t){ki(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Un(t)},lineSeparator:function(){return this.lineSep||`
|
|
23
|
-
`},setDirection:Vr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Wl(this.cm))})}),pn.prototype.eachLine=pn.prototype.iter;var Mo=0;function Xl(t){var i=this;if(Nf(i),!(lt(i,t)||En(i.display,t))){Nt(t),E&&(Mo=+new Date);var u=zi(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&&jr(i,function(){u=ft(i.doc,u);var me={from:u,to:u,text:i.doc.splitLines(g.filter(function(Ie){return Ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};Va(i.doc,me),If(i.doc,yn(ft(i.doc,u),ft(i.doc,$i(me))))})()},L=function(me,Ie){if(i.options.allowDropFileTypes&&Te(i.options.allowDropFileTypes,me.type)==-1){T();return}var Me=new FileReader;Me.onerror=function(){return T()},Me.onload=function(){var $e=Me.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($e)){T();return}g[Ie]=$e,T()},Me.readAsText(me)},V=0;V<l.length;V++)L(l[V],V);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()),Ba(i.doc,yn(u,u)),de)for(var Se=0;Se<de.length;++Se)Ua(i.doc,"",de[Se].anchor,de[Se].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(me){}}}}function cd(t,i){if(E&&(!t.state.draggingText||+new Date-Mo<100)){Hr(i);return}if(!(lt(t,i)||En(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ae)){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 dd(t,i){var u=zi(t,i);if(!!u){var l=document.createDocumentFragment();bs(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 Nf(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Ql(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 Zl=!1;function pd(){Zl||(hd(),Zl=!0)}function hd(){var t;fe(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Ql(vd)},100))}),fe(window,"blur",function(){return Ql(ka)})}function vd(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Ki={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"},No=0;No<10;No++)Ki[No+48]=Ki[No+96]=String(No);for(var Ds=65;Ds<=90;Ds++)Ki[Ds]=String.fromCharCode(Ds);for(var za=1;za<=12;za++)Ki[za+111]=Ki[za+63235]="F"+za;var Ri={};Ri.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"},Ri.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"},Ri.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"},Ri.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"]},Ri.default=k?Ri.macDefault:Ri.pcDefault;function _l(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 Df(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=Ct(u.split(" "),_l),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 L=i[T];if(!L)i[T]=S;else if(L!=S)throw new Error("Inconsistent bindings for "+T)}delete t[u]}for(var V in i)t[V]=i[V];return t}function Ga(t,i,u,l){i=Bs(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 Ga(t,i.fallthrough,u,l);for(var g=0;g<i.fallthrough.length;g++){var S=Ga(t,i.fallthrough[g],u,l);if(S)return S}}}function la(t){var i=typeof t=="string"?t:Ki[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function fi(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(U?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(U?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function ql(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Ki[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),fi(u,t,i))}function Bs(t){return typeof t=="string"?Ri[t]:t}function $a(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var g=i(u[f]);l.length&&oe(g.from,Je(l).to)<=0;){var S=l.pop();if(oe(S.from,g.from)<0){g.from=S.from;break}}l.push(g)}tn(t,function(){for(var T=l.length-1;T>=0;T--)Ua(t.doc,"",l[T].from,l[T].to,"+delete");Ra(t)})}function eu(t,i,u){var l=Lt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function js(t,i,u){var l=eu(t,i.ch,u);return l==null?null:new D(i.line,l,u<0?"after":"before")}function tu(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var g=st(u,i.doc.direction);if(g){var S=f<0?Je(g):g[0],T=f<0==(S.level==1),L=T?"after":"before",V;if(S.level>0||i.doc.direction=="rtl"){var le=Ti(i,u);V=f<0?u.text.length-1:0;var de=ai(i,le,V).top;V=Ot(function(Se){return ai(i,le,Se).top==de},f<0==(S.level==1)?S.from:S.to-1,V),L=="before"&&(V=eu(u,V,1))}else V=f<0?S.to:S.from;return new D(l,V,L)}}return new D(l,f<0?u.text.length:0,f<0?"before":"after")}function Bf(t,i,u,l){var f=st(i,t.doc.direction);if(!f)return js(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=mt(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 js(i,u,l);var T=function(Qe,_e){return eu(i,Qe instanceof D?Qe.ch:Qe,_e)},L,V=function(Qe){return t.options.lineWrapping?(L=L||Ti(t,i),pf(t,i,L,Qe)):{begin:0,end:i.text.length}},le=V(u.sticky=="before"?T(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,Se=T(u,de?1:-1);if(Se!=null&&(de?Se<=S.to&&Se<=le.end:Se>=S.from&&Se>=le.begin)){var me=de?"before":"after";return new D(u.line,Se,me)}}var Ie=function(Qe,_e,Xe){for(var et=function(fr,Wt){return Wt?new D(u.line,T(fr,1),"before"):new D(u.line,fr,"after")};Qe>=0&&Qe<f.length;Qe+=_e){var yt=f[Qe],ht=_e>0==(yt.level!=1),Bt=ht?Xe.begin:T(Xe.end,-1);if(yt.from<=Bt&&Bt<yt.to||(Bt=ht?yt.from:T(yt.to,-1),Xe.begin<=Bt&&Bt<Xe.end))return et(Bt,ht)}},Me=Ie(g+l,l,le);if(Me)return Me;var $e=l>0?le.end:T(le.begin,-1);return $e!=null&&!(l>0&&$e==i.text.length)&&(Me=Ie(l>0?0:f.length-1,l,V($e)),Me)?Me:null}var ua={selectAll:Ff,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),jt)},killLine:function(t){return $a(t,function(i){if(i.empty()){var u=ut(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:D(i.head.line+1,0)}:{from:i.head,to:D(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return $a(t,function(i){return{from:D(i.from().line,0),to:ft(t.doc,D(i.to().line+1,0))}})},delLineLeft:function(t){return $a(t,function(i){return{from:D(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return $a(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 $a(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(D(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(D(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return ru(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Vf(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return jf(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")},it)},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")},it)},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/)?Vf(t,i.head):l},it)},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=He(t.getLine(g.line),g.ch,l);i.push(or(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return tn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,g=ut(t.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new D(f.line,f.ch-1)),f.ch>0)f=new D(f.line,f.ch+1),t.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),D(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=ut(t.doc,f.line-1).text;S&&(f=new D(f.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),D(f.line-1,S.length-1),f,"+transpose"))}}u.push(new qt(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return tn(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);Ra(t)})},openLine:function(t){return t.replaceSelection(`
|
|
24
|
-
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ru(t,i){var u=ut(t.doc,i),l=Gr(u);return l!=u&&(i=Zt(l)),tu(!0,t,l,i,1)}function jf(t,i){var u=ut(t.doc,i),l=mn(u);return l!=u&&(i=Zt(l)),tu(!0,t,u,i,-1)}function Vf(t,i){var u=ru(t,i.line),l=ut(t.doc,u.line),f=st(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 D(u.line,S?0:g,u.sticky)}return u}function Do(t,i,u){if(typeof i=="string"&&(i=ua[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)!=at}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function gd(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=Ga(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&Ga(i,t.options.extraKeys,u,t)||Ga(i,t.options.keyMap,u,t)}var nu=new Pe;function fa(t,i,u,l){var f=t.state.keySeq;if(f){if(la(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:nu.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),iu(t,f+" "+i,u,l))return!0}return iu(t,i,u,l)}function iu(t,i,u,l){var f=gd(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Br(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(Nt(u),Ss(t)),!!f}function au(t,i){var u=ql(i,!0);return u?i.shiftKey&&!t.state.keySeq?fa(t,"Shift-"+u,i,function(l){return Do(t,l,!0)})||fa(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Do(t,l)}):fa(t,u,i,function(l){return Do(t,l)}):!1}function md(t,i,u){return fa(t,"'"+u+"'",i,function(l){return Do(t,l,!0)})}var ou=null;function Vs(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=ke(tt(i)),!lt(i,t))){E&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=au(i,t);ne&&(ou=l?u:null,!l&&u==88&&!_i&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&yd(i)}}function yd(t){var i=t.display.lineDiv;je(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(z(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}fe(document,"keyup",u),fe(document,"mouseover",u)}function Uf(t){t.keyCode==16&&(this.doc.sel.shift=!1),lt(this,t)}function Wf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(En(i.display,t)||lt(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==ou){ou=null,Nt(t);return}if(!(ne&&(!t.which||t.which<10)&&au(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(md(i,t,f)||i.display.input.onKeyPress(t))}}}var bd=400,su=function(t,i,u){this.time=t,this.pos=i,this.button=u};su.prototype.compare=function(t,i,u){return this.time+bd>t&&oe(i,this.pos)==0&&u==this.button};var Bo,ca;function Us(t,i){var u=+new Date;return ca&&ca.compare(u,t,i)?(Bo=ca=null,"triple"):Bo&&Bo.compare(u,t,i)?(ca=new su(u,t,i),Bo=null,"double"):(Bo=new su(u,t,i),ca=null,"single")}function lu(t){var i=this,u=i.display;if(!(lt(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,En(u,t)){W||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ka(i,t)){var l=zi(i,t),f=bi(t),g=l?Us(l,f):"single";bt(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Hf(i,f,l,g,t))&&(f==1?l?Sd(i,l,g,t):zr(t)==u.scroller&&Nt(t):f==2?(l&&Fs(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(re?i.display.input.onContextMenu(t):Tl(i)))}}}function Hf(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,fa(t,fi(g,f),f,function(S){if(typeof S=="string"&&(S=ua[S]),!S)return!1;var T=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),T=S(t,u)!=at}finally{t.state.suppressEdits=!1}return T})}function xd(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var g=j?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=k?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(k?u.altKey:u.ctrlKey)),f}function Sd(t,i,u,l){E?setTimeout(Ne(si,t),0):t.curOp.focus=ke(tt(t));var f=xd(t,u,l),g=t.doc.sel,S;t.options.dragDrop&&qr&&!t.isReadOnly()&&u=="single"&&(S=g.contains(i))>-1&&(oe((S=g.ranges[S]).from(),i)<0||i.xRel>0)&&(oe(S.to(),i)>0||i.xRel<0)?da(t,l,i,f):zf(t,l,i,f)}function da(t,i,u,l){var f=t.display,g=!1,S=jr(t,function(V){W&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Tl(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",T),Be(f.scroller,"dragstart",L),Be(f.scroller,"drop",S),g||(Nt(V),l.addNew||Fs(t.doc,u,null,null,l.extend),W&&!ae||E&&F==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),T=function(V){g=g||Math.abs(i.clientX-V.clientX)+Math.abs(i.clientY-V.clientY)>=10},L=function(){return g=!0};W&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,fe(f.wrapper.ownerDocument,"mouseup",S),fe(f.wrapper.ownerDocument,"mousemove",T),fe(f.scroller,"dragstart",L),fe(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function uu(t,i,u){if(u=="char")return new qt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new qt(D(i.line,0),ft(t.doc,D(i.line+1,0)));var l=u(t,i);return new qt(l.from,l.to)}function zf(t,i,u,l){E&&Tl(t);var f=t.display,g=t.doc;Nt(i);var S,T,L=g.sel,V=L.ranges;if(l.addNew&&!l.extend?(T=g.sel.contains(u),T>-1?S=V[T]:S=new qt(u,u)):(S=g.sel.primary(),T=g.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new qt(u,u)),u=zi(t,i,!0,!0),T=-1;else{var le=uu(t,u,l.unit);l.extend?S=Oo(S,le.anchor,le.head,l.extend):S=le}l.addNew?T==-1?(T=V.length,Yr(g,Yn(t,V.concat([S]),T),{scroll:!1,origin:"*mouse"})):V.length>1&&V[T].empty()&&l.unit=="char"&&!l.extend?(Yr(g,Yn(t,V.slice(0,T).concat(V.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),L=g.sel):zl(g,T,S,rt):(T=0,Yr(g,new On([S],0),rt),L=g.sel);var de=u;function Se(Xe){if(oe(de,Xe)!=0)if(de=Xe,l.unit=="rectangle"){for(var et=[],yt=t.options.tabSize,ht=He(ut(g,u.line).text,u.ch,yt),Bt=He(ut(g,Xe.line).text,Xe.ch,yt),fr=Math.min(ht,Bt),Wt=Math.max(ht,Bt),wr=Math.min(u.line,Xe.line),xn=Math.min(t.lastLine(),Math.max(u.line,Xe.line));wr<=xn;wr++){var M=ut(g,wr).text,Dt=Ft(M,fr,yt);fr==Wt?et.push(new qt(D(wr,Dt),D(wr,Dt))):M.length>Dt&&et.push(new qt(D(wr,Dt),D(wr,Ft(M,Wt,yt))))}et.length||et.push(new qt(u,u)),Yr(g,Yn(t,L.ranges.slice(0,T).concat(et),T),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Xe)}else{var St=S,Ir=uu(t,Xe,l.unit),vr=St.anchor,Cr;oe(Ir.anchor,vr)>0?(Cr=Ir.head,vr=Ht(St.from(),Ir.anchor)):(Cr=Ir.anchor,vr=Pt(St.to(),Ir.head));var br=L.ranges.slice(0);br[T]=Gf(t,new qt(ft(g,vr),Cr)),Yr(g,Yn(t,br,T),rt)}}var me=f.wrapper.getBoundingClientRect(),Ie=0;function Me(Xe){var et=++Ie,yt=zi(t,Xe,!0,l.unit=="rectangle");if(!!yt)if(oe(yt,de)!=0){t.curOp.focus=ke(tt(t)),Se(yt);var ht=Fa(f,g);(yt.line>=ht.to||yt.line<ht.from)&&setTimeout(jr(t,function(){Ie==et&&Me(Xe)}),150)}else{var Bt=Xe.clientY<me.top?-20:Xe.clientY>me.bottom?20:0;Bt&&setTimeout(jr(t,function(){Ie==et&&(f.scroller.scrollTop+=Bt,Me(Xe))}),50)}}function $e(Xe){t.state.selectingText=!1,Ie=1/0,Xe&&(Nt(Xe),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Qe),Be(f.wrapper.ownerDocument,"mouseup",_e),g.history.lastSelOrigin=null}var Qe=jr(t,function(Xe){Xe.buttons===0||!bi(Xe)?$e(Xe):Me(Xe)}),_e=jr(t,$e);t.state.selectingText=_e,fe(f.wrapper.ownerDocument,"mousemove",Qe),fe(f.wrapper.ownerDocument,"mouseup",_e)}function Gf(t,i){var u=i.anchor,l=i.head,f=ut(t.doc,u.line);if(oe(u,l)==0&&u.sticky==l.sticky)return i;var g=st(f);if(!g)return i;var S=mt(g,u.ch,u.sticky),T=g[S];if(T.from!=u.ch&&T.to!=u.ch)return i;var L=S+(T.from==u.ch==(T.level!=1)?0:1);if(L==0||L==g.length)return i;var V;if(l.line!=u.line)V=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=mt(g,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(T.level==1?-1:1);le==L-1||le==L?V=de<0:V=de>0}var Se=g[L+(V?-1:0)],me=V==(Se.level==1),Ie=me?Se.from:Se.to,Me=me?"after":"before";return u.ch==Ie&&u.sticky==Me?i:new qt(new D(u.line,Ie,Me),l)}function wd(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(Se){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||!Mt(t,u))return yi(i);g-=T.top-S.viewOffset;for(var L=0;L<t.display.gutterSpecs.length;++L){var V=S.gutters.childNodes[L];if(V&&V.getBoundingClientRect().right>=f){var le=wi(t.doc,g),de=t.display.gutterSpecs[L];return Ve(t,u,t,le,de.className,i),yi(i)}}}function Ka(t,i){return wd(t,i,"gutterClick",!0)}function $f(t,i){En(t.display,i)||Kf(t,i)||lt(t,i,"contextmenu")||re||t.display.input.onContextMenu(i)}function Kf(t,i){return Mt(t,"gutterContextMenu")?wd(t,i,"gutterContextMenu",!1):!1}function Yf(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),uo(t)}var Ya={toString:function(){return"CodeMirror.Init"}},fu={},jo={};function Jf(t){var i=t.optionHandlers;function u(l,f,g,S){t.defaults[l]=f,g&&(i[l]=S?function(T,L,V){V!=Ya&&g(T,L,V)}:g)}t.defineOption=u,t.Init=Ya,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ao(l)},!0),u("indentUnit",2,Ao,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Kr(l),uo(l),dn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var g=[],S=l.doc.first;l.doc.iter(function(L){for(var V=0;;){var le=L.text.indexOf(f,V);if(le==-1)break;V=le+f.length,g.push(D(S,le))}S++});for(var T=g.length-1;T>=0;T--)Ua(l.doc,f,g[T],D(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!=Ya&&l.refresh()}),u("specialCharPlaceholder",_u,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",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Yf(l),So(l)},!0),u("keyMap","default",function(l,f,g){var S=Bs(f),T=g!=Ya&&Bs(g);T&&T.detach&&T.detach(l,S),S.attach&&S.attach(l,T||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Xf,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Os(f,l.options.lineNumbers),So(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?gs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Ma(l)},!0),u("scrollbarStyle","native",function(l){Fl(l),Ma(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=Os(l.options.gutters,f),So(l)},!0),u("firstLineNumber",1,So,!0),u("lineNumberFormatter",function(l){return l},So,!0),u("showCursorWhenSelecting",!1,po,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(ka(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,Ad),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,po,!0),u("singleCursorHeightPerLine",!0,po,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Kr,!0),u("addModeClass",!1,Kr,!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,Kr,!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 Ad(t,i,u){var l=u&&u!=Ya;if(!i!=!l){var f=t.display.dragFunctions,g=i?fe: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 Xf(t){t.options.lineWrapping?(je(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(z(t.display.wrapper,"CodeMirror-wrap"),ss(t)),ys(t),dn(t),uo(t),setTimeout(function(){return Ma(t)},100)}function mr(t,i){var u=this;if(!(this instanceof mr))return new mr(t,i);this.options=i=i?Oe(i):{},Oe(fu,i,!1);var l=i.value;typeof l=="string"?l=new pn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new mr.inputStyles[i.inputStyle](this),g=this.display=new Af(t,l,f,i);g.wrapper.CodeMirror=this,Yf(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fl(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 Pe,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),E&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Vo(this),pd(),na(this),this.curOp.forceUpdate=!0,Ul(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&ho(u)},20):ka(this);for(var S in jo)jo.hasOwnProperty(S)&&jo[S](this,i[S],Ya);wf(this),i.finishInit&&i.finishInit(this);for(var T=0;T<cu.length;++T)cu[T](this);ia(this),W&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}mr.defaults=fu,mr.optionHandlers=jo;function Vo(t){var i=t.display;fe(i.scroller,"mousedown",jr(t,lu)),E&&F<11?fe(i.scroller,"dblclick",jr(t,function(L){if(!lt(t,L)){var V=zi(t,L);if(!(!V||Ka(t,L)||En(t.display,L))){Nt(L);var le=t.findWordAt(V);Fs(t.doc,le.anchor,le.head)}}})):fe(i.scroller,"dblclick",function(L){return lt(t,L)||Nt(L)}),fe(i.scroller,"contextmenu",function(L){return $f(t,L)}),fe(i.input.getField(),"contextmenu",function(L){i.scroller.contains(L.target)||$f(t,L)});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(L){if(L.touches.length!=1)return!1;var V=L.touches[0];return V.radiusX<=1&&V.radiusY<=1}function S(L,V){if(V.left==null)return!0;var le=V.left-L.left,de=V.top-L.top;return le*le+de*de>20*20}fe(i.scroller,"touchstart",function(L){if(!lt(t,L)&&!g(L)&&!Ka(t,L)){i.input.ensurePolled(),clearTimeout(u);var V=+new Date;i.activeTouch={start:V,moved:!1,prev:V-l.end<=300?l:null},L.touches.length==1&&(i.activeTouch.left=L.touches[0].pageX,i.activeTouch.top=L.touches[0].pageY)}}),fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),fe(i.scroller,"touchend",function(L){var V=i.activeTouch;if(V&&!En(i,L)&&V.left!=null&&!V.moved&&new Date-V.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!V.prev||S(V,V.prev)?de=new qt(le,le):!V.prev.prev||S(V,V.prev.prev)?de=t.findWordAt(le):de=new qt(D(le.line,0),ft(t.doc,D(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),Nt(L)}f()}),fe(i.scroller,"touchcancel",f),fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(go(t,i.scroller.scrollTop),ta(t,i.scroller.scrollLeft,!0),Ve(t,"scroll",t))}),fe(i.scroller,"mousewheel",function(L){return jl(t,L)}),fe(i.scroller,"DOMMouseScroll",function(L){return jl(t,L)}),fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(L){lt(t,L)||Hr(L)},over:function(L){lt(t,L)||(dd(t,L),Hr(L))},start:function(L){return cd(t,L)},drop:jr(t,Xl),leave:function(L){lt(t,L)||Nf(t)}};var T=i.input.getField();fe(T,"keyup",function(L){return Uf.call(t,L)}),fe(T,"keydown",jr(t,Vs)),fe(T,"keypress",jr(t,Wf)),fe(T,"focus",function(L){return ho(t,L)}),fe(T,"blur",function(L){return ka(t,L)})}var cu=[];mr.defineInitHook=function(t){return cu.push(t)};function pa(t,i,u,l){var f=t.doc,g;u==null&&(u="add"),u=="smart"&&(f.mode.indent?g=to(t,i).state:u="prev");var S=t.options.tabSize,T=ut(f,i),L=He(T.text,null,S);T.stateAfter&&(T.stateAfter=null);var V=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(V.length),T.text),le==at||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=He(ut(f,i-1).text,null,S):le=0:u=="add"?le=L+t.options.indentUnit:u=="subtract"?le=L-t.options.indentUnit:typeof u=="number"&&(le=L+u),le=Math.max(0,le);var de="",Se=0;if(t.options.indentWithTabs)for(var me=Math.floor(le/S);me;--me)Se+=S,de+=" ";if(Se<le&&(de+=or(le-Se)),de!=V)return Ua(f,de,D(i,0),D(i,V.length),"+input"),T.stateAfter=null,!0;for(var Ie=0;Ie<f.sel.ranges.length;Ie++){var Me=f.sel.ranges[Ie];if(Me.head.line==i&&Me.head.ch<V.length){var $e=D(i,V.length);zl(f,Ie,new qt($e,$e));break}}}var Xn=null;function Ws(t){Xn=t}function Ja(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,L=Un(i),V=null;if(T&&l.ranges.length>1)if(Xn&&Xn.text.join(`
|
|
25
|
-
`)==i){if(l.ranges.length%
|
|
26
|
-
`)==
|
|
27
|
-
`)&&(Ie=Me=D(Ie.line,0)));var $e={from:Ie,to:Me,text:V?V[Se%V.length]:L,origin:f||(T?"paste":t.state.cutIncoming>S?"cut":"+input")};Va(t.doc,$e),Br(t,"inputRead",t,$e)}i&&!T&&Cd(t,i),Ra(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Qf(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&tn(i,function(){return Ja(i,u,0,null,"paste")}),!0}function Cd(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=pa(t,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(ut(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=pa(t,f.head.line,"smart"));S&&Br(t,"electricInput",t,f.head.line)}}}function Zf(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:D(f,0),head:D(f+1,0)};u.push(g),i.push(t.getRange(g.anchor,g.head))}return{text:i,ranges:u}}function _f(t,i,u,l){t.setAttribute("autocorrect",u?"":"off"),t.setAttribute("autocapitalize",l?"":"off"),t.setAttribute("spellcheck",!!i)}function du(){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 W?t.style.width="1000px":t.setAttribute("wrap","off"),G&&(t.style.border="1px solid black"),_f(t),i}function Ed(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){bt(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)&&jr(this,i[l])(this,f,S),Ve(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"](Bs(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:rn(function(l,f){var g=l.token?l:t.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");ze(this.state.overlays,{mode:g,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,dn(this)}),removeOverlay:rn(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++,dn(this);return}}}),indentLine:rn(function(l,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),qi(this.doc,l)&&pa(this,l,f,g)}),indentSelection:rn(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&&(pa(this,T.head.line,l,!0),g=T.head.line,S==this.doc.sel.primIndex&&Ra(this));else{var L=T.from(),V=T.to(),le=Math.max(g,L.line);g=Math.min(this.lastLine(),V.line-(V.ch?0:1))+1;for(var de=le;de<g;++de)pa(this,de,l);var Se=this.doc.sel.ranges;L.ch==0&&f.length==Se.length&&Se[S].from().ch>0&&zl(this.doc,S,new qt(L,Se[S].to()),jt)}}}),getTokenAt:function(l,f){return Uu(this,l,f)},getLineTokens:function(l,f){return Uu(this,D(l),f,!0)},getTokenTypeAt:function(l){l=ft(this.doc,l);var f=Bu(this,ut(this.doc,l.line)),g=0,S=(f.length-1)/2,T=l.ch,L;if(T==0)L=f[2];else for(;;){var V=g+S>>1;if((V?f[V*2-1]:0)>=T)S=V;else if(f[V*2+1]<T)g=V+1;else{L=f[V*2+2];break}}var le=L?L.indexOf("overlay "):-1;return le<0?L:le==0?null:L.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 L=0;L<T[f].length;L++){var V=S[T[f][L]];V&&g.push(V)}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)&&Te(g,de.val)==-1&&g.push(de.val)}return g},getStateAfter:function(l,f){var g=this.doc;return l=rr(g,l==null?g.first+g.size-1:l),to(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=ft(this.doc,l):g=l?S.from():S.to(),$n(this,g,f||"page")},charCoords:function(l,f){return ds(this,ft(this.doc,l),f||"page")},coordsChar:function(l,f){return l=df(this,l,f||"page"),ps(this,l.left,l.top)},lineAtHeight:function(l,f){return l=df(this,{top:l,left:0},f||"page").top,wi(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,g){var S=!1,T;if(typeof l=="number"){var L=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>L&&(l=L,S=!0),T=ut(this.doc,l)}else T=l;return cs(this,T,{top:0,left:0},f||"page",g||S).top+(S?this.doc.height-Ci(T):0)},defaultTextHeight:function(){return Ia(this.display)},defaultCharWidth:function(){return oi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,g,S,T){var L=this.display;l=$n(this,ft(this.doc,l));var V=l.bottom,le=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),L.sizer.appendChild(f),S=="over")V=l.top;else if(S=="above"||S=="near"){var de=Math.max(L.wrapper.clientHeight,this.doc.height),Se=Math.max(L.sizer.clientWidth,L.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?V=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(V=l.bottom),le+f.offsetWidth>Se&&(le=Se-f.offsetWidth)}f.style.top=V+"px",f.style.left=f.style.right="",T=="right"?(le=L.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(T=="left"?le=0:T=="middle"&&(le=(L.sizer.clientWidth-f.offsetWidth)/2),f.style.left=le+"px"),g&&Jc(this,{left:le,top:V,right:le+f.offsetWidth,bottom:V+f.offsetHeight})},triggerOnKeyDown:rn(Vs),triggerOnKeyPress:rn(Wf),triggerOnKeyUp:Uf,triggerOnMouseDown:rn(lu),execCommand:function(l){if(ua.hasOwnProperty(l))return ua[l].call(null,this)},triggerElectric:rn(function(l){Cd(this,l)}),findPosH:function(l,f,g,S){var T=1;f<0&&(T=-1,f=-f);for(var L=ft(this.doc,l),V=0;V<f&&(L=pu(this.doc,L,T,g,S),!L.hitSide);++V);return L},moveH:rn(function(l,f){var g=this;this.extendSelectionsBy(function(S){return g.display.shift||g.doc.extend||S.empty()?pu(g.doc,S.head,l,f,g.options.rtlMoveVisually):l<0?S.from():S.to()},it)}),deleteH:rn(function(l,f){var g=this.doc.sel,S=this.doc;g.somethingSelected()?S.replaceSelection("",null,"+delete"):$a(this,function(T){var L=pu(S,T.head,l,f,!1);return l<0?{from:L,to:T.head}:{from:T.head,to:L}})}),findPosV:function(l,f,g,S){var T=1,L=S;f<0&&(T=-1,f=-f);for(var V=ft(this.doc,l),le=0;le<f;++le){var de=$n(this,V,"div");if(L==null?L=de.left:de.left=L,V=qf(this,de,T,g),V.hitSide)break}return V},moveV:rn(function(l,f){var g=this,S=this.doc,T=[],L=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(le){if(L)return l<0?le.from():le.to();var de=$n(g,le.head,"div");le.goalColumn!=null&&(de.left=le.goalColumn),T.push(de.left);var Se=qf(g,de,l,f);return f=="page"&&le==S.sel.primary()&&Il(g,ds(g,Se,"div").top-de.top),Se},it),T.length)for(var V=0;V<S.sel.ranges.length;V++)S.sel.ranges[V].goalColumn=T[V]}),findWordAt:function(l){var f=this.doc,g=ut(f,l.line).text,S=l.ch,T=l.ch;if(g){var L=this.getHelper(l,"wordChars");(l.sticky=="before"||T==g.length)&&S?--S:++T;for(var V=g.charAt(S),le=Or(V,L)?function(de){return Or(de,L)}:/\s/.test(V)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Or(de)};S>0&&le(g.charAt(S-1));)--S;for(;T<g.length&&le(g.charAt(T));)++T}return new qt(D(l.line,S),D(l.line,T))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ke(tt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:rn(function(l,f){vo(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ii(this)-this.display.barHeight,width:l.scrollWidth-ii(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:Oi(this)}},scrollIntoView:rn(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:D(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?Xc(this,l):yf(this,l.from,l.to,l.margin)}),setSize:rn(function(l,f){var g=this,S=function(L){return typeof L=="number"||/^\d+$/.test(String(L))?L+"px":L};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&wl(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(L){if(L.widgets){for(var V=0;V<L.widgets.length;V++)if(L.widgets[V].noHScroll){Gi(g,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Ve(this,"refresh",this)}),operation:function(l){return tn(this,l)},startOperation:function(){return na(this)},endOperation:function(){return ia(this)},refresh:rn(function(){var l=this.display.cachedTextHeight;dn(this),this.curOp.forceUpdate=!0,uo(this),vo(this,this.doc.scrollLeft,this.doc.scrollTop),xo(this.display),(l==null||Math.abs(l-Ia(this.display))>.5||this.options.lineWrapping)&&ys(this),Ve(this,"refresh",this)}),swapDoc:rn(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Ul(this,l),uo(this),this.display.input.reset(),vo(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Br(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}},pr(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 pu(t,i,u,l,f){var g=i,S=u,T=ut(t,i.line),L=f&&t.direction=="rtl"?-u:u;function V(){var _e=i.line+L;return _e<t.first||_e>=t.first+t.size?!1:(i=new D(_e,i.ch,i.sticky),T=ut(t,_e))}function le(_e){var Xe;if(l=="codepoint"){var et=T.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(et))Xe=null;else{var yt=u>0?et>=55296&&et<56320:et>=56320&&et<57343;Xe=new D(i.line,Math.max(0,Math.min(T.text.length,i.ch+u*(yt?2:1))),-u)}}else f?Xe=Bf(t.cm,T,i,u):Xe=js(T,i,u);if(Xe==null)if(!_e&&V())i=tu(f,t.cm,T,i.line,L);else return!1;else i=Xe;return!0}if(l=="char"||l=="codepoint")le();else if(l=="column")le(!0);else if(l=="word"||l=="group")for(var de=null,Se=l=="group",me=t.cm&&t.cm.getHelper(i,"wordChars"),Ie=!0;!(u<0&&!le(!Ie));Ie=!1){var Me=T.text.charAt(i.ch)||`
|
|
28
|
-
|
|
29
|
-
`?"n":!
|
|
30
|
-
`);if(T.clipboardData.setData("Text",
|
|
31
|
-
`);var
|
|
32
|
-
`),
|
|
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},
|
|
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&<(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)&<(t,i.from.line).markedSpans,l=ia(t,i.to.line)&<(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;
|
|
20
|
+
top: `+(i.top-u.viewOffset-Da(t.display))+`px;
|
|
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(`
|
|
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;
|
|
34
34
|
top: `+(t.clientY-le.top-5)+"px; left: "+(t.clientX-le.left-5)+`px;
|
|
35
|
-
z-index: 1000; background: `+(
|
|
36
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;W&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),W&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Se(){if(f.selectionStart!=null){var Me=u.somethingSelected(),$e="\u200B"+(Me?f.value:"");f.value="\u21DA",f.value=$e,i.prevInput=Me?"":"\u200B",f.selectionStart=1,f.selectionEnd=$e.length,l.selForContextMenu=u.doc.sel}}function me(){if(i.contextMenuPending==me&&(i.contextMenuPending=!1,i.wrapper.style.cssText=V,f.style.cssText=L,E&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!E||E&&F<9)&&Se();var Me=0,$e=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?jr(u,Ff)(u):Me++<10?l.detectingSelectAll=setTimeout($e,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout($e,200)}}if(E&&F>=9&&Se(),re){Hr(t);var Ie=function(){Be(window,"mouseup",Ie),setTimeout(me,20)};fe(window,"mouseup",Ie)}else setTimeout(me,50)},Ar.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Ar.prototype.setUneditable=function(){},Ar.prototype.needsContentAttribute=!1;function zs(t,i){if(i=i?Oe(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=ke(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=T.getValue()}var f;if(t.form&&(fe(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(L){}}i.finishInit=function(L){L.save=l,L.getTextArea=function(){return t},L.toTextArea=function(){L.toTextArea=isNaN,l(),t.parentNode.removeChild(L.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=mr(function(L){return t.parentNode.insertBefore(L,t.nextSibling)},i);return T}function Id(t){t.off=Be,t.on=fe,t.wheelEventPixels=Cf,t.Doc=pn,t.splitLines=Un,t.countColumn=He,t.findColumn=Ft,t.isWordChar=tr,t.Pass=at,t.signal=Ve,t.Line=Gn,t.changeEnd=$i,t.scrollbarModel=yo,t.Pos=D,t.cmpPos=oe,t.modes=An,t.mimeModes=Cn,t.resolveMode=Wn,t.getMode=cn,t.modeExtensions=Pr,t.extendMode=ri,t.copyState=In,t.startState=Qo,t.innerMode=wa,t.commands=ua,t.keyMap=Ri,t.keyName=ql,t.isModifierKey=la,t.lookupKey=Ga,t.normalizeKeyMap=Df,t.StringStream=hr,t.SharedTextMarker=Ha,t.TextMarker=bn,t.LineWidget=Ro,t.e_preventDefault=Nt,t.e_stopPropagation=Tr,t.e_stop=Hr,t.addClass=je,t.contains=ye,t.rmClass=z,t.keyNames=Ki}Jf(mr),Ed(mr);var kd="iter insert remove copy getEditor constructor".split(" ");for(var Gs in pn.prototype)pn.prototype.hasOwnProperty(Gs)&&Te(kd,Gs)<0&&(mr.prototype[Gs]=function(t){return function(){return t.apply(this.doc,arguments)}}(pn.prototype[Gs]));return pr(pn),mr.inputStyles={textarea:Ar,contenteditable:ir},mr.defineMode=function(t){!mr.defaults.mode&&t!="null"&&(mr.defaults.mode=t),Pn.apply(this,arguments)},mr.defineMIME=Sa,mr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),mr.defineMIME("text/plain","null"),mr.defineExtension=function(t,i){mr.prototype[t]=i},mr.defineDocExtension=function(t,i){pn.prototype[t]=i},mr.fromTextArea=zs,Id(mr),mr.version="5.65.9",mr})},49055:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var A=x.indentUnit,E=w.statementIndent,F=w.jsonld,W=w.json||F,Z=w.trackScope!==!1,ee=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function D(ft){return{type:ft,style:"keyword"}}var oe=D("keyword a"),Re=D("keyword b"),Ge=D("keyword c"),Pt=D("keyword d"),Ht=D("operator"),rr={type:"atom",style:"atom"};return{if:D("if"),while:oe,with:oe,else:Re,do:Re,try:Re,finally:Re,return:Pt,break:Pt,continue:Pt,new:D("new"),delete:Ge,void:Ge,throw:Ge,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:Ht,typeof:Ht,instanceof:Ht,true:rr,false:rr,null:rr,undefined:rr,NaN:rr,Infinity:rr,this:D("this"),class:D("class"),super:D("atom"),yield:Ge,export:D("export"),import:D("import"),extends:Ge,await:Ge}}(),ae=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(D){for(var oe=!1,Re,Ge=!1;(Re=D.next())!=null;){if(!oe){if(Re=="/"&&!Ge)return;Re=="["?Ge=!0:Ge&&Re=="]"&&(Ge=!1)}oe=!oe&&Re=="\\"}}var G,N;function C(D,oe,Re){return G=D,N=Re,oe}function k(D,oe){var Re=D.next();if(Re=='"'||Re=="'")return oe.tokenize=j(Re),oe.tokenize(D,oe);if(Re=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Re=="."&&D.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Re))return C(Re);if(Re=="="&&D.eat(">"))return C("=>","operator");if(Re=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Re))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Re=="/")return D.eat("*")?(oe.tokenize=J,J(D,oe)):D.eat("/")?(D.skipToEnd(),C("comment","comment")):Aa(D,oe,1)?(P(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(D.eat("="),C("operator","operator",D.current()));if(Re=="`")return oe.tokenize=K,K(D,oe);if(Re=="#"&&D.peek()=="!")return D.skipToEnd(),C("meta","meta");if(Re=="#"&&D.eatWhile(ue))return C("variable","property");if(Re=="<"&&D.match("!--")||Re=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),C("comment","comment");if(ae.test(Re))return(Re!=">"||!oe.lexical||oe.lexical.type!=">")&&(D.eat("=")?(Re=="!"||Re=="=")&&D.eat("="):/[<>*+\-|&?]/.test(Re)&&(D.eat(Re),Re==">"&&D.eat(Re))),Re=="?"&&D.eat(".")?C("."):C("operator","operator",D.current());if(ue.test(Re)){D.eatWhile(ue);var Ge=D.current();if(oe.lastType!="."){if(ne.propertyIsEnumerable(Ge)){var Pt=ne[Ge];return C(Pt.type,Pt.style,Ge)}if(Ge=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",Ge)}return C("variable","variable",Ge)}}function j(D){return function(oe,Re){var Ge=!1,Pt;if(F&&oe.peek()=="@"&&oe.match(Y))return Re.tokenize=k,C("jsonld-keyword","meta");for(;(Pt=oe.next())!=null&&!(Pt==D&&!Ge);)Ge=!Ge&&Pt=="\\";return Ge||(Re.tokenize=k),C("string","string")}}function J(D,oe){for(var Re=!1,Ge;Ge=D.next();){if(Ge=="/"&&Re){oe.tokenize=k;break}Re=Ge=="*"}return C("comment","comment")}function K(D,oe){for(var Re=!1,Ge;(Ge=D.next())!=null;){if(!Re&&(Ge=="`"||Ge=="$"&&D.eat("{"))){oe.tokenize=k;break}Re=!Re&&Ge=="\\"}return C("quasi","string-2",D.current())}var U="([{}])";function re(D,oe){oe.fatArrowAt&&(oe.fatArrowAt=null);var Re=D.string.indexOf("=>",D.start);if(!(Re<0)){if(ee){var Ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,Re));Ge&&(Re=Ge.index)}for(var Pt=0,Ht=!1,rr=Re-1;rr>=0;--rr){var ft=D.string.charAt(rr),Fn=U.indexOf(ft);if(Fn>=0&&Fn<3){if(!Pt){++rr;break}if(--Pt==0){ft=="("&&(Ht=!0);break}}else if(Fn>=3&&Fn<6)++Pt;else if(ue.test(ft))Ht=!0;else if(/["'\/`]/.test(ft))for(;;--rr){if(rr==0)return;var eo=D.string.charAt(rr-1);if(eo==ft&&D.string.charAt(rr-2)!="\\"){rr--;break}}else if(Ht&&!Pt){++rr;break}}Ht&&!Pt&&(oe.fatArrowAt=rr)}}var X={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(D,oe,Re,Ge,Pt,Ht){this.indented=D,this.column=oe,this.type=Re,this.prev=Pt,this.info=Ht,Ge!=null&&(this.align=Ge)}function ce(D,oe){if(!Z)return!1;for(var Re=D.localVars;Re;Re=Re.next)if(Re.name==oe)return!0;for(var Ge=D.context;Ge;Ge=Ge.prev)for(var Re=Ge.vars;Re;Re=Re.next)if(Re.name==oe)return!0}function he(D,oe,Re,Ge,Pt){var Ht=D.cc;for(_.state=D,_.stream=Pt,_.marked=null,_.cc=Ht,_.style=oe,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var rr=Ht.length?Ht.pop():W?rt:at;if(rr(Re,Ge)){for(;Ht.length&&Ht[Ht.length-1].lex;)Ht.pop()();return _.marked?_.marked:Re=="variable"&&ce(D,Ge)?"variable-2":oe}}}var _={state:null,column:null,marked:null,cc:null};function Q(){for(var D=arguments.length-1;D>=0;D--)_.cc.push(arguments[D])}function H(){return Q.apply(null,arguments),!0}function ye(D,oe){for(var Re=oe;Re;Re=Re.next)if(Re.name==D)return!0;return!1}function ke(D){var oe=_.state;if(_.marked="def",!!Z){if(oe.context){if(oe.lexical.info=="var"&&oe.context&&oe.context.block){var Re=je(D,oe.context);if(Re!=null){oe.context=Re;return}}else if(!ye(D,oe.localVars)){oe.localVars=new tt(D,oe.localVars);return}}w.globalVars&&!ye(D,oe.globalVars)&&(oe.globalVars=new tt(D,oe.globalVars))}}function je(D,oe){if(oe)if(oe.block){var Re=je(D,oe.prev);return Re?Re==oe.prev?oe:new nt(Re,oe.vars,!0):null}else return ye(D,oe.vars)?oe:new nt(oe.prev,new tt(D,oe.vars),!1);else return null}function De(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function nt(D,oe,Re){this.prev=D,this.vars=oe,this.block=Re}function tt(D,oe){this.name=D,this.next=oe}var bt=new tt("this",new tt("arguments",null));function Ne(){_.state.context=new nt(_.state.context,_.state.localVars,!1),_.state.localVars=bt}function Oe(){_.state.context=new nt(_.state.context,_.state.localVars,!0),_.state.localVars=null}Ne.lex=Oe.lex=!0;function He(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}He.lex=!0;function Pe(D,oe){var Re=function(){var Ge=_.state,Pt=Ge.indented;if(Ge.lexical.type=="stat")Pt=Ge.lexical.indented;else for(var Ht=Ge.lexical;Ht&&Ht.type==")"&&Ht.align;Ht=Ht.prev)Pt=Ht.indented;Ge.lexical=new z(Pt,_.stream.column(),D,null,Ge.lexical,oe)};return Re.lex=!0,Re}function Te(){var D=_.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}Te.lex=!0;function Ye(D){function oe(Re){return Re==D?H():D==";"||Re=="}"||Re==")"||Re=="]"?Q():H(oe)}return oe}function at(D,oe){return D=="var"?H(Pe("vardef",oe),bi,Ye(";"),Te):D=="keyword a"?H(Pe("form"),Ft,at,Te):D=="keyword b"?H(Pe("form"),at,Te):D=="keyword d"?_.stream.match(/^\s*$/,!1)?H():H(Pe("stat"),or,Ye(";"),Te):D=="debugger"?H(Ye(";")):D=="{"?H(Pe("}"),Oe,Tt,Te,He):D==";"?H():D=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==Te&&_.state.cc.pop()(),H(Pe("form"),Ft,at,Te,Un)):D=="function"?H(fn):D=="for"?H(Pe("form"),Oe,xi,at,He,Te):D=="class"||ee&&oe=="interface"?(_.marked="keyword",H(Pe("form",D=="class"?D:oe),Wn,Te)):D=="variable"?ee&&oe=="declare"?(_.marked="keyword",H(at)):ee&&(oe=="module"||oe=="enum"||oe=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",oe=="enum"?H(Zt):oe=="type"?H(Cn,Ye("operator"),Be,Ye(";")):H(Pe("form"),qr,Ye("{"),Pe("}"),Tt,Te,Te)):ee&&oe=="namespace"?(_.marked="keyword",H(Pe("form"),rt,at,Te)):ee&&oe=="abstract"?(_.marked="keyword",H(at)):H(Pe("stat"),Ze):D=="switch"?H(Pe("form"),Ft,Ye("{"),Pe("}","switch"),Oe,Tt,Te,Te,He):D=="case"?H(rt,Ye(":")):D=="default"?H(Ye(":")):D=="catch"?H(Pe("form"),Ne,jt,at,Te,He):D=="export"?H(Pe("stat"),In,Te):D=="import"?H(Pe("stat"),Qo,Te):D=="async"?H(at):oe=="@"?H(rt,at):Q(Pe("stat"),rt,Ye(";"),Te)}function jt(D){if(D=="(")return H(Pn,Ye(")"))}function rt(D,oe){return ot(D,oe,!1)}function it(D,oe){return ot(D,oe,!0)}function Ft(D){return D!="("?Q():H(Pe(")"),or,Ye(")"),Te)}function ot(D,oe,Re){if(_.state.fatArrowAt==_.stream.start){var Ge=Re?un:Er;if(D=="(")return H(Ne,Pe(")"),dt(Pn,")"),Te,Ye("=>"),Ge,He);if(D=="variable")return Q(Ne,qr,Ye("=>"),Ge,He)}var Pt=Re?Ct:Je;return X.hasOwnProperty(D)?H(Pt):D=="function"?H(fn,Pt):D=="class"||ee&&oe=="interface"?(_.marked="keyword",H(Pe("form"),Sa,Te)):D=="keyword c"||D=="async"?H(Re?it:rt):D=="("?H(Pe(")"),or,Ye(")"),Te,Pt):D=="operator"||D=="spread"?H(Re?it:rt):D=="["?H(Pe("]"),kn,Te,Pt):D=="{"?mt(Lt,"}",null,Pt):D=="quasi"?Q(ze,Pt):D=="new"?H(tr(Re)):H()}function or(D){return D.match(/[;\}\)\],]/)?Q():Q(rt)}function Je(D,oe){return D==","?H(or):Ct(D,oe,!1)}function Ct(D,oe,Re){var Ge=Re==!1?Je:Ct,Pt=Re==!1?rt:it;if(D=="=>")return H(Ne,Re?un:Er,He);if(D=="operator")return/\+\+|--/.test(oe)||ee&&oe=="!"?H(Ge):ee&&oe=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?H(Pe(">"),dt(Be,">"),Te,Ge):oe=="?"?H(rt,Ye(":"),Pt):H(Pt);if(D=="quasi")return Q(ze,Ge);if(D!=";"){if(D=="(")return mt(it,")","call",Ge);if(D==".")return H(gt,Ge);if(D=="[")return H(Pe("]"),or,Ye("]"),Te,Ge);if(ee&&oe=="as")return _.marked="keyword",H(Be,Ge);if(D=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),H(Pt)}}function ze(D,oe){return D!="quasi"?Q():oe.slice(oe.length-2)!="${"?H(ze):H(or,Zr)}function Zr(D){if(D=="}")return _.marked="string-2",_.state.tokenize=K,H(ze)}function Er(D){return re(_.stream,_.state),Q(D=="{"?at:rt)}function un(D){return re(_.stream,_.state),Q(D=="{"?at:it)}function tr(D){return function(oe){return oe=="."?H(D?_r:Or):oe=="variable"&&ee?H(yi,D?Ct:Je):Q(D?it:rt)}}function Or(D,oe){if(oe=="target")return _.marked="keyword",H(Je)}function _r(D,oe){if(oe=="target")return _.marked="keyword",H(Ct)}function Ze(D){return D==":"?H(Te,at):Q(Je,Ye(";"),Te)}function gt(D){if(D=="variable")return _.marked="property",H()}function Lt(D,oe){if(D=="async")return _.marked="property",H(Lt);if(D=="variable"||_.style=="keyword"){if(_.marked="property",oe=="get"||oe=="set")return H(Ot);var Re;return ee&&_.state.fatArrowAt==_.stream.start&&(Re=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Re[0].length),H(kt)}else{if(D=="number"||D=="string")return _.marked=F?"property":_.style+" property",H(kt);if(D=="jsonld-keyword")return H(kt);if(ee&&De(oe))return _.marked="keyword",H(Lt);if(D=="[")return H(rt,st,Ye("]"),kt);if(D=="spread")return H(it,kt);if(oe=="*")return _.marked="keyword",H(Lt);if(D==":")return Q(kt)}}function Ot(D){return D!="variable"?Q(kt):(_.marked="property",H(fn))}function kt(D){if(D==":")return H(it);if(D=="(")return Q(fn)}function dt(D,oe,Re){function Ge(Pt,Ht){if(Re?Re.indexOf(Pt)>-1:Pt==","){var rr=_.state.lexical;return rr.info=="call"&&(rr.pos=(rr.pos||0)+1),H(function(ft,Fn){return ft==oe||Fn==oe?Q():Q(D)},Ge)}return Pt==oe||Ht==oe?H():Re&&Re.indexOf(";")>-1?Q(D):H(Ye(oe))}return function(Pt,Ht){return Pt==oe||Ht==oe?H():Q(D,Ge)}}function mt(D,oe,Re){for(var Ge=3;Ge<arguments.length;Ge++)_.cc.push(arguments[Ge]);return H(Pe(oe,Re),dt(D,oe),Te)}function Tt(D){return D=="}"?H():Q(at,Tt)}function st(D,oe){if(ee){if(D==":")return H(Be);if(oe=="?")return H(st)}}function Ue(D,oe){if(ee&&(D==":"||oe=="in"))return H(Be)}function fe(D){if(ee&&D==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?H(rt,be,Be):H(Be)}function be(D,oe){if(oe=="is")return _.marked="keyword",H()}function Be(D,oe){if(oe=="keyof"||oe=="typeof"||oe=="infer"||oe=="readonly")return _.marked="keyword",H(oe=="typeof"?it:Be);if(D=="variable"||oe=="void")return _.marked="type",H(Tr);if(oe=="|"||oe=="&")return H(Be);if(D=="string"||D=="number"||D=="atom")return H(Tr);if(D=="[")return H(Pe("]"),dt(Be,"]",","),Te,Tr);if(D=="{")return H(Pe("}"),lt,Te,Tr);if(D=="(")return H(dt(Nt,")"),Ve,Tr);if(D=="<")return H(dt(Be,">"),Be);if(D=="quasi")return Q(Mt,Tr)}function Ve(D){if(D=="=>")return H(Be)}function lt(D){return D.match(/[\}\)\]]/)?H():D==","||D==";"?H(lt):Q(vt,lt)}function vt(D,oe){if(D=="variable"||_.style=="keyword")return _.marked="property",H(vt);if(oe=="?"||D=="number"||D=="string")return H(vt);if(D==":")return H(Be);if(D=="[")return H(Ye("variable"),Ue,Ye("]"),vt);if(D=="(")return Q(An,vt);if(!D.match(/[;\}\)\],]/))return H()}function Mt(D,oe){return D!="quasi"?Q():oe.slice(oe.length-2)!="${"?H(Mt):H(Be,pr)}function pr(D){if(D=="}")return _.marked="string-2",_.state.tokenize=K,H(Mt)}function Nt(D,oe){return D=="variable"&&_.stream.match(/^\s*[?:]/,!1)||oe=="?"?H(Nt):D==":"?H(Be):D=="spread"?H(Nt):Q(Be)}function Tr(D,oe){if(oe=="<")return H(Pe(">"),dt(Be,">"),Te,Tr);if(oe=="|"||D=="."||oe=="&")return H(Be);if(D=="[")return H(Be,Ye("]"),Tr);if(oe=="extends"||oe=="implements")return _.marked="keyword",H(Be);if(oe=="?")return H(Be,Ye(":"),Be)}function yi(D,oe){if(oe=="<")return H(Pe(">"),dt(Be,">"),Te,Tr)}function Hr(){return Q(Be,zr)}function zr(D,oe){if(oe=="=")return H(Be)}function bi(D,oe){return oe=="enum"?(_.marked="keyword",H(Zt)):Q(qr,st,en,ti)}function qr(D,oe){if(ee&&De(oe))return _.marked="keyword",H(qr);if(D=="variable")return ke(oe),H();if(D=="spread")return H(qr);if(D=="[")return mt(ei,"]");if(D=="{")return mt(gr,"}")}function gr(D,oe){return D=="variable"&&!_.stream.match(/^\s*:/,!1)?(ke(oe),H(en)):(D=="variable"&&(_.marked="property"),D=="spread"?H(qr):D=="}"?Q():D=="["?H(rt,Ye("]"),Ye(":"),gr):H(Ye(":"),qr,en))}function ei(){return Q(qr,en)}function en(D,oe){if(oe=="=")return H(it)}function ti(D){if(D==",")return H(bi)}function Un(D,oe){if(D=="keyword b"&&oe=="else")return H(Pe("form","else"),at,Te)}function xi(D,oe){if(oe=="await")return H(xi);if(D=="(")return H(Pe(")"),_i,Te)}function _i(D){return D=="var"?H(bi,gn):D=="variable"?H(gn):Q(gn)}function gn(D,oe){return D==")"?H():D==";"?H(gn):oe=="in"||oe=="of"?(_.marked="keyword",H(rt,gn)):Q(rt,gn)}function fn(D,oe){if(oe=="*")return _.marked="keyword",H(fn);if(D=="variable")return ke(oe),H(fn);if(D=="(")return H(Ne,Pe(")"),dt(Pn,")"),Te,fe,at,He);if(ee&&oe=="<")return H(Pe(">"),dt(Hr,">"),Te,fn)}function An(D,oe){if(oe=="*")return _.marked="keyword",H(An);if(D=="variable")return ke(oe),H(An);if(D=="(")return H(Ne,Pe(")"),dt(Pn,")"),Te,fe,He);if(ee&&oe=="<")return H(Pe(">"),dt(Hr,">"),Te,An)}function Cn(D,oe){if(D=="keyword"||D=="variable")return _.marked="type",H(Cn);if(oe=="<")return H(Pe(">"),dt(Hr,">"),Te)}function Pn(D,oe){return oe=="@"&&H(rt,Pn),D=="spread"?H(Pn):ee&&De(oe)?(_.marked="keyword",H(Pn)):ee&&D=="this"?H(st,en):Q(qr,st,en)}function Sa(D,oe){return D=="variable"?Wn(D,oe):cn(D,oe)}function Wn(D,oe){if(D=="variable")return ke(oe),H(cn)}function cn(D,oe){if(oe=="<")return H(Pe(">"),dt(Hr,">"),Te,cn);if(oe=="extends"||oe=="implements"||ee&&D==",")return oe=="implements"&&(_.marked="keyword"),H(ee?Be:rt,cn);if(D=="{")return H(Pe("}"),Pr,Te)}function Pr(D,oe){if(D=="async"||D=="variable"&&(oe=="static"||oe=="get"||oe=="set"||ee&&De(oe))&&_.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return _.marked="keyword",H(Pr);if(D=="variable"||_.style=="keyword")return _.marked="property",H(ri,Pr);if(D=="number"||D=="string")return H(ri,Pr);if(D=="[")return H(rt,st,Ye("]"),ri,Pr);if(oe=="*")return _.marked="keyword",H(Pr);if(ee&&D=="(")return Q(An,Pr);if(D==";"||D==",")return H(Pr);if(D=="}")return H();if(oe=="@")return H(rt,Pr)}function ri(D,oe){if(oe=="!"||oe=="?")return H(ri);if(D==":")return H(Be,en);if(oe=="=")return H(it);var Re=_.state.lexical.prev,Ge=Re&&Re.info=="interface";return Q(Ge?An:fn)}function In(D,oe){return oe=="*"?(_.marked="keyword",H(Ui,Ye(";"))):oe=="default"?(_.marked="keyword",H(rt,Ye(";"))):D=="{"?H(dt(wa,"}"),Ui,Ye(";")):Q(at)}function wa(D,oe){if(oe=="as")return _.marked="keyword",H(Ye("variable"));if(D=="variable")return Q(it,wa)}function Qo(D){return D=="string"?H():D=="("?Q(rt):D=="."?Q(Je):Q(hr,ut,Ui)}function hr(D,oe){return D=="{"?mt(hr,"}"):(D=="variable"&&ke(oe),oe=="*"&&(_.marked="keyword"),H(Si))}function ut(D){if(D==",")return H(hr,ut)}function Si(D,oe){if(oe=="as")return _.marked="keyword",H(hr)}function Ui(D,oe){if(oe=="from")return _.marked="keyword",H(rt)}function kn(D){return D=="]"?H():Q(dt(it,"]"))}function Zt(){return Q(Pe("form"),qr,Ye("{"),Pe("}"),dt(wi,"}"),Te,Te)}function wi(){return Q(qr,en)}function qi(D,oe){return D.lastType=="operator"||D.lastType==","||ae.test(oe.charAt(0))||/[,.]/.test(oe.charAt(0))}function Aa(D,oe,Re){return oe.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(oe.lastType)||oe.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(Re||0)))}return{startState:function(D){var oe={tokenize:k,lastType:"sof",cc:[],lexical:new z((D||0)-A,0,"block",!1),localVars:w.localVars,context:w.localVars&&new nt(null,null,!1),indented:D||0};return w.globalVars&&typeof w.globalVars=="object"&&(oe.globalVars=w.globalVars),oe},token:function(D,oe){if(D.sol()&&(oe.lexical.hasOwnProperty("align")||(oe.lexical.align=!1),oe.indented=D.indentation(),re(D,oe)),oe.tokenize!=J&&D.eatSpace())return null;var Re=oe.tokenize(D,oe);return G=="comment"?Re:(oe.lastType=G=="operator"&&(N=="++"||N=="--")?"incdec":G,he(oe,Re,G,N,D))},indent:function(D,oe){if(D.tokenize==J||D.tokenize==K)return d.Pass;if(D.tokenize!=k)return 0;var Re=oe&&oe.charAt(0),Ge=D.lexical,Pt;if(!/^\s*else\b/.test(oe))for(var Ht=D.cc.length-1;Ht>=0;--Ht){var rr=D.cc[Ht];if(rr==Te)Ge=Ge.prev;else if(rr!=Un&&rr!=He)break}for(;(Ge.type=="stat"||Ge.type=="form")&&(Re=="}"||(Pt=D.cc[D.cc.length-1])&&(Pt==Je||Pt==Ct)&&!/^[,\.=+\-*:?[\(]/.test(oe));)Ge=Ge.prev;E&&Ge.type==")"&&Ge.prev.type=="stat"&&(Ge=Ge.prev);var ft=Ge.type,Fn=Re==ft;return ft=="vardef"?Ge.indented+(D.lastType=="operator"||D.lastType==","?Ge.info.length+1:0):ft=="form"&&Re=="{"?Ge.indented:ft=="form"?Ge.indented+A:ft=="stat"?Ge.indented+(qi(D,oe)?E||A:0):Ge.info=="switch"&&!Fn&&w.doubleIndentSwitch!=!1?Ge.indented+(/^(?:case|default)\b/.test(oe)?A:2*A):Ge.align?Ge.column+(Fn?0:1):Ge.indented+(Fn?0:A)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:W?null:"/*",blockCommentEnd:W?null:"*/",blockCommentContinue:W?null:" * ",lineComment:W?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:W?"json":"javascript",jsonldMode:F,jsonMode:W,expressionAllowed:Aa,skipExpression:function(D){he(D,"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,O)=>{"use strict";/*!
|
|
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";/*!
|
|
37
37
|
* cookie
|
|
38
38
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
39
39
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
40
40
|
* MIT Licensed
|
|
41
|
-
*/O.parse=x,O.serialize=w;var s=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,ee){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=ee||{},ae=ne.decode||A,Y=0;Y<Z.length;){var P=Z.indexOf("=",Y);if(P===-1)break;var G=Z.indexOf(";",Y);if(G===-1)G=Z.length;else if(G<P){Y=Z.lastIndexOf(";",P-1)+1;continue}var N=Z.slice(Y,P).trim();if(ue[N]===void 0){var C=Z.slice(P+1,G).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),ue[N]=W(C,ae)}Y=G+1}return ue}function w(Z,ee,ue){var ne=ue||{},ae=ne.encode||E;if(typeof ae!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=ae(ee);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var P=Z+"="+Y;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 N=ne.expires;if(!F(N)||isNaN(N.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+N.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 k=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(k){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 E(Z){return encodeURIComponent(Z)}function F(Z){return s.call(Z)==="[object Date]"||Z instanceof Date}function W(Z,ee){try{return ee(Z)}catch(ue){return Z}}},27129:(h,O,s)=>{var d=s(53822);h.exports=d},86250:(h,O,s)=>{var d=s(21434);h.exports=d},61347:(h,O,s)=>{var d=s(27710);h.exports=d},42142:(h,O,s)=>{var d=s(31585);h.exports=d},21106:(h,O,s)=>{var d=s(55603);h.exports=d},97497:(h,O,s)=>{var d=s(31206);h.exports=d},28385:(h,O,s)=>{var d=s(26174);h.exports=d},85874:(h,O,s)=>{var d=s(87511);h.exports=d},86843:(h,O,s)=>{var d=s(24741);h.exports=d},37528:(h,O,s)=>{var d=s(4963);h.exports=d},81471:(h,O,s)=>{var d=s(21025);h.exports=d},5271:(h,O,s)=>{var d=s(27820);h.exports=d},87275:(h,O,s)=>{var d=s(74194);h.exports=d},13772:(h,O,s)=>{var d=s(32854);h.exports=d},97574:(h,O,s)=>{var d=s(60002);h.exports=d},69373:(h,O,s)=>{var d=s(28980);h.exports=d},70033:(h,O,s)=>{var d=s(45636);h.exports=d},77443:(h,O,s)=>{var d=s(66672);h.exports=d},88362:(h,O,s)=>{var d=s(46618);h.exports=d},89821:(h,O,s)=>{var d=s(42285);h.exports=d},8008:(h,O,s)=>{var d=s(58535);h.exports=d},52221:(h,O,s)=>{s(5454),s(19173);var d=s(57545);h.exports=d.Array.from},75078:(h,O,s)=>{s(8118);var d=s(57545);h.exports=d.Array.isArray},66135:(h,O,s)=>{s(59106);var d=s(45607);h.exports=d("Array").concat},77237:(h,O,s)=>{s(98939),s(46663);var d=s(45607);h.exports=d("Array").entries},83971:(h,O,s)=>{s(73436);var d=s(45607);h.exports=d("Array").filter},42087:(h,O,s)=>{s(10880);var d=s(45607);h.exports=d("Array").find},60098:(h,O,s)=>{s(9823);var d=s(45607);h.exports=d("Array").forEach},54216:(h,O,s)=>{s(70024);var d=s(45607);h.exports=d("Array").includes},92089:(h,O,s)=>{s(62276);var d=s(45607);h.exports=d("Array").indexOf},6209:(h,O,s)=>{s(63838);var d=s(45607);h.exports=d("Array").map},49922:(h,O,s)=>{s(99523);var d=s(45607);h.exports=d("Array").reverse},52671:(h,O,s)=>{s(65818);var d=s(45607);h.exports=d("Array").slice},51375:(h,O,s)=>{s(12178);var d=s(45607);h.exports=d("Array").splice},65739:(h,O,s)=>{s(98939),s(5454);var d=s(78703);h.exports=d},74030:(h,O,s)=>{s(25067),h.exports=s(98576)},41484:(h,O,s)=>{var d=s(8902),x=s(66135),w=Array.prototype;h.exports=function(A){var E=A.concat;return A===w||d(w,A)&&E===w.concat?x:E}},53669:(h,O,s)=>{var d=s(8902),x=s(83971),w=Array.prototype;h.exports=function(A){var E=A.filter;return A===w||d(w,A)&&E===w.filter?x:E}},37506:(h,O,s)=>{var d=s(8902),x=s(42087),w=Array.prototype;h.exports=function(A){var E=A.find;return A===w||d(w,A)&&E===w.find?x:E}},13173:(h,O,s)=>{var d=s(8902),x=s(54216),w=s(62840),A=Array.prototype,E=String.prototype;h.exports=function(F){var W=F.includes;return F===A||d(A,F)&&W===A.includes?x:typeof F=="string"||F===E||d(E,F)&&W===E.includes?w:W}},92604:(h,O,s)=>{var d=s(8902),x=s(92089),w=Array.prototype;h.exports=function(A){var E=A.indexOf;return A===w||d(w,A)&&E===w.indexOf?x:E}},263:(h,O,s)=>{var d=s(8902),x=s(6209),w=Array.prototype;h.exports=function(A){var E=A.map;return A===w||d(w,A)&&E===w.map?x:E}},80432:(h,O,s)=>{var d=s(8902),x=s(49922),w=Array.prototype;h.exports=function(A){var E=A.reverse;return A===w||d(w,A)&&E===w.reverse?x:E}},77663:(h,O,s)=>{var d=s(8902),x=s(52671),w=Array.prototype;h.exports=function(A){var E=A.slice;return A===w||d(w,A)&&E===w.slice?x:E}},45063:(h,O,s)=>{var d=s(8902),x=s(51375),w=Array.prototype;h.exports=function(A){var E=A.splice;return A===w||d(w,A)&&E===w.splice?x:E}},7769:(h,O,s)=>{var d=s(8902),x=s(14820),w=String.prototype;h.exports=function(A){var E=A.startsWith;return typeof A=="string"||A===w||d(w,A)&&E===w.startsWith?x:E}},96056:(h,O,s)=>{s(59704);var d=s(57545),x=s(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(A,E,F){return x(d.JSON.stringify,null,arguments)}},99936:(h,O,s)=>{s(93582);var d=s(57545);h.exports=d.Object.assign},23213:(h,O,s)=>{s(73113);var d=s(57545),x=d.Object;h.exports=function(A,E){return x.create(A,E)}},38724:(h,O,s)=>{s(57585);var d=s(57545),x=d.Object,w=h.exports=function(E,F){return x.defineProperties(E,F)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,O,s)=>{s(20297);var d=s(57545),x=d.Object,w=h.exports=function(E,F,W){return x.defineProperty(E,F,W)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,O,s)=>{s(27442);var d=s(57545);h.exports=d.Object.entries},60632:(h,O,s)=>{s(89189);var d=s(57545),x=d.Object,w=h.exports=function(E,F){return x.getOwnPropertyDescriptor(E,F)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,O,s)=>{s(62509);var d=s(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,O,s)=>{s(36187);var d=s(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,O,s)=>{s(19234);var d=s(57545);h.exports=d.Object.getPrototypeOf},38651:(h,O,s)=>{s(92647);var d=s(57545);h.exports=d.Object.keys},33083:(h,O,s)=>{s(13222);var d=s(57545);h.exports=d.Object.setPrototypeOf},93154:(h,O,s)=>{s(4242),s(98939),s(46663),s(59021),s(97884),s(78885),s(91868),s(5454);var d=s(57545);h.exports=d.Promise},62840:(h,O,s)=>{s(39247);var d=s(45607);h.exports=d("String").includes},14820:(h,O,s)=>{s(32991);var d=s(45607);h.exports=d("String").startsWith},85008:(h,O,s)=>{s(59106),s(46663),s(36187),s(19781),s(50492),s(66681),s(29594),s(63665),s(29017),s(11250),s(79786),s(90503),s(16565),s(69322),s(13610),s(36886),s(33514),s(68671),s(58556),s(71367);var d=s(57545);h.exports=d.Symbol},994:(h,O,s)=>{s(98939),s(46663),s(5454),s(63665);var d=s(89207);h.exports=d.f("iterator")},31293:(h,O,s)=>{s(98939),s(46663),s(33983);var d=s(57545);h.exports=d.WeakMap},62813:(h,O,s)=>{h.exports=s(52708)},68664:(h,O,s)=>{h.exports=s(58541)},21457:(h,O,s)=>{h.exports=s(37020)},36516:(h,O,s)=>{h.exports=s(79987)},87611:(h,O,s)=>{h.exports=s(86812)},4161:(h,O,s)=>{h.exports=s(51024)},75159:(h,O,s)=>{h.exports=s(32747)},87708:(h,O,s)=>{h.exports=s(85918)},42937:(h,O,s)=>{h.exports=s(21626)},69297:(h,O,s)=>{h.exports=s(77021)},10353:(h,O,s)=>{h.exports=s(18281)},8026:(h,O,s)=>{h.exports=s(90229)},67362:(h,O,s)=>{h.exports=s(53949)},57532:(h,O,s)=>{h.exports=s(11795)},61903:(h,O,s)=>{h.exports=s(75090)},42044:(h,O,s)=>{h.exports=s(27994)},60902:(h,O,s)=>{h.exports=s(45483)},2214:(h,O,s)=>{h.exports=s(35796)},983:(h,O,s)=>{h.exports=s(79918)},59256:(h,O,s)=>{h.exports=s(82185)},95659:(h,O,s)=>{h.exports=s(39982)},52708:(h,O,s)=>{var d=s(27129);h.exports=d},58541:(h,O,s)=>{var d=s(86250);h.exports=d},37020:(h,O,s)=>{var d=s(61347);h.exports=d},79987:(h,O,s)=>{s(5363);var d=s(42142);h.exports=d},86812:(h,O,s)=>{var d=s(21106);h.exports=d},51024:(h,O,s)=>{var d=s(97497);h.exports=d},32747:(h,O,s)=>{var d=s(28385);h.exports=d},85918:(h,O,s)=>{var d=s(85874);h.exports=d},21626:(h,O,s)=>{var d=s(86843);h.exports=d},77021:(h,O,s)=>{var d=s(37528);h.exports=d},18281:(h,O,s)=>{var d=s(81471);h.exports=d},90229:(h,O,s)=>{var d=s(5271);h.exports=d},53949:(h,O,s)=>{var d=s(87275);h.exports=d},11795:(h,O,s)=>{var d=s(13772);h.exports=d},75090:(h,O,s)=>{var d=s(97574);h.exports=d},27994:(h,O,s)=>{var d=s(69373);h.exports=d},45483:(h,O,s)=>{var d=s(70033);h.exports=d},35796:(h,O,s)=>{var d=s(77443);h.exports=d},79918:(h,O,s)=>{var d=s(88362);s(12752),s(14562),s(25363),s(69355),h.exports=d},82185:(h,O,s)=>{var d=s(89821);s(60177),s(9031),s(96658),s(54212),s(18658),s(71875),s(54592),s(26680),h.exports=d},39982:(h,O,s)=>{var d=s(8008);h.exports=d},66235:(h,O,s)=>{var d=s(16447),x=s(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a function")}},71404:(h,O,s)=>{var d=s(22091),x=s(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a constructor")}},7757:(h,O,s)=>{var d=s(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,O,s)=>{var d=s(8902),x=TypeError;h.exports=function(w,A){if(d(A,w))return w;throw x("Incorrect invocation")}},31138:(h,O,s)=>{var d=s(35744),x=String,w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not an object")}},80410:(h,O,s)=>{var d=s(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,O,s)=>{"use strict";var d=s(50454).forEach,x=s(10424),w=x("forEach");h.exports=w?[].forEach:function(E){return d(this,E,arguments.length>1?arguments[1]:void 0)}},20841:(h,O,s)=>{"use strict";var d=s(8043),x=s(18922),w=s(71795),A=s(21635),E=s(96109),F=s(22091),W=s(84104),Z=s(49361),ee=s(61669),ue=s(78703),ne=Array;h.exports=function(Y){var P=w(Y),G=F(this),N=arguments.length,C=N>1?arguments[1]:void 0,k=C!==void 0;k&&(C=d(C,N>2?arguments[2]:void 0));var j=ue(P),J=0,K,U,re,X,z,ce;if(j&&!(this===ne&&E(j)))for(X=ee(P,j),z=X.next,U=G?new this:[];!(re=x(z,X)).done;J++)ce=k?A(X,C,[re.value,J],!0):re.value,Z(U,J,ce);else for(K=W(P),U=G?new this(K):ne(K);K>J;J++)ce=k?C(P[J],J):P[J],Z(U,J,ce);return U.length=J,U}},48180:(h,O,s)=>{var d=s(20101),x=s(97739),w=s(84104),A=function(E){return function(F,W,Z){var ee=d(F),ue=w(ee),ne=x(Z,ue),ae;if(E&&W!=W){for(;ue>ne;)if(ae=ee[ne++],ae!=ae)return!0}else for(;ue>ne;ne++)if((E||ne in ee)&&ee[ne]===W)return E||ne||0;return!E&&-1}};h.exports={includes:A(!0),indexOf:A(!1)}},50454:(h,O,s)=>{var d=s(8043),x=s(84120),w=s(2202),A=s(71795),E=s(84104),F=s(71321),W=x([].push),Z=function(ee){var ue=ee==1,ne=ee==2,ae=ee==3,Y=ee==4,P=ee==6,G=ee==7,N=ee==5||P;return function(C,k,j,J){for(var K=A(C),U=w(K),re=d(k,j),X=E(U),z=0,ce=J||F,he=ue?ce(C,X):ne||G?ce(C,0):void 0,_,Q;X>z;z++)if((N||z in U)&&(_=U[z],Q=re(_,z,K),ee))if(ue)he[z]=Q;else if(Q)switch(ee){case 3:return!0;case 5:return _;case 6:return z;case 2:W(he,_)}else switch(ee){case 4:return!1;case 7:W(he,_)}return P?-1:ae||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,O,s)=>{var d=s(76192),x=s(18182),w=s(14218),A=x("species");h.exports=function(E){return w>=51||!d(function(){var F=[],W=F.constructor={};return W[A]=function(){return{foo:1}},F[E](Boolean).foo!==1})}},10424:(h,O,s)=>{"use strict";var d=s(76192);h.exports=function(x,w){var A=[][x];return!!A&&d(function(){A.call(null,w||function(){return 1},1)})}},95072:(h,O,s)=>{"use strict";var d=s(50069),x=s(34770),w=TypeError,A=Object.getOwnPropertyDescriptor,E=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();h.exports=E?function(F,W){if(x(F)&&!A(F,"length").writable)throw w("Cannot set read only .length");return F.length=W}:function(F,W){return F.length=W}},1923:(h,O,s)=>{var d=s(97739),x=s(84104),w=s(49361),A=Array,E=Math.max;h.exports=function(F,W,Z){for(var ee=x(F),ue=d(W,ee),ne=d(Z===void 0?ee:Z,ee),ae=A(E(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(ae,Y,F[ue]);return ae.length=Y,ae}},93096:(h,O,s)=>{var d=s(84120);h.exports=d([].slice)},6614:(h,O,s)=>{var d=s(1923),x=Math.floor,w=function(F,W){var Z=F.length,ee=x(Z/2);return Z<8?A(F,W):E(F,w(d(F,0,ee),W),w(d(F,ee),W),W)},A=function(F,W){for(var Z=F.length,ee=1,ue,ne;ee<Z;){for(ne=ee,ue=F[ee];ne&&W(F[ne-1],ue)>0;)F[ne]=F[--ne];ne!==ee++&&(F[ne]=ue)}return F},E=function(F,W,Z,ee){for(var ue=W.length,ne=Z.length,ae=0,Y=0;ae<ue||Y<ne;)F[ae+Y]=ae<ue&&Y<ne?ee(W[ae],Z[Y])<=0?W[ae++]:Z[Y++]:ae<ue?W[ae++]:Z[Y++];return F};h.exports=w},83712:(h,O,s)=>{var d=s(34770),x=s(22091),w=s(35744),A=s(18182),E=A("species"),F=Array;h.exports=function(W){var Z;return d(W)&&(Z=W.constructor,x(Z)&&(Z===F||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[E],Z===null&&(Z=void 0))),Z===void 0?F:Z}},71321:(h,O,s)=>{var d=s(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,O,s)=>{var d=s(31138),x=s(66639);h.exports=function(w,A,E,F){try{return F?A(d(E)[0],E[1]):A(E)}catch(W){x(w,"throw",W)}}},19770:(h,O,s)=>{var d=s(18182),x=d("iterator"),w=!1;try{var A=0,E={next:function(){return{done:!!A++}},return:function(){w=!0}};E[x]=function(){return this},Array.from(E,function(){throw 2})}catch(F){}h.exports=function(F,W){if(!W&&!w)return!1;var Z=!1;try{var ee={};ee[x]=function(){return{next:function(){return{done:Z=!0}}}},F(ee)}catch(ue){}return Z}},29272:(h,O,s)=>{var d=s(41258),x=d({}.toString),w=d("".slice);h.exports=function(A){return w(x(A),8,-1)}},4696:(h,O,s)=>{var d=s(83471),x=s(16447),w=s(29272),A=s(18182),E=A("toStringTag"),F=Object,W=w(function(){return arguments}())=="Arguments",Z=function(ee,ue){try{return ee[ue]}catch(ne){}};h.exports=d?w:function(ee){var ue,ne,ae;return ee===void 0?"Undefined":ee===null?"Null":typeof(ne=Z(ue=F(ee),E))=="string"?ne:W?w(ue):(ae=w(ue))=="Object"&&x(ue.callee)?"Arguments":ae}},51057:(h,O,s)=>{"use strict";var d=s(84120),x=s(35090),w=s(32861).getWeakData,A=s(46961),E=s(31138),F=s(75646),W=s(35744),Z=s(33442),ee=s(50454),ue=s(64500),ne=s(73326),ae=ne.set,Y=ne.getterFor,P=ee.find,G=ee.findIndex,N=d([].splice),C=0,k=function(K){return K.frozen||(K.frozen=new j)},j=function(){this.entries=[]},J=function(K,U){return P(K.entries,function(re){return re[0]===U})};j.prototype={get:function(K){var U=J(this,K);if(U)return U[1]},has:function(K){return!!J(this,K)},set:function(K,U){var re=J(this,K);re?re[1]=U:this.entries.push([K,U])},delete:function(K){var U=G(this.entries,function(re){return re[0]===K});return~U&&N(this.entries,U,1),!!~U}},h.exports={getConstructor:function(K,U,re,X){var z=K(function(Q,H){A(Q,ce),ae(Q,{type:U,id:C++,frozen:void 0}),F(H)||Z(H,Q[X],{that:Q,AS_ENTRIES:re})}),ce=z.prototype,he=Y(U),_=function(Q,H,ye){var ke=he(Q),je=w(E(H),!0);return je===!0?k(ke).set(H,ye):je[ke.id]=ye,Q};return x(ce,{delete:function(Q){var H=he(this);if(!W(Q))return!1;var ye=w(Q);return ye===!0?k(H).delete(Q):ye&&ue(ye,H.id)&&delete ye[H.id]},has:function(H){var ye=he(this);if(!W(H))return!1;var ke=w(H);return ke===!0?k(ye).has(H):ke&&ue(ke,ye.id)}}),x(ce,re?{get:function(H){var ye=he(this);if(W(H)){var ke=w(H);return ke===!0?k(ye).get(H):ke?ke[ye.id]:void 0}},set:function(H,ye){return _(this,H,ye)}}:{add:function(H){return _(this,H,!0)}}),z}}},34535:(h,O,s)=>{"use strict";var d=s(93085),x=s(98576),w=s(32861),A=s(76192),E=s(98711),F=s(33442),W=s(46961),Z=s(16447),ee=s(35744),ue=s(11284),ne=s(42760).f,ae=s(50454).forEach,Y=s(50069),P=s(73326),G=P.set,N=P.getterFor;h.exports=function(C,k,j){var J=C.indexOf("Map")!==-1,K=C.indexOf("Weak")!==-1,U=J?"set":"add",re=x[C],X=re&&re.prototype,z={},ce;if(!Y||!Z(re)||!(K||X.forEach&&!A(function(){new re().entries().next()})))ce=j.getConstructor(k,C,J,U),w.enable();else{ce=k(function(Q,H){G(W(Q,he),{type:C,collection:new re}),H!=null&&F(H,Q[U],{that:Q,AS_ENTRIES:J})});var he=ce.prototype,_=N(C);ae(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Q){var H=Q=="add"||Q=="set";Q in X&&!(K&&Q=="clear")&&E(he,Q,function(ye,ke){var je=_(this).collection;if(!H&&K&&!ee(ye))return Q=="get"?void 0:!1;var De=je[Q](ye===0?0:ye,ke);return H?this:De})}),K||ne(he,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(ce,C,!1,!0),z[C]=ce,d({global:!0,forced:!0},z),K||j.setStrong(ce,C,J),ce}},97987:(h,O,s)=>{var d=s(64500),x=s(93011),w=s(5141),A=s(42760);h.exports=function(E,F,W){for(var Z=x(F),ee=A.f,ue=w.f,ne=0;ne<Z.length;ne++){var ae=Z[ne];!d(E,ae)&&!(W&&d(W,ae))&&ee(E,ae,ue(F,ae))}}},83519:(h,O,s)=>{var d=s(18182),x=d("match");h.exports=function(w){var A=/./;try{"/./"[w](A)}catch(E){try{return A[x]=!1,"/./"[w](A)}catch(F){}}return!1}},4635:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(O,s){return{value:O,done:s}}},98711:(h,O,s)=>{var d=s(50069),x=s(42760),w=s(90774);h.exports=d?function(A,E,F){return x.f(A,E,w(1,F))}:function(A,E,F){return A[E]=F,A}},90774:h=>{h.exports=function(O,s){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:s}}},49361:(h,O,s)=>{"use strict";var d=s(40077),x=s(42760),w=s(90774);h.exports=function(A,E,F){var W=d(E);W in A?x.f(A,W,w(0,F)):A[W]=F}},59362:(h,O,s)=>{var d=s(98711);h.exports=function(x,w,A,E){return E&&E.enumerable?x[w]=A:d(x,w,A),x}},35090:(h,O,s)=>{var d=s(59362);h.exports=function(x,w,A){for(var E in w)A&&A.unsafe&&x[E]?x[E]=w[E]:d(x,E,w[E],A);return x}},65098:(h,O,s)=>{var d=s(98576),x=Object.defineProperty;h.exports=function(w,A){try{x(d,w,{value:A,configurable:!0,writable:!0})}catch(E){d[w]=A}return A}},29970:(h,O,s)=>{"use strict";var d=s(79288),x=TypeError;h.exports=function(w,A){if(!delete w[A])throw x("Cannot delete property "+d(A)+" of "+d(w))}},50069:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var O=typeof document=="object"&&document.all,s=typeof O=="undefined"&&O!==void 0;h.exports={all:O,IS_HTMLDDA:s}},67449:(h,O,s)=>{var d=s(98576),x=s(35744),w=d.document,A=x(w)&&x(w.createElement);h.exports=function(E){return A?w.createElement(E):{}}},29425:h=>{var O=TypeError,s=9007199254740991;h.exports=function(d){if(d>s)throw O("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,O,s)=>{var d=s(60659),x=s(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,O,s)=>{var d=s(78989),x=s(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,O,s)=>{var d=s(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,O,s)=>{var d=s(29272),x=s(98576);h.exports=d(x.process)=="process"},5914:(h,O,s)=>{var d=s(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,O,s)=>{var d=s(10150);h.exports=d("navigator","userAgent")||""},14218:(h,O,s)=>{var d=s(98576),x=s(78989),w=d.process,A=d.Deno,E=w&&w.versions||A&&A.version,F=E&&E.v8,W,Z;F&&(W=F.split("."),Z=W[0]>0&&W[0]<4?1:+(W[0]+W[1])),!Z&&x&&(W=x.match(/Edge\/(\d+)/),(!W||W[1]>=74)&&(W=x.match(/Chrome\/(\d+)/),W&&(Z=+W[1]))),h.exports=Z},45607:(h,O,s)=>{var d=s(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,O,s)=>{var d=s(84120),x=Error,w=d("".replace),A=function(W){return String(x(W).stack)}("zxcasd"),E=/\n\s*at [^:]*:[^\n]*/,F=E.test(A);h.exports=function(W,Z){if(F&&typeof W=="string"&&!x.prepareStackTrace)for(;Z--;)W=w(W,E,"");return W}},50274:(h,O,s)=>{var d=s(76192),x=s(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,O,s)=>{"use strict";var d=s(98576),x=s(86298),w=s(84120),A=s(16447),E=s(5141).f,F=s(89245),W=s(57545),Z=s(8043),ee=s(98711),ue=s(64500),ne=function(ae){var Y=function(P,G,N){if(this instanceof Y){switch(arguments.length){case 0:return new ae;case 1:return new ae(P);case 2:return new ae(P,G)}return new ae(P,G,N)}return x(ae,this,arguments)};return Y.prototype=ae.prototype,Y};h.exports=function(ae,Y){var P=ae.target,G=ae.global,N=ae.stat,C=ae.proto,k=G?d:N?d[P]:(d[P]||{}).prototype,j=G?W:W[P]||ee(W,P,{})[P],J=j.prototype,K,U,re,X,z,ce,he,_,Q;for(X in Y)K=F(G?X:P+(N?".":"#")+X,ae.forced),U=!K&&k&&ue(k,X),ce=j[X],U&&(ae.dontCallGetSet?(Q=E(k,X),he=Q&&Q.value):he=k[X]),z=U&&he?he:Y[X],!(U&&typeof ce==typeof z)&&(ae.bind&&U?_=Z(z,d):ae.wrap&&U?_=ne(z):C&&A(z)?_=w(z):_=z,(ae.sham||z&&z.sham||ce&&ce.sham)&&ee(_,"sham",!0),ee(j,X,_),C&&(re=P+"Prototype",ue(W,re)||ee(W,re,{}),ee(W[re],X,z),ae.real&&J&&!J[X]&&ee(J,X,z)))}},76192:h=>{h.exports=function(O){try{return!!O()}catch(s){return!0}}},47636:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,O,s)=>{var d=s(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,O,s)=>{var d=s(84120),x=s(66235),w=s(22784),A=d(d.bind);h.exports=function(E,F){return x(E),F===void 0?E:w?A(E,F):function(){return E.apply(F,arguments)}}},22784:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,O,s)=>{var d=s(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,O,s)=>{var d=s(50069),x=s(64500),w=Function.prototype,A=d&&Object.getOwnPropertyDescriptor,E=x(w,"name"),F=E&&function(){}.name==="something",W=E&&(!d||d&&A(w,"name").configurable);h.exports={EXISTS:E,PROPER:F,CONFIGURABLE:W}},41258:(h,O,s)=>{var d=s(22784),x=Function.prototype,w=x.call,A=d&&x.bind.bind(w,w);h.exports=function(E){return d?A(E):function(){return w.apply(E,arguments)}}},84120:(h,O,s)=>{var d=s(29272),x=s(41258);h.exports=function(w){if(d(w)==="Function")return x(w)}},10150:(h,O,s)=>{var d=s(57545),x=s(98576),w=s(16447),A=function(E){return w(E)?E:void 0};h.exports=function(E,F){return arguments.length<2?A(d[E])||A(x[E]):d[E]&&d[E][F]||x[E]&&x[E][F]}},78703:(h,O,s)=>{var d=s(4696),x=s(75037),w=s(75646),A=s(47771),E=s(18182),F=E("iterator");h.exports=function(W){if(!w(W))return x(W,F)||x(W,"@@iterator")||A[d(W)]}},61669:(h,O,s)=>{var d=s(18922),x=s(66235),w=s(31138),A=s(79288),E=s(78703),F=TypeError;h.exports=function(W,Z){var ee=arguments.length<2?E(W):Z;if(x(ee))return w(d(ee,W));throw F(A(W)+" is not iterable")}},75037:(h,O,s)=>{var d=s(66235),x=s(75646);h.exports=function(w,A){var E=w[A];return x(E)?void 0:d(E)}},98576:(h,O,s)=>{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 s.g=="object"&&s.g)||function(){return this}()||Function("return this")()},64500:(h,O,s)=>{var d=s(84120),x=s(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(E,F){return w(x(E),F)}},14535:h=>{h.exports={}},63681:(h,O,s)=>{var d=s(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,O,s)=>{var d=s(10150);h.exports=d("document","documentElement")},80188:(h,O,s)=>{var d=s(50069),x=s(76192),w=s(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,O,s)=>{var d=s(84120),x=s(76192),w=s(29272),A=Object,E=d("".split);h.exports=x(function(){return!A("z").propertyIsEnumerable(0)})?function(F){return w(F)=="String"?E(F,""):A(F)}:A},19516:(h,O,s)=>{var d=s(84120),x=s(16447),w=s(46434),A=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(E){return A(E)}),h.exports=w.inspectSource},10273:(h,O,s)=>{var d=s(35744),x=s(98711);h.exports=function(w,A){d(A)&&"cause"in A&&x(w,"cause",A.cause)}},32861:(h,O,s)=>{var d=s(93085),x=s(84120),w=s(14535),A=s(35744),E=s(64500),F=s(42760).f,W=s(92092),Z=s(24052),ee=s(4532),ue=s(42759),ne=s(47636),ae=!1,Y=ue("meta"),P=0,G=function(K){F(K,Y,{value:{objectID:"O"+P++,weakData:{}}})},N=function(K,U){if(!A(K))return typeof K=="symbol"?K:(typeof K=="string"?"S":"P")+K;if(!E(K,Y)){if(!ee(K))return"F";if(!U)return"E";G(K)}return K[Y].objectID},C=function(K,U){if(!E(K,Y)){if(!ee(K))return!0;if(!U)return!1;G(K)}return K[Y].weakData},k=function(K){return ne&&ae&&ee(K)&&!E(K,Y)&&G(K),K},j=function(){J.enable=function(){},ae=!0;var K=W.f,U=x([].splice),re={};re[Y]=1,K(re).length&&(W.f=function(X){for(var z=K(X),ce=0,he=z.length;ce<he;ce++)if(z[ce]===Y){U(z,ce,1);break}return z},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},J=h.exports={enable:j,fastKey:N,getWeakData:C,onFreeze:k};w[Y]=!0},73326:(h,O,s)=>{var d=s(55278),x=s(98576),w=s(35744),A=s(98711),E=s(64500),F=s(46434),W=s(69766),Z=s(14535),ee="Object already initialized",ue=x.TypeError,ne=x.WeakMap,ae,Y,P,G=function(j){return P(j)?Y(j):ae(j,{})},N=function(j){return function(J){var K;if(!w(J)||(K=Y(J)).type!==j)throw ue("Incompatible receiver, "+j+" required");return K}};if(d||F.state){var C=F.state||(F.state=new ne);C.get=C.get,C.has=C.has,C.set=C.set,ae=function(j,J){if(C.has(j))throw ue(ee);return J.facade=j,C.set(j,J),J},Y=function(j){return C.get(j)||{}},P=function(j){return C.has(j)}}else{var k=W("state");Z[k]=!0,ae=function(j,J){if(E(j,k))throw ue(ee);return J.facade=j,A(j,k,J),J},Y=function(j){return E(j,k)?j[k]:{}},P=function(j){return E(j,k)}}h.exports={set:ae,get:Y,has:P,enforce:G,getterFor:N}},96109:(h,O,s)=>{var d=s(18182),x=s(47771),w=d("iterator"),A=Array.prototype;h.exports=function(E){return E!==void 0&&(x.Array===E||A[w]===E)}},34770:(h,O,s)=>{var d=s(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,O,s)=>{var d=s(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,O,s)=>{var d=s(84120),x=s(76192),w=s(16447),A=s(4696),E=s(10150),F=s(19516),W=function(){},Z=[],ee=E("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),ae=!ue.exec(W),Y=function(N){if(!w(N))return!1;try{return ee(W,Z,N),!0}catch(C){return!1}},P=function(N){if(!w(N))return!1;switch(A(N)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ne(ue,F(N))}catch(C){return!0}};P.sham=!0,h.exports=!ee||x(function(){var G;return Y(Y.call)||!Y(Object)||!Y(function(){G=!0})||G})?P:Y},89245:(h,O,s)=>{var d=s(76192),x=s(16447),w=/#|\.prototype\./,A=function(ee,ue){var ne=F[E(ee)];return ne==Z?!0:ne==W?!1:x(ue)?d(ue):!!ue},E=A.normalize=function(ee){return String(ee).replace(w,".").toLowerCase()},F=A.data={},W=A.NATIVE="N",Z=A.POLYFILL="P";h.exports=A},75646:h=>{h.exports=function(O){return O==null}},35744:(h,O,s)=>{var d=s(16447),x=s(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,O,s)=>{var d=s(35744),x=s(29272),w=s(18182),A=w("match");h.exports=function(E){var F;return d(E)&&((F=E[A])!==void 0?!!F:x(E)=="RegExp")}},23236:(h,O,s)=>{var d=s(10150),x=s(16447),w=s(8902),A=s(50615),E=Object;h.exports=A?function(F){return typeof F=="symbol"}:function(F){var W=d("Symbol");return x(W)&&w(W.prototype,E(F))}},33442:(h,O,s)=>{var d=s(8043),x=s(18922),w=s(31138),A=s(79288),E=s(96109),F=s(84104),W=s(8902),Z=s(61669),ee=s(78703),ue=s(66639),ne=TypeError,ae=function(P,G){this.stopped=P,this.result=G},Y=ae.prototype;h.exports=function(P,G,N){var C=N&&N.that,k=!!(N&&N.AS_ENTRIES),j=!!(N&&N.IS_RECORD),J=!!(N&&N.IS_ITERATOR),K=!!(N&&N.INTERRUPTED),U=d(G,C),re,X,z,ce,he,_,Q,H=function(ke){return re&&ue(re,"normal",ke),new ae(!0,ke)},ye=function(ke){return k?(w(ke),K?U(ke[0],ke[1],H):U(ke[0],ke[1])):K?U(ke,H):U(ke)};if(j)re=P.iterator;else if(J)re=P;else{if(X=ee(P),!X)throw ne(A(P)+" is not iterable");if(E(X)){for(z=0,ce=F(P);ce>z;z++)if(he=ye(P[z]),he&&W(Y,he))return he;return new ae(!1)}re=Z(P,X)}for(_=j?P.next:re.next;!(Q=x(_,re)).done;){try{he=ye(Q.value)}catch(ke){ue(re,"throw",ke)}if(typeof he=="object"&&he&&W(Y,he))return he}return new ae(!1)}},66639:(h,O,s)=>{var d=s(18922),x=s(31138),w=s(75037);h.exports=function(A,E,F){var W,Z;x(A);try{if(W=w(A,"return"),!W){if(E==="throw")throw F;return F}W=d(W,A)}catch(ee){Z=!0,W=ee}if(E==="throw")throw F;if(Z)throw W;return x(W),F}},25695:(h,O,s)=>{"use strict";var d=s(54413).IteratorPrototype,x=s(52853),w=s(90774),A=s(11284),E=s(47771),F=function(){return this};h.exports=function(W,Z,ee,ue){var ne=Z+" Iterator";return W.prototype=x(d,{next:w(+!ue,ee)}),A(W,ne,!1,!0),E[ne]=F,W}},65297:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(85546),A=s(22282),E=s(16447),F=s(25695),W=s(89341),Z=s(24469),ee=s(11284),ue=s(98711),ne=s(59362),ae=s(18182),Y=s(47771),P=s(54413),G=A.PROPER,N=A.CONFIGURABLE,C=P.IteratorPrototype,k=P.BUGGY_SAFARI_ITERATORS,j=ae("iterator"),J="keys",K="values",U="entries",re=function(){return this};h.exports=function(X,z,ce,he,_,Q,H){F(ce,z,he);var ye=function(Pe){if(Pe===_&&tt)return tt;if(!k&&Pe in De)return De[Pe];switch(Pe){case J:return function(){return new ce(this,Pe)};case K:return function(){return new ce(this,Pe)};case U:return function(){return new ce(this,Pe)}}return function(){return new ce(this)}},ke=z+" Iterator",je=!1,De=X.prototype,nt=De[j]||De["@@iterator"]||_&&De[_],tt=!k&&nt||ye(_),bt=z=="Array"&&De.entries||nt,Ne,Oe,He;if(bt&&(Ne=W(bt.call(new X)),Ne!==Object.prototype&&Ne.next&&(!w&&W(Ne)!==C&&(Z?Z(Ne,C):E(Ne[j])||ne(Ne,j,re)),ee(Ne,ke,!0,!0),w&&(Y[ke]=re))),G&&_==K&&nt&&nt.name!==K&&(!w&&N?ue(De,"name",K):(je=!0,tt=function(){return x(nt,this)})),_)if(Oe={values:ye(K),keys:Q?tt:ye(J),entries:ye(U)},H)for(He in Oe)(k||je||!(He in De))&&ne(De,He,Oe[He]);else d({target:z,proto:!0,forced:k||je},Oe);return(!w||H)&&De[j]!==tt&&ne(De,j,tt,{name:_}),Y[z]=tt,Oe}},54413:(h,O,s)=>{"use strict";var d=s(76192),x=s(16447),w=s(35744),A=s(52853),E=s(89341),F=s(59362),W=s(18182),Z=s(85546),ee=W("iterator"),ue=!1,ne,ae,Y;[].keys&&(Y=[].keys(),"next"in Y?(ae=E(E(Y)),ae!==Object.prototype&&(ne=ae)):ue=!0);var P=!w(ne)||d(function(){var G={};return ne[ee].call(G)!==G});P?ne={}:Z&&(ne=A(ne)),x(ne[ee])||F(ne,ee,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,O,s)=>{var d=s(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var O=Math.ceil,s=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?s:O)(w)}},12950:(h,O,s)=>{var d=s(98576),x=s(8043),w=s(5141).f,A=s(67160).set,E=s(69536),F=s(29347),W=s(5914),Z=s(58189),ee=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,ae=d.Promise,Y=w(d,"queueMicrotask"),P=Y&&Y.value,G,N,C,k,j,J,K,U;P||(G=function(){var re,X;for(Z&&(re=ne.domain)&&re.exit();N;){X=N.fn,N=N.next;try{X()}catch(z){throw N?k():C=void 0,z}}C=void 0,re&&re.enter()},!E&&!Z&&!W&&ee&&ue?(j=!0,J=ue.createTextNode(""),new ee(G).observe(J,{characterData:!0}),k=function(){J.data=j=!j}):!F&&ae&&ae.resolve?(K=ae.resolve(void 0),K.constructor=ae,U=x(K.then,K),k=function(){U(G)}):Z?k=function(){ne.nextTick(G)}:(A=x(A,d),k=function(){A(G)})),h.exports=P||function(re){var X={fn:re,next:void 0};C&&(C.next=X),N||(N=X,k()),C=X}},99438:(h,O,s)=>{"use strict";var d=s(66235),x=TypeError,w=function(A){var E,F;this.promise=new A(function(W,Z){if(E!==void 0||F!==void 0)throw x("Bad Promise constructor");E=W,F=Z}),this.resolve=d(E),this.reject=d(F)};h.exports.f=function(A){return new w(A)}},36016:(h,O,s)=>{var d=s(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,O,s)=>{var d=s(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,O,s)=>{"use strict";var d=s(50069),x=s(84120),w=s(18922),A=s(76192),E=s(57653),F=s(84750),W=s(56007),Z=s(71795),ee=s(2202),ue=Object.assign,ne=Object.defineProperty,ae=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={},G=Symbol(),N="abcdefghijklmnopqrst";return Y[G]=7,N.split("").forEach(function(C){P[C]=C}),ue({},Y)[G]!=7||E(ue({},P)).join("")!=N})?function(P,G){for(var N=Z(P),C=arguments.length,k=1,j=F.f,J=W.f;C>k;)for(var K=ee(arguments[k++]),U=j?ae(E(K),j(K)):E(K),re=U.length,X=0,z;re>X;)z=U[X++],(!d||w(J,K,z))&&(N[z]=K[z]);return N}:ue},52853:(h,O,s)=>{var d=s(31138),x=s(11187),w=s(82952),A=s(14535),E=s(47403),F=s(67449),W=s(69766),Z=">",ee="<",ue="prototype",ne="script",ae=W("IE_PROTO"),Y=function(){},P=function(j){return ee+ne+Z+j+ee+"/"+ne+Z},G=function(j){j.write(P("")),j.close();var J=j.parentWindow.Object;return j=null,J},N=function(){var j=F("iframe"),J="java"+ne+":",K;return j.style.display="none",E.appendChild(j),j.src=String(J),K=j.contentWindow.document,K.open(),K.write(P("document.F=Object")),K.close(),K.F},C,k=function(){try{C=new ActiveXObject("htmlfile")}catch(J){}k=typeof document!="undefined"?document.domain&&C?G(C):N():G(C);for(var j=w.length;j--;)delete k[ue][w[j]];return k()};A[ae]=!0,h.exports=Object.create||function(J,K){var U;return J!==null?(Y[ue]=d(J),U=new Y,Y[ue]=null,U[ae]=J):U=k(),K===void 0?U:x.f(U,K)}},11187:(h,O,s)=>{var d=s(50069),x=s(69600),w=s(42760),A=s(31138),E=s(20101),F=s(57653);O.f=d&&!x?Object.defineProperties:function(Z,ee){A(Z);for(var ue=E(ee),ne=F(ee),ae=ne.length,Y=0,P;ae>Y;)w.f(Z,P=ne[Y++],ue[P]);return Z}},42760:(h,O,s)=>{var d=s(50069),x=s(80188),w=s(69600),A=s(31138),E=s(40077),F=TypeError,W=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,ee="enumerable",ue="configurable",ne="writable";O.f=d?w?function(Y,P,G){if(A(Y),P=E(P),A(G),typeof Y=="function"&&P==="prototype"&&"value"in G&&ne in G&&!G[ne]){var N=Z(Y,P);N&&N[ne]&&(Y[P]=G.value,G={configurable:ue in G?G[ue]:N[ue],enumerable:ee in G?G[ee]:N[ee],writable:!1})}return W(Y,P,G)}:W:function(Y,P,G){if(A(Y),P=E(P),A(G),x)try{return W(Y,P,G)}catch(N){}if("get"in G||"set"in G)throw F("Accessors not supported");return"value"in G&&(Y[P]=G.value),Y}},5141:(h,O,s)=>{var d=s(50069),x=s(18922),w=s(56007),A=s(90774),E=s(20101),F=s(40077),W=s(64500),Z=s(80188),ee=Object.getOwnPropertyDescriptor;O.f=d?ee:function(ne,ae){if(ne=E(ne),ae=F(ae),Z)try{return ee(ne,ae)}catch(Y){}if(W(ne,ae))return A(!x(w.f,ne,ae),ne[ae])}},24052:(h,O,s)=>{var d=s(29272),x=s(20101),w=s(92092).f,A=s(1923),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(W){try{return w(W)}catch(Z){return A(E)}};h.exports.f=function(Z){return E&&d(Z)=="Window"?F(Z):w(x(Z))}},92092:(h,O,s)=>{var d=s(57934),x=s(82952),w=x.concat("length","prototype");O.f=Object.getOwnPropertyNames||function(E){return d(E,w)}},84750:(h,O)=>{O.f=Object.getOwnPropertySymbols},89341:(h,O,s)=>{var d=s(64500),x=s(16447),w=s(71795),A=s(69766),E=s(4635),F=A("IE_PROTO"),W=Object,Z=W.prototype;h.exports=E?W.getPrototypeOf:function(ee){var ue=w(ee);if(d(ue,F))return ue[F];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof W?Z:null}},4532:(h,O,s)=>{var d=s(76192),x=s(35744),w=s(29272),A=s(80410),E=Object.isExtensible,F=d(function(){E(1)});h.exports=F||A?function(Z){return!x(Z)||A&&w(Z)=="ArrayBuffer"?!1:E?E(Z):!0}:E},8902:(h,O,s)=>{var d=s(84120);h.exports=d({}.isPrototypeOf)},57934:(h,O,s)=>{var d=s(84120),x=s(64500),w=s(20101),A=s(48180).indexOf,E=s(14535),F=d([].push);h.exports=function(W,Z){var ee=w(W),ue=0,ne=[],ae;for(ae in ee)!x(E,ae)&&x(ee,ae)&&F(ne,ae);for(;Z.length>ue;)x(ee,ae=Z[ue++])&&(~A(ne,ae)||F(ne,ae));return ne}},57653:(h,O,s)=>{var d=s(57934),x=s(82952);h.exports=Object.keys||function(A){return d(A,x)}},56007:(h,O)=>{"use strict";var s={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!s.call({1:2},1);O.f=x?function(A){var E=d(this,A);return!!E&&E.enumerable}:s},24469:(h,O,s)=>{var d=s(84120),x=s(31138),w=s(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,E={},F;try{F=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(E,[]),A=E instanceof Array}catch(W){}return function(Z,ee){return x(Z),w(ee),A?F(Z,ee):Z.__proto__=ee,Z}}():void 0)},75370:(h,O,s)=>{var d=s(50069),x=s(84120),w=s(57653),A=s(20101),E=s(56007).f,F=x(E),W=x([].push),Z=function(ee){return function(ue){for(var ne=A(ue),ae=w(ne),Y=ae.length,P=0,G=[],N;Y>P;)N=ae[P++],(!d||F(ne,N))&&W(G,ee?[N,ne[N]]:ne[N]);return G}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,O,s)=>{"use strict";var d=s(83471),x=s(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,O,s)=>{var d=s(18922),x=s(16447),w=s(35744),A=TypeError;h.exports=function(E,F){var W,Z;if(F==="string"&&x(W=E.toString)&&!w(Z=d(W,E))||x(W=E.valueOf)&&!w(Z=d(W,E))||F!=="string"&&x(W=E.toString)&&!w(Z=d(W,E)))return Z;throw A("Can't convert object to primitive value")}},93011:(h,O,s)=>{var d=s(10150),x=s(84120),w=s(92092),A=s(84750),E=s(31138),F=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var ee=w.f(E(Z)),ue=A.f;return ue?F(ee,ue(Z)):ee}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(O){try{return{error:!1,value:O()}}catch(s){return{error:!0,value:s}}}},30511:(h,O,s)=>{var d=s(98576),x=s(15813),w=s(16447),A=s(89245),E=s(19516),F=s(18182),W=s(82957),Z=s(60659),ee=s(85546),ue=s(14218),ne=x&&x.prototype,ae=F("species"),Y=!1,P=w(d.PromiseRejectionEvent),G=A("Promise",function(){var N=E(x),C=N!==String(x);if(!C&&ue===66||ee&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(N)){var k=new x(function(K){K(1)}),j=function(K){K(function(){},function(){})},J=k.constructor={};if(J[ae]=j,Y=k.then(function(){})instanceof j,!Y)return!0}return!C&&(W||Z)&&!P});h.exports={CONSTRUCTOR:G,REJECTION_EVENT:P,SUBCLASSING:Y}},15813:(h,O,s)=>{var d=s(98576);h.exports=d.Promise},19126:(h,O,s)=>{var d=s(31138),x=s(35744),w=s(99438);h.exports=function(A,E){if(d(A),x(E)&&E.constructor===A)return E;var F=w.f(A),W=F.resolve;return W(E),F.promise}},52775:(h,O,s)=>{var d=s(15813),x=s(19770),w=s(30511).CONSTRUCTOR;h.exports=w||!x(function(A){d.all(A).then(void 0,function(){})})},6412:h=>{var O=function(){this.head=null,this.tail=null};O.prototype={add:function(s){var d={item:s,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var s=this.head;if(s)return this.head=s.next,this.tail===s&&(this.tail=null),s.item}},h.exports=O},13209:(h,O,s)=>{var d=s(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,O,s)=>{"use strict";var d=s(10150),x=s(42760),w=s(18182),A=s(50069),E=w("species");h.exports=function(F){var W=d(F),Z=x.f;A&&W&&!W[E]&&Z(W,E,{configurable:!0,get:function(){return this}})}},11284:(h,O,s)=>{var d=s(83471),x=s(42760).f,w=s(98711),A=s(64500),E=s(40158),F=s(18182),W=F("toStringTag");h.exports=function(Z,ee,ue,ne){if(Z){var ae=ue?Z:Z.prototype;A(ae,W)||x(ae,W,{configurable:!0,value:ee}),ne&&!d&&w(ae,"toString",E)}}},69766:(h,O,s)=>{var d=s(98717),x=s(42759),w=d("keys");h.exports=function(A){return w[A]||(w[A]=x(A))}},46434:(h,O,s)=>{var d=s(98576),x=s(65098),w="__core-js_shared__",A=d[w]||x(w,{});h.exports=A},98717:(h,O,s)=>{var d=s(85546),x=s(46434);(h.exports=function(w,A){return x[w]||(x[w]=A!==void 0?A:{})})("versions",[]).push({version:"3.25.5",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,O,s)=>{var d=s(31138),x=s(71404),w=s(75646),A=s(18182),E=A("species");h.exports=function(F,W){var Z=d(F).constructor,ee;return Z===void 0||w(ee=d(Z)[E])?W:x(ee)}},863:(h,O,s)=>{var d=s(84120),x=s(41941),w=s(44845),A=s(13209),E=d("".charAt),F=d("".charCodeAt),W=d("".slice),Z=function(ee){return function(ue,ne){var ae=w(A(ue)),Y=x(ne),P=ae.length,G,N;return Y<0||Y>=P?ee?"":void 0:(G=F(ae,Y),G<55296||G>56319||Y+1===P||(N=F(ae,Y+1))<56320||N>57343?ee?E(ae,Y):G:ee?W(ae,Y,Y+2):(G-55296<<10)+(N-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,O,s)=>{var d=s(14218),x=s(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,O,s)=>{var d=s(18922),x=s(10150),w=s(18182),A=s(59362);h.exports=function(){var E=x("Symbol"),F=E&&E.prototype,W=F&&F.valueOf,Z=w("toPrimitive");F&&!F[Z]&&A(F,Z,function(ee){return d(W,this)},{arity:1})}},20031:(h,O,s)=>{var d=s(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,O,s)=>{var d=s(98576),x=s(86298),w=s(8043),A=s(16447),E=s(64500),F=s(76192),W=s(47403),Z=s(93096),ee=s(67449),ue=s(67822),ne=s(69536),ae=s(58189),Y=d.setImmediate,P=d.clearImmediate,G=d.process,N=d.Dispatch,C=d.Function,k=d.MessageChannel,j=d.String,J=0,K={},U="onreadystatechange",re,X,z,ce;try{re=d.location}catch(ye){}var he=function(ye){if(E(K,ye)){var ke=K[ye];delete K[ye],ke()}},_=function(ye){return function(){he(ye)}},Q=function(ye){he(ye.data)},H=function(ye){d.postMessage(j(ye),re.protocol+"//"+re.host)};(!Y||!P)&&(Y=function(ke){ue(arguments.length,1);var je=A(ke)?ke:C(ke),De=Z(arguments,1);return K[++J]=function(){x(je,void 0,De)},X(J),J},P=function(ke){delete K[ke]},ae?X=function(ye){G.nextTick(_(ye))}:N&&N.now?X=function(ye){N.now(_(ye))}:k&&!ne?(z=new k,ce=z.port2,z.port1.onmessage=Q,X=w(ce.postMessage,ce)):d.addEventListener&&A(d.postMessage)&&!d.importScripts&&re&&re.protocol!=="file:"&&!F(H)?(X=H,d.addEventListener("message",Q,!1)):U in ee("script")?X=function(ye){W.appendChild(ee("script"))[U]=function(){W.removeChild(this),he(ye)}}:X=function(ye){setTimeout(_(ye),0)}),h.exports={set:Y,clear:P}},97739:(h,O,s)=>{var d=s(41941),x=Math.max,w=Math.min;h.exports=function(A,E){var F=d(A);return F<0?x(F+E,0):w(F,E)}},20101:(h,O,s)=>{var d=s(2202),x=s(13209);h.exports=function(w){return d(x(w))}},41941:(h,O,s)=>{var d=s(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,O,s)=>{var d=s(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,O,s)=>{var d=s(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,O,s)=>{var d=s(18922),x=s(35744),w=s(23236),A=s(75037),E=s(380),F=s(18182),W=TypeError,Z=F("toPrimitive");h.exports=function(ee,ue){if(!x(ee)||w(ee))return ee;var ne=A(ee,Z),ae;if(ne){if(ue===void 0&&(ue="default"),ae=d(ne,ee,ue),!x(ae)||w(ae))return ae;throw W("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),E(ee,ue)}},40077:(h,O,s)=>{var d=s(97888),x=s(23236);h.exports=function(w){var A=d(w,"string");return x(A)?A:A+""}},83471:(h,O,s)=>{var d=s(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,O,s)=>{var d=s(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 O=String;h.exports=function(s){try{return O(s)}catch(d){return"Object"}}},42759:(h,O,s)=>{var d=s(84120),x=0,w=Math.random(),A=d(1 .toString);h.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+A(++x+w,36)}},58552:(h,O,s)=>{var d=s(76192),x=s(18182),w=s(85546),A=x("iterator");h.exports=!d(function(){var E=new URL("b?a=1&b=2&c=3","http://a"),F=E.searchParams,W="";return E.pathname="c%20d",F.forEach(function(Z,ee){F.delete("b"),W+=ee+Z}),w&&!E.toJSON||!F.sort||E.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[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"||W!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,O,s)=>{var d=s(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,O,s)=>{var d=s(50069),x=s(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var O=TypeError;h.exports=function(s,d){if(s<d)throw O("Not enough arguments");return s}},55278:(h,O,s)=>{var d=s(98576),x=s(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,O,s)=>{var d=s(57545),x=s(64500),w=s(89207),A=s(42760).f;h.exports=function(E){var F=d.Symbol||(d.Symbol={});x(F,E)||A(F,E,{value:w.f(E)})}},89207:(h,O,s)=>{var d=s(18182);O.f=d},18182:(h,O,s)=>{var d=s(98576),x=s(98717),w=s(64500),A=s(42759),E=s(36770),F=s(50615),W=x("wks"),Z=d.Symbol,ee=Z&&Z.for,ue=F?Z:Z&&Z.withoutSetter||A;h.exports=function(ne){if(!w(W,ne)||!(E||typeof W[ne]=="string")){var ae="Symbol."+ne;E&&w(Z,ne)?W[ne]=Z[ne]:F&&ee?W[ne]=ee(ae):W[ne]=ue(ae)}return W[ne]}},93820:(h,O,s)=>{"use strict";var d=s(93085),x=s(8902),w=s(89341),A=s(24469),E=s(97987),F=s(52853),W=s(98711),Z=s(90774),ee=s(14503),ue=s(10273),ne=s(33442),ae=s(36016),Y=s(18182),P=s(50274),G=Y("toStringTag"),N=Error,C=[].push,k=function(K,U){var re=arguments.length>2?arguments[2]:void 0,X=x(j,this),z;A?z=A(N(),X?w(this):j):(z=X?this:F(j),W(z,G,"Error")),U!==void 0&&W(z,"message",ae(U)),P&&W(z,"stack",ee(z.stack,1)),ue(z,re);var ce=[];return ne(K,C,{that:ce}),W(z,"errors",ce),z};A?A(k,N):E(k,N,{name:!0});var j=k.prototype=F(N.prototype,{constructor:Z(1,k),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(h,O,s)=>{s(93820)},59106:(h,O,s)=>{"use strict";var d=s(93085),x=s(76192),w=s(34770),A=s(35744),E=s(71795),F=s(84104),W=s(29425),Z=s(49361),ee=s(71321),ue=s(90242),ne=s(18182),ae=s(14218),Y=ne("isConcatSpreadable"),P=ae>=51||!x(function(){var k=[];return k[Y]=!1,k.concat()[0]!==k}),G=ue("concat"),N=function(k){if(!A(k))return!1;var j=k[Y];return j!==void 0?!!j:w(k)},C=!P||!G;d({target:"Array",proto:!0,arity:1,forced:C},{concat:function(j){var J=E(this),K=ee(J,0),U=0,re,X,z,ce,he;for(re=-1,z=arguments.length;re<z;re++)if(he=re===-1?J:arguments[re],N(he))for(ce=F(he),W(U+ce),X=0;X<ce;X++,U++)X in he&&Z(K,U,he[X]);else W(U+1),Z(K,U++,he);return K.length=U,K}})},73436:(h,O,s)=>{"use strict";var d=s(93085),x=s(50454).filter,w=s(90242),A=w("filter");d({target:"Array",proto:!0,forced:!A},{filter:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(h,O,s)=>{"use strict";var d=s(93085),x=s(50454).find,w=s(67423),A="find",E=!0;A in[]&&Array(1)[A](function(){E=!1}),d({target:"Array",proto:!0,forced:E},{find:function(W){return x(this,W,arguments.length>1?arguments[1]:void 0)}}),w(A)},9823:(h,O,s)=>{"use strict";var d=s(93085),x=s(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,O,s)=>{var d=s(93085),x=s(20841),w=s(19770),A=!w(function(E){Array.from(E)});d({target:"Array",stat:!0,forced:A},{from:x})},70024:(h,O,s)=>{"use strict";var d=s(93085),x=s(48180).includes,w=s(76192),A=s(67423),E=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:E},{includes:function(W){return x(this,W,arguments.length>1?arguments[1]:void 0)}}),A("includes")},62276:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(48180).indexOf,A=s(10424),E=x([].indexOf),F=!!E&&1/E([1],1,-0)<0,W=A("indexOf");d({target:"Array",proto:!0,forced:F||!W},{indexOf:function(ee){var ue=arguments.length>1?arguments[1]:void 0;return F?E(this,ee,ue)||0:w(this,ee,ue)}})},8118:(h,O,s)=>{var d=s(93085),x=s(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,O,s)=>{"use strict";var d=s(20101),x=s(67423),w=s(47771),A=s(73326),E=s(42760).f,F=s(65297),W=s(87271),Z=s(85546),ee=s(50069),ue="Array Iterator",ne=A.set,ae=A.getterFor(ue);h.exports=F(Array,"Array",function(P,G){ne(this,{type:ue,target:d(P),index:0,kind:G})},function(){var P=ae(this),G=P.target,N=P.kind,C=P.index++;return!G||C>=G.length?(P.target=void 0,W(void 0,!0)):N=="keys"?W(C,!1):N=="values"?W(G[C],!1):W([C,G[C]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&ee&&Y.name!=="values")try{E(Y,"name",{value:"values"})}catch(P){}},63838:(h,O,s)=>{"use strict";var d=s(93085),x=s(50454).map,w=s(90242),A=w("map");d({target:"Array",proto:!0,forced:!A},{map:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(34770),A=x([].reverse),E=[1,2];d({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),A(this)}})},65818:(h,O,s)=>{"use strict";var d=s(93085),x=s(34770),w=s(22091),A=s(35744),E=s(97739),F=s(84104),W=s(20101),Z=s(49361),ee=s(18182),ue=s(90242),ne=s(93096),ae=ue("slice"),Y=ee("species"),P=Array,G=Math.max;d({target:"Array",proto:!0,forced:!ae},{slice:function(C,k){var j=W(this),J=F(j),K=E(C,J),U=E(k===void 0?J:k,J),re,X,z;if(x(j)&&(re=j.constructor,w(re)&&(re===P||x(re.prototype))?re=void 0:A(re)&&(re=re[Y],re===null&&(re=void 0)),re===P||re===void 0))return ne(j,K,U);for(X=new(re===void 0?P:re)(G(U-K,0)),z=0;K<U;K++,z++)K in j&&Z(X,z,j[K]);return X.length=z,X}})},12178:(h,O,s)=>{"use strict";var d=s(93085),x=s(71795),w=s(97739),A=s(41941),E=s(84104),F=s(95072),W=s(29425),Z=s(71321),ee=s(49361),ue=s(29970),ne=s(90242),ae=ne("splice"),Y=Math.max,P=Math.min;d({target:"Array",proto:!0,forced:!ae},{splice:function(N,C){var k=x(this),j=E(k),J=w(N,j),K=arguments.length,U,re,X,z,ce,he;for(K===0?U=re=0:K===1?(U=0,re=j-J):(U=K-2,re=P(Y(A(C),0),j-J)),W(j+U-re),X=Z(k,re),z=0;z<re;z++)ce=J+z,ce in k&&ee(X,z,k[ce]);if(X.length=re,U<re){for(z=J;z<j-re;z++)ce=z+re,he=z+U,ce in k?k[he]=k[ce]:ue(k,he);for(z=j;z>j-re+U;z--)ue(k,z-1)}else if(U>re)for(z=j-re;z>J;z--)ce=z+re-1,he=z+U-1,ce in k?k[he]=k[ce]:ue(k,he);for(z=0;z<U;z++)k[z+J]=arguments[z+2];return F(k,j-re+U),X}})},25067:(h,O,s)=>{var d=s(93085),x=s(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,O,s)=>{var d=s(93085),x=s(10150),w=s(86298),A=s(18922),E=s(84120),F=s(76192),W=s(34770),Z=s(16447),ee=s(35744),ue=s(23236),ne=s(93096),ae=s(36770),Y=x("JSON","stringify"),P=E(/./.exec),G=E("".charAt),N=E("".charCodeAt),C=E("".replace),k=E(1 .toString),j=/[\uD800-\uDFFF]/g,J=/^[\uD800-\uDBFF]$/,K=/^[\uDC00-\uDFFF]$/,U=!ae||F(function(){var ce=x("Symbol")();return Y([ce])!="[null]"||Y({a:ce})!="{}"||Y(Object(ce))!="{}"}),re=F(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),X=function(ce,he){var _=ne(arguments),Q=he;if(!(!ee(he)&&ce===void 0||ue(ce)))return W(he)||(he=function(H,ye){if(Z(Q)&&(ye=A(Q,this,H,ye)),!ue(ye))return ye}),_[1]=he,w(Y,null,_)},z=function(ce,he,_){var Q=G(_,he-1),H=G(_,he+1);return P(J,ce)&&!P(K,H)||P(K,ce)&&!P(J,Q)?"\\u"+k(N(ce,0),16):ce};Y&&d({target:"JSON",stat:!0,arity:3,forced:U||re},{stringify:function(he,_,Q){var H=ne(arguments),ye=w(U?X:Y,null,H);return re&&typeof ye=="string"?C(ye,j,z):ye}})},68671:(h,O,s)=>{var d=s(98576),x=s(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,O,s)=>{var d=s(93085),x=s(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,O,s)=>{var d=s(93085),x=s(75370).entries;d({target:"Object",stat:!0},{entries:function(A){return x(A)}})},89189:(h,O,s)=>{var d=s(93085),x=s(76192),w=s(20101),A=s(5141).f,E=s(50069),F=x(function(){A(1)}),W=!E||F;d({target:"Object",stat:!0,forced:W,sham:!E},{getOwnPropertyDescriptor:function(ee,ue){return A(w(ee),ue)}})},62509:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(93011),A=s(20101),E=s(5141),F=s(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var ee=A(Z),ue=E.f,ne=w(ee),ae={},Y=0,P,G;ne.length>Y;)G=ue(ee,P=ne[Y++]),G!==void 0&&F(ae,P,G);return ae}})},17895:(h,O,s)=>{var d=s(93085),x=s(36770),w=s(76192),A=s(84750),E=s(71795),F=!x||w(function(){A.f(1)});d({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(Z){var ee=A.f;return ee?ee(E(Z)):[]}})},19234:(h,O,s)=>{var d=s(93085),x=s(76192),w=s(71795),A=s(89341),E=s(4635),F=x(function(){A(1)});d({target:"Object",stat:!0,forced:F,sham:!E},{getPrototypeOf:function(Z){return A(w(Z))}})},92647:(h,O,s)=>{var d=s(93085),x=s(71795),w=s(57653),A=s(76192),E=A(function(){w(1)});d({target:"Object",stat:!0,forced:E},{keys:function(W){return w(x(W))}})},13222:(h,O,s)=>{var d=s(93085),x=s(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(99438),E=s(70892),F=s(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var ee=this,ue=A.f(ee),ne=ue.resolve,ae=ue.reject,Y=E(function(){var P=w(ee.resolve),G=[],N=0,C=1;F(Z,function(k){var j=N++,J=!1;C++,x(P,ee,k).then(function(K){J||(J=!0,G[j]={status:"fulfilled",value:K},--C||ne(G))},function(K){J||(J=!0,G[j]={status:"rejected",reason:K},--C||ne(G))})}),--C||ne(G)});return Y.error&&ae(Y.value),ue.promise}})},89701:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(99438),E=s(70892),F=s(33442),W=s(52775);d({target:"Promise",stat:!0,forced:W},{all:function(ee){var ue=this,ne=A.f(ue),ae=ne.resolve,Y=ne.reject,P=E(function(){var G=w(ue.resolve),N=[],C=0,k=1;F(ee,function(j){var J=C++,K=!1;k++,x(G,ue,j).then(function(U){K||(K=!0,N[J]=U,--k||ae(N))},Y)}),--k||ae(N)});return P.error&&Y(P.value),ne.promise}})},78885:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(10150),E=s(99438),F=s(70892),W=s(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,ae=A("AggregateError"),Y=E.f(ne),P=Y.resolve,G=Y.reject,N=F(function(){var C=w(ne.resolve),k=[],j=0,J=1,K=!1;W(ue,function(U){var re=j++,X=!1;J++,x(C,ne,U).then(function(z){X||K||(K=!0,P(z))},function(z){X||K||(X=!0,k[re]=z,--J||G(new ae(k,Z)))})}),--J||G(new ae(k,Z))});return N.error&&G(N.value),Y.promise}})},34025:(h,O,s)=>{"use strict";var d=s(93085),x=s(85546),w=s(30511).CONSTRUCTOR,A=s(15813),E=s(10150),F=s(16447),W=s(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&&F(A)){var ee=E("Promise").prototype.catch;Z.catch!==ee&&W(Z,"catch",ee,{unsafe:!0})}},60268:(h,O,s)=>{"use strict";var d=s(93085),x=s(85546),w=s(58189),A=s(98576),E=s(18922),F=s(59362),W=s(24469),Z=s(11284),ee=s(63656),ue=s(66235),ne=s(16447),ae=s(35744),Y=s(46961),P=s(84743),G=s(67160).set,N=s(12950),C=s(63681),k=s(70892),j=s(6412),J=s(73326),K=s(15813),U=s(30511),re=s(99438),X="Promise",z=U.CONSTRUCTOR,ce=U.REJECTION_EVENT,he=U.SUBCLASSING,_=J.getterFor(X),Q=J.set,H=K&&K.prototype,ye=K,ke=H,je=A.TypeError,De=A.document,nt=A.process,tt=re.f,bt=tt,Ne=!!(De&&De.createEvent&&A.dispatchEvent),Oe="unhandledrejection",He="rejectionhandled",Pe=0,Te=1,Ye=2,at=1,jt=2,rt,it,Ft,ot,or=function(Ze){var gt;return ae(Ze)&&ne(gt=Ze.then)?gt:!1},Je=function(Ze,gt){var Lt=gt.value,Ot=gt.state==Te,kt=Ot?Ze.ok:Ze.fail,dt=Ze.resolve,mt=Ze.reject,Tt=Ze.domain,st,Ue,fe;try{kt?(Ot||(gt.rejection===jt&&un(gt),gt.rejection=at),kt===!0?st=Lt:(Tt&&Tt.enter(),st=kt(Lt),Tt&&(Tt.exit(),fe=!0)),st===Ze.promise?mt(je("Promise-chain cycle")):(Ue=or(st))?E(Ue,st,dt,mt):dt(st)):mt(Lt)}catch(be){Tt&&!fe&&Tt.exit(),mt(be)}},Ct=function(Ze,gt){Ze.notified||(Ze.notified=!0,N(function(){for(var Lt=Ze.reactions,Ot;Ot=Lt.get();)Je(Ot,Ze);Ze.notified=!1,gt&&!Ze.rejection&&Zr(Ze)}))},ze=function(Ze,gt,Lt){var Ot,kt;Ne?(Ot=De.createEvent("Event"),Ot.promise=gt,Ot.reason=Lt,Ot.initEvent(Ze,!1,!0),A.dispatchEvent(Ot)):Ot={promise:gt,reason:Lt},!ce&&(kt=A["on"+Ze])?kt(Ot):Ze===Oe&&C("Unhandled promise rejection",Lt)},Zr=function(Ze){E(G,A,function(){var gt=Ze.facade,Lt=Ze.value,Ot=Er(Ze),kt;if(Ot&&(kt=k(function(){w?nt.emit("unhandledRejection",Lt,gt):ze(Oe,gt,Lt)}),Ze.rejection=w||Er(Ze)?jt:at,kt.error))throw kt.value})},Er=function(Ze){return Ze.rejection!==at&&!Ze.parent},un=function(Ze){E(G,A,function(){var gt=Ze.facade;w?nt.emit("rejectionHandled",gt):ze(He,gt,Ze.value)})},tr=function(Ze,gt,Lt){return function(Ot){Ze(gt,Ot,Lt)}},Or=function(Ze,gt,Lt){Ze.done||(Ze.done=!0,Lt&&(Ze=Lt),Ze.value=gt,Ze.state=Ye,Ct(Ze,!0))},_r=function(Ze,gt,Lt){if(!Ze.done){Ze.done=!0,Lt&&(Ze=Lt);try{if(Ze.facade===gt)throw je("Promise can't be resolved itself");var Ot=or(gt);Ot?N(function(){var kt={done:!1};try{E(Ot,gt,tr(_r,kt,Ze),tr(Or,kt,Ze))}catch(dt){Or(kt,dt,Ze)}}):(Ze.value=gt,Ze.state=Te,Ct(Ze,!1))}catch(kt){Or({done:!1},kt,Ze)}}};if(z&&(ye=function(gt){Y(this,ke),ue(gt),E(rt,this);var Lt=_(this);try{gt(tr(_r,Lt),tr(Or,Lt))}catch(Ot){Or(Lt,Ot)}},ke=ye.prototype,rt=function(gt){Q(this,{type:X,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:Pe,value:void 0})},rt.prototype=F(ke,"then",function(gt,Lt){var Ot=_(this),kt=tt(P(this,ye));return Ot.parent=!0,kt.ok=ne(gt)?gt:!0,kt.fail=ne(Lt)&&Lt,kt.domain=w?nt.domain:void 0,Ot.state==Pe?Ot.reactions.add(kt):N(function(){Je(kt,Ot)}),kt.promise}),it=function(){var Ze=new rt,gt=_(Ze);this.promise=Ze,this.resolve=tr(_r,gt),this.reject=tr(Or,gt)},re.f=tt=function(Ze){return Ze===ye||Ze===Ft?new it(Ze):bt(Ze)},!x&&ne(K)&&H!==Object.prototype)){ot=H.then,he||F(H,"then",function(gt,Lt){var Ot=this;return new ye(function(kt,dt){E(ot,Ot,kt,dt)}).then(gt,Lt)},{unsafe:!0});try{delete H.constructor}catch(Ze){}W&&W(H,ke)}d({global:!0,constructor:!0,wrap:!0,forced:z},{Promise:ye}),Z(ye,X,!1,!0),ee(X)},91868:(h,O,s)=>{"use strict";var d=s(93085),x=s(85546),w=s(15813),A=s(76192),E=s(10150),F=s(16447),W=s(84743),Z=s(19126),ee=s(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=W(this,E("Promise")),G=F(Y);return this.then(G?function(N){return Z(P,Y()).then(function(){return N})}:Y,G?function(N){return Z(P,Y()).then(function(){throw N})}:Y)}}),!x&&F(w)){var ae=E("Promise").prototype.finally;ue.finally!==ae&&ee(ue,"finally",ae,{unsafe:!0})}},59021:(h,O,s)=>{s(60268),s(89701),s(34025),s(67196),s(85873),s(22931)},67196:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(99438),E=s(70892),F=s(33442),W=s(52775);d({target:"Promise",stat:!0,forced:W},{race:function(ee){var ue=this,ne=A.f(ue),ae=ne.reject,Y=E(function(){var P=w(ue.resolve);F(ee,function(G){x(P,ue,G).then(ne.resolve,ae)})});return Y.error&&ae(Y.value),ne.promise}})},85873:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(99438),A=s(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:A},{reject:function(F){var W=w.f(this);return x(W.reject,void 0,F),W.promise}})},22931:(h,O,s)=>{"use strict";var d=s(93085),x=s(10150),w=s(85546),A=s(15813),E=s(30511).CONSTRUCTOR,F=s(19126),W=x("Promise"),Z=w&&!E;d({target:"Promise",stat:!0,forced:w||E},{resolve:function(ue){return F(Z&&this===W?A:this,ue)}})},71367:()=>{},39247:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(9703),A=s(13209),E=s(44845),F=s(83519),W=x("".indexOf);d({target:"String",proto:!0,forced:!F("includes")},{includes:function(ee){return!!~W(E(A(this)),E(w(ee)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,O,s)=>{"use strict";var d=s(863).charAt,x=s(44845),w=s(73326),A=s(65297),E=s(87271),F="String Iterator",W=w.set,Z=w.getterFor(F);A(String,"String",function(ee){W(this,{type:F,string:x(ee),index:0})},function(){var ue=Z(this),ne=ue.string,ae=ue.index,Y;return ae>=ne.length?E(void 0,!0):(Y=d(ne,ae),ue.index+=Y.length,E(Y,!1))})},32991:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(5141).f,A=s(8445),E=s(44845),F=s(9703),W=s(13209),Z=s(83519),ee=s(85546),ue=x("".startsWith),ne=x("".slice),ae=Math.min,Y=Z("startsWith"),P=!ee&&!Y&&!!function(){var G=w(String.prototype,"startsWith");return G&&!G.writable}();d({target:"String",proto:!0,forced:!P&&!Y},{startsWith:function(N){var C=E(W(this));F(N);var k=A(ae(arguments.length>1?arguments[1]:void 0,C.length)),j=E(N);return ue?ue(C,j,k):ne(C,k,k+j.length)===j}})},19781:(h,O,s)=>{var d=s(48332);d("asyncIterator")},49351:(h,O,s)=>{"use strict";var d=s(93085),x=s(98576),w=s(18922),A=s(84120),E=s(85546),F=s(50069),W=s(36770),Z=s(76192),ee=s(64500),ue=s(8902),ne=s(31138),ae=s(20101),Y=s(40077),P=s(44845),G=s(90774),N=s(52853),C=s(57653),k=s(92092),j=s(24052),J=s(84750),K=s(5141),U=s(42760),re=s(11187),X=s(56007),z=s(59362),ce=s(98717),he=s(69766),_=s(14535),Q=s(42759),H=s(18182),ye=s(89207),ke=s(48332),je=s(93407),De=s(11284),nt=s(73326),tt=s(50454).forEach,bt=he("hidden"),Ne="Symbol",Oe="prototype",He=nt.set,Pe=nt.getterFor(Ne),Te=Object[Oe],Ye=x.Symbol,at=Ye&&Ye[Oe],jt=x.TypeError,rt=x.QObject,it=K.f,Ft=U.f,ot=j.f,or=X.f,Je=A([].push),Ct=ce("symbols"),ze=ce("op-symbols"),Zr=ce("wks"),Er=!rt||!rt[Oe]||!rt[Oe].findChild,un=F&&Z(function(){return N(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!=7})?function(dt,mt,Tt){var st=it(Te,mt);st&&delete Te[mt],Ft(dt,mt,Tt),st&&dt!==Te&&Ft(Te,mt,st)}:Ft,tr=function(dt,mt){var Tt=Ct[dt]=N(at);return He(Tt,{type:Ne,tag:dt,description:mt}),F||(Tt.description=mt),Tt},Or=function(mt,Tt,st){mt===Te&&Or(ze,Tt,st),ne(mt);var Ue=Y(Tt);return ne(st),ee(Ct,Ue)?(st.enumerable?(ee(mt,bt)&&mt[bt][Ue]&&(mt[bt][Ue]=!1),st=N(st,{enumerable:G(0,!1)})):(ee(mt,bt)||Ft(mt,bt,G(1,{})),mt[bt][Ue]=!0),un(mt,Ue,st)):Ft(mt,Ue,st)},_r=function(mt,Tt){ne(mt);var st=ae(Tt),Ue=C(st).concat(kt(st));return tt(Ue,function(fe){(!F||w(gt,st,fe))&&Or(mt,fe,st[fe])}),mt},Ze=function(mt,Tt){return Tt===void 0?N(mt):_r(N(mt),Tt)},gt=function(mt){var Tt=Y(mt),st=w(or,this,Tt);return this===Te&&ee(Ct,Tt)&&!ee(ze,Tt)?!1:st||!ee(this,Tt)||!ee(Ct,Tt)||ee(this,bt)&&this[bt][Tt]?st:!0},Lt=function(mt,Tt){var st=ae(mt),Ue=Y(Tt);if(!(st===Te&&ee(Ct,Ue)&&!ee(ze,Ue))){var fe=it(st,Ue);return fe&&ee(Ct,Ue)&&!(ee(st,bt)&&st[bt][Ue])&&(fe.enumerable=!0),fe}},Ot=function(mt){var Tt=ot(ae(mt)),st=[];return tt(Tt,function(Ue){!ee(Ct,Ue)&&!ee(_,Ue)&&Je(st,Ue)}),st},kt=function(dt){var mt=dt===Te,Tt=ot(mt?ze:ae(dt)),st=[];return tt(Tt,function(Ue){ee(Ct,Ue)&&(!mt||ee(Te,Ue))&&Je(st,Ct[Ue])}),st};W||(Ye=function(){if(ue(at,this))throw jt("Symbol is not a constructor");var mt=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Tt=Q(mt),st=function(Ue){this===Te&&w(st,ze,Ue),ee(this,bt)&&ee(this[bt],Tt)&&(this[bt][Tt]=!1),un(this,Tt,G(1,Ue))};return F&&Er&&un(Te,Tt,{configurable:!0,set:st}),tr(Tt,mt)},at=Ye[Oe],z(at,"toString",function(){return Pe(this).tag}),z(Ye,"withoutSetter",function(dt){return tr(Q(dt),dt)}),X.f=gt,U.f=Or,re.f=_r,K.f=Lt,k.f=j.f=Ot,J.f=kt,ye.f=function(dt){return tr(H(dt),dt)},F&&(Ft(at,"description",{configurable:!0,get:function(){return Pe(this).description}}),E||z(Te,"propertyIsEnumerable",gt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:Ye}),tt(C(Zr),function(dt){ke(dt)}),d({target:Ne,stat:!0,forced:!W},{useSetter:function(){Er=!0},useSimple:function(){Er=!1}}),d({target:"Object",stat:!0,forced:!W,sham:!F},{create:Ze,defineProperty:Or,defineProperties:_r,getOwnPropertyDescriptor:Lt}),d({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:Ot}),je(),De(Ye,Ne),_[bt]=!0},50492:()=>{},19148:(h,O,s)=>{var d=s(93085),x=s(10150),w=s(64500),A=s(44845),E=s(98717),F=s(20031),W=E("string-to-symbol-registry"),Z=E("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{for:function(ee){var ue=A(ee);if(w(W,ue))return W[ue];var ne=x("Symbol")(ue);return W[ue]=ne,Z[ne]=ue,ne}})},66681:(h,O,s)=>{var d=s(48332);d("hasInstance")},29594:(h,O,s)=>{var d=s(48332);d("isConcatSpreadable")},63665:(h,O,s)=>{var d=s(48332);d("iterator")},36187:(h,O,s)=>{s(49351),s(19148),s(15991),s(59704),s(17895)},15991:(h,O,s)=>{var d=s(93085),x=s(64500),w=s(23236),A=s(79288),E=s(98717),F=s(20031),W=E("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{keyFor:function(ee){if(!w(ee))throw TypeError(A(ee)+" is not a symbol");if(x(W,ee))return W[ee]}})},11250:(h,O,s)=>{var d=s(48332);d("matchAll")},29017:(h,O,s)=>{var d=s(48332);d("match")},79786:(h,O,s)=>{var d=s(48332);d("replace")},90503:(h,O,s)=>{var d=s(48332);d("search")},16565:(h,O,s)=>{var d=s(48332);d("species")},69322:(h,O,s)=>{var d=s(48332);d("split")},13610:(h,O,s)=>{var d=s(48332),x=s(93407);d("toPrimitive"),x()},36886:(h,O,s)=>{var d=s(10150),x=s(48332),w=s(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,O,s)=>{var d=s(48332);d("unscopables")},10572:(h,O,s)=>{"use strict";var d=s(98576),x=s(84120),w=s(35090),A=s(32861),E=s(34535),F=s(51057),W=s(35744),Z=s(4532),ee=s(73326).enforce,ue=s(55278),ne=!d.ActiveXObject&&"ActiveXObject"in d,ae,Y=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},P=E("WeakMap",Y,F);if(ue&&ne){ae=F.getConstructor(Y,"WeakMap",!0),A.enable();var G=P.prototype,N=x(G.delete),C=x(G.has),k=x(G.get),j=x(G.set);w(G,{delete:function(J){if(W(J)&&!Z(J)){var K=ee(this);return K.frozen||(K.frozen=new ae),N(this,J)||K.frozen.delete(J)}return N(this,J)},has:function(K){if(W(K)&&!Z(K)){var U=ee(this);return U.frozen||(U.frozen=new ae),C(this,K)||U.frozen.has(K)}return C(this,K)},get:function(K){if(W(K)&&!Z(K)){var U=ee(this);return U.frozen||(U.frozen=new ae),C(this,K)?k(this,K):U.frozen.get(K)}return k(this,K)},set:function(K,U){if(W(K)&&!Z(K)){var re=ee(this);re.frozen||(re.frozen=new ae),C(this,K)?j(this,K,U):re.frozen.set(K,U)}else j(this,K,U);return this}})}},33983:(h,O,s)=>{s(10572)},12752:(h,O,s)=>{s(4242)},5363:(h,O,s)=>{s(25067)},14562:(h,O,s)=>{s(97884)},69355:(h,O,s)=>{s(78885)},25363:(h,O,s)=>{"use strict";var d=s(93085),x=s(99438),w=s(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(A){var E=x.f(this),F=w(A);return(F.error?E.reject:E.resolve)(F.value),E.promise}})},60177:(h,O,s)=>{var d=s(48332);d("asyncDispose")},9031:(h,O,s)=>{var d=s(48332);d("dispose")},96658:(h,O,s)=>{var d=s(48332);d("matcher")},54212:(h,O,s)=>{var d=s(48332);d("metadataKey")},71875:(h,O,s)=>{var d=s(48332);d("metadata")},18658:(h,O,s)=>{var d=s(48332);d("observable")},54592:(h,O,s)=>{var d=s(48332);d("patternMatch")},26680:(h,O,s)=>{var d=s(48332);d("replaceAll")},80162:(h,O,s)=>{s(98939);var d=s(17365),x=s(98576),w=s(4696),A=s(98711),E=s(47771),F=s(18182),W=F("toStringTag");for(var Z in d){var ee=x[Z],ue=ee&&ee.prototype;ue&&w(ue)!==W&&A(ue,W,Z),E[Z]=E.Array}},67054:(h,O,s)=>{"use strict";s(98939);var d=s(93085),x=s(98576),w=s(18922),A=s(84120),E=s(50069),F=s(58552),W=s(59362),Z=s(35090),ee=s(11284),ue=s(25695),ne=s(73326),ae=s(46961),Y=s(16447),P=s(64500),G=s(8043),N=s(4696),C=s(31138),k=s(35744),j=s(44845),J=s(52853),K=s(90774),U=s(61669),re=s(78703),X=s(67822),z=s(18182),ce=s(6614),he=z("iterator"),_="URLSearchParams",Q=_+"Iterator",H=ne.set,ye=ne.getterFor(_),ke=ne.getterFor(Q),je=Object.getOwnPropertyDescriptor,De=function(Ue){if(!E)return x[Ue];var fe=je(x,Ue);return fe&&fe.value},nt=De("fetch"),tt=De("Request"),bt=De("Headers"),Ne=tt&&tt.prototype,Oe=bt&&bt.prototype,He=x.RegExp,Pe=x.TypeError,Te=x.decodeURIComponent,Ye=x.encodeURIComponent,at=A("".charAt),jt=A([].join),rt=A([].push),it=A("".replace),Ft=A([].shift),ot=A([].splice),or=A("".split),Je=A("".slice),Ct=/\+/g,ze=Array(4),Zr=function(Ue){return ze[Ue-1]||(ze[Ue-1]=He("((?:%[\\da-f]{2}){"+Ue+"})","gi"))},Er=function(Ue){try{return Te(Ue)}catch(fe){return Ue}},un=function(Ue){var fe=it(Ue,Ct," "),be=4;try{return Te(fe)}catch(Be){for(;be;)fe=it(fe,Zr(be--),Er);return fe}},tr=/[!'()~]|%20/g,Or={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_r=function(Ue){return Or[Ue]},Ze=function(Ue){return it(Ye(Ue),tr,_r)},gt=ue(function(fe,be){H(this,{type:Q,iterator:U(ye(fe).entries),kind:be})},"Iterator",function(){var fe=ke(this),be=fe.kind,Be=fe.iterator.next(),Ve=Be.value;return Be.done||(Be.value=be==="keys"?Ve.key:be==="values"?Ve.value:[Ve.key,Ve.value]),Be},!0),Lt=function(Ue){this.entries=[],this.url=null,Ue!==void 0&&(k(Ue)?this.parseObject(Ue):this.parseQuery(typeof Ue=="string"?at(Ue,0)==="?"?Je(Ue,1):Ue:j(Ue)))};Lt.prototype={type:_,bindURL:function(Ue){this.url=Ue,this.update()},parseObject:function(Ue){var fe=re(Ue),be,Be,Ve,lt,vt,Mt,pr;if(fe)for(be=U(Ue,fe),Be=be.next;!(Ve=w(Be,be)).done;){if(lt=U(C(Ve.value)),vt=lt.next,(Mt=w(vt,lt)).done||(pr=w(vt,lt)).done||!w(vt,lt).done)throw Pe("Expected sequence with length 2");rt(this.entries,{key:j(Mt.value),value:j(pr.value)})}else for(var Nt in Ue)P(Ue,Nt)&&rt(this.entries,{key:Nt,value:j(Ue[Nt])})},parseQuery:function(Ue){if(Ue)for(var fe=or(Ue,"&"),be=0,Be,Ve;be<fe.length;)Be=fe[be++],Be.length&&(Ve=or(Be,"="),rt(this.entries,{key:un(Ft(Ve)),value:un(jt(Ve,"="))}))},serialize:function(){for(var Ue=this.entries,fe=[],be=0,Be;be<Ue.length;)Be=Ue[be++],rt(fe,Ze(Be.key)+"="+Ze(Be.value));return jt(fe,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ot=function(){ae(this,kt);var fe=arguments.length>0?arguments[0]:void 0;H(this,new Lt(fe))},kt=Ot.prototype;if(Z(kt,{append:function(fe,be){X(arguments.length,2);var Be=ye(this);rt(Be.entries,{key:j(fe),value:j(be)}),Be.updateURL()},delete:function(Ue){X(arguments.length,1);for(var fe=ye(this),be=fe.entries,Be=j(Ue),Ve=0;Ve<be.length;)be[Ve].key===Be?ot(be,Ve,1):Ve++;fe.updateURL()},get:function(fe){X(arguments.length,1);for(var be=ye(this).entries,Be=j(fe),Ve=0;Ve<be.length;Ve++)if(be[Ve].key===Be)return be[Ve].value;return null},getAll:function(fe){X(arguments.length,1);for(var be=ye(this).entries,Be=j(fe),Ve=[],lt=0;lt<be.length;lt++)be[lt].key===Be&&rt(Ve,be[lt].value);return Ve},has:function(fe){X(arguments.length,1);for(var be=ye(this).entries,Be=j(fe),Ve=0;Ve<be.length;)if(be[Ve++].key===Be)return!0;return!1},set:function(fe,be){X(arguments.length,1);for(var Be=ye(this),Ve=Be.entries,lt=!1,vt=j(fe),Mt=j(be),pr=0,Nt;pr<Ve.length;pr++)Nt=Ve[pr],Nt.key===vt&&(lt?ot(Ve,pr--,1):(lt=!0,Nt.value=Mt));lt||rt(Ve,{key:vt,value:Mt}),Be.updateURL()},sort:function(){var fe=ye(this);ce(fe.entries,function(be,Be){return be.key>Be.key?1:-1}),fe.updateURL()},forEach:function(fe){for(var be=ye(this).entries,Be=G(fe,arguments.length>1?arguments[1]:void 0),Ve=0,lt;Ve<be.length;)lt=be[Ve++],Be(lt.value,lt.key,this)},keys:function(){return new gt(this,"keys")},values:function(){return new gt(this,"values")},entries:function(){return new gt(this,"entries")}},{enumerable:!0}),W(kt,he,kt.entries,{name:"entries"}),W(kt,"toString",function(){return ye(this).serialize()},{enumerable:!0}),ee(Ot,_),d({global:!0,constructor:!0,forced:!F},{URLSearchParams:Ot}),!F&&Y(bt)){var dt=A(Oe.has),mt=A(Oe.set),Tt=function(Ue){if(k(Ue)){var fe=Ue.body,be;if(N(fe)===_)return be=Ue.headers?new bt(Ue.headers):new bt,dt(be,"content-type")||mt(be,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),J(Ue,{body:K(0,j(fe)),headers:K(0,be)})}return Ue};if(Y(nt)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(fe){return nt(fe,arguments.length>1?Tt(arguments[1]):{})}}),Y(tt)){var st=function(fe){return ae(this,Ne),new tt(fe,arguments.length>1?Tt(arguments[1]):{})};Ne.constructor=st,st.prototype=Ne,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:st})}}h.exports={URLSearchParams:Ot,getState:ye}},69336:(h,O,s)=>{s(67054)},53822:(h,O,s)=>{var d=s(52221);h.exports=d},21434:(h,O,s)=>{var d=s(75078);h.exports=d},51629:(h,O,s)=>{var d=s(77237);h.exports=d},46899:(h,O,s)=>{var d=s(60098);h.exports=d},27710:(h,O,s)=>{var d=s(65739);s(80162),h.exports=d},31585:(h,O,s)=>{var d=s(74030);h.exports=d},44877:(h,O,s)=>{var d=s(41484);h.exports=d},10140:(h,O,s)=>{s(80162);var d=s(4696),x=s(64500),w=s(8902),A=s(51629),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(W){var Z=W.entries;return W===E||w(E,W)&&Z===E.entries||x(F,d(W))?A:Z}},55603:(h,O,s)=>{var d=s(53669);h.exports=d},76237:(h,O,s)=>{var d=s(37506);h.exports=d},31206:(h,O,s)=>{s(80162);var d=s(4696),x=s(64500),w=s(8902),A=s(46899),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(W){var Z=W.forEach;return W===E||w(E,W)&&Z===E.forEach||x(F,d(W))?A:Z}},56515:(h,O,s)=>{var d=s(13173);h.exports=d},26174:(h,O,s)=>{var d=s(92604);h.exports=d},20057:(h,O,s)=>{var d=s(263);h.exports=d},87511:(h,O,s)=>{var d=s(80432);h.exports=d},24741:(h,O,s)=>{var d=s(77663);h.exports=d},8368:(h,O,s)=>{var d=s(45063);h.exports=d},342:(h,O,s)=>{var d=s(7769);h.exports=d},392:(h,O,s)=>{var d=s(96056);h.exports=d},28478:(h,O,s)=>{var d=s(99936);h.exports=d},4963:(h,O,s)=>{var d=s(23213);h.exports=d},21025:(h,O,s)=>{var d=s(38724);h.exports=d},27820:(h,O,s)=>{var d=s(63512);h.exports=d},58202:(h,O,s)=>{var d=s(2335);h.exports=d},74194:(h,O,s)=>{var d=s(60632);h.exports=d},32854:(h,O,s)=>{var d=s(81056);h.exports=d},60002:(h,O,s)=>{var d=s(12921);h.exports=d},28980:(h,O,s)=>{var d=s(8168);h.exports=d},45636:(h,O,s)=>{var d=s(38651);h.exports=d},66672:(h,O,s)=>{var d=s(33083);h.exports=d},46618:(h,O,s)=>{var d=s(93154);s(80162),h.exports=d},42285:(h,O,s)=>{var d=s(85008);s(80162),h.exports=d},58535:(h,O,s)=>{var d=s(994);s(80162),h.exports=d},72946:(h,O,s)=>{var d=s(32004);s(80162),h.exports=d},11235:(h,O,s)=>{var d=s(31293);s(80162),h.exports=d},32004:(h,O,s)=>{s(69336);var d=s(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var O=function(s){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 E(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 F(X){return typeof X!="string"&&(X=String(X)),X}function W(X){var z={next:function(){var ce=X.shift();return{done:ce===void 0,value:ce}}};return d.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Z(X){this.map={},X instanceof Z?X.forEach(function(z,ce){this.append(ce,z)},this):Array.isArray(X)?X.forEach(function(z){this.append(z[0],z[1])},this):X&&Object.getOwnPropertyNames(X).forEach(function(z){this.append(z,X[z])},this)}Z.prototype.append=function(X,z){X=E(X),z=F(z);var ce=this.map[X];this.map[X]=ce?ce+", "+z:z},Z.prototype.delete=function(X){delete this.map[E(X)]},Z.prototype.get=function(X){return X=E(X),this.has(X)?this.map[X]:null},Z.prototype.has=function(X){return this.map.hasOwnProperty(E(X))},Z.prototype.set=function(X,z){this.map[E(X)]=F(z)},Z.prototype.forEach=function(X,z){for(var ce in this.map)this.map.hasOwnProperty(ce)&&X.call(z,this.map[ce],ce,this)},Z.prototype.keys=function(){var X=[];return this.forEach(function(z,ce){X.push(ce)}),W(X)},Z.prototype.values=function(){var X=[];return this.forEach(function(z){X.push(z)}),W(X)},Z.prototype.entries=function(){var X=[];return this.forEach(function(z,ce){X.push([ce,z])}),W(X)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function ee(X){if(X.bodyUsed)return Promise.reject(new TypeError("Already read"));X.bodyUsed=!0}function ue(X){return new Promise(function(z,ce){X.onload=function(){z(X.result)},X.onerror=function(){ce(X.error)}})}function ne(X){var z=new FileReader,ce=ue(z);return z.readAsArrayBuffer(X),ce}function ae(X){var z=new FileReader,ce=ue(z);return z.readAsText(X),ce}function Y(X){for(var z=new Uint8Array(X),ce=new Array(z.length),he=0;he<z.length;he++)ce[he]=String.fromCharCode(z[he]);return ce.join("")}function P(X){if(X.slice)return X.slice(0);var z=new Uint8Array(X.byteLength);return z.set(new Uint8Array(X)),z.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=ee(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?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var X=ee(this);if(X)return X;if(this._bodyBlob)return ae(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(j)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(X){var z=X.toUpperCase();return N.indexOf(z)>-1?z:X}function k(X,z){z=z||{};var ce=z.body;if(X instanceof k){if(X.bodyUsed)throw new TypeError("Already read");this.url=X.url,this.credentials=X.credentials,z.headers||(this.headers=new Z(X.headers)),this.method=X.method,this.mode=X.mode,this.signal=X.signal,!ce&&X._bodyInit!=null&&(ce=X._bodyInit,X.bodyUsed=!0)}else this.url=String(X);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Z(z.headers)),this.method=C(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")&&ce)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ce)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function j(X){var z=new FormData;return X.trim().split("&").forEach(function(ce){if(ce){var he=ce.split("="),_=he.shift().replace(/\+/g," "),Q=he.join("=").replace(/\+/g," ");z.append(decodeURIComponent(_),decodeURIComponent(Q))}}),z}function J(X){var z=new Z,ce=X.replace(/\r?\n[\t ]+/g," ");return ce.split(/\r?\n/).forEach(function(he){var _=he.split(":"),Q=_.shift().trim();if(Q){var H=_.join(":").trim();z.append(Q,H)}}),z}G.call(k.prototype);function K(X,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 Z(z.headers),this.url=z.url||"",this._initBody(X)}G.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 X=new K(null,{status:0,statusText:""});return X.type="error",X};var U=[301,302,303,307,308];K.redirect=function(X,z){if(U.indexOf(z)===-1)throw new RangeError("Invalid status code");return new K(null,{status:z,headers:{location:X}})},s.DOMException=h.DOMException;try{new s.DOMException}catch(X){s.DOMException=function(z,ce){this.message=z,this.name=ce;var he=Error(z);this.stack=he.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function re(X,z){return new Promise(function(ce,he){var _=new k(X,z);if(_.signal&&_.signal.aborted)return he(new s.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function H(){Q.abort()}Q.onload=function(){var ye={status:Q.status,statusText:Q.statusText,headers:J(Q.getAllResponseHeaders()||"")};ye.url="responseURL"in Q?Q.responseURL:ye.headers.get("X-Request-URL");var ke="response"in Q?Q.response:Q.responseText;ce(new K(ke,ye))},Q.onerror=function(){he(new TypeError("Network request failed"))},Q.ontimeout=function(){he(new TypeError("Network request failed"))},Q.onabort=function(){he(new s.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(ye,ke){Q.setRequestHeader(ke,ye)}),_.signal&&(_.signal.addEventListener("abort",H),Q.onreadystatechange=function(){Q.readyState===4&&_.signal.removeEventListener("abort",H)}),Q.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return re.polyfill=!0,h.fetch||(h.fetch=re,h.Headers=Z,h.Request=k,h.Response=K),s.Headers=Z,s.Request=k,s.Response=K,s.fetch=re,Object.defineProperty(s,"__esModule",{value:!0}),s}({})})(typeof self!="undefined"?self:this)},96279:function(h,O){var s=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=s.DOMException}return w.prototype=s,new w}();(function(w){var A=function(E){var F={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 W(Q){return Q&&DataView.prototype.isPrototypeOf(Q)}if(F.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=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 ae(Q){var H={next:function(){var ye=Q.shift();return{done:ye===void 0,value:ye}}};return F.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Y(Q){this.map={},Q instanceof Y?Q.forEach(function(H,ye){this.append(ye,H)},this):Array.isArray(Q)?Q.forEach(function(H){this.append(H[0],H[1])},this):Q&&Object.getOwnPropertyNames(Q).forEach(function(H){this.append(H,Q[H])},this)}Y.prototype.append=function(Q,H){Q=ue(Q),H=ne(H);var ye=this.map[Q];this.map[Q]=ye?ye+", "+H:H},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,H){this.map[ue(Q)]=ne(H)},Y.prototype.forEach=function(Q,H){for(var ye in this.map)this.map.hasOwnProperty(ye)&&Q.call(H,this.map[ye],ye,this)},Y.prototype.keys=function(){var Q=[];return this.forEach(function(H,ye){Q.push(ye)}),ae(Q)},Y.prototype.values=function(){var Q=[];return this.forEach(function(H){Q.push(H)}),ae(Q)},Y.prototype.entries=function(){var Q=[];return this.forEach(function(H,ye){Q.push([ye,H])}),ae(Q)},F.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 G(Q){return new Promise(function(H,ye){Q.onload=function(){H(Q.result)},Q.onerror=function(){ye(Q.error)}})}function N(Q){var H=new FileReader,ye=G(H);return H.readAsArrayBuffer(Q),ye}function C(Q){var H=new FileReader,ye=G(H);return H.readAsText(Q),ye}function k(Q){for(var H=new Uint8Array(Q),ye=new Array(H.length),ke=0;ke<H.length;ke++)ye[ke]=String.fromCharCode(H[ke]);return ye.join("")}function j(Q){if(Q.slice)return Q.slice(0);var H=new Uint8Array(Q.byteLength);return H.set(new Uint8Array(Q)),H.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(Q){this._bodyInit=Q,Q?typeof Q=="string"?this._bodyText=Q:F.blob&&Blob.prototype.isPrototypeOf(Q)?this._bodyBlob=Q:F.formData&&FormData.prototype.isPrototypeOf(Q)?this._bodyFormData=Q:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)?this._bodyText=Q.toString():F.arrayBuffer&&F.blob&&W(Q)?(this._bodyArrayBuffer=j(Q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Q)||ee(Q))?this._bodyArrayBuffer=j(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):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.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(N)}),this.text=function(){var Q=P(this);if(Q)return Q;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(X)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function U(Q){var H=Q.toUpperCase();return K.indexOf(H)>-1?H:Q}function re(Q,H){H=H||{};var ye=H.body;if(Q instanceof re){if(Q.bodyUsed)throw new TypeError("Already read");this.url=Q.url,this.credentials=Q.credentials,H.headers||(this.headers=new Y(Q.headers)),this.method=Q.method,this.mode=Q.mode,this.signal=Q.signal,!ye&&Q._bodyInit!=null&&(ye=Q._bodyInit,Q.bodyUsed=!0)}else this.url=String(Q);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Y(H.headers)),this.method=U(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")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function X(Q){var H=new FormData;return Q.trim().split("&").forEach(function(ye){if(ye){var ke=ye.split("="),je=ke.shift().replace(/\+/g," "),De=ke.join("=").replace(/\+/g," ");H.append(decodeURIComponent(je),decodeURIComponent(De))}}),H}function z(Q){var H=new Y,ye=Q.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ke){var je=ke.split(":"),De=je.shift().trim();if(De){var nt=je.join(":").trim();H.append(De,nt)}}),H}J.call(re.prototype);function ce(Q,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 Y(H.headers),this.url=H.url||"",this._initBody(Q)}J.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ce.error=function(){var Q=new ce(null,{status:0,statusText:""});return Q.type="error",Q};var he=[301,302,303,307,308];ce.redirect=function(Q,H){if(he.indexOf(H)===-1)throw new RangeError("Invalid status code");return new ce(null,{status:H,headers:{location:Q}})},E.DOMException=w.DOMException;try{new E.DOMException}catch(Q){E.DOMException=function(H,ye){this.message=H,this.name=ye;var ke=Error(H);this.stack=ke.stack},E.DOMException.prototype=Object.create(Error.prototype),E.DOMException.prototype.constructor=E.DOMException}function _(Q,H){return new Promise(function(ye,ke){var je=new re(Q,H);if(je.signal&&je.signal.aborted)return ke(new E.DOMException("Aborted","AbortError"));var De=new XMLHttpRequest;function nt(){De.abort()}De.onload=function(){var tt={status:De.status,statusText:De.statusText,headers:z(De.getAllResponseHeaders()||"")};tt.url="responseURL"in De?De.responseURL:tt.headers.get("X-Request-URL");var bt="response"in De?De.response:De.responseText;ye(new ce(bt,tt))},De.onerror=function(){ke(new TypeError("Network request failed"))},De.ontimeout=function(){ke(new TypeError("Network request failed"))},De.onabort=function(){ke(new E.DOMException("Aborted","AbortError"))},De.open(je.method,je.url,!0),je.credentials==="include"?De.withCredentials=!0:je.credentials==="omit"&&(De.withCredentials=!1),"responseType"in De&&F.blob&&(De.responseType="blob"),je.headers.forEach(function(tt,bt){De.setRequestHeader(bt,tt)}),je.signal&&(je.signal.addEventListener("abort",nt),De.onreadystatechange=function(){De.readyState===4&&je.signal.removeEventListener("abort",nt)}),De.send(typeof je._bodyInit=="undefined"?null:je._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=re,w.Response=ce),E.Headers=Y,E.Request=re,E.Response=ce,E.fetch=_,Object.defineProperty(E,"__esModule",{value:!0}),E}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;O=x.fetch,O.default=x.fetch,O.fetch=x.fetch,O.Headers=x.Headers,O.Request=x.Request,O.Response=x.Response,h.exports=O},96789:(h,O,s)=>{"use strict";s.r(O),s.d(O,{Console:()=>Ix,ConsoleComponent:()=>gg});var d={};s.r(d),s.d(d,{JsonPatchError:()=>Sr,_areEquals:()=>ui,applyOperation:()=>li,applyPatch:()=>Fi,applyReducer:()=>ad,deepClone:()=>nd,getValueByPointer:()=>Eo,validate:()=>Hl,validator:()=>ks});var x={};s.r(x),s.d(x,{compare:()=>kf,generate:()=>Ba,observe:()=>Yr,unobserve:()=>If});var w={};s.r(w),s.d(w,{cookie:()=>i,header:()=>t,path:()=>Id,query:()=>kd});var A=s(49086),E=s(25575),F=s(24463),W=s(84870),Z=s(79494),ee=s(48145),ue=s(11807),ne=s(45055),ae=s(49800);function Y(e,r,n){return r in e?ae(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function P(e,r){var n=E(e);if(F){var a=F(e);r&&(a=W(a).call(a,function(o){return Z(e,o).enumerable})),n.push.apply(n,a)}return n}function G(e){for(var r=1;r<arguments.length;r++){var n,a,o=arguments[r]!=null?arguments[r]:{};r%2?ee(n=P(Object(o),!0)).call(n,function(c){Y(e,c,o[c])}):ue?ne(e,ue(o)):ee(a=P(Object(o))).call(a,function(c){ae(e,c,Z(o,c))})}return e}var N=s(45932),C=s.n(N),k=s(51661),j=s.n(k),J=s(883),K=s(57829),U=s(5490),re=s(72010),X=s(72383),z=s(50557);function ce(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 he(e,r){var n;if(!!e){if(typeof e=="string")return ce(e,r);var a=X(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 ce(e,r)}}function _(e,r){var n=typeof K!="undefined"&&U(e)||e["@@iterator"];if(!n){if(re(e)||(n=he(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
42
|
-
|
|
43
|
-
|
|
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}
|
|
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
|
+
`,""]);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+=`
|
|
44
48
|
|
|
45
|
-
`+e.mark.snippet),a+" "+n):a}function
|
|
46
|
-
`+m;for(y=
|
|
47
|
-
`,m+=
|
|
48
|
-
`,v=1;v<=r.linesAfter&&!(p+v>=
|
|
49
|
-
`;return m.replace(/\n$/,"")}var
|
|
50
|
-
\r`;function
|
|
51
|
-
`: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
|
|
52
|
-
`,r-1))}function
|
|
53
|
-
`,c?1+v:v):
|
|
54
|
-
`);break}for(a?
|
|
55
|
-
`,c?1+v:v)):y?(y=!1,e.result+=
|
|
56
|
-
`,v+1)):v===0?c&&(e.result+=" "):e.result+=
|
|
57
|
-
`,v):e.result+=
|
|
58
|
-
`,c?1+v:v),c=!0,p=!0,v=0,n=e.position;!
|
|
59
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new
|
|
60
|
-
`,a),
|
|
61
|
-
`&&(c+=n),c+=p;return c}function
|
|
62
|
-
`+
|
|
63
|
-
`,
|
|
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
|
+
`+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
|
+
`,m+=kt.repeat("-",r.indent+b+3+y.pos)+`^
|
|
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+/=
|
|
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
|
+
`: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(`
|
|
57
|
+
`,c?1+v:v):s===ka&&c&&(e.result+=`
|
|
58
|
+
`);break}for(a?Si(I)?(y=!0,e.result+=kt.repeat(`
|
|
59
|
+
`,c?1+v:v)):y?(y=!1,e.result+=kt.repeat(`
|
|
60
|
+
`,v+1)):v===0?c&&(e.result+=" "):e.result+=kt.repeat(`
|
|
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+=`
|
|
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
|
+
`,a),s===-1?(p=e.slice(a),a=m):(p=e.slice(a,s+1),a=s+1),p.length&&p!==`
|
|
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]===`
|
|
67
|
+
`,s=a&&(e[e.length-2]===`
|
|
64
68
|
`||e===`
|
|
65
|
-
`),c=
|
|
66
|
-
`}function
|
|
67
|
-
`?e.slice(0,-1):e}function
|
|
68
|
-
`);return y=y!==-1?y:e.length,n.lastIndex=y,
|
|
69
|
-
`||e[0]===" ",c,p;p=n.exec(e);){var m=p[1],v=p[2];c=v[0]===" ",a+=m+(!
|
|
70
|
-
`:"")+
|
|
71
|
-
`+e.slice(
|
|
72
|
-
`,e.length-
|
|
73
|
-
`+e.slice(p+1):v+=e.slice(
|
|
74
|
-
`:""}var
|
|
75
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
69
|
+
`),c=s?"+":a?"":"-";return n+c+`
|
|
70
|
+
`}function Ha(e){return e[e.length-1]===`
|
|
71
|
+
`?e.slice(0,-1):e}function Xu(e,r){for(var n=/(\n+)([^\n]*)/g,a=function(){var y=e.indexOf(`
|
|
72
|
+
`);return y=y!==-1?y:e.length,n.lastIndex=y,ds(e.slice(0,y),r)}(),s=e[0]===`
|
|
73
|
+
`||e[0]===" ",c,p;p=n.exec(e);){var m=p[1],v=p[2];c=v[0]===" ",a+=m+(!s&&!c&&v!==""?`
|
|
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
|
+
`+e.slice(s,c),s=c+1),p=m;return v+=`
|
|
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);/*!
|
|
76
80
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
77
81
|
* (c) 2017-2022 Joachim Wester
|
|
78
82
|
* MIT licensed
|
|
79
|
-
*/var
|
|
80
|
-
`)}var
|
|
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}/*!
|
|
81
85
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
82
86
|
* (c) 2017-2021 Joachim Wester
|
|
83
87
|
* MIT license
|
|
84
|
-
*/var Oo=new WeakMap,Fs=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),Tf=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function zl(e){return Oo.get(e)}function Pf(e,r){return e.observers.get(r)}function od(e,r){e.observers.delete(r.callback)}function If(e,r){r.unobserve()}function Yr(e,r){var n=[],a,o=zl(e);if(!o)o=new Fs(e),Oo.set(e,o);else{var c=Pf(o,r);a=c&&c.observer}if(a)return a;if(a={},o.value=Kr(e),r){a.callback=r,a.next=null;var p=function(){Ba(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(){Ba(a),clearTimeout(a.next),od(o,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},o.observers.set(r,new Tf(r,a)),a}function Ba(e,r){r===void 0&&(r=!1);var n=Oo.get(e.object);Rs(n.value,e.object,e.patches,"",r),e.patches.length&&Fi(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function Rs(e,r,n,a,o){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var c=Ao(r),p=Ao(e),m=!1,v=!1,y=p.length-1;y>=0;y--){var b=p[y],I=e[b];if(Ts(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)?Rs(I,R,n,a+"/"+Jn(b),o):I!==R&&(m=!0,o&&n.push({op:"test",path:a+"/"+Jn(b),value:Kr(I)}),n.push({op:"replace",path:a+"/"+Jn(b),value:Kr(R)}))}else Array.isArray(e)===Array.isArray(r)?(o&&n.push({op:"test",path:a+"/"+Jn(b),value:Kr(I)}),n.push({op:"remove",path:a+"/"+Jn(b)}),v=!0):(o&&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];!Ts(e,b)&&r[b]!==void 0&&n.push({op:"add",path:a+"/"+Jn(b),value:Kr(r[b])})}}}function kf(e,r,n){n===void 0&&(n=!1);var a=[];return Rs(e,r,a,"",n),a}const sd=Object.assign({},d,x,{JsonPatchError:Is,deepClone:Kr,escapePathComponent:Jn,unescapePathComponent:ki});var ja=s(39714),To=s.n(ja);const nr={add:Va,replace:Po,remove:Ls,merge:Rf,mergeDeep:Io,context:ld,getIn:Fo,applyPatch:Ff,parentPathMatch:ko,flatten:Lo,fullyNormalizeArray:Ro,normalizeArray:Kl,isPromise:Wa,forEachNew:Ua,forEachNewPrimitive:Lf,isJsonPatch:Jl,isContextPatch:pn,isPatch:Mo,isMutation:Mf,isAdditiveMutation:Ns,isGenerator:fd,isFunction:Ha,isObject:bn,isError:ud};function Ff(e,r,n){if(n=n||{},r=G(G({},r),{},{path:r.path&&Gl(r.path)}),r.op==="merge"){var a=Xl(e,r.path);C()(a,r.value),Fi(e,[Po(r.path,a)])}else if(r.op==="mergeDeep"){var o=Xl(e,r.path),c=To()(o,r.value);e=Fi(e,[Po(r.path,c)]).newDocument}else if(r.op==="add"&&r.path===""&&bn(r.value)){var p=Je()(r.value).reduce(function(I,R){return I.push({op:"add",path:"/".concat(Gl(R)),value:r.value[R]}),I},[]);Fi(e,p)}else if(r.op==="replace"&&r.path===""){var m=r,v=m.value;n.allowMetaPatches&&r.meta&&Ns(r)&&(Array.isArray(r.value)||bn(r.value))&&(v=G(G({},v),r.meta)),e=v}else if(Fi(e,[r]),n.allowMetaPatches&&r.meta&&Ns(r)&&(Array.isArray(r.value)||bn(r.value))){var y=Xl(e,r.path),b=G(G({},y),r.meta);Fi(e,[Po(r.path,b)])}return e}function Gl(e){return Array.isArray(e)?e.length<1?"":"/".concat(ot()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function Va(e,r){return{op:"add",path:e,value:r}}function Po(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function Ls(e){return{op:"remove",path:e}}function Rf(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function Io(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function ld(e,r){return{type:"context",path:e,value:r}}function Ua(e,r){try{return $l(e,sa,r)}catch(n){return n}}function Lf(e,r){try{return $l(e,Ms,r)}catch(n){return n}}function $l(e,r,n){var a,o=ot()(a=tr()(e).call(e,Ns)).call(a,function(m){return r(m.value,n,m.path)})||[],c=Lo(o),p=Yl(c);return p}function Ms(e,r,n){if(n=n||[],Array.isArray(e))return ot()(e).call(e,function(o,c){return Ms(o,r,ze()(n).call(n,c))});if(bn(e)){var a;return ot()(a=Je()(e)).call(a,function(o){return Ms(e[o],r,ze()(n).call(n,o))})}return r(e,n[n.length-1],n)}function sa(e,r,n){n=n||[];var a=[];if(n.length>0){var o=r(e,n[n.length-1],n);o&&(a=ze()(a).call(a,o))}if(Array.isArray(e)){var c=ot()(e).call(e,function(v,y){return sa(v,r,ze()(n).call(n,y))});c&&(a=ze()(a).call(a,c))}else if(bn(e)){var p,m=ot()(p=Je()(e)).call(p,function(v){return sa(e[v],r,ze()(n).call(n,v))});m&&(a=ze()(a).call(a,m))}return a=Lo(a),a}function ko(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 Fo(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function Ro(e){return Yl(Lo(Kl(e)))}function Kl(e){return Array.isArray(e)?e:[e]}function Lo(e){var r;return ze()(r=[]).apply(r,aa(ot()(e).call(e,function(n){return Array.isArray(n)?Lo(n):n})))}function Yl(e){return tr()(e).call(e,function(r){return typeof r!="undefined"})}function bn(e){return e&&H(e)==="object"}function Wa(e){return bn(e)&&Ha(e.then)}function Ha(e){return e&&typeof e=="function"}function ud(e){return e instanceof Error}function Jl(e){if(Mo(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function fd(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function Mf(e){return Jl(e)||Mo(e)&&e.type==="mutation"}function Ns(e){return Mf(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function pn(e){return Mo(e)&&e.type==="context"}function Mo(e){return e&&H(e)==="object"}function Xl(e,r){try{return Eo(e,r)}catch(n){return console.error(n),{}}}var cd=s(36394),dd=s.n(cd),Nf=s(8304),Ql=s.n(Nf);function Zl(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];this.message=o[0],r&&r.apply(this,o)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var pd=s(56855),hd=s.n(pd),vd=["properties"],Ki=["properties"],No=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Ds=["schema/example","items/example"];function za(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return vd.indexOf(r)>-1&&Ki.indexOf(n)===-1||No.indexOf(a)>-1||Ds.some(function(o){return a.indexOf(o)>-1})}function Ri(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,o=n.getBaseUrlForNodePath,c=o===void 0?function(y){var b;return a.getContext(ze()(b=[]).call(b,aa(r),aa(y))).baseDoc}:o,p=n.targetKeys,m=p===void 0?["$ref","$$ref"]:p,v=[];return hd()(e).forEach(function(){if(Pe()(m).call(m,this.key)&&typeof this.node=="string"){var b=this.path,I=ze()(r).call(r,this.path),R=_l(this.node,c(b));v.push(a.replace(I,R))}}),v}function _l(e,r){var n,a=e.split("#"),o=De(a,2),c=o[0],p=o[1],m=J.resolve(c||"",r||"");return p?ze()(n="".concat(m,"#")).call(n,p):m}var Df="application/json, application/yaml",Ga=/^([a-z]+:\/\/|\/\/)/i,la=Zl("JSONRefError",function(r,n,a){this.originalError=a,C()(this,n||{})}),fi={},ql=new(dd()),Bs=[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"}],$a=function(r){return Bs.some(function(n){return n(r)})},eu={key:"$ref",plugin:function(r,n,a,o){var c=o.getInstance(),p=Kn()(a).call(a,0,-1);if(!(za(p)||$a(p))){var m=o.getContext(a),v=m.baseDoc;if(typeof r!="string")return new la("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:v,fullPath:a});var y=ru(r),b=y[0],I=y[1]||"",R;try{R=v||b?Bf(b,v):null}catch(ie){return ua(ie,{pointer:I,$ref:r,basePath:R,fullPath:a})}var B,$;if(yd(I,R,p,o)&&!c.useCircularStructures){var te=_l(r,R);return r===te?null:nr.replace(a,te)}if(R==null?($=fa(I),B=o.get($),typeof B=="undefined"&&(B=new la("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:v,fullPath:a}))):(B=jf(R,I),B.__value!=null?B=B.__value:B=B.catch(function(ie){throw ua(ie,{pointer:I,$ref:r,baseDoc:v,fullPath:a})})),B instanceof Error)return[nr.remove(a),B];var q=_l(r,R),se=nr.replace(p,B,{$$ref:q});if(R&&R!==v)return[se,nr.context(p,{baseDoc:R})];try{if(!Uf(o.state,se)||c.useCircularStructures)return se}catch(ie){return null}}}},js=C()(eu,{docCache:fi,absoluteify:Bf,clearCache:Vf,JSONRefError:la,wrapError:ua,getDoc:Do,split:ru,extractFromDoc:jf,fetchJSON:gd,extract:nu,jsonPointerToArray:fa,unescapeJsonPointerToken:iu});const tu=js;function Bf(e,r){if(!Ga.test(e)){if(!r){var n;throw new la(ze()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return J.resolve(r,e)}return e}function ua(e,r){var n;if(e&&e.response&&e.response.body){var a;n=ze()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new la("Could not resolve reference: ".concat(n),r,e)}function ru(e){return(e+"").split("#")}function jf(e,r){var n=fi[e];if(n&&!nr.isPromise(n))try{var a=nu(r,n);return C()(yn().resolve(a),{__value:a})}catch(o){return yn().reject(o)}return Do(e).then(function(o){return nu(r,o)})}function Vf(e){typeof e!="undefined"?delete fi[e]:Je()(fi).forEach(function(r){delete fi[r]})}function Do(e){var r=fi[e];return r?nr.isPromise(r)?r:yn().resolve(r):(fi[e]=js.fetchJSON(e).then(function(n){return fi[e]=n,n}),fi[e])}function gd(e){return fetch(e,{headers:{Accept:Df},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return La.load(r)})}function nu(e,r){var n=fa(e);if(n.length<1)return r;var a=nr.getIn(r,n);if(typeof a=="undefined")throw new la("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function fa(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(H(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:ot()(r=e.split("/")).call(r,iu)}function iu(e){if(typeof e!="string")return e;var r=new(Ql())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function au(e){var r,n=new(Ql())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Kn()(r=n.toString()).call(r,1)}function md(e){return e.length===0?"":"/".concat(ot()(e).call(e,au).join("/"))}var ou=function(r){return!r||r==="/"||r==="#"};function Vs(e,r){if(ou(r))return!0;var n=e.charAt(r.length),a=Kn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function yd(e,r,n,a){var o,c,p=ql.get(a);p||(p={},ql.set(a,p));var m=md(n),v=ze()(o="".concat(r||"<specmap-base>","#")).call(o,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(B){var $;return I=ze()($="".concat(I,"/")).call($,au(B)),p[I]&&p[I].some(function(te){return Vs(te,v)||Vs(v,te)})});if(R)return!0;p[y]=ze()(c=p[y]||[]).call(c,v)}function Uf(e,r){var n=[e];return r.path.reduce(function(o,c){return n.push(o[c]),o[c]},e),a(r.value);function a(o){return nr.isObject(o)&&(n.indexOf(o)>=0||Je()(o).some(function(c){return a(o[c])}))}}const Wf={key:"allOf",plugin:function(r,n,a,o,c){if(!(c.meta&&c.meta.$$ref)){var p=Kn()(a).call(a,0,-1);if(!za(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=G({},y),Je()(y).length!==0){delete y.allOf;var b=[];if(b.push(o.replace(p,{})),r.forEach(function(B,$){if(!o.isObject(B)){if(v)return null;v=!0;var te=new TypeError("Elements in allOf must be objects");return te.fullPath=a,b.push(te)}b.push(o.mergeDeep(p,B));var q=Kn()(a).call(a,0,-1),se=Ri(B,q,{getBaseUrlForNodePath:function(pe){var ve;return o.getContext(ze()(ve=[]).call(ve,aa(a),[$],aa(pe))).baseDoc},specmap:o});b.push.apply(b,aa(se))}),y.example){var I;b.push(o.remove(ze()(I=[]).call(I,p,"example")))}if(b.push(o.mergeDeep(p,y)),!y.$$ref){var R;b.push(o.remove(ze()(R=[]).call(R,p,"$$ref")))}return b}}}}},bd={key:"parameters",plugin:function(r,n,a,o){if(Array.isArray(r)&&r.length){var c=C()([],r),p=Kn()(a).call(a,0,-1),m=G({},nr.getIn(o.spec,p));return r.forEach(function(v,y){try{c[y].default=o.parameterMacro(m,v)}catch(I){var b=new Error(I);return b.fullPath=a,b}}),nr.replace(a,c)}return nr.replace(a,r)}},su={key:"properties",plugin:function(r,n,a,o){var c=G({},r);for(var p in r)try{c[p].default=o.modelPropertyMacro(c[p])}catch(y){var m=new Error(y);return m.fullPath=a,m}var v=nr.replace(a,c);return v}};var Bo=function(){function e(r){Bl(this,e),this.root=ca(r||{})}return jl(e,[{key:"set",value:function(n,a){var o=this.getParent(n,!0);if(!o){Us(this.root,a,null);return}var c=n[n.length-1],p=o.children;if(p[c]){Us(p[c],a,o);return}p[c]=ca(a,o)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,o,c,p=0;p<n.length&&(c=n[p],o=a.children,!!o[c]);p+=1)a=o[c];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:Kn()(n).call(n,0,-1).reduce(function(o,c){if(!o)return o;var p=o.children;return!p[c]&&a&&(p[c]=ca(null,o)),p[c]},this.root)}}]),e}();function ca(e,r){return Us({children:{}},e,r)}function Us(e,r,n){return e.value=r||{},e.protoValue=n?G(G({},n.protoValue),e.value):e.value,Je()(e.children).forEach(function(a){var o=e.children[a];e.children[a]=Us(o,o.value,e)}),e}var lu=100,Hf=function(){},xd=function(){function e(r){var n=this,a,o;Bl(this,e),C()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Bo,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:C()(Object.create(this),nr,{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=tr()(a=ot()(o=this.plugins).call(o,this.wrapPlugin.bind(this))).call(a,nr.isFunction),this.patches.push(nr.add([],this.spec)),this.patches.push(nr.context([],this.context)),this.updatePatches(this.patches)}return jl(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,o=arguments.length,c=new Array(o>1?o-1:0),p=1;p<o;p++)c[p-1]=arguments[p];(a=console).log.apply(a,c)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,o,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,ze()(o=["[".concat(n,"] ")]).call(o,p))}}},{key:"wrapPlugin",value:function(n,a){var o=this.pathDiscriminator,c=null,p;return n[this.pluginProp]?(c=n,p=n[this.pluginProp]):nr.isFunction(n)?p=n:nr.isObject(n)&&(p=m(n)),C()(p.bind(c),{pluginName:n.name||a,isGenerator:nr.isGenerator(p)});function m(v){var y=function(I,R){return Array.isArray(I)?I.every(function(B,$){return B===R[$]}):!0};return Oe().mark(function b(I,R){var B,$,te,q,se,ie;return Oe().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:ie=function(Ce,we,xe){var Ae,Fe,Le,We,Ke,At,qe,_t,sr,Ut,lr,Kt,ur;return Oe().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(nr.isObject(Ce)){zt.next=6;break}if(v.key!==we[we.length-1]){zt.next=4;break}return zt.next=4,v.plugin(Ce,v.key,we,R);case 4:zt.next=30;break;case 6:Ae=we.length-1,Fe=we[Ae],Le=we.indexOf("properties"),We=Fe==="properties"&&Ae===Le,Ke=R.allowMetaPatches&&$[Ce.$$ref],At=0,qe=Je()(Ce);case 12:if(!(At<qe.length)){zt.next=30;break}if(_t=qe[At],sr=Ce[_t],Ut=ze()(we).call(we,_t),lr=nr.isObject(sr),Kt=Ce.$$ref,Ke){zt.next=22;break}if(!lr){zt.next=22;break}return R.allowMetaPatches&&Kt&&($[Kt]=!0),zt.delegateYield(ie(sr,Ut,xe),"t0",22);case 22:if(!(!We&&_t===v.key)){zt.next=27;break}if(ur=y(o,we),!(!o||ur)){zt.next=27;break}return zt.next=27,v.plugin(sr,_t,Ut,R,xe);case 27:At++,zt.next=12;break;case 30:case"end":return zt.stop()}},B)},B=Oe().mark(ie),$={},te=_(tr()(I).call(I,nr.isAdditiveMutation)),ve.prev=4,te.s();case 6:if((q=te.n()).done){ve.next=11;break}return se=q.value,ve.delegateYield(ie(se.value,se.path,se),"t0",9);case 9:ve.next=6;break;case 11:ve.next=16;break;case 13:ve.prev=13,ve.t1=ve.catch(4),te.e(ve.t1);case 16:return ve.prev=16,te.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 qt()(n=this.wrappedPlugins).call(n,function(o){var c=a.getMutationsForPlugin(o);return c.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return yn().race(ot()(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),o=a&&a[a.length-1];return o||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var o=this.constructor.getPluginName(n);this.pluginHistory[o]=this.pluginHistory[o]||[],this.pluginHistory[o].push(a)}},{key:"updatePatches",value:function(n){var a=this;nr.normalizeArray(n).forEach(function(o){if(o instanceof Error){a.errors.push(o);return}try{if(!nr.isObject(o)){a.debug("updatePatches","Got a non-object patch",o);return}if(a.showDebug&&a.allPatches.push(o),nr.isPromise(o.value)){a.promisedPatches.push(o),a.promisedPatchThen(o);return}if(nr.isContextPatch(o)){a.setContext(o.path,o.value);return}if(nr.isMutation(o)){a.updateMutations(o);return}}catch(c){console.error(c),a.errors.push(c)}})}},{key:"updateMutations",value:function(n){H(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=G({},n.value));var a=nr.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,o=this.promisedPatches.indexOf(n);if(o<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Ef()(a=this.promisedPatches).call(a,o,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(o){var c=G(G({},n),{},{value:o});a.removePromisedPatch(n),a.updatePatches(c)}).catch(function(o){a.removePromisedPatch(n),a.updatePatches(o)}),n.value}},{key:"getMutations",value:function(n,a){var o;return n=n||0,typeof a!="number"&&(a=this.mutations.length),Kn()(o=this.mutations).call(o,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 nr.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,o=this.nextPlugin();if(!o){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),yn().resolve(p)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[o]=(a.pluginCount[o]||0)+1,a.pluginCount[o]>lu){var m;return yn().resolve({spec:a.state,errors:ze()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(lu," plugin runs")))})}if(o!==this.currentPlugin&&this.promisedPatches.length){var v,y=ot()(v=this.promisedPatches).call(v,function(R){return R.value});return yn().all(ot()(y).call(y,function(R){return R.then(Hf,Hf)})).then(function(){return n.dispatch()})}return b();function b(){a.currentPlugin=o;var R=a.getCurrentMutations(),B=a.mutations.length-1;try{if(o.isGenerator){var $=_(o(R,a.getLib())),te;try{for($.s();!(te=$.n()).done;){var q=te.value;I(q)}}catch(ie){$.e(ie)}finally{$.f()}}else{var se=o(R,a.getLib());I(se)}}catch(ie){console.error(ie),I([C()(Object.create(ie),{plugin:o})])}finally{a.updatePluginHistory(o,{mutationIndex:B})}return a.dispatch()}function I(R){R&&(R=nr.fullyNormalizeArray(R),a.updatePatches(R,o))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return tr()(n).call(n,a)}}]),e}();function Sd(e){return new xd(e).dispatch()}var da={refs:tu,allOf:Wf,parameters:bd,properties:su},uu=function(r){return String.prototype.toLowerCase.call(r)},zf=function(r){return r.replace(/[^\w]/gi,"_")};function Gf(e){var r=e.openapi;return r?j()(r).call(r,"3"):!1}function wd(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function Ka(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=a.v2OperationIdCompatibilityMode;if(!e||H(e)!=="object")return null;var c=(e.operationId||"").replace(/\s/g,"");return c.length?zf(e.operationId):$f(r,n,{v2OperationIdCompatibilityMode:o})}function $f(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a.v2OperationIdCompatibilityMode;if(o){var c,p,m=ze()(c="".concat(r.toLowerCase(),"_")).call(c,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||ze()(p="".concat(e.substring(1),"_")).call(p,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ze()(n="".concat(uu(r))).call(n,zf(e))}function Kf(e,r){var n;return ze()(n="".concat(uu(r),"-")).call(n,e)}function Yf(e,r){return!e||!e.paths?null:Ya(e,function(n){var a=n.pathName,o=n.method,c=n.operation;if(!c||H(c)!=="object")return!1;var p=c.operationId,m=Ka(c,a,o),v=Kf(a,o);return[m,v,p].some(function(y){return y&&y===r})})}function Ya(e,r){return fu(e,r,!0)||null}function fu(e,r,n){if(!e||H(e)!=="object"||!e.paths||H(e.paths)!=="object")return null;var a=e.paths;for(var o in a)for(var c in a[o])if(c.toUpperCase()!=="PARAMETERS"){var p=a[o][c];if(!(!p||H(p)!=="object")){var m={spec:e,pathName:o,method:c.toUpperCase(),operation:p},v=r(m);if(n&&v)return m}}}function jo(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var o in n){var c,p=n[o];if(!(p==null||!Pe()(c=["object","function"]).call(c,H(p)))){var m=p.parameters,v=function(R){var B,$=p[R];if($==null||!Pe()(B=["object","function"]).call(B,H($)))return"continue";var te=Ka($,o,R);if(te){a[te]?a[te].push($):a[te]=[$];var q=a[te];if(q.length>1)q.forEach(function(We,Ke){var At;We.__originalOperationId=We.__originalOperationId||We.operationId,We.operationId=ze()(At="".concat(te)).call(At,Ke+1)});else if(typeof $.operationId!="undefined"){var se=q[0];se.__originalOperationId=se.__originalOperationId||$.operationId,se.operationId=te}}if(R!=="parameters"){var ie=[],pe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(pe[ve]=r[ve],ie.push(pe));if(m&&(pe.parameters=m,ie.push(pe)),ie.length){var ge=_(ie),Ce;try{for(ge.s();!(Ce=ge.n()).done;){var we=Ce.value;for(var xe in we)if(!$[xe])$[xe]=we[xe];else if(xe==="parameters"){var Ae=_(we[xe]),Fe;try{var Le=function(){var Ke=Fe.value,At=$[xe].some(function(qe){return qe.name&&qe.name===Ke.name||qe.$ref&&qe.$ref===Ke.$ref||qe.$$ref&&qe.$$ref===Ke.$$ref||qe===Ke});At||$[xe].push(Ke)};for(Ae.s();!(Fe=Ae.n()).done;)Le()}catch(We){Ae.e(We)}finally{Ae.f()}}}}catch(We){ge.e(We)}finally{ge.f()}}}};for(var y in p)var b=v(y)}}return r.$$normalized=!0,e}function Jf(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(c){return e({url:c,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Df},credentials:o}).then(function(p){return p.body})}}function Ad(){da.refs.clearCache()}function Xf(e){var r=e.fetch,n=e.spec,a=e.url,o=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,B=e.useCircularStructures,$=e.http,te=e.baseDoc;if(te=te||a,$=r||$||Cs,!n)return Jf($,{requestInterceptor:b,responseInterceptor:I})(te).then(q);return q(n);function q(se){te&&(da.refs.docCache[te]=se),da.refs.fetchJSON=Jf($,{requestInterceptor:b,responseInterceptor:I});var ie=[da.refs];return typeof y=="function"&&ie.push(da.parameters),typeof v=="function"&&ie.push(da.properties),o!=="strict"&&ie.push(da.allOf),Sd({spec:se,context:{baseDoc:te},plugins:ie,allowMetaPatches:p,pathDiscriminator:m,parameterMacro:y,modelPropertyMacro:v,useCircularStructures:B}).then(R?function(){var pe=bt(Oe().mark(function ve(ge){return Oe().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.abrupt("return",ge);case 1:case"end":return we.stop()}},ve)}));return function(ve){return pe.apply(this,arguments)}}():jo)}}var mr=s(72579),Vo=s.n(mr);function cu(e,r){return pa.apply(this,arguments)}function pa(){return pa=bt(Oe().mark(function e(r,n){var a,o,c,p,m,v,y,b,I,R,B,$,te=arguments;return Oe().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return a=te.length>2&&te[2]!==void 0?te[2]:{},o=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=jo({spec:r}),B=R.spec,se.next=6,Xf(G(G({},I),{},{spec:B,allowMetaPatches:!0,skipNormalization:!0}));case 6:return $=se.sent,!o&&Array.isArray(n)&&n.length&&($.spec=Vo()($.spec,n)||null),se.abrupt("return",$);case 9:case"end":return se.stop()}},e)})),pa.apply(this,arguments)}var Xn=function(){return null},Ws=function(r){return Array.isArray(r)?r:[r]},Ja={mapTagOperations:_f,makeExecute:Qf};function Qf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,o=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(G({spec:e.spec,requestInterceptor:m,responseInterceptor:v,userFetch:y,pathName:n,method:a,parameters:c,operationId:o},p))}}}function Cd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Ja.makeExecute(e),n=Ja.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var o in n){a[o]={operations:{}};for(var c in n[o])a[o].operations[c]={execute:n[o][c]}}return{apis:a}}function Zf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Ja.makeExecute(e);return{apis:Ja.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function _f(e){var r=e.spec,n=e.cb,a=n===void 0?Xn:n,o=e.defaultTag,c=o===void 0?"default":o,p=e.v2OperationIdCompatibilityMode,m={},v={};return fu(r,function(y){var b=y.pathName,I=y.method,R=y.operation,B=R.tags?Ws(R.tags):[c];B.forEach(function($){if(typeof $=="string"){v[$]=v[$]||{};var te=v[$],q=Ka(R,b,I,{v2OperationIdCompatibilityMode:p}),se=a({spec:r,pathName:b,method:I,operation:R,operationId:q});if(m[q]){var ie;m[q]+=1,te[ze()(ie="".concat(q)).call(ie,m[q])]=se}else if(typeof te[q]!="undefined"){var pe,ve,ge=m[q]||1;m[q]=ge+1,te[ze()(pe="".concat(q)).call(pe,m[q])]=se;var Ce=te[q];delete te[q],te[ze()(ve="".concat(q)).call(ve,ge)]=Ce}else te[q]=se}})}),v}var du=s(26405);function Ed(e,r){if(e==null)return{};var n={},a=E(e),o,c;for(c=0;c<a.length;c++)o=a[c],!(du(r).call(r,o)>=0)&&(n[o]=e[o]);return n}function pu(e,r){if(e==null)return{};var n=Ed(e,r),a,o;if(F){var c=F(e);for(o=0;o<c.length;o++)a=c[o],!(du(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var qf=s(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 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);/*!
|
|
85
89
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
86
90
|
*
|
|
87
91
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
88
92
|
* Released under the MIT License.
|
|
89
|
-
*/function ir(e){return Object.prototype.toString.call(e)==="[object Object]"}function hu(e){var r,n;return ir(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(ir(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const Od={body:Xa,header:Hs,query:Ar,path:Pd,formData:Td};function Xa(e){var r=e.req,n=e.value;r.body=n}function Td(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 Hs(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Pd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function Ar(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 o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function zs(e,r){return Pe()(r).call(r,"application/json")?typeof e=="string"?e:it()(e):e.toString()}function Id(e){var r=e.req,n=e.value,a=e.parameter,o=a.name,c=a.style,p=a.explode,m=a.content;if(m){var v=Je()(m)[0];r.url=r.url.split("{".concat(o,"}")).join(Na(zs(n,v),{escape:!0}));return}var y=tn({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(o,"}")).join(y)}function kd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var o=Je()(a.content)[0];r.query[a.name]=zs(n,o);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 Gs=["accept","authorization","content-type"];function t(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(Gs.indexOf(n.name.toLowerCase())>-1)){if(n.content){var o=Je()(n.content)[0];r.headers[n.name]=zs(a,o);return}typeof a!="undefined"&&(r.headers[n.name]=tn({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function i(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var o=H(a);if(n.content){var c,p=Je()(n.content)[0];r.headers.Cookie=ze()(c="".concat(n.name,"=")).call(c,zs(a,p));return}if(o!=="undefined"){var m=o==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+tn({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var u=s(1858),l=s.n(u),f=function(){return typeof l()!="undefined"?l():typeof self!="undefined"?self:window}(),g=f.btoa;const S=g;function T(e,r){var n=e.operation,a=e.requestBody,o=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=L({request:r,securities:o,operation:n,spec:c});var v=n.requestBody||{},y=Je()(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,B=tr()(R=Er()(n.responses)).call(R,function(te){var q=De(te,2),se=q[0],ie=q[1],pe=parseInt(se,10);return pe>=200&&pe<300&&hu(ie.content)}).reduce(function(te,q){var se=De(q,2),ie=se[1];return ze()(te).call(te,Je()(ie.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(H(a)==="object"){var $=(v.content[m]||{}).encoding||{};r.form={},Je()(a).forEach(function(te){r.form[te]={value:a[te],encoding:$[te]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function L(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,c=o===void 0?{}:o,p=e.spec,m=G({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!Je()(y).length,R=Vo()(p,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Je()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(B){Je()(B).forEach(function($){var te=y[$],q=R[$];if(!!te){var se=te.value||te,ie=q.type;if(te){if(ie==="apiKey")q.in==="query"&&(m.query[q.name]=se),q.in==="header"&&(m.headers[q.name]=se),q.in==="cookie"&&(m.cookies[q.name]=se);else if(ie==="http"){if(/^basic$/i.test(q.scheme)){var pe,ve=se.username||"",ge=se.password||"",Ce=S(ze()(pe="".concat(ve,":")).call(pe,ge));m.headers.Authorization="Basic ".concat(Ce)}/^bearer$/i.test(q.scheme)&&(m.headers.Authorization="Bearer ".concat(se))}else if(ie==="oauth2"||ie==="openIdConnect"){var we,xe=te.token||{},Ae=q["x-tokenName"]||"access_token",Fe=xe[Ae],Le=xe.token_type;(!Le||Le.toLowerCase()==="bearer")&&(Le="Bearer"),m.headers.Authorization=ze()(we="".concat(Le," ")).call(we,Fe)}}}})}),m)}function V(e,r){var n=e.spec,a=e.operation,o=e.securities,c=e.requestContentType,p=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=le({request:r,securities:o,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=De(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=De(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&tr()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&tr()(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,B,$=a.parameters&&tr()(R=a.parameters).call(R,function(q){return q.in==="body"}).length>0,te=a.parameters&&tr()(B=a.parameters).call(B,function(q){return q.in==="formData"}).length>0;($||te)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function le(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,c=o===void 0?{}:o,p=e.spec,m=G({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,R=c.security||I,B=y&&!!Je()(y).length,$=p.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Je()(a).length||!B||!R||Array.isArray(c.security)&&!c.security.length?r:(R.forEach(function(te){Je()(te).forEach(function(q){var se=y[q];if(!!se){var ie=se.token,pe=se.value||se,ve=$[q],ge=ve.type,Ce=ve["x-tokenName"]||"access_token",we=ie&&ie[Ce],xe=ie&&ie.token_type;if(se){if(ge==="apiKey"){var Ae=ve.in==="query"?"query":"headers";m[Ae]=m[Ae]||{},m[Ae][ve.name]=pe}else if(ge==="basic")if(pe.header)m.headers.authorization=pe.header;else{var Fe,Le=pe.username||"",We=pe.password||"";pe.base64=S(ze()(Fe="".concat(Le,":")).call(Fe,We)),m.headers.authorization="Basic ".concat(pe.base64)}else if(ge==="oauth2"&&we){var Ke;xe=!xe||xe.toLowerCase()==="bearer"?"Bearer":xe,m.headers.authorization=ze()(Ke="".concat(xe," ")).call(Ke,we)}}}})}),m)}var de=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Se=function(r){return Array.isArray(r)?r:[]},me=Zl("OperationNotFoundError",function(r,n,a){this.originalError=a,C()(this,n||{})}),Ie=function(r,n){return tr()(n).call(n,function(a){return a.name===r})},Me=function(r){var n={};r.forEach(function(o){n[o.in]||(n[o.in]={}),n[o.in][o.name]=o});var a=[];return Je()(n).forEach(function(o){Je()(n[o]).forEach(function(c){a.push(n[o][c])})}),a},$e={buildRequest:_e};function Qe(e){var r=e.http,n=e.fetch,a=e.spec,o=e.operationId,c=e.pathName,p=e.method,m=e.parameters,v=e.securities,y=pu(e,de),b=r||n||Cs;c&&p&&!o&&(o=Kf(c,p));var I=$e.buildRequest(G({spec:a,operationId:o,parameters:m,securities:v,http:b},y));return I.body&&(hu(I.body)||Array.isArray(I.body))&&(I.body=it()(I.body)),b(I)}function _e(e){var r,n,a=e.spec,o=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,B=e.http,$=e.signal,te=e.parameters,q=e.parameterBuilders,se=Gf(a);q||(se?q=w:q=Od);var ie=B&&B.withCredentials?"include":"same-origin",pe={url:"",credentials:ie,headers:{},cookies:{}};$&&(pe.signal=$),m&&(pe.requestInterceptor=m),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var ve=Yf(a,o);if(!ve)throw new me("Operation ".concat(o," not found"));var ge=ve.operation,Ce=ge===void 0?{}:ge,we=ve.method,xe=ve.pathName;if(pe.url+=et({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:R,pathName:xe,method:we}),!o)return delete pe.cookies,pe;pe.url+=xe,pe.method="".concat(we).toUpperCase(),te=te||{};var Ae=a.paths[xe]||{};c&&(pe.headers.accept=c);var Fe=Me(ze()(r=ze()(n=[]).call(n,Se(Ce.parameters))).call(r,Se(Ae.parameters)));Fe.forEach(function(Ke){var At=q[Ke.in],qe;if(Ke.in==="body"&&Ke.schema&&Ke.schema.properties&&(qe=te),qe=Ke&&Ke.name&&te[Ke.name],typeof qe=="undefined"){var _t;qe=Ke&&Ke.name&&te[ze()(_t="".concat(Ke.in,".")).call(_t,Ke.name)]}else if(Ie(Ke.name,Fe).length>1){var sr;console.warn(ze()(sr="Parameter '".concat(Ke.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,Ke.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof Ke.default!="undefined"&&typeof qe=="undefined"&&(qe=Ke.default),typeof qe=="undefined"&&Ke.required&&!Ke.allowEmptyValue)throw new Error("Required parameter ".concat(Ke.name," is not provided"));if(se&&Ke.schema&&Ke.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(Ut){throw new Error("Could not parse object parameter value string as JSON")}At&&At({req:pe,parameter:Ke,value:qe,operation:Ce,spec:a})}});var Le=G(G({},e),{},{operation:Ce});if(se?pe=T(Le,pe):pe=V(Le,pe),pe.cookies&&Je()(pe.cookies).length){var We=Je()(pe.cookies).reduce(function(Ke,At){var qe=pe.cookies[At],_t=Ke?"&":"",sr=qf.serialize(At,qe);return Ke+_t+sr},"");pe.headers.Cookie=We}return pe.cookies&&delete pe.cookies,wo(pe),pe}var Xe=function(r){return r?r.replace(/\W/g,""):null};function et(e){var r=Gf(e.spec);return r?yt(e):fr(e)}function yt(e){var r=e.spec,n=e.pathName,a=e.method,o=e.server,c=e.contextUrl,p=e.serverVariables,m=p===void 0?{}:p,v=Vo()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Vo()(r,["paths",n,"servers"])||Vo()(r,["servers"]),y="",b=null;if(o&&v&&v.length){var I=ot()(v).call(v,function($){return $.url});I.indexOf(o)>-1&&(y=o,b=v[I.indexOf(o)])}if(!y&&v&&v.length){y=v[0].url;var R=De(v,1);b=R[0]}if(y.indexOf("{")>-1){var B=Bt(y);B.forEach(function($){if(b.variables&&b.variables[$]){var te=b.variables[$],q=m[$]||te.default,se=new RegExp("{".concat($,"}"),"g");y=y.replace(se,q)}})}return ht(y,c)}function ht(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?J.parse(J.resolve(r,e)):J.parse(e),a=J.parse(r),o=Xe(n.protocol)||Xe(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",m;if(o&&c){var v;m=ze()(v="".concat(o,"://")).call(v,c+p)}else m=p;return m[m.length-1]==="/"?Kn()(m).call(m,0,-1):m}function Bt(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function fr(e){var r=e.spec,n=e.scheme,a=e.contextUrl,o=a===void 0?"":a,c=J.parse(o),p=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||p||Xe(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(m&&v){var I;b=ze()(I="".concat(m,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Kn()(b).call(b,0,-1):b}Wt.http=Cs,Wt.makeHttp=Ii.bind(null,Wt.http),Wt.resolve=Xf,Wt.resolveSubtree=cu,Wt.execute=Qe,Wt.serializeRes=Ml,Wt.serializeHeaders=xf,Wt.clearCache=Ad,Wt.makeApisTagOperation=Zf,Wt.buildRequest=_e,Wt.helpers={opId:Ka},Wt.getBaseUrl=et;function Wt(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 Wt))return new Wt(n);C()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||C()(r,Wt.makeApisTagOperation(r)),r});return a.client=this,a}Wt.prototype={http:Cs,execute:function(r){return this.applyDefaults(),Wt.execute(G({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 Wt.resolve(G({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})}},Wt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&j()(n).call(n,"http")){var a=J.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var wr=Wt.helpers;const xn=Wt;var M=s(2784),Dt=s(81804),St=s(27020),Ir=s(77532),vr=s(96087),Cr=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const br=Object.values(vr.FileUploadFormats),hn=["application/octet-stream","application/pdf","application/gzip","application/zip"],ha=["image/","audio/","video/"];function Li(e){if(ha.some(r=>e.startsWith(r)))return e}function Rr(e){return hn.includes(e)?!0:ha.some(r=>e.startsWith(r))}function ci(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||(Rr(n)?"binary":"");return r.type===vr.DefinitionTypes.STRING&&br.includes(a)}function Lr(e,r){if(!e||!e.type||e.type==="any")return Rr(r);const n=e.format||e.contentEncoding||"";return e.type===vr.DefinitionTypes.STRING&&br.includes(n)}function $s(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 di({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(vr.FileUploadFormats.BASE64)}function va(e,r){return Cr(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===vr.DefinitionTypes.STRING&&di(r)?a=yield $s(n[0]):r.type===vr.DefinitionTypes.ARRAY&&r.items&&(di(r.items)?a=yield Promise.all(n.map(c=>Cr(this,null,function*(){return yield $s(c)}))):a=n),a})}var Yi=s(93892),It=s(80127),Vt=s(41195),nn=s(43284),Tg=s(16610);function Pg({response:e}){return M.createElement(M.Fragment,null,M.createElement(nn.EE,null," Body: "),Ig(e))}function Ig(e){return e.body?M.createElement(Dt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?M.createElement(Tg.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?M.createElement(Dt.SourceCode,{lang:(0,St.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 ec=s(79978);function kg({headers:e}){const r=(0,M.useContext)(ec.jI),[n,a]=(0,M.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,c=Object.keys(e),p=!!o&&c.length>o,m=p&&n?[...c].splice(0,o):[...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(Ep,null,y,":"),M.createElement("code",null,e[y]))),p&&M.createElement(Op,{onClick:v},n?"Show more...":"Hide headers")))}const Ep=Vt.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=$(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`
|
|
90
94
|
text-transform: capitalize;
|
|
91
95
|
display: inline-block;
|
|
92
96
|
padding-right: 5px;
|
|
93
|
-
`,
|
|
97
|
+
`,Pp=Qt.ZP.div`
|
|
94
98
|
cursor: pointer;
|
|
95
99
|
margin-top: 5px;
|
|
96
100
|
font-size: 14px;
|
|
97
|
-
`;
|
|
101
|
+
`;Tp.displayName="HeaderName",Pp.displayName="StyledShowMoreLabel";const Lg=Qt.ZP.div`
|
|
98
102
|
margin-bottom: 10px;
|
|
99
|
-
`,
|
|
103
|
+
`,Rd=Qt.ZP.div`
|
|
100
104
|
display: inline-block;
|
|
101
105
|
margin-right: 20px;
|
|
102
106
|
padding: 2px 0;
|
|
103
107
|
text-align: center;
|
|
104
108
|
color: var(--text-color-inverse);
|
|
105
|
-
`,
|
|
109
|
+
`,Ng=(0,Qt.ZP)(Rd)`
|
|
106
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)"};
|
|
107
|
-
`,
|
|
111
|
+
`,Ip=Qt.ZP.header`
|
|
108
112
|
font-weight: bold;
|
|
109
113
|
margin-bottom: 10px;
|
|
110
|
-
`,
|
|
114
|
+
`,Dg=Qt.ZP.code`
|
|
111
115
|
border-left: 3px solid #ff4040;
|
|
112
116
|
padding-left: 5px;
|
|
113
|
-
`,
|
|
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`
|
|
114
118
|
display: flex;
|
|
115
119
|
font-size: 12px;
|
|
116
120
|
button {
|
|
117
121
|
margin: 0;
|
|
118
122
|
}
|
|
119
|
-
`,
|
|
123
|
+
`,Fp=Qt.ZP.button`
|
|
120
124
|
outline: none;
|
|
121
125
|
border: none;
|
|
122
126
|
background-color: var(--panel-try-it-tabs-background-color);
|
|
@@ -145,25 +149,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
145
149
|
background-color: var(--panel-try-it-tabs-hover-background-color);
|
|
146
150
|
}
|
|
147
151
|
|
|
148
|
-
${({active:e})=>e&&
|
|
152
|
+
${({active:e})=>e&&Qt.iv`
|
|
149
153
|
border-color: var(--panel-try-it-tabs-active-border-color);
|
|
150
154
|
background-color: var(--panel-try-it-tabs-active-background-color);
|
|
151
155
|
`||""}
|
|
152
156
|
|
|
153
|
-
${({disabled:e})=>e&&
|
|
157
|
+
${({disabled:e})=>e&&Qt.iv`
|
|
154
158
|
cursor: default;
|
|
155
159
|
border-color: var(--panel-try-it-tabs-disables-border-color)
|
|
156
160
|
background-color: var(--panel-try-it-tabs-disabled-background-color);
|
|
157
161
|
color: var(--panel-try-it-tabs-disabled-text-color);
|
|
158
162
|
`||""}
|
|
159
|
-
`;function
|
|
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)`
|
|
160
164
|
width: var(--panel-try-it-action-button-width);
|
|
161
|
-
`,
|
|
162
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
163
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
164
|
-
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
|
|
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
169
|
`).join(`
|
|
166
|
-
`+te)}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,B=0,$=0;b[0].replace(/%[a-zA-Z%]/g,function(te){te!=="%%"&&(B++,te==="%c"&&($=B))}),b.splice($,0,R)}}var o=["#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:o,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,B=new Array(R),$=0;$<R;$++)B[$]=arguments[$];b&&B.unshift(b);var te=I.namespaces.split(",").map(function(pe){return pe[pe.length-1]==="*"?new RegExp("^"+pe.slice(0,pe.length-1)+".*$"):new RegExp("^"+pe+"$")}),q=te.some(function(pe){return pe.test(b)}),se={color:r(b,I.colors),namespace:b,useColors:I.useColors};if(!1)var ie}}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}),Uo=Ji("informed:ObjMap "),rc=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},nc=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(c,p){return c!=null?c[p]:c},r);return o===void 0||o===r?a:o},Lp=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},rm=function(r){return r.replace(Lp(r),"").replace(/\./,"")},nm=function(r,n){var a=Lp(n),o=rm(n),c=a?nc(r,a):r;return!!(c&&Object.hasOwnProperty.call(c,o.replace(/\[(.*)\]/,"$1")))},Mp=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(o,c,p,m){return p===m.length-1?(o[c]=a,o[c]):o[c]===void 0?(Number.isInteger(+m[p+1])?o[c]=[]:o[c]={},o[c]):(Number.isInteger(+m[p+1])&&!Array.isArray(o[c])&&(o[c]=[]),o[c])},r)},Np=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(o,c,p,m){return o===void 0?o:(p===m.length-1&&(delete o[c],a=!0),o[c])},r),a},im=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(o,c,p,m){return o===void 0?o:(p===m.length-1&&Array.isArray(o)&&(a=o.splice(c,1)),o[c])},r),a},am=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},Bd=function(r){var n=rc(r);return Number.isInteger(+n[n.length-1])},wt=function(){function e(){Rd(this,e)}return Ld(e,null,[{key:"empty",value:function(n){return am(n).length===0}},{key:"get",value:function(n,a){var o=nc(n,a);return o}},{key:"has",value:function(n,a){return nm(n,a)}},{key:"set",value:function(n,a,o){if(o!==void 0)Uo("SETTING",a,o),Mp(n,a,o);else if(Bd(a)&&e.get(n,a)!==void 0){Uo("Special case SETTING",a,"to undefined"),Mp(n,a,void 0);var c=rc(a);c=c.slice(0,c.length-1),ic(n,c)}else!Bd(a)&&e.get(n,a)!==void 0&&(Uo("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){Uo("DELETE",a),Bd(a)?(Uo("ARRAY",a),this.pullOut(n,a)):Np(n,a);var o=rc(a);o=o.slice(0,o.length-1),ic(n,o)}},{key:"pullOut",value:function(n,a){var o=rc(a),c=o[o.length-1];o=o.slice(0,o.length-1),Uo("Pulling out:",o,"index",c);var p=nc(n,o);Uo("Array",p),Array.isArray(p)&&im(p,c),ic(n,o)}}]),e}();function ic(e,r){if(r.length!==0){var n=nc(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Np(e,r),ic(e,r.slice(0,r.length-1))}}var Qn=M.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),vu=M.createContext({}),gu=M.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Dp=M.createContext(),Bp=M.createContext(),jp=M.createContext(),jd=M.createContext(),Vp=M.createContext(),Up=M.createContext(),Wp=M.createContext(),Hp=M.createContext();function Mi(){var e=(0,M.useContext)(gu);return e}function ga(e){var r=(0,M.useRef)(),n=(0,M.useRef)(!0),a=(0,M.useState)(e),o=kr(a,2),c=o[0],p=o[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 zp=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},Gp=function(r){var n={};if(r.inner){if(r.inner.length===0){wt.set(n,r.path,r.message);return}var a=em(r.inner),o;try{for(a.s();!(o=a.n()).done;){var c=o.value;wt.get(n,c.path)||wt.set(n,c.path,c.message)}}catch(p){a.e(p)}finally{a.f()}}return n},$p=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){var a=Gp(o);return a}},Kp=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Yp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return Kp(a)}},Jp=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(o){var c=o.message,p=o.dataPath,m=o.keyword,v=o.params,y=p;m==="required"&&(y="".concat(y,".").concat(v.missingProperty)),y=y.replace(".",""),wt.set(a,y,c)}),a},Wo=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)})},om=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)}},Vd=function(r,n,a){var o=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,B=n.minimum,$=n.maximum,te=n.minLength,q=n.maxLength,se=n.pattern,ie=n.type,pe=n.properties,ve=Wo();p&&p.id&&(ve=p.id);var ge={componentType:o,field:a?"".concat(a,".").concat(r):r,type:ie,uiBefore:m,uiAfter:v,properties:ie==="object"?pe:void 0,items:ie==="array"?b:void 0,props:Rt(Rt({label:R,id:ve,min:B,max:$,minLength:te,maxLength:q,pattern:se},c),p)};if(y){var Ce=n.oneOf.map(function(Ae){var Fe=Ae["input:props"],Le=Fe===void 0?{}:Fe;return Rt({value:Ae.const,label:Ae.title},Le)});ge.props.options=Ce}if(I){var we=n.enum.map(function(Ae){return{value:Ae,label:Ae}});ge.props.options=we}if(b&&b.oneOf){var xe=b.oneOf.map(function(Ae){var Fe=Ae["input:props"],Le=Fe===void 0?{}:Fe;return Rt({value:Ae.const,label:Ae.title},Le)});ge.props.options=xe}return ge},Xp=function(r,n,a){if(!r||n)return[];var o=r.properties,c=o===void 0?{}:o,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),B=v.indexOf(I);return(R>-1?R:v.length+1)-(B>-1?B:v.length+1)}).map(function(b){var I=c[b],R=Vd(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},sm=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")},lm=function(r,n){for(var a=0,o=-1,c=!0;c&&a<r.length;)r[a]==n[a]?o=a:c=!1,a=a+1;return o},ac=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),o=sm(n,a),c=o.findIndex(function(q){return typeof q!="string"}),p=o.length-an(o).reverse().findIndex(function(q){return typeof q!="string"}),m=[],v=a.split(""),y=0,b=0,I=lm(o.slice(0,c),v.slice(0,c));I>-1&&(y=I+1,m=m.concat(o.slice(0,I+1)),b=I+1),I<0&&(m=m.concat(o.slice(0,c)),b=c);for(var R=b;R<o.length;R++){var B=o[R];if(y!=v.length){var $=v[y];if(typeof B=="function")m.push(B($)),y=y+1;else{var te=typeof B=="string"?B===$:B.test($);te&&typeof B=="string"?(m.push(B),y=y+1):!te&&typeof B=="string"?y!=v.length&&m.push(B):te&&typeof B!="string"?(m.push($),y=y+1):!te&&typeof B!="string"&&(y=y+1,R=R-1)}}else if(typeof B=="string"&&R>=p)m.push(B);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},um=function(r,n){var a,o,c=new Intl.NumberFormat(r,n),p=new Intl.NumberFormat(r),m=(a=(o=p.formatToParts(.1).find(function(q){var se=q.type;return se==="decimal"}))===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:".";function v(q,se){return q instanceof RegExp&&se instanceof RegExp&&q.source===se.source&&q.global===se.global&&q.ignoreCase===se.ignoreCase&&q.multiline===se.multiline}function y(q,se){for(var ie=q.length;ie--;)if(se(q[ie]))return ie;return-1}function b(q,se,ie){var pe=an(q);return Array.isArray(ie)?pe.splice.apply(pe,[se,0].concat(an(ie))):pe.splice(se,0,ie),pe}function I(q){return"".concat(q).replace(/\D/g,"")}function R(q){return"".concat(q).split(m).map(function(se){return I(se)}).join(".")}function B(q){if(typeof q=="number")return q;var se=parseFloat(R(q));return Number.isNaN(se)?void 0:se}function $(q){var se=R(q),ie="".concat(se).split(".")[1],pe=c.formatToParts(Number(se));ie==="0"&&pe.push({type:"decimal",value:m},{type:"fraction",value:ie});var ve=pe.reduce(function(we,xe){var Ae=xe.type,Fe=xe.value;return["decimal","fraction"].includes(Ae)&&ie==null?we:["integer","fraction"].includes(Ae)?[].concat(an(we),an(Fe.split("").filter(function(Le,We){return Ae==="fraction"?We<ie.length:!0}).map(function(){return/\d/}))):Ae==="currency"?[].concat(an(we),an(Fe.split(""))):[].concat(an(we),[Fe])},[]),ge=y(ve,function(we){return v(we,/\d/)});ve.indexOf(m)===-1&&"".concat(q).indexOf(m)!==-1&&(ve=b(ve,ge+1,[m,"[]"]),ge+=2);var Ce=ve.slice(ge+1).join("");return ve=[].concat(an(ve.slice(0,ge+1)),[Ce]),ve}var te=function(se){if(se!=null)return B(se)};return{formatter:$,parser:te}},_x=Object.freeze({__proto__:null,getChildDisplayName:zp,yupToFormErrors:Gp,validateYupSchema:$p,yupToFormError:Kp,validateYupField:Yp,validateAjvSchema:Jp,uuidv4:Wo,debounce:om,computeFieldFromProperty:Vd,computeFieldsFromSchema:Xp,getSchemaPathFromJsonPath:Qp,informedFormat:ac,createIntlNumberFormatter:um}),Ni=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,fm=function(r){var n=r.value,a=r.inputRef,o=r.maintainCursor,c=o===void 0?!0:o,p=ga(0),m=kr(p,3),v=m[0],y=m[1],b=m[2],I=ga(0),R=kr(I,3),B=R[0],$=R[1],te=R[2];return Ni(function(){if(a.current!=null&&b()){var q=b()+te();te()!=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}},cm=function(r,n){var a=(0,M.useRef)(!0),o=a.current;(0,M.useEffect)(function(){if(o)a.current=!1;else return r()},n)},Ln=Ji("informed:useField "),Zp=function(r,n,a,o,c){if(r!=null){if(c)return c(r);if(n)return n(r);if(a&&!o){var p=ac(r,a);return p.value}return r}},dm=function(r,n,a,o){if(n&&a)return n(r);if(o){var c=ac(r,o);return c.value}return r},pm=function(r,n,a){var o=a.required;if(r||n)return function(c,p){if(n)return Yp(n,c);if(r)return r(c,p)};if(o)return function(c){return ym(c,o)}},hm=function(r){var n=r.fieldType,a=r.setValue,o=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),o&&o(y)}),function(v){m(v)}},vm=function(r){var n=r.setTouched,a=r.onBlur;return function(o){n(!0),a&&a(o)}},gm=function(r){var n=r.fieldType,a=r.maskedValue,o=r.multiple,c=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return c||(o?[]:"");case"checkbox":return!!c;default:return c}},mm=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},ym=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function mu(){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,o=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,B=e.validateOnChange,$=e.validateOnBlur,te=e.validateOnMount,q=e.asyncValidateOnBlur,se=e.maskOnBlur,ie=e.allowEmptyString,pe=e.onValueChange,ve=e.notify,ge=e.keepState,Ce=e.maintainCursor,we=e.debug,xe=e.shadow,Ae=e.step,Fe=e.fieldType,Le=e.multiple,We=e.onChange,Ke=e.onBlur,At=e.formController,qe=e.relevant,_t=e.required,sr=e.keepStateIfRelevant,Ut=e.initialize,lr=e.formatterDependencies,Kt=lr===void 0?[]:lr,ur=Nr(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"]),xr=(0,M.useState)(Wo()),zt=kr(xr,1),ct=zt[0],Et=(0,M.useContext)(Qn),Jt=(0,M.useContext)(Hp),Gt=Jt||sr,Yt=Mi(),Xr=(0,M.useRef)(),Bn=(0,M.useRef)(!0),gi=(0,M.useRef)(),Dr=(0,M.useRef)(!1),sn=function(){return!Dr.current},Ko=function(){return Dr.current};At&&(Et=At.updater,Yt=At.getFormApi());var Tn=pm(a,c,{required:_t}),Yo=(0,M.useState)(function(){return Et.getInitialValue(n)}),fp=kr(Yo,1),ji=fp[0],Vi=Et.getSavedValue(n),xa,nl;(ge||Gt)&&Vi?(Ln("Setting field ".concat(Cp,"'s kept state"),Vi),xa=Vi.value,nl=Vi.touched,Yt.removeSavedState(Cp)):R!=null?xa=R:xa=ji;var Lu=ga(Zp(xa,p,b,I,Ut)),Xt=kr(Lu,3),wn=Xt[0],cp=Xt[1],kx=Xt[2],Fx=ga(te?Tn(wn):void 0),dp=kr(Fx,3),mg=dp[0],yg=dp[1],Rx=dp[2],Lx=ga(nl),pp=kr(Lx,3),bg=pp[0],Mx=pp[1],xg=pp[2],Nx=(0,M.useState)(function(){return dm(wn,v,y,b)}),Sg=kr(Nx,2),hp=Sg[0],vp=Sg[1],wg=(0,M.useRef)();wg.current=hp;var Ag=(0,M.useRef)(R),Jo=(0,M.useRef)(n),Cg=(0,M.useRef)();Ag.current=R,Jo.current=n;var Dx=(0,M.useRef)(null),Zi=M.useMemo(function(){return r||Dx},[]),gp=fm({value:wn,inputRef:Zi,maintainCursor:!!Ce}),mp=gp.getCursor,Bx=gp.setCursor,yp=gp.setCursorOffset,jx=function(){return!0},bp=function(cr){var ln=qe||jx,jn=Yt.getFullField(Jo.current)||Jo.current,Qt={path:jn,parentPath:jn.replace(/(.*)[.[].*/,"$1"),get:function(Vn,Du){return wt.get(Vn,Du)}};return Jt&&Jt.relevant?ln(cr,Qt)&&Jt.relevant(cr,Qt):ln(cr,Qt)},Vx=ga(bp(Yt.getValues())),xp=kr(Vx,3),Fc=xp[0],Ux=xp[1],Eg=xp[2],Wx=function(cr){return Jt&&Jt.relevant?Jt.relevant(cr):!0},Hx=function(){var cr=bp(Yt.getValues()),ln=Eg();return cr!=ln&&Ux(cr),cr};(0,M.useEffect)(function(){!Fc&&!ge&&Xr.current.reset()},[Fc]);var mi=function(){return xe?Yt.getDerrivedValue(n):kx()},Mu=function(cr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jn=ln.preventUpdate;Ae&&Yt.getStep()<Ae?(Ln("Setting ".concat(n,"'s error to undefined as we are not at that step")),yg(void 0),Et.setError(ct,void 0,!jn)):(Ln("Setting ".concat(n,"'s error to ").concat(cr)),yg(cr),Et.setError(ct,cr,!jn))},Sp=function(cr,ln){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=cr;Dr.current=!0,Ln("Setting ".concat(n," to ").concat(Qt)),Ut&&(Qt=Ut(Qt));var Xo=Yt.getOptions(),Vn=Qt;if(Qt===""&&!ie&&!jn.allowEmptyString&&!Xo.allowEmptyStrings&&(Qt=void 0),(e.type==="number"||Fe==="number")&&Qt!==void 0&&(Qt=+Qt),ln&&ln.target&&ln.target.selectionStart&&Bx(ln.target.selectionStart),p&&!se&&(Vn=p(Qt,mp()),Qt=p(Qt,mp())),m&&!se){var Du=m(Qt,mp());Vn=Du.value,Qt=Du.value,yp(Du.offset)}if(v&&y&&(Qt=y(Qt),Vn=v(Qt)),b){var Og=ac(Qt,b);yp(Og.offset),Vn=Og.value,Qt=Vn}I&&(Qt=Qt!=null?I(Qt):Qt),Tn&&B&&!jn.initial&&(Ln("Validating after change ".concat(n," ").concat(Qt)),Mu(Tn(Qt,Yt.getValues()))),cp(Qt),vp(Vn),pe&&pe(Qt),Et.setValue(ct,Qt,!jn.preventUpdate)};cm(function(){Xr.current.setValue(wg.current)},an(Kt));var wp=function(cr,ln){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=jn.preventUpdate;if(Ln("Field ".concat(n," has been touched")),Tn&&$&&!ln&&cr&&(Ln("Validating after blur ".concat(n," ").concat(mi())),Mu(Tn(mi(),Yt.getValues()))),o&&q&&!ln&&cr&&(Ln("Validating async after blur ".concat(n," ").concat(mi())),o(mi(),Yt.getValues())),p&&se){var Xo=p(mi());cp(Xo),vp(Xo),pe&&pe(Xo),Et.setValue(ct,Xo,!Qt)}if(m&&se){var Vn=m(mi());yp(Vn.offset),cp(Vn.value),vp(Vn.value),pe&&pe(Vn.value),Et.setValue(ct,Vn.value,!Qt)}Mx(cr),Et.setTouched(ct,cr,!Qt)},zx=function(){var cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=cr.preventUpdate,jn=Zp(Ag.current||Et.getInitialValue(Jo.current),p,b,I,Ut);Sp(jn,null,{initial:!0,preventUpdate:ln}),Mu(te?Tn(jn):void 0,{preventUpdate:ln}),wp(void 0,!0,{preventUpdate:ln}),Dr.current=!1},Gx=function(cr){Tn&&(Ln("Field validating ".concat(n," ").concat(mi())),Mu(Tn(mi(),cr||Yt.getValues())))},$x=function(cr){o&&(Ln("Field async validating ".concat(n," ").concat(mi())),o(mi(),cr||Yt.getValues()))},Ap={setValue:Sp,setTouched:wp,setError:Mu,reset:zx,validate:Gx,asyncValidate:$x,getValue:mi,getTouched:xg,getError:Rx,getIsRelevant:Eg,getDirty:Ko,getPristine:sn,getFieldState:function(){return{value:mi(),touched:xg(),dirty:Ko(),pristine:sn()}},relevant:bp,multistepRelevant:Wx,checkRelevant:Hx};Xr.current=Ap;var Nu={value:wn,error:mg,touched:bg,maskedValue:hp,isRelevant:Fc,dirty:Dr.current,pristine:!Dr.current};xe&&(Nu={error:mg,touched:bg}),Ln("Render",Yt.getFullField(n),Nu),Ni(function(){var Qr=Yt.getFullField(Jo.current);return Ln("Register",ct,Jo.current),gi.current={field:Qr,fieldId:ct,fieldApi:Ap,fieldState:Nu,notify:ve,keepState:ge,inMultistep:Gt,shadow:xe},Et.register(ct,gi.current),function(){var cr=Yt.getFullField(Jo.current);Ln("Deregister",ct,cr),Et.deregister(ct)}},[]),(0,M.useEffect)(function(){var Qr=Yt.getFullField(n);return Bn.current?Bn.current=!1:(Ln("Update",n,Gt),gi.current.field=Qr,Et.update(ct,gi.current,Cg.current)),function(){Cg.current=Qr}},[n]),Ni(function(){we&&Zi&&(Zi.current.style.border="5px solid orange",setTimeout(function(){Zi.current.style.borderWidth="2px",Zi.current.style.borderStyle="inset",Zi.current.style.borderColor="initial",Zi.current.style.borderImage="initial"},500))});var Kx=[].concat(an(Object.values(Nu)),an(Object.values(e)),an(Object.values(ur))),Yx=function(cr){return(0,M.useMemo)(function(){return Fc?cr:null},an(Kx))},Cp=n,Jx=hm({fieldType:Fe,setValue:Sp,onChange:We,multiple:Le,ref:Zi}),Xx=vm({setTouched:wp,onBlur:Ke}),Qx=gm({fieldType:Fe,maskedValue:hp,multiple:Le,value:wn}),Zx=mm(Fe);return{fieldState:Nu,fieldApi:Ap,render:Yx,ref:Zi,userProps:Rt(Rt({},ur),{},{multiple:Le,onChange:We,onBlur:Ke,id:ur.id||ct}),informed:Rt({name:Cp,multiple:Le,onChange:Jx,onBlur:Xx,value:Qx,ref:Zi,type:Zx,id:ur.id||ct},ur)}}var ma=function(r){var n=M.forwardRef(function(a,o){var c=mu(a,o),p=c.fieldState,m=c.fieldApi,v=c.render,y=c.ref,b=c.userProps;return v(M.createElement(r,Mr({fieldApi:m,fieldState:p,field:a.field,forwardedRef:y,debug:a.debug,type:a.type},b)))});return n.displayName="asField(".concat(zp(r),")"),n},bm=Ji("informed:Text "),xm=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=o.onChange,y=o.onBlur,b=o.field,I=o.initialValue,R=o.forwardedRef,B=o.debug,$=o.label,te=o.title,q=o.id,se=Nr(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return bm("Render",b),Ni(function(){B&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),M.createElement(M.Fragment,null,$?M.createElement("label",{htmlFor:q}," ",$," "):null,M.createElement("input",Mr({},se,{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)}})))},Sm=ma(xm),wm=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=o.onChange,y=o.onBlur,b=o.field,I=o.initialValue,R=o.forwardedRef,B=o.debug,$=o.label,te=o.id,q=Nr(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Ni(function(){B&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),M.createElement(M.Fragment,null,$?M.createElement("label",{htmlFor:te}," ",$," "):null,M.createElement("textarea",Mr({},q,{id:te,name:b,ref:R,value:c||"",onChange:function(ie){p(ie.target.value,ie),v&&v(ie)},onBlur:function(ie){m(!0),y&&y(ie)}})))},Am=ma(wm),Cm=Ji("informed:Select "),Em=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.value,p=n.setTouched,m=o.onChange,v=o.onBlur,y=o.field,b=o.initialValue,I=o.options,R=o.children,B=o.forwardedRef,$=o.debug,te=o.multiple,q=o.label,se=o.id,ie=Nr(o,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),pe=(0,M.useRef)(),ve=function(Ce){var we=Array.from((B||pe).current).filter(function(xe){return xe.selected}).map(function(xe){return xe.value});n.setValue(te?we:we[0]||""),m&&Ce&&m(Ce)};return Ni(function(){$&&B&&(B.current.style.background="red",setTimeout(function(){B.current.style.background="white"},500))}),Cm("Render",y,c),M.createElement(M.Fragment,null,q?M.createElement("label",{htmlFor:se}," ",q," "):null,M.createElement("select",Mr({},ie,{id:se,multiple:te,name:y,ref:B||pe,value:c||(te?[]:""),onChange:ve,onBlur:function(Ce){p(!0),v&&v(Ce)}}),I?I.map(function(ge){return M.createElement("option",{key:ge.value,value:ge.value,disabled:ge.disabled},ge.label)}):R))},Om=ma(Em),Tm=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.value,p=n.setValue,m=n.setTouched,v=o.onChange,y=o.onBlur,b=o.field,I=o.initialValue,R=o.debug,B=o.forwardedRef,$=o.id,te=o.label,q=Nr(o,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return M.createElement(M.Fragment,null,te?M.createElement("label",{htmlFor:$}," ",te," "):null,M.createElement("input",Mr({},q,{id:$,name:b,ref:B,checked:!!c,onChange:function(ie){p(ie.target.checked),v&&v(ie)},onBlur:function(ie){m(!0),y&&y(ie)},type:"checkbox"})))},Pm=ma(Tm),Im=function(r){return M.forwardRef(function(n,a){return M.createElement(Dp.Consumer,null,function(o){var c=o.radioGroupApi,p=o.radioGroupState;return M.createElement(r,Mr({radioGroupApi:c,radioGroupState:p,ref:a},n))})})},km=function(r){var n=r.radioGroupApi,a=r.radioGroupState,o=Nr(r,["radioGroupApi","radioGroupState"]),c=a.value,p=n.setValue,m=n.setTouched,v=n.onChange,y=n.onBlur,b=o.value,I=o.onChange,R=o.onBlur,B=o.field,$=o.initialValue,te=o.forwardedRef,q=Nr(o,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return M.createElement("input",Mr({},q,{name:B,ref:te,value:b,checked:c===b,onChange:function(ie){!ie.target.checked||(p(b),I&&I(ie),v&&v(ie))},onBlur:function(ie){m(!0),R&&R(ie),y&&y(ie)},type:"radio"}))},Fm=Im(km),Rm=function(e){Hg(n,e);var r=Yg(n);function n(){return Rd(this,n),r.apply(this,arguments)}return Ld(n,[{key:"render",value:function(){var o=this.props,c=o.options,p=o.children;return M.createElement(Dp.Provider,{value:this.groupContext},c?c.map(function(m){return M.createElement("label",{key:m.value},m.label," ",M.createElement(Fm,{value:m.value}))}):p)}},{key:"groupContext",get:function(){return{radioGroupApi:Rt(Rt({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(M.Component),Lm=ma(Rm);function Mm(){return(0,M.useContext)(jp)}var Nm=function(){var r=Mm(),n=r.add;return M.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Dm(){return(0,M.useContext)(jd)}var Bm=function(){var r=Dm(),n=r.remove;return M.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},oc=Ji("informed:useArrayField "),jm=function(r){var n=r.field,a=r.initialValue,o=r.validate,c=r.arrayFieldApiRef,p=Nr(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Mi(),v=(0,M.useState)(new Map),y=kr(v,1),b=y[0],I=(0,M.useContext)(Qn),R=m.getFullField(n),B=I.getInitialValue(n)||a||[],$=m.getSavedValue(R)&&m.getSavedValue(R).value,te=ga($||B),q=kr(te,3),se=q[0],ie=q[1],pe=q[2],ve=se?se.map(function(){return Wo()}):[],ge=ga(ve),Ce=kr(ge,3),we=Ce[0],xe=Ce[1],Ae=Ce[2],Fe=(0,M.useMemo)(function(){return function(zt,ct){var Et=Ae()==null?0:Ae().length;return o?o(zt,Et,ct):void 0}}),Le=mu(Rt({field:n,validate:o?Fe:void 0,shadow:!0},p)),We=Le.fieldApi;Ni(function(){var zt=function(Et){Et!==R&&(oc("".concat(R," changed")),RegExp("".concat(R,"\\[[0-9]+\\]")).test(Et)&&We.validate())};return m.emitter.on("value",zt),function(){m.emitter.removeListener("value",zt)}},[n]);var Ke=function(ct){oc("EXPECTING REMOVAL OF","".concat(n,"[").concat(ct,"] and ").concat(n,"[").concat(we.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(ct,"]")),I.expectRemoval("".concat(n,"[").concat(we.length-1,"]"));var Et=we.slice(0,ct).concat(we.slice(ct+1,we.length));xe(Et);var Jt=pe(),Gt=Jt.slice(0,ct).concat(Jt.slice(ct+1,Jt.length));ie(Gt)},At=function(ct,Et){oc("Swapping","".concat(n,"[").concat(ct,"] and ").concat(n,"[").concat(Et,"]"));var Jt=an(we);we[ct]&&we[Et]?(Jt[ct]=we[Et],Jt[Et]=we[ct]):console.warn("Attempted to swap ".concat(ct," with ").concat(Et," but one of them does not exist :(")),xe(Jt)},qe=function(){we.push(Wo()),xe(an(we))},_t=function(ct){we.push(Wo()),xe(an(we));var Et=an(pe());Et[we.length-1]=ct,ie(Et)},sr=function(){var ct=I.getInitialValue(n)||a||[];ie(ct);var Et=ct?ct.map(function(){return Wo()}):[];xe(Et)},Ut=we.map(function(zt,ct){var Et={remove:function(){return Ke(ct)}},Jt={initialValue:se&&se[ct],key:zt,field:"".concat(n,"[").concat(ct,"]"),index:ct};return Rt(Rt({arrayFieldItemApi:Et,arrayFieldItemState:Jt},Et),Jt)}),lr={add:qe,swap:At,addWithInitialValue:_t,reset:sr};c&&(c.current=lr);var Kt={fields:Ut,field:n},ur=Rt(Rt({},I),{},{register:function(ct,Et){b.set(ct,Et);for(var Jt=arguments.length,Gt=new Array(Jt>2?Jt-2:0),Yt=2;Yt<Jt;Yt++)Gt[Yt-2]=arguments[Yt];I.register.apply(I,[ct,Et].concat(Gt))},deregister:function(ct){b.delete(ct);for(var Et=arguments.length,Jt=new Array(Et>1?Et-1:0),Gt=1;Gt<Et;Gt++)Jt[Gt-1]=arguments[Gt];I.deregister.apply(I,[ct].concat(Jt))},getInitialValue:function(ct){if(RegExp("".concat(R,"\\[[0-9]+\\]")).test(ct)){var Et=ct.replace(n,""),Jt=wt.get(pe(),Et);return oc("Resetting ".concat(Et," to ").concat(Jt)),Jt}return I.getInitialValue(ct)}}),xr=function(ct){return M.createElement(Qn.Provider,{value:ur},M.createElement(jp.Provider,{value:lr},M.createElement(Bp.Provider,{value:Kt},ct)))};return{render:xr,add:qe,swap:At,addWithInitialValue:_t,fields:Ut,arrayFieldState:Kt,arrayFieldApi:lr,field:n}},Vm=function(r,n){return Rt(Rt({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,c){return n.setValue("".concat(r,".").concat(o),c)},setTouched:function(o,c){return n.setTouched("".concat(r,".").concat(o),c)},setError:function(o,c){return n.setError("".concat(r,".").concat(o),c)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getSavedValue:function(o){return n.getSavedValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})};function Um(e){var r=Mi(),n=(0,M.useMemo)(function(){return Vm(e,r)},[e]);return n}function sc(){var e=(0,M.useContext)(vu);return e}var _p=function(r){var n=r.when,a=r.children,o=sc(),c=n(o);return c?a:null},Ud=function(r){var n=r.relevant,a=r.field,o=Nr(r,["relevant","field"]),c=Mi();if(n){var p=c.getFullField(a),m={path:p,parentPath:p.replace(/(.*)[.[].*/,"$1"),get:function(b,I){return wt.get(b,I)}},v=function(b){var I=b.values;return n(I,m)};return M.createElement(_p,{when:v},M.createElement(qp,Mr({field:a},o)))}else return M.createElement(qp,Mr({field:a},o))},qp=function(r){var n=r.children,a=Nr(r,["children"]),o=jm(a),c=o.render,p=o.arrayFieldState,m=o.arrayFieldApi,v=o.field;return c(typeof n=="function"?n(Rt(Rt({field:v,arrayFieldApi:m,arrayFieldState:p},m),p)):n)},Wm=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,o=r.children,c=(0,M.useContext)(Qn),p=Mi(),m=(0,M.useState)(0),v=kr(m,2),y=v[0],b=v[1],I=(0,M.useState)(new Map),R=kr(I,1),B=R[0],$=n.field,te=Um($),q=function(){var we=p.getState(),xe=we.values,Ae=we.errors,Fe=we.touched,Le={values:wt.get(xe,$),errors:wt.get(Ae,$),touched:wt.get(Fe,$)};return Le};(0,M.useEffect)(function(){var Ce=function(xe){var Ae=xe.slice(0,xe.lastIndexOf("[")!=-1?xe.lastIndexOf("]")+1:xe.length);Ae===$&&b(Math.random())};return p.emitter.on("value",Ce),function(){p.emitter.removeListener("value",Ce)}},[$]);var se=function(){B.forEach(function(we){we.fieldApi.reset()})},ie=q(),pe=Rt(Rt({},c),{},{register:function(we,xe,Ae){B.set(we,xe),c.register(we,xe,Ae)},deregister:function(we){B.delete(we);for(var xe=arguments.length,Ae=new Array(xe>1?xe-1:0),Fe=1;Fe<xe;Fe++)Ae[Fe-1]=arguments[Fe];c.deregister.apply(c,[we].concat(Ae))}}),ve=Rt(Rt(Rt({},a),te),{},{reset:se}),ge=Rt(Rt({},n),ie);return typeof o=="function"?M.createElement(Qn.Provider,{value:pe},M.createElement(jd.Provider,{value:ve},M.createElement(Vp.Provider,{value:ge},o(Rt(Rt({arrayFieldItemApi:ve,arrayFieldItemState:ge},ve),ge))))):M.createElement(Qn.Provider,{value:pe},M.createElement(jd.Provider,{value:ve},M.createElement(Vp.Provider,{value:ge},o)))};Ud.Items=function(e){var r=e.children,n=(0,M.useContext)(Bp),a=n.fields;return a.map(function(o){var c=o.arrayFieldItemState,p=o.arrayFieldItemApi,m=c.key;return M.createElement(Wm,{key:m,arrayFieldItemApi:p,arrayFieldItemState:c},r)})};var lc=function(r){var n=r.components,a=(0,M.useContext)(Qn),o=a.fieldMap;return n?n.map(function(c,p){var m=c["ui:control"],v=o[m];return M.createElement(v,{key:"ui-comp-".concat(p)})}):null},Hm=Ji("informed:FormFields "),Wd=function e(r){var n=r.schema,a=r.prefix,o=r.onlyValidateSchema,c=(0,M.useContext)(Qn),p=c.fieldMap,m=(0,M.useMemo)(function(){var v=Xp(n,o,a),y=v.map(function(b,I){var R=b.field,B=b.props,$=b.type,te=b.properties,q=b.items,se=b.componentType,ie=b.uiBefore,pe=b.uiAfter,ve=b.allOf,ge=p[se];return Hm("Rendering Field",R,b),!ge&&$==="object"&&te?M.createElement(e,{schema:b,prefix:R,key:"ScheamField-".concat(I)}):!ge&&$==="array"&&q?M.createElement(eh,Mr({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ie,uiAfter:pe},B)):ge&&se==="array"&&q&&$==="array"?M.createElement(ge,Mr({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ie,uiAfter:pe},B)):se==="conditionals"?ve.map(function(Ce){var we=Ce.then,xe=Ce.if.properties,Ae=function(Le){var We=Le.values;return Object.keys(xe).every(function(Ke){var At=xe[Ke];return We[Ke]===At.const})};return M.createElement(_p,{key:"ScheamField-".concat(I),when:Ae},M.createElement(e,{schema:we}))}):ge?M.createElement(ge,Mr({key:"ScheamField-".concat(I),field:R},B)):null});return y},[n,a]);return m},eh=function(r){var n=r.field,a=r.items,o=r.uiBefore,c=r.uiAfter,p=Nr(r,["field","items","uiBefore","uiAfter"]);return M.createElement(Ud,Mr({field:n},p),M.createElement(lc,{components:o}),M.createElement(Ud.Items,null,function(m){var v=m.field;return M.createElement(M.Fragment,null,M.createElement(lc,{components:a["ui:before"]}),M.createElement(Wd,{schema:a,prefix:v}),M.createElement(lc,{components:a["ui:after"]}))}),M.createElement(lc,{components:c}))},zm={select:Om,input:Sm,textarea:Am,checkbox:Pm,radio:Lm,add:Nm,remove:Bm,array:eh},dr=Ji("informed:Controller "),Gm=function(r,n){var a=Object.keys(n).find(function(c){return r.includes(c)});if(!!a){var o=r.slice(0,a.length);return o===a}},pi=function(){},$m=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rd(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,o=n.schema,c=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(o):null,this.fieldMap=c||zm,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:pi,setTouched:pi,setError:pi,reset:pi,validate:pi,getValue:pi,getTouched:pi,getError:pi,getFieldState:pi,checkRelevant:pi,getPristine:pi,getDirty:pi}},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||wt.set(r.state.values,b.field,b.fieldApi.getValue()),b.fieldApi.relevant(r.state.values)||wt.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)&&(wt.delete(r.state.values,I.field),wt.delete(r.state.touched,I.field),wt.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()&&wt.set(r.state.touched,b.field,b.fieldApi.getTouched()),b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)&&wt.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()&&wt.set(r.state.errors,b.field,b.fieldApi.getError());var I=wt.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")&&wt.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,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];var p=this.subscriptions.get(n);p&&p.forEach(function(m){return m.apply(void 0,o)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var o=this.subscriptions.get(n);o.add(a)}},{key:"removeListener",value:function(n,a){var o=this.subscriptions.get(n);o.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,o){this.getField(n).fieldApi.setValue(a,null,Rt({allowEmptyString:this.options.allowEmptyStrings},o))}},{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()?(dr("Submit",this.state),this.emit("submit")):(dr("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){wt.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return dr("Returning form state"),Rt(Rt({},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 wt.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return dr("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return dr("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return dr("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return dr("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return dr("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return dr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return dr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return dr("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?wt.get(this.savedValues,"shadow-".concat(n)):wt.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?wt.delete(this.savedValues,"shadow-".concat(n)):wt.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return wt.get(this.options.initialValues,n)}},{key:"getField",value:function(n){dr("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,o=this.getField(n);o&&o.notify&&o.notify.forEach(function(c){var p=".".concat(n),m="".concat(p.replace(/(.*)[.[].*/,"$1"),".").concat(c).slice(1),v=a.getField(m);v&&(dr("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!!(wt.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var o=kr(a,2),c=o[1];return c.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!wt.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(){dr("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){dr("Setting values"),this.fieldsById.forEach(function(a){var o=wt.get(n,a.field);o!==void 0&&a.fieldApi.setValue(o,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;dr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var o=$p(this.options.validationSchema,a);this.fieldsById.forEach(function(v){if(wt.has(o,v.field)){var y=wt.get(o,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.options.schema&&this.options.ajv){var c=Jp(this.ajvValidate,a);this.fieldsById.forEach(function(v){if(wt.has(c,v.field)){var y=wt.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(wt.has(m,v.field)){var y=wt.get(m,v.field);n.setError(v.field,y)}})}}},{key:"asyncValidate",value:function(){dr("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()?(dr("Submit",this.state),this.emit("submit")):(dr("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,o){var c=a.field,p=a.state;dr("Register ID:",n,"Name:",c,p,"Initial",o);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)?(dr("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),dr("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),dr("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),o||this.emit("change"),this.emit("field",c))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),o=a.field;dr("Deregister",n,o),delete this.onScreen[n];var c=Gm(o,this.expectedRemovals),p=o.slice(0,o.lastIndexOf("[")!=-1?o.lastIndexOf("]")+1:o.length);(a.keepState||a.inMultistep)&&!c&&(dr("Saving field ".concat(o,"'s value"),a.fieldApi.getFieldState()),a.shadow?wt.set(this.savedValues,"shadow-".concat(o),a.fieldApi.getFieldState()):wt.set(this.savedValues,o,a.fieldApi.getFieldState())),(c||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(dr("Removing field",o),this.fieldsById.delete(n),c||(wt.delete(this.state.values,o),wt.delete(this.state.touched,o),wt.delete(this.state.errors,o),a.shadow?wt.delete(this.savedValues,"shadow-".concat(o)):wt.delete(this.savedValues,o)),c&&this.pulledOut[p]&&(dr("Pulling out",o,"with magic value",p),wt.pullOut(this.state.values,p),wt.pullOut(this.state.touched,p),wt.pullOut(this.state.errors,p),wt.pullOut(this.savedValues,p),delete this.pulledOut[p])),this.emit("change")}},{key:"expectRemoval",value:function(n){dr("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,o){dr("Update",n,a.field,o,a.fieldState.value);var c=a.fieldApi.getValue(),p=a.fieldApi.getError(),m=a.fieldApi.getTouched(),v=this.fieldsByName.get(o);o&&!v&&(wt.set(this.state.values,o),wt.set(this.state.errors,o),wt.set(this.state.touched,o)),wt.set(this.state.values,a.field,c),wt.set(this.state.errors,a.field,p),wt.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),Hd=Ji("informed:FormProvider "),Km=function(r){var n=r.children,a=r.formApi,o=r.formController,c=r.formState,p=Nr(r,["children","formApi","formController","formState"]);if(Hd("Render FormProvider"),a)return Hd("Render FormProvider with given values"),M.createElement(Qn.Provider,{value:o.updater},M.createElement(gu.Provider,{value:a},M.createElement(vu.Provider,{value:c},n)));Hd("Render FormProvider with generated values");var m=rh(p);return M.createElement(Qn.Provider,{value:m.formController.updater},M.createElement(gu.Provider,{value:m.formApi},M.createElement(vu.Provider,{value:m.formState},n)))},th=Ji("informed:useForm "),rh=function(r){var n=r.dontPreventDefault,a=r.initialValues,o=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,B=r.onValueChange,$=r.onSubmitFailure,te=r.validationSchema,q=r.schema,se=r.ajv,ie=r.fieldMap,pe=r.onlyValidateSchema,ve=Nr(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);th("Render useForm");var ge=(0,M.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:o,validateFields:c,allowEmptyStrings:p,preventEnter:m,validationSchema:te,schema:q,ajv:se,fieldMap:ie}},[n,a,o,c,p,m,te,q,se,ie]),Ce=(0,M.useState)(function(){return new $m(ge)}),we=kr(Ce,1),xe=we[0];(0,M.useEffect)(function(){xe.setOptions(ge)},[ge]),Ni(function(){xe.mount()},[]);var Ae=(0,M.useState)(function(){return xe.getFormState()}),Fe=kr(Ae,2),Le=Fe[0],We=Fe[1];Ni(function(){var sr=function(){return b&&b(xe.getFormState())},Ut=function(){return I&&I()},lr=function(){return R&&R(xe.getFormState().values)},Kt=function(){return B&&B(xe.getFormState().values)},ur=function(){return $&&$(xe.getFormState().errors)};return xe.on("change",sr),xe.on("reset",Ut),xe.on("submit",lr),xe.on("value",Kt),xe.on("failure",ur),function(){xe.removeListener("change",sr),xe.removeListener("reset",Ut),xe.removeListener("submit",lr),xe.removeListener("value",Kt),xe.removeListener("failure",ur)}},[b,I,R,B,$]),(0,M.useState)(function(){var sr=function(){th("Setting form state"),We(xe.getFormState())};xe.on("change",sr),v&&v(xe.getFormApi()),y&&(y.current=xe.getFormApi())});var Ke=(0,M.useState)(function(){return xe.getFormApi()}),At=kr(Ke,1),qe=At[0],_t=function(Ut){return M.createElement(Km,{formApi:qe,formState:Le,formController:xe},M.createElement(M.Fragment,null,Ut||M.createElement(Wd,{schema:q,onlyValidateSchema:pe})))};return{formApi:qe,formState:Le,formController:xe,render:_t,userProps:ve}},Ym=Ji("informed:Form "),Jm=function(r){var n=r.children,a=r.render,o=r.component,c=Nr(r,["children","render","component"]);Ym("Render FORM");var p=rh(c),m=p.formApi,v=p.formController,y=p.formState,b=p.render,I=p.userProps,R=function(){var $={formState:y,formApi:m};return o?M.createElement(o,$,n):a?a($):typeof n=="function"?n($):n};return b(M.createElement("form",Mr({},I,{onReset:v.reset,onSubmit:v.submitForm,onKeyDown:v.keyDown}),R()))},Xm=function(r,n){return Rt(Rt({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,c){return n.setValue("".concat(r,".").concat(o),c)},setTouched:function(o,c){return n.setTouched("".concat(r,".").concat(o),c)},setError:function(o,c){return n.setError("".concat(r,".").concat(o),c)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})},Qm=function(r,n){var a=n.register,o=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,B=n.getSavedValue;return{register:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return a.apply(void 0,["".concat(r,".").concat(te)].concat(se))},deregister:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return o.apply(void 0,["".concat(r,".").concat(te)].concat(se))},update:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return v.apply(void 0,["".concat(r,".").concat(te)].concat(se))},setValue:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return c.apply(void 0,["".concat(r,".").concat(te)].concat(se))},setTouched:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return p.apply(void 0,["".concat(r,".").concat(te)].concat(se))},setError:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return m.apply(void 0,["".concat(r,".").concat(te)].concat(se))},getField:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return y.apply(void 0,["".concat(r,".").concat(te)].concat(se))},expectRemoval:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return b.apply(void 0,["".concat(r,".").concat(te)].concat(se))},getInitialValue:function(te){return I("".concat(r,".").concat(te))},getSavedValue:function(te){return B("".concat(r,".").concat(te))},fieldMap:R}},qx=function(r){var n=r.scope,a=r.children,o=useContext(Qn),c=Mi(),p=sc(),m=useMemo(function(){return Xm(n,c)},[n]),v=useMemo(function(){return Qm(n,o)},[n]);return React.createElement(Qn.Provider,{value:v},React.createElement(gu.Provider,{value:m},React.createElement(vu.Provider,{value:p},a)))},e1=function(r){var n=sc(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(B){a[B]=n[B]}):a=n;var o=a,c=o.pristine,p=o.dirty,m=o.invalid,v=o.values,y=o.errors,b=o.touched,I=o.validating,R=o.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)))},Zm=function(r){var n=r.initialStep,a=r.multistepApiRef,o=Mi(),c=o.getValues,p=o.validate,m=o.screenValid,v=(0,M.useState)(new Map),y=kr(v,1),b=y[0],I=(0,M.useRef)(0),R=ga({current:n,steps:[],goal:null}),B=kr(R,3),$=B[0],te=B[1],q=B[2],se=(0,M.useState)(function(){var ge=function(){var xe=q(),Ae=xe.current,Fe=b.get(Ae);return Fe},Ce={getState:function(){return q()},getCurrentStep:ge,getStep:function(xe){return b.get(xe)},getNumberOfSteps:function(){return b.size},next:function(){if(p(),m()){var xe=ge(),Ae=xe.getNext,Fe=Ae(),Le=typeof Fe=="function"?Fe(c()):Fe;Le&&te(function(We){return Rt(Rt({},We),{},{current:Le})})}},back:function(){var xe=ge(),Ae=xe.getPrevious,Fe=Ae(),Le=typeof Fe=="function"?Fe(c()):Fe;Le&&te(function(We){return Rt(Rt({},We),{},{current:Le})})},setCurrent:function(xe){if(xe){var Ae=b.get(xe).index;Ae<ge().index?te(function(Fe){return Rt(Rt({},Fe),{},{current:xe,goal:null})}):te(function(Fe){return Rt(Rt({},Fe),{},{goal:xe})})}},register:function(xe,Ae,Fe){Fe?(I.current=I.current+1,b.set(xe,Rt(Rt({},Ae),{},{index:I.current}))):te(function(Le){return Rt(Rt({},Le),{},{steps:Array.from(b.keys())})})},deregister:function(xe){b.delete(xe),I.current=I.current-1,te(function(Ae){return Rt(Rt({},Ae),{},{steps:Array.from(b.keys())})})}};return a&&(a.current=Ce),Ce}),ie=kr(se,1),pe=ie[0],ve=function(Ce){return M.createElement(Wp.Provider,{value:pe},M.createElement(Up.Provider,{value:$},Ce))};return Rt(Rt(Rt({},pe),$),{},{render:ve})};function _m(){return(0,M.useContext)(Up)}function qm(){return(0,M.useContext)(Wp)}var ey=function(r){var n=r.step,a=r.next,o=r.previous,c=r.relevant,p=sc(),m=p.values,v=_m(),y=v.current,b=v.goal,I=qm(),R=I.register,B=I.deregister,$=I.next,te=n===y,q=c?c(m):!0,se=(0,M.useRef)(a),ie=(0,M.useRef)(o),pe=(0,M.useRef)();se.current=a,ie.current=o,pe.current=c,(0,M.useState)(function(){R(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}},!0)}),(0,M.useEffect)(function(){return R(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}}),function(){B(n)}},[n]),(0,M.useEffect)(function(){b&&te&&b!==n&&$()},[b,te]);var ve=function(Ce){return M.createElement(Hp.Provider,{value:{relevant:function(xe){return pe.current?pe.current(xe):!0},multistep:!0}},te&&q?Ce:null)};return{isCurrent:te,isRelevant:q,step:n,render:ve}};function ty(e){var r=e.children,n=Nr(e,["children"]),a=Zm(n),o=a.render,c=Nr(a,["render"]);return o(typeof r=="function"?r(c):r)}ty.Step=function(r){var n=r.children,a=Nr(r,["children"]),o=ey(a),c=o.render;return c(n)};var t1=function(r){var n=r.field,a=useContext(Qn),o=a.fieldMap,c=Mi(),p=c.getFullField,m=c.getOptions,v=p(n),y=m(),b=y.schema,I=Qp(v),R=wt.get(b,I);if(!R)return null;var B=Vd(n,R),$=B.props,te=B.componentType,q=o[te];return React.createElement(q,Mr({field:n},$))},r1=function(){var r=Mi(),n=r.getOptions,a=n(),o=a.schema;return React.createElement(Wd,{schema:o})},n1=function(r){return React.forwardRef(function(n,a){return React.createElement(gu.Consumer,null,function(o){return React.createElement(r,Mr({formApi:o,ref:a},n))})})},i1=function(r){return React.forwardRef(function(n,a){return React.createElement(vu.Consumer,null,function(o){return React.createElement(r,Mr({formState:o,ref:a},n))})})},ry=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(o){return r.setValue(n,o)},getTouched:function(){return r.getTouched(n)},setTouched:function(o){return r.setTouched(n,o)},getError:function(){return r.getError(n)},setError:function(o){return r.setError(n,o)},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 nh(e){var r=Mi(),n=useMemo(function(){return ry(r,e)},[e]);return n}function ny(e){var r=nh(e),n=Mi(),a=React.useState(),o=kr(a,2),c=o[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 a1=function(r){return function(n){return function(a){var o=ny(r);return React.createElement(n,Mr({fieldState:o},a))}}},o1=function(r){return function(n){return function(a){var o=nh(r);return React.createElement(n,Mr({fieldApi:o},a))}}},s1=function(r){var n=r.value,a=r.forwardedRef,o=r.children,c=Nr(r,["value","forwardedRef","children"]);return React.createElement("option",Mr({ref:a,value:n,key:n},c),o)},l1=null,ih=s(56642),Qa=s(67262),iy=Object.defineProperty,ay=Object.defineProperties,oy=Object.getOwnPropertyDescriptors,ah=Object.getOwnPropertySymbols,sy=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,oh=(e,r,n)=>r in e?iy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,yu=(e,r)=>{for(var n in r||(r={}))sy.call(r,n)&&oh(e,n,r[n]);if(ah)for(var n of ah(r))ly.call(r,n)&&oh(e,n,r[n]);return e},uy=(e,r)=>ay(e,oy(r)),uc=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const sh="/oauth2-redirect.html";class Di{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:o={},routingBasePath:c,redirectUri:p,successCallback:m,errorCallback:v}){const y=(0,Qa.p8)({date:new Date().toString()}),b=new URL(r),I=c==="/"?"":c,R=`${window.location.origin}${I}${sh}`;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 B in o)b.searchParams.set(B,o[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:o,codeVerifier:c,codeChallenge:p,scopes:m,extraParams:v={},extraHeaders:y={},routingBasePath:b,redirectUri:I,successCallback:R,errorCallback:B}){const $=new URL(r),te=b==="/"?"":b,q=`${window.location.origin}${te}${sh}`,se=(0,Qa.p8)({date:new Date().toString()});$.searchParams.set("client_id",a),$.searchParams.set("redirect_uri",I||q),$.searchParams.set("response_type","code"),$.searchParams.set("state",se),Array.isArray(m)&&$.searchParams.set("scope",m.join(" ")),p&&($.searchParams.set("code_challenge",p),$.searchParams.set("code_challenge_method","S256"));for(const ie in v)$.searchParams.set(ie,v[ie]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:se,successCallback:ie=>uc(this,[ie],function*({auth_code:pe}){try{const ve=yield fetch(n,{method:"POST",headers:yu({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:ih.stringify(yu(uy(yu({client_id:a,client_secret:o},c&&{code_verifier:c}),{code:pe,grant_type:"authorization_code",redirect_uri:I||q}),v))});yield lh(ve,R,B)}catch(ve){B(ve)}Di.clearRedirectData("authorizationCode")}),errorCallback:ie=>{B(ie),Di.clearRedirectData("authorizationCode")}},window.open($.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return uc(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:o,scopes:c=[],extraParams:p={},extraHeaders:m={},successCallback:v,errorCallback:y}){try{const b=JSON.parse(JSON.stringify(yu({client_id:a,client_secret:o,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},p))),I=yield fetch(n,{method:"POST",headers:yu({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:ih.stringify(b)});yield lh(I,v,y)}catch(b){y(b)}})}}const u1=new Di;function lh(e,r,n){return uc(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 uh(e){return uc(this,null,function*(){return(0,Qa.rS)(yield(0,Qa.JQ)(e))})}var bu=s(3682),pt=s(45091),fy=s(31453),cy=s(43454),dy=Object.defineProperty,py=Object.defineProperties,hy=Object.getOwnPropertyDescriptors,fc=Object.getOwnPropertySymbols,fh=Object.prototype.hasOwnProperty,ch=Object.prototype.propertyIsEnumerable,dh=(e,r,n)=>r in e?dy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,cc=(e,r)=>{for(var n in r||(r={}))fh.call(r,n)&&dh(e,n,r[n]);if(fc)for(var n of fc(r))ch.call(r,n)&&dh(e,n,r[n]);return e},vy=(e,r)=>py(e,hy(r)),gy=(e,r)=>{var n={};for(var a in e)fh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&fc)for(var a of fc(e))r.indexOf(a)<0&&ch.call(e,a)&&(n[a]=e[a]);return n};const ph=e=>Vt.iv`
|
|
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`
|
|
167
171
|
border: var(--input-border);
|
|
168
172
|
outline: none;
|
|
169
173
|
padding: var(--input-padding);
|
|
@@ -192,16 +196,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
192
196
|
&:-webkit-autofill {
|
|
193
197
|
background-color: var(--panel-${e}-input-background-color);
|
|
194
198
|
}
|
|
195
|
-
`,
|
|
199
|
+
`,gh=Qt.ZP.div`
|
|
196
200
|
display: ${({type:e})=>e==="hidden"?"none":"inline-block"};
|
|
197
201
|
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
198
|
-
`,
|
|
202
|
+
`,xy=Qt.ZP.div`
|
|
199
203
|
position: relative;
|
|
200
|
-
`,
|
|
201
|
-
${({panel:e})=>
|
|
204
|
+
`,Sy=Qt.ZP.input`
|
|
205
|
+
${({panel:e})=>vh(e)}
|
|
202
206
|
${({inputType:e,inputActionButton:r})=>e==="password"||r?"padding-right: 40px;":""};
|
|
203
207
|
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
204
|
-
`,
|
|
208
|
+
`,mh=Qt.ZP.span`
|
|
205
209
|
position: absolute;
|
|
206
210
|
right: 0;
|
|
207
211
|
line-height: normal;
|
|
@@ -211,67 +215,67 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
211
215
|
cursor: pointer;
|
|
212
216
|
text-align: center;
|
|
213
217
|
color: var(--panel-samples-text-color);
|
|
214
|
-
`;function
|
|
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)`
|
|
215
219
|
margin-top: 5px;
|
|
216
220
|
color: #d0d0d0;
|
|
217
|
-
`;var
|
|
218
|
-
${(0,
|
|
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)}
|
|
219
223
|
- ${R.description||"Default"}
|
|
220
|
-
`})),I=Object.keys(p);return
|
|
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
225
|
margin-bottom: 20px;
|
|
222
|
-
`;var
|
|
223
|
-
${
|
|
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)`
|
|
227
|
+
${Bt.PanelHeader} {
|
|
224
228
|
border: 1px solid
|
|
225
229
|
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
|
|
226
230
|
padding: 10px;
|
|
227
231
|
}
|
|
228
232
|
|
|
229
|
-
${
|
|
233
|
+
${Bt.PanelBody} {
|
|
230
234
|
border: 1px solid
|
|
231
235
|
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
|
|
232
236
|
border-top: 0;
|
|
233
237
|
}
|
|
234
|
-
`;var
|
|
238
|
+
`;var Vy=o(76479),Uy=o(78051),Wy=o(61747);const Hy=(0,Qt.ZP)(Rp.A3)`
|
|
235
239
|
border-radius: var(--panel-border-radius);
|
|
236
240
|
margin-bottom: 10px;
|
|
237
|
-
`;var
|
|
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`
|
|
238
242
|
> div {
|
|
239
243
|
margin-top: 10px;
|
|
240
244
|
}
|
|
241
|
-
`,
|
|
242
|
-
${
|
|
245
|
+
`,Rh=(0,Qt.ZP)(Fh)`
|
|
246
|
+
${vh("try-it")};
|
|
243
247
|
${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
|
|
244
248
|
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
245
|
-
`;var
|
|
246
|
-
`;break;case 114:pe+="\r";break;case 116:pe+=" ";break;case 117:var
|
|
247
|
-
`),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++,
|
|
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)===`
|
|
248
252
|
`?`\r
|
|
249
253
|
`:"\r";if(a===`
|
|
250
254
|
`)return`
|
|
251
255
|
`}return e&&e.eol||`
|
|
252
|
-
`}function
|
|
253
|
-
`.indexOf(e.charAt(r))!==-1}var
|
|
254
|
-
`.indexOf(e.charAt(r))!==-1}var Js=vc,p1=Xy,r0=Qy,h1=Zy,v1=_y,n0=Lh,i0=Rh,a0=Yd,g1=gc,m1=e0;function y1(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 o0(e,r,n){return Ky(e,r,n)}function b1(e,r,n,a){return edit.setProperty(e,r,n,a)}function x1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function Cu(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(!Cu(e[n],r[n]))return!1}else{var o=[];for(a in e)o.push(a);o.sort();var c=[];for(a in r)c.push(a);if(c.sort(),!Cu(o,c))return!1;for(n=0;n<o.length;n++)if(!Cu(e[o[n]],r[o[n]]))return!1}return!0}function Zn(e){return typeof e=="number"}function ya(e){return typeof e!="undefined"}function Xi(e){return typeof e=="boolean"}function s0(e){return typeof e=="string"}var Dh;(function(e){function r(n){return typeof n=="string"}e.is=r})(Dh||(Dh={}));var Jd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Jd||(Jd={}));var Bh;(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})(Bh||(Bh={}));var mc;(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})(mc||(mc={}));var hi;(function(e){function r(a,o){return a===Number.MAX_VALUE&&(a=mc.MAX_VALUE),o===Number.MAX_VALUE&&(o=mc.MAX_VALUE),{line:a,character:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.uinteger(o.line)&&Ee.uinteger(o.character)}e.is=n})(hi||(hi={}));var ar;(function(e){function r(a,o,c,p){if(Ee.uinteger(a)&&Ee.uinteger(o)&&Ee.uinteger(c)&&Ee.uinteger(p))return{start:hi.create(a,o),end:hi.create(c,p)};if(hi.is(a)&&hi.is(o))return{start:a,end:o};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(o,", ").concat(c,", ").concat(p,"]"))}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&hi.is(o.start)&&hi.is(o.end)}e.is=n})(ar||(ar={}));var Xs;(function(e){function r(a,o){return{uri:a,range:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.range)&&(Ee.string(o.uri)||Ee.undefined(o.uri))}e.is=n})(Xs||(Xs={}));var jh;(function(e){function r(a,o,c,p){return{targetUri:a,targetRange:o,targetSelectionRange:c,originSelectionRange:p}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.targetRange)&&Ee.string(o.targetUri)&&ar.is(o.targetSelectionRange)&&(ar.is(o.originSelectionRange)||Ee.undefined(o.originSelectionRange))}e.is=n})(jh||(jh={}));var Xd;(function(e){function r(a,o,c,p){return{red:a,green:o,blue:c,alpha:p}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.numberRange(o.red,0,1)&&Ee.numberRange(o.green,0,1)&&Ee.numberRange(o.blue,0,1)&&Ee.numberRange(o.alpha,0,1)}e.is=n})(Xd||(Xd={}));var Vh;(function(e){function r(a,o){return{range:a,color:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.range)&&Xd.is(o.color)}e.is=n})(Vh||(Vh={}));var Uh;(function(e){function r(a,o,c){return{label:a,textEdit:o,additionalTextEdits:c}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.string(o.label)&&(Ee.undefined(o.textEdit)||vi.is(o))&&(Ee.undefined(o.additionalTextEdits)||Ee.typedArray(o.additionalTextEdits,vi.is))}e.is=n})(Uh||(Uh={}));var Eu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Eu||(Eu={}));var Wh;(function(e){function r(a,o,c,p,m,v){var y={startLine:a,endLine:o};return Ee.defined(c)&&(y.startCharacter=c),Ee.defined(p)&&(y.endCharacter=p),Ee.defined(m)&&(y.kind=m),Ee.defined(v)&&(y.collapsedText=v),y}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.uinteger(o.startLine)&&Ee.uinteger(o.startLine)&&(Ee.undefined(o.startCharacter)||Ee.uinteger(o.startCharacter))&&(Ee.undefined(o.endCharacter)||Ee.uinteger(o.endCharacter))&&(Ee.undefined(o.kind)||Ee.string(o.kind))}e.is=n})(Wh||(Wh={}));var Qd;(function(e){function r(a,o){return{location:a,message:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Xs.is(o.location)&&Ee.string(o.message)}e.is=n})(Qd||(Qd={}));var $t;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})($t||($t={}));var Hh;(function(e){e.Unnecessary=1,e.Deprecated=2})(Hh||(Hh={}));var zh;(function(e){function r(n){var a=n;return Ee.objectLiteral(a)&&Ee.string(a.href)}e.is=r})(zh||(zh={}));var ba;(function(e){function r(a,o,c,p,m,v){var y={range:a,message:o};return Ee.defined(c)&&(y.severity=c),Ee.defined(p)&&(y.code=p),Ee.defined(m)&&(y.source=m),Ee.defined(v)&&(y.relatedInformation=v),y}e.create=r;function n(a){var o,c=a;return Ee.defined(c)&&ar.is(c.range)&&Ee.string(c.message)&&(Ee.number(c.severity)||Ee.undefined(c.severity))&&(Ee.integer(c.code)||Ee.string(c.code)||Ee.undefined(c.code))&&(Ee.undefined(c.codeDescription)||Ee.string((o=c.codeDescription)===null||o===void 0?void 0:o.href))&&(Ee.string(c.source)||Ee.undefined(c.source))&&(Ee.undefined(c.relatedInformation)||Ee.typedArray(c.relatedInformation,Qd.is))}e.is=n})(ba||(ba={}));var Qs;(function(e){function r(a,o){for(var c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];var m={title:a,command:o};return Ee.defined(c)&&c.length>0&&(m.arguments=c),m}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.title)&&Ee.string(o.command)}e.is=n})(Qs||(Qs={}));var vi;(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 o(c){var p=c;return Ee.objectLiteral(p)&&Ee.string(p.newText)&&ar.is(p.range)}e.is=o})(vi||(vi={}));var Zs;(function(e){function r(a,o,c){var p={label:a};return o!==void 0&&(p.needsConfirmation=o),c!==void 0&&(p.description=c),p}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.string(o.label)&&(Ee.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Ee.string(o.description)||o.description===void 0)}e.is=n})(Zs||(Zs={}));var Sn;(function(e){function r(n){var a=n;return Ee.string(a)}e.is=r})(Sn||(Sn={}));var Za;(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 o(c){var p=c;return vi.is(p)&&(Zs.is(p.annotationId)||Sn.is(p.annotationId))}e.is=o})(Za||(Za={}));var yc;(function(e){function r(a,o){return{textDocument:a,edits:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&xc.is(o.textDocument)&&Array.isArray(o.edits)}e.is=n})(yc||(yc={}));var Ou;(function(e){function r(a,o,c){var p={kind:"create",uri:a};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(p.options=o),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var o=a;return o&&o.kind==="create"&&Ee.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Ee.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ee.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Ou||(Ou={}));var Tu;(function(e){function r(a,o,c,p){var m={kind:"rename",oldUri:a,newUri:o};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 o=a;return o&&o.kind==="rename"&&Ee.string(o.oldUri)&&Ee.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Ee.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ee.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Tu||(Tu={}));var Pu;(function(e){function r(a,o,c){var p={kind:"delete",uri:a};return o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0)&&(p.options=o),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var o=a;return o&&o.kind==="delete"&&Ee.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Ee.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Ee.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Pu||(Pu={}));var Zd;(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(o){return Ee.string(o.kind)?Ou.is(o)||Tu.is(o)||Pu.is(o):yc.is(o)}))}e.is=r})(Zd||(Zd={}));var bc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var o,c;if(a===void 0?o=vi.insert(r,n):Sn.is(a)?(c=a,o=Za.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),o=Za.insert(r,n,c)),this.edits.push(o),c!==void 0)return c},e.prototype.replace=function(r,n,a){var o,c;if(a===void 0?o=vi.replace(r,n):Sn.is(a)?(c=a,o=Za.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),o=Za.replace(r,n,c)),this.edits.push(o),c!==void 0)return c},e.prototype.delete=function(r,n){var a,o;if(n===void 0?a=vi.del(r):Sn.is(n)?(o=n,a=Za.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),a=Za.del(r,o)),this.edits.push(a),o!==void 0)return o},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}(),Gh=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(Sn.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}(),S1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Gh(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(yc.is(a)){var o=new bc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=o}})):r.changes&&Object.keys(r.changes).forEach(function(a){var o=new bc(r.changes[a]);n._textEditChanges[a]=o})):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(xc.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 o=[],c={textDocument:n,edits:o};this._workspaceEdit.documentChanges.push(c),a=new bc(o,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 o=[];this._workspaceEdit.changes[r]=o,a=new bc(o),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Gh,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 o;Zs.is(n)||Sn.is(n)?o=n:a=n;var c,p;if(o===void 0?c=Ou.create(r,a):(p=Sn.is(o)?o:this._changeAnnotations.manage(o),c=Ou.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e.prototype.renameFile=function(r,n,a,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;Zs.is(a)||Sn.is(a)?c=a:o=a;var p,m;if(c===void 0?p=Tu.create(r,n,o):(m=Sn.is(c)?c:this._changeAnnotations.manage(c),p=Tu.create(r,n,o,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 o;Zs.is(n)||Sn.is(n)?o=n:a=n;var c,p;if(o===void 0?c=Pu.create(r,a):(p=Sn.is(o)?o:this._changeAnnotations.manage(o),c=Pu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e}(),$h;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)}e.is=n})($h||($h={}));var Kh;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)&&Ee.integer(o.version)}e.is=n})(Kh||(Kh={}));var xc;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)&&(o.version===null||Ee.integer(o.version))}e.is=n})(xc||(xc={}));var Yh;(function(e){function r(a,o,c,p){return{uri:a,languageId:o,version:c,text:p}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)&&Ee.string(o.languageId)&&Ee.integer(o.version)&&Ee.string(o.text)}e.is=n})(Yh||(Yh={}));var zo;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})(zo||(zo={}));var Iu;(function(e){function r(n){var a=n;return Ee.objectLiteral(n)&&zo.is(a.kind)&&Ee.string(a.value)}e.is=r})(Iu||(Iu={}));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 Jr;(function(e){e.PlainText=1,e.Snippet=2})(Jr||(Jr={}));var Jh;(function(e){e.Deprecated=1})(Jh||(Jh={}));var Xh;(function(e){function r(a,o,c){return{newText:a,insert:o,replace:c}}e.create=r;function n(a){var o=a;return o&&Ee.string(o.newText)&&ar.is(o.insert)&&ar.is(o.replace)}e.is=n})(Xh||(Xh={}));var Qh;(function(e){e.asIs=1,e.adjustIndentation=2})(Qh||(Qh={}));var Zh;(function(e){function r(n){var a=n;return a&&(Ee.string(a.detail)||a.detail===void 0)&&(Ee.string(a.description)||a.description===void 0)}e.is=r})(Zh||(Zh={}));var _d;(function(e){function r(n){return{label:n}}e.create=r})(_d||(_d={}));var _h;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(_h||(_h={}));var Sc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var o=a;return Ee.string(o)||Ee.objectLiteral(o)&&Ee.string(o.language)&&Ee.string(o.value)}e.is=n})(Sc||(Sc={}));var qh;(function(e){function r(n){var a=n;return!!a&&Ee.objectLiteral(a)&&(Iu.is(a.contents)||Sc.is(a.contents)||Ee.typedArray(a.contents,Sc.is))&&(n.range===void 0||ar.is(n.range))}e.is=r})(qh||(qh={}));var ev;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(ev||(ev={}));var tv;(function(e){function r(n,a){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p={label:n};return Ee.defined(a)&&(p.documentation=a),Ee.defined(o)?p.parameters=o:p.parameters=[],p}e.create=r})(tv||(tv={}));var rv;(function(e){e.Text=1,e.Read=2,e.Write=3})(rv||(rv={}));var nv;(function(e){function r(n,a){var o={range:n};return Ee.number(a)&&(o.kind=a),o}e.create=r})(nv||(nv={}));var Qi;(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})(Qi||(Qi={}));var iv;(function(e){e.Deprecated=1})(iv||(iv={}));var av;(function(e){function r(n,a,o,c,p){var m={name:n,kind:a,location:{uri:c,range:o}};return p&&(m.containerName=p),m}e.create=r})(av||(av={}));var ov;(function(e){function r(n,a,o,c){return c!==void 0?{name:n,kind:a,location:{uri:o,range:c}}:{name:n,kind:a,location:{uri:o}}}e.create=r})(ov||(ov={}));var sv;(function(e){function r(a,o,c,p,m,v){var y={name:a,detail:o,kind:c,range:p,selectionRange:m};return v!==void 0&&(y.children=v),y}e.create=r;function n(a){var o=a;return o&&Ee.string(o.name)&&Ee.number(o.kind)&&ar.is(o.range)&&ar.is(o.selectionRange)&&(o.detail===void 0||Ee.string(o.detail))&&(o.deprecated===void 0||Ee.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}e.is=n})(sv||(sv={}));var lv;(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"})(lv||(lv={}));var wc;(function(e){e.Invoked=1,e.Automatic=2})(wc||(wc={}));var uv;(function(e){function r(a,o,c){var p={diagnostics:a};return o!=null&&(p.only=o),c!=null&&(p.triggerKind=c),p}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.typedArray(o.diagnostics,ba.is)&&(o.only===void 0||Ee.typedArray(o.only,Ee.string))&&(o.triggerKind===void 0||o.triggerKind===wc.Invoked||o.triggerKind===wc.Automatic)}e.is=n})(uv||(uv={}));var fv;(function(e){function r(a,o,c){var p={title:a},m=!0;return typeof o=="string"?(m=!1,p.kind=o):Qs.is(o)?p.command=o:p.edit=o,m&&c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var o=a;return o&&Ee.string(o.title)&&(o.diagnostics===void 0||Ee.typedArray(o.diagnostics,ba.is))&&(o.kind===void 0||Ee.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||Qs.is(o.command))&&(o.isPreferred===void 0||Ee.boolean(o.isPreferred))&&(o.edit===void 0||Zd.is(o.edit))}e.is=n})(fv||(fv={}));var cv;(function(e){function r(a,o){var c={range:a};return Ee.defined(o)&&(c.data=o),c}e.create=r;function n(a){var o=a;return Ee.defined(o)&&ar.is(o.range)&&(Ee.undefined(o.command)||Qs.is(o.command))}e.is=n})(cv||(cv={}));var dv;(function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.uinteger(o.tabSize)&&Ee.boolean(o.insertSpaces)}e.is=n})(dv||(dv={}));var pv;(function(e){function r(a,o,c){return{range:a,target:o,data:c}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&ar.is(o.range)&&(Ee.undefined(o.target)||Ee.string(o.target))}e.is=n})(pv||(pv={}));var Ac;(function(e){function r(a,o){return{range:a,parent:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.range)&&(o.parent===void 0||e.is(o.parent))}e.is=n})(Ac||(Ac={}));var hv;(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"})(hv||(hv={}));var vv;(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"})(vv||(vv={}));var gv;(function(e){function r(n){var a=n;return Ee.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})(gv||(gv={}));var mv;(function(e){function r(a,o){return{range:a,text:o}}e.create=r;function n(a){var o=a;return o!=null&&ar.is(o.range)&&Ee.string(o.text)}e.is=n})(mv||(mv={}));var yv;(function(e){function r(a,o,c){return{range:a,variableName:o,caseSensitiveLookup:c}}e.create=r;function n(a){var o=a;return o!=null&&ar.is(o.range)&&Ee.boolean(o.caseSensitiveLookup)&&(Ee.string(o.variableName)||o.variableName===void 0)}e.is=n})(yv||(yv={}));var bv;(function(e){function r(a,o){return{range:a,expression:o}}e.create=r;function n(a){var o=a;return o!=null&&ar.is(o.range)&&(Ee.string(o.expression)||o.expression===void 0)}e.is=n})(bv||(bv={}));var xv;(function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&ar.is(a.stoppedLocation)}e.is=n})(xv||(xv={}));var qd;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(qd||(qd={}));var ep;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&(o.tooltip===void 0||Ee.string(o.tooltip)||Iu.is(o.tooltip))&&(o.location===void 0||Xs.is(o.location))&&(o.command===void 0||Qs.is(o.command))}e.is=n})(ep||(ep={}));var Sv;(function(e){function r(a,o,c){var p={position:a,label:o};return c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&hi.is(o.position)&&(Ee.string(o.label)||Ee.typedArray(o.label,ep.is))&&(o.kind===void 0||qd.is(o.kind))&&o.textEdits===void 0||Ee.typedArray(o.textEdits,vi.is)&&(o.tooltip===void 0||Ee.string(o.tooltip)||Iu.is(o.tooltip))&&(o.paddingLeft===void 0||Ee.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Ee.boolean(o.paddingRight))}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(n){var a=n;return Ee.objectLiteral(a)&&Jd.is(a.uri)&&Ee.string(a.name)}e.is=r})(wv||(wv={}));var w1=null,Av;(function(e){function r(c,p,m,v){return new l0(c,p,m,v)}e.create=r;function n(c){var p=c;return!!(Ee.defined(p)&&Ee.string(p.uri)&&(Ee.undefined(p.languageId)||Ee.string(p.languageId))&&Ee.uinteger(p.lineCount)&&Ee.func(p.getText)&&Ee.func(p.positionAt)&&Ee.func(p.offsetAt))}e.is=n;function a(c,p){for(var m=c.getText(),v=o(p,function($,te){var q=$.range.start.line-te.range.start.line;return q===0?$.range.start.character-te.range.start.character:q}),y=m.length,b=v.length-1;b>=0;b--){var I=v[b],R=c.offsetAt(I.range.start),B=c.offsetAt(I.range.end);if(B<=y)m=m.substring(0,R)+I.newText+m.substring(B,m.length);else throw new Error("Overlapping edit");y=R}return m}e.applyEdits=a;function o(c,p){if(c.length<=1)return c;var m=c.length/2|0,v=c.slice(0,m),y=c.slice(m);o(v,p),o(y,p);for(var b=0,I=0,R=0;b<v.length&&I<y.length;){var B=p(v[b],y[I]);B<=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}})(Av||(Av={}));var l0=function(){function e(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,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,o=0;o<n.length;o++){a&&(r.push(o),a=!1);var c=n.charAt(o);a=c==="\r"||c===`
|
|
255
|
-
`,c==="\r"&&
|
|
256
|
-
`&&o++}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,o=n.length;if(o===0)return hi.create(0,r);for(;a<o;){var c=Math.floor((a+o)/2);n[c]>r?o=c:a=c+1}var p=a-1;return hi.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],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Ee;(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 o(B){return B===!0||B===!1}e.boolean=o;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,$,te){return r.call(B)==="[object Number]"&&$<=B&&B<=te}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 R(B,$){return Array.isArray(B)&&B.every($)}e.typedArray=R})(Ee||(Ee={}));class ku{constructor(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content}update(r,n){for(let a of r)if(ku.isIncremental(a)){const o=Ev(a.range),c=this.offsetAt(o.start),p=this.offsetAt(o.end);this._content=this._content.substring(0,c)+a.text+this._content.substring(p,this._content.length);const m=Math.max(o.start.line,0),v=Math.max(o.end.line,0);let y=this._lineOffsets;const b=Cv(a.text,!1,c);if(v-m===b.length)for(let R=0,B=b.length;R<B;R++)y[R+m+1]=b[R];else b.length<1e4?y.splice(m+1,v-m,...b):this._lineOffsets=y=y.slice(0,m+1).concat(b,y.slice(v+1));const I=a.text.length-(p-c);if(I!==0)for(let R=m+1+b.length,B=y.length;R<B;R++)y[R]=y[R]+I}else if(ku.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Cv(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return{line:0,character:r};for(;a<o;){let p=Math.floor((a+o)/2);n[p]>r?o=p:a=p+1}let c=a-1;return{line:c,character:r-n[c]}}offsetAt(r){let n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;let a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Cc;(function(e){function r(o,c,p,m){return new ku(o,c,p,m)}e.create=r;function n(o,c,p){if(o instanceof ku)return o.update(c,p),o;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(o,c){let p=o.getText(),m=tp(c.map(u0),(b,I)=>{let R=b.range.start.line-I.range.start.line;return R===0?b.range.start.character-I.range.start.character:R}),v=0;const y=[];for(const b of m){let I=o.offsetAt(b.range.start);if(I<v)throw new Error("Overlapping edit");I>v&&y.push(p.substring(v,I)),b.newText.length&&y.push(b.newText),v=o.offsetAt(b.range.end)}return y.push(p.substr(v)),y.join("")}e.applyEdits=a})(Cc||(Cc={}));function tp(e,r){if(e.length<=1)return e;const n=e.length/2|0,a=e.slice(0,n),o=e.slice(n);tp(a,r),tp(o,r);let c=0,p=0,m=0;for(;c<a.length&&p<o.length;)r(a[c],o[p])<=0?e[m++]=a[c++]:e[m++]=o[p++];for(;c<a.length;)e[m++]=a[c++];for(;p<o.length;)e[m++]=o[p++];return e}function Cv(e,r,n=0){const a=r?[n]:[];for(let o=0;o<e.length;o++){let c=e.charCodeAt(o);(c===13||c===10)&&(c===13&&o+1<e.length&&e.charCodeAt(o+1)===10&&o++,a.push(n+o+1))}return a}function Ev(e){const 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 u0(e){const r=Ev(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var er;(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"})(er||(er={}));var Ov;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[zo.Markdown,zo.PlainText],commitCharactersSupport:!0}}}}})(Ov||(Ov={}));var Go=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var c in o)o.hasOwnProperty(c)&&(a[c]=o[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)}}(),f0={"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,}))$/}},$o=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}(),c0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="null",o.value=null,o}return r}($o),Tv=function(e){Go(r,e);function r(n,a,o){var c=e.call(this,n,o)||this;return c.type="boolean",c.value=a,c}return r}($o),d0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="array",o.items=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}($o),p0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="number",o.isInteger=!0,o.value=Number.NaN,o}return r}($o),Pv=function(e){Go(r,e);function r(n,a,o){var c=e.call(this,n,a,o)||this;return c.type="string",c.value="",c}return r}($o),h0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="property",o.colonOffset=-1,o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}($o),v0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="object",o.properties=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}($o);function Nn(e){return Xi(e)?e?{}:{not:{}}:e}var Iv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Iv||(Iv={}));var g0=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||kv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),rp=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}(),Dn=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 o=a[n];this.merge(o)}},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 o=a[n];o.code===er.EnumValueMismatch&&(o.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 m0(e,r){return r===void 0&&(r=[]),new Fv(e,r,[])}function _a(e){return a0(e)}function np(e){return i0(e)}function kv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Fv=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 n0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var o=r(a),c=a.children;if(Array.isArray(c))for(var p=0;p<c.length&&o;p++)o=n(c[p]);return o};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Dn;return vn(this.root,n,a,rp.instance),a.problems.map(function(o){var c=ar.create(r.positionAt(o.location.offset),r.positionAt(o.location.offset+o.location.length));return ba.create(c,o.message,o.severity,o.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var o=new g0(n,a);return this.root&&r&&vn(this.root,r,new Dn,o),o.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)}o(),a.add({node:e,schema:r});function o(){function y(We){return e.type===We||We==="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:$t.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:$t.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,Nn(R),n,a)}var B=Nn(r.not);if(B){var $=new Dn,te=a.newSub();vn(e,B,$,te),$.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var q=0,se=te.schemas;q<se.length;q++){var ie=se[q];ie.inverted=!ie.inverted,a.add(ie)}}var pe=function(We,Ke){for(var At=[],qe=null,_t=0,sr=We;_t<sr.length;_t++){var Ut=sr[_t],lr=Nn(Ut),Kt=new Dn,ur=a.newSub();if(vn(e,lr,Kt,ur),Kt.hasProblems()||At.push(lr),!qe)qe={schema:lr,validationResult:Kt,matchingSchemas:ur};else if(!Ke&&!Kt.hasProblems()&&!qe.validationResult.hasProblems())qe.matchingSchemas.merge(ur),qe.validationResult.propertiesMatches+=Kt.propertiesMatches,qe.validationResult.propertiesValueMatches+=Kt.propertiesValueMatches;else{var xr=Kt.compare(qe.validationResult);xr>0?qe={schema:lr,validationResult:Kt,matchingSchemas:ur}:xr===0&&(qe.matchingSchemas.merge(ur),qe.validationResult.mergeEnumValues(Kt))}}return At.length>1&&Ke&&n.problems.push({location:{offset:e.offset,length:1},severity:$t.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)),At.length};Array.isArray(r.anyOf)&&pe(r.anyOf,!1),Array.isArray(r.oneOf)&&pe(r.oneOf,!0);var ve=function(We){var Ke=new Dn,At=a.newSub();vn(e,Nn(We),Ke,At),n.merge(Ke),n.propertiesMatches+=Ke.propertiesMatches,n.propertiesValueMatches+=Ke.propertiesValueMatches,a.merge(At)},ge=function(We,Ke,At){var qe=Nn(We),_t=new Dn,sr=a.newSub();vn(e,qe,_t,sr),a.merge(sr),_t.hasProblems()?At&&ve(At):Ke&&ve(Ke)},Ce=Nn(r.if);if(Ce&&ge(Ce,Nn(r.then),Nn(r.else)),Array.isArray(r.enum)){for(var we=_a(e),xe=!1,Ae=0,Fe=r.enum;Ae<Fe.length;Ae++){var Le=Fe[Ae];if(Cu(we,Le)){xe=!0;break}}n.enumValues=r.enum,n.enumValueMatch=xe,xe||n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,code:er.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(We){return JSON.stringify(We)}).join(", ")+"."})}if(ya(r.const)){var we=_a(e);Cu(we,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,code:er.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:$t.Warning,message:r.deprecationMessage})}function c(y,b,I,R){var B=y.value;Zn(b.multipleOf)&&B%b.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is not divisible by "+b.multipleOf+"."});function $(ve,ge){if(Zn(ge))return ge;if(Xi(ge)&&ge)return ve}function te(ve,ge){if(!Xi(ge)||!ge)return ve}var q=$(b.minimum,b.exclusiveMinimum);Zn(q)&&B<=q&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+q+"."});var se=$(b.maximum,b.exclusiveMaximum);Zn(se)&&B>=se&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+se+"."});var ie=te(b.minimum,b.exclusiveMinimum);Zn(ie)&&B<ie&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is below the minimum of "+ie+"."});var pe=te(b.maximum,b.exclusiveMaximum);Zn(pe)&&B>pe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is above the maximum of "+pe+"."})}function p(y,b,I,R){if(Zn(b.minLength)&&y.value.length<b.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+b.minLength+"."}),Zn(b.maxLength)&&y.value.length>b.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"String is longer than the maximum length of "+b.maxLength+"."}),s0(b.pattern)){var B=new RegExp(b.pattern);B.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.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 te=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);te?!te[2]&&b.format==="uri"&&($="URI with a scheme is expected."):$="URI is expected."}$&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.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=f0[b.format];(!y.value||!q.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:b.patternErrorMessage||b.errorMessage||q.errorMessage});break;default:}}function m(y,b,I,R){if(Array.isArray(b.items)){for(var B=b.items,$=0;$<B.length;$++){var te=B[$],q=Nn(te),se=new Dn,ie=y.items[$];ie?(vn(ie,q,se,R),I.mergePropertyMatch(se)):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 se=new Dn;vn(y.items[pe],b.additionalItems,se,R),I.mergePropertyMatch(se)}else b.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+B.length+" or fewer."})}else{var ve=Nn(b.items);if(ve)for(var ge=0,Ce=y.items;ge<Ce.length;ge++){var ie=Ce[ge],se=new Dn;vn(ie,ve,se,R),I.mergePropertyMatch(se)}}var we=Nn(b.contains);if(we){var xe=y.items.some(function(Le){var We=new Dn;return vn(Le,we,We,rp.instance),!We.hasProblems()});xe||I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:b.errorMessage||"Array does not contain required item."})}if(Zn(b.minItems)&&y.items.length<b.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has too few items. Expected "+b.minItems+" or more."}),Zn(b.maxItems)&&y.items.length>b.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has too many items. Expected "+b.maxItems+" or fewer."}),b.uniqueItems===!0){var Ae=_a(y),Fe=Ae.some(function(Le,We){return We!==Ae.lastIndexOf(Le)});Fe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has duplicate items."})}}function v(y,b,I,R){for(var B=Object.create(null),$=[],te=0,q=y.properties;te<q.length;te++){var se=q[te],ie=se.keyNode.value;B[ie]=se.valueNode,$.push(ie)}if(Array.isArray(b.required))for(var pe=0,ve=b.required;pe<ve.length;pe++){var ge=ve[pe];if(!B[ge]){var Ce=y.parent&&y.parent.type==="property"&&y.parent.keyNode,we=Ce?{offset:Ce.offset,length:Ce.length}:{offset:y.offset,length:1};I.problems.push({location:we,severity:$t.Warning,message:'Missing property "'+ge+'".'})}}var xe=function(Tn){for(var Yo=$.indexOf(Tn);Yo>=0;)$.splice(Yo,1),Yo=$.indexOf(Tn)};if(b.properties)for(var Ae=0,Fe=Object.keys(b.properties);Ae<Fe.length;Ae++){var ge=Fe[Ae];xe(ge);var Le=b.properties[ge],We=B[ge];if(We)if(Xi(Le))if(Le)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=We.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:$t.Warning,message:b.errorMessage||"Property "+ge+" is not allowed."})}else{var Ke=new Dn;vn(We,Le,Ke,R),I.mergePropertyMatch(Ke)}}if(b.patternProperties)for(var At=0,qe=Object.keys(b.patternProperties);At<qe.length;At++)for(var _t=qe[At],sr=new RegExp(_t),Ut=0,lr=$.slice(0);Ut<lr.length;Ut++){var ge=lr[Ut];if(sr.test(ge)){xe(ge);var We=B[ge];if(We){var Le=b.patternProperties[_t];if(Xi(Le))if(Le)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=We.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:$t.Warning,message:b.errorMessage||"Property "+ge+" is not allowed."})}else{var Ke=new Dn;vn(We,Le,Ke,R),I.mergePropertyMatch(Ke)}}}}if(typeof b.additionalProperties=="object")for(var Kt=0,ur=$;Kt<ur.length;Kt++){var ge=ur[Kt],We=B[ge];if(We){var Ke=new Dn;vn(We,b.additionalProperties,Ke,R),I.mergePropertyMatch(Ke)}}else if(b.additionalProperties===!1&&$.length>0)for(var xr=0,zt=$;xr<zt.length;xr++){var ge=zt[xr],We=B[ge];if(We){var se=We.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:$t.Warning,message:b.errorMessage||"Property "+ge+" is not allowed."})}}if(Zn(b.maxProperties)&&y.properties.length>b.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Object has more properties than limit of "+b.maxProperties+"."}),Zn(b.minProperties)&&y.properties.length<b.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+b.minProperties}),b.dependencies)for(var ct=0,Et=Object.keys(b.dependencies);ct<Et.length;ct++){var ie=Et[ct],Jt=B[ie];if(Jt){var Gt=b.dependencies[ie];if(Array.isArray(Gt))for(var Yt=0,Xr=Gt;Yt<Xr.length;Yt++){var Bn=Xr[Yt];B[Bn]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Object is missing property "+Bn+" required by property {$key}."})}else{var Le=Nn(Gt);if(Le){var Ke=new Dn;vn(y,Le,Ke,R),I.mergePropertyMatch(Ke)}}}}var gi=Nn(b.propertyNames);if(gi)for(var Dr=0,sn=y.properties;Dr<sn.length;Dr++){var Ko=sn[Dr],ie=Ko.keyNode;ie&&vn(ie,gi,I,rp.instance)}}}function y0(e,r){var n=[],a=-1,o=e.getText(),c=Js(o,!1),p=r&&r.collectComments?[]:void 0;function m(){for(;;){var Ce=c.scan();switch(I(),Ce){case 12:case 13:Array.isArray(p)&&p.push(ar.create(e.positionAt(c.getTokenOffset()),e.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Ce}}}function v(Ce){return c.getToken()===Ce?(m(),!0):!1}function y(Ce,we,xe,Ae,Fe){if(Fe===void 0&&(Fe=$t.Error),n.length===0||xe!==a){var Le=ar.create(e.positionAt(xe),e.positionAt(Ae));n.push(ba.create(Le,Ce,Fe,we,e.languageId)),a=xe}}function b(Ce,we,xe,Ae,Fe){xe===void 0&&(xe=null),Ae===void 0&&(Ae=[]),Fe===void 0&&(Fe=[]);var Le=c.getTokenOffset(),We=c.getTokenOffset()+c.getTokenLength();if(Le===We&&Le>0){for(Le--;Le>0&&/\s/.test(o.charAt(Le));)Le--;We=Le+1}if(y(Ce,we,Le,We),xe&&R(xe,!1),Ae.length+Fe.length>0)for(var Ke=c.getToken();Ke!==17;){if(Ae.indexOf(Ke)!==-1){m();break}else if(Fe.indexOf(Ke)!==-1)break;Ke=m()}return xe}function I(){switch(c.getTokenError()){case 4:return b("Invalid unicode sequence in string.",er.InvalidUnicode),!0;case 5:return b("Invalid escape character in string.",er.InvalidEscapeCharacter),!0;case 3:return b("Unexpected end of number.",er.UnexpectedEndOfNumber),!0;case 1:return b("Unexpected end of comment.",er.UnexpectedEndOfComment),!0;case 2:return b("Unexpected end of string.",er.UnexpectedEndOfString),!0;case 6:return b("Invalid characters in string. Control characters must be escaped.",er.InvalidCharacter),!0}return!1}function R(Ce,we){return Ce.length=c.getTokenOffset()+c.getTokenLength()-Ce.offset,we&&m(),Ce}function B(Ce){if(c.getToken()!==3)return null;var we=new d0(Ce,c.getTokenOffset());m();for(var xe=0,Ae=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){Ae||b("Value expected",er.ValueExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===4){Ae&&y("Trailing comma",er.TrailingComma,Fe,Fe+1);continue}}else Ae&&b("Expected comma",er.CommaExpected);var Le=pe(we,xe++);Le?we.items.push(Le):b("Value expected",er.ValueExpected,null,[],[4,5]),Ae=!0}return c.getToken()!==4?b("Expected comma or closing bracket",er.CommaOrCloseBacketExpected,we):R(we,!0)}function $(Ce,we){var xe=new h0(Ce,c.getTokenOffset()),Ae=q(xe);if(!Ae)if(c.getToken()===16){b("Property keys must be doublequoted",er.Undefined);var Fe=new Pv(xe,c.getTokenOffset(),c.getTokenLength());Fe.value=c.getTokenValue(),Ae=Fe,m()}else return null;xe.keyNode=Ae;var Le=we[Ae.value];if(Le?(y("Duplicate object key",er.DuplicateKey,xe.keyNode.offset,xe.keyNode.offset+xe.keyNode.length,$t.Warning),typeof Le=="object"&&y("DuplicateKeyWarning",er.DuplicateKey,Le.keyNode.offset,Le.keyNode.offset+Le.keyNode.length,$t.Warning),we[Ae.value]=!0):we[Ae.value]=xe,c.getToken()===6)xe.colonOffset=c.getTokenOffset(),m();else if(b("Colon expected",er.ColonExpected),c.getToken()===10&&e.positionAt(Ae.offset+Ae.length).line<e.positionAt(c.getTokenOffset()).line)return xe.length=Ae.length,xe;var We=pe(xe,Ae.value);return We?(xe.valueNode=We,xe.length=We.offset+We.length-xe.offset,xe):b("Value expected",er.ValueExpected,xe,[],[2,5])}function te(Ce){if(c.getToken()!==1)return null;var we=new v0(Ce,c.getTokenOffset()),xe=Object.create(null);m();for(var Ae=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){Ae||b("Property expected",er.PropertyExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===2){Ae&&y("Trailing comma",er.TrailingComma,Fe,Fe+1);continue}}else Ae&&b("Expected comma",er.CommaExpected);var Le=$(we,xe);Le?we.properties.push(Le):b("Property expected",er.PropertyExpected,null,[],[2,5]),Ae=!0}return c.getToken()!==2?b("Expected comma or closing brace",er.CommaOrCloseBraceExpected,we):R(we,!0)}function q(Ce){if(c.getToken()!==10)return null;var we=new Pv(Ce,c.getTokenOffset());return we.value=c.getTokenValue(),R(we,!0)}function se(Ce){if(c.getToken()!==11)return null;var we=new p0(Ce,c.getTokenOffset());if(c.getTokenError()===0){var xe=c.getTokenValue();try{var Ae=JSON.parse(xe);if(!Zn(Ae))return b("Invalid number format.",er.Undefined,we);we.value=Ae}catch(Fe){return b("Invalid number format.",er.Undefined,we)}we.isInteger=xe.indexOf(".")===-1}return R(we,!0)}function ie(Ce){var we;switch(c.getToken()){case 7:return R(new c0(Ce,c.getTokenOffset()),!0);case 8:return R(new Tv(Ce,!0,c.getTokenOffset()),!0);case 9:return R(new Tv(Ce,!1,c.getTokenOffset()),!0);default:return null}}function pe(Ce,we){return B(Ce)||te(Ce)||q(Ce)||se(Ce)||ie(Ce)}var ve=null,ge=m();return ge!==17&&(ve=pe(null,null),ve?c.getToken()!==17&&b("End of file expected.",er.Undefined):b("Expected a JSON object, array or literal.",er.Undefined)),new Fv(ve,n,p)}function ip(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var o=`[
|
|
257
|
-
`,c=0;c<e.length;c++)
|
|
258
|
-
`;return
|
|
259
|
-
`,c=0;c<p.length;c++){var m=p[c];
|
|
260
|
-
`}return
|
|
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===`
|
|
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=`[
|
|
261
|
+
`,c=0;c<e.length;c++)s+=a+ap(e[c],a,n),c<e.length-1&&(s+=","),s+=`
|
|
262
|
+
`;return s+=r+"]",s}else{var p=Object.keys(e);if(p.length===0)return"{}";for(var s=`{
|
|
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+`[
|
|
261
265
|
`,pe=pe+`
|
|
262
|
-
`+ve+"]",ve+=" ",I="array"
|
|
266
|
+
`+ve+"]",ve+=" ",I="array";G=ae+ve+b.bodyText.split(`
|
|
263
267
|
`).join(`
|
|
264
|
-
`+ve)+pe+n,
|
|
265
|
-
\r\v":{[,]}`.indexOf(
|
|
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+=`
|
|
266
270
|
|
|
267
|
-
`),ve+=
|
|
271
|
+
`),ve+=oe),ae&&(ve.length>0&&(ve+=`
|
|
268
272
|
|
|
269
|
-
`),ve+="`"+
|
|
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
|
|
270
274
|
|
|
271
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var O0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var c in o)o.hasOwnProperty(c)&&(a[c]=o[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)}}(),Ur,Fu;if(typeof process=="object")Fu=!1;else if(typeof navigator=="object"){var T0=navigator.userAgent;Fu=T0.indexOf("Windows")>=0}function C1(e){return 55296<=e&&e<=56319}function E1(e){return 56320<=e&&e<=57343}function O1(e){return e>=97&&e<=102}function P0(e){return e>=97&&e<=122}function I0(e){return e>=65&&e<=90}function T1(e){return P0(e)||I0(e)}var k0=/^\w[\w\d+.-]*$/,F0=/^\//,R0=/^\/\//;function L0(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&&!k0.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!F0.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(R0.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 M0(e,r){return!e&&!r?"file":e}function N0(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Bi&&(r=Bi+r):r=Bi;break}return r}var yr="",Bi="/",D0=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,sp=function(){function e(r,n,a,o,c,p){p===void 0&&(p=!1),typeof r=="object"?(this.scheme=r.scheme||yr,this.authority=r.authority||yr,this.path=r.path||yr,this.query=r.query||yr,this.fragment=r.fragment||yr):(this.scheme=M0(r,p),this.authority=n||yr,this.path=N0(this.scheme,a||yr),this.query=o||yr,this.fragment=c||yr,L0(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 Nv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,o=r.path,c=r.query,p=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=yr),a===void 0?a=this.authority:a===null&&(a=yr),o===void 0?o=this.path:o===null&&(o=yr),c===void 0?c=this.query:c===null&&(c=yr),p===void 0?p=this.fragment:p===null&&(p=yr),n===this.scheme&&a===this.authority&&o===this.path&&c===this.query&&p===this.fragment?this:new _s(n,a,o,c,p)},e.parse=function(r,n){n===void 0&&(n=!1);var a=D0.exec(r);return a?new _s(a[2]||yr,Ec(a[4]||yr),Ec(a[5]||yr),Ec(a[7]||yr),Ec(a[9]||yr),n):new _s(yr,yr,yr,yr,yr)},e.file=function(r){var n=yr;if(Fu&&(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,yr,yr)},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),lp(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===Rv?r.fsPath:null,n}else return r},e}(),Rv=Fu?1:void 0,_s=function(e){O0(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=Nv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?lp(this,!0):(this._formatted||(this._formatted=lp(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Rv),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}(sp),Lv=(Ur={},Ur[58]="%3A",Ur[47]="%2F",Ur[63]="%3F",Ur[35]="%23",Ur[91]="%5B",Ur[93]="%5D",Ur[64]="%40",Ur[33]="%21",Ur[36]="%24",Ur[38]="%26",Ur[39]="%27",Ur[40]="%28",Ur[41]="%29",Ur[42]="%2A",Ur[43]="%2B",Ur[44]="%2C",Ur[59]="%3B",Ur[61]="%3D",Ur[32]="%20",Ur);function Mv(e,r){for(var n=void 0,a=-1,o=0;o<e.length;o++){var c=e.charCodeAt(o);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,o)),a=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));var p=Lv[c];p!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n+=p):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function B0(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+=Lv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function Nv(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,Fu&&(n=n.replace(/\//g,"\\")),n}function lp(e,r){var n=r?B0:Mv,a="",o=e.scheme,c=e.authority,p=e.path,m=e.query,v=e.fragment;if(o&&(a+=o,a+=":"),(c||o==="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:Mv(v,!1)),a}function Dv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Dv(e.substr(3)):e}}var Bv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ec(e){return e.match(Bv)?e.replace(Bv,function(r){return Dv(r)}):e}var j0=function(){function e(r){try{this.patternRegExp=new RegExp(x0(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}(),V0=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new qs(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}(),qs=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),jv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return Nn(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 o=0,c=Object.keys(n.patternProperties);o<c.length;o++){var p=c[o],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}(),U0=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=sp.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 o=[r],c=Object.keys(this.schemasById).map(function(y){return n.schemasById[y]});o.length;)for(var p=o.pop(),m=0;m<c.length;m++){var v=c[m];v&&(v.url===p||v.dependencies[p])&&(v.url!==p&&o.push(v.url),v.clearSchema(),c[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return sp.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 o=this.normalizeId(a);this.contributionSchemas[o]=this.addSchemaHandle(o,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 V0(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 j0(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var o=this.normalizeId(r);if(this.registeredSchemasIds[o]=!0,n)for(var c=0,p=n;c<p.length;c++){var m=p[c];this.getOrAddFilePatternAssociation(m).addSchema(o)}return a?this.addSchemaHandle(o,a):this.getOrAddSchemaHandle(o)},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),o=0,c=this.contributionAssociations[n];o<c.length;o++){var p=c[o],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 '"+Oc(r)+"'. No schema request service available";return this.promise.resolve(new qs({},[n]))}return this.requestService(r).then(function(a){if(!a){var o="Unable to load schema from '"+Oc(r)+"': No content.";return new qs({},[o])}var c={},p=[];c=r0(a,p);var m=p.length?["Unable to parse content from '"+Oc(r)+"': Parse error at offset "+p[0].offset]:[];return new qs(c,m)},function(a){var o="Unable to load schema from '"+Oc(r)+"': "+a.toString();return new qs({},[o])})},e.prototype.resolveSchemaContent=function(r,n,a){var o=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 jv({},["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 te=B;return $[0]==="/"&&($=$.substr(1)),$.split("/").some(function(q){return te=te[q],!te}),te},b=function(B,$,te,q){var se=y($,q);if(se)for(var ie in se)se.hasOwnProperty(ie)&&!B.hasOwnProperty(ie)&&(B[ie]=se[ie]);else c.push("$ref '"+q+"' in '"+te+"' can not be resolved.")},I=function(B,$,te,q,se){v&&!/^\w+:\/\/.*/.test($)&&($=v.resolveRelativePath($,q)),$=o.normalizeId($);var ie=o.getOrAddSchemaHandle($);return ie.getUnresolvedSchema().then(function(pe){if(se[$]=!0,pe.errors.length){var ve=te?$+"#"+te:$;c.push("Problems loading reference '"+ve+"': "+pe.errors[0]+".")}return b(B,pe.schema,$,te),R(B,pe.schema,$,ie.dependencies)})},R=function(B,$,te,q){if(!B||typeof B!="object")return Promise.resolve(null);for(var se=[B],ie=[],pe=[],ve=function(){for(var Ae=[],Fe=0;Fe<arguments.length;Fe++)Ae[Fe]=arguments[Fe];for(var Le=0,We=Ae;Le<We.length;Le++){var Ke=We[Le];typeof Ke=="object"&&se.push(Ke)}},ge=function(){for(var Ae=[],Fe=0;Fe<arguments.length;Fe++)Ae[Fe]=arguments[Fe];for(var Le=0,We=Ae;Le<We.length;Le++){var Ke=We[Le];if(typeof Ke=="object")for(var At in Ke){var qe=Ke[At];typeof qe=="object"&&se.push(qe)}}},Ce=function(){for(var Ae=[],Fe=0;Fe<arguments.length;Fe++)Ae[Fe]=arguments[Fe];for(var Le=0,We=Ae;Le<We.length;Le++){var Ke=We[Le];if(Array.isArray(Ke))for(var At=0,qe=Ke;At<qe.length;At++){var _t=qe[At];typeof _t=="object"&&se.push(_t)}}},we=function(Ae){for(var Fe=[];Ae.$ref;){var Le=Ae.$ref,We=Le.split("#",2);if(delete Ae.$ref,We[0].length>0){pe.push(I(Ae,We[0],We[1],te,q));return}else Fe.indexOf(Le)===-1&&(b(Ae,$,te,We[1]),Fe.push(Le))}ve(Ae.items,Ae.additionalProperties,Ae.not,Ae.contains,Ae.propertyNames,Ae.if,Ae.then,Ae.else),ge(Ae.definitions,Ae.properties,Ae.patternProperties,Ae.dependencies),Ce(Ae.anyOf,Ae.allOf,Ae.oneOf,Ae.items)};se.length;){var xe=se.pop();ie.indexOf(xe)>=0||(ie.push(xe),we(xe))}return o.promise.all(pe)};return R(p,p,n,a).then(function(B){return new jv(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 o=_a(a[0].valueNode);if(o&&b0(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,r)),o){var c=this.normalizeId(o);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 B=R[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),o={allOf:n.map(function(c){return{$ref:c}})};return this.addSchemaHandle(a,o)},e}();function Oc(e){try{}catch(r){}return e}var W0=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:$t.Error)},e.prototype.doValidation=function(r,n,a,o){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?Wv(a.trailingCommas):$t.Error,B=a?Wv(a.comments):c.commentSeverity;if(I){if(I.errors.length&&n.root){var $=n.root,te=$.type==="object"?$.properties[0]:null;if(te&&te.keyNode.value==="$schema"){var q=te.valueNode||te,se=ar.create(r.positionAt(q.offset),r.positionAt(q.offset+q.length));v(ba.create(se,I.errors[0],$t.Warning,er.SchemaResolveError))}else{var se=ar.create(r.positionAt($.offset),r.positionAt($.offset+1));v(ba.create(se,I.errors[0],$t.Warning,er.SchemaResolveError))}}else{var ie=n.validate(r,I.schema);ie&&ie.forEach(v)}Vv(I.schema)&&(B=void 0),Uv(I.schema)&&(R=void 0)}for(var pe=0,ve=n.syntaxErrors;pe<ve.length;pe++){var ge=ve[pe];if(ge.code===er.TrailingComma){if(typeof R!="number")continue;ge.severity=R}v(ge)}if(typeof B=="number"){var Ce="Comments are not permitted in JSON.";n.comments.forEach(function(we){v(ba.create(we,Ce,B,er.CommentNotPermitted))})}return p};if(o){var b=o.id||"schemaservice://untitled/"+H0++;return this.jsonSchemaService.resolveSchemaContent(new qs(o),b,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return y(I)})},e}(),H0=0;function Vv(e){if(e&&typeof e=="object"){if(Xi(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Vv(a);if(Xi(o))return o}}}function Uv(e){if(e&&typeof e=="object"){if(Xi(e.allowTrailingCommas))return e.allowTrailingCommas;if(Xi(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Uv(a);if(Xi(o))return o}}}function Wv(e){switch(e){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Hv=48,z0=57,G0=65,Tc=97,$0=102;function Wr(e){return e<Hv?0:e<=z0?e-Hv:(e<Tc&&(e+=Tc-G0),e>=Tc&&e<=$0?e-Tc+10:0)}function K0(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:Wr(e.charCodeAt(1))*17/255,green:Wr(e.charCodeAt(2))*17/255,blue:Wr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Wr(e.charCodeAt(1))*17/255,green:Wr(e.charCodeAt(2))*17/255,blue:Wr(e.charCodeAt(3))*17/255,alpha:Wr(e.charCodeAt(4))*17/255};case 7:return{red:(Wr(e.charCodeAt(1))*16+Wr(e.charCodeAt(2)))/255,green:(Wr(e.charCodeAt(3))*16+Wr(e.charCodeAt(4)))/255,blue:(Wr(e.charCodeAt(5))*16+Wr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Wr(e.charCodeAt(1))*16+Wr(e.charCodeAt(2)))/255,green:(Wr(e.charCodeAt(3))*16+Wr(e.charCodeAt(4)))/255,blue:(Wr(e.charCodeAt(5))*16+Wr(e.charCodeAt(6)))/255,alpha:(Wr(e.charCodeAt(7))*16+Wr(e.charCodeAt(8)))/255}}return null}function P1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Y0=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var o=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"||ap(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,B=I.properties;R<B.length;R++){var $=B[R];if($.keyNode.value==="key"&&$.valueNode){var te=Xs.create(r.uri,qa(r,I));if(v.push({name:_a($.valueNode),kind:Qi.Function,location:te}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var q=function(ie,pe,ve){return p>=0&&(pe.type==="array"?pe.items.forEach(function(ge){return q(ie,ge,ve)}):pe.type==="object"&&pe.properties.forEach(function(ge){if(p>=0){var Ce=ge.valueNode;if(Ce){p--;var we=Xs.create(r.uri,qa(r,ge)),xe=ve?ve+"."+ge.keyNode.value:ge.keyNode.value;ie.push({name:o.getKeyLabel(ge),kind:o.getSymbolKind(Ce.type),location:we,containerName:ve}),q(ie,Ce,xe)}}})),ie},se=q([],c,void 0);return p<0&&(se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),se},e.prototype.findDocumentSymbols2=function(r,n,a){var o=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"||ap(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,B=I.properties;R<B.length;R++){var $=B[R];if($.keyNode.value==="key"&&$.valueNode){var te=qa(r,I),q=qa(r,$.keyNode);if(v.push({name:_a($.valueNode),kind:Qi.Function,range:te,selectionRange:q}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var se=function(pe,ve){return p>=0&&(ve.type==="array"?ve.items.forEach(function(ge,Ce){if(ge&&p>=0){p--;var we=qa(r,ge),xe=we,Ae=String(Ce),Fe=se([],ge);pe.push({name:Ae,kind:o.getSymbolKind(ge.type),range:we,selectionRange:xe,children:Fe})}}):ve.type==="object"&&ve.properties.forEach(function(ge){var Ce=ge.valueNode;if(Ce&&p>=0){p--;var we=qa(r,ge),xe=qa(r,ge.keyNode),Ae=se([],Ce);pe.push({name:o.getKeyLabel(ge),kind:o.getSymbolKind(Ce.type),range:we,selectionRange:xe,children:Ae})}})),pe},ie=se([],c);return p<0&&(ie.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ie},e.prototype.getSymbolKind=function(r){switch(r){case"object":return Qi.Module;case"string":return Qi.String;case"number":return Qi.Number;case"array":return Qi.Array;case"boolean":return Qi.Boolean;default:return Qi.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(o){var c=[];if(o)for(var p=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(o.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 B=K0(_a(I.node));if(B){var $=qa(r,I.node);c.push({color:B,range:$})}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,o){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:vi.replace(o,JSON.stringify(b))}),c},e}();function qa(e,r){return ar.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var J0={schemaAssociations:{},schemas:{}};function X0(e,r){var n=[],a=[],o=[],c=-1,p=Js(e.getText(),!1),m=p.scan();function v(Fe){n.push(Fe),a.push(o.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"};o.push(b);break}case 2:case 4:{var I=m===2?"object":"array";if(o.length>0&&o[o.length-1].kind===I){var b=o.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,B=e.positionAt(p.getTokenOffset()+p.getTokenLength()).line;p.getTokenError()===1&&y+1<e.lineCount?p.setPosition(e.offsetAt(hi.create(y+1,0))):y<B&&(v({startLine:y,endLine:B,kind:Eu.Comment}),c=y);break}case 12:{var $=e.getText().substr(p.getTokenOffset(),p.getTokenLength()),te=$.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(te){var R=e.positionAt(p.getTokenOffset()).line;if(te[1]){var b={startLine:R,endLine:R,kind:Eu.Region};o.push(b)}else{for(var q=o.length-1;q>=0&&o[q].kind!==Eu.Region;)q--;if(q>=0){var b=o[q];o.length=q,R>b.startLine&&c!==b.startLine&&(b.endLine=R,v(b),c=b.startLine)}}}break}}m=p.scan()}var se=r&&r.rangeLimit;if(typeof se!="number"||n.length<=se)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ie=[],pe=0,ve=a;pe<ve.length;pe++){var ge=ve[pe];ge<30&&(ie[ge]=(ie[ge]||0)+1)}for(var Ce=0,we=0,q=0;q<ie.length;q++){var xe=ie[q];if(xe){if(xe+Ce>se){we=q;break}Ce+=xe}}for(var Ae=[],q=0;q<n.length;q++){var ge=a[q];typeof ge=="number"&&(ge<we||ge===we&&Ce++<se)&&Ae.push(n[q])}return Ae}function Q0(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(o(I,R)),b.push(o(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":b.push(o(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(o(y.offset,B))}y=y.parent}for(var $=void 0,te=b.length-1;te>=0;te--)$=Ac.create(b[te],$);return $||($=Ac.create(ar.create(m,m))),$}function o(m,v){return ar.create(e.positionAt(m),e.positionAt(v))}var c=Js(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 Z0(e){var r=e.promiseConstructor||Promise,n=new U0(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(J0);var a=new A0(n,e.contributions,r,e.clientCapabilities),o=new C0(n,e.contributions,r),c=new Y0(n),p=new W0(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 y0(m,{collectComments:!0})},newJSONDocument:function(m,v){return m0(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:o.doHover.bind(o),getFoldingRanges:X0,getSelectionRanges:Q0,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 B={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
|
|
272
|
-
`};return
|
|
273
|
-
`)>-1){const
|
|
274
|
-
`+v(
|
|
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
279
|
.cm-s-material.CodeMirror {
|
|
276
280
|
background-color: var(--panel-samples-controls-background-color)!important;
|
|
277
281
|
color: var(--text-color-inverse)!important;
|
|
@@ -319,7 +323,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.i
|
|
|
319
323
|
flex: 1;
|
|
320
324
|
border-radius: var(--panel-border-radius);
|
|
321
325
|
}
|
|
322
|
-
`,
|
|
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`
|
|
323
327
|
display: flex;
|
|
324
328
|
width: 100%;
|
|
325
329
|
align-items: center;
|
|
@@ -340,12 +344,12 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.i
|
|
|
340
344
|
color: #fff;
|
|
341
345
|
}
|
|
342
346
|
}
|
|
343
|
-
`,
|
|
347
|
+
`,yb=Qt.ZP.span`
|
|
344
348
|
background: transparent;
|
|
345
349
|
border: none;
|
|
346
350
|
cursor: pointer;
|
|
347
351
|
position: relative;
|
|
348
|
-
`;var
|
|
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`
|
|
349
353
|
position: relative;
|
|
350
354
|
height: 4px;
|
|
351
355
|
display: block;
|
|
@@ -447,19 +451,19 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.i
|
|
|
447
451
|
right: -8%;
|
|
448
452
|
}
|
|
449
453
|
}
|
|
450
|
-
`,
|
|
454
|
+
`,Qv=()=>L.createElement(Ib,null,L.createElement("div",{className:"indeterminate"})),Fb=Qt.ZP.div`
|
|
451
455
|
font-family: var(--font-family-monospaced);
|
|
452
456
|
margin-top: 10px;
|
|
453
457
|
line-height: 1;
|
|
454
458
|
padding-left: 10px;
|
|
455
459
|
border-left: 1px solid gray;
|
|
456
|
-
`,
|
|
460
|
+
`,kb=Qt.ZP.div`
|
|
457
461
|
margin-bottom: 15px;
|
|
458
|
-
`,
|
|
462
|
+
`,Rb=Qt.ZP.div`
|
|
459
463
|
padding: 8px 0 20px;
|
|
460
|
-
`,
|
|
464
|
+
`,Mb=Qt.ZP.div`
|
|
461
465
|
padding: 4px 0;
|
|
462
|
-
`;var
|
|
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`
|
|
463
467
|
cursor: pointer;
|
|
464
468
|
margin-left: 0;
|
|
465
469
|
margin-right: 5px;
|
|
@@ -468,7 +472,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.i
|
|
|
468
472
|
align-self: baseline;
|
|
469
473
|
margin-top: 0;
|
|
470
474
|
margin-bottom: 0;
|
|
471
|
-
`,
|
|
475
|
+
`,Hb=Qt.ZP.label`
|
|
472
476
|
display: inline-block;
|
|
473
477
|
cursor: pointer;
|
|
474
478
|
vertical-align: middle;
|
|
@@ -478,7 +482,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.i
|
|
|
478
482
|
|
|
479
483
|
overflow-wrap: break-word;
|
|
480
484
|
line-height: 20px;
|
|
481
|
-
`,
|
|
485
|
+
`,zb=Qt.ZP.div`
|
|
482
486
|
width: ${({fullWidth:e})=>e?"100%":"50%"};
|
|
483
487
|
display: inline-flex;
|
|
484
488
|
align-items: center;
|
|
@@ -492,16 +496,12 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.i
|
|
|
492
496
|
margin-top: 5px;
|
|
493
497
|
}
|
|
494
498
|
`}
|
|
495
|
-
`;function
|
|
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)`
|
|
496
500
|
opacity: 1;
|
|
497
501
|
text-align: left;
|
|
498
|
-
`,
|
|
502
|
+
`,Jb=(0,Qt.ZP)(Bt.SamplesControlButton)`
|
|
499
503
|
float: right;
|
|
500
|
-
`;function Zv(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,St.YQ)(`auth.${n}.scopes`))}catch(o){}return!r||!r.length?M.createElement(M.Fragment,null):M.createElement(pt.NI,null,M.createElement(pt.lX,null," Scopes: "),M.createElement(Hb,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const $b=({token:e,loading:r,error:n})=>r?M.createElement(pt.GE,null,"Please, finish your authorization flow or cancel authorization."):n?M.createElement(Ob,null,M.createElement(pt.Xq,null,n)):e!=null&&e.access_token?null:M.createElement(pt.GE,null," No Access Token. Please, Authorize. ");var Kb=Object.defineProperty,Yb=Object.defineProperties,Jb=Object.getOwnPropertyDescriptors,_v=Object.getOwnPropertySymbols,Xb=Object.prototype.hasOwnProperty,Qb=Object.prototype.propertyIsEnumerable,qv=(e,r,n)=>r in e?Kb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Pc=(e,r)=>{for(var n in r||(r={}))Xb.call(r,n)&&qv(e,n,r[n]);if(_v)for(var n of _v(r))Qb.call(r,n)&&qv(e,n,r[n]);return e},up=(e,r)=>Yb(e,Jb(r)),Zb=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function _b(e){if(!e)return"Field is required"}const Ic=({usePkce:e,form:r,id:n,formApi:a,flow:o,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:m,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:R})=>{var B,$,te,q;const{oAuth2RedirectURI:se,routingBasePath:ie}=(0,M.useContext)(ec.jI),[pe,ve]=(0,M.useState)(null),[ge,Ce]=(0,M.useState)(!1),[we,xe]=(0,M.useState)(!1),[Ae,Fe]=(0,M.useState)(void 0),[Le,We]=(0,M.useState)(void 0),[Ke,At]=(0,M.useState)(void 0),qe=(($=(B=r.values)==null?void 0:B.auth)==null?void 0:$[n])||{},_t=((q=(te=r.errors)==null?void 0:te.auth)==null?void 0:q[n])||{},sr=Ae!==void 0&&Le!==Ke?{label:"sync",onClick:()=>{Ae&&We(Ke)}}:void 0;(0,M.useEffect)(()=>{if(e){const Gt=(0,Qa.CY)(43);uh(Gt).then(Yt=>{Fe(Gt),We(Yt),At(Yt)})}},[e]);const Ut=Gt=>{if(!Gt||(a.validate(),!(0,Qa.Qr)(_t)))return;Ce(!0),ve(null);const Yt=p?p+(0,It.jg)(Gt):Gt,Xr=p&&c?p+(0,It.jg)(c):c,Bn=a.getValue(`auth.${n}.scopes`),gi={authorizationUrl:Yt.startsWith("http")?Yt:v+Yt,clientId:qe.client_id,scopes:Bn,redirectUri:se,routingBasePath:ie,successCallback:Dr=>{a.setValue(`auth.${n}.token`,Dr),Ce(!1),ve(null)},errorCallback:Dr=>{Ce(!1),ve((Dr==null?void 0:Dr.message)||"Failed to retrieve the access token")}};if(o==="implicit"&&Di.authorizeImplicit(gi),!(0,It.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}o==="authorizationCode"&&Di.authorizeAuthorizationCode(Pc(up(Pc({},gi),{tokenUrl:Xr!=null&&Xr.startsWith("http")?Xr:v+Xr,clientSecret:qe.client_secret,extraHeaders:(0,It.Or)({authMethod:m,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:Ae,codeChallenge:Le}))},lr=()=>{ur(),ve(null)},Kt=()=>{Ce(!1),ve(null),Di.clearRedirectData(o)},ur=()=>{a.setValue(`auth.${n}.token`,"")},xr=()=>{xe(Gt=>!Gt)},zt=Gt=>Zb(void 0,[Gt],function*({target:{value:Yt}}){const Xr=yield uh(Yt);Fe(Yt),At(Xr)});if(!b)return M.createElement(pt.Xq,null,"No flow info");let ct=(0,St.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);ct=ct?JSON.parse(ct):"";const Et=(0,St.Al)(n,"client_id"),Jt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),initValue:(0,St.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:_b,validateOnBlur:!0,validateOnChange:!0};return M.createElement("div",null,M.createElement(pt.n5,null,M.createElement(pt.NI,null,M.createElement(pt.lX,null," Client ID: "),Et?M.createElement(Su,up(Pc({},Jt),{options:Et})):M.createElement(Mn,up(Pc({},Jt),{"data-cy":"client-id-input",panel:"try-it"}))),o==="authorizationCode"&&M.createElement(M.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Client Secret:"),M.createElement(Mn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,St.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(Pb,null,M.createElement(Qv,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:we,onChange:xr,"data-cy":"pkce-options-toggle"}),we&&M.createElement(Ib,null,M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Code Verifier"),M.createElement(xu,{fullWidth:!0,value:Ae,onChange:zt,panel:"try-it","data-cy":"code-verifier-input"})),M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Code Challenge"),M.createElement(xu,{fullWidth:!0,value:Le,onChange:({target:{value:Gt}})=>{We(Gt)},inputActionButton:sr,panel:"try-it","data-cy":"code-challenge-input"}))))),M.createElement(Mn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:ct,panel:"try-it"}),M.createElement(Zv,{id:n,scopes:y}),qe.token&&qe.token.access_token?M.createElement(pt.NI,null,M.createElement(pt.lX,null," Access Token: "),M.createElement(xu,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),M.createElement(Tb,null,qe.token&&qe.token.access_token?M.createElement(Dt.Button,{fullWidth:!0,onClick:lr},"Log out"):ge?M.createElement(M.Fragment,null,M.createElement(Dt.Button,{fullWidth:!0,onClick:Kt},"Cancel"),M.createElement(Yv,null)):M.createElement(Dt.Button,{fullWidth:!0,disabled:!(0,Qa.Qr)(_t),onClick:()=>{Ut(b)}},"Authorize")),ge||pe||!qe.token||!qe.token.access_token&&M.createElement($b,{loading:ge,error:pe,token:qe.token}))};var qb=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function ex(e){var r,n;const{scheme:a,defaultValues:o}=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=R=>qb(this,null,function*(){b(!0),v("");try{const B=yield Cb(R);p(B)}catch(B){v(B.message)}b(!1)});return y?M.createElement(tx,null):m?M.createElement(eg,{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(Ic,{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:o})):(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(Ic,{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:o})):M.createElement("div",null,"Unsupported flow")))}function tx(){return M.createElement("div",null,M.createElement("div",null,M.createElement("div",null,"Fetching OpenID Connect metadata..."),M.createElement(Yv,null)))}function eg({message:e}){return M.createElement("div",null,M.createElement("div",null,M.createElement(pt.Xq,null,e)))}var rx=Object.defineProperty,nx=Object.defineProperties,ix=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,ox=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?rx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ng=(e,r)=>{for(var n in r||(r={}))ax.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))ox.call(r,n)&&rg(e,n,r[n]);return e},ig=(e,r)=>nx(e,ix(r)),sx=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function lx(e){if(!e)return"Token is required"}const ux=({form:e,id:r,formApi:n,server:a,flow:o,authCorsProxyUrl:c,defaultValues:p,clientId:m})=>{var v,y,b,I;const[R,B]=(0,M.useState)(""),[$,te]=(0,M.useState)(!1),[q,se]=(0,M.useState)(!0),ie=((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,St.WW)(`auth.${r}.token`,"")},ge=()=>{se(Le=>!Le)},Ce=()=>sx(void 0,null,function*(){if($)return;const Le=c&&o.tokenUrl?c+(0,It.jg)(o.tokenUrl):o.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const We=ie.client_id,Ke=ie.client_secret;if(!We||!Ke){console.log("Provide client_id and client_secret");return}te(!0);const At=o["x-tokenEndpointAuthMethod"];if(!(0,It.xl)(At)){console.log(`Unsupported token endpoint auth method: ${At}`);return}yield Di.authorizeClientCredentials({tokenUrl:Le.startsWith("http")?Le:a+Le,clientId:We,clientSecret:Ke,scopes:ie.scopes,extraHeaders:(0,It.Or)({authMethod:At,clientId:We,clientSecret:Ke}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),te(!1)},errorCallback:qe=>{ve(),B(qe.message),te(!1)}})}),we=Object.keys(o.scopes);let xe=(0,St.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);xe=xe?JSON.parse(xe):"";const Ae=(0,St.Al)(r,"client_id"),Fe={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),initValue:(0,St.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(pt.n5,null,M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Client ID:"),Ae?M.createElement(Su,ig(ng({},Fe),{options:Ae})):M.createElement(Mn,ig(ng({},Fe),{type:"password",panel:"try-it"}))),M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Client Secret:"),M.createElement(Mn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,St.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),M.createElement(Mn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:xe,validate:lx}),M.createElement(Zv,{id:r,scopes:we})),M.createElement(Dt.Button,{color:"primary",onClick:Ce,blinking:$},$?"Loading...":"Request Token"),M.createElement(pt.ph,null," Access Token "),R?M.createElement(pt.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",M.createElement("pre",null,R)," "):ie.token&&ie.token.access_token?M.createElement(pt.TR,null,M.createElement(pt.WA,{length:ie.token.access_token.length,masked:q},ie.token.access_token),M.createElement(pt.lf,{onClick:ge},q?"Show":"Hide"," "),M.createElement(pt.h,{onClick:ve}," Clear ")):M.createElement(pt.Xq,{style:{marginBottom:"1em"}},"No token"))};var fx=Object.defineProperty,cx=Object.defineProperties,dx=Object.getOwnPropertyDescriptors,ag=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,og=(e,r,n)=>r in e?fx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tl=(e,r)=>{for(var n in r||(r={}))px.call(r,n)&&og(e,n,r[n]);if(ag)for(var n of ag(r))hx.call(r,n)&&og(e,n,r[n]);return e},rl=(e,r)=>cx(e,dx(r));const vx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:o,formApi:c})=>{const[p,m]=(0,M.useState)(0);(0,M.useEffect)(()=>{const R=r.security.map(te=>te.schemes.map(q=>q.id).join(" and ")),B=(0,St.YQ)("securityRequirementName"),$=R.findIndex(te=>te===B);m($<0?0:$)},[r]);const v=R=>{m(R.idx),(0,St.WW)("securityRequirementName",R.value)},y=r.security,I=y.map(R=>R.schemes.map(B=>B.id).join(" and ")).filter(Boolean).map((R,B)=>({value:R,idx:B}));return I.length===0?M.createElement(eg,{message:"Cannot find security schema in the definition"}):M.createElement(M.Fragment,null,M.createElement(pt.n5,null,I.length>1&&M.createElement(pt.NI,null,M.createElement(pt.lX,null," Security scheme: "),M.createElement(nn.VD,{variant:"dark",fullWidth:!0,options:I,value:I[p].value,onChange:v}))||null,y[p].schemes.map(R=>{var B,$,te,q,se,ie,pe;const ve=(0,St.A8)(R.id);if(R.type==="apiKey"){const ge=(0,St.Al)(ve,""),Ce={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,It.NG)(R)||(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,It.NG)(R)||(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:It.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(pt.NI,{key:ve},M.createElement(pt.lX,null," ",R.name,": "),ge?M.createElement(Su,rl(tl({},Ce),{options:ge})):M.createElement(Mn,rl(tl({},Ce),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(R.type==="http"){if(R.scheme==="basic"){const ge=(0,St.Al)(ve,"username"),Ce={field:`auth.${ve}.username`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${ve}.username`)||((B=e==null?void 0:e[ve])==null?void 0:B.username),initValue:(0,St.YQ)(`auth.${ve}.username`)||(($=e==null?void 0:e[ve])==null?void 0:$.username),validate:It.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:ve},M.createElement(pt.NI,null,M.createElement(pt.lX,null," ",(0,bu.l)("tryItAuthBasicUsername"),": "),ge?M.createElement(Su,rl(tl({},Ce),{options:ge})):M.createElement(Mn,rl(tl({},Ce),{panel:"try-it"}))),M.createElement(pt.NI,null,M.createElement(pt.lX,null," ",(0,bu.l)("tryItAuthBasicPassword"),": "),M.createElement(Mn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ve}.password`,initialValue:(0,St.YQ)(`auth.${ve}.password`)||((te=e==null?void 0:e[ve])==null?void 0:te.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.scheme==="bearer"){const ge=(0,St.Al)(ve,""),Ce={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:It.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:ve},M.createElement(pt.NI,null,M.createElement(pt.lX,null," Bearer Token: "),ge?M.createElement(Su,rl(tl({},Ce),{options:ge})):M.createElement(Mn,rl(tl({},Ce),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(R.type==="oauth2"&&R.flows&&R.flows.clientCredentials)return M.createElement(ux,{key:ve,flow:R.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:ve,form:o,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 M.createElement(Ic,{key:ve,authorizationUrl:R.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((se=(q=R==null?void 0:R.flows)==null?void 0:q.implicit)==null?void 0:se.scopes)||{}),server:n,id:ve,form:o,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 M.createElement(Ic,{key:ve,authorizationUrl:R.flows.authorizationCode.authorizationUrl,tokenUrl:R.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((ie=R.flows.authorizationCode)==null?void 0:ie.scopes)||{}),server:n,id:ve,form:o,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 ge=(0,St.YQ)(`auth.${ve}.token`)||JSON.stringify((pe=e==null?void 0:e[ve])==null?void 0:pe.token);return ge=ge?JSON.parse(ge):{},M.createElement(M.Fragment,{key:ve},M.createElement(pt.NI,null,M.createElement(pt.lX,null," Access Token Type: "),M.createElement(Mn,{fullWidth:!0,field:`auth.${ve}.token.token_type`,initialValue:ge.token_type||"Bearer",panel:"try-it"})),M.createElement(pt.NI,null,M.createElement(pt.lX,null," Access Token: "),M.createElement(Mn,{type:"password",fullWidth:!0,field:`auth.${ve}.token.access_token`,validate:It.np,initialValue:ge.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.type==="openIdConnect")return M.createElement(ex,{key:ve,server:n,authCorsProxyUrl:a,id:ve,form:o,formApi:c,scheme:R,clientId:R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]})}})),M.createElement("small",null,M.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var gx=Object.defineProperty,sg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,lg=(e,r,n)=>r in e?gx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bx=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&lg(e,n,r[n]);if(sg)for(var n of sg(r))yx.call(r,n)&&lg(e,n,r[n]);return e};const xx=({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:o,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:B}=(0,M.useContext)(ec.jI),$=o&&St.IB.get(o,e.pointer);let te=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!te||!a.values.auth[te])&&(te=void 0),te&&(a.values.auth[te].token!==void 0||a.values.auth[te].client_id!==void 0||a.values.auth[te].client_secret!==void 0)&&(!a.values.auth[te].token||!a.values.auth[te].token.access_token)&&(te=void 0),te&&a.values.auth[te].username!=null&&(!a.values.auth[te].username||!a.values.auth[te].password)&&(te=void 0);const q=e.parameters||[];return!o&&M.createElement(M.Fragment,null,"Loading...")||M.createElement(Jm,{onChange:v,getApi:m,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},M.createElement(Ty,{operation:e,onChange:y}),M.createElement(Ir.UQ,{initialActiveIdx:e.security.length&&te?1:0},e.security.length&&p&&M.createElement(zd,{header:(0,bu.l)("tryItAuth"),"data-cy":"security-trigger",error:!te&&!!b.auth,success:!!te,renderChildrenHidden:!0},R!=null&&R.ReplaceTryItSecurityPanel?M.createElement(Sx,{field:"auth",validate:It.np},se=>M.createElement(cb.Q,{Hook:R==null?void 0:R.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:se,OAuth2:Di}})):M.createElement(vx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:B,securityDefaults:n}))||null,e.requestBody&&p&&M.createElement(zd,{header:(0,bu.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},M.createElement(fb,{validate:wx,formApi:p,body:e.requestBody,id:e.id,resolvedBody:$==null?void 0:$.requestBody,properties:r}))||null,q.length&&M.createElement(zd,{header:(0,bu.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},M.createElement(wb,{operation:e,values:a.values,errors:a.errors||{}}))||null))};function Sx(e){const{fieldApi:r,render:n,userProps:a}=mu(bx({},e)),{setValue:o}=r,{children:c}=a;return n(M.createElement(M.Fragment,null,c(o)))}function wx(){}const Ax=(0,A.Pi)(xx);var ug=s(39448);const Cx=e=>{const{shaking:r,className:n,children:a,rootElement:o}=e,[c]=(0,ug.B)(o),p=(0,M.useContext)(ec.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)},Ex=(0,A.Pi)(Cx);var Ox=Object.defineProperty,Tx=Object.defineProperties,Px=Object.getOwnPropertyDescriptors,kc=Object.getOwnPropertySymbols,fg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable,dg=(e,r,n)=>r in e?Ox(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,on=(e,r)=>{for(var n in r||(r={}))fg.call(r,n)&&dg(e,n,r[n]);if(kc)for(var n of kc(r))cg.call(r,n)&&dg(e,n,r[n]);return e},qn=(e,r)=>Tx(e,Px(r)),pg=(e,r)=>{var n={};for(var a in e)fg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&kc)for(var a of kc(e))r.indexOf(a)<0&&cg.call(e,a)&&(n[a]=e[a]);return n},hg=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function vg(e){return e.startsWith("//")?"https:"+e:e}const gg=({operation:e,store:r,onResponse:n,className:a,rootElement:o,properties:c,securityDefaults:p,onClose:m})=>{let v=(0,M.useRef)();const[y,b]=(0,M.useState)(e.activeServer),[I,R]=(0,M.useState)(0),[B,$]=(0,M.useState)(!1),[te,q]=(0,M.useState)(!1),[se,ie]=(0,M.useState)({values:{path:(0,It.ZS)(e.parameters,"path"),cookie:(0,It.ZS)(e.parameters,"cookie"),header:(0,It.ZS)(e.parameters,"header"),query:(0,It.ZS)(e.parameters,"query")}}),[pe,ve]=(0,M.useState)(),[ge,Ce]=(0,M.useState)(),[we,xe]=(0,M.useState)(),[Ae,Fe]=(0,M.useState)(),Le=(0,ug.D)(e),We=(Ut,lr=Ut.getState())=>{var Kt=lr,{values:ur}=Kt,xr=pg(Kt,["values"]);v.current=Ut,setTimeout(()=>{ie(qn(on({},xr),{values:qn(on({},ur),{query:(0,It.FU)(ur.query||{})})}))},0)},Ke=(0,M.useCallback)(Ut=>{var lr=Ut,{values:Kt}=lr,ur=pg(lr,["values"]);const xr=qn(on({},ur),{values:qn(on({},Kt),{query:(0,It.FU)(Kt.query||{})})});ie(xr),(0,It.Hc)(xr),e.setRequestValues(Kt)},[e]),At=Ut=>{R(Ut)},qe=Ut=>{b(Ut),e.setActiveServer(Ut)},_t=()=>hg(void 0,null,function*(){var Ut,lr,Kt,ur,xr,zt,ct,Et,Jt;const{values:Gt,invalid:Yt}=((Ut=v==null?void 0:v.current)==null?void 0:Ut.getState())||se||{};if((lr=v.current)==null||lr.submitForm(),Yt){q(!0),setTimeout(()=>q(!1),1e3),(ur=(Kt=r==null?void 0:r.options.events)==null?void 0:Kt.tryItSent)==null||ur.call(Kt,{eventType:Yi.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:Xr,requestBody:Bn}=e,gi=Bn&&Bn.content&&Bn.content.active&&Bn.content.active.name||"";let Dr=Gt.body;if(/json/.test(gi))try{Dr=JSON.parse(Dr)}catch(Xt){console.error(Xt)}$(!0);const sn=pe,Ko=(e.httpVerb||"").toLowerCase();if(!Xr)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 Tn=Xr.find(Xt=>y.url.endsWith(Xt.url.endsWith("/")?Xt.url.substring(0,Xt.url.length-1):Xt.url)),Yo=Date.now(),fp=!!window.document.documentMode;let ji,Vi=Gt.auth;if(Gt.auth){const Xt=Object.keys(Gt.auth)[0],wn=(0,St.dw)(Xt);ji=qn(on({},sn),{components:qn(on({},sn==null?void 0:sn.components),{securitySchemes:qn(on({},sn==null?void 0:sn.components.securitySchemes),{[wn]:qn(on({},sn==null?void 0:sn.components.securitySchemes[wn]),{type:(sn==null?void 0:sn.components.securitySchemes[wn].type)==="openIdConnect"?"oauth2":sn==null?void 0:sn.components.securitySchemes[wn].type})})})}),Vi=qn(on({},Vi),{[wn]:Vi[Xt]})}else ji=on({},sn);ji.servers=Xr;const xa=r.options.corsProxyUrl;xa&&Xr.length&&(ji.servers=Xr.map(Xt=>qn(on({},Xt),{url:xa+vg(Xt.url)})),ji.paths=qn(on({},ji.paths),{[e.path]:qn(on({},ji.paths[e.path]),{[Ko]:qn(on({},ji.paths[e.path][Ko]),{servers:void 0}),servers:void 0})}));const nl=((zt=(xr=Bn==null?void 0:Bn.content)==null?void 0:xr.active)==null?void 0:zt.name)||null;if(nl&&Dr&&Rr(nl)){const Xt=Object.values(Dr);Dr=Xt.length>1?Xt:Xt[0]}const Lu={userFetch:fp&&s(96279).fetch,server:xa?xa+vg(Tn.url):Tn.url,serverVariables:Tn.variables,spec:ji,pathName:e.path,method:e.httpVerb,parameters:on(on(on(on({},Gt.path),Gt.query),Gt.header),Gt.cookie),securities:{authorized:Vi},requestBody:Dr,requestContentType:nl,responseContentType:((ct=Gt.header)==null?void 0:ct.Accept)||null,requestInterceptor:(0,It.Tz)(r.options,e,Vi==null?void 0:Vi.Authorization)};try{const Xt=yield xn.execute(Lu),wn=Xt==null?void 0:Xt.data;wn instanceof Blob&&(Rr(wn.type)&&(Xt.fileInfo={rawData:wn,fileName:(0,It.AM)(Xt.headers)}),Xt.data=yield wn.text()),n==null||n({request:Lu,response:Xt}),Fe(Xt),xe(void 0)}catch(Xt){Xt&&Xt.response&&Xt.response.data instanceof Blob&&(Xt.response.data=yield Xt.response.data.text(),n==null||n({request:Lu,response:Xt.response})),Fe(void 0),xe(Xt)}finally{$(!1),R(1),Ce(Date.now()-Yo),(Jt=(Et=r==null?void 0:r.options.events)==null?void 0:Et.tryItSent)==null||Jt.call(Et,{eventType:Yi.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}});(0,Dt.useMount)(()=>hg(void 0,null,function*(){var Ut;const lr=yield r.dereferenceSpecForTryIt(e);ve(lr),(Ut=v.current)==null||Ut.setValues({})})),(0,M.useEffect)(()=>{Le!==e&&(Fe(void 0),xe(void 0),R(0))},[e,Le]);const sr=!!(Ae||we);return M.createElement(Ex,{shaking:te,className:a,rootElement:o},M.createElement(Ir.Hc,null,M.createElement(Dg,{active:I,hasResponse:sr,onChange:At}),m&&M.createElement(nn.PZ,{onClick:m}," \u2715 ")),M.createElement(nn.RE,{hidden:I!==0,"data-cy":"console-request-body"},M.createElement(Ax,{operation:e,properties:c,securityDefaults:p,form:se,resolvedRawSpec:pe,server:y,formApi:v.current,setFormApi:We,handleChange:Ke,handleServerChange:qe})),M.createElement(nn.RE,{hidden:I!==1,"data-cy":"console-response-body"},M.createElement(Mg,{response:Ae,error:we,time:ge}),";"),M.createElement(Ug,{hasResponse:sr,params:se.values,operation:e,loading:B,execute:_t}))},Ix=(0,A.Pi)(gg)},37795:h=>{"use strict";var O="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(A){var E=this;if(typeof E!="function"||d.call(E)!==x)throw new TypeError(O+E);for(var F=s.call(arguments,1),W,Z=function(){if(this instanceof W){var Y=E.apply(this,F.concat(s.call(arguments)));return Object(Y)===Y?Y:this}else return E.apply(A,F.concat(s.call(arguments)))},ee=Math.max(0,E.length-F.length),ue=[],ne=0;ne<ee;ne++)ue.push("$"+ne);if(W=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),E.prototype){var ae=function(){};ae.prototype=E.prototype,W.prototype=new ae,ae.prototype=null}return W}},4090:(h,O,s)=>{"use strict";var d=s(37795);h.exports=Function.prototype.bind||d},67286:(h,O,s)=>{"use strict";var d,x=SyntaxError,w=Function,A=TypeError,E=function(he){try{return w('"use strict"; return ('+he+").constructor;")()}catch(_){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(he){F=null}var W=function(){throw new A},Z=F?function(){try{return arguments.callee,W}catch(he){try{return F(arguments,"callee").get}catch(_){return W}}}():W,ee=s(32636)(),ue=Object.getPrototypeOf||function(he){return he.__proto__},ne={},ae=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":ee?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%":ee?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ee?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"||!ee?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee?ue(""[Symbol.iterator]()):d,"%Symbol%":ee?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":ae,"%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=E("async function () {}");else if(_==="%GeneratorFunction%")Q=E("function* () {}");else if(_==="%AsyncGeneratorFunction%")Q=E("async function* () {}");else if(_==="%AsyncGenerator%"){var H=he("%AsyncGeneratorFunction%");H&&(Q=H.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ye=he("%AsyncGenerator%");ye&&(Q=ue(ye.prototype))}return Y[_]=Q,Q},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"]},N=s(4090),C=s(23198),k=N.call(Function.call,Array.prototype.concat),j=N.call(Function.apply,Array.prototype.splice),J=N.call(Function.call,String.prototype.replace),K=N.call(Function.call,String.prototype.slice),U=N.call(Function.call,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,z=function(_){var Q=K(_,0,1),H=K(_,-1);if(Q==="%"&&H!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(H==="%"&&Q!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ye=[];return J(_,re,function(ke,je,De,nt){ye[ye.length]=De?J(nt,X,"$1"):je||ke}),ye},ce=function(_,Q){var H=_,ye;if(C(G,H)&&(ye=G[H],H="%"+ye[0]+"%"),C(Y,H)){var ke=Y[H];if(ke===ne&&(ke=P(H)),typeof ke=="undefined"&&!Q)throw new A("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ye,name:H,value:ke}}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(U(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var H=z(_),ye=H.length>0?H[0]:"",ke=ce("%"+ye+"%",Q),je=ke.name,De=ke.value,nt=!1,tt=ke.alias;tt&&(ye=tt[0],j(H,k([0,1],tt)));for(var bt=1,Ne=!0;bt<H.length;bt+=1){var Oe=H[bt],He=K(Oe,0,1),Pe=K(Oe,-1);if((He==='"'||He==="'"||He==="`"||Pe==='"'||Pe==="'"||Pe==="`")&&He!==Pe)throw new x("property names with quotes must have matching quotes");if((Oe==="constructor"||!Ne)&&(nt=!0),ye+="."+Oe,je="%"+ye+"%",C(Y,je))De=Y[je];else if(De!=null){if(!(Oe in De)){if(!Q)throw new A("base intrinsic for "+_+" exists, but the property is not available.");return}if(F&&bt+1>=H.length){var Te=F(De,Oe);Ne=!!Te,Ne&&"get"in Te&&!("originalValue"in Te.get)?De=Te.get:De=De[Oe]}else Ne=C(De,Oe),De=De[Oe];Ne&&!nt&&(Y[je]=De)}}return De}},32636:(h,O,s)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=s(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 s={},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;s[d]=w;for(d in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var A=Object.getOwnPropertySymbols(s);if(A.length!==1||A[0]!==d||!Object.prototype.propertyIsEnumerable.call(s,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(s,d);if(E.value!==w||E.enumerable!==!0)return!1}return!0}},23198:(h,O,s)=>{"use strict";var d=s(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,O,s)=>{var d=s(52118),x=s(96909),w=s(98138),A=s(4174),E=s(7942);function F(W){var Z=-1,ee=W==null?0:W.length;for(this.clear();++Z<ee;){var ue=W[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=A,F.prototype.set=E,h.exports=F},80235:(h,O,s)=>{var d=s(3945),x=s(21846),w=s(88028),A=s(72344),E=s(94769);function F(W){var Z=-1,ee=W==null?0:W.length;for(this.clear();++Z<ee;){var ue=W[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=A,F.prototype.set=E,h.exports=F},10326:(h,O,s)=>{var d=s(38761),x=s(37772),w=d(x,"Map");h.exports=w},96738:(h,O,s)=>{var d=s(92411),x=s(36417),w=s(86928),A=s(79493),E=s(24150);function F(W){var Z=-1,ee=W==null?0:W.length;for(this.clear();++Z<ee;){var ue=W[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=A,F.prototype.set=E,h.exports=F},50857:(h,O,s)=>{var d=s(37772),x=d.Symbol;h.exports=x},50343:h=>{function O(s,d){for(var x=-1,w=s==null?0:s.length,A=Array(w);++x<w;)A[x]=d(s[x],x,s);return A}h.exports=O},22218:(h,O,s)=>{var d=s(41225);function x(w,A){for(var E=w.length;E--;)if(d(w[E][0],A))return E;return-1}h.exports=x},13324:(h,O,s)=>{var d=s(17297),x=s(33812);function w(A,E){E=d(E,A);for(var F=0,W=E.length;A!=null&&F<W;)A=A[x(E[F++])];return F&&F==W?A:void 0}h.exports=w},53366:(h,O,s)=>{var d=s(50857),x=s(62107),w=s(37157),A="[object Null]",E="[object Undefined]",F=d?d.toStringTag:void 0;function W(Z){return Z==null?Z===void 0?E:A:F&&F in Object(Z)?x(Z):w(Z)}h.exports=W},6840:(h,O,s)=>{var d=s(61049),x=s(47394),w=s(29259),A=s(87035),E=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,W=Function.prototype,Z=Object.prototype,ee=W.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+ee.call(ue).replace(E,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ae(Y){if(!w(Y)||x(Y))return!1;var P=d(Y)?ne:F;return P.test(A(Y))}h.exports=ae},1054:(h,O,s)=>{var d=s(50857),x=s(50343),w=s(86152),A=s(4795),E=1/0,F=d?d.prototype:void 0,W=F?F.toString:void 0;function Z(ee){if(typeof ee=="string")return ee;if(w(ee))return x(ee,Z)+"";if(A(ee))return W?W.call(ee):"";var ue=ee+"";return ue=="0"&&1/ee==-E?"-0":ue}h.exports=Z},17297:(h,O,s)=>{var d=s(86152),x=s(21401),w=s(54452),A=s(66188);function E(F,W){return d(F)?F:x(F,W)?[F]:w(A(F))}h.exports=E},24019:(h,O,s)=>{var d=s(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,O,s)=>{var d=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;h.exports=d},27937:(h,O,s)=>{var d=s(98304);function x(w,A){var E=w.__data__;return d(A)?E[typeof A=="string"?"string":"hash"]:E.map}h.exports=x},38761:(h,O,s)=>{var d=s(6840),x=s(98109);function w(A,E){var F=x(A,E);return d(F)?F:void 0}h.exports=w},62107:(h,O,s)=>{var d=s(50857),x=Object.prototype,w=x.hasOwnProperty,A=x.toString,E=d?d.toStringTag:void 0;function F(W){var Z=w.call(W,E),ee=W[E];try{W[E]=void 0;var ue=!0}catch(ae){}var ne=A.call(W);return ue&&(Z?W[E]=ee:delete W[E]),ne}h.exports=F},98109:h=>{function O(s,d){return s==null?void 0:s[d]}h.exports=O},52118:(h,O,s)=>{var d=s(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function O(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}h.exports=O},98138:(h,O,s)=>{var d=s(99191),x="__lodash_hash_undefined__",w=Object.prototype,A=w.hasOwnProperty;function E(F){var W=this.__data__;if(d){var Z=W[F];return Z===x?void 0:Z}return A.call(W,F)?W[F]:void 0}h.exports=E},4174:(h,O,s)=>{var d=s(99191),x=Object.prototype,w=x.hasOwnProperty;function A(E){var F=this.__data__;return d?F[E]!==void 0:w.call(F,E)}h.exports=A},7942:(h,O,s)=>{var d=s(99191),x="__lodash_hash_undefined__";function w(A,E){var F=this.__data__;return this.size+=this.has(A)?0:1,F[A]=d&&E===void 0?x:E,this}h.exports=w},21401:(h,O,s)=>{var d=s(86152),x=s(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;function E(F,W){if(d(F))return!1;var Z=typeof F;return Z=="number"||Z=="symbol"||Z=="boolean"||F==null||x(F)?!0:A.test(F)||!w.test(F)||W!=null&&F in Object(W)}h.exports=E},98304:h=>{function O(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}h.exports=O},47394:(h,O,s)=>{var d=s(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 O(){this.__data__=[],this.size=0}h.exports=O},21846:(h,O,s)=>{var d=s(22218),x=Array.prototype,w=x.splice;function A(E){var F=this.__data__,W=d(F,E);if(W<0)return!1;var Z=F.length-1;return W==Z?F.pop():w.call(F,W,1),--this.size,!0}h.exports=A},88028:(h,O,s)=>{var d=s(22218);function x(w){var A=this.__data__,E=d(A,w);return E<0?void 0:A[E][1]}h.exports=x},72344:(h,O,s)=>{var d=s(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,O,s)=>{var d=s(22218);function x(w,A){var E=this.__data__,F=d(E,w);return F<0?(++this.size,E.push([w,A])):E[F][1]=A,this}h.exports=x},92411:(h,O,s)=>{var d=s(89612),x=s(80235),w=s(10326);function A(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=A},36417:(h,O,s)=>{var d=s(27937);function x(w){var A=d(this,w).delete(w);return this.size-=A?1:0,A}h.exports=x},86928:(h,O,s)=>{var d=s(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,O,s)=>{var d=s(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,O,s)=>{var d=s(27937);function x(w,A){var E=d(this,w),F=E.size;return E.set(w,A),this.size+=E.size==F?0:1,this}h.exports=x},77777:(h,O,s)=>{var d=s(30733),x=500;function w(A){var E=d(A,function(W){return F.size===x&&F.clear(),W}),F=E.cache;return E}h.exports=w},99191:(h,O,s)=>{var d=s(38761),x=d(Object,"create");h.exports=x},37157:h=>{var O=Object.prototype,s=O.toString;function d(x){return s.call(x)}h.exports=d},37772:(h,O,s)=>{var d=s(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,O,s)=>{var d=s(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,A=d(function(E){var F=[];return E.charCodeAt(0)===46&&F.push(""),E.replace(x,function(W,Z,ee,ue){F.push(ee?ue.replace(w,"$1"):Z||W)}),F});h.exports=A},33812:(h,O,s)=>{var d=s(4795),x=1/0;function w(A){if(typeof A=="string"||d(A))return A;var E=A+"";return E=="0"&&1/A==-x?"-0":E}h.exports=w},87035:h=>{var O=Function.prototype,s=O.toString;function d(x){if(x!=null){try{return s.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function O(s,d){return s===d||s!==s&&d!==d}h.exports=O},72579:(h,O,s)=>{var d=s(13324);function x(w,A,E){var F=w==null?void 0:d(w,A);return F===void 0?E:F}h.exports=x},86152:h=>{var O=Array.isArray;h.exports=O},61049:(h,O,s)=>{var d=s(53366),x=s(29259),w="[object AsyncFunction]",A="[object Function]",E="[object GeneratorFunction]",F="[object Proxy]";function W(Z){if(!x(Z))return!1;var ee=d(Z);return ee==A||ee==E||ee==w||ee==F}h.exports=W},29259:h=>{function O(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}h.exports=O},15125:h=>{function O(s){return s!=null&&typeof s=="object"}h.exports=O},4795:(h,O,s)=>{var d=s(53366),x=s(15125),w="[object Symbol]";function A(E){return typeof E=="symbol"||x(E)&&d(E)==w}h.exports=A},30733:(h,O,s)=>{var d=s(96738),x="Expected a function";function w(A,E){if(typeof A!="function"||E!=null&&typeof E!="function")throw new TypeError(x);var F=function(){var W=arguments,Z=E?E.apply(this,W):W[0],ee=F.cache;if(ee.has(Z))return ee.get(Z);var ue=A.apply(this,W);return F.cache=ee.set(Z,ue)||ee,ue};return F.cache=new(w.Cache||d),F}w.Cache=d,h.exports=w},66188:(h,O,s)=>{var d=s(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,O,s)=>{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,E=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&E?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,W=E&&F&&typeof F.get=="function"?F.get:null,Z=E&&Set.prototype.forEach,ee=typeof WeakMap=="function"&&WeakMap.prototype,ue=ee?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,ae=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,P=Y?WeakRef.prototype.deref:null,G=Boolean.prototype.valueOf,N=Object.prototype.toString,C=Function.prototype.toString,k=String.prototype.match,j=String.prototype.slice,J=String.prototype.replace,K=String.prototype.toUpperCase,U=String.prototype.toLowerCase,re=RegExp.prototype.test,X=Array.prototype.concat,z=Array.prototype.join,ce=Array.prototype.slice,he=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Q=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ye=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ye?"object":"symbol")?Symbol.toStringTag:null,je=Object.prototype.propertyIsEnumerable,De=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(fe){return fe.__proto__}:null);function nt(fe,be){if(fe===1/0||fe===-1/0||fe!==fe||fe&&fe>-1e3&&fe<1e3||re.call(/e/,be))return be;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof fe=="number"){var Ve=fe<0?-he(-fe):he(fe);if(Ve!==fe){var lt=String(Ve),vt=j.call(be,lt.length+1);return J.call(lt,Be,"$&_")+"."+J.call(J.call(vt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return J.call(be,Be,"$&_")}var tt=s(53260),bt=tt.custom,Ne=Ft(bt)?bt:null;h.exports=function fe(be,Be,Ve,lt){var vt=Be||{};if(Je(vt,"quoteStyle")&&vt.quoteStyle!=="single"&&vt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Je(vt,"maxStringLength")&&(typeof vt.maxStringLength=="number"?vt.maxStringLength<0&&vt.maxStringLength!==1/0:vt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Mt=Je(vt,"customInspect")?vt.customInspect:!0;if(typeof Mt!="boolean"&&Mt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Je(vt,"indent")&&vt.indent!==null&&vt.indent!==" "&&!(parseInt(vt.indent,10)===vt.indent&&vt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Je(vt,"numericSeparator")&&typeof vt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pr=vt.numericSeparator;if(typeof be=="undefined")return"undefined";if(be===null)return"null";if(typeof be=="boolean")return be?"true":"false";if(typeof be=="string")return gt(be,vt);if(typeof be=="number"){if(be===0)return 1/0/be>0?"0":"-0";var Nt=String(be);return pr?nt(be,Nt):Nt}if(typeof be=="bigint"){var Tr=String(be)+"n";return pr?nt(be,Tr):Tr}var yi=typeof vt.depth=="undefined"?5:vt.depth;if(typeof Ve=="undefined"&&(Ve=0),Ve>=yi&&yi>0&&typeof be=="object")return Pe(be)?"[Array]":"[Object]";var Hr=Tt(vt,Ve);if(typeof lt=="undefined")lt=[];else if(Zr(lt,be)>=0)return"[Circular]";function zr(cn,Pr,ri){if(Pr&&(lt=ce.call(lt),lt.push(Pr)),ri){var In={depth:vt.depth};return Je(vt,"quoteStyle")&&(In.quoteStyle=vt.quoteStyle),fe(cn,In,Ve+1,lt)}return fe(cn,vt,Ve+1,lt)}if(typeof be=="function"&&!Ye(be)){var bi=ze(be),qr=Ue(be,zr);return"[Function"+(bi?": "+bi:" (anonymous)")+"]"+(qr.length>0?" { "+z.call(qr,", ")+" }":"")}if(Ft(be)){var gr=ye?J.call(String(be),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(be);return typeof be=="object"&&!ye?Ot(gr):gr}if(Ze(be)){for(var ei="<"+U.call(String(be.nodeName)),en=be.attributes||[],ti=0;ti<en.length;ti++)ei+=" "+en[ti].name+"="+Oe(He(en[ti].value),"double",vt);return ei+=">",be.childNodes&&be.childNodes.length&&(ei+="..."),ei+="</"+U.call(String(be.nodeName))+">",ei}if(Pe(be)){if(be.length===0)return"[]";var Un=Ue(be,zr);return Hr&&!mt(Un)?"["+st(Un,Hr)+"]":"[ "+z.call(Un,", ")+" ]"}if(at(be)){var xi=Ue(be,zr);return!("cause"in Error.prototype)&&"cause"in be&&!je.call(be,"cause")?"{ ["+String(be)+"] "+z.call(X.call("[cause]: "+zr(be.cause),xi),", ")+" }":xi.length===0?"["+String(be)+"]":"{ ["+String(be)+"] "+z.call(xi,", ")+" }"}if(typeof be=="object"&&Mt){if(Ne&&typeof be[Ne]=="function"&&tt)return tt(be,{depth:yi-Ve});if(Mt!=="symbol"&&typeof be.inspect=="function")return be.inspect()}if(Er(be)){var _i=[];return A.call(be,function(cn,Pr){_i.push(zr(Pr,be,!0)+" => "+zr(cn,be))}),dt("Map",w.call(be),_i,Hr)}if(Or(be)){var gn=[];return Z.call(be,function(cn){gn.push(zr(cn,be))}),dt("Set",W.call(be),gn,Hr)}if(un(be))return kt("WeakMap");if(_r(be))return kt("WeakSet");if(tr(be))return kt("WeakRef");if(rt(be))return Ot(zr(Number(be)));if(ot(be))return Ot(zr(_.call(be)));if(it(be))return Ot(G.call(be));if(jt(be))return Ot(zr(String(be)));if(!Te(be)&&!Ye(be)){var fn=Ue(be,zr),An=De?De(be)===Object.prototype:be instanceof Object||be.constructor===Object,Cn=be instanceof Object?"":"null prototype",Pn=!An&&ke&&Object(be)===be&&ke in be?j.call(Ct(be),8,-1):Cn?"Object":"",Sa=An||typeof be.constructor!="function"?"":be.constructor.name?be.constructor.name+" ":"",Wn=Sa+(Pn||Cn?"["+z.call(X.call([],Pn||[],Cn||[]),": ")+"] ":"");return fn.length===0?Wn+"{}":Hr?Wn+"{"+st(fn,Hr)+"}":Wn+"{ "+z.call(fn,", ")+" }"}return String(be)};function Oe(fe,be,Be){var Ve=(Be.quoteStyle||be)==="double"?'"':"'";return Ve+fe+Ve}function He(fe){return J.call(String(fe),/"/g,""")}function Pe(fe){return Ct(fe)==="[object Array]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function Te(fe){return Ct(fe)==="[object Date]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function Ye(fe){return Ct(fe)==="[object RegExp]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function at(fe){return Ct(fe)==="[object Error]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function jt(fe){return Ct(fe)==="[object String]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function rt(fe){return Ct(fe)==="[object Number]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function it(fe){return Ct(fe)==="[object Boolean]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function Ft(fe){if(ye)return fe&&typeof fe=="object"&&fe instanceof Symbol;if(typeof fe=="symbol")return!0;if(!fe||typeof fe!="object"||!H)return!1;try{return H.call(fe),!0}catch(be){}return!1}function ot(fe){if(!fe||typeof fe!="object"||!_)return!1;try{return _.call(fe),!0}catch(be){}return!1}var or=Object.prototype.hasOwnProperty||function(fe){return fe in this};function Je(fe,be){return or.call(fe,be)}function Ct(fe){return N.call(fe)}function ze(fe){if(fe.name)return fe.name;var be=k.call(C.call(fe),/^function\s*([\w$]+)/);return be?be[1]:null}function Zr(fe,be){if(fe.indexOf)return fe.indexOf(be);for(var Be=0,Ve=fe.length;Be<Ve;Be++)if(fe[Be]===be)return Be;return-1}function Er(fe){if(!w||!fe||typeof fe!="object")return!1;try{w.call(fe);try{W.call(fe)}catch(be){return!0}return fe instanceof Map}catch(be){}return!1}function un(fe){if(!ue||!fe||typeof fe!="object")return!1;try{ue.call(fe,ue);try{ae.call(fe,ae)}catch(be){return!0}return fe instanceof WeakMap}catch(be){}return!1}function tr(fe){if(!P||!fe||typeof fe!="object")return!1;try{return P.call(fe),!0}catch(be){}return!1}function Or(fe){if(!W||!fe||typeof fe!="object")return!1;try{W.call(fe);try{w.call(fe)}catch(be){return!0}return fe instanceof Set}catch(be){}return!1}function _r(fe){if(!ae||!fe||typeof fe!="object")return!1;try{ae.call(fe,ae);try{ue.call(fe,ue)}catch(be){return!0}return fe instanceof WeakSet}catch(be){}return!1}function Ze(fe){return!fe||typeof fe!="object"?!1:typeof HTMLElement!="undefined"&&fe instanceof HTMLElement?!0:typeof fe.nodeName=="string"&&typeof fe.getAttribute=="function"}function gt(fe,be){if(fe.length>be.maxStringLength){var Be=fe.length-be.maxStringLength,Ve="... "+Be+" more character"+(Be>1?"s":"");return gt(j.call(fe,0,be.maxStringLength),be)+Ve}var lt=J.call(J.call(fe,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lt);return Oe(lt,"single",be)}function Lt(fe){var be=fe.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[be];return Be?"\\"+Be:"\\x"+(be<16?"0":"")+K.call(be.toString(16))}function Ot(fe){return"Object("+fe+")"}function kt(fe){return fe+" { ? }"}function dt(fe,be,Be,Ve){var lt=Ve?st(Be,Ve):z.call(Be,", ");return fe+" ("+be+") {"+lt+"}"}function mt(fe){for(var be=0;be<fe.length;be++)if(Zr(fe[be],`
|
|
501
|
-
`)>=0)return!1;return!0}function
|
|
502
|
-
`+
|
|
503
|
-
`+be.prev}function Ue(fe,be){var Be=Pe(fe),Ve=[];if(Be){Ve.length=fe.length;for(var lt=0;lt<fe.length;lt++)Ve[lt]=Je(fe,lt)?be(fe[lt],fe):""}var vt=typeof Q=="function"?Q(fe):[],Mt;if(ye){Mt={};for(var pr=0;pr<vt.length;pr++)Mt["$"+vt[pr]]=vt[pr]}for(var Nt in fe)!Je(fe,Nt)||Be&&String(Number(Nt))===Nt&&Nt<fe.length||ye&&Mt["$"+Nt]instanceof Symbol||(re.call(/[^\w$]/,Nt)?Ve.push(be(Nt,fe)+": "+be(fe[Nt],fe)):Ve.push(Nt+": "+be(fe[Nt],fe)));if(typeof Q=="function")for(var Tr=0;Tr<vt.length;Tr++)je.call(fe,vt[Tr])&&Ve.push("["+be(vt[Tr])+"]: "+be(fe[vt[Tr]],fe));return Ve}},85527:h=>{"use strict";var O=String.prototype.replace,s=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return O.call(x,s,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,O,s)=>{"use strict";var d=s(66845),x=s(29166),w=s(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,O,s)=>{"use strict";var d=s(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},E=function(Y){return Y.replace(/&#(\d+);/g,function(P,G){return String.fromCharCode(parseInt(G,10))})},F=function(Y,P){return Y&&typeof Y=="string"&&P.comma&&Y.indexOf(",")>-1?Y.split(","):Y},W="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",ee=function(P,G){var N={},C=G.ignoreQueryPrefix?P.replace(/^\?/,""):P,k=G.parameterLimit===1/0?void 0:G.parameterLimit,j=C.split(G.delimiter,k),J=-1,K,U=G.charset;if(G.charsetSentinel)for(K=0;K<j.length;++K)j[K].indexOf("utf8=")===0&&(j[K]===Z?U="utf-8":j[K]===W&&(U="iso-8859-1"),J=K,K=j.length);for(K=0;K<j.length;++K)if(K!==J){var re=j[K],X=re.indexOf("]="),z=X===-1?re.indexOf("="):X+1,ce,he;z===-1?(ce=G.decoder(re,A.decoder,U,"key"),he=G.strictNullHandling?null:""):(ce=G.decoder(re.slice(0,z),A.decoder,U,"key"),he=d.maybeMap(F(re.slice(z+1),G),function(_){return G.decoder(_,A.decoder,U,"value")})),he&&G.interpretNumericEntities&&U==="iso-8859-1"&&(he=E(he)),re.indexOf("[]=")>-1&&(he=w(he)?[he]:he),x.call(N,ce)?N[ce]=d.combine(N[ce],he):N[ce]=he}return N},ue=function(Y,P,G,N){for(var C=N?P:F(P,G),k=Y.length-1;k>=0;--k){var j,J=Y[k];if(J==="[]"&&G.parseArrays)j=[].concat(C);else{j=G.plainObjects?Object.create(null):{};var K=J.charAt(0)==="["&&J.charAt(J.length-1)==="]"?J.slice(1,-1):J,U=parseInt(K,10);!G.parseArrays&&K===""?j={0:C}:!isNaN(U)&&J!==K&&String(U)===K&&U>=0&&G.parseArrays&&U<=G.arrayLimit?(j=[],j[U]=C):K!=="__proto__"&&(j[K]=C)}C=j}return C},ne=function(P,G,N,C){if(!!P){var k=N.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,j=/(\[[^[\]]*])/,J=/(\[[^[\]]*])/g,K=N.depth>0&&j.exec(k),U=K?k.slice(0,K.index):k,re=[];if(U){if(!N.plainObjects&&x.call(Object.prototype,U)&&!N.allowPrototypes)return;re.push(U)}for(var X=0;N.depth>0&&(K=J.exec(k))!==null&&X<N.depth;){if(X+=1,!N.plainObjects&&x.call(Object.prototype,K[1].slice(1,-1))&&!N.allowPrototypes)return;re.push(K[1])}return K&&re.push("["+k.slice(K.index)+"]"),ue(re,G,N,C)}},ae=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(Y,P){var G=ae(P);if(Y===""||Y===null||typeof Y=="undefined")return G.plainObjects?Object.create(null):{};for(var N=typeof Y=="string"?ee(Y,G):Y,C=G.plainObjects?Object.create(null):{},k=Object.keys(N),j=0;j<k.length;++j){var J=k[j],K=ne(J,N[J],G,typeof Y=="string");C=d.merge(C,K,G)}return G.allowSparse===!0?C:d.compact(C)}},66845:(h,O,s)=>{"use strict";var d=s(74294),x=s(12493),w=s(85527),A=Object.prototype.hasOwnProperty,E={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,j){return k+"["+j+"]"},repeat:function(k){return k}},F=Array.isArray,W=String.prototype.split,Z=Array.prototype.push,ee=function(C,k){Z.apply(C,F(k)?k:[k])},ue=Date.prototype.toISOString,ne=w.default,ae={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(k){return ue.call(k)},skipNulls:!1,strictNullHandling:!1},Y=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},P={},G=function C(k,j,J,K,U,re,X,z,ce,he,_,Q,H,ye,ke){for(var je=k,De=ke,nt=0,tt=!1;(De=De.get(P))!==void 0&&!tt;){var bt=De.get(k);if(nt+=1,typeof bt!="undefined"){if(bt===nt)throw new RangeError("Cyclic object value");tt=!0}typeof De.get(P)=="undefined"&&(nt=0)}if(typeof X=="function"?je=X(j,je):je instanceof Date?je=he(je):J==="comma"&&F(je)&&(je=x.maybeMap(je,function(or){return or instanceof Date?he(or):or})),je===null){if(K)return re&&!H?re(j,ae.encoder,ye,"key",_):j;je=""}if(Y(je)||x.isBuffer(je)){if(re){var Ne=H?j:re(j,ae.encoder,ye,"key",_);if(J==="comma"&&H){for(var Oe=W.call(String(je),","),He="",Pe=0;Pe<Oe.length;++Pe)He+=(Pe===0?"":",")+Q(re(Oe[Pe],ae.encoder,ye,"value",_));return[Q(Ne)+"="+He]}return[Q(Ne)+"="+Q(re(je,ae.encoder,ye,"value",_))]}return[Q(j)+"="+Q(String(je))]}var Te=[];if(typeof je=="undefined")return Te;var Ye;if(J==="comma"&&F(je))Ye=[{value:je.length>0?je.join(",")||null:void 0}];else if(F(X))Ye=X;else{var at=Object.keys(je);Ye=z?at.sort(z):at}for(var jt=0;jt<Ye.length;++jt){var rt=Ye[jt],it=typeof rt=="object"&&typeof rt.value!="undefined"?rt.value:je[rt];if(!(U&&it===null)){var Ft=F(je)?typeof J=="function"?J(j,rt):j:j+(ce?"."+rt:"["+rt+"]");ke.set(k,nt);var ot=d();ot.set(P,ke),ee(Te,C(it,Ft,J,K,U,re,X,z,ce,he,_,Q,H,ye,ot))}}return Te},N=function(k){if(!k)return ae;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var j=k.charset||ae.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var J=w.default;if(typeof k.format!="undefined"){if(!A.call(w.formatters,k.format))throw new TypeError("Unknown format option provided.");J=k.format}var K=w.formatters[J],U=ae.filter;return(typeof k.filter=="function"||F(k.filter))&&(U=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:ae.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?ae.allowDots:!!k.allowDots,charset:j,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:ae.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?ae.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:ae.encode,encoder:typeof k.encoder=="function"?k.encoder:ae.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:ae.encodeValuesOnly,filter:U,format:J,formatter:K,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:ae.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:ae.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:ae.strictNullHandling}};h.exports=function(C,k){var j=C,J=N(k),K,U;typeof J.filter=="function"?(U=J.filter,j=U("",j)):F(J.filter)&&(U=J.filter,K=U);var re=[];if(typeof j!="object"||j===null)return"";var X;k&&k.arrayFormat in E?X=k.arrayFormat:k&&"indices"in k?X=k.indices?"indices":"repeat":X="indices";var z=E[X];K||(K=Object.keys(j)),J.sort&&K.sort(J.sort);for(var ce=d(),he=0;he<K.length;++he){var _=K[he];J.skipNulls&&j[_]===null||ee(re,G(j[_],_,z,J.strictNullHandling,J.skipNulls,J.encode?J.encoder:null,J.filter,J.sort,J.allowDots,J.serializeDate,J.format,J.formatter,J.encodeValuesOnly,J.charset,ce))}var Q=re.join(J.delimiter),H=J.addQueryPrefix===!0?"?":"";return J.charsetSentinel&&(J.charset==="iso-8859-1"?H+="utf8=%26%2310003%3B&":H+="utf8=%E2%9C%93&"),Q.length>0?H+Q:""}},12493:(h,O,s)=>{"use strict";var d=s(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,A=function(){for(var N=[],C=0;C<256;++C)N.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return N}(),E=function(C){for(;C.length>1;){var k=C.pop(),j=k.obj[k.prop];if(w(j)){for(var J=[],K=0;K<j.length;++K)typeof j[K]!="undefined"&&J.push(j[K]);k.obj[k.prop]=J}}},F=function(C,k){for(var j=k&&k.plainObjects?Object.create(null):{},J=0;J<C.length;++J)typeof C[J]!="undefined"&&(j[J]=C[J]);return j},W=function N(C,k,j){if(!k)return C;if(typeof k!="object"){if(w(C))C.push(k);else if(C&&typeof C=="object")(j&&(j.plainObjects||j.allowPrototypes)||!x.call(Object.prototype,k))&&(C[k]=!0);else return[C,k];return C}if(!C||typeof C!="object")return[C].concat(k);var J=C;return w(C)&&!w(k)&&(J=F(C,j)),w(C)&&w(k)?(k.forEach(function(K,U){if(x.call(C,U)){var re=C[U];re&&typeof re=="object"&&K&&typeof K=="object"?C[U]=N(re,K,j):C.push(K)}else C[U]=K}),C):Object.keys(k).reduce(function(K,U){var re=k[U];return x.call(K,U)?K[U]=N(K[U],re,j):K[U]=re,K},J)},Z=function(C,k){return Object.keys(k).reduce(function(j,J){return j[J]=k[J],j},C)},ee=function(N,C,k){var j=N.replace(/\+/g," ");if(k==="iso-8859-1")return j.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(j)}catch(J){return j}},ue=function(C,k,j,J,K){if(C.length===0)return C;var U=C;if(typeof C=="symbol"?U=Symbol.prototype.toString.call(C):typeof C!="string"&&(U=String(C)),j==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(ce){return"%26%23"+parseInt(ce.slice(2),16)+"%3B"});for(var re="",X=0;X<U.length;++X){var z=U.charCodeAt(X);if(z===45||z===46||z===95||z===126||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||K===d.RFC1738&&(z===40||z===41)){re+=U.charAt(X);continue}if(z<128){re=re+A[z];continue}if(z<2048){re=re+(A[192|z>>6]+A[128|z&63]);continue}if(z<55296||z>=57344){re=re+(A[224|z>>12]+A[128|z>>6&63]+A[128|z&63]);continue}X+=1,z=65536+((z&1023)<<10|U.charCodeAt(X)&1023),re+=A[240|z>>18]+A[128|z>>12&63]+A[128|z>>6&63]+A[128|z&63]}return re},ne=function(C){for(var k=[{obj:{o:C},prop:"o"}],j=[],J=0;J<k.length;++J)for(var K=k[J],U=K.obj[K.prop],re=Object.keys(U),X=0;X<re.length;++X){var z=re[X],ce=U[z];typeof ce=="object"&&ce!==null&&j.indexOf(ce)===-1&&(k.push({obj:U,prop:z}),j.push(ce))}return E(k),C},ae=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,k){return[].concat(C,k)},G=function(C,k){if(w(C)){for(var j=[],J=0;J<C.length;J+=1)j.push(k(C[J]));return j}return k(C)};h.exports={arrayToObject:F,assign:Z,combine:P,compact:ne,decode:ee,encode:ue,isBuffer:Y,isRegExp:ae,maybeMap:G,merge:W}},63277:(h,O,s)=>{"use strict";var d;function x(){return x=Object.assign||function(ae){for(var Y=1;Y<arguments.length;Y++){var P=arguments[Y];for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&(ae[G]=P[G])}return ae},x.apply(this,arguments)}function w(ae){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(ae)}var A=function(){var ae=function(P,G){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,C){N.__proto__=C}||function(N,C){for(var k in C)C.hasOwnProperty(k)&&(N[k]=C[k])},ae(P,G)};return function(Y,P){ae(Y,P);function G(){this.constructor=Y}Y.prototype=P===null?Object.create(P):(G.prototype=P.prototype,new G)}}();d={value:!0},d=O.fk=void 0;var E=s(2784),F=typeof navigator=="undefined"||s.g.PREVENT_CODEMIRROR_RENDER===!0,W;F||(W=s(23326));var Z=function(){function ae(){}return ae.equals=function(Y,P){var G=this,N=Object.keys,C=w(Y),k=w(P);return Y&&P&&C==="object"&&C===k?N(Y).length===N(P).length&&N(Y).every(function(j){return G.equals(Y[j],P[j])}):Y===P},ae}(),ee=function(){function ae(Y,P){this.editor=Y,this.props=P}return ae.prototype.delegateCursor=function(Y,P,G){var N=this.editor.getDoc();G&&this.editor.focus(),P?N.setCursor(Y):N.setCursor(Y,null,{scroll:!1})},ae.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},ae.prototype.delegateSelection=function(Y,P){var G=this.editor.getDoc();G.setSelections(Y),P&&this.editor.focus()},ae.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)},ae.prototype.applyNext=function(Y,P,G){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(G.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)},ae.prototype.applyUserDefined=function(Y,P){P&&P.cursor&&this.delegateCursor(P.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ae.prototype.wire=function(Y){var P=this;Object.keys(Y||{}).filter(function(G){return/^on/.test(G)}).forEach(function(G){switch(G){case"onBlur":P.editor.on("blur",function(N,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(N,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(N,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(N){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(N){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(N,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(N,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(N,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(N,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(N,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(N,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(N,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(N,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(N,C,k,j){P.props.onGutterClick(P.editor,C,k,j)});break;case"onInputRead":P.editor.on("inputRead",function(N,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(N,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(N,C,k){P.props.onKeyHandled(P.editor,C,k)});break;case"onKeyPress":P.editor.on("keypress",function(N,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(N,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(N,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(N,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(N,C,k){P.props.onRenderLine(P.editor,C,k)});break}case"onScroll":P.editor.on("scroll",function(N){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(N,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(N,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(N){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(N,C,k){P.props.onViewportChange(P.editor,C,k)});break}})},ae}(),ue=function(ae){A(Y,ae);function Y(P){var G=ae.call(this,P)||this;return F||(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 Y.prototype.hydrate=function(P){var G=this,N=P&&P.options?P.options:{},C=x({},W.defaults,this.editor.options,N),k=Object.keys(C).some(function(j){return G.editor.getOption(j)!==C[j]});k&&Object.keys(C).forEach(function(j){N.hasOwnProperty(j)&&G.editor.getOption(j)!==C[j]&&(G.editor.setOption(j,C[j]),G.mirror.setOption(j,C[j]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},Y.prototype.initChange=function(P){this.emulating=!0;var G=this.editor.getDoc(),N=G.lastLine(),C=G.getLine(G.lastLine()).length;G.replaceRange(P||"",{line:0,ch:0},{line:N,ch:C}),this.mirror.setValue(P),G.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.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 N=G.getCursor();G.setValue(P),G.setCursor(N)}this.emulating=!1,this.deferred=null},Y.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()},Y.prototype.componentDidMount=function(){var P=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&W.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=W(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.mirror=W(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,N){if(!P.emulating){N.cancel(),P.deferred=N;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function(G,N){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,N,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(!F){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}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(W)},Y.prototype.shouldComponentUpdate=function(P,G){return!F},Y.prototype.render=function(){var P=this;if(F)return null;var G=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:G,ref:function(C){return P.ref=C}})},Y}(E.Component);O.fk=ue;var ne=function(ae){A(Y,ae);function Y(P){var G=ae.call(this,P)||this;return F||(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 Y.prototype.hydrate=function(P){var G=this,N=P&&P.options?P.options:{},C=x({},W.defaults,this.editor.options,N),k=Object.keys(C).some(function(U){return G.editor.getOption(U)!==C[U]});if(k&&Object.keys(C).forEach(function(U){N.hasOwnProperty(U)&&G.editor.getOption(U)!==C[U]&&G.editor.setOption(U,C[U])}),!this.hydrated){var j=this.editor.getDoc(),J=j.lastLine(),K=j.getLine(j.lastLine()).length;j.replaceRange(P.value||"",{line:0,ch:0},{line:J,ch:K})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var P=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&W.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=W(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.editor.on("beforeChange",function(G,N){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,N,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function(G,N){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,N,P.editor.getValue()):P.props.onChange(P.editor,N,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)),!(F||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)}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(W)},Y.prototype.shouldComponentUpdate=function(P,G){var N=!0;return F&&(N=!1),this.detached&&P.detach&&(N=!1),N},Y.prototype.render=function(){var P=this;if(F)return null;var G=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:G,ref:function(C){return P.ref=C}})},Y}(E.Component);d=ne},74294:(h,O,s)=>{"use strict";var d=s(67286),x=s(62680),w=s(99500),A=d("%TypeError%"),E=d("%WeakMap%",!0),F=d("%Map%",!0),W=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),ee=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),ae=x("Map.prototype.has",!0),Y=function(C,k){for(var j=C,J;(J=j.next)!==null;j=J)if(J.key===k)return j.next=J.next,J.next=C.next,C.next=J,J},P=function(C,k){var j=Y(C,k);return j&&j.value},G=function(C,k,j){var J=Y(C,k);J?J.value=j:C.next={key:k,next:C.next,value:j}},N=function(C,k){return!!Y(C,k)};h.exports=function(){var k,j,J,K={assert:function(U){if(!K.has(U))throw new A("Side channel does not contain "+w(U))},get:function(U){if(E&&U&&(typeof U=="object"||typeof U=="function")){if(k)return W(k,U)}else if(F){if(j)return ue(j,U)}else if(J)return P(J,U)},has:function(U){if(E&&U&&(typeof U=="object"||typeof U=="function")){if(k)return ee(k,U)}else if(F){if(j)return ae(j,U)}else if(J)return N(J,U);return!1},set:function(U,re){E&&U&&(typeof U=="object"||typeof U=="function")?(k||(k=new E),Z(k,U,re)):F?(j||(j=new F),ne(j,U,re)):(J||(J={key:{},next:null}),G(J,U,re))}};return K}},56855:h=>{var O=h.exports=function(P){return new s(P)};function s(P){this.value=P}s.prototype.get=function(P){for(var G=this.value,N=0;N<P.length;N++){var C=P[N];if(!G||!Y.call(G,C)){G=void 0;break}G=G[C]}return G},s.prototype.has=function(P){for(var G=this.value,N=0;N<P.length;N++){var C=P[N];if(!G||!Y.call(G,C))return!1;G=G[C]}return!0},s.prototype.set=function(P,G){for(var N=this.value,C=0;C<P.length-1;C++){var k=P[C];Y.call(N,k)||(N[k]={}),N=N[k]}return N[P[C]]=G,G},s.prototype.map=function(P){return d(this.value,P,!0)},s.prototype.forEach=function(P){return this.value=d(this.value,P,!1),this.value},s.prototype.reduce=function(P,G){var N=arguments.length===1,C=N?this.value:G;return this.forEach(function(k){(!this.isRoot||!N)&&(C=P.call(this,C,k))}),C},s.prototype.paths=function(){var P=[];return this.forEach(function(G){P.push(this.path)}),P},s.prototype.nodes=function(){var P=[];return this.forEach(function(G){P.push(this.node)}),P},s.prototype.clone=function(){var P=[],G=[];return function N(C){for(var k=0;k<P.length;k++)if(P[k]===C)return G[k];if(typeof C=="object"&&C!==null){var j=x(C);return P.push(C),G.push(j),ae(w(C),function(J){j[J]=N(C[J])}),P.pop(),G.pop(),j}else return C}(this.value)};function d(P,G,N){var C=[],k=[],j=!0;return function J(K){var U=N?x(K):K,re={},X=!0,z={node:U,node_:K,path:[].concat(C),parent:k[k.length-1],parents:k,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(_,Q){z.isRoot||(z.parent.node[z.key]=_),z.node=_,Q&&(X=!1)},delete:function(_){delete z.parent.node[z.key],_&&(X=!1)},remove:function(_){ne(z.parent.node)?z.parent.node.splice(z.key,1):delete z.parent.node[z.key],_&&(X=!1)},keys:null,before:function(_){re.before=_},after:function(_){re.after=_},pre:function(_){re.pre=_},post:function(_){re.post=_},stop:function(){j=!1},block:function(){X=!1}};if(!j)return z;function ce(){if(typeof z.node=="object"&&z.node!==null){(!z.keys||z.node_!==z.node)&&(z.keys=w(z.node)),z.isLeaf=z.keys.length==0;for(var _=0;_<k.length;_++)if(k[_].node_===K){z.circular=k[_];break}}else z.isLeaf=!0,z.keys=null;z.notLeaf=!z.isLeaf,z.notRoot=!z.isRoot}ce();var he=G.call(z,z.node);return he!==void 0&&z.update&&z.update(he),re.before&&re.before.call(z,z.node),X&&(typeof z.node=="object"&&z.node!==null&&!z.circular&&(k.push(z),ce(),ae(z.keys,function(_,Q){C.push(_),re.pre&&re.pre.call(z,z.node[_],_);var H=J(z.node[_]);N&&Y.call(z.node,_)&&(z.node[_]=H.node),H.isLast=Q==z.keys.length-1,H.isFirst=Q==0,re.post&&re.post.call(z,H),C.pop()}),k.pop()),re.after&&re.after.call(z,z.node)),z}(P).node}function x(P){if(typeof P=="object"&&P!==null){var G;if(ne(P))G=[];else if(E(P))G=new Date(P.getTime?P.getTime():P);else if(F(P))G=new RegExp(P);else if(W(P))G={message:P.message};else if(Z(P))G=new Boolean(P);else if(ee(P))G=new Number(P);else if(ue(P))G=new String(P);else if(Object.create&&Object.getPrototypeOf)G=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)G={};else{var N=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=N,G=new C}return ae(w(P),function(k){G[k]=P[k]}),G}else return P}var w=Object.keys||function(G){var N=[];for(var C in G)N.push(C);return N};function A(P){return Object.prototype.toString.call(P)}function E(P){return A(P)==="[object Date]"}function F(P){return A(P)==="[object RegExp]"}function W(P){return A(P)==="[object Error]"}function Z(P){return A(P)==="[object Boolean]"}function ee(P){return A(P)==="[object Number]"}function ue(P){return A(P)==="[object String]"}var ne=Array.isArray||function(G){return Object.prototype.toString.call(G)==="[object Array]"},ae=function(P,G){if(P.forEach)return P.forEach(G);for(var N=0;N<P.length;N++)G(P[N],N,P)};ae(w(s.prototype),function(P){O[P]=function(G){var N=[].slice.call(arguments,1),C=new s(G);return C[P].apply(C,N)}});var Y=Object.hasOwnProperty||function(P,G){return G in P}},84591:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>F});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=A()(x());E.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}
|
|
504
|
-
`,""]);const F=E},51232:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>k});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=s(61667),F=s.n(E),W=new URL(s(17735),s.b),Z=new URL(s(56089),s.b),ee=new URL(s(46050),s.b),ue=new URL(s(71090),s.b),ne=new URL(s(96192),s.b),ae=A()(x()),Y=F()(W),P=F()(Z),G=F()(ee),N=F()(ue),C=F()(ne);ae.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("+G+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+N+")}.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}
|
|
505
|
-
`,""]);const k=ae},66072:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>F});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=A()(x());E.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}
|
|
506
|
-
`,""]);const F=E},16887:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>F});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=A()(x());E.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}
|
|
507
|
-
`,""]);const F=E},61667:h=>{"use strict";h.exports=function(O,s){return s||(s={}),O&&(O=String(O.__esModule?O.default:O),/^['"].*['"]$/.test(O)&&(O=O.slice(1,-1)),s.hash&&(O+=s.hash),/["'() \t\n]|(%20)/.test(O)||s.needQuotes?'"'.concat(O.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):O)}},53513:(h,O,s)=>{var d=s(93379),x=s(84591);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||{}},6364:(h,O,s)=>{var d=s(93379),x=s(51232);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||{}},46830:(h,O,s)=>{var d=s(93379),x=s(66072);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||{}},59176:(h,O,s)=>{var d=s(93379),x=s(16887);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||{}},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,O,s)=>{h.exports=s(53822)},40192:(h,O,s)=>{h.exports=s(44877)},42126:(h,O,s)=>{h.exports=s(10140)},40453:(h,O,s)=>{h.exports=s(55603)},35784:(h,O,s)=>{h.exports=s(76237)},82985:(h,O,s)=>{h.exports=s(56515)},14903:(h,O,s)=>{h.exports=s(20057)},71488:(h,O,s)=>{h.exports=s(24741)},93963:(h,O,s)=>{h.exports=s(8368)},51661:(h,O,s)=>{h.exports=s(342)},85337:(h,O,s)=>{h.exports=s(392)},45932:(h,O,s)=>{h.exports=s(28478)},31175:(h,O,s)=>{h.exports=s(58202)},2921:(h,O,s)=>{h.exports=s(45636)},22583:(h,O,s)=>{h.exports=s(46618)},8304:(h,O,s)=>{h.exports=s(72946)},36394:(h,O,s)=>{h.exports=s(11235)},50557:(h,O,s)=>{h.exports=s(62813)},72010:(h,O,s)=>{h.exports=s(68664)},5490:(h,O,s)=>{h.exports=s(21457)},1858:(h,O,s)=>{h.exports=s(36516)},84870:(h,O,s)=>{h.exports=s(87611)},48145:(h,O,s)=>{h.exports=s(4161)},26405:(h,O,s)=>{h.exports=s(75159)},9600:(h,O,s)=>{h.exports=s(87708)},72383:(h,O,s)=>{h.exports=s(42937)},8626:(h,O,s)=>{h.exports=s(69297)},45055:(h,O,s)=>{h.exports=s(10353)},49800:(h,O,s)=>{h.exports=s(8026)},79494:(h,O,s)=>{h.exports=s(67362)},11807:(h,O,s)=>{h.exports=s(57532)},24463:(h,O,s)=>{h.exports=s(61903)},21889:(h,O,s)=>{h.exports=s(42044)},25575:(h,O,s)=>{h.exports=s(60902)},68861:(h,O,s)=>{h.exports=s(2214)},64772:(h,O,s)=>{h.exports=s(983)},57829:(h,O,s)=>{h.exports=s(59256)},92876:(h,O,s)=>{h.exports=s(95659)},18730:(h,O,s)=>{var d=s(69696).default,x=s(57829),w=s(49800),A=s(8626),E=s(21889),F=s(48145),W=s(68861),Z=s(64772),ee=s(9600),ue=s(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 ae},h.exports.__esModule=!0,h.exports.default=h.exports;var ae={},Y=Object.prototype,P=Y.hasOwnProperty,G=typeof x=="function"?x:{},N=G.iterator||"@@iterator",C=G.asyncIterator||"@@asyncIterator",k=G.toStringTag||"@@toStringTag";function j(Ne,Oe,He){return w(Ne,Oe,{value:He,enumerable:!0,configurable:!0,writable:!0}),Ne[Oe]}try{j({},"")}catch(Ne){j=function(He,Pe,Te){return He[Pe]=Te}}function J(Ne,Oe,He,Pe){var Te=Oe&&Oe.prototype instanceof re?Oe:re,Ye=A(Te.prototype),at=new nt(Pe||[]);return Ye._invoke=function(jt,rt,it){var Ft="suspendedStart";return function(ot,or){if(Ft==="executing")throw new Error("Generator is already running");if(Ft==="completed"){if(ot==="throw")throw or;return bt()}for(it.method=ot,it.arg=or;;){var Je=it.delegate;if(Je){var Ct=ke(Je,it);if(Ct){if(Ct===U)continue;return Ct}}if(it.method==="next")it.sent=it._sent=it.arg;else if(it.method==="throw"){if(Ft==="suspendedStart")throw Ft="completed",it.arg;it.dispatchException(it.arg)}else it.method==="return"&&it.abrupt("return",it.arg);Ft="executing";var ze=K(jt,rt,it);if(ze.type==="normal"){if(Ft=it.done?"completed":"suspendedYield",ze.arg===U)continue;return{value:ze.arg,done:it.done}}ze.type==="throw"&&(Ft="completed",it.method="throw",it.arg=ze.arg)}}}(Ne,He,at),Ye}function K(Ne,Oe,He){try{return{type:"normal",arg:Ne.call(Oe,He)}}catch(Pe){return{type:"throw",arg:Pe}}}ae.wrap=J;var U={};function re(){}function X(){}function z(){}var ce={};j(ce,N,function(){return this});var he=E,_=he&&he(he(tt([])));_&&_!==Y&&P.call(_,N)&&(ce=_);var Q=z.prototype=re.prototype=A(ce);function H(Ne){var Oe;F(Oe=["next","throw","return"]).call(Oe,function(He){j(Ne,He,function(Pe){return this._invoke(He,Pe)})})}function ye(Ne,Oe){function He(Te,Ye,at,jt){var rt=K(Ne[Te],Ne,Ye);if(rt.type!=="throw"){var it=rt.arg,Ft=it.value;return Ft&&d(Ft)=="object"&&P.call(Ft,"__await")?Oe.resolve(Ft.__await).then(function(ot){He("next",ot,at,jt)},function(ot){He("throw",ot,at,jt)}):Oe.resolve(Ft).then(function(ot){it.value=ot,at(it)},function(ot){return He("throw",ot,at,jt)})}jt(rt.arg)}var Pe;this._invoke=function(Te,Ye){function at(){return new Oe(function(jt,rt){He(Te,Ye,jt,rt)})}return Pe=Pe?Pe.then(at,at):at()}}function ke(Ne,Oe){var He=Ne.iterator[Oe.method];if(He===void 0){if(Oe.delegate=null,Oe.method==="throw"){if(Ne.iterator.return&&(Oe.method="return",Oe.arg=void 0,ke(Ne,Oe),Oe.method==="throw"))return U;Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a 'throw' method")}return U}var Pe=K(He,Ne.iterator,Oe.arg);if(Pe.type==="throw")return Oe.method="throw",Oe.arg=Pe.arg,Oe.delegate=null,U;var Te=Pe.arg;return Te?Te.done?(Oe[Ne.resultName]=Te.value,Oe.next=Ne.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,U):Te:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,U)}function je(Ne){var Oe={tryLoc:Ne[0]};1 in Ne&&(Oe.catchLoc=Ne[1]),2 in Ne&&(Oe.finallyLoc=Ne[2],Oe.afterLoc=Ne[3]),this.tryEntries.push(Oe)}function De(Ne){var Oe=Ne.completion||{};Oe.type="normal",delete Oe.arg,Ne.completion=Oe}function nt(Ne){this.tryEntries=[{tryLoc:"root"}],F(Ne).call(Ne,je,this),this.reset(!0)}function tt(Ne){if(Ne){var Oe=Ne[N];if(Oe)return Oe.call(Ne);if(typeof Ne.next=="function")return Ne;if(!isNaN(Ne.length)){var He=-1,Pe=function Te(){for(;++He<Ne.length;)if(P.call(Ne,He))return Te.value=Ne[He],Te.done=!1,Te;return Te.value=void 0,Te.done=!0,Te};return Pe.next=Pe}}return{next:bt}}function bt(){return{value:void 0,done:!0}}return X.prototype=z,j(Q,"constructor",z),j(z,"constructor",X),X.displayName=j(z,k,"GeneratorFunction"),ae.isGeneratorFunction=function(Ne){var Oe=typeof Ne=="function"&&Ne.constructor;return!!Oe&&(Oe===X||(Oe.displayName||Oe.name)==="GeneratorFunction")},ae.mark=function(Ne){return W?W(Ne,z):(Ne.__proto__=z,j(Ne,k,"GeneratorFunction")),Ne.prototype=A(Q),Ne},ae.awrap=function(Ne){return{__await:Ne}},H(ye.prototype),j(ye.prototype,C,function(){return this}),ae.AsyncIterator=ye,ae.async=function(Ne,Oe,He,Pe,Te){Te===void 0&&(Te=Z);var Ye=new ye(J(Ne,Oe,He,Pe),Te);return ae.isGeneratorFunction(Oe)?Ye:Ye.next().then(function(at){return at.done?at.value:Ye.next()})},H(Q),j(Q,k,"Generator"),j(Q,N,function(){return this}),j(Q,"toString",function(){return"[object Generator]"}),ae.keys=function(Ne){var Oe=[];for(var He in Ne)Oe.push(He);return ee(Oe).call(Oe),function Pe(){for(;Oe.length;){var Te=Oe.pop();if(Te in Ne)return Pe.value=Te,Pe.done=!1,Pe}return Pe.done=!0,Pe}},ae.values=tt,nt.prototype={constructor:nt,reset:function(Oe){var He;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,F(He=this.tryEntries).call(He,De),!Oe)for(var Pe in this)Pe.charAt(0)==="t"&&P.call(this,Pe)&&!isNaN(+ue(Pe).call(Pe,1))&&(this[Pe]=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 He=this;function Pe(it,Ft){return at.type="throw",at.arg=Oe,He.next=it,Ft&&(He.method="next",He.arg=void 0),!!Ft}for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Ye=this.tryEntries[Te],at=Ye.completion;if(Ye.tryLoc==="root")return Pe("end");if(Ye.tryLoc<=this.prev){var jt=P.call(Ye,"catchLoc"),rt=P.call(Ye,"finallyLoc");if(jt&&rt){if(this.prev<Ye.catchLoc)return Pe(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return Pe(Ye.finallyLoc)}else if(jt){if(this.prev<Ye.catchLoc)return Pe(Ye.catchLoc,!0)}else{if(!rt)throw new Error("try statement without catch or finally");if(this.prev<Ye.finallyLoc)return Pe(Ye.finallyLoc)}}}},abrupt:function(Oe,He){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Te=this.tryEntries[Pe];if(Te.tryLoc<=this.prev&&P.call(Te,"finallyLoc")&&this.prev<Te.finallyLoc){var Ye=Te;break}}Ye&&(Oe==="break"||Oe==="continue")&&Ye.tryLoc<=He&&He<=Ye.finallyLoc&&(Ye=null);var at=Ye?Ye.completion:{};return at.type=Oe,at.arg=He,Ye?(this.method="next",this.next=Ye.finallyLoc,U):this.complete(at)},complete:function(Oe,He){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"&&He&&(this.next=He),U},finish:function(Oe){for(var He=this.tryEntries.length-1;He>=0;--He){var Pe=this.tryEntries[He];if(Pe.finallyLoc===Oe)return this.complete(Pe.completion,Pe.afterLoc),De(Pe),U}},catch:function(Oe){for(var He=this.tryEntries.length-1;He>=0;--He){var Pe=this.tryEntries[He];if(Pe.tryLoc===Oe){var Te=Pe.completion;if(Te.type==="throw"){var Ye=Te.arg;De(Pe)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,He,Pe){return this.delegate={iterator:tt(Oe),resultName:He,nextLoc:Pe},this.method==="next"&&(this.arg=void 0),U}},ae}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,O,s)=>{var d=s(57829),x=s(92876);function w(A){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(E){return typeof E}:function(E){return E&&typeof d=="function"&&E.constructor===d&&E!==d.prototype?"symbol":typeof E},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,O,s)=>{var d=s(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);
|
|
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,""")}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],`
|
|
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
|
+
`+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)}}}]);
|