diff --git a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/graphiql-orchard.js b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/graphiql-orchard.js index e67fb15e4bc..25b07ad21b0 100644 --- a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/graphiql-orchard.js +++ b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/graphiql-orchard.js @@ -1,2 +1,2 @@ /*! For license information please see graphiql-orchard.js.LICENSE.txt */ -(()=>{var e={64:(e,t,n)=>{"use strict";n.r(t),n.d(t,{f:()=>c});var r=n(1566),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){function t(t,r,a,s){if(a&&a.call){var l=a;a=null}else l=i(t,a,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var c=i(t,a,"minFoldSize");function u(e){var n=l(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),p=u(!1);if(p&&!p.cleared&&"unfold"!==s){var f=n(t,a,p);e.on(f,"mousedown",(function(t){d.clear(),e.e_preventDefault(t)}));var d=t.markText(p.from,p.to,{replacedWith:f,clearOnEnter:i(t,a,"clearOnEnter"),__isFold:!0});d.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,p.from,p.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}o(t,"doFold"),o(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n=c){if(f&&l&&f.test(l.className))return;r=a(o.indicatorOpen)}}(r||l)&&e.setGutterMarker(n,o.gutter,r)}))}function l(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function c(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){s(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function u(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function p(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){c(e)}),n.foldOnChangeTimeSpan||600)}}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?c(e):e.operation((function(){n.fromt.to&&(s(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function d(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r{"use strict";n.d(t,{y:()=>c});var r=n(3735),i=n(2832),o=n(2633),a=n(7746),s=n(5903),l=n(907);function c(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null),l=0,c=e.getDocument().definitions;l{"use strict";n.d(t,{A:()=>r});const r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))}},239:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(2633);function i(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o{"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n{"use strict";n.d(t,{_:()=>c,k:()=>l});var r=n(5215),i=n(5284),o=n(5251),a=n(486);function s(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||(0,o.A)(0,"Body must be a string. Received: ".concat((0,i.A)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.A)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.A)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.Kp,get:function(){return"Source"}}])&&s(t.prototype,n),e}();function c(e){return(0,a.A)(e,l)}},277:(e,t,n)=>{"use strict";var r=n(4983).normalizeReference,i=n(4983).isSpace;e.exports=function(e,t,n,o){var a,s,l,c,u,p,f,d,h,m,g,v,y,b,k,E,x=0,w=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],C=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w3||e.sCount[C]<0)){for(b=!1,p=0,f=k.length;p{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t{"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos{"use strict";var r=n(4999);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},486:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e instanceof t}},514:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5284),i=n(2633),o=n(9820);function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;if(n)if((0,o.zf)((0,o.MR)(n))){if(a){var s=t.name.value,l=(0,r.A)(n);e.reportError(new i.e('Field "'.concat(s,'" must not have a selection since type "').concat(l,'" has no subfields.'),a))}}else if(!a){var c=t.name.value,u=(0,r.A)(n);e.reportError(new i.e('Field "'.concat(c,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),t))}}}}},539:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(2633);function i(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new r.e('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},547:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(2633),i=n(8244),o=n(9820),a=n(2296);function s(e){return{VariableDefinition:function(t){var n=(0,a.v)(e.getSchema(),t.type);if(n&&!(0,o.dX)(n)){var s=t.variable.name.value,l=(0,i.y)(t.type);e.reportError(new r.e('Variable "$'.concat(s,'" cannot be non-input type "').concat(l,'".'),t.type))}}}}},556:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(5284),i=n(2633),o=n(3417),a=n(9820),s=n(2296),l=n(6959);function c(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),a=0;a{"use strict";n.d(t,{e:()=>c});var r=n(5284),i=n(4956),o=n(2633),a=n(3417),s=n(6630),l=n(5664);function c(e){for(var t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():l.rc,u=0;u{"use strict";n.d(t,{A:()=>k});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(4912),n.b),u=new URL(n(1954),n.b),p=new URL(n(3604),n.b),f=new URL(n(5980),n.b),d=new URL(n(5139),n.b),h=a()(i()),m=l()(c),g=l()(u),v=l()(p),y=l()(f),b=l()(d);h.push([e.id,`.graphiql-container,\n.graphiql-container button,\n.graphiql-container input {\n color: #141823;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 14px;\n}\n\n.graphiql-container {\n display: flex;\n flex-direction: row;\n height: 100%;\n margin: 0;\n overflow: hidden;\n width: 100%;\n}\n\n.graphiql-container .editorWrap {\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow-x: hidden;\n}\n\n.graphiql-container .title {\n font-size: 18px;\n}\n\n.graphiql-container .title em {\n font-family: georgia;\n font-size: 19px;\n}\n\n.graphiql-container .topBarWrap {\n display: flex;\n flex-direction: row;\n}\n\n.graphiql-container .topBar {\n align-items: center;\n background: linear-gradient(#f7f7f7, #e2e2e2);\n border-bottom: 1px solid #d0d0d0;\n cursor: default;\n display: flex;\n flex-direction: row;\n flex: 1;\n height: 34px;\n overflow-y: visible;\n padding: 7px 14px 6px;\n user-select: none;\n}\n\n.graphiql-container .toolbar {\n overflow-x: visible;\n display: flex;\n}\n\n.graphiql-container .docExplorerShow,\n.graphiql-container .historyShow {\n background: linear-gradient(#f7f7f7, #e2e2e2);\n border-radius: 0;\n border-bottom: 1px solid #d0d0d0;\n border-right: none;\n border-top: none;\n color: #3b5998;\n cursor: pointer;\n font-size: 14px;\n margin: 0;\n padding: 2px 20px 0 18px;\n}\n\n.graphiql-container .docExplorerShow {\n border-left: 1px solid rgba(0, 0, 0, 0.2);\n}\n\n.graphiql-container .historyShow {\n border-right: 1px solid rgba(0, 0, 0, 0.2);\n border-left: 0;\n}\n\n.graphiql-container .docExplorerShow:before {\n border-left: 2px solid #3b5998;\n border-top: 2px solid #3b5998;\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 3px -1px 0;\n position: relative;\n transform: rotate(-45deg);\n width: 9px;\n}\n\n.graphiql-container .editorBar {\n display: flex;\n flex-direction: row;\n flex: 1;\n max-height: 100%;\n}\n\n.graphiql-container .queryWrap {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.graphiql-container .resultWrap {\n display: flex;\n flex-direction: column;\n flex: 1;\n flex-basis: 1em;\n position: relative;\n}\n\n.graphiql-container .docExplorerWrap,\n.graphiql-container .historyPaneWrap {\n background: white;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\n position: relative;\n width: 100%;\n z-index: 3;\n}\n\n.graphiql-container .historyPaneWrap {\n min-width: 230px;\n z-index: 5;\n}\n\n.graphiql-container .docExplorerResizer {\n cursor: col-resize;\n height: 100%;\n position: absolute;\n width: 10px;\n z-index: 10;\n}\n\n.graphiql-container .docExplorerHide {\n cursor: pointer;\n font-size: 18px;\n margin: -7px -8px -6px 0;\n padding: 18px 16px 15px 12px;\n background: 0;\n border: 0;\n line-height: 14px;\n}\n\n.graphiql-container div .query-editor {\n flex: 1;\n position: relative;\n}\n\n.graphiql-container .secondary-editor {\n display: flex;\n flex-direction: column;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .secondary-editor-title {\n background: #eeeeee;\n border-bottom: 1px solid #d6d6d6;\n border-top: 1px solid #e0e0e0;\n color: #777;\n cursor: row-resize;\n font-variant: small-caps;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 14px;\n padding: 6px 0 8px 43px;\n text-transform: lowercase;\n user-select: none;\n}\n\n.graphiql-container .codemirrorWrap {\n flex: 1;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .result-window {\n flex: 1;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .footer {\n background: #f6f7f8;\n border-left: 1px solid #e0e0e0;\n border-top: 1px solid #e0e0e0;\n margin-left: 12px;\n position: relative;\n}\n\n.graphiql-container .footer:before {\n background: #eeeeee;\n bottom: 0;\n content: ' ';\n left: -13px;\n position: absolute;\n top: -1px;\n width: 12px;\n}\n\n/* No \`.graphiql-container\` here so themes can overwrite */\n\n.result-window .CodeMirror.cm-s-graphiql {\n background: #f6f7f8;\n}\n\n.graphiql-container .result-window .CodeMirror-gutters {\n background-color: #f6f7f8;\n border: none;\n}\n\n.editor-drag-bar {\n width: 12px;\n background-color: #eeeeee;\n border-left: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n cursor: col-resize;\n}\n\n.graphiql-container .result-window .CodeMirror-foldgutter,\n.graphiql-container .result-window .CodeMirror-foldgutter-open:after,\n.graphiql-container .result-window .CodeMirror-foldgutter-folded:after {\n padding-left: 3px;\n}\n\n.graphiql-container .toolbar-button {\n background: #fdfdfd;\n background: linear-gradient(#f9f9f9, #ececec);\n border: 0;\n border-radius: 3px;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2),\n 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 1px #fff;\n color: #555;\n cursor: pointer;\n display: inline-block;\n margin: 0 5px;\n padding: 3px 11px 5px;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 150px;\n}\n\n.graphiql-container .toolbar-button:active {\n background: linear-gradient(#ececec, #d5d5d5);\n box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7),\n inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 1px 1px rgba(0, 0, 0, 0.12),\n inset 0 0 5px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container .toolbar-button.error {\n background: linear-gradient(#fdf3f3, #e6d6d7);\n color: #b00;\n}\n\n.graphiql-container .toolbar-button-group {\n margin: 0 5px;\n white-space: nowrap;\n}\n\n.graphiql-container .toolbar-button-group > * {\n margin: 0;\n}\n\n.graphiql-container .toolbar-button-group > *:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.graphiql-container .toolbar-button-group > *:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n margin-left: -1px;\n}\n\n.graphiql-container .execute-button-wrap {\n height: 34px;\n margin: 0 14px 0 28px;\n position: relative;\n}\n\n.graphiql-container .execute-button {\n background: linear-gradient(#fdfdfd, #d2d3d6);\n border-radius: 17px;\n border: 1px solid rgba(0, 0, 0, 0.25);\n box-shadow: 0 1px 0 #fff;\n cursor: pointer;\n fill: #444;\n height: 34px;\n margin: 0;\n padding: 0;\n width: 34px;\n}\n\n.graphiql-container .toolbar-button > svg,\n.graphiql-container .execute-button svg {\n pointer-events: none;\n}\n\n.graphiql-container .execute-button:active {\n background: linear-gradient(#e6e6e6, #c3c3c3);\n box-shadow: 0 1px 0 #fff, inset 0 0 2px rgba(0, 0, 0, 0.2),\n inset 0 0 6px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container .toolbar-menu,\n.graphiql-container .toolbar-select {\n position: relative;\n}\n\n.graphiql-container .execute-options,\n.graphiql-container .toolbar-menu-items,\n.graphiql-container .toolbar-select-options {\n background: #fff;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25);\n margin: 0;\n padding: 6px 0;\n position: absolute;\n z-index: 100;\n}\n\n.graphiql-container .execute-options {\n min-width: 100px;\n top: 37px;\n left: -1px;\n}\n\n.graphiql-container .toolbar-menu-items {\n left: 1px;\n margin-top: -1px;\n min-width: 110%;\n top: 100%;\n visibility: hidden;\n}\n\n.graphiql-container .toolbar-menu-items.open {\n visibility: visible;\n}\n\n.graphiql-container .toolbar-select-options {\n left: 0;\n min-width: 100%;\n top: -5px;\n visibility: hidden;\n}\n\n.graphiql-container .toolbar-select-options.open {\n visibility: visible;\n}\n\n.graphiql-container .execute-options > li,\n.graphiql-container .toolbar-menu-items > li,\n.graphiql-container .toolbar-select-options > li {\n cursor: pointer;\n display: block;\n margin: none;\n max-width: 300px;\n overflow: hidden;\n padding: 2px 20px 4px 11px;\n white-space: nowrap;\n}\n\n.graphiql-container .execute-options > li.selected,\n.graphiql-container .toolbar-menu-items > li.hover,\n.graphiql-container .toolbar-menu-items > li:active,\n.graphiql-container .toolbar-menu-items > li:hover,\n.graphiql-container .toolbar-select-options > li.hover,\n.graphiql-container .toolbar-select-options > li:active,\n.graphiql-container .toolbar-select-options > li:hover,\n.graphiql-container .history-contents > li:hover,\n.graphiql-container .history-contents > li:active {\n background: #e10098;\n color: #fff;\n}\n\n.graphiql-container .toolbar-select-options > li > svg {\n display: inline;\n fill: #666;\n margin: 0 -6px 0 6px;\n pointer-events: none;\n vertical-align: middle;\n}\n\n.graphiql-container .toolbar-select-options > li.hover > svg,\n.graphiql-container .toolbar-select-options > li:active > svg,\n.graphiql-container .toolbar-select-options > li:hover > svg {\n fill: #fff;\n}\n\n.graphiql-container .CodeMirror-scroll {\n overflow-scrolling: touch;\n}\n\n.graphiql-container .CodeMirror {\n color: #141823;\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n font-size: 13px;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n.graphiql-container .CodeMirror-lines {\n padding: 20px 0;\n}\n\n.CodeMirror-hint-information .content {\n box-orient: vertical;\n color: #141823;\n display: flex;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 13px;\n line-clamp: 3;\n line-height: 16px;\n max-height: 48px;\n overflow: hidden;\n text-overflow: -o-ellipsis-lastline;\n}\n\n.CodeMirror-hint-information .content p:first-child {\n margin-top: 0;\n}\n\n.CodeMirror-hint-information .content p:last-child {\n margin-bottom: 0;\n}\n\n.CodeMirror-hint-information .infoType {\n color: #ca9800;\n cursor: pointer;\n display: inline;\n margin-right: 0.5em;\n}\n\n.autoInsertedLeaf.cm-property {\n animation-duration: 6s;\n animation-name: insertionFade;\n border-bottom: 2px solid rgba(255, 255, 255, 0);\n border-radius: 2px;\n margin: -2px -4px -1px;\n padding: 2px 4px 1px;\n}\n\n@keyframes insertionFade {\n from,\n to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%,\n 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n}\n\ndiv.CodeMirror-lint-tooltip {\n background-color: white;\n border-radius: 2px;\n border: 0;\n color: #141823;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n font-size: 13px;\n line-height: 16px;\n max-width: 430px;\n opacity: 0;\n padding: 8px 10px;\n transition: opacity 0.15s;\n white-space: pre-wrap;\n}\n\ndiv.CodeMirror-lint-tooltip > * {\n padding-left: 23px;\n}\n\ndiv.CodeMirror-lint-tooltip > * + * {\n margin-top: 12px;\n}\n\n.graphiql-container .variable-editor-title-text {\n cursor: pointer;\n display: inline-block;\n color: gray;\n}\n\n.graphiql-container .variable-editor-title-text.active {\n color: #000;\n}\n\n.graphiql-container .tabs {\n height: 42px;\n background-image: linear-gradient(#f7f7f7, #e2e2e2);\n display: flex;\n align-items: center;\n}\n\n.graphiql-container .tab {\n position: relative;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 0;\n padding-right: 6px;\n padding-left: 14px;\n height: 100%;\n color: rgba(0, 0, 0, 0.6);\n\n border-left: 1px solid lightgray;\n /*\n Needed for \`button\` components.\n */\n border-top-style: none;\n border-bottom-style: none;\n border-right-style: none;\n}\n\n/*\n If it's only one tab, we don't have the X button, so we want more padding.\n In the .tabs container, we have one more child - the plus button.\n So if this tab is first child and the second last at the same time,\n this is the case we want to target.\n*/\n\n.graphiql-container .tab:first-child:nth-last-child(2) {\n padding-right: 14px;\n}\n\n.graphiql-container .tab:hover {\n background-image: linear-gradient(\n rgba(245, 245, 245, 0.7),\n rgba(215, 215, 215, 1)\n );\n color: rgba(0, 0, 0, 0.8);\n}\n\n.graphiql-container .tab.active {\n background-image: linear-gradient(\n rgba(233, 233, 233, 0.7),\n rgba(205, 205, 205, 1)\n );\n color: black;\n}\n\n/* {\n background-image: linear-gradient(\n rgba(223, 223, 223, 0.5),\n rgba(196, 196, 196, 1)\n );\n} */\n\n.graphiql-container .tab .close {\n display: inline-block;\n cursor: pointer;\n border: none;\n background: transparent;\n margin-left: 6px;\n padding: 3px 6px;\n border-radius: 4px;\n}\n\n.graphiql-container .tab:hover .close,\n.graphiql-container .tab.active .close {\n opacity: 1;\n}\n\n.graphiql-container .tab .close::before {\n content: '✕';\n display: inline-block;\n font-weight: bold;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.7);\n height: 14px;\n}\n\n.graphiql-container .tab .close:hover {\n background: rgba(0, 0, 0, 0.08);\n}\n\n.graphiql-container .tab .close:active {\n background: rgba(0, 0, 0, 0.12);\n}\n\n.graphiql-container .tab-add {\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n background: transparent;\n line-height: 1;\n font-size: 26px;\n padding: 0 8px;\n height: 30px;\n border-radius: 4px;\n color: rgba(0, 0, 0, 0.5);\n padding-bottom: 3px;\n margin-left: 6px;\n cursor: pointer;\n}\n\n.graphiql-container .tab-add:hover {\n background: rgba(0, 0, 0, 0.06);\n}\n\n.graphiql-container .tab-add:active {\n background: rgba(0, 0, 0, 0.1);\n}\n\n/* COLORS */\n\n.graphiql-container .CodeMirror-foldmarker {\n border-radius: 4px;\n background: #08f;\n background: linear-gradient(#43a8ff, #0f83e8);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n color: white;\n font-family: arial;\n font-size: 12px;\n line-height: 0;\n margin: 0 3px;\n padding: 0px 4px 1px;\n text-shadow: 0 -1px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket {\n color: #555;\n text-decoration: underline;\n}\n\n.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: #f00;\n}\n\n/* Comment */\n\n.cm-comment {\n color: #666;\n}\n\n/* Punctuation */\n\n.cm-punctuation {\n color: #555;\n}\n\n/* Keyword */\n\n.cm-keyword {\n color: #b11a04;\n}\n\n/* OperationName, FragmentName */\n\n.cm-def {\n color: #d2054e;\n}\n\n/* FieldName */\n\n.cm-property {\n color: #1f61a0;\n}\n\n/* FieldAlias */\n\n.cm-qualifier {\n color: #1c92a9;\n}\n\n/* ArgumentName and ObjectFieldName */\n\n.cm-attribute {\n color: #8b2bb9;\n}\n\n/* Number */\n\n.cm-number {\n color: #2882f9;\n}\n\n/* String */\n\n.cm-string {\n color: #d64292;\n}\n\n/* Boolean */\n\n.cm-builtin {\n color: #d47509;\n}\n\n/* EnumValue */\n\n.cm-string-2 {\n color: #0b7fc7;\n}\n\n/* Variable */\n\n.cm-variable {\n color: #397d13;\n}\n\n/* Directive */\n\n.cm-meta {\n color: #b33086;\n}\n\n/* Type */\n\n.cm-atom {\n color: #ca9800;\n}\n\n/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n color: black;\n font-family: monospace;\n height: 300px;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n\n.CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler,\n.CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n\n.CodeMirror-linenumbers {\n}\n\n.CodeMirror-linenumber {\n color: #666;\n min-width: 20px;\n padding: 0 3px 0 5px;\n text-align: right;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker {\n color: black;\n}\n\n.CodeMirror-guttermarker-subtle {\n color: #666;\n}\n\n/* CURSOR */\n\n.CodeMirror .CodeMirror-cursor {\n border-left: 1px solid black;\n}\n\n/* Shown when moving in bi-directional text */\n\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {\n background: #7e7;\n border: 0;\n width: auto;\n}\n\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n\n.cm-animate-fat-cursor {\n animation: blink 1.06s steps(1) infinite;\n border: 0;\n width: auto;\n}\n\n@keyframes blink {\n 0% {\n background: #7e7;\n }\n 50% {\n background: none;\n }\n 100% {\n background: #7e7;\n }\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n\ndiv.CodeMirror-overwrite div.CodeMirror-cursor {\n}\n\n.cm-tab {\n display: inline-block;\n text-decoration: inherit;\n}\n\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-keyword {\n color: #708;\n}\n\n.cm-s-default .cm-atom {\n color: #219;\n}\n\n.cm-s-default .cm-number {\n color: #164;\n}\n\n.cm-s-default .cm-def {\n color: #00f;\n}\n\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {\n}\n\n.cm-s-default .cm-variable-2 {\n color: #05a;\n}\n\n.cm-s-default .cm-variable-3 {\n color: #085;\n}\n\n.cm-s-default .cm-comment {\n color: #a50;\n}\n\n.cm-s-default .cm-string {\n color: #a11;\n}\n\n.cm-s-default .cm-string-2 {\n color: #f50;\n}\n\n.cm-s-default .cm-meta {\n color: #555;\n}\n\n.cm-s-default .cm-qualifier {\n color: #555;\n}\n\n.cm-s-default .cm-builtin {\n color: #30a;\n}\n\n.cm-s-default .cm-bracket {\n color: #666;\n}\n\n.cm-s-default .cm-tag {\n color: #170;\n}\n\n.cm-s-default .cm-attribute {\n color: #00c;\n}\n\n.cm-s-default .cm-header {\n color: blue;\n}\n\n.cm-s-default .cm-quote {\n color: #090;\n}\n\n.cm-s-default .cm-hr {\n color: #666;\n}\n\n.cm-s-default .cm-link {\n color: #00c;\n}\n\n.cm-negative {\n color: #d44;\n}\n\n.cm-positive {\n color: #292;\n}\n\n.cm-header,\n.cm-strong {\n font-weight: bold;\n}\n\n.cm-em {\n font-style: italic;\n}\n\n.cm-link {\n text-decoration: underline;\n}\n\n.cm-strikethrough {\n text-decoration: line-through;\n}\n\n.cm-s-default .cm-error {\n color: #f00;\n}\n\n.cm-invalidchar {\n color: #f00;\n}\n\n.CodeMirror-composing {\n border-bottom: 2px solid;\n}\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {\n color: #0f0;\n}\n\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: #f22;\n}\n\n.CodeMirror-matchingtag {\n background: rgba(255, 150, 0, 0.3);\n}\n\n.CodeMirror-activeline-background {\n background: #e8f2ff;\n}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n background: white;\n overflow: hidden;\n position: relative;\n}\n\n.CodeMirror-scroll {\n height: 100%;\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px;\n margin-right: -30px;\n outline: none; /* Prevent dragging from highlighting the element */\n overflow: scroll !important; /* Things will break if this is overridden */\n padding-bottom: 30px;\n position: relative;\n}\n\n.CodeMirror-sizer {\n border-right: 30px solid transparent;\n position: relative;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n\n.CodeMirror-vscrollbar,\n.CodeMirror-hscrollbar,\n.CodeMirror-scrollbar-filler,\n.CodeMirror-gutter-filler {\n display: none;\n position: absolute;\n z-index: 6;\n}\n\n.CodeMirror-vscrollbar {\n overflow-x: hidden;\n overflow-y: scroll;\n right: 0;\n top: 0;\n}\n\n.CodeMirror-hscrollbar {\n bottom: 0;\n left: 0;\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.CodeMirror-scrollbar-filler {\n right: 0;\n bottom: 0;\n}\n\n.CodeMirror-gutter-filler {\n left: 0;\n bottom: 0;\n}\n\n.CodeMirror-gutters {\n min-height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n}\n\n.CodeMirror-gutter {\n display: inline-block;\n height: 100%;\n margin-bottom: -30px;\n vertical-align: top;\n white-space: normal;\n}\n\n.CodeMirror-gutter-wrapper {\n background: none !important;\n border: none !important;\n position: absolute;\n z-index: 4;\n}\n\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 4;\n}\n\n.CodeMirror-gutter-elt {\n cursor: default;\n position: absolute;\n z-index: 4;\n}\n\n.CodeMirror-gutter-wrapper {\n user-select: none;\n}\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n\n.CodeMirror pre {\n -webkit-tap-highlight-color: transparent;\n /* Reset some styles that the rest of the page might have set */\n background: transparent;\n border-radius: 0;\n border-width: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n font-variant-ligatures: none;\n line-height: inherit;\n margin: 0;\n overflow: visible;\n position: relative;\n white-space: pre;\n word-wrap: normal;\n z-index: 2;\n}\n\n.CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n overflow: auto;\n position: relative;\n z-index: 2;\n}\n\n.CodeMirror-widget {\n}\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n height: 0;\n overflow: hidden;\n position: absolute;\n visibility: hidden;\n width: 100%;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n}\n\n.CodeMirror-measure pre {\n position: static;\n}\n\ndiv.CodeMirror-cursors {\n position: relative;\n visibility: hidden;\n z-index: 3;\n}\n\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected {\n background: #d9d9d9;\n}\n\n.CodeMirror-focused .CodeMirror-selected {\n background: #d7d4f0;\n}\n\n.CodeMirror-crosshair {\n cursor: crosshair;\n}\n\n.CodeMirror-line::selection,\n.CodeMirror-line > span::selection,\n.CodeMirror-line > span > span::selection {\n background: #d7d4f0;\n}\n\n.CodeMirror-line::-moz-selection,\n.CodeMirror-line > span::-moz-selection,\n.CodeMirror-line > span > span::-moz-selection {\n background: #d7d4f0;\n}\n\n.cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, 0.4);\n}\n\n/* Used to force a border model for a node */\n\n.cm-force-border {\n padding-right: 0.1px;\n}\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n\n.cm-tab-wrap-hack:after {\n content: '';\n}\n\n/* Help users use markselection to safely style text background */\n\nspan.CodeMirror-selectedtext {\n background: none;\n}\n\n.CodeMirror-dialog {\n background: inherit;\n color: inherit;\n left: 0;\n right: 0;\n overflow: hidden;\n padding: 0.1em 0.8em;\n position: absolute;\n z-index: 15;\n}\n\n.CodeMirror-dialog-top {\n border-bottom: 1px solid #eee;\n top: 0;\n}\n\n.CodeMirror-dialog-bottom {\n border-top: 1px solid #eee;\n bottom: 0;\n}\n\n.CodeMirror-dialog input {\n background: transparent;\n border: 1px solid #d3d6db;\n color: inherit;\n font-family: monospace;\n outline: none;\n width: 20em;\n}\n\n.CodeMirror-dialog button {\n font-size: 70%;\n}\n\n.CodeMirror-foldmarker {\n color: blue;\n cursor: pointer;\n font-family: arial;\n line-height: 0.3;\n text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px,\n #b9f -1px 1px 2px;\n}\n.CodeMirror-foldgutter {\n width: 0.7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n content: '\\25BE';\n}\n.CodeMirror-foldgutter-folded:after {\n content: '\\25B8';\n}\n\n.CodeMirror-info {\n background: white;\n border-radius: 2px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n box-sizing: border-box;\n color: #555;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 13px;\n line-height: 16px;\n margin: 8px -8px;\n max-width: 400px;\n opacity: 0;\n overflow: hidden;\n padding: 8px 8px;\n position: fixed;\n transition: opacity 0.15s;\n z-index: 50;\n}\n\n.CodeMirror-info :first-child {\n margin-top: 0;\n}\n\n.CodeMirror-info :last-child {\n margin-bottom: 0;\n}\n\n.CodeMirror-info p {\n margin: 1em 0;\n}\n\n.CodeMirror-info .info-description {\n color: #777;\n line-height: 16px;\n margin-top: 1em;\n max-height: 80px;\n overflow: hidden;\n}\n\n.CodeMirror-info .info-deprecation {\n background: #fffae8;\n box-shadow: inset 0 1px 1px -1px #bfb063;\n color: #867f70;\n line-height: 16px;\n margin: -8px;\n margin-top: 8px;\n max-height: 80px;\n overflow: hidden;\n padding: 8px;\n}\n\n.CodeMirror-info .info-deprecation-label {\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n user-select: none;\n}\n\n.CodeMirror-info .info-deprecation-label + * {\n margin-top: 0;\n}\n\n.CodeMirror-info a {\n text-decoration: none;\n}\n\n.CodeMirror-info a:hover {\n text-decoration: underline;\n}\n\n.CodeMirror-info .type-name {\n color: #ca9800;\n}\n\n.CodeMirror-info .field-name {\n color: #1f61a0;\n}\n\n.CodeMirror-info .enum-value {\n color: #0b7fc7;\n}\n\n.CodeMirror-info .arg-name {\n color: #8b2bb9;\n}\n\n.CodeMirror-info .directive-name {\n color: #b33086;\n}\n\n.CodeMirror-jump-token {\n text-decoration: underline;\n cursor: pointer;\n}\n\n/* The lint marker gutter */\n.CodeMirror-lint-markers {\n width: 16px;\n}\n.CodeMirror-lint-tooltip {\n background-color: infobackground;\n border-radius: 4px 4px 4px 4px;\n border: 1px solid black;\n color: infotext;\n font-family: monospace;\n font-size: 10pt;\n max-width: 600px;\n opacity: 0;\n overflow: hidden;\n padding: 2px 5px;\n position: fixed;\n transition: opacity 0.4s;\n white-space: pre-wrap;\n z-index: 100;\n}\n.CodeMirror-lint-mark-error,\n.CodeMirror-lint-mark-warning {\n background-position: left bottom;\n background-repeat: repeat-x;\n}\n.CodeMirror-lint-mark-error {\n background-image: url(${m});\n}\n.CodeMirror-lint-mark-warning {\n background-image: url(${g});\n}\n.CodeMirror-lint-marker-error,\n.CodeMirror-lint-marker-warning {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n position: relative;\n vertical-align: middle;\n width: 16px;\n}\n.CodeMirror-lint-message-error,\n.CodeMirror-lint-message-warning {\n background-position: top left;\n background-repeat: no-repeat;\n padding-left: 18px;\n}\n.CodeMirror-lint-marker-error,\n.CodeMirror-lint-message-error {\n background-image: url(${v});\n}\n.CodeMirror-lint-marker-warning,\n.CodeMirror-lint-message-warning {\n background-image: url(${y});\n}\n.CodeMirror-lint-marker-multiple {\n background-image: url(${b});\n background-position: right bottom;\n background-repeat: no-repeat;\n width: 100%;\n height: 100%;\n}\n\n.graphiql-container .spinner-container {\n height: 36px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 36px;\n z-index: 10;\n}\n\n.graphiql-container .spinner {\n animation: rotation 0.6s infinite linear;\n border-bottom: 6px solid rgba(150, 150, 150, 0.15);\n border-left: 6px solid rgba(150, 150, 150, 0.15);\n border-radius: 100%;\n border-right: 6px solid rgba(150, 150, 150, 0.15);\n border-top: 6px solid rgba(150, 150, 150, 0.8);\n display: inline-block;\n height: 24px;\n position: absolute;\n vertical-align: middle;\n width: 24px;\n}\n\n@keyframes rotation {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n\n.CodeMirror-hints {\n background: white;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n font-size: 13px;\n list-style: none;\n margin-left: -6px;\n margin: 0;\n max-height: 14.5em;\n overflow: hidden;\n overflow-y: auto;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n\n.CodeMirror-hint {\n border-top: solid 1px #f7f7f7;\n color: #141823;\n cursor: pointer;\n margin: 0;\n max-width: 300px;\n overflow: hidden;\n padding: 2px 6px;\n white-space: pre;\n}\n\nli.CodeMirror-hint-active {\n background-color: #08f;\n border-top-color: white;\n color: white;\n}\n\n.CodeMirror-hint-information {\n border-top: solid 1px #c0c0c0;\n max-width: 300px;\n padding: 4px 6px;\n position: relative;\n z-index: 1;\n}\n\n.CodeMirror-hint-information:first-child {\n border-bottom: solid 1px #c0c0c0;\n border-top: none;\n margin-bottom: -1px;\n}\n\n.CodeMirror-hint-deprecation {\n background: #fffae8;\n box-shadow: inset 0 1px 1px -1px #bfb063;\n color: #867f70;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 13px;\n line-height: 16px;\n margin-top: 4px;\n max-height: 80px;\n overflow: hidden;\n padding: 6px;\n}\n\n.CodeMirror-hint-deprecation .deprecation-label {\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n user-select: none;\n}\n\n.CodeMirror-hint-deprecation .deprecation-label + * {\n margin-top: 0;\n}\n\n.CodeMirror-hint-deprecation :last-child {\n margin-bottom: 0;\n}\n\n.graphiql-container .doc-explorer {\n background: white;\n}\n\n.graphiql-container .doc-explorer-title-bar,\n.graphiql-container .history-title-bar {\n cursor: default;\n display: flex;\n height: 34px;\n line-height: 14px;\n padding: 8px 8px 5px;\n position: relative;\n user-select: none;\n}\n\n.graphiql-container .doc-explorer-title,\n.graphiql-container .history-title {\n flex: 1;\n font-weight: bold;\n overflow-x: hidden;\n padding: 10px 0 10px 10px;\n text-align: center;\n text-overflow: ellipsis;\n user-select: text;\n white-space: nowrap;\n}\n\n.graphiql-container .doc-explorer-back {\n color: #3b5998;\n cursor: pointer;\n margin: -7px 0 -6px -8px;\n overflow-x: hidden;\n padding: 17px 12px 16px 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n background: 0;\n border: 0;\n line-height: 14px;\n}\n\n.graphiql-container .doc-explorer-back:before {\n border-left: 2px solid #3b5998;\n border-top: 2px solid #3b5998;\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 3px -1px 0;\n position: relative;\n transform: rotate(-45deg);\n width: 9px;\n}\n\n.graphiql-container .doc-explorer-rhs {\n position: relative;\n}\n\n.graphiql-container .doc-explorer-contents,\n.graphiql-container .history-contents {\n background-color: #ffffff;\n border-top: 1px solid #d6d6d6;\n bottom: 0;\n left: 0;\n overflow-y: auto;\n padding: 20px 15px;\n position: absolute;\n right: 0;\n top: 47px;\n}\n\n.graphiql-container .doc-type-description p:first-child,\n.graphiql-container .doc-type-description blockquote:first-child {\n margin-top: 0;\n}\n\n.graphiql-container .doc-explorer-contents a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.graphiql-container .doc-explorer-contents a:hover {\n text-decoration: underline;\n}\n\n.graphiql-container .doc-value-description > :first-child {\n margin-top: 4px;\n}\n\n.graphiql-container .doc-value-description > :last-child {\n margin-bottom: 4px;\n}\n\n.graphiql-container .doc-type-description code,\n.graphiql-container .doc-type-description pre,\n.graphiql-container .doc-category code,\n.graphiql-container .doc-category pre {\n --saf-0: rgba(var(--sk_foreground_low, 29, 28, 29), 0.13);\n font-size: 12px;\n line-height: 1.50001;\n font-variant-ligatures: none;\n white-space: pre;\n white-space: pre-wrap;\n word-wrap: break-word;\n word-break: normal;\n -webkit-tab-size: 4;\n -moz-tab-size: 4;\n tab-size: 4;\n}\n\n.graphiql-container .doc-type-description code,\n.graphiql-container .doc-category code {\n padding: 2px 3px 1px;\n border: 1px solid var(--saf-0);\n border-radius: 3px;\n background-color: rgba(var(--sk_foreground_min, 29, 28, 29), 0.04);\n color: #e01e5a;\n background-color: white;\n}\n\n.graphiql-container .doc-category {\n margin: 20px 0;\n}\n\n.graphiql-container .doc-category-title {\n border-bottom: 1px solid #e0e0e0;\n color: #777;\n cursor: default;\n font-size: 14px;\n font-variant: small-caps;\n font-weight: bold;\n letter-spacing: 1px;\n margin: 0 -15px 10px 0;\n padding: 10px 0;\n user-select: none;\n}\n\n.graphiql-container .doc-category-item {\n margin: 12px 0;\n color: #555;\n}\n\n.graphiql-container .keyword {\n color: #b11a04;\n}\n\n.graphiql-container .type-name {\n color: #ca9800;\n}\n\n.graphiql-container .field-name {\n color: #1f61a0;\n}\n\n.graphiql-container .field-short-description {\n color: #666;\n margin-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.graphiql-container .enum-value {\n color: #0b7fc7;\n}\n\n.graphiql-container .arg-name {\n color: #8b2bb9;\n}\n\n.graphiql-container .arg {\n display: block;\n margin-left: 1em;\n}\n\n.graphiql-container .arg:first-child:last-child,\n.graphiql-container .arg:first-child:nth-last-child(2),\n.graphiql-container .arg:first-child:nth-last-child(2) ~ .arg {\n display: inherit;\n margin: inherit;\n}\n\n.graphiql-container .arg:first-child:nth-last-child(2):after {\n content: ', ';\n}\n\n.graphiql-container .arg-default-value {\n color: #43a047;\n}\n\n.graphiql-container .doc-deprecation {\n background: #fffae8;\n box-shadow: inset 0 0 1px #bfb063;\n color: #867f70;\n line-height: 16px;\n margin: 8px -8px;\n max-height: 80px;\n overflow: hidden;\n padding: 8px;\n border-radius: 3px;\n}\n\n.graphiql-container .doc-deprecation:before {\n content: 'Deprecated:';\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n user-select: none;\n}\n\n.graphiql-container .doc-deprecation > :first-child {\n margin-top: 0;\n}\n\n.graphiql-container .doc-deprecation > :last-child {\n margin-bottom: 0;\n}\n\n.graphiql-container .show-btn {\n -webkit-appearance: initial;\n display: block;\n border-radius: 3px;\n border: solid 1px #ccc;\n text-align: center;\n padding: 8px 12px 10px;\n width: 100%;\n box-sizing: border-box;\n background: #fbfcfc;\n color: #555;\n cursor: pointer;\n}\n\n.graphiql-container .search-box {\n border-bottom: 1px solid #d3d6db;\n display: flex;\n align-items: center;\n font-size: 14px;\n margin: -15px -15px 12px 0;\n position: relative;\n}\n\n.graphiql-container .search-box-icon {\n cursor: pointer;\n display: block;\n font-size: 24px;\n transform: rotate(-45deg);\n user-select: none;\n}\n\n.graphiql-container .search-box .search-box-clear {\n background-color: #d0d0d0;\n border-radius: 12px;\n color: #fff;\n cursor: pointer;\n font-size: 11px;\n padding: 1px 5px 2px;\n position: absolute;\n right: 3px;\n user-select: none;\n border: 0;\n}\n\n.graphiql-container .search-box .search-box-clear:hover {\n background-color: #b9b9b9;\n}\n\n.graphiql-container .search-box > input {\n border: none;\n box-sizing: border-box;\n font-size: 14px;\n outline: none;\n padding: 6px 24px 8px 20px;\n width: 100%;\n}\n\n.graphiql-container .error-container {\n font-weight: bold;\n left: 0;\n letter-spacing: 1px;\n opacity: 0.5;\n position: absolute;\n right: 0;\n text-align: center;\n text-transform: uppercase;\n top: 50%;\n transform: translate(0, -50%);\n}\n\n.graphiql-container .history-contents {\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n}\n\n.graphiql-container .history-contents {\n margin: 0;\n padding: 0;\n}\n\n.graphiql-container .history-contents li {\n align-items: center;\n display: flex;\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n padding: 8px;\n border-bottom: 1px solid #e0e0e0;\n}\n\n.graphiql-container .history-contents li button:not(.history-label) {\n display: none;\n margin-left: 10px;\n}\n\n.graphiql-container .history-contents li:hover button:not(.history-label),\n.graphiql-container\n .history-contents\n li:focus-within\n button:not(.history-label) {\n display: inline-block;\n}\n\n.graphiql-container .history-contents input,\n.graphiql-container .history-contents button {\n padding: 0;\n background: 0;\n border: 0;\n font-size: inherit;\n font-family: inherit;\n line-height: 14px;\n color: inherit;\n}\n\n.graphiql-container .history-contents input {\n flex-grow: 1;\n}\n\n.graphiql-container .history-contents input::placeholder {\n color: inherit;\n}\n\n.graphiql-container .history-contents button {\n cursor: pointer;\n text-align: left;\n}\n\n.graphiql-container .history-contents .history-label {\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n`,""]);const k=h},743:(e,t,n)=>{"use strict";n.d(t,{GU:()=>v,V4:()=>y,Wl:()=>g});var r=n(8169),i=n(7459),o=n(179),a=n(5215),s=n(5284),l=n(5592),c=n(5251),u=n(486),p=n(4212),f=n(907),d=n(5664),h=n(9820);function m(e,t){for(var n=0;n{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),p=n(540),f=n.n(p),d=n(1113),h=n.n(d),m=n(8620),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=f(),i()(m.A,g);const v=m.A&&m.A.locals?m.A.locals:void 0},792:(e,t,n)=>{"use strict";n.r(t);var r=n(1566),i=n(8522),o=(n(1794),n(7288),n(6397),n(7983),n(1129),Object.defineProperty),a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&f(e)}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&d(e):e.state.jump.cursor=null}function c(e,t){if(e.state.jump.isHoldingModifier||!p(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const n=a((a=>{a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&d(e),r.C.off(document,"keyup",n),r.C.off(document,"click",i),e.off("mousedown",o))}),"onKeyUp"),i=a((t=>{const n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)}),"onClick"),o=a(((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)}),"onMouseDown");r.C.on(document,"keyup",n),r.C.on(document,"click",i),e.on("mousedown",o)}r.C.defineOption("jump",!1,((e,t,n)=>{if(n&&n!==r.C.Init){const t=e.state.jump.onMouseOver;r.C.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;r.C.off(e.getWrapperElement(),"mouseout",n),r.C.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:s.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:c.bind(null,e)};r.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver),r.C.on(e.getWrapperElement(),"mouseout",n.onMouseOut),r.C.on(document,"keydown",n.onKeyDown)}})),a(s,"onMouseOver"),a(l,"onMouseOut"),a(c,"onKeyDown");const u="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function p(e){return e===(u?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){const t=o(r,i,e);if(t){const i=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=i,e.state.jump.destination=t}}}function d(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}a(p,"isJumpModifier"),a(f,"enableJumpMode"),a(d,"disableJumpMode"),r.C.registerHelper("jump","graphql",((e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const n=e.state,r=n.kind,o=n.step,a=(0,i.g)(t.schema,n);return"Field"===r&&0===o&&a.fieldDef||"AliasedField"===r&&2===o&&a.fieldDef?(0,i.a)(a):"Directive"===r&&1===o&&a.directiveDef?(0,i.b)(a):"Argument"===r&&0===o&&a.argDef?(0,i.c)(a):"EnumValue"===r&&a.enumValue?(0,i.d)(a):"NamedType"===r&&a.type?(0,i.e)(a):void 0}))},835:(e,t,n)=>{"use strict";n.r(t);var r=n(1566),i=n(1794),o=n(7292),a=(n(7288),n(6397),Object.defineProperty);function s(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-results",(e=>{const t=(0,o.o)({eatWhitespace:e=>e.eatSpace(),lexRules:l,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),a(s,"name",{value:"indent",configurable:!0});const l={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,i.p)("{"),(0,i.l)("Entry",(0,i.p)(",")),(0,i.p)("}")],Entry:[(0,i.t)("String","def"),(0,i.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Keyword","builtin")],NullValue:[(0,i.t)("Keyword","keyword")],ListValue:[(0,i.p)("["),(0,i.l)("Value",(0,i.p)(",")),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.l)("ObjectField",(0,i.p)(",")),(0,i.p)("}")],ObjectField:[(0,i.t)("String","property"),(0,i.p)(":"),"Value"]}},895:(e,t,n)=>{"use strict";n.r(t);var r=n(1566),i=(n(8241),n(9820)),o=n(6854),a=n(5785),s=n(907),l=n(5903),c=n(6959),u=n(3417),p=n(6630),f=n(1794),d=n(1589),h=n(7292),m=n(7983),g=(n(7288),n(6397),Object.defineProperty),v=(e,t)=>g(e,"name",{value:t,configurable:!0});function y(e){let t;return k(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function b(e,t,n){return n===m.S.name&&e.getQueryType()===t?m.S:n===m.T.name&&e.getQueryType()===t?m.T:n===m.a.name&&(0,i.ML)(t)?m.a:"getFields"in t?t.getFields()[n]:null}function k(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function E(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:_(C(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):T(e,(e=>!e.isDeprecated))}function T(e,t){const n=e.filter(t);return 0===n.length?e:n}function C(e){return e.toLowerCase().replace(/\W/g,"")}function _(e,t){let n=S(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function S(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}v(y,"getDefinitionState"),v(b,"getFieldDef"),v(k,"forEachState"),v(E,"objectValues"),v(x,"hintList"),v(w,"filterAndSortList"),v(T,"filterNonEmpty"),v(C,"normalizeText"),v(_,"getProximity"),v(S,"lexicalDistance");const A={command:"editor.action.triggerSuggest",title:"Suggestions"},N=v((e=>{const t=[];if(e)try{(0,o.YR)((0,a.qg)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t}),"collectFragmentDefs");function O(e,t,n,r,o,a){var s;const l=Object.assign(Object.assign({},a),{schema:e}),c=r||B(t,n),u="Invalid"===c.state.kind?c.state.prevState:c.state;if(!u)return[];const p=u.kind,d=u.step,h=W(e,c.state);if(p===f.R.DOCUMENT)return x(c,[{label:"query",kind:f.C.Function},{label:"mutation",kind:f.C.Function},{label:"subscription",kind:f.C.Function},{label:"fragment",kind:f.C.Function},{label:"{",kind:f.C.Constructor}]);if(p===f.R.IMPLEMENTS||p===f.R.NAMED_TYPE&&(null===(s=u.prevState)||void 0===s?void 0:s.kind)===f.R.IMPLEMENTS)return M(c,u,e,t,h);if(p===f.R.SELECTION_SET||p===f.R.FIELD||p===f.R.ALIASED_FIELD)return L(c,h,l);if(p===f.R.ARGUMENTS||p===f.R.ARGUMENT&&0===d){const e=h.argDefs;if(e)return x(c,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:A,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:f.C.Variable,type:e.type}})))}if((p===f.R.OBJECT_VALUE||p===f.R.OBJECT_FIELD&&0===d)&&h.objectFieldDefs){const e=E(h.objectFieldDefs),t=p===f.R.OBJECT_VALUE?f.C.Value:f.C.Field;return x(c,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(p===f.R.ENUM_VALUE||p===f.R.LIST_VALUE&&1===d||p===f.R.OBJECT_FIELD&&2===d||p===f.R.ARGUMENT&&2===d)return F(c,h,t,e);if(p===f.R.VARIABLE&&1===d){const n=(0,i.MR)(h.inputType);return x(c,V(t,e,c).filter((e=>e.detail===(null==n?void 0:n.name))))}return p===f.R.TYPE_CONDITION&&1===d||p===f.R.NAMED_TYPE&&null!=u.prevState&&u.prevState.kind===f.R.TYPE_CONDITION?R(c,h,e):p===f.R.FRAGMENT_SPREAD&&1===d?P(c,h,e,t,Array.isArray(o)?o:N(o)):p===f.R.VARIABLE_DEFINITION&&2===d||p===f.R.LIST_TYPE&&1===d||p===f.R.NAMED_TYPE&&u.prevState&&(u.prevState.kind===f.R.VARIABLE_DEFINITION||u.prevState.kind===f.R.LIST_TYPE||u.prevState.kind===f.R.NON_NULL_TYPE)?z(c,e):p===f.R.DIRECTIVE?U(c,u,e):[]}v(O,"getAutocompleteSuggestions");const D=" {\n $1\n}",I=v((e=>{const t=e.type;if((0,i.ML)(t))return D;if((0,i.Fs)(t)&&(0,i.ML)(t.ofType))return D;if((0,i.bd)(t)){if((0,i.ML)(t.ofType))return D;if((0,i.Fs)(t.ofType)&&(0,i.ML)(t.ofType.ofType))return D}return null}),"getInsertText");function L(e,t,n){var r;if(t.parentType){const o=t.parentType;let a=[];return"getFields"in o&&(a=E(o.getFields())),(0,i.ML)(o)&&a.push(s.of),o===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&a.push(s.S0,s.Xe),x(e,a.map(((e,t)=>{var n;const r={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:f.C.Field,type:e.type},i=I(e);return i&&(r.insertText=e.name+i,r.insertTextFormat=f.I.Snippet,r.command=A),r})))}return[]}function F(e,t,n,r){const o=(0,i.MR)(t.inputType),a=V(n,r,e).filter((e=>e.detail===o.name));return o instanceof i.Zb?x(e,o.getValues().map((e=>{var t;return{label:e.name,detail:String(o),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:f.C.EnumMember,type:o}})).concat(a)):o===l.kk?x(e,a.concat([{label:"true",detail:String(l.kk),documentation:"Not false.",kind:f.C.Variable,type:l.kk},{label:"false",detail:String(l.kk),documentation:"Not true.",kind:f.C.Variable,type:l.kk}])):a}function M(e,t,n,r,o){if(t.needsSeparator)return[];const a=E(n.getTypeMap()).filter(i.kD),s=a.map((({name:e})=>e)),l=new Set;H(r,((e,t)=>{var r,a,c,u,p;if(t.name&&(t.kind!==f.R.INTERFACE_DEF||s.includes(t.name)||l.add(t.name),t.kind===f.R.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===f.R.IMPLEMENTS))if(o.interfaceDef){if(null===(a=o.interfaceDef)||void 0===a?void 0:a.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(c=o.interfaceDef)||void 0===c?void 0:c.toConfig();o.interfaceDef=new i.VA(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new i.VA({name:t.name,fields:{}})]}))}else if(o.objectTypeDef){if(null===(u=o.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(p=o.objectTypeDef)||void 0===p?void 0:p.toConfig();o.objectTypeDef=new i.bh(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new i.VA({name:t.name,fields:{}})]}))}}));const c=o.interfaceDef||o.objectTypeDef,u=((null==c?void 0:c.getInterfaces())||[]).map((({name:e})=>e));return x(e,a.concat([...l].map((e=>({name:e})))).filter((({name:e})=>e!==(null==c?void 0:c.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:f.C.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}function R(e,t,n,r){let o;if(t.parentType)if((0,i.Lc)(t.parentType)){const e=(0,i.N_)(t.parentType),r=n.getPossibleTypes(e),a=Object.create(null);r.forEach((e=>{e.getInterfaces().forEach((e=>{a[e.name]=e}))})),o=r.concat(E(a))}else o=[t.parentType];else o=E(n.getTypeMap()).filter(i.ML);return x(e,o.map((e=>{const t=(0,i.MR)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:f.C.Field}})))}function P(e,t,n,r,o){if(!r)return[];const a=n.getTypeMap(),s=y(e.state),l=q(r);return o&&o.length>0&&l.push(...o),x(e,l.filter((e=>a[e.typeCondition.name.value]&&!(s&&s.kind===f.R.FRAGMENT_DEFINITION&&s.name===e.name.value)&&(0,i.ML)(t.parentType)&&(0,i.ML)(a[e.typeCondition.name.value])&&(0,c.uI)(n,t.parentType,a[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(a[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:f.C.Field,type:a[e.typeCondition.name.value]}))))}v(L,"getSuggestionsForFieldNames"),v(F,"getSuggestionsForInputValues"),v(M,"getSuggestionsForImplements"),v(R,"getSuggestionsForFragmentTypeConditions"),v(P,"getSuggestionsForFragmentSpread");const j=v(((e,t)=>{var n,r,i,o,a,s,l,c,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(c=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0}),"getParentDefinition");function V(e,t,n){let r,i=null;const o=Object.create({});return H(e,((e,a)=>{if((null==a?void 0:a.kind)===f.R.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===f.R.NAMED_TYPE&&i){const e=j(a,f.R.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}i&&r&&(o[i]||(o[i]={detail:r.toString(),insertText:"$"===n.string?i:"$"+i,label:i,type:r,kind:f.C.Variable},i=null,r=null))})),E(o)}function q(e){const t=[];return H(e,((e,n)=>{n.kind===f.R.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:f.R.FRAGMENT_DEFINITION,name:{kind:u.b.NAME,value:n.name},selectionSet:{kind:f.R.SELECTION_SET,selections:[]},typeCondition:{kind:f.R.NAMED_TYPE,name:{kind:u.b.NAME,value:n.type}}})})),t}function z(e,t,n){return x(e,E(t.getTypeMap()).filter(i.dX).map((e=>({label:e.name,documentation:e.description,kind:f.C.Variable}))))}function U(e,t,n,r){var i;return(null===(i=t.prevState)||void 0===i?void 0:i.kind)?x(e,n.getDirectives().filter((e=>G(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:f.C.Function})))):[]}function B(e,t){let n=null,r=null,i=null;const o=H(e,((e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function H(e,t){const n=e.split("\n"),r=(0,h.o)();let i=r.startState(),o="",a=new d.C("");for(let e=0;e{var m;switch(t.kind){case f.R.QUERY:case"ShortQuery":d=e.getQueryType();break;case f.R.MUTATION:d=e.getMutationType();break;case f.R.SUBSCRIPTION:d=e.getSubscriptionType();break;case f.R.INLINE_FRAGMENT:case f.R.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case f.R.FIELD:case f.R.ALIASED_FIELD:d&&t.name?(s=p?b(e,p,t.name):null,d=s?s.type:null):s=null;break;case f.R.SELECTION_SET:p=(0,i.MR)(d);break;case f.R.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case f.R.INTERFACE_DEF:t.name&&(c=null,h=new i.VA({name:t.name,interfaces:[],fields:{}}));break;case f.R.OBJECT_TYPE_DEF:t.name&&(h=null,c=new i.bh({name:t.name,interfaces:[],fields:{}}));break;case f.R.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case f.R.FIELD:r=s&&s.args;break;case f.R.DIRECTIVE:r=o&&o.args;break;case f.R.ALIASED_FIELD:{const n=null===(m=t.prevState)||void 0===m?void 0:m.name;if(!n){r=null;break}const i=p?b(e,p,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case f.R.ARGUMENT:if(r)for(let e=0;ee.value===t.name)):null;break;case f.R.LIST_VALUE:const v=(0,i.yl)(l);l=v instanceof i.KT?v.ofType:null;break;case f.R.OBJECT_VALUE:const y=(0,i.MR)(l);u=y instanceof i.zP?y.getFields():null;break;case f.R.OBJECT_FIELD:const k=t.name&&u?u[t.name]:null;l=null==k?void 0:k.type;break;case f.R.NAMED_TYPE:t.name&&(d=e.getType(t.name))}})),{argDef:n,argDefs:r,directiveDef:o,enumValue:a,fieldDef:s,inputType:l,objectFieldDefs:u,parentType:p,type:d,interfaceDef:h,objectTypeDef:c}}v(V,"getVariableCompletions"),v(q,"getFragmentDefinitions"),v(z,"getSuggestionsForVariableDefinition"),v(U,"getSuggestionsForDirective"),v(B,"getTokenAtPosition"),v(H,"runOnlineParser"),v(G,"canUseDirective"),v(W,"getTypeInfo"),r.C.registerHelper("hint","graphql",((e,t)=>{const n=t.schema;if(!n)return;const i=e.getCursor(),o=e.getTokenAt(i),a=null!==o.type&&/"|\w/.test(o.string[0])?o.start:o.end,s=new d.P(i.line,a),l={list:O(n,e.getValue(),s,o,t.externalFragments).map((e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))),from:{line:i.line,ch:a},to:{line:i.line,ch:o.end}};return(null==l?void 0:l.list)&&l.list.length>0&&(l.from=r.C.Pos(l.from.line,l.from.ch),l.to=r.C.Pos(l.to.line,l.to.ch),r.C.signal(e,"hasCompletion",e,l,o)),l}))},907:(e,t,n)=>{"use strict";n.d(t,{$4:()=>d,B0:()=>b,B1:()=>v,P8:()=>h,S0:()=>k,V4:()=>w,Xe:()=>E,Yh:()=>T,Ym:()=>g,em:()=>p,fY:()=>y,of:()=>x,sv:()=>f,z9:()=>m});var r=n(179),i=n(5284),o=n(4956),a=n(8244),s=n(6630),l=n(1183),c=n(5903),u=n(9820),p=new u.bh({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:c.FV,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new u.Gc(new u.KT(new u.Gc(h))),resolve:function(e){return(0,r.A)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.Gc(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new u.Gc(new u.KT(new u.Gc(f))),resolve:function(e){return e.getDirectives()}}}}}),f=new u.bh({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new u.Gc(c.FV),resolve:function(e){return e.name}},description:{type:c.FV,resolve:function(e){return e.description}},isRepeatable:{type:new u.Gc(c.kk),resolve:function(e){return e.isRepeatable}},locations:{type:new u.Gc(new u.KT(new u.Gc(d))),resolve:function(e){return e.locations}},args:{type:new u.Gc(new u.KT(new u.Gc(g))),args:{includeDeprecated:{type:c.kk,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),d=new u.Zb({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new u.bh({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new u.Gc(b),resolve:function(e){return(0,u.lg)(e)?y.SCALAR:(0,u.YQ)(e)?y.OBJECT:(0,u.kD)(e)?y.INTERFACE:(0,u.CK)(e)?y.UNION:(0,u.oF)(e)?y.ENUM:(0,u.qK)(e)?y.INPUT_OBJECT:(0,u.Fs)(e)?y.LIST:(0,u.bd)(e)?y.NON_NULL:void(0,o.A)(0,'Unexpected type: "'.concat((0,i.A)(e),'".'))}},name:{type:c.FV,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:c.FV,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:c.FV,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new u.KT(new u.Gc(m)),args:{includeDeprecated:{type:c.kk,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,u.YQ)(e)||(0,u.kD)(e)){var i=(0,r.A)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new u.KT(new u.Gc(h)),resolve:function(e){if((0,u.YQ)(e)||(0,u.kD)(e))return e.getInterfaces()}},possibleTypes:{type:new u.KT(new u.Gc(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,u.Lc)(e))return i.getPossibleTypes(e)}},enumValues:{type:new u.KT(new u.Gc(v)),args:{includeDeprecated:{type:c.kk,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,u.oF)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new u.KT(new u.Gc(g)),args:{includeDeprecated:{type:c.kk,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,u.qK)(e)){var i=(0,r.A)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),m=new u.bh({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new u.Gc(c.FV),resolve:function(e){return e.name}},description:{type:c.FV,resolve:function(e){return e.description}},args:{type:new u.Gc(new u.KT(new u.Gc(g))),args:{includeDeprecated:{type:c.kk,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new u.Gc(h),resolve:function(e){return e.type}},isDeprecated:{type:new u.Gc(c.kk),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.FV,resolve:function(e){return e.deprecationReason}}}}}),g=new u.bh({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new u.Gc(c.FV),resolve:function(e){return e.name}},description:{type:c.FV,resolve:function(e){return e.description}},type:{type:new u.Gc(h),resolve:function(e){return e.type}},defaultValue:{type:c.FV,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=e.defaultValue,r=(0,l.K)(n,t);return r?(0,a.y)(r):null}},isDeprecated:{type:new u.Gc(c.kk),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.FV,resolve:function(e){return e.deprecationReason}}}}}),v=new u.bh({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new u.Gc(c.FV),resolve:function(e){return e.name}},description:{type:c.FV,resolve:function(e){return e.description}},isDeprecated:{type:new u.Gc(c.kk),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.FV,resolve:function(e){return e.deprecationReason}}}}}),y=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new u.Zb({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),k={name:"__schema",type:new u.Gc(p),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},E={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.Gc(c.FV),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},x={name:"__typename",type:new u.Gc(c.FV),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},w=Object.freeze([p,f,d,h,m,g,v,b]);function T(e){return w.some((function(t){var n=t.name;return e.name===n}))}},937:(e,t,n)=>{"use strict";n.r(t),n.d(t,{j:()=>u});var r=n(1566),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}o(a,"_mergeNamespaces");var s,l={exports:{}};(s=r.a.exports).defineMode("javascript",(function(e,t){var n,r,i=e.indentUnit,a=t.statementIndent,l=t.jsonld,c=t.json||l,u=!1!==t.trackScope,p=t.typescript,f=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}o(e,"kw");var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),a=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),h=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,i){return n=e,r=i,t}function y(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=k,k(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=E,E(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(f))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function b(e){return function(t,n){var r,i=!1;if(l&&"@"==t.peek()&&t.match(m))return n.tokenize=y,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=y),v("string","string")}}function k(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return v("comment","comment")}function E(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=y;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}o(g,"readRegexp"),o(v,"ret"),o(y,"tokenBase"),o(b,"tokenString"),o(k,"tokenComment"),o(E,"tokenQuasi");function x(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(p){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}o(x,"findFatArrow");var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function _(e,t,n,r,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():c?G:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==n&&C(e,r)?"variable-2":t}}o(T,"JSLexical"),o(C,"inScope"),o(_,"parseJS");var S={state:null,column:null,marked:null,cc:null};function A(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e])}function N(){return A.apply(null,arguments),!0}function O(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function D(e){var n=S.state;if(S.marked="def",u){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=I(e,n.context);if(null!=r)return void(n.context=r)}else if(!O(e,n.localVars))return void(n.localVars=new M(e,n.localVars));t.globalVars&&!O(e,n.globalVars)&&(n.globalVars=new M(e,n.globalVars))}}function I(e,t){if(t){if(t.block){var n=I(e,t.prev);return n?n==t.prev?t:new F(n,t.vars,!0):null}return O(e,t.vars)?t:new F(t.prev,new M(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}o(A,"pass"),o(N,"cont"),o(O,"inList"),o(D,"register"),o(I,"registerVarScoped"),o(L,"isModifier"),o(F,"Context"),o(M,"Var");var R=new M("this",new M("arguments",null));function P(){S.state.context=new F(S.state.context,S.state.localVars,!1),S.state.localVars=R}function j(){S.state.context=new F(S.state.context,S.state.localVars,!0),S.state.localVars=null}function V(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function q(e,t){var n=o((function(){var n=S.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,S.stream.column(),e,null,n.lexical,t)}),"result");return n.lex=!0,n}function z(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function U(e){function t(n){return n==e?N():";"==e||"}"==n||")"==n||"]"==n?A():N(t)}return o(t,"exp"),t}function B(e,t){return"var"==e?N(q("vardef",t),Ae,U(";"),z):"keyword a"==e?N(q("form"),Y,B,z):"keyword b"==e?N(q("form"),B,z):"keyword d"==e?S.stream.match(/^\s*$/,!1)?N():N(q("stat"),$,U(";"),z):"debugger"==e?N(U(";")):"{"==e?N(q("}"),j,fe,z,V):";"==e?N():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==z&&S.state.cc.pop()(),N(q("form"),Y,B,z,Fe)):"function"==e?N(je):"for"==e?N(q("form"),j,Me,B,V,z):"class"==e||p&&"interface"==t?(S.marked="keyword",N(q("form","class"==e?e:t),Be,z)):"variable"==e?p&&"declare"==t?(S.marked="keyword",N(B)):p&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?N(tt):"type"==t?N(qe,U("operator"),ve,U(";")):N(q("form"),Ne,U("{"),q("}"),fe,z,z)):p&&"namespace"==t?(S.marked="keyword",N(q("form"),G,B,z)):p&&"abstract"==t?(S.marked="keyword",N(B)):N(q("stat"),oe):"switch"==e?N(q("form"),Y,U("{"),q("}","switch"),j,fe,z,z,V):"case"==e?N(G,U(":")):"default"==e?N(U(":")):"catch"==e?N(q("form"),P,H,B,z,V):"export"==e?N(q("stat"),Ye,z):"import"==e?N(q("stat"),$e,z):"async"==e?N(B):"@"==t?N(G,B):A(q("stat"),G,U(";"),z)}function H(e){if("("==e)return N(ze,U(")"))}function G(e,t){return Q(e,t,!1)}function W(e,t){return Q(e,t,!0)}function Y(e){return"("!=e?A():N(q(")"),$,U(")"),z)}function Q(e,t,n){if(S.state.fatArrowAt==S.stream.start){var r=n?te:ee;if("("==e)return N(P,q(")"),ue(ze,")"),z,U("=>"),r,V);if("variable"==e)return A(P,Ne,U("=>"),r,V)}var i=n?J:K;return w.hasOwnProperty(e)?N(i):"function"==e?N(je,i):"class"==e||p&&"interface"==t?(S.marked="keyword",N(q("form"),Ue,z)):"keyword c"==e||"async"==e?N(n?W:G):"("==e?N(q(")"),$,U(")"),z,i):"operator"==e||"spread"==e?N(n?W:G):"["==e?N(q("]"),et,z,i):"{"==e?pe(se,"}",null,i):"quasi"==e?A(Z,i):"new"==e?N(ne(n)):N()}function $(e){return e.match(/[;\}\)\],]/)?A():A(G)}function K(e,t){return","==e?N($):J(e,t,!1)}function J(e,t,n){var r=0==n?K:J,i=0==n?G:W;return"=>"==e?N(P,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||p&&"!"==t?N(r):p&&"<"==t&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?N(q(">"),ue(ve,">"),z,r):"?"==t?N(G,U(":"),i):N(i):"quasi"==e?A(Z,r):";"!=e?"("==e?pe(W,")","call",r):"."==e?N(ae,r):"["==e?N(q("]"),$,U("]"),z,r):p&&"as"==t?(S.marked="keyword",N(ve,r)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),N(i)):void 0:void 0}function Z(e,t){return"quasi"!=e?A():"${"!=t.slice(t.length-2)?N(Z):N($,X)}function X(e){if("}"==e)return S.marked="string-2",S.state.tokenize=E,N(Z)}function ee(e){return x(S.stream,S.state),A("{"==e?B:G)}function te(e){return x(S.stream,S.state),A("{"==e?B:W)}function ne(e){return function(t){return"."==t?N(e?ie:re):"variable"==t&&p?N(Ce,e?J:K):A(e?W:G)}}function re(e,t){if("target"==t)return S.marked="keyword",N(K)}function ie(e,t){if("target"==t)return S.marked="keyword",N(J)}function oe(e){return":"==e?N(z,B):A(K,U(";"),z)}function ae(e){if("variable"==e)return S.marked="property",N()}function se(e,t){return"async"==e?(S.marked="property",N(se)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?N(le):(p&&S.state.fatArrowAt==S.stream.start&&(n=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+n[0].length),N(ce))):"number"==e||"string"==e?(S.marked=l?"property":S.style+" property",N(ce)):"jsonld-keyword"==e?N(ce):p&&L(t)?(S.marked="keyword",N(se)):"["==e?N(G,de,U("]"),ce):"spread"==e?N(W,ce):"*"==t?(S.marked="keyword",N(se)):":"==e?A(ce):void 0;var n}function le(e){return"variable"!=e?A(ce):(S.marked="property",N(je))}function ce(e){return":"==e?N(W):"("==e?A(je):void 0}function ue(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=S.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),N((function(n,r){return n==t||r==t?A():A(e)}),r)}return i==t||o==t?N():n&&n.indexOf(";")>-1?A(e):N(U(t))}return o(r,"proceed"),function(n,i){return n==t||i==t?N():A(e,r)}}function pe(e,t,n){for(var r=3;r"),ve):"quasi"==e?A(Ee,Te):void 0}function ye(e){if("=>"==e)return N(ve)}function be(e){return e.match(/[\}\)\]]/)?N():","==e||";"==e?N(be):A(ke,be)}function ke(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",N(ke)):"?"==t||"number"==e||"string"==e?N(ke):":"==e?N(ve):"["==e?N(U("variable"),he,U("]"),ke):"("==e?A(Ve,ke):e.match(/[;\}\)\],]/)?void 0:N()}function Ee(e,t){return"quasi"!=e?A():"${"!=t.slice(t.length-2)?N(Ee):N(ve,xe)}function xe(e){if("}"==e)return S.marked="string-2",S.state.tokenize=E,N(Ee)}function we(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?N(we):":"==e?N(ve):"spread"==e?N(we):A(ve)}function Te(e,t){return"<"==t?N(q(">"),ue(ve,">"),z,Te):"|"==t||"."==e||"&"==t?N(ve):"["==e?N(ve,U("]"),Te):"extends"==t||"implements"==t?(S.marked="keyword",N(ve)):"?"==t?N(ve,U(":"),ve):void 0}function Ce(e,t){if("<"==t)return N(q(">"),ue(ve,">"),z,Te)}function _e(){return A(ve,Se)}function Se(e,t){if("="==t)return N(ve)}function Ae(e,t){return"enum"==t?(S.marked="keyword",N(tt)):A(Ne,de,Ie,Le)}function Ne(e,t){return p&&L(t)?(S.marked="keyword",N(Ne)):"variable"==e?(D(t),N()):"spread"==e?N(Ne):"["==e?pe(De,"]"):"{"==e?pe(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?N(Ne):"}"==e?A():"["==e?N(G,U("]"),U(":"),Oe):N(U(":"),Ne,Ie)):(D(t),N(Ie))}function De(){return A(Ne,Ie)}function Ie(e,t){if("="==t)return N(W)}function Le(e){if(","==e)return N(Ae)}function Fe(e,t){if("keyword b"==e&&"else"==t)return N(q("form","else"),B,z)}function Me(e,t){return"await"==t?N(Me):"("==e?N(q(")"),Re,z):void 0}function Re(e){return"var"==e?N(Ae,Pe):"variable"==e?N(Pe):A(Pe)}function Pe(e,t){return")"==e?N():";"==e?N(Pe):"in"==t||"of"==t?(S.marked="keyword",N(G,Pe)):A(G,Pe)}function je(e,t){return"*"==t?(S.marked="keyword",N(je)):"variable"==e?(D(t),N(je)):"("==e?N(P,q(")"),ue(ze,")"),z,me,B,V):p&&"<"==t?N(q(">"),ue(_e,">"),z,je):void 0}function Ve(e,t){return"*"==t?(S.marked="keyword",N(Ve)):"variable"==e?(D(t),N(Ve)):"("==e?N(P,q(")"),ue(ze,")"),z,me,V):p&&"<"==t?N(q(">"),ue(_e,">"),z,Ve):void 0}function qe(e,t){return"keyword"==e||"variable"==e?(S.marked="type",N(qe)):"<"==t?N(q(">"),ue(_e,">"),z):void 0}function ze(e,t){return"@"==t&&N(G,ze),"spread"==e?N(ze):p&&L(t)?(S.marked="keyword",N(ze)):p&&"this"==e?N(de,Ie):A(Ne,de,Ie)}function Ue(e,t){return"variable"==e?Be(e,t):He(e,t)}function Be(e,t){if("variable"==e)return D(t),N(He)}function He(e,t){return"<"==t?N(q(">"),ue(_e,">"),z,He):"extends"==t||"implements"==t||p&&","==e?("implements"==t&&(S.marked="keyword"),N(p?ve:G,He)):"{"==e?N(q("}"),Ge,z):void 0}function Ge(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||p&&L(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",N(Ge)):"variable"==e||"keyword"==S.style?(S.marked="property",N(We,Ge)):"number"==e||"string"==e?N(We,Ge):"["==e?N(G,de,U("]"),We,Ge):"*"==t?(S.marked="keyword",N(Ge)):p&&"("==e?A(Ve,Ge):";"==e||","==e?N(Ge):"}"==e?N():"@"==t?N(G,Ge):void 0}function We(e,t){if("!"==t)return N(We);if("?"==t)return N(We);if(":"==e)return N(ve,Ie);if("="==t)return N(W);var n=S.state.lexical.prev;return A(n&&"interface"==n.info?Ve:je)}function Ye(e,t){return"*"==t?(S.marked="keyword",N(Xe,U(";"))):"default"==t?(S.marked="keyword",N(G,U(";"))):"{"==e?N(ue(Qe,"}"),Xe,U(";")):A(B)}function Qe(e,t){return"as"==t?(S.marked="keyword",N(U("variable"))):"variable"==e?A(W,Qe):void 0}function $e(e){return"string"==e?N():"("==e?A(G):"."==e?A(K):A(Ke,Je,Xe)}function Ke(e,t){return"{"==e?pe(Ke,"}"):("variable"==e&&D(t),"*"==t&&(S.marked="keyword"),N(Ze))}function Je(e){if(","==e)return N(Ke,Je)}function Ze(e,t){if("as"==t)return S.marked="keyword",N(Ke)}function Xe(e,t){if("from"==t)return S.marked="keyword",N(G)}function et(e){return"]"==e?N():A(ue(W,"]"))}function tt(){return A(q("form"),Ne,U("{"),q("}"),ue(nt,"}"),z,z)}function nt(){return A(Ne,Ie)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return o(P,"pushcontext"),o(j,"pushblockcontext"),P.lex=j.lex=!0,o(V,"popcontext"),V.lex=!0,o(q,"pushlex"),o(z,"poplex"),z.lex=!0,o(U,"expect"),o(B,"statement"),o(H,"maybeCatchBinding"),o(G,"expression"),o(W,"expressionNoComma"),o(Y,"parenExpr"),o(Q,"expressionInner"),o($,"maybeexpression"),o(K,"maybeoperatorComma"),o(J,"maybeoperatorNoComma"),o(Z,"quasi"),o(X,"continueQuasi"),o(ee,"arrowBody"),o(te,"arrowBodyNoComma"),o(ne,"maybeTarget"),o(re,"target"),o(ie,"targetNoComma"),o(oe,"maybelabel"),o(ae,"property"),o(se,"objprop"),o(le,"getterSetter"),o(ce,"afterprop"),o(ue,"commasep"),o(pe,"contCommasep"),o(fe,"block"),o(de,"maybetype"),o(he,"maybetypeOrIn"),o(me,"mayberettype"),o(ge,"isKW"),o(ve,"typeexpr"),o(ye,"maybeReturnType"),o(be,"typeprops"),o(ke,"typeprop"),o(Ee,"quasiType"),o(xe,"continueQuasiType"),o(we,"typearg"),o(Te,"afterType"),o(Ce,"maybeTypeArgs"),o(_e,"typeparam"),o(Se,"maybeTypeDefault"),o(Ae,"vardef"),o(Ne,"pattern"),o(Oe,"proppattern"),o(De,"eltpattern"),o(Ie,"maybeAssign"),o(Le,"vardefCont"),o(Fe,"maybeelse"),o(Me,"forspec"),o(Re,"forspec1"),o(Pe,"forspec2"),o(je,"functiondef"),o(Ve,"functiondecl"),o(qe,"typename"),o(ze,"funarg"),o(Ue,"classExpression"),o(Be,"className"),o(He,"classNameAfter"),o(Ge,"classBody"),o(We,"classfield"),o(Ye,"afterExport"),o(Qe,"exportField"),o($e,"afterImport"),o(Ke,"importSpec"),o(Je,"maybeMoreImports"),o(Ze,"maybeAs"),o(Xe,"maybeFrom"),o(et,"arrayLiteral"),o(tt,"enumdef"),o(nt,"enummember"),o(rt,"isContinuedStatement"),o(it,"expressionAllowed"),{startState:function(e){var n={tokenize:y,lastType:"sof",cc:[],lexical:new T((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new F(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),x(e,t)),t.tokenize!=k&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=r&&"--"!=r?n:"incdec",_(t,i,n,r,e))},indent:function(e,n){if(e.tokenize==k||e.tokenize==E)return s.Pass;if(e.tokenize!=y)return 0;var r,o=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var c=e.cc.length-1;c>=0;--c){var u=e.cc[c];if(u==z)l=l.prev;else if(u!=Fe&&u!=V)break}for(;("stat"==l.type||"form"==l.type)&&("}"==o||(r=e.cc[e.cc.length-1])&&(r==K||r==J)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,f=o==p;return"vardef"==p?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==p&&"{"==o?l.indented:"form"==p?l.indented+i:"stat"==p?l.indented+(rt(e,n)?a||i:0):"switch"!=l.info||f||0==t.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:i):l.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:l,jsonMode:c,expressionAllowed:it,skipExpression:function(e){_(e,"atom","atom","true",new s.StringStream("",2,null))}}})),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var c=l.exports,u=Object.freeze(a({__proto__:null,[Symbol.toStringTag]:"Module",default:c},[l.exports]))},1091:(e,t,n)=>{"use strict";for(var r=n(4983).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1129:(e,t,n)=>{"use strict";function r(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>r}),(0,Object.defineProperty)(r,"name",{value:"forEachState",configurable:!0})},1140:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,V:()=>i});var r=n(8141);function i(e){return o(e.source,(0,r.g)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,c=1===t.line?n:0,u=t.column+c,p="".concat(e.name,":").concat(l,":").concat(u,"\n"),f=r.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){for(var h=Math.floor(u/80),m=u%80,g=[],v=0;v{"use strict";n.d(t,{K:()=>f});var r=n(3465),i=n(179),o=n(5284),a=n(4956),s=n(4212),l=n(3362),c=n(3417),u=n(5903),p=n(9820);function f(e,t){if((0,p.bd)(t)){var n=f(e,t.ofType);return(null==n?void 0:n.kind)===c.b.NULL?null:n}if(null===e)return{kind:c.b.NULL};if(void 0===e)return null;if((0,p.Fs)(t)){var h=t.ofType,m=(0,l.A)(e);if(null!=m){for(var g=[],v=0;v{"use strict";n.d(t,{l:()=>i});var r=n(2633);function i(e){var t,n,i,o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType(),s=0;return{SchemaDefinition:function(t){a?e.reportError(new r.e("Cannot define a new schema within a schema extension.",t)):(s>0&&e.reportError(new r.e("Must provide only one schema definition.",t)),++s)}}}},1299:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(2633),i=n(3417),o=n(7746);function a(e){return{Document:function(t){for(var n=0,a=t.definitions;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,i=(r=n(8959))&&r.__esModule?r:{default:r};t.Explorer=i.default,t.default=i.default},1328:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(5284),i=n(4956),o=n(6668),a=n(3417);function s(e,t){switch(e.kind){case a.b.NULL:return null;case a.b.INT:return parseInt(e.value,10);case a.b.FLOAT:return parseFloat(e.value);case a.b.STRING:case a.b.ENUM:case a.b.BOOLEAN:return e.value;case a.b.LIST:return e.values.map((function(e){return s(e,t)}));case a.b.OBJECT:return(0,o.A)(e.fields,(function(e){return e.name.value}),(function(e){return s(e.value,t)}));case a.b.VARIABLE:return null==t?void 0:t[e.name.value]}(0,i.A)(0,"Unexpected value node: "+(0,r.A)(e))}},1395:(e,t,n)=>{"use strict";n.r(t),n.d(t,{s:()=>p});var r=n(1566),i=n(3450),o=n(5762),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}s(l,"_mergeNamespaces");var c={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,p=0;c!=u;c+=i,p++){var f=o.charAt(i<0?c-1:c),d="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==s)"o"!=d?(s="in",a=d):l=c+i;else if("in"==s&&a!=d){if("w"==a&&"W"==d&&i<0&&c--,"W"==a&&"w"==d&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var c=r[i[s]];if(!(l&&e.cmpPos(c.head,l)>0)){var u=a(t,c.head);l=u.from,t.replaceRange(n(u.word),u.from,u.to)}}}))}function m(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function g(e,t){var r=m(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}s(p,"selectBetweenBrackets"),t.selectScope=function(e){p(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!p(t))return e.Pass},s(f,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,f(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,f(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,e.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}t.replaceRange("",c,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){h(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){h(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},s(m,"getTarget"),s(g,"findAndGoTo"),t.findUnder=function(e){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=m(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var v=e.keyMap;v.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(v.macSublime),v.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(v.pcSublime);var y=v.default==v.macDefault;v.sublime=y?v.macSublime:v.pcSublime}(r.a.exports,i.a.exports,o.a.exports);var u=c.exports,p=Object.freeze(l({__proto__:null,[Symbol.toStringTag]:"Module",default:u},[c.exports]))},1397:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(2633),i=n(3417);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===i.b.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r.e("This anonymous operation must be the only defined operation.",n))}}}},1401:(e,t,n)=>{"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,{A:()=>r})},1433:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3875);function i(e,t){for(var n=Object.create(null),i=0,o=(0,r.A)(e);i{"use strict";var r=n(286),i=[["text",n(6683)],["newline",n(2162)],["escape",n(1091)],["backticks",n(3705)],["strikethrough",n(273).q],["emphasis",n(1918).q],["link",n(1484)],["image",n(3775)],["autolink",n(6743)],["html_inline",n(4349)],["entity",n(3627)]],o=[["balance_pairs",n(9040)],["strikethrough",n(273).g],["emphasis",n(1918).g],["text_collapse",n(8701)]];function a(){var e;for(this.ruler=new r,e=0;e=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i{"use strict";var r=n(4983),i=n(5164),o=n(8203),a=n(8477),s=n(6329),l=n(1439),c=n(4509),u=n(7609),p=n(8951),f={default:n(3552),zero:n(4595),commonmark:n(7021)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new c,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=f[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},1484:(e,t,n)=>{"use strict";var r=n(4983).normalizeReference,i=n(4983).isSpace;e.exports=function(e,t){var n,o,a,s,l,c,u,p,f="",d="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?c=u.pos:f="",g=c;c=m||41!==e.src.charCodeAt(c))&&(v=!0),c++}if(v){if(void 0===e.env.references)return!1;if(c=0?a=e.src.slice(g,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;f=p.href,d=p.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",f]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},1490:(e,t,n)=>{"use strict";e.exports=n(7483)},1529:(e,t,n)=>{"use strict";var r=n(4983).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c,u,p,f,d,h,m,g,v,y,b,k,E,x,w,T,C=e.lineMax,_=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(_++))return!1;if(i)return!0;for(l=d=e.sCount[t]+1,32===e.src.charCodeAt(_)?(_++,l++,d++,o=!1,k=!0):9===e.src.charCodeAt(_)?(k=!0,(e.bsCount[t]+d)%4==3?(_++,l++,d++,o=!1):o=!0):k=!1,h=[e.bMarks[t]],e.bMarks[t]=_;_=S,y=[e.sCount[t]],e.sCount[t]=d-l,b=[e.tShift[t]],e.tShift[t]=_-e.bMarks[t],x=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=t+1;f=(S=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(_++)||T){if(u)break;for(E=!1,s=0,c=x.length;s=S,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(k?1:0),y.push(e.sCount[f]),e.sCount[f]=d-l,b.push(e.tShift[f]),e.tShift[f]=_-e.bMarks[f]}for(g=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=p=[t,0],e.md.block.tokenize(e,t,f),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=C,e.parentType=v,p[1]=e.line,s=0;s{"use strict";n.d(t,{p:()=>i});var r=n(2633);function i(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),a=0;a{"use strict";n.r(t),n.d(t,{C:()=>c,a:()=>l,c:()=>u});var r=n(1794),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}o(a,"_mergeNamespaces");var s,l={exports:{}};s=l,r.c,s.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),s=r||i||a,l=s&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),u=c&&/Qt\/\d+\.\d+/.test(e),p=!a&&/Chrome\//.test(e),f=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),k=/\bCrOS\b/.test(e),E=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,c=!0);var w=b&&(u||f&&(null==x||x<12.11)),T=n||s&&l>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}o(C,"classTest");var _,S=o((function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}}),"rmClass");function A(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return A(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?R=o((function(e){e.selectionStart=0,e.selectionEnd=e.value.length}),"selectInput"):s&&(R=o((function(e){try{e.select()}catch(e){}}),"selectInput")),o(P,"bind"),o(j,"copyObj"),o(V,"countColumn");var q=o((function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)}),"Delayed");function z(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}o(W,"findColumn");var Y=[""];function Q(e){for(;Y.length<=e;)Y.push($(Y)+" ");return Y[e]}function $(e){return e[e.length-1]}function K(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}o(te,"isWordCharBasic"),o(ne,"isWordChar"),o(re,"isEmpty");var ie=/[\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 oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}o(oe,"isExtendingChar"),o(ae,"skipExtendingChars"),o(se,"findFirst"),o(le,"iterateBidiSections");var ce=null;function ue(e,t,n){var r;ce=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}o(ue,"getBidiPartAt");var pe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}o(e,"charType");var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return o(s,"BidiSpan"),function(o,l){var c="ltr"==l?"L":"R";if(0==o.length||"ltr"==l&&!t.test(o))return!1;for(var u=o.length,p=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ee(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function we(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){xe(e),we(e)}function _e(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}o(me,"getHandlers"),o(ge,"off"),o(ve,"signal"),o(ye,"signalDOMEvent"),o(be,"signalCursorActivity"),o(ke,"hasHandler"),o(Ee,"eventMixin"),o(xe,"e_preventDefault"),o(we,"e_stopPropagation"),o(Te,"e_defaultPrevented"),o(Ce,"e_stop"),o(_e,"e_target"),o(Se,"e_button");var Ae,Ne,Oe=function(){if(s&&l<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ae){var t=O("span","​");N(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&l<8))}var n=Ae?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Ne)return Ne;var t=N(e,document.createTextNode("AخA")),n=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return A(e),!(!n||n.left==n.right)&&(Ne=r.right-n.right<3)}o(De,"zeroWidthElement"),o(Ie,"hasBadBidiRects");var Le,Fe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Le=O("div"))||(Le.setAttribute("oncopy","return;"),"function"==typeof Le.oncopy),Pe=null;function je(e){if(null!=Pe)return Pe;var t=N(e,O("span","x")),n=t.getBoundingClientRect(),r=_(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}o(je,"hasBadZoomedRects");var Ve={},qe={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function Ue(e,t){qe[e]=t}function Be(e){if("string"==typeof e&&qe.hasOwnProperty(e))e=qe[e];else if(e&&"string"==typeof e.name&&qe.hasOwnProperty(e.name)){var t=qe[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Be("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Be("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function He(e,t){t=Be(t);var n=Ve[t.name];if(!n)return He(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}o(ze,"defineMode"),o(Ue,"defineMIME"),o(Be,"resolveMode"),o(He,"getMode");var Ge={};function We(e,t){j(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}o(We,"extendMode"),o(Ye,"copyState"),o(Qe,"innerMode"),o($e,"startState");var Ke=o((function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n}),"StringStream");function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ot(n,Je(e,n).text.length):dt(t,Je(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ht(e,t){for(var n=[],r=0;r=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=o((function(e){return n?e.toLowerCase():e}),"cased");if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},o(Je,"getLine"),o(Ze,"getBetween"),o(Xe,"getLines"),o(et,"updateLineHeight"),o(tt,"lineNo"),o(nt,"lineAtHeight"),o(rt,"isLine"),o(it,"lineNumberFor"),o(ot,"Pos"),o(at,"cmp"),o(st,"equalCursorPos"),o(lt,"copyPos"),o(ct,"maxPos"),o(ut,"minPos"),o(pt,"clipLine"),o(ft,"clipPos"),o(dt,"clipToLen"),o(ht,"clipPosArray");var mt=o((function(e,t){this.state=e,this.lookAhead=t}),"SavedContext"),gt=o((function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1}),"Context");function vt(e,t,n,r){var i=[e.state.modeGen],a={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),a,r);for(var s=n.state,l=o((function(r){n.baseTokens=i;var o=e.state.overlays[r],l=1,c=0;n.state=!0,_t(e,t.text,o.mode,n,(function(e,t){for(var n=l;ce&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(o.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ye(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=St(e,t,n),a=o>r.first&&Je(r,o-1).stateAfter,s=a?gt.fromSaved(r,a,o):new gt(r,$e(r.mode),o);return r.iter(o,t,(function(n){kt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof mt?new gt(e,Ye(e.mode,t.state),n,t.lookAhead):new gt(e,Ye(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t},o(vt,"highlightLine"),o(yt,"getLineStyles"),o(bt,"getContextBefore"),o(kt,"processLine"),o(Et,"callBlankLine"),o(xt,"readToken");var wt=o((function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n}),"Token");function Tt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Je(a,(t=ft(a,t)).line),c=bt(e,t.line,n),u=new Ke(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&kt(e,t,r,p.pos),p.pos=t.length,l=null):l=Ct(xt(n,p,r.state,f),o),f){var d=f[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||u!=l){for(;ca;--s){if(s<=o.first)return o.first;var l=Je(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof mt?c.lookAhead:0)<=o.modeFrontier))return s;var u=V(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function At(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof mt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Lt(a,o.from,s?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var u=[l,1],p=at(c.from,s.from),f=at(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Wt(n,o.marker)<0)&&(n=o.marker)}return n}function Jt(e,t,n,r,i){var o=Je(e,t),a=Ot&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.from,r)<=0:at(c.from,r)<0)))return!0}}}function Zt(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function Xt(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Je(e,t),r=Zt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!rn(e,r))return t;for(;n=$t(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}o(Dt,"seeReadOnlySpans"),o(It,"seeCollapsedSpans"),o(Lt,"MarkedSpan"),o(Ft,"getMarkedSpanFor"),o(Mt,"removeMarkedSpan"),o(Rt,"addMarkedSpan"),o(Pt,"markedSpansBefore"),o(jt,"markedSpansAfter"),o(Vt,"stretchSpansOverChange"),o(qt,"clearEmptySpans"),o(zt,"removeReadOnlyRanges"),o(Ut,"detachMarkedSpans"),o(Bt,"attachMarkedSpans"),o(Ht,"extraLeft"),o(Gt,"extraRight"),o(Wt,"compareCollapsedMarkers"),o(Yt,"collapsedSpanAtSide"),o(Qt,"collapsedSpanAtStart"),o($t,"collapsedSpanAtEnd"),o(Kt,"collapsedSpanAround"),o(Jt,"conflictingCollapsedRange"),o(Zt,"visualLine"),o(Xt,"visualLineEnd"),o(en,"visualLineContinued"),o(tn,"visualLineNo"),o(nn,"visualLineEndNo"),o(rn,"lineIsHidden"),o(on,"lineIsHiddenInner"),o(an,"heightAtLine"),o(sn,"lineLength"),o(ln,"findMaxLine");var cn=o((function(e,t,n){this.text=e,Bt(this,t),this.height=n?n(this):1}),"Line");function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Bt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function pn(e){e.parent=null,Ut(e)}cn.prototype.lineNo=function(){return tt(this)},Ee(cn),o(un,"updateLine"),o(pn,"cleanUpLine");var fn={},dn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=D("span",null,null,c?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,Ie(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=bn(r.addToken,a)),r.map=[],En(o,r,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function gn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,a){if(t){var c,u=e.splitSpaces?yn(t,e.trailingSpace):t,p=e.cm.state.specialChars,f=!1;if(p.test(t)){c=document.createDocumentFragment();for(var d=0;;){p.lastIndex=d;var h=p.exec(t),m=h?h.index-d:t.length-d;if(m){var g=document.createTextNode(u.slice(d,d+m));s&&l<9?c.appendChild(O("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(O("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(O("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),s&&l<9?c.appendChild(O("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),s&&l<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o||a){var k=n||"";r&&(k+=r),i&&(k+=i);var E=O("span",[c],k,o);if(a)for(var x in a)a.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&E.setAttribute(x,a[x]);return e.content.appendChild(E)}e.content.appendChild(c)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ic&&p.from<=c);f++);if(p.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,p.to-c),i,o,null,s,l),o=null,r=r.slice(p.to-c),c=p.to}}}function kn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function En(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,p,f,d=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",f=null,p=null,v=1/0;for(var y=[],b=void 0,k=0;kh||x.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&v>E.to&&(v=E.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&E.from==h&&(u+=" "+x.startStyle),x.endStyle&&E.to==v&&(b||(b=[])).push(x.endStyle,E.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var w in x.attributes)(f||(f={}))[w]=x.attributes[w];x.collapsed&&(!p||Wt(p.marker,x)<0)&&(p=E)}else E.from>h&&v>E.from&&(v=E.from)}if(b)for(var T=0;T=d)break;for(var _=Math.min(d,v);;){if(g){var S=h+g.length;if(!p){var A=S>_?g.slice(0,_-h):g;t.addToken(t,A,a?a+l:l,u,h+A.length==v?c:"",s,f)}if(S>=_){g=g.slice(_-h),h=_;break}h=S,u=""}g=i.slice(o,o=n[m++]),a=hn(n[m++],t.cm.options)}}else for(var N=1;N2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Xn(e,t){var n=tt(t=Zt(t)),r=e.display.externalMeasured=new xn(e.doc,t,n);r.lineN=n;var i=r.built=mn(e,r);return r.text=i.pre,N(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c=0&&(n=e[i]).left==n.right;i--);return n}function lr(e,t,n,r){var i,o=ar(t.map,n,r),a=o.node,c=o.start,u=o.end,p=o.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u0&&(p=r="right"),i=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==r?d.length-1:0]:a.getBoundingClientRect()}if(s&&l<9&&!c&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Or(e.display),top:h.top,bottom:h.bottom}:or}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b=r.text.length?(c=r.text.length,u="before"):c<=0&&(c=0,u="after"),!l)return s("before"==u?c-1:c,"before"==u);function p(e,t,n){return s(n?e-1:e,1==l[t].level!=n)}o(p,"getBidi");var f=ue(l,c,u),d=ce,h=p(c,f,"before"==u);return null!=d&&(h.other=p(c,d,"before"!=u)),h}function kr(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Or(e.display)*t.ch);var r=Je(e.doc,t.line),i=an(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Er(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function xr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Er(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return Er(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var s=_r(e,a,i,t,n),l=Kt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Je(r,i=c.line)}}function wr(e,t,n,r){r-=mr(t);var i=t.text.length,o=se((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=se((function(t){return rr(e,n,t).top>r}),o,i)}}function Tr(e,t,n,r){return n||(n=nr(e,t)),wr(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function _r(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=mr(t),s=0,l=t.text.length,c=!0,u=fe(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?Ar:Sr)(e,t,n,o,u,r,i);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var f,d,h=null,m=null,g=se((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left=k.bottom?1:0}return Er(n,g=ae(t.text,g,1),d,v,r-f)}function Sr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],c=1!=l.level;return Cr(br(e,ot(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=br(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Cr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Ar(e,t,n,r,i,o,a){var s=wr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,p=null,f=0;f=c||d.to<=l)){var h=rr(e,r,1!=d.level?Math.min(c,d.to)-1:Math.max(l,d.from)).right,m=hm)&&(u=d,p=m)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Nr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(O("br"));ir.appendChild(document.createTextNode("x"))}N(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),A(e.measure),n||1}function Or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");N(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Dr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Ir(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ir(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Lr(e){var t=Nr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Or(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Je(e.doc,c.line).text).length==c.ch){var u=V(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((o-Yn(e.display).left)/Or(e.display))-u))}return c}function Rr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&tn(e.doc,t)i.viewFrom?Vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Vr(e);else if(t<=i.viewFrom){var o=qr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Vr(e)}else if(n>=i.viewTo){var a=qr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Vr(e)}else{var s=qr(e,t,t,-1),l=qr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(wn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Vr(e)}var c=i.externalMeasured;c&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Rr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,n)&&a.push(n)}}}function Vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qr(e,t,n,r){var i,o=Rr(e,t),a=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function zr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=wn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=wn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Rr(e,n)))),r.viewTo=n}function Ur(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Wr(e,t){return e.top-t.top||e.left-t.left}function Yr(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),s=Yn(e.display),l=s.left,c=Math.max(r.sizerWidth,$n(e)-r.sizer.offsetLeft)-s.right,u="ltr"==i.direction;function p(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var a,s,f=Je(i,t),d=f.text.length;function h(n,r){return yr(e,ot(t,n),"div",f,r)}function m(t,n,r){var i=Tr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}o(h,"coords"),o(m,"wrapX");var g=fe(f,i.direction);return le(g,n||0,null==r?d:r,(function(e,t,i,o){var f="ltr"==i,v=h(e,f?"left":"right"),y=h(t-1,f?"right":"left"),b=null==n&&0==e,k=null==r&&t==d,E=0==o,x=!g||o==g.length-1;if(y.top-v.top<=3){var w=(u?k:b)&&x,T=(u?b:k)&&E?l:(f?v:y).left,C=w?c:(f?y:v).right;p(T,v.top,C-T,v.bottom)}else{var _,S,A,N;f?(_=u&&b&&E?l:v.left,S=u?c:m(e,i,"before"),A=u?l:m(t,i,"after"),N=u&&k&&x?c:y.right):(_=u?m(e,i,"before"):l,S=!u&&b&&E?c:v.right,A=!u&&k&&x?l:y.left,N=u?m(t,i,"after"):c),p(_,v.top,S-_,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Zr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function $r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jr(e))}function Kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zr(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qr(e))}function Zr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Xr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(f/Or(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ei(e){if(e.widgets)for(var t=0;t=a&&(o=nt(t,an(Je(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=O("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=br(e,t),l=n&&n!=t?br(e,n):s,c=oi(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(fi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(hi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&fi(e,n.scrollTop),null!=n.scrollLeft&&hi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Nr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Kn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Wn(n),l=t.tops-r;if(t.topi+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,d=$n(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function ai(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function si(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function li(e,t,n){null==t&&null==n||ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ci(e,t){ui(e),e.curOp.scrollToPos=t}function ui(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pi(e,kr(e,t.from),kr(e,t.to),t.margin))}function pi(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});li(e,i.scrollLeft,i.scrollTop)}function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Bi(e,{top:t}),di(e,t,!0),n&&Bi(e),Mi(e,100))}function di(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function hi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Wn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}o(ar,"nodeAndOffsetInLineMap"),o(sr,"getUsefulRect"),o(lr,"measureCharInner"),o(cr,"maybeUpdateRectForZooming"),o(ur,"clearLineMeasurementCacheFor"),o(pr,"clearLineMeasurementCache"),o(fr,"clearCaches"),o(dr,"pageScrollX"),o(hr,"pageScrollY"),o(mr,"widgetTopHeight"),o(gr,"intoCoordSystem"),o(vr,"fromCoordSystem"),o(yr,"charCoords"),o(br,"cursorCoords"),o(kr,"estimateCoords"),o(Er,"PosWithInfo"),o(xr,"coordsChar"),o(wr,"wrappedLineExtent"),o(Tr,"wrappedLineExtentChar"),o(Cr,"boxIsAfter"),o(_r,"coordsCharInner"),o(Sr,"coordsBidiPart"),o(Ar,"coordsBidiPartWrapped"),o(Nr,"textHeight"),o(Or,"charWidth"),o(Dr,"getDimensions"),o(Ir,"compensateForHScroll"),o(Lr,"estimateHeight"),o(Fr,"estimateLineHeights"),o(Mr,"posFromMouse"),o(Rr,"findViewIndex"),o(Pr,"regChange"),o(jr,"regLineChange"),o(Vr,"resetView"),o(qr,"viewCuttingPoint"),o(zr,"adjustView"),o(Ur,"countDirtyView"),o(Br,"updateSelection"),o(Hr,"prepareSelection"),o(Gr,"drawSelectionCursor"),o(Wr,"cmpCoords"),o(Yr,"drawSelectionRange"),o(Qr,"restartBlink"),o($r,"ensureFocus"),o(Kr,"delayBlurEvent"),o(Jr,"onFocus"),o(Zr,"onBlur"),o(Xr,"updateHeightsInViewport"),o(ei,"updateWidgetHeight"),o(ti,"visibleLines"),o(ni,"maybeScrollWindow"),o(ri,"scrollPosIntoView"),o(ii,"scrollIntoView"),o(oi,"calculateScrollPos"),o(ai,"addToScrollTop"),o(si,"ensureCursorVisible"),o(li,"scrollToCoords"),o(ci,"scrollToRange"),o(ui,"resolveScrollToPos"),o(pi,"scrollToCoordsRange"),o(fi,"updateScrollTop"),o(di,"setScrollTop"),o(hi,"setScrollLeft"),o(mi,"measureForScrollbars");var gi=o((function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}),"NativeScrollbars");gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new q,this.disableVert=new q},gi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",o(r,"maybeDisable"),t.set(1e3,r)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=o((function(){}),"NullScrollbars");function yi(e,t){t||(t=mi(e));var n=e.display.barWidth,r=e.display.barHeight;bi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Xr(e),bi(e,mi(e)),n=e.display.barWidth,r=e.display.barHeight}function bi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){},o(yi,"updateScrollbars"),o(bi,"updateScrollbarsInner");var ki={native:gi,null:vi};function Ei(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ki[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?hi(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}o(Ei,"initScrollbars");var xi=0;function wi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++xi,markArrays:null},Cn(e.curOp)}function Ti(e){var t=e.curOp;t&&Sn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Pi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&zi(e.cm,e.update)}function Ai(e){var t=e.cm,n=t.display;e.updatedDisplay&&Xr(t),e.barMeasure=mi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-$n(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ye(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!p&&fn)return Mi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Di(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ur(e))return!1;Qi(e)&&(Vr(e),t.dims=Dr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ot&&(o=tn(e.doc,o),a=nn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zr(e,o,a),n.viewOffset=an(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ur(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Vi(e);return l>4&&(n.lineDiv.style.display="none"),Hi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,qi(c),A(n.cursorDiv),A(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Mi(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=$n(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Wn(e.display)-Kn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!zi(e,t))break;Xr(e);var i=mi(e);Br(e),yi(e,i),Wi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Bi(e,t){var n=new Pi(e,t);if(zi(e,n)){Xr(e),Ui(e,n);var r=mi(e);Br(e),yi(e,r),Wi(e,r),n.finish()}}function Hi(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,s=a.firstChild;function l(t){var n=t.nextSibling;return c&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}o(l,"rm");for(var u=r.view,p=r.viewFrom,f=0;f-1&&(h=!1),Dn(e,d,p,n)),h&&(A(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(it(e.options,p)))),s=d.node.nextSibling}else{var m=Vn(e,d,p,n);a.insertBefore(m,s)}p+=d.size}for(;s;)s=l(s)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nn(e,"gutterChanged",e)}function Wi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qn(e)+"px"}function Yi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Ir(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;al.clientWidth,p=l.scrollHeight>l.clientHeight;if(i&&u||o&&p){if(o&&b&&c)e:for(var d=t.target,h=s.view;d!=l;d=d.parentNode)for(var m=0;m=0&&at(e,r.to())<=0)return n}return-1};var oo=o((function(e,t){this.anchor=e,this.head=t}),"Range");function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=z(t,i);for(var o=1;o0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new oo(p?u:c,p?c:u))}}return new io(t,n)}function so(e,t){return new io([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=lo(t).ch-t.to.ch),ot(n,r)}function uo(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,m-1),e.insert(l.line+1,y)}Nn(e,"change",e,t)}function yo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}function _o(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(i,i.lastOp==r)))a=$(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=lo(t):o.changes.push(wo(e,t));else{var l=$(i.done);for(l&&l.ranges||No(e.sel,i.done),o={changes:[wo(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function So(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ao(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(e,o,$(i.done),t))?i.done[i.done.length-1]=t:No(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&To(i.undone)}function No(e,t){var n=$(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Oo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Do(e){if(!e)return null;for(var t,n=0;n-1&&($(s)[p]=c[p],delete c[p])}}}return r}function Mo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Ro(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new io([Mo(e.sel.primary(),t,n,i)],0),r)}function Po(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(p=$o(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=at(p,n))&&(r<0?f<0:f>0))return Yo(e,p,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?c:u)&&(d=$o(e,d,r,d.line==t.line?o:null)),d?Yo(e,d,t,r,i):null}}return t}function Qo(e,t,n,r,i){var o=r||1;return Yo(e,t,n,o,i)||!i&&Yo(e,t,n,o,!0)||Yo(e,t,n,-o,i)||!i&&Yo(e,t,n,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function $o(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line=0;--i)Xo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Xo(e,t)}}function Xo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=uo(e,t);_o(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,Vt(e,t));var r=[];yo(e,(function(e,n){n||-1!=z(r,e.history)||(sa(e.history,t),r.push(e.history)),na(e,t,null,Vt(e,t))}))}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,a=e.history,s=e.sel,l="undo"==t?a.done:a.undone,c="undo"==t?a.undone:a.done,u=0;u=0;--h){var m=d(h);if(m)return m.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(K(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ot(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=uo(e,t)),e.cm?ra(e.cm,t,r):vo(e,t,r),Bo(e,n,B),e.cantEdit&&Qo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Zt(Je(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Lr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=sn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),At(r,o.line),Mi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line!=a.line||1!=t.text.length||go(e.doc,t)?Pr(e,o.line,a.line+1,c):jr(e,o.line,"text");var u=ke(e,"changes"),p=ke(e,"change");if(p||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&Nn(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Zo(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n1||!(this.children[0]instanceof ca))){var s=[];this.collapse(s),this.children=[new ca(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Jt(e,t.line,t,n,o)||t.line!=n.line&&Jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}o.addToHistory&&_o(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&Zt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(r,0),Rt(r,new Lt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&he(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Dt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Pr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)jr(c,u,"text");o.atomic&&Go(c.doc),Nn(c,"markerAdded",c,o)}return o}ma.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&wi(e),ke(this,"clear")){var n=this.find();n&&Nn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&Nn(e,"markerCleared",e,this,r,i),t&&Ti(e),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)Zo(this,r[l]);s?zo(this,s):this.cm&&si(this.cm)})),undo:Fi((function(){ea(this,"undo")})),redo:Fi((function(){ea(this,"redo")})),undoSelection:Fi((function(){ea(this,"undo",!0)})),redoSelection:Fi((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Bo(t.doc,so(n,n)),d)for(var h=0;h=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");si(e)}))}function Ya(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qa(e,t,n){var r=Ya(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function $a(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,s=i<0?$(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=nr(t,n);a=i<0?n.text.length-1:0;var u=rr(t,c,a).top;a=se((function(e){return rr(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ya(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function Ka(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return Qa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ue(i,n.ch,n.sticky),s=i[a];if("ltr"==e.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from=s.from&&d>=p.begin)){var h=f?"before":"after";return new ot(n.line,d,h)}}var m=o((function(e,t,r){for(var a=o((function(e,t){return t?new ot(n.line,c(e,1),"before"):new ot(n.line,e,"after")}),"getRes");e>=0&&e0==(1!=s.level),u=l?r.begin:c(r.end,-1);if(s.from<=u&&u0?p.end:c(p.begin,-1);return null==v||r>0&&v==t.text.length||!(g=m(r>0?0:i.length-1,r,u(v)))?null:g}ja.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"},ja.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"},ja.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"},ja.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"]},ja.default=b?ja.macDefault:ja.pcDefault,o(Va,"normalizeKeyName"),o(qa,"normalizeKeyMap"),o(za,"lookupKey"),o(Ua,"isModifierKey"),o(Ba,"addModifierNames"),o(Ha,"keyName"),o(Ga,"getKeyMap"),o(Wa,"deleteNearSelection"),o(Ya,"moveCharLogically"),o(Qa,"moveLogically"),o($a,"endOfLine"),o(Ka,"moveVisually");var Ja={selectAll:Ko,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),B)},killLine:function(e){return Wa(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Je(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Di(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(at((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?Es(e,r,t,o):ws(e,r,t,o)}function Es(e,t,n,r){var i=e.display,a=!1,u=Ii(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Kr(e)),ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",p),ge(i.scroller,"dragstart",f),ge(i.scroller,"drop",u),a||(xe(t),r.addNew||Ro(e.doc,n,null,null,r.extend),c&&!d||s&&9==l?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),p=o((function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10}),"mouseMove"),f=o((function(){return a=!0}),"dragStart");c&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",u),he(i.wrapper.ownerDocument,"mousemove",p),he(i.scroller,"dragstart",f),he(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function xs(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function ws(e,t,n,r){s&&Kr(e);var i=e.display,a=e.doc;xe(t);var l,c,u=a.sel,p=u.ranges;if(r.addNew&&!r.extend?(c=a.sel.contains(n),l=c>-1?p[c]:new oo(n,n)):(l=a.sel.primary(),c=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new oo(n,n)),n=Mr(e,t,!0,!0),c=-1;else{var f=xs(e,n,r.unit);l=r.extend?Mo(l,f.anchor,f.head,r.extend):f}r.addNew?-1==c?(c=p.length,Uo(a,ao(e,p.concat([l]),c),{scroll:!1,origin:"*mouse"})):p.length>1&&p[c].empty()&&"char"==r.unit&&!r.extend?(Uo(a,ao(e,p.slice(0,c).concat(p.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),u=a.sel):jo(a,c,l,H):(c=0,Uo(a,new io([l],0),H),u=a.sel);var d=n;function h(t){if(0!=at(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,s=V(Je(a,n.line).text,n.ch,o),p=V(Je(a,t.line).text,t.ch,o),f=Math.min(s,p),h=Math.max(s,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Je(a,m).text,y=W(v,f,o);f==h?i.push(new oo(ot(m,y),ot(m,y))):v.length>y&&i.push(new oo(ot(m,y),ot(m,W(v,h,o))))}i.length||i.push(new oo(n,n)),Uo(a,ao(e,u.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,k=l,E=xs(e,t,r.unit),x=k.anchor;at(E.anchor,x)>0?(b=E.head,x=ut(k.from(),E.anchor)):(b=E.anchor,x=ct(k.to(),E.head));var w=u.ranges.slice(0);w[c]=Ts(e,new oo(ft(a,x),b)),Uo(a,ao(e,w,c),H)}}o(h,"extendTo");var m=i.wrapper.getBoundingClientRect(),g=0;function v(t){var n=++g,o=Mr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=at(o,d)){e.curOp.focus=L(),h(o);var s=ti(i,a);(o.line>=s.to||o.linem.bottom?20:0;l&&setTimeout(Ii(e,(function(){g==n&&(i.scroller.scrollTop+=l,v(t))})),50)}}function y(t){e.state.selectingText=!1,g=1/0,t&&(xe(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",b),ge(i.wrapper.ownerDocument,"mouseup",k),a.history.lastSelOrigin=null}o(v,"extend"),o(y,"done");var b=Ii(e,(function(e){0!==e.buttons&&Se(e)?v(e):y(e)})),k=Ii(e,y);e.state.selectingText=k,he(i.wrapper.ownerDocument,"mousemove",b),he(i.wrapper.ownerDocument,"mouseup",k)}function Ts(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var f=o[c+(l?-1:0)],d=l==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new oo(new ot(n.line,h,m),r)}function Cs(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ke(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function _s(e,t){return Cs(e,t,"gutterClick",!0)}function Ss(e,t){Hn(e.display,t)||As(e,t)||ye(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function As(e,t){return!!ke(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Ns(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}ms.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button},o(gs,"clickRepeat"),o(vs,"onMouseDown"),o(ys,"handleMappedButton"),o(bs,"configureMouse"),o(ks,"leftButtonDown"),o(Es,"leftButtonStartDrag"),o(xs,"rangeForUnit"),o(ws,"leftButtonSelect"),o(Ts,"bidiSimplify"),o(Cs,"gutterEvent"),o(_s,"clickInGutter"),o(Ss,"onContextMenu"),o(As,"contextMenuInGutter"),o(Ns,"themeChanged");var Os={toString:function(){return"CodeMirror.Init"}},Ds={},Is={};function Ls(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Os&&i(e,t,n)}:i)}o(n,"option"),e.defineOption=n,e.Init=Os,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){mo(e),fr(e),Pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Os&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ns(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ga(t),i=n!=Os&&Ga(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ms,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=$i(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Ir(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){Ei(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=$i(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,Br,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Zr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Br,!0),n("singleCursorHeightPerLine",!0,Br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,mo,!0),n("addModeClass",!1,mo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,mo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Fs(e,t,n){if(!t!=!(n&&n!=Os)){var r=e.display.dragFunctions,i=t?he:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ms(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Fr(e),Pr(e),fr(e),setTimeout((function(){return yi(e)}),100)}function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?j(t):{},j(Ds,t,!1);var r=t.value;"string"==typeof r?r=new wa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Rs.inputStyles[t.inputStyle](this),o=this.display=new Zi(e,r,i,t);for(var a in o.wrapper.CodeMirror=this,Ns(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ei(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 q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),s&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Da(),wi(this),this.curOp.forceUpdate=!0,bo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):Zr(this),Is)Is.hasOwnProperty(a)&&Is[a](this,t[a],Os);Qi(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}o(i,"finishTouch"),o(a,"isMouseLikeTouchEvent"),o(c,"farAway"),he(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!a(i)&&!_s(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Hn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||c(r,r.prev)?new oo(a,a):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ft(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),xe(n)}i()})),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),hi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return ro(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ce(t)},over:function(t){ye(e,t)||(Sa(e,t),Ce(t))},start:function(t){return _a(e,t)},drop:Ii(e,Ca),leave:function(t){ye(e,t)||Aa(e)}};var u=t.input.getField();he(u,"keyup",(function(t){return ps.call(e,t)})),he(u,"keydown",Ii(e,cs)),he(u,"keypress",Ii(e,fs)),he(u,"focus",(function(t){return Jr(e,t)})),he(u,"blur",(function(t){return Zr(e,t)}))}o(Ls,"defineOptions"),o(Fs,"dragDropChanged"),o(Ms,"wrappingChanged"),o(Rs,"CodeMirror"),Rs.defaults=Ds,Rs.optionHandlers=Is,o(Ps,"registerEventHandlers");var js=[];function Vs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Je(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?V(Je(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)f+=a,p+="\t";if(fa,l=Fe(t),c=null;if(s&&r.ranges.length>1)if(qs&&qs.text.join("\n")==t){if(r.ranges.length%qs.text.length==0){c=[];for(var u=0;u=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?m=ot(m.line,Math.min(Je(o,m.line).text.length,m.ch+$(l).length)):s&&qs&&qs.lineWise&&qs.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:c?c[f%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Zo(e.doc,g),Nn(e,"inputRead",e,g)}t&&!s&&Hs(e,t),si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Bs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Di(t,(function(){return Us(t,n,0,null,"paste")})),!0}function Hs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Vs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Vs(e,i.head.line,"smart"));a&&Nn(e,"electricInput",e,i.head.line)}}}function Gs(e){for(var t=[],n=[],r=0;rn&&(Vs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&jo(this.doc,r,new oo(o,c[r].to()),B)}}})),getTokenAt:function(e,t){return Tt(this,e,t)},getLineTokens:function(e,t){return Tt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Je(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Nr(this.display)},defaultCharWidth:function(){return Or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=br(this,ft(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ii(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Li(cs),triggerOnKeyPress:Li(fs),triggerOnKeyUp:ps,triggerOnMouseDown:Li(vs),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:Li((function(e){Hs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Fr(this),ve(this,"refresh",this)})),swapDoc:Li((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),fr(this),this.display.input.reset(),li(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Nn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function $s(e,t,n,r,i){var a=t,s=n,l=Je(e,t.line),c=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+c;return!(n=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),l=Je(e,n))}function p(o){var a;if("codepoint"==r){var s=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(s))a=null;else{var p=n>0?s>=55296&&s<56320:s>=56320&&s<57343;a=new ot(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?Ka(e.cm,l,t,n):Qa(l,t,n);if(null==a){if(o||!u())return!1;t=$a(i,e.cm,l,t.line,c)}else t=a;return!0}if(o(u,"findNextLine"),o(p,"moveOnce"),"char"==r||"codepoint"==r)p();else if("column"==r)p(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0)||p(!m);m=!1){var g=l.text.charAt(t.ch)||"\n",v=ne(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||m||v||(v="s"),f&&f!=v){n<0&&(n=1,p(),t.sticky="after");break}if(v&&(f=v),n>0&&!p(!m))break}var y=Qo(e,t,a,s,!0);return st(a,y)&&(y.hitSide=!0),y}function Ks(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Nr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=xr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}o(zs,"setLastCopied"),o(Us,"applyTextInput"),o(Bs,"handlePaste"),o(Hs,"triggerElectric"),o(Gs,"copyableRanges"),o(Ws,"disableBrowserMagic"),o(Ys,"hiddenTextarea"),o(Qs,"addEditorMethods"),o($s,"findPosH"),o(Ks,"findPosV");var Js=o((function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}),"ContentEditableInput");function Zs(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Zn(n,r,t.line),o=fe(r,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var s=ar(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Xs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var a="",s=!1,l=e.doc.lineSeparator(),c=!1;function u(e){return function(t){return t.id==e}}function p(){s&&(a+=l,c&&(a+=l),s=c=!1)}function f(e){e&&(p(),a+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,a=t.getAttribute("cm-marker");if(a){var h=e.findMarks(ot(r,0),ot(i+1,0),u(+a));return void(h.length&&(o=h[0].find(0))&&f(Ze(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&p();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&Zs(t,i)||{node:l[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=ot(a.line-1,Je(r.doc,a.line-1).length)),s.ch==Je(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Rr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Rr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=tt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(tl(r,n,c,t,l)),f=Ze(r.doc,ot(t,0),ot(l,Je(r.doc,l).text.length));p.length>1&&f.length>1;)if($(p)==$(f))p.pop(),f.pop(),l--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],g=f[0],v=Math.min(m.length,g.length);da.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var E=ot(t,d),x=ot(l,f.length?$(f).length-h:0);return p.length>1||p[0]||at(E,x)?(ia(r.doc,p,E,x,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Di(this.cm,(function(){return Pr(e.cm)}))},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ii(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0,o(Zs,"posToDOM"),o(Xs,"isInGutter"),o(el,"badPos"),o(tl,"domTextBetween"),o(nl,"domToPos"),o(rl,"locateNodeInLineView");var il=o((function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null}),"TextareaInput");function ol(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(o(r,"save"),e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var s=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=s}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var l=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function al(e){e.off=ge,e.on=he,e.wheelEventPixels=no,e.Doc=wa,e.splitLines=Fe,e.countColumn=V,e.findColumn=W,e.isWordChar=te,e.Pass=U,e.signal=ve,e.Line=cn,e.changeEnd=lo,e.scrollbarModel=ki,e.Pos=ot,e.cmpPos=at,e.modes=Ve,e.mimeModes=qe,e.resolveMode=Be,e.getMode=He,e.modeExtensions=Ge,e.extendMode=We,e.copyState=Ye,e.startState=$e,e.innerMode=Qe,e.commands=Ja,e.keyMap=ja,e.keyName=Ha,e.isModifierKey=Ua,e.lookupKey=za,e.normalizeKeyMap=qa,e.StringStream=Ke,e.SharedTextMarker=va,e.TextMarker=ma,e.LineWidget=pa,e.e_preventDefault=xe,e.e_stopPropagation=we,e.e_stop=Ce,e.addClass=F,e.contains=I,e.rmClass=S,e.keyNames=Fa}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!ye(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Gs(r);zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,B):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),he(i,"input",(function(){s&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(i,"paste",(function(e){ye(r,e)||Bs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),o(a,"prepareCopyCut"),he(i,"cut",a),he(i,"copy",a),he(e.scroller,"paste",(function(t){if(!Hn(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),he(e.lineSpace,"selectstart",(function(t){Hn(e,t)||xe(t)})),he(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),he(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Ys(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Hr(e);if(e.options.moveInputWithCursor){var i=br(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),s&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,o(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,c=Math.min(r.length,i.length);a1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Mr(n,e),u=r.scroller.scrollTop;if(a&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Ii(n,Uo)(n.doc,so(a),B);var p,d=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(p=window.scrollY),r.input.focus(),c&&window.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o(v,"prepareSelectAllHack"),o(y,"rehide"),s&&l>=9&&v(),T){Ce(e);var g=o((function(){ge(window,"mouseup",g),setTimeout(y,20)}),"mouseup");he(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=d,s&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!s||s&&l<9)&&v();var e=0,a=o((function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ii(n,Ko)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())}),"poll");r.detectingSelectAll=setTimeout(a,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,o(ol,"fromTextArea"),o(al,"addLegacyProps"),Ls(Rs),Qs(Rs);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in wa.prototype)wa.prototype.hasOwnProperty(ll)&&z(sl,ll)<0&&(Rs.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(wa.prototype[ll]));return Ee(wa),Rs.inputStyles={textarea:il,contenteditable:Js},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),ze.apply(this,arguments)},Rs.defineMIME=Ue,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){wa.prototype[e]=t},Rs.fromTextArea=ol,al(Rs),Rs.version="5.65.3",Rs}();var c=l.exports,u=Object.freeze(a({__proto__:null,[Symbol.toStringTag]:"Module",default:c},[l.exports]))},1589:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,P:()=>s,R:()=>a});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});class o{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}i(o,"CharacterStream");class a{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new s(e,t)}setEnd(e,t){this.end=new s(e,t)}}i(a,"Range");class s{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{"use strict";e.exports=function(e){return e[1]}},1794:(e,t,n)=>{"use strict";n.d(t,{A:()=>_s,B:()=>Us,C:()=>Ia,D:()=>Bs,G:()=>$i,I:()=>Po,J:()=>Ki,K:()=>uc,L:()=>qa,P:()=>za,R:()=>Ga,a:()=>nc,c:()=>A,d:()=>Kr,e:()=>cl,f:()=>rc,g:()=>ml,h:()=>ul,i:()=>Va,j:()=>pl,k:()=>Tl,l:()=>Ma,m:()=>sc,n:()=>Jl,o:()=>Fa,p:()=>ja,r:()=>Os,s:()=>Ds,t:()=>Pa,u:()=>fl,w:()=>Ks,x:()=>Js,y:()=>ks,z:()=>Es});var r=n(9820),i=n(5785),o=n(3472),a=n(6854),s=n(8244),l=n(3417),c=n(2296),u=n(5903),p=n(743),f=n(8976),d=n(3764),h=n(6855),m=n(7288),g=n(6397),v=Object.defineProperty,y=Object.defineProperties,b=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))E.call(t,n)&&w(e,n,t[n]);if(k)for(var n of k(t))x.call(t,n)&&w(e,n,t[n]);return e},C=(e,t)=>y(e,b(t)),_=(e,t)=>v(e,"name",{value:t,configurable:!0}),S=(e,t)=>{var n={};for(var r in e)E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&k)for(var r of k(e))t.indexOf(r)<0&&x.call(e,r)&&(n[r]=e[r]);return n},A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}_(N,"getDefaultExportFromCjs"),_(O,"getAugmentedNamespace");var D=/["'&<>]/,I=L;function L(e){var t,n=""+e,r=D.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},R=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,P={},j={};function V(e){var t,n,r=j[e];if(r)return r;for(r=j[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}_(V,"getEncodeCache"),_(q,"encode$1"),q.defaultChars=";/?:@&=+$,-_.!~*'()#",q.componentChars="-_.!~*'()";var z=q,U={};function B(e){var t,n,r=U[e];if(r)return r;for(r=U[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}_(B,"getDecodeCache"),_(H,"decode$1"),H.defaultChars=";/?:@&=+$,#",H.componentChars="";var G=H,W=_((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}),"format");function Y(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}_(Y,"Url");var Q=/^([a-z0-9.+-]+:)/i,$=/:[0-9]*$/,K=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,J=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Z=["'"].concat(J),X=["%","/","?",";","#"].concat(Z),ee=["/","?","#"],te=/^[+a-z0-9A-Z_-]{0,63}$/,ne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,re={javascript:!0,"javascript:":!0},ie={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function oe(e,t){if(e&&e instanceof Y)return e;var n=new Y;return n.parse(e,t),n}_(oe,"urlParse"),Y.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var l=K.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=Q.exec(s);if(c&&(i=(c=c[0]).toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||c&&re[c]||(s=s.substr(2),this.slashes=!0)),!re[c]&&(a||c&&!ie[c])){var u,p,f=-1;for(n=0;n127?v+="x":v+=g[y];if(!v.match(te)){var k=m.slice(0,n),E=m.slice(n+1),x=g.match(ne);x&&(k.push(x[1]),E.unshift(x[2])),E.length&&(s=E.join(".")+s),this.hostname=k.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var w=s.indexOf("#");-1!==w&&(this.hash=s.substr(w),s=s.slice(0,w));var T=s.indexOf("?");return-1!==T&&(this.search=s.substr(T),s=s.slice(0,T)),s&&(this.pathname=s),ie[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Y.prototype.parseHost=function(e){var t=$.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var ae=oe;P.encode=z,P.decode=G,P.format=W,P.parse=ae;var se={},le=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ce=/[\0-\x1F\x7F-\x9F]/,ue=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;se.Any=le,se.Cc=ce,se.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,se.P=R,se.Z=ue,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}_(t,"_class"),_(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function l(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}_(i,"has"),_(o,"assign"),_(a,"arrayReplaceAt"),_(s,"isValidEntityCode"),_(l,"fromCodePoint");var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=M;function d(e,t){var n=0;return i(f,t)?f[t]:35===t.charCodeAt(0)&&p.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?l(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||d(e,n)}))}_(d,"replaceEntityPattern"),_(h,"unescapeMd"),_(m,"unescapeAll");var g=/[&<>"]/,v=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function b(e){return y[e]}function k(e){return g.test(e)?e.replace(v,b):e}_(b,"replaceUnsafeChar"),_(k,"escapeHtml");var E=/[.?*+^$[\]\\(){}|-]/g;function x(e){return e.replace(E,"\\$&")}function w(e){switch(e){case 9:case 32:return!0}return!1}function T(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}_(x,"escapeRE"),_(w,"isSpace"),_(T,"isWhiteSpace");var C=R;function S(e){return C.test(e)}function A(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function N(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}_(S,"isPunctChar"),_(A,"isMdAsciiPunct"),_(N,"normalizeReference"),e.lib={},e.lib.mdurl=P,e.lib.ucmicro=se,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=k,e.arrayReplaceAt=a,e.isSpace=w,e.isWhiteSpace=T,e.isMdAsciiPunct=A,e.isPunctChar=S,e.escapeRE=x,e.normalizeReference=N}(F);var pe={},fe=_((function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=de(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),me=F.unescapeAll,ge=_((function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t"+be(e[t].content)+""},ke.code_block=function(e,t,n,r,i){var o=e[t];return""+be(e[t].content)+"\n"},ke.fence=function(e,t,n,r,i){var o,a,s,l,c,u=e[t],p=u.info?ye(u.info).trim():"",f="",d="";return p&&(f=(s=p.split(/(\s+)/g))[0],d=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,f,d)||be(u.content)).indexOf(""+o+"\n"):"
"+o+"
\n"},ke.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},ke.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},ke.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},ke.text=function(e,t){return be(e[t].content)},ke.html_block=function(e,t){return e[t].content},ke.html_inline=function(e,t){return e[t].content},_(Ee,"Renderer$1"),Ee.prototype.renderAttrs=_((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")}),"renderToken"),Ee.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a\s]/i.test(e)}function Ie(e){return/^<\/a\s*>/i.test(e)}_(De,"isLinkOpen"),_(Ie,"isLinkClose");var Le=_((function(e){var t,n,r,i,o,a,s,l,c,u,p,f,d,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(De(a.content)&&d>0&&d--,Ie(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(c=a.content,v=e.md.linkify.match(c),s=[],f=a.level,p=0,l=0;lp&&((o=new e.Token("text","",0)).content=c.slice(p,u),o.level=f,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=f++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=f,s.push(o),(o=new e.Token("link_close","a",-1)).level=--f,o.markup="linkify",o.info="auto",s.push(o),p=v[l].lastIndex);p=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Re,je)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function qe(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Fe.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}_(je,"replaceFn"),_(Ve,"replace_scoped"),_(qe,"replace_rare");var ze=_((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Me.test(e.tokens[t].content)&&Ve(e.tokens[t].children),Fe.test(e.tokens[t].content)&&qe(e.tokens[t].children))}),"replace"),Ue=F.isWhiteSpace,Be=F.isPunctChar,He=F.isMdAsciiPunct,Ge=/['"]/,We=/['"]/g;function Ye(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Qe(e,t){var n,r,i,o,a,s,l,c,u,p,f,d,h,m,g,v,y,b,k,E,x;for(k=[],n=0;n=0&&!(k[y].level<=l);y--);if(k.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a=0)u=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(p=32,a=48&&u<=57&&(v=g=!1),g&&v&&(g=f,v=d),g||v){if(v)for(y=k.length-1;y>=0&&(c=k[y],!(k[y].level=0;t--)"inline"===e.tokens[t].type&&Ge.test(e.tokens[t].content)&&Qe(e.tokens[t].children,e)}),"smartquotes");function Ke(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}_(Ke,"Token$3"),Ke.prototype.attrIndex=_((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n}),"attrGet"),Ke.prototype.attrJoin=_((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var Je=Ke,Ze=Je;function Xe(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}_(Xe,"StateCore"),Xe.prototype.Token=Ze;var et=Xe,tt=Te,nt=[["normalize",Se],["block",Ae],["inline",Ne],["linkify",Le],["replacements",ze],["smartquotes",$e]];function rt(){this.ruler=new tt;for(var e=0;en)return!1;if(c=t+1,e.sCount[c]=4)return!1;if((a=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(k=e.src.charCodeAt(a++))&&45!==k&&58!==k)return!1;if(a>=e.eMarks[c])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E&&!ot(E))return!1;if(45===k&&ot(E))return!1;for(;a=4)return!1;if((u=st(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(p=u.length)||p!==d.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(f=e.push("table_open","table",1)).map=m=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s=4)break;for((u=st(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),c===t+2&&((f=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(f=e.push("tr_open","tr",1)).map=[c,c+1],s=0;s=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),ut=_((function(e,t,n,r){var i,o,a,s,l,c,u,p=!1,f=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>d)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(l=f,(o=(f=e.skipChars(f,i))-l)<3)return!1;if(u=e.src.slice(l,f),a=e.src.slice(f,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(f=l=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]=4||(f=e.skipChars(f,i))-l=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(r)return!0;for(s=f=e.sCount[t]+1,32===e.src.charCodeAt(C)?(C++,s++,f++,i=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[t]+f)%4==3?(C++,s++,f++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=C;C<_&&(o=e.src.charCodeAt(C),pt(o));)9===o?f+=4-(f+e.bsCount[t]+(i?1:0))%4:f++,C++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),c=C>=_,v=[e.sCount[t]],e.sCount[t]=f-s,y=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],E=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",p=t+1;p=(_=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(C++)||w){if(c)break;for(k=!1,a=0,l=E.length;a=_,h.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=f-s,y.push(e.tShift[p]),e.tShift[p]=C-e.bMarks[p]}for(m=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=u=[t,0],e.md.block.tokenize(e,t,p),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=T,e.parentType=g,u[1]=e.line,a=0;a=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(I=!0),(_=vt(e,t))>=0){if(u=!0,A=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(A,_-1)),I&&1!==g)return!1}else{if(!((_=gt(e,t))>=0))return!1;u=!1}if(I&&e.skipSpaces(_)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(_-1),r)return!0;for(h=e.tokens.length,u?(D=e.push("ordered_list_open","ol",1),1!==g&&(D.attrs=[["start",g]])):D=e.push("bullet_list_open","ul",1),D.map=d=[t,0],D.markup=String.fromCharCode(m),y=t,S=!1,O=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";y=v?1:b-c)>4&&(l=1),s=c+l,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),D.map=p=[t,0],u&&(D.info=e.src.slice(A,_-1)),T=e.tight,w=e.tShift[t],x=e.sCount[t],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!S||(L=!1),S=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[t]=w,e.sCount[t]=x,e.tight=T,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,p[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]=4)break;for(N=!1,a=0,f=O.length;a=4)return!1;if(91!==e.src.charCodeAt(E))return!1;for(;++E3||e.sCount[w]<0)){for(v=!1,c=0,u=y.length;c`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Ct="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",_t=new RegExp("^(?:"+Tt+"|"+Ct+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),St=new RegExp("^(?:"+Tt+"|"+Ct+")");wt.HTML_TAG_RE=_t,wt.HTML_OPEN_CLOSE_TAG_RE=St;var At=wt.HTML_OPEN_CLOSE_TAG_RE,Nt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(At.source+"\\s*$"),/^$/,!1]],Ot=_((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,c),i=0;i=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=c)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l6||ll&&Dt(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,c).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}),"heading"),Lt=_((function(e,t,n){var r,i,o,a,s,l,c,u,p,f,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d])<(c=e.eMarks[d])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i0&&this.level++,this.tokens.push(r),r},Pt.prototype.isEmpty=_((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Pt.prototype.skipEmptyLines=_((function(e){for(var t=this.lineMax;et;)if(!Rt(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Pt.prototype.skipChars=_((function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Pt.prototype.getLines=_((function(e,t,n,r){var i,o,a,s,l,c,u,p=e;if(e>=t)return"";for(c=new Array(t-e),i=0;pn?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")}),"getLines"),Pt.prototype.Token=Mt;var jt=Pt,Vt=Te,qt=[["table",lt,["paragraph","reference"]],["code",ct],["fence",ut,["paragraph","reference","blockquote","list"]],["blockquote",ft,["paragraph","reference","blockquote","list"]],["hr",ht,["paragraph","reference","blockquote","list"]],["list",bt,["paragraph","reference","blockquote"]],["reference",xt],["html_block",Ot,["paragraph","reference","blockquote"]],["heading",It,["paragraph","reference","blockquote"]],["lheading",Lt],["paragraph",Ft]];function zt(){this.ruler=new Vt;for(var e=0;e=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;r=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i?@[]^_`{|}~-".split("").forEach((function(e){Qt[e.charCodeAt(0)]=1}));var Kt=_((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}en.tokenize=_((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n=d)return!1;if(h=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(u=e.md.normalizeLink(l.str),e.md.validateLink(u)?s=l.pos:u="",h=s;s=d||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s=0?i=e.src.slice(h,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(c=e.env.references[nn(i)]))return e.pos=f,!1;u=c.href,p=c.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=d,!0}),"link"),an=F.normalizeReference,sn=F.isSpace,ln=_((function(e,t){var n,r,i,o,a,s,l,c,u,p,f,d,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=a+1)=v)return!1;for(h=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?l=u.pos:m=""),h=l;l=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l=0?o=e.src.slice(h,l++):l=a+1):l=a+1,o||(o=e.src.slice(s,a)),!(c=e.env.references[an(o)]))return e.pos=g,!1;m=c.href,p=c.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,d=[]),(f=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],f.children=d,f.content=i,p&&n.push(["title",p])),e.pos=l,e.posMax=v,!0}),"image"),cn=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,un=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,pn=_((function(e,t){var n,r,i,o,a,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(a=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(o=e.src.charCodeAt(l)))return!1;if(62===o)break}return n=e.src.slice(a+1,l),un.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!cn.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),fn=wt.HTML_TAG_RE;function dn(e){var t=32|e;return t>=97&&t<=122}_(dn,"isLetter");var hn=_((function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!dn(n)||!(r=e.src.slice(o).match(fn))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}),"html_inline"),mn=M,gn=F.has,vn=F.isValidEntityCode,yn=F.fromCodePoint,bn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,kn=/^&([a-z][a-z0-9]{1,31});/i,En=_((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+c,i.open=!1,o.end=n,o.jump=c,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}_(xn,"processDelimiters");var wn=_((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(xn(0,e.delimiters),t=0;t0&&r++,"text"===i[t].type&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Nn.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,l,c,u,p=e,f=!0,d=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Fn.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function Pn(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function jn(e){return Object.prototype.toString.call(e)}function Vn(e){return"[object String]"===jn(e)}function qn(e){return"[object Object]"===jn(e)}function zn(e){return"[object RegExp]"===jn(e)}function Un(e){return"[object Function]"===jn(e)}function Bn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}_(Pn,"assign"),_(jn,"_class"),_(Vn,"isString"),_(qn,"isObject$2"),_(zn,"isRegExp"),_(Un,"isFunction"),_(Bn,"escapeRE");var Hn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gn(e){return Object.keys(e||{}).reduce((function(e,t){return e||Hn.hasOwnProperty(t)}),!1)}_(Gn,"isOptionsObj");var Wn={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Yn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Qn(e){e.__index__=-1,e.__text_cache__=""}function $n(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Kn(e){var t=e.re=Rn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),_(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},_(o,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,qn(n))return zn(n.validate)?r.validate=$n(n.validate):Un(n.validate)?r.validate=n.validate:o(t,n),void(Un(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});Vn(n)?i.push(t):o(t,n)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Bn).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Qn(e)}function Jn(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Zn(e,t){var n=new Jn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Xn(e,t){if(!(this instanceof Xn))return new Xn(e,t);t||Gn(e)&&(t=e,e={}),this.__opts__=Pn({},Hn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pn({},Wn,e),this.__compiled__={},this.__tlds__=Yn,this.__tlds_replaced__=!1,this.re={},Kn(this)}_(Qn,"resetScanCache"),_($n,"createValidator"),_((function(){return function(e,t){t.normalize(e)}}),"createNormalizer"),_(Kn,"compile"),_(Jn,"Match"),_(Zn,"createMatch"),_(Xn,"LinkifyIt$1"),Xn.prototype.add=_((function(e,t){return this.__schemas__[e]=t,Kn(this),this}),"add"),Xn.prototype.set=_((function(e){return this.__opts__=Pn(this.__opts__,e),this}),"set"),Xn.prototype.test=_((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),Xn.prototype.pretest=_((function(e){return this.re.pretest.test(e)}),"pretest"),Xn.prototype.testSchemaAt=_((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),Xn.prototype.match=_((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Zn(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Zn(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),Xn.prototype.tlds=_((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),Kn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Kn(this),this)}),"tlds"),Xn.prototype.normalize=_((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),Xn.prototype.onCompile=_((function(){}),"onCompile");var er=Xn;const tr=2147483647,nr=36,rr=/^xn--/,ir=/[^\0-\x7E]/,or=/[\x2E\u3002\uFF0E\uFF61]/g,ar={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sr=Math.floor,lr=String.fromCharCode;function cr(e){throw new RangeError(ar[e])}function ur(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function pr(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+ur((e=e.replace(or,".")).split("."),t).join(".")}function fr(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e)),"ucs2encode"),hr=_((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:nr}),"basicToDigit"),mr=_((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),gr=_((function(e,t,n){let r=0;for(e=n?sr(e/700):e>>1,e+=sr(e/t);e>455;r+=nr)e=sr(e/35);return sr(r+36*e/(e+38))}),"adapt"),vr=_((function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n=128&&cr("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s=n&&cr("invalid-input");const a=hr(e.charCodeAt(s++));(a>=nr||a>sr((tr-r)/t))&&cr("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(asr(tr/c)&&cr("overflow"),t*=c}const l=t.length+1;o=gr(r-a,l,0==a),sr(r/l)>tr-i&&cr("overflow"),i+=sr(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}),"decode"),yr=_((function(e){const t=[];let n=(e=fr(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(lr(n));let a=t.length,s=a;for(a&&t.push("-");s=r&&tsr((tr-i)/l)&&cr("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(ntr&&cr("overflow"),n==r){let e=i;for(let n=nr;;n+=nr){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=Dr.toASCII(t.hostname)}catch(e){}return Or.encode(Or.format(t))}function jr(e){var t=Or.parse(e,!0);if(t.hostname&&(!t.protocol||Rr.indexOf(t.protocol)>=0))try{t.hostname=Dr.toUnicode(t.hostname)}catch(e){}return Or.decode(Or.format(t),Or.decode.defaultChars+"%")}function Vr(e,t){if(!(this instanceof Vr))return new Vr(e,t);t||wr.isString(e)||(t=e||{},e="default"),this.inline=new Ar,this.block=new Sr,this.core=new _r,this.renderer=new Cr,this.linkify=new Nr,this.validateLink=Mr,this.normalizeLink=Pr,this.normalizeLinkText=jr,this.utils=wr,this.helpers=wr.assign({},Tr),this.options={},this.configure(e),t&&this.set(t)}_(Pr,"normalizeLink"),_(jr,"normalizeLinkText"),_(Vr,"MarkdownIt"),Vr.prototype.set=function(e){return wr.assign(this.options,e),this},Vr.prototype.configure=function(e){var t,n=this;if(wr.isString(e)&&!(e=Ir[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Vr.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Vr.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Vr.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Vr.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Vr.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Vr.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Vr.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const qr=new Vr;var zr=Object.defineProperty,Ur=_(((e,t)=>zr(e,"name",{value:t,configurable:!0})),"__name$j");const Br="graphiql",Hr="sublime";let Gr=!1;"object"==typeof window&&(Gr=0===window.navigator.platform.toLowerCase().indexOf("mac"));const Wr={[Gr?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Yr(e,t){const r=await Promise.resolve().then(n.bind(n,1566)).then((function(e){return e.c})).then((e=>"function"==typeof e?e:e.default));return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.resolve().then(n.bind(n,8241)).then((function(e){return e.s})),Promise.resolve().then(n.bind(n,5762)).then((function(e){return e.m})),Promise.resolve().then(n.bind(n,2545)).then((function(e){return e.c})),Promise.resolve().then(n.bind(n,3915)).then((function(e){return e.b})),Promise.resolve().then(n.bind(n,64)).then((function(e){return e.f})),Promise.resolve().then(n.bind(n,3486)).then((function(e){return e.l})),Promise.resolve().then(n.bind(n,3450)).then((function(e){return e.s})),Promise.resolve().then(n.bind(n,9061)).then((function(e){return e.j})),Promise.resolve().then(n.bind(n,5960)).then((function(e){return e.d})),Promise.resolve().then(n.bind(n,1395)).then((function(e){return e.s})),...e]),r}_(Yr,"importCodeMirror"),Ur(Yr,"importCodeMirror");var Qr=Object.defineProperty,$r=_(((e,t)=>Qr(e,"name",{value:t,configurable:!0})),"__name$i");function Kr(e,t,n,r){function i(e){if(!(n&&r&&e.currentTarget instanceof HTMLElement&&"typeName"===e.currentTarget.className))return;const t=e.currentTarget.innerHTML,i=n.getType(t);i&&(r.show(),r.push({name:i.name,def:i}))}Yr([],{useCommonAddons:!1}).then((e=>{let n,r;e.on(t,"select",((e,t)=>{if(!n){const e=t.parentNode;let o;n=document.createElement("div"),n.className="CodeMirror-hint-information",n.addEventListener("click",i),e.appendChild(n),r=document.createElement("div"),r.className="CodeMirror-hint-deprecation",e.appendChild(r),e.addEventListener("DOMNodeRemoved",o=$r((t=>{t.target===e&&(e.removeEventListener("DOMNodeRemoved",o),n&&n.removeEventListener("click",i),n=null,r=null,o=null)}),"onRemoveFn"))}const o=e.description?qr.render(e.description):"Self descriptive.",a=e.type?''+Jr(e.type)+"":"";if(n.innerHTML='
'+("

"===o.slice(0,3)?"

"+a+o.slice(3):a+o)+"

",e&&r&&e.deprecationReason){const t=e.deprecationReason?qr.render(e.deprecationReason):"";r.innerHTML='Deprecated'+t,r.style.display="block"}else r&&(r.style.display="none")}))})),_(i,"onClickHintInformation"),$r(i,"onClickHintInformation")}function Jr(e){return(0,r.bd)(e)?`${Jr(e.ofType)}!`:(0,r.Fs)(e)?`[${Jr(e.ofType)}]`:`${I(e.name)}`}_(Kr,"onHasCompletion"),$r(Kr,"onHasCompletion"),_(Jr,"renderType"),$r(Jr,"renderType");var Zr={exports:{}},Xr={};function ei(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,_((function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}),"toObject"),_(ei,"shouldUseNative"),ei()&&Object.assign;var ti=m,ni=60103;if(Xr.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var ri=Symbol.for;ni=ri("react.element"),Xr.Fragment=ri("react.fragment")}var ii=ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oi=Object.prototype.hasOwnProperty,ai={key:!0,ref:!0,__self:!0,__source:!0};function si(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)oi.call(t,r)&&!ai.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:ni,type:e,key:o,ref:a,props:i,_owner:ii.current}}_(si,"q"),Xr.jsx=si,Xr.jsxs=si,Zr.exports=Xr;const li=Zr.exports.jsx,ci=Zr.exports.jsxs;var ui=Object.defineProperty,pi=_(((e,t)=>ui(e,"name",{value:t,configurable:!0})),"__name$h");function fi(e){var t;const[n,r]=(0,m.useState)({width:null,height:null}),[i,o]=(0,m.useState)(null),a=(0,m.useRef)(null),s=null==(t=di(e.token))?void 0:t.href;(0,m.useEffect)((()=>{if(a.current)return s?void fetch(s,{method:"HEAD"}).then((e=>{o(e.headers.get("Content-Type"))})).catch((()=>{o(null)})):(r({width:null,height:null}),void o(null))}),[s]);const l=null!==n.width&&null!==n.height?ci("div",{children:[n.width,"x",n.height,null!==i?" "+i:null]}):null;return ci("div",{children:[li("img",{onLoad:()=>{var e,t,n,i;r({width:null!=(t=null==(e=a.current)?void 0:e.naturalWidth)?t:null,height:null!=(i=null==(n=a.current)?void 0:n.naturalHeight)?i:null})},ref:a,src:s}),l]})}function di(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}function hi(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function mi(e){return"object"==typeof e&&"function"==typeof e.then}function gi(e){return new Promise(((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})}))}function vi(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function yi(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function bi(e){return new Promise(((t,n)=>{var r;const i=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then((e=>{t(e.value),null==i||i()})).catch((e=>{n(e)}))}))}function ki(e){return Promise.resolve(e).then((e=>yi(e)?bi(e):vi(e)?gi(e):e))}_(fi,"ImagePreview"),pi(fi,"ImagePreview"),fi.shouldRender=pi(_((function(e){const t=di(e);return!!t&&hi(t)}),"shouldRender"),"shouldRender"),_(di,"tokenToURL"),pi(di,"tokenToURL"),_(hi,"isImageURL"),pi(hi,"isImageURL"),_(mi,"isPromise"),_(gi,"observableToPromise"),_(vi,"isObservable"),_(yi,"isAsyncIterable"),_(bi,"asyncIterableToPromise"),_(ki,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var Ei=globalThis&&globalThis.__await||function(e){return this instanceof Ei?(this.v=e,this):new Ei(e)};function xi(e){return JSON.stringify(e,null,2)}function wi(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function Ti(e){return e instanceof Error?wi(e):e}function Ci(e){return Array.isArray(e)?xi({errors:e.map((e=>Ti(e)))}):xi({errors:[Ti(e)]})}function _i(e){return xi(e)}function Si(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let l;try{l=(0,i.qg)(t)}catch(e){return{insertions:r,result:t}}const c=n||Ai,u=new o.D(e);return(0,a.YR)(l,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=Ni(Ii(u.getType()),c);if(n&&e.loc){const i=Di(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,s.y)(n).replace(/\n/g,"\n"+i)})}}}}),{insertions:r,result:Oi(t,r)}}function Ai(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach((e=>{(0,r.zf)(t[e].type)&&n.push(e)})),n}function Ni(e,t){const n=(0,r.MR)(e);if(!e||(0,r.zf)(e))return;const i=t(n);return Array.isArray(i)&&0!==i.length&&"getFields"in n?{kind:l.b.SELECTION_SET,selections:i.map((e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:l.b.FIELD,name:{kind:l.b.NAME,value:e},selectionSet:Ni(i,t)}}))}:void 0}function Oi(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach((({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t})),n+=e.slice(r),n}function Di(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function Ii(e){if(e)return e}function Li(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function Fi(e,t,n){var i;const o=n?(0,r.MR)(n).name:null,a=[],s=[];for(let r of t){if("FragmentSpread"===r.kind){const t=r.name.value;if(!r.directives||0===r.directives.length){if(s.indexOf(t)>=0)continue;s.push(t)}const n=e[r.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:i}=n;r={kind:l.b.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:i}}}if(r.kind===l.b.INLINE_FRAGMENT&&(!r.directives||0===(null===(i=r.directives)||void 0===i?void 0:i.length))){const t=r.typeCondition?r.typeCondition.name.value:null;if(!t||t===o){a.push(...Fi(e,r.selectionSet.selections,n));continue}}a.push(r)}return a}function Mi(e,t){const n=t?new o.D(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===l.b.FRAGMENT_DEFINITION&&(r[t.name.value]=t);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=Fi(r,i,t),i=Li(i,(e=>e.alias?e.alias.value:e.name.value)),Object.assign(Object.assign({},e),{selections:i})},FragmentDefinition:()=>null};return(0,a.YR)(e,n?(0,o.S)(n,i):i)}function Ri(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==n&&nt.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName))}edit(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}_(qi,"QueryStore");class zi{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new qi("queries",this.storage,this.maxHistoryLength),this.favorite=new qi("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,i.qg)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}_(zi,"HistoryStore");var Ui=Object.defineProperty,Bi=_(((e,t)=>Ui(e,"name",{value:t,configurable:!0})),"__name$g");function Hi(e){const t=(0,m.createContext)(null);return t.displayName=e,t}function Gi(e){function t(n){var r;const i=(0,m.useContext)(e);if(null===i&&(null==n?void 0:n.nonNull))throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i}return _(t,"useGivenContext"),Bi(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}_(Hi,"createNullableContext"),Bi(Hi,"createNullableContext"),_(Gi,"createContextHook"),Bi(Gi,"createContextHook");var Wi=Object.defineProperty,Yi=_(((e,t)=>Wi(e,"name",{value:t,configurable:!0})),"__name$f");const Qi=Hi("StorageContext");function $i(e){const t=(0,m.useRef)(!0),[n,r]=(0,m.useState)(new ji(e.storage));return(0,m.useEffect)((()=>{t.current?t.current=!1:r(new ji(e.storage))}),[e.storage]),li(Qi.Provider,{value:n,children:e.children})}_($i,"StorageContextProvider"),Yi($i,"StorageContextProvider");const Ki=Gi(Qi);var Ji,Zi,Xi,eo,to,no,ro,io,oo,ao,so,lo,co,uo,po,fo,ho,mo,go,vo,yo,bo,ko,Eo,xo,wo,To,Co,_o,So,Ao;!function(e){function t(e){return"string"==typeof e}_(t,"is"),e.is=t}(Ji||(Ji={})),function(e){function t(e){return"string"==typeof e}_(t,"is"),e.is=t}(Zi||(Zi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,_(t,"is"),e.is=t}(Xi||(Xi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,_(t,"is"),e.is=t}(eo||(eo={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=eo.MAX_VALUE),t===Number.MAX_VALUE&&(t=eo.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return Da.objectLiteral(t)&&Da.uinteger(t.line)&&Da.uinteger(t.character)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(to||(to={})),function(e){function t(e,t,n,r){if(Da.uinteger(e)&&Da.uinteger(t)&&Da.uinteger(n)&&Da.uinteger(r))return{start:to.create(e,t),end:to.create(n,r)};if(to.is(e)&&to.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return Da.objectLiteral(t)&&to.is(t.start)&&to.is(t.end)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(no||(no={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return Da.defined(t)&&no.is(t.range)&&(Da.string(t.uri)||Da.undefined(t.uri))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(ro||(ro={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return Da.defined(t)&&no.is(t.targetRange)&&Da.string(t.targetUri)&&no.is(t.targetSelectionRange)&&(no.is(t.originSelectionRange)||Da.undefined(t.originSelectionRange))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(io||(io={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return Da.objectLiteral(t)&&Da.numberRange(t.red,0,1)&&Da.numberRange(t.green,0,1)&&Da.numberRange(t.blue,0,1)&&Da.numberRange(t.alpha,0,1)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(oo||(oo={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return Da.objectLiteral(t)&&no.is(t.range)&&oo.is(t.color)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(ao||(ao={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return Da.objectLiteral(t)&&Da.string(t.label)&&(Da.undefined(t.textEdit)||ko.is(t))&&(Da.undefined(t.additionalTextEdits)||Da.typedArray(t.additionalTextEdits,ko.is))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(so||(so={})),(co=lo||(lo={})).Comment="comment",co.Imports="imports",co.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return Da.defined(n)&&(a.startCharacter=n),Da.defined(r)&&(a.endCharacter=r),Da.defined(i)&&(a.kind=i),Da.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return Da.objectLiteral(t)&&Da.uinteger(t.startLine)&&Da.uinteger(t.startLine)&&(Da.undefined(t.startCharacter)||Da.uinteger(t.startCharacter))&&(Da.undefined(t.endCharacter)||Da.uinteger(t.endCharacter))&&(Da.undefined(t.kind)||Da.string(t.kind))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(uo||(uo={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return Da.defined(t)&&ro.is(t.location)&&Da.string(t.message)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(po||(po={})),(ho=fo||(fo={})).Error=1,ho.Warning=2,ho.Information=3,ho.Hint=4,(go=mo||(mo={})).Unnecessary=1,go.Deprecated=2,function(e){function t(e){var t=e;return Da.objectLiteral(t)&&Da.string(t.href)}_(t,"is"),e.is=t}(vo||(vo={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return Da.defined(n)&&(a.severity=n),Da.defined(r)&&(a.code=r),Da.defined(i)&&(a.source=i),Da.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return Da.defined(n)&&no.is(n.range)&&Da.string(n.message)&&(Da.number(n.severity)||Da.undefined(n.severity))&&(Da.integer(n.code)||Da.string(n.code)||Da.undefined(n.code))&&(Da.undefined(n.codeDescription)||Da.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Da.string(n.source)||Da.undefined(n.source))&&(Da.undefined(n.relatedInformation)||Da.typedArray(n.relatedInformation,po.is))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(yo||(yo={})),function(e){function t(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i}function n(e){var t=e;return Da.defined(t)&&Da.string(t.title)&&Da.string(t.command)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(bo||(bo={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return Da.objectLiteral(t)&&Da.string(t.newText)&&no.is(t.range)}_(t,"replace"),e.replace=t,_(n,"insert"),e.insert=n,_(r,"del"),e.del=r,_(i,"is"),e.is=i}(ko||(ko={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return Da.objectLiteral(t)&&Da.string(t.label)&&(Da.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Da.string(t.description)||void 0===t.description)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(Eo||(Eo={})),function(e){function t(e){var t=e;return Da.string(t)}_(t,"is"),e.is=t}(xo||(xo={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return ko.is(t)&&(Eo.is(t.annotationId)||xo.is(t.annotationId))}_(t,"replace"),e.replace=t,_(n,"insert"),e.insert=n,_(r,"del"),e.del=r,_(i,"is"),e.is=i}(wo||(wo={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return Da.defined(t)&&Do.is(t.textDocument)&&Array.isArray(t.edits)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(To||(To={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&Da.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Da.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Da.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||xo.is(t.annotationId))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(Co||(Co={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&Da.string(t.oldUri)&&Da.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Da.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Da.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||xo.is(t.annotationId))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(_o||(_o={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&Da.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Da.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Da.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||xo.is(t.annotationId))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(So||(So={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Da.string(e.kind)?Co.is(e)||_o.is(e)||So.is(e):To.is(e)})))}_(t,"is"),e.is=t}(Ao||(Ao={}));var No,Oo,Do,Io,Lo,Fo,Mo,Ro,Po,jo,Vo,qo,zo,Uo,Bo,Ho,Go,Wo,Yo,Qo,$o,Ko,Jo,Zo,Xo,ea,ta,na,ra,ia,oa,aa,sa,la,ca,ua,pa,fa,da,ha,ma,ga,va,ya,ba,ka,Ea,xa,wa,Ta,Ca,_a,Sa,Aa,Na=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return _(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=ko.insert(e,t):xo.is(n)?(i=n,r=wo.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=wo.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=ko.replace(e,t):xo.is(n)?(i=n,r=wo.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=wo.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=ko.del(e):xo.is(t)?(r=t,n=wo.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=wo.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Oa=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return _(e,"ChangeAnnotations"),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(e,t){var n;if(xo.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Oa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(To.is(e)){var n=new Na(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Na(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}_(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Do.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Na(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Na(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Oa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Eo.is(t)||xo.is(t)?r=t:n=t,void 0===r?i=Co.create(e,n):(o=xo.is(r)?r:this._changeAnnotations.manage(r),i=Co.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(Eo.is(n)||xo.is(n)?i=n:r=n,void 0===i?o=_o.create(e,t,r):(a=xo.is(i)?i:this._changeAnnotations.manage(i),o=_o.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Eo.is(t)||xo.is(t)?r=t:n=t,void 0===r?i=So.create(e,n):(o=xo.is(r)?r:this._changeAnnotations.manage(r),i=So.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return Da.defined(t)&&Da.string(t.uri)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(No||(No={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Da.defined(t)&&Da.string(t.uri)&&Da.integer(t.version)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(Oo||(Oo={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Da.defined(t)&&Da.string(t.uri)&&(null===t.version||Da.integer(t.version))}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(Do||(Do={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return Da.defined(t)&&Da.string(t.uri)&&Da.string(t.languageId)&&Da.integer(t.version)&&Da.string(t.text)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(Io||(Io={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",_(t,"is"),e.is=t}(Lo||(Lo={})),function(e){function t(e){var t=e;return Da.objectLiteral(e)&&Lo.is(t.kind)&&Da.string(t.value)}_(t,"is"),e.is=t}(Fo||(Fo={})),(Ro=Mo||(Mo={})).Text=1,Ro.Method=2,Ro.Function=3,Ro.Constructor=4,Ro.Field=5,Ro.Variable=6,Ro.Class=7,Ro.Interface=8,Ro.Module=9,Ro.Property=10,Ro.Unit=11,Ro.Value=12,Ro.Enum=13,Ro.Keyword=14,Ro.Snippet=15,Ro.Color=16,Ro.File=17,Ro.Reference=18,Ro.Folder=19,Ro.EnumMember=20,Ro.Constant=21,Ro.Struct=22,Ro.Event=23,Ro.Operator=24,Ro.TypeParameter=25,(jo=Po||(Po={})).PlainText=1,jo.Snippet=2,(Vo||(Vo={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&Da.string(t.newText)&&no.is(t.insert)&&no.is(t.replace)}_(t,"create"),e.create=t,_(n,"is"),e.is=n}(qo||(qo={})),(Uo=zo||(zo={})).asIs=1,Uo.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(Da.string(t.detail)||void 0===t.detail)&&(Da.string(t.description)||void 0===t.description)}_(t,"is"),e.is=t}(Bo||(Bo={})),function(e){function t(e){return{label:e}}_(t,"create"),e.create=t}(Ho||(Ho={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}_(t,"create"),e.create=t}(Go||(Go={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return Da.string(t)||Da.objectLiteral(t)&&Da.string(t.language)&&Da.string(t.value)}_(t,"fromPlainText"),e.fromPlainText=t,_(n,"is"),e.is=n}(Wo||(Wo={})),function(e){function t(e){var t=e;return!!t&&Da.objectLiteral(t)&&(Fo.is(t.contents)||Wo.is(t.contents)||Da.typedArray(t.contents,Wo.is))&&(void 0===e.range||no.is(e.range))}_(t,"is"),e.is=t}(Yo||(Yo={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}_(t,"create"),e.create=t}(Qo||(Qo={})),function(e){function t(e,t){for(var n=[],r=2;r=0;a--){var s=r[a],l=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");n=n.substring(0,l)+s.newText+n.substring(c,n.length),o=l}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,l=0;a0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return to.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return to.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function Pa(e,t){return{style:t,match:t=>t.kind===e}}function ja(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function c(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function u(e){return"[object Function]"===t.call(e)}function p(e){return null!==e&&"object"==typeof e}function f(e,t){return Array.isArray(e)&&e.every(t)}_(n,"defined"),e.defined=n,_(r,"undefined$1"),e.undefined=r,_(i,"boolean"),e.boolean=i,_(o,"string"),e.string=o,_(a,"number"),e.number=a,_(s,"numberRange"),e.numberRange=s,_(l,"integer"),e.integer=l,_(c,"uinteger"),e.uinteger=c,_(u,"func"),e.func=u,_(p,"objectLiteral"),e.objectLiteral=p,_(f,"typedArray"),e.typedArray=f}(Da||(Da={})),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}(Ia||(Ia={})),_(Fa,"opt"),_(Ma,"list"),_(Ra,"butNot"),_(Pa,"t"),_(ja,"p");const Va=_((e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e),"isIgnored"),qa={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},za={Document:[Ma("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return l.b.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Ua("query"),Fa(Ba("def")),Fa("VariableDefinitions"),Ma("Directive"),"SelectionSet"],Mutation:[Ua("mutation"),Fa(Ba("def")),Fa("VariableDefinitions"),Ma("Directive"),"SelectionSet"],Subscription:[Ua("subscription"),Fa(Ba("def")),Fa("VariableDefinitions"),Ma("Directive"),"SelectionSet"],VariableDefinitions:[ja("("),Ma("VariableDefinition"),ja(")")],VariableDefinition:["Variable",ja(":"),"Type",Fa("DefaultValue")],Variable:[ja("$","variable"),Ba("variable")],DefaultValue:[ja("="),"Value"],SelectionSet:[ja("{"),Ma("Selection"),ja("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Ba("property"),ja(":"),Ba("qualifier"),Fa("Arguments"),Ma("Directive"),Fa("SelectionSet")],Field:[Ba("property"),Fa("Arguments"),Ma("Directive"),Fa("SelectionSet")],Arguments:[ja("("),Ma("Argument"),ja(")")],Argument:[Ba("attribute"),ja(":"),"Value"],FragmentSpread:[ja("..."),Ba("def"),Ma("Directive")],InlineFragment:[ja("..."),Fa("TypeCondition"),Ma("Directive"),"SelectionSet"],FragmentDefinition:[Ua("fragment"),Fa(Ra(Ba("def"),[Ua("on")])),"TypeCondition",Ma("Directive"),"SelectionSet"],TypeCondition:[Ua("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Pa("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Pa("Name","builtin")],NullValue:[Pa("Name","keyword")],EnumValue:[Ba("string-2")],ListValue:[ja("["),Ma("Value"),ja("]")],ObjectValue:[ja("{"),Ma("ObjectField"),ja("}")],ObjectField:[Ba("attribute"),ja(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[ja("["),"Type",ja("]"),Fa(ja("!"))],NonNullType:["NamedType",Fa(ja("!"))],NamedType:[Ha("atom")],Directive:[ja("@","meta"),Ba("meta"),Fa("Arguments")],DirectiveDef:[Ua("directive"),ja("@","meta"),Ba("meta"),Fa("ArgumentsDef"),Ua("on"),Ma("DirectiveLocation",ja("|"))],InterfaceDef:[Ua("interface"),Ba("atom"),Fa("Implements"),Ma("Directive"),ja("{"),Ma("FieldDef"),ja("}")],Implements:[Ua("implements"),Ma("NamedType",ja("&"))],DirectiveLocation:[Ba("string-2")],SchemaDef:[Ua("schema"),Ma("Directive"),ja("{"),Ma("OperationTypeDef"),ja("}")],OperationTypeDef:[Ba("keyword"),ja(":"),Ba("atom")],ScalarDef:[Ua("scalar"),Ba("atom"),Ma("Directive")],ObjectTypeDef:[Ua("type"),Ba("atom"),Fa("Implements"),Ma("Directive"),ja("{"),Ma("FieldDef"),ja("}")],FieldDef:[Ba("property"),Fa("ArgumentsDef"),ja(":"),"Type",Ma("Directive")],ArgumentsDef:[ja("("),Ma("InputValueDef"),ja(")")],InputValueDef:[Ba("attribute"),ja(":"),"Type",Fa("DefaultValue"),Ma("Directive")],UnionDef:[Ua("union"),Ba("atom"),Ma("Directive"),ja("="),Ma("UnionMember",ja("|"))],UnionMember:["NamedType"],EnumDef:[Ua("enum"),Ba("atom"),Ma("Directive"),ja("{"),Ma("EnumValueDef"),ja("}")],EnumValueDef:[Ba("string-2"),Ma("Directive")],InputDef:[Ua("input"),Ba("atom"),Ma("Directive"),ja("{"),Ma("InputValueDef"),ja("}")],ExtendDef:[Ua("extend"),"ObjectTypeDef"]};function Ua(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Ba(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ha(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}_(Ua,"word"),_(Ba,"name"),_(Ha,"type");const Ga=Object.assign(Object.assign({},l.b),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"});var Wa={exports:{}};function Ya(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}_(Ya,"nullthrows"),Wa.exports=Ya,Wa.exports.default=Ya,Object.defineProperty(Wa.exports,"__esModule",{value:!0});var Qa=N(Wa.exports);const $a=_(((e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,a.YR)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;r.forEach((e=>{!n.has(e)&&t.has(e)&&i.add(Qa(t.get(e)))}));const o=[];return i.forEach((e=>{(0,a.YR)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(Qa(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e)})),o}),"getFragmentDependenciesForAST");function Ka(e,t){const n=Object.create(null);return t.definitions.forEach((t=>{if("OperationDefinition"===t.kind){const r=t.variableDefinitions;r&&r.forEach((({variable:t,type:r})=>{const i=(0,c.v)(e,r);i?n[t.name.value]=i:r.kind===l.b.NAMED_TYPE&&"Float"===r.name.value&&(n[t.name.value]=u.qS)}))}})),n}function Ja(e,t){const n=t?Ka(t,e):void 0,r=[];return(0,a.YR)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function Za(e,t){if(t)try{const n=(0,i.qg)(t);return Object.assign(Object.assign({},Ja(n,e)),{documentAST:n})}catch(e){return}}_(Ka,"collectVariables"),_(Ja,"getOperationASTFacts"),_(Za,"getOperationFacts"),globalThis&&globalThis.__awaiter;var Xa=_((function(e){return"object"==typeof e?null===e:"function"!=typeof e}),"isPrimitive"),es=_((function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}),"isObject");function ts(e){return!0===es(e)&&"[object Object]"===Object.prototype.toString.call(e)}_(ts,"isObjectObject");var ns=_((function(e){var t,n;return!1!==ts(e)&&"function"==typeof(t=e.constructor)&&!1!==ts(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}),"isPlainObject");const{deleteProperty:rs}=Reflect,is=Xa,os=ns,as=_((e=>"object"==typeof e&&null!==e||"function"==typeof e),"isObject"),ss=_((e=>"__proto__"===e||"constructor"===e||"prototype"===e),"isUnsafeKey"),ls=_((e=>{if(!is(e))throw new TypeError("Object keys must be strings or symbols");if(ss(e))throw new Error(`Cannot set unsafe key: "${e}"`)}),"validateKey"),cs=_((e=>Array.isArray(e)?e.flat().map(String).join(","):e),"toStringKey"),us=_(((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n}),"createMemoKey"),ps=_(((e,t,n)=>{const r=cs(t?us(e,t):e);ls(r);const i=ms.cache.get(r)||n();return ms.cache.set(r,i),i}),"memoize"),fs=_(((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=_((e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)}),"push");for(let t=0;tt&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:ps(e,t,(()=>fs(e,t)))),"split"),hs=_(((e,t,n,r)=>{if(ls(t),void 0===n)rs(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&os(e[t])&&os(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e}),"assignProp"),ms=_(((e,t,n,r)=>{if(!t||!as(e))return e;const i=ds(t,r);let o=e;for(let e=0;e{ms.cache=new Map};var gs=ms,vs=Object.defineProperty,ys=_(((e,t)=>vs(e,"name",{value:t,configurable:!0})),"__name$e");const bs=Hi("HistoryContext");function ks(e){var t;const n=Ki(),r=(0,m.useRef)(new zi(n||new ji(null),e.maxHistoryLength||xs)),[i,o]=(0,m.useState)((null==(t=r.current)?void 0:t.queries)||[]),[a,s]=(0,m.useState)("true"===(null==n?void 0:n.get(ws))||!1),l=(0,m.useCallback)((({query:e,variables:t,headers:n,operationName:i})=>{var a;null==(a=r.current)||a.updateHistory(e,t,n,i),o(r.current.queries)}),[]),c=(0,m.useCallback)((({query:e,variables:t,headers:n,operationName:i,label:a,favorite:s})=>{r.current.editLabel(e,t,n,i,a,s),o(r.current.queries)}),[]),{onToggle:u}=e,p=(0,m.useCallback)((()=>{null==u||u(!1),null==n||n.set(ws,JSON.stringify(!1)),s(!1)}),[u,n]),f=(0,m.useCallback)((()=>{null==u||u(!0),null==n||n.set(ws,JSON.stringify(!0)),s(!0)}),[u,n]),d=(0,m.useCallback)((()=>{s((e=>{const t=!e;return null==u||u(t),null==n||n.set(ws,JSON.stringify(t)),t}))}),[u,n]),h=(0,m.useCallback)((({query:e,variables:t,headers:n,operationName:i,label:a,favorite:s})=>{r.current.toggleFavorite(e,t,n,i,a,s),o(r.current.queries)}),[]),g=(0,m.useMemo)((()=>({addToHistory:l,editLabel:c,hide:p,isVisible:a,items:i,show:f,toggle:d,toggleFavorite:h})),[l,c,p,a,i,f,d,h]);return li(bs.Provider,{value:g,children:e.children})}_(ks,"HistoryContextProvider"),ys(ks,"HistoryContextProvider");const Es=Gi(bs),xs=20,ws="historyPaneOpen";var Ts=Object.defineProperty,Cs=_(((e,t)=>Ts(e,"name",{value:t,configurable:!0})),"__name$d");function _s(){const{headerEditor:e,queryEditor:t,variableEditor:n}=rc({nonNull:!0,caller:_s});return r=>{var i,o,a;null==t||t.setValue(null!=(i=r.query)?i:""),null==n||n.setValue(null!=(o=r.variables)?o:""),null==e||e.setValue(null!=(a=r.headers)?a:"")}}_(_s,"useSelectHistoryItem"),Cs(_s,"useSelectHistoryItem");var Ss=Object.defineProperty,As=_(((e,t)=>Ss(e,"name",{value:t,configurable:!0})),"__name$c");const Ns=Hi("ExecutionContext");function Os(e){const{externalFragments:t,headerEditor:n,queryEditor:r,responseEditor:i,shouldPersistHeaders:o,variableEditor:a,updateActiveTabValues:l}=rc({nonNull:!0,caller:Os}),c=Es(),u=fl({caller:Os}),[p,f]=(0,m.useState)(!1),[d,h]=(0,m.useState)(null),g=(0,m.useRef)(0),v=(0,m.useCallback)((()=>{null==d||d.unsubscribe(),f(!1),h(null)}),[d]),{fetcher:y}=e,b=(0,m.useCallback)((async()=>{var p,m,b;if(!r||!i)return;if(d)return void v();const k=As((e=>{i.setValue(e),l({response:e})}),"setResponse");g.current+=1;const E=g.current;let x=u()||r.getValue();const w=null==a?void 0:a.getValue();let C;try{C=Is({json:w,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void k(e instanceof Error?e.message:`${e}`)}const _=null==n?void 0:n.getValue();let A;try{A=Is({json:_,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void k(e instanceof Error?e.message:`${e}`)}if(t){const e=r.documentAST?$a(r.documentAST,t):[];e.length>0&&(x+="\n"+e.map((e=>(0,s.y)(e))).join("\n"))}k(""),f(!0);const N=null!=(m=null!=(p=e.operationName)?p:r.operationName)?m:void 0;null==c||c.addToHistory({query:x,variables:w,headers:_,operationName:N});try{let e={data:{}};const t=As((t=>{if(E!==g.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map((e=>e.errors)).flat().filter(Boolean)];r.length&&(t.errors=r);for(const r of n){const n=r,{path:i,data:o,errors:a}=n,s=S(n,["path","data","errors"]);if(i){if(!o)throw new Error(`Expected part to contain a data property, but got ${r}`);gs(t.data,i,o,{merge:!0})}else o&&(t.data=r.data);e=T(T({},t),s)}f(!1),k(_i(e))}else{const e=_i(t);f(!1),k(e)}}),"handleResponse"),n=y({query:x,variables:C,operationName:N},{headers:null!=A?A:void 0,shouldPersistHeaders:o,documentAST:null!=(b=r.documentAST)?b:void 0}),i=await Promise.resolve(n);if(vi(i))h(i.subscribe({next(e){t(e)},error(e){f(!1),e&&k(Ci(e)),h(null)},complete(){f(!1),h(null)}}));else if(yi(i)){h({unsubscribe:()=>{var e,t;return null==(t=(e=i[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});try{for await(const e of i)t(e);f(!1),h(null)}catch(e){f(!1),k(Ci(e)),h(null)}}else t(i)}catch(e){f(!1),k(Ci(e)),h(null)}}),[u,t,y,n,c,e.operationName,r,i,o,v,d,l,a]),k=(0,m.useMemo)((()=>{var t;return{isFetching:p,operationName:null!=(t=e.operationName)?t:null,run:b,stop:v}}),[p,e.operationName,b,v]);return li(Ns.Provider,{value:k,children:e.children})}_(Os,"ExecutionContextProvider"),As(Os,"ExecutionContextProvider");const Ds=Gi(Ns);function Is({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(e){throw new Error(`${t}: ${e instanceof Error?e.message:e}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}_(Is,"tryParseJsonObject"),As(Is,"tryParseJsonObject");var Ls=_((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;rVs(e,"name",{value:t,configurable:!0})),"__name$b");const zs=Hi("SchemaContext");function Us(e){const{initialHeaders:t,headerEditor:n}=rc({nonNull:!0,caller:Us}),[r,i]=(0,m.useState)(),[o,a]=(0,m.useState)(!1),[s,l]=(0,m.useState)(null),c=(0,m.useRef)(0);(0,m.useEffect)((()=>{i((0,p.Wl)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),c.current++}),[e.schema]);const u=(0,m.useRef)(t);(0,m.useEffect)((()=>{n&&(u.current=n.getValue())}));const{introspectionQuery:h,introspectionQueryName:g,introspectionQuerySansSubscriptions:v}=Hs({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:y,onSchemaChange:b}=e,k=(0,m.useCallback)((()=>{if((0,p.Wl)(e.schema)||null===e.schema)return;const t=++c.current;i(void 0);const n=e.schema;async function r(){if(n)return n;const e=Gs(u.current);if(!e.isValidJSON)return void l("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=ki(y({query:h,operationName:g},t));if(!mi(r))return void l("Fetcher did not return a Promise for introspection.");a(!0);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=ki(y({query:v,operationName:g},t));if(!mi(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(a(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:_i(i);l(o)}_(r,"fetchIntrospectionData"),qs(r,"fetchIntrospectionData"),r().then((e=>{if(t===c.current&&e)try{const t=(0,f.D)(e);i(t),null==b||b(t)}catch(e){l(Ci(e))}})).catch((e=>{t===c.current&&(l(Ci(e)),a(!1))}))}),[y,g,h,v,b,e.schema]);(0,m.useEffect)((()=>{k()}),[k]),(0,m.useEffect)((()=>{function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&k()}return _(e,"triggerIntrospection"),qs(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}));const E=(0,m.useMemo)((()=>!r||e.dangerouslyAssumeSchemaIsValid?[]:(0,d.i)(r)),[r,e.dangerouslyAssumeSchemaIsValid]),x=(0,m.useMemo)((()=>({fetchError:s,introspect:k,isFetching:o,schema:r,validationErrors:E})),[s,k,o,r,E]);return li(zs.Provider,{value:x,children:e.children})}_(Us,"SchemaContextProvider"),qs(Us,"SchemaContextProvider");const Bs=Gi(zs);function Hs({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return(0,m.useMemo)((()=>{const r=t||"IntrospectionQuery";let i=(0,h.I)({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace("query IntrospectionQuery",`query ${r}`));const o=i.replace("subscriptionType { name }","");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}),[e,t,n])}function Gs(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(e){n=!1}return{headers:t,isValidJSON:n}}_(Hs,"useIntrospectionQuery"),qs(Hs,"useIntrospectionQuery"),_(Gs,"parseHeaderString"),qs(Gs,"parseHeaderString");var Ws=Object.defineProperty,Ys=_(((e,t)=>Ws(e,"name",{value:t,configurable:!0})),"__name$a");const Qs={name:"Schema",title:"Documentation Explorer"},$s=Hi("ExplorerContext");function Ks(e){var t,n;const{isFetching:r}=Bs({nonNull:!0,caller:Ks}),i=Ki(),[o,a]=(0,m.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==i?void 0:i.get(Zs)))&&n),[s,l]=(0,m.useState)([Qs]),{onToggleVisibility:c}=e,u=(0,m.useRef)(!0);(0,m.useEffect)((()=>{u.current?u.current=!1:void 0!==e.isVisible&&a(e.isVisible)}),[e.isVisible]);const p=(0,m.useCallback)((()=>{null==c||c(!1),null==i||i.set(Zs,"false"),a(!1)}),[c,i]),f=(0,m.useCallback)((e=>{l((t=>t[t.length-1].def===e.def?t:[...t,e]))}),[]),d=(0,m.useCallback)((()=>{l((e=>e.length>1?e.slice(0,-1):e))}),[]),h=(0,m.useCallback)((()=>{l((e=>1===e.length?e:[Qs]))}),[]),g=(0,m.useCallback)((()=>{null==c||c(!0),null==i||i.set(Zs,"true"),a(!0)}),[c,i]),v=(0,m.useCallback)((e=>{l((t=>{const n=t[t.length-1];return[...t.slice(0,-1),C(T({},n),{search:e})]}))}),[]);(0,m.useEffect)((()=>{r&&h()}),[r,h]);const y=(0,m.useMemo)((()=>({explorerNavStack:s,hide:p,isVisible:o,push:f,pop:d,reset:h,show:g,showSearch:v})),[p,o,s,f,d,h,g,v]);return li($s.Provider,{value:y,children:e.children})}_(Ks,"ExplorerContextProvider"),Ys(Ks,"ExplorerContextProvider");const Js=Gi($s),Zs="docExplorerOpen";var Xs=Object.defineProperty,el=_(((e,t)=>Xs(e,"name",{value:t,configurable:!0})),"__name$9");function tl(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=null,t(...r)}),e)}}_(tl,"debounce"),el(tl,"debounce");var nl=Object.defineProperty,rl=_(((e,t)=>nl(e,"name",{value:t,configurable:!0})),"__name$8");function il(e,t){(0,m.useEffect)((()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function ol(e,t,n){(0,m.useEffect)((()=>{e&&e.setOption(t,n)}),[e,t,n])}function al(e,t,n,r,i){const{updateActiveTabValues:o}=rc({nonNull:!0,caller:i}),a=Ki();(0,m.useEffect)((()=>{if(!e)return;const i=tl(500,(e=>{a&&null!==n&&a.set(n,e)})),s=tl(100,(e=>{o({[r]:e})})),l=rl(((e,n)=>{if(!n)return;const r=e.getValue();i(r),s(r),null==t||t(r)}),"handleChange");return e.on("change",l),()=>e.off("change",l)}),[t,e,a,n,r,o])}function sl(e,t){const{schema:n}=Bs({nonNull:!0,caller:t}),r=Js();(0,m.useEffect)((()=>{if(!e)return;const t=rl(((e,t)=>{Kr(0,t,n,r)}),"handleCompletion");return e.on("hasCompletion",t),()=>e.off("hasCompletion",t)}),[e,r,n])}function ll(e,t,n){(0,m.useEffect)((()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}}),[e,t,n])}function cl({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=rc({nonNull:!0,caller:e||cl});return(0,m.useCallback)((()=>{if(!n)return;const e=n.getValue();js(e),null==t||t(e)}),[n,t])}function ul({caller:e}={}){const{queryEditor:t}=rc({nonNull:!0,caller:e||ul}),{schema:n}=Bs({nonNull:!0,caller:ul});return(0,m.useCallback)((()=>{const e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();e&&r&&t.setValue((0,s.y)(Mi(e,n)))}),[t,n])}function pl({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=rc({nonNull:!0,caller:e||pl});return(0,m.useCallback)((()=>{if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=(0,s.y)((0,i.qg)(e));n!==e&&t.setValue(n)}}),[t,r,n])}function fl({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=Bs({nonNull:!0,caller:t||fl}),{queryEditor:r}=rc({nonNull:!0,caller:t||fl});return(0,m.useCallback)((()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=Si(n,t,e);return i&&i.length>0&&r.operation((()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const a=i.map((({index:e,string:t})=>r.markText(r.posFromIndex(e+n),r.posFromIndex(e+(n+=t.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})));setTimeout((()=>a.forEach((e=>e.clear()))),7e3);let s=t;i.forEach((({index:e,string:n})=>{edl(e,"name",{value:t,configurable:!0})),"__name$7");function ml({editorTheme:e=Br,keyMap:t=Hr,onEdit:r,readOnly:i=!1}={}){const{initialHeaders:o,headerEditor:a,setHeaderEditor:s,shouldPersistHeaders:l}=rc({nonNull:!0,caller:ml}),c=Ds(),u=ul({caller:ml}),p=pl({caller:ml}),f=(0,m.useRef)(null);return(0,m.useEffect)((()=>{let t=!0;return Yr([Promise.resolve().then(n.bind(n,937)).then((function(e){return e.j}))]).then((n=>{if(!t)return;const r=f.current;if(!r)return;const a=n(r,{value:o,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!i&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Wr});a.addKeyMap({"Cmd-Space"(){a.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){a.showHint({completeSingle:!1,container:r})},"Alt-Space"(){a.showHint({completeSingle:!1,container:r})},"Shift-Space"(){a.showHint({completeSingle:!1,container:r})}}),a.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),s(a)})),()=>{t=!1}}),[e,o,i,s]),ol(a,"keyMap",t),al(a,r,l?gl:null,"headers",ml),sl(a,ml),ll(a,["Cmd-Enter","Ctrl-Enter"],null==c?void 0:c.run),ll(a,["Shift-Ctrl-P"],p),ll(a,["Shift-Ctrl-M"],u),f}_(ml,"useHeaderEditor"),hl(ml,"useHeaderEditor");const gl="headers";var vl=Object.defineProperty,yl=_(((e,t)=>vl(e,"name",{value:t,configurable:!0})),"__name$6");const bl=Array.from({length:11},((e,t)=>String.fromCharCode(8192+t))).concat(["\u2028","\u2029"," "," "]),kl=new RegExp("["+bl.join("")+"]","g");function El(e){return e.replace(kl," ")}_(El,"normalizeWhitespace"),yl(El,"normalizeWhitespace");var xl=Object.defineProperty,wl=_(((e,t)=>xl(e,"name",{value:t,configurable:!0})),"__name$5");function Tl({editorTheme:e=Br,keyMap:t=Hr,onClickReference:r,onCopyQuery:i,onEdit:o,readOnly:a=!1}={}){const{schema:s}=Bs({nonNull:!0,caller:Tl}),{externalFragments:l,initialQuery:c,queryEditor:u,setOperationName:p,setQueryEditor:f,validationRules:d,variableEditor:h,updateActiveTabValues:g}=rc({nonNull:!0,caller:Tl}),v=Ds(),y=Ki(),b=Js(),k=cl({caller:Tl,onCopyQuery:i}),E=ul({caller:Tl}),x=pl({caller:Tl}),w=(0,m.useRef)(null),S=(0,m.useRef)(),A=(0,m.useRef)((()=>{}));(0,m.useEffect)((()=>{A.current=e=>{b&&(b.show(),e&&"Type"===e.kind?b.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?b.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&b.push({name:e.type.name,def:e.type}),null==r||r(e))}}),[b,r]),(0,m.useEffect)((()=>{let t=!0;return Yr([Promise.resolve().then(n.bind(n,8569)).then((function(e){return e.c})),Promise.resolve().then(n.bind(n,2300)).then((function(e){return e.s})),Promise.resolve().then(n.bind(n,895)),Promise.resolve().then(n.bind(n,7739)),Promise.resolve().then(n.bind(n,5160)),Promise.resolve().then(n.bind(n,792)),Promise.resolve().then(n.bind(n,3782))]).then((n=>{if(!t)return;S.current=n;const r=w.current;if(!r)return;const i=n(r,{value:c,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!a&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>qr.render(e),onClick:e=>{A.current(e)}},jump:{schema:void 0,onClick:e=>{A.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:C(T({},Wr),{"Cmd-S"(){},"Ctrl-S"(){}})});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",((e,t)=>{Al.test(t.key)&&e.execCommand("autocomplete")})),i.on("beforeChange",((e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(El);null==(n=t.update)||n.call(t,t.from,t.to,e)}})),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,f(i)})),()=>{t=!1}}),[e,c,a,f]),ol(u,"keyMap",t),(0,m.useEffect)((()=>{if(!u)return;function e(e){var t,n,r,i,o;const a=Za(s,e.getValue()),l=Ri(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=l?l:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,h&&(h.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,h.options.lint.variableToType=null==a?void 0:a.variableToType,h.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=S.current)||o.signal(h,"change",h)),a?C(T({},a),{operationName:l}):null}_(e,"getAndUpdateOperationFacts"),wl(e,"getAndUpdateOperationFacts");const t=tl(100,(t=>{var n;const r=t.getValue();null==y||y.set(Nl,r);const i=t.operationName,a=e(t);void 0!==(null==a?void 0:a.operationName)&&(null==y||y.set(Ol,a.operationName)),null==o||o(r,null==a?void 0:a.documentAST),(null==a?void 0:a.operationName)&&i!==a.operationName&&p(a.operationName),g({query:r,operationName:null!=(n=null==a?void 0:a.operationName)?n:null})}));return e(u),u.on("change",t),()=>u.off("change",t)}),[o,u,s,p,y,h,g]),Cl(u,null!=s?s:null,S),_l(u,null!=d?d:null,S),Sl(u,l,S),sl(u,Tl);const N=null==v?void 0:v.run,O=(0,m.useCallback)((()=>{var e;if(!(N&&u&&u.operations&&u.hasFocus()))return void(null==N||N());const t=u.indexFromPos(u.getCursor());let n;for(const r of u.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==u.operationName&&p(n),N()}),[u,N,p]);return ll(u,["Cmd-Enter","Ctrl-Enter"],O),ll(u,["Shift-Ctrl-C"],k),ll(u,["Shift-Ctrl-P","Shift-Ctrl-F"],x),ll(u,["Shift-Ctrl-M"],E),w}function Cl(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function _l(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function Sl(e,t,n){const r=(0,m.useMemo)((()=>[...t.values()]),[t]);(0,m.useEffect)((()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)}),[e,r,n])}_(Tl,"useQueryEditor"),wl(Tl,"useQueryEditor"),_(Cl,"useSynchronizeSchema"),wl(Cl,"useSynchronizeSchema"),_(_l,"useSynchronizeValidationRules"),wl(_l,"useSynchronizeValidationRules"),_(Sl,"useSynchronizeExternalFragments"),wl(Sl,"useSynchronizeExternalFragments");const Al=/^[a-zA-Z0-9_@(]$/,Nl="query",Ol="operationName";var Dl=Object.defineProperty,Il=_(((e,t)=>Dl(e,"name",{value:t,configurable:!0})),"__name$4");function Ll({headers:e,query:t,variables:n,storage:r}){const i=null==r?void 0:r.get(Ql);try{if(!i)throw new Error("Storage for tabs is empty");const r=JSON.parse(i);if(Fl(r)){const i=Gl({query:t,variables:n,headers:e});let o=-1;for(let e=0;e=0)r.activeTabIndex=o;else{const o=t?Wl(t):null;r.tabs.push({id:Hl(),hash:i,title:o||Yl,query:t,variables:n,headers:e,operationName:o,response:null})}return r}throw new Error("Storage for tabs is invalid")}catch(e){return null==r||r.set(Ql,""),{activeTabIndex:0,tabs:[Ul()]}}}function Fl(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Rl(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(Ml)}function Ml(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Pl(e,"id")&&Pl(e,"title")&&jl(e,"query")&&jl(e,"variables")&&jl(e,"headers")&&jl(e,"operationName")&&jl(e,"response")}function Rl(e,t){return t in e&&"number"==typeof e[t]}function Pl(e,t){return t in e&&"string"==typeof e[t]}function jl(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Vl({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,m.useCallback)((i=>{var o,a,s,l,c;const u=null!=(o=null==e?void 0:e.getValue())?o:null,p=null!=(a=null==t?void 0:t.getValue())?a:null,f=null!=(s=null==n?void 0:n.getValue())?s:null,d=null!=(l=null==e?void 0:e.operationName)?l:null;return Bl(i,{query:u,variables:p,headers:f,response:null!=(c=null==r?void 0:r.getValue())?c:null,operationName:d})}),[e,t,n,r])}function ql({storage:e,shouldPersistHeaders:t}){const n=(0,m.useMemo)((()=>tl(500,(t=>{null==e||e.set(Ql,t)}))),[e]);return(0,m.useCallback)((e=>{n(JSON.stringify(e,((e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)))}),[t,n])}function zl({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,m.useCallback)((({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(null!=i?i:""),null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=s?s:"")}),[n,e,r,t])}function Ul(){return{id:Hl(),hash:Gl({query:null,variables:null,headers:null}),title:Yl,query:null,variables:null,headers:null,operationName:null,response:null}}function Bl(e,t){return C(T({},e),{tabs:e.tabs.map(((n,r)=>{if(r!==e.activeTabIndex)return n;const i=T(T({},n),t);return C(T({},i),{hash:Gl(i),title:i.operationName||(i.query?Wl(i.query):void 0)||Yl})}))})}function Hl(){const e=Il((()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1)),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Gl(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function Wl(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}_(Ll,"getDefaultTabState"),Il(Ll,"getDefaultTabState"),_(Fl,"isTabsState"),Il(Fl,"isTabsState"),_(Ml,"isTabState"),Il(Ml,"isTabState"),_(Rl,"hasNumberKey"),Il(Rl,"hasNumberKey"),_(Pl,"hasStringKey"),Il(Pl,"hasStringKey"),_(jl,"hasStringOrNullKey"),Il(jl,"hasStringOrNullKey"),_(Vl,"useSynchronizeActiveTabValues"),Il(Vl,"useSynchronizeActiveTabValues"),_(ql,"useStoreTabs"),Il(ql,"useStoreTabs"),_(zl,"useSetEditorValues"),Il(zl,"useSetEditorValues"),_(Ul,"emptyTab"),Il(Ul,"emptyTab"),_(Bl,"setPropertiesInActiveTab"),Il(Bl,"setPropertiesInActiveTab"),_(Hl,"guid"),Il(Hl,"guid"),_(Gl,"hashFromTabContents"),Il(Gl,"hashFromTabContents"),_(Wl,"fuzzyExtractOperationName"),Il(Wl,"fuzzyExtractOperationName");const Yl="",Ql="tabState";var $l=Object.defineProperty,Kl=_(((e,t)=>$l(e,"name",{value:t,configurable:!0})),"__name$3");function Jl({editorTheme:e=Br,keyMap:t=Hr,onEdit:r,readOnly:i=!1}={}){const{initialVariables:o,variableEditor:a,setVariableEditor:s}=rc({nonNull:!0,caller:Jl}),l=Ds(),c=ul({caller:Jl}),u=pl({caller:Jl}),p=(0,m.useRef)(null),f=(0,m.useRef)();return(0,m.useEffect)((()=>{let t=!0;return Yr([Promise.resolve().then(n.bind(n,6409)),Promise.resolve().then(n.bind(n,7229)),Promise.resolve().then(n.bind(n,9196))]).then((n=>{if(!t)return;f.current=n;const r=p.current;if(!r)return;const a=n(r,{value:o,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!i&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Wr});a.addKeyMap({"Cmd-Space"(){a.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){a.showHint({completeSingle:!1,container:r})},"Alt-Space"(){a.showHint({completeSingle:!1,container:r})},"Shift-Space"(){a.showHint({completeSingle:!1,container:r})}}),a.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),s(a)})),()=>{t=!1}}),[e,o,i,s]),ol(a,"keyMap",t),al(a,r,Zl,"variables",Jl),sl(a,Jl),ll(a,["Cmd-Enter","Ctrl-Enter"],null==l?void 0:l.run),ll(a,["Shift-Ctrl-P"],u),ll(a,["Shift-Ctrl-M"],c),p}_(Jl,"useVariableEditor"),Kl(Jl,"useVariableEditor");const Zl="variables";var Xl=Object.defineProperty,ec=_(((e,t)=>Xl(e,"name",{value:t,configurable:!0})),"__name$2");const tc=Hi("EditorContext");function nc(e){var t,n,r,o,s;const l=Ki(),[c,u]=(0,m.useState)(null),[p,f]=(0,m.useState)(null),[d,h]=(0,m.useState)(null),[g,v]=(0,m.useState)(null);il(c,e.headers),il(p,e.query),il(d,e.response),il(g,e.variables);const[y]=(0,m.useState)((()=>{var t,n,r,i,o,a;return{headers:null!=(n=null!=(t=e.headers)?t:null==l?void 0:l.get(gl))?n:null,query:null!=(i=null!=(r=e.query)?r:null==l?void 0:l.get(Nl))?i:null,variables:null!=(a=null!=(o=e.variables)?o:null==l?void 0:l.get(Zl))?a:null}})),[b,k]=(0,m.useState)((()=>Ll(C(T({},y),{storage:l})))),E=ql({storage:l,shouldPersistHeaders:e.shouldPersistHeaders}),x=Vl({queryEditor:p,variableEditor:g,headerEditor:c,responseEditor:d}),w=zl({queryEditor:p,variableEditor:g,headerEditor:c,responseEditor:d}),{onTabChange:_}=e,S=(0,m.useCallback)((()=>{k((e=>{const t=x(e),n={tabs:[...t.tabs,Ul()],activeTabIndex:t.tabs.length};return E(n),w(n.tabs[n.activeTabIndex]),null==_||_(n),n}))}),[_,w,E,x]),A=(0,m.useCallback)((e=>{k((t=>{const n=C(T({},x(t)),{activeTabIndex:e});return E(n),w(n.tabs[n.activeTabIndex]),null==_||_(n),n}))}),[_,w,E,x]),N=(0,m.useCallback)((e=>{k((t=>{const n={tabs:t.tabs.filter(((t,n)=>e!==n)),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return E(n),w(n.tabs[n.activeTabIndex]),null==_||_(n),n}))}),[_,w,E]),O=(0,m.useCallback)((e=>{k((t=>{const n=Bl(t,e);return E(n),null==_||_(n),n}))}),[_,E]),{onEditOperationName:D}=e,I=(0,m.useCallback)((e=>{p&&(p.operationName=e,O({operationName:e}),null==D||D(e))}),[D,p,O]),L=b.activeTabIndex>0?"":null!=(t=e.defaultQuery)?t:ic,F=(0,m.useRef)({initialHeaders:null!=(n=y.headers)?n:"",initialQuery:null!=(r=y.query)?r:L,initialResponse:null!=(o=e.response)?o:"",initialVariables:null!=(s=y.variables)?s:""}),M=(0,m.useMemo)((()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)(0,a.YR)((0,i.qg)(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t}),[e.externalFragments]),R=(0,m.useMemo)((()=>e.validationRules||[]),[e.validationRules]),P=(0,m.useMemo)((()=>C(T(C(T({},b),{addTab:S,changeTab:A,closeTab:N,updateActiveTabValues:O,headerEditor:c,queryEditor:p,responseEditor:d,variableEditor:g,setHeaderEditor:u,setQueryEditor:f,setResponseEditor:h,setVariableEditor:v,setOperationName:I}),F.current),{externalFragments:M,validationRules:R,shouldPersistHeaders:e.shouldPersistHeaders||!1})),[b,S,A,N,O,c,p,d,g,I,M,R,e.shouldPersistHeaders]);return li(tc.Provider,{value:P,children:e.children})}_(nc,"EditorContextProvider"),ec(nc,"EditorContextProvider");const rc=Gi(tc),ic='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var oc=Object.defineProperty,ac=_(((e,t)=>oc(e,"name",{value:t,configurable:!0})),"__name$1");function sc({ResponseTooltip:e,editorTheme:t=Br,keyMap:r=Hr}={}){const{fetchError:i,validationErrors:o}=Bs({nonNull:!0,caller:sc}),{initialResponse:a,responseEditor:s,setResponseEditor:l}=rc({nonNull:!0,caller:sc}),c=(0,m.useRef)(null),u=(0,m.useRef)(e);return(0,m.useEffect)((()=>{u.current=e}),[e]),(0,m.useEffect)((()=>{let e=!0;return Yr([Promise.resolve().then(n.bind(n,64)).then((function(e){return e.f})),Promise.resolve().then(n.bind(n,3915)).then((function(e){return e.b})),Promise.resolve().then(n.bind(n,5960)).then((function(e){return e.d})),Promise.resolve().then(n.bind(n,2300)).then((function(e){return e.s})),Promise.resolve().then(n.bind(n,3450)).then((function(e){return e.s})),Promise.resolve().then(n.bind(n,9061)).then((function(e){return e.j})),Promise.resolve().then(n.bind(n,1395)).then((function(e){return e.s})),Promise.resolve().then(n.bind(n,835)),Promise.resolve().then(n.bind(n,5285))],{useCommonAddons:!1}).then((n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",((e,t,n,i)=>{const o=[],a=u.current;return a&&o.push(li(a,{pos:i})),fi.shouldRender(e)&&o.push(li(fi,{token:e},"image-preview")),o.length?(g.render(o,r),r):(g.unmountComponentAtNode(r),null)}));const i=c.current;if(!i)return;const o=n(i,{value:a,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Wr});l(o)})),()=>{e=!1}}),[t,a,l]),ol(s,"keyMap",r),(0,m.useEffect)((()=>{i&&(null==s||s.setValue(i)),o.length>0&&(null==s||s.setValue(Ci(o)))}),[s,i,o]),c}_(sc,"useResponseEditor"),ac(sc,"useResponseEditor");var lc=Object.defineProperty,cc=_(((e,t)=>lc(e,"name",{value:t,configurable:!0})),"__name");function uc({defaultSizeRelation:e=pc,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:a}){const s=Ki(),l=(0,m.useCallback)(tl(500,(e=>{s&&a&&s.set(a,e)})),[s,a]),[c,u]=(0,m.useState)((()=>{const e=s&&a?s.get(a):null;return e===fc||"first"===n?"first":e===dc||"second"===n?"second":null})),p=(0,m.useCallback)((e=>{u(e),null==r||r(e)}),[r]),f=(0,m.useRef)(null),d=(0,m.useRef)(null),h=(0,m.useRef)(null),g=(0,m.useRef)(`${e}`);(0,m.useLayoutEffect)((()=>{const e=s&&a&&s.get(a)||g.current,n="horizontal"===t?"row":"column";f.current&&(f.current.style.display="flex",f.current.style.flexDirection=n,f.current.style.flex=e===fc||e===dc?g.current:e),h.current&&(h.current.style.display="flex",h.current.style.flexDirection=n,h.current.style.flex="1"),d.current&&(d.current.style.display="flex",d.current.style.flexDirection=n)}),[t,s,a]);const v=(0,m.useCallback)((e=>{const t="first"===e?f.current:h.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",f.current)){const e=parseFloat(f.current.style.flex);(!Number.isFinite(e)||e<1)&&(f.current.style.flex="1"),f.current.style.flex}}),[]),y=(0,m.useCallback)((e=>{const t="first"===e?f.current:h.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",f.current&&s&&a)){const e=null==s?void 0:s.get(a);e&&e!==fc&&e!==dc&&(f.current.style.flex=e)}}),[s,a]);return(0,m.useLayoutEffect)((()=>{"first"===c?v("first"):y("first"),"second"===c?v("second"):y("second")}),[c,v,y]),(0,m.useEffect)((()=>{if(!d.current||!f.current||!h.current)return;const e=d.current,n=f.current,r=n.parentElement,a="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",c="horizontal"===t?"right":"bottom",u="horizontal"===t?"clientWidth":"clientHeight";function m(t){t.preventDefault();const f=t[a]-e.getBoundingClientRect()[s];function d(t){if(0===t.buttons)return h();const d=t[a]-r.getBoundingClientRect()[s]-f,m=r.getBoundingClientRect()[c]-t[a]+f-e[u];if(d{e.removeEventListener("mousedown",m),e.removeEventListener("dblclick",v)}}),[t,p,i,o,l]),(0,m.useMemo)((()=>({dragBarRef:d,hiddenElement:c,firstRef:f,setHiddenElement:p,secondRef:h})),[c,p])}_(uc,"useDragResize"),cc(uc,"useDragResize");const pc=1,fc="hide-first",dc="hide-second"},1838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyMessage=t.parseMessage=t.isMessage=t.validateMessage=t.MessageType=t.CloseCode=t.DEPRECATED_GRAPHQL_WS_PROTOCOL=t.GRAPHQL_TRANSPORT_WS_PROTOCOL=void 0;const r=n(6490);var i,o;function a(e){if(!(0,r.isObject)(e))throw new Error(`Message is expected to be an object, but got ${(0,r.extendedTypeof)(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${(0,r.extendedTypeof)(e.type)}`);switch(e.type){case i.ConnectionInit:case i.ConnectionAck:case i.Ping:case i.Pong:if("payload"in e&&!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or missing, but got "${e.payload}"`);break;case i.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${(0,r.extendedTypeof)(e.payload.query)}`);if(null!=e.payload.variables&&!(0,r.isObject)(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==(0,r.extendedTypeof)(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.operationName)}`);if(null!=e.payload.extensions&&!(0,r.isObject)(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.extensions)}`);break;case i.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);break;case i.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.areGraphQLErrors)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case i.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}t.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",t.DEPRECATED_GRAPHQL_WS_PROTOCOL="graphql-ws",(o=t.CloseCode||(t.CloseCode={}))[o.InternalServerError=4500]="InternalServerError",o[o.InternalClientError=4005]="InternalClientError",o[o.BadRequest=4400]="BadRequest",o[o.BadResponse=4004]="BadResponse",o[o.Unauthorized=4401]="Unauthorized",o[o.Forbidden=4403]="Forbidden",o[o.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",o[o.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",o[o.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",o[o.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",o[o.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(i=t.MessageType||(t.MessageType={})),t.validateMessage=a,t.isMessage=function(e){try{return a(e),!0}catch(e){return!1}},t.parseMessage=function(e,t){try{return a(e)}catch(n){if("string"!=typeof e)throw new Error("Only strings are parsable messages");return a(JSON.parse(e,t))}},t.stringifyMessage=function(e,t){return a(e),JSON.stringify(e,t)}},1918:e=>{"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.q=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},1998:(e,t,n)=>{"use strict";var r=n(4983).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c6||cc&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},2162:(e,t,n)=>{"use strict";var r=n(4983).isSpace;e.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a{"use strict";n.d(t,{v:()=>s});var r=n(5284),i=n(4956),o=n(3417),a=n(9820);function s(e,t){var n;return t.kind===o.b.LIST_TYPE?(n=s(e,t.type))&&new a.KT(n):t.kind===o.b.NON_NULL_TYPE?(n=s(e,t.type))&&new a.Gc(n):t.kind===o.b.NAMED_TYPE?e.getType(t.name.value):void(0,i.A)(0,"Unexpected type node: "+(0,r.A)(t))}},2300:(e,t,n)=>{"use strict";n.r(t),n.d(t,{s:()=>p});var r=n(1566),i=n(3450),o=n(5960),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}s(l,"_mergeNamespaces");var c={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(e)},onKeyDown:i,bottom:e.options.search.bottom})}function l(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function c(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function p(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,n,r){n.queryText=r,n.query=p(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function d(t,n,i,o){var c=r(t);if(c.query)return h(t,n);var u=t.getSelection()||c.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var p=null,d=s((function(n,r){e.e_stop(r),n&&(n!=c.queryText&&(f(t,c,n),c.posFrom=c.posTo=t.getCursor()),p&&(p.style.opacity=1),h(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((p=r).style.opacity=.4)})))}),"searchNext");a(t,v(t),u,d,(function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(n),f(t,r(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(n),d(i,n))})),o&&u&&(f(t,c,u),h(t,n))}else l(t,v(t),"Search for:",u,(function(e){e&&!c.query&&t.operation((function(){f(t,c,e),c.posFrom=c.posTo=t.getCursor(),h(t,n)}))}))}function h(t,n,i){t.operation((function(){var a=r(t),s=o(t,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))}))}function m(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function g(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i{"use strict";var r=n(7288),i=n(4856),o=n(1490);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n