@abtnode/webapp 1.16.15 → 1.16.16-beta-e038cde7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +63 -62
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/1366.4c0caad2.chunk.js +2 -0
- package/build/static/js/1371.b6f470dc.chunk.js +1 -0
- package/build/static/js/1685.ad51d1ae.chunk.js +2 -0
- package/build/static/js/2264.da57cd26.chunk.js +1 -0
- package/build/static/js/2291.f7b42545.chunk.js +1 -0
- package/build/static/js/2294.d78e6ed6.chunk.js +1 -0
- package/build/static/js/{2305.1a17468a.chunk.js → 2305.1de337f9.chunk.js} +2 -2
- package/build/static/js/2334.2277b9a2.chunk.js +1 -0
- package/build/static/js/2537.0e8b4b3c.chunk.js +1 -0
- package/build/static/js/2611.453b18de.chunk.js +1 -0
- package/build/static/js/3135.92de458b.chunk.js +1 -0
- package/build/static/js/3389.bbd62a76.chunk.js +1 -0
- package/build/static/js/3704.e2d6cd48.chunk.js +2 -0
- package/build/static/js/3716.edb3d2ce.chunk.js +1 -0
- package/build/static/js/373.1bcf03f8.chunk.js +1 -0
- package/build/static/js/4362.ca3fb274.chunk.js +1 -0
- package/build/static/js/4407.723415c4.chunk.js +2 -0
- package/build/static/js/4448.240f547f.chunk.js +1 -0
- package/build/static/js/4471.b4cda6ce.chunk.js +1 -0
- package/build/static/js/4718.cb2b5d99.chunk.js +2 -0
- package/build/static/js/{4775.566b21e6.chunk.js → 4775.dde53f2e.chunk.js} +1 -1
- package/build/static/js/4906.c2c01c10.chunk.js +1 -0
- package/build/static/js/5015.4b2a6f82.chunk.js +1 -0
- package/build/static/js/5074.c3560023.chunk.js +1 -0
- package/build/static/js/5509.245431ce.chunk.js +1 -0
- package/build/static/js/{7604.6ad5024b.chunk.js → 5526.d759de88.chunk.js} +2 -2
- package/build/static/js/5760.420f21b0.chunk.js +1 -0
- package/build/static/js/5804.911e6040.chunk.js +1 -0
- package/build/static/js/5808.c81d46a7.chunk.js +1 -0
- package/build/static/js/5953.5bc549e1.chunk.js +1 -0
- package/build/static/js/5979.d89e3302.chunk.js +1 -0
- package/build/static/js/6412.e559c8f4.chunk.js +1 -0
- package/build/static/js/6511.20b2bda0.chunk.js +1 -0
- package/build/static/js/6580.a36ef27c.chunk.js +1 -0
- package/build/static/js/6591.7817c32d.chunk.js +1 -0
- package/build/static/js/{6931.acbe76ac.chunk.js → 6931.0aa9f62b.chunk.js} +1 -1
- package/build/static/js/6950.39b50c6e.chunk.js +1 -0
- package/build/static/js/6960.ed78ea9f.chunk.js +1 -0
- package/build/static/js/{7020.35799de3.chunk.js → 7020.995924d8.chunk.js} +1 -1
- package/build/static/js/7126.6c873294.chunk.js +1 -0
- package/build/static/js/7327.523610c0.chunk.js +1 -0
- package/build/static/js/7534.ab4d9f6e.chunk.js +1 -0
- package/build/static/js/7638.ae3e296a.chunk.js +1 -0
- package/build/static/js/{7676.b037def1.chunk.js → 7676.bc69ead5.chunk.js} +2 -2
- package/build/static/js/{7718.11941d75.chunk.js → 7718.e4a5899b.chunk.js} +1 -1
- package/build/static/js/{7913.60bf9666.chunk.js → 7913.df3492dc.chunk.js} +1 -1
- package/build/static/js/8059.d969b349.chunk.js +1 -0
- package/build/static/js/{8462.06893881.chunk.js → 8212.06eb9697.chunk.js} +1 -1
- package/build/static/js/8219.7e3bd847.chunk.js +1 -0
- package/build/static/js/8382.94b3ec45.chunk.js +1 -0
- package/build/static/js/875.f12224ef.chunk.js +1 -0
- package/build/static/js/8973.b052330c.chunk.js +1 -0
- package/build/static/js/8986.09896e72.chunk.js +1 -0
- package/build/static/js/{9038.b426e282.chunk.js → 9038.cb77b205.chunk.js} +1 -1
- package/build/static/js/9041.84c1ff27.chunk.js +1 -0
- package/build/static/js/9249.c3058bf3.chunk.js +1 -0
- package/build/static/js/9272.1db6e724.chunk.js +2 -0
- package/build/static/js/{9354.6dc219d4.chunk.js → 9354.c3636ea4.chunk.js} +1 -1
- package/build/static/js/984.f6cf6d38.chunk.js +1 -0
- package/build/static/js/9963.2f462f42.chunk.js +1 -0
- package/build/static/js/main.168167e0.js +2 -0
- package/build/static/js/{main.08aa73b3.js.LICENSE.txt → main.168167e0.js.LICENSE.txt} +1 -1
- package/package.json +1 -1
- package/build/static/js/1366.80cb7943.chunk.js +0 -2
- package/build/static/js/1685.1679bdbd.chunk.js +0 -2
- package/build/static/js/17.713812e2.chunk.js +0 -1
- package/build/static/js/2113.a0a3a688.chunk.js +0 -1
- package/build/static/js/2264.1bb35f21.chunk.js +0 -1
- package/build/static/js/2334.0b172bcb.chunk.js +0 -1
- package/build/static/js/2537.6b53c30e.chunk.js +0 -1
- package/build/static/js/2611.5f974cf9.chunk.js +0 -1
- package/build/static/js/2701.fd3340e3.chunk.js +0 -2
- package/build/static/js/3245.878486bd.chunk.js +0 -1
- package/build/static/js/3704.139947e9.chunk.js +0 -2
- package/build/static/js/373.4186f825.chunk.js +0 -1
- package/build/static/js/3936.50626cb7.chunk.js +0 -1
- package/build/static/js/4301.d30d43e8.chunk.js +0 -2
- package/build/static/js/4407.0fbdcce5.chunk.js +0 -2
- package/build/static/js/4448.e395311c.chunk.js +0 -1
- package/build/static/js/4471.3c161621.chunk.js +0 -1
- package/build/static/js/4620.551c484b.chunk.js +0 -1
- package/build/static/js/4906.53f9d4cf.chunk.js +0 -1
- package/build/static/js/5074.ba8a496a.chunk.js +0 -1
- package/build/static/js/5285.93a44f4f.chunk.js +0 -1
- package/build/static/js/542.8f68a1a2.chunk.js +0 -1
- package/build/static/js/5760.e7d79d06.chunk.js +0 -1
- package/build/static/js/5804.16a15b7c.chunk.js +0 -1
- package/build/static/js/5808.d9f09727.chunk.js +0 -1
- package/build/static/js/5928.5547c6bf.chunk.js +0 -1
- package/build/static/js/5979.0302c2f7.chunk.js +0 -1
- package/build/static/js/6412.3a0769c9.chunk.js +0 -1
- package/build/static/js/6419.7040d60f.chunk.js +0 -1
- package/build/static/js/6511.2affe0af.chunk.js +0 -1
- package/build/static/js/6580.0759038f.chunk.js +0 -1
- package/build/static/js/6591.dc758fef.chunk.js +0 -1
- package/build/static/js/6950.a12e3c2c.chunk.js +0 -1
- package/build/static/js/6960.df1b5bef.chunk.js +0 -1
- package/build/static/js/7126.95bba107.chunk.js +0 -1
- package/build/static/js/7327.a5410af5.chunk.js +0 -1
- package/build/static/js/7534.0f093319.chunk.js +0 -1
- package/build/static/js/7638.4c7ee6d6.chunk.js +0 -1
- package/build/static/js/8059.680ccc09.chunk.js +0 -1
- package/build/static/js/8219.b5187ff9.chunk.js +0 -1
- package/build/static/js/8382.18c7c450.chunk.js +0 -1
- package/build/static/js/8719.27070c24.chunk.js +0 -1
- package/build/static/js/8973.9e4b78ce.chunk.js +0 -1
- package/build/static/js/9041.e02ca359.chunk.js +0 -1
- package/build/static/js/9244.01ad2b1f.chunk.js +0 -1
- package/build/static/js/9249.c13079fe.chunk.js +0 -1
- package/build/static/js/9744.b4732fbc.chunk.js +0 -1
- package/build/static/js/9963.d6ed27e8.chunk.js +0 -1
- package/build/static/js/main.08aa73b3.js +0 -2
- /package/build/static/css/{542.f696fdbf.chunk.css → 1371.f696fdbf.chunk.css} +0 -0
- /package/build/static/js/{1366.80cb7943.chunk.js.LICENSE.txt → 1366.4c0caad2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1685.1679bdbd.chunk.js.LICENSE.txt → 1685.ad51d1ae.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2305.1a17468a.chunk.js.LICENSE.txt → 2305.1de337f9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3704.139947e9.chunk.js.LICENSE.txt → 3704.e2d6cd48.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4407.0fbdcce5.chunk.js.LICENSE.txt → 4407.723415c4.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4301.d30d43e8.chunk.js.LICENSE.txt → 4718.cb2b5d99.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7604.6ad5024b.chunk.js.LICENSE.txt → 5526.d759de88.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7676.b037def1.chunk.js.LICENSE.txt → 7676.bc69ead5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2701.fd3340e3.chunk.js.LICENSE.txt → 9272.1db6e724.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1366.4c0caad2.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1366],{81366:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(5057),i=n(6411),o=n(68420),a=n(74094),s=n(96266),u="{\n getNodeInfo {\n code\n info {\n did\n pk\n }\n }\n}",c=function(){var e={},t=(0,a.YW)();return t&&(e.Authorization="Bearer ".concat(t)),"undefined"!==typeof window&&"undefined"!==typeof window.location&&(e["x-real-hostname"]=window.location.hostname,e["x-real-port"]=window.location.port,e["x-real-protocol"]=window.location.protocol),e};function l(){var e=(0,r.useContext)(o.RD).t;return(0,s.jsx)(i.Z,{defaultQuery:u,endpoint:"".concat(window.env&&window.env.apiPrefix?window.env.apiPrefix:"","/api/gql").replace(/\/+/g,"/").trim(),title:e("common.console"),enableHistory:!0,enableQueryComposer:!0,enableCodeExporter:!1,extraHeaders:c})}},6411:function(e,t,n){"use strict";var r=n(73408).default,i=n(27609).default,o=n(91461).default,a=n(43111).default;t.Z=I;var s=n(5057),u=w(n(55898)),c=n(66044),l=w(n(10458)),f=w(n(36676)),p=w(n(49445)),d=w(n(42220)),h=w(n(79239)),v=w(n(13897)),m=n(18700),g=n(17687),y=n(15849);n(3307),n(26762),n(84808);var b,_=n(3044),E=n(17416),k=n(96266),T=["endpoint","title","enableCodeExporter","enableQueryComposer","enableHistory","extraCodeSnippets"];function w(e){return e&&e.__esModule?e:{default:e}}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(){var e=(0,g.useHistoryContext)().toggle;return(0,k.jsx)(p.default.Button,{onClick:e,label:"History",title:"Show History"})}function O(){var e=(0,g.usePrettifyEditors)();return(0,k.jsx)(p.default.Button,{onClick:e,label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"})}function I(e){var t=(0,_.mergeProps)(e,I,["style","persistentQuery","enableQueryComposer","enableCodeExporter","enableHistory"]),n=(0,y.useLocation)(),u=(0,y.useNavigate)(),c=(0,s.useRef)(null),g=(0,s.useRef)(null),b=(0,s.useState)(null),w=a(b,2),x=w[0],C=w[1],D=(0,s.useState)(t.defaultQuery||"{}"),L=a(D,2),M=L[0],R=L[1],j=(0,s.useState)(t.enableQueryComposer),P=a(j,2),V=P[0],Z=P[1],q=(0,s.useState)(!1),U=a(q,2),B=U[0],z=U[1],H=function(e){var t=n.pathname,r=n.search,i=(0,_.parseQuery)(r);i.query=e;var o="".concat(t,"?").concat((0,_.stringifyQuery)(i));u(o)};(0,s.useEffect)((function(){if(t.persistentQuery){var e=(0,_.parseQuery)(window.location.search);e.query?R(e.query):H(M)}}),[]);var G=function(e){e!==M&&t.persistentQuery&&H(e),R(e)},W=function(){Z(!V)},Q=function(){return z(!B)},X=function(){var e=o(i().mark((function e(n){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="function"===typeof t.extraHeaders?t.extraHeaders():t.extraHeaders||{},e.next=3,(0,l.default)({method:"post",url:t.endpoint,data:n,headers:Object.assign({"Content-Type":"application/json"},r)});case 3:return o=e.sent,e.abrupt("return",o.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){X({query:(0,m.getIntrospectionQuery)()}).then((function(e){c.current&&C((0,m.buildClientSchema)(e.data))}))}),[c.current]);var J=t.endpoint,Y=t.title,$=t.enableCodeExporter,K=t.enableQueryComposer,ee=t.enableHistory,te=t.extraCodeSnippets,ne=N(t,T),re=[].concat(r(te),r(v.default));return(0,k.jsxs)(F,S(S({},ne),{},{children:[(0,k.jsx)(f.default,{url:"//cdn.jsdelivr.net/npm/@absinthe/socket-graphiql@0.2.1/compat/umd/index.js"}),K&&(0,k.jsx)(d.default,{schema:x,query:M,onEdit:G,onRunOperation:function(e){return c.current.handleRunQuery(e)},explorerIsOpen:V,onToggleExplorer:W,className:"graphiql-explorer"}),(0,k.jsxs)(p.default,{ref:c,fetcher:function(e){return e.query.indexOf("subscription")>=0?(function(){g.current&&(g.current.close(),g.current=null);var e=t.endpoint,n=e.replace(/https?:\/\//,"ws://");0===e.indexOf("https://")&&(n=n.replace("ws://","wss://")),g.current=new AbsintheSocketGraphiql.SubscriptionsClient(localStorage.getItem("websocket")||"".concat(n,"/socket"),{reconnect:!0,connectionParams:{}})}(),(0,E.graphQLFetcher)(g.current,X)(e)):X(e)},schema:x,query:M,onEditQuery:G,children:[(0,k.jsx)(p.default.Logo,{children:Y}),(0,k.jsxs)(p.default.Toolbar,{children:[(0,k.jsx)(O,{}),ee&&(0,k.jsx)(A,{}),K&&(0,k.jsx)(p.default.Button,{onClick:W,label:"Query Composer",title:"Toggle Query Composer"}),$&&(0,k.jsx)(p.default.Button,{onClick:Q,label:"Code Exporter",title:"Toggle Code Exporter"})]})]}),$&&B&&(0,k.jsx)("div",{className:"graphiql-container graphiql-exporter-container",children:(0,k.jsx)(h.default,{hideCodeExporter:Q,snippets:re,serverUrl:J,query:M,codeMirrorTheme:"neo"})})]}))}I.propTypes={endpoint:u.default.string.isRequired,defaultQuery:u.default.string,title:u.default.string,persistentQuery:u.default.bool,enableQueryComposer:u.default.bool,enableCodeExporter:u.default.bool,enableHistory:u.default.bool,extraCodeSnippets:u.default.array,extraHeaders:u.default.any},I.defaultProps={title:"Query",defaultQuery:"{}",persistentQuery:!1,enableQueryComposer:!0,enableCodeExporter:!1,enableHistory:!1,extraCodeSnippets:[],extraHeaders:{}};var D,L,F=(0,c.styled)("div")(b||(D=["\n display: flex;\n flex-direction: row;\n flex: 1;\n overflow: hidden;\n height: 100%;\n position: relative;\n\n @media (max-width: ","px) {\n margin-top: 30px;\n }\n\n > .historyPaneWrap {\n z-index: 8 !important;\n width: 320px !important;\n box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, ",");\n overflow-y: scroll;\n }\n\n .doc-explorer-title-bar,\n .history-title-bar {\n height: 45px;\n line-height: 45px;\n padding: 0px 8px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .doc-explorer-title-bar {\n padding: 0px 32px;\n }\n\n .doc-explorer-title,\n .history-title {\n font-size: 14px;\n font-weight: 900;\n letter-spacing: 2px;\n color: ",";\n text-transform: uppercase;\n text-align: left !important;\n }\n\n .doc-explorer-contents {\n min-height: 0;\n }\n .history-contents {\n top: 45px !important;\n background-color: "," !important;\n border-top: 1px solid #e3e3e3 !important;\n }\n\n .history-contents {\n color: ",";\n p {\n border-bottom: 1px solid #e3e3e3;\n }\n }\n\n .docExplorerHide {\n color: ",";\n padding: 0;\n cursor: pointer;\n margin: -7px -8px -6px -12px;\n opacity: 0.75;\n font-size: 18px;\n }\n\n .toolbar-button {\n cursor: pointer;\n }\n\n .graphiql-container {\n .title {\n color: ",";\n }\n\n .topBar {\n background-image: none;\n height: 45px;\n border-bottom-width: 0;\n }\n\n .docExplorerShow {\n background: ",";\n border: none;\n font-size: 14px;\n color: ",";\n text-transform: uppercase;\n\n &::before {\n border-color: ",";\n }\n }\n\n .historyPaneWrap {\n width: 320px !important;\n background-color: ",";\n box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, ",");\n }\n\n .search-box {\n margin-bottom: 20px;\n border-bottom: none;\n\n input {\n height: 30px;\n border-radius: 15px;\n border: solid 1px ",";\n padding: 6px 24px 8px 30px;\n }\n\n .search-box-clear {\n right: 10px;\n }\n\n &::before {\n left: 10px;\n }\n }\n\n .variable-editor-title {\n background: ",";\n border: none;\n height: 40px;\n padding-left: 20px;\n\n &::before {\n border-left: 2px solid ",";\n border-top: 2px solid ",";\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 5px 1px 0;\n position: relative;\n -webkit-transform: rotate(-135deg);\n transform: rotate(-135deg);\n width: 9px;\n }\n }\n\n .resultWrap {\n border-left: none;\n .CodeMirror-gutters {\n opacity: 0.5;\n }\n .CodeMirror-gutter.CodeMirror-foldgutter {\n box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, ",");\n }\n }\n\n .CodeMirror,\n .CodeMirror-gutters,\n .CodeMirror-linenumber,\n .CodeMirror-foldgutter {\n background: ",";\n }\n\n .variable-editor {\n .CodeMirror {\n background: white;\n }\n }\n\n .CodeMirror-gutters {\n border-right-width: 0;\n }\n }\n\n .graphiql-exporter-container {\n width: auto;\n .historyPaneWrap {\n position: absolute !important;\n height: 100%;\n top: 0;\n right: 0;\n background-color: ",";\n box-shadow: -5px 16px 10px 0 rgba(0, 0, 0, ",");\n z-index: 3;\n\n .history-contents {\n padding-top: 12px;\n .toolbar-button {\n margin-top: -24px !important;\n }\n }\n }\n }\n"],L||(L=D.slice(0)),b=Object.freeze(Object.defineProperties(D,{raw:{value:Object.freeze(L)}}))),(function(e){return e.theme.breakpoints.values.md}),(function(e){return"light"===e.theme.mode?.05:.5}),(function(e){return e.theme.typography.color.gray}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.typography.color.main}),(function(e){return e.theme.typography.color.main}),(function(e){return e.theme.typography.color.main}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.typography.color.main}),(function(e){return e.theme.typography.color.gray}),(function(e){return e.theme.palette.background.default}),(function(e){return"light"===e.theme.mode?.05:.5}),(function(e){return e.theme.typography.color.main}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.typography.color.gray}),(function(e){return e.theme.typography.color.gray}),(function(e){return"light"===e.theme.mode?.05:.5}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.background.default}),(function(e){return"light"===e.theme.mode?.05:.5}))},17416:function(e,t,n){"use strict";var r=n(38636).default;Object.defineProperty(t,"__esModule",{value:!0}),t.graphQLFetcher=void 0;var i=n(18700);t.graphQLFetcher=function(e,t){var n=null;return function(o){return e&&null!==n&&e.unsubscribe(n),e&&function(e){var t,n=(0,i.parse)(e.query),o=r(n.definitions);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("OperationDefinition"===a.kind&&"subscription"===a.operation)return!0}}catch(s){o.e(s)}finally{o.f()}return!1}(o)?{subscribe:function(t){t.next("Your subscription data will appear here after server publication!"),n=e.subscribe({query:o.query,variables:o.variables},(function(e,n){e?t.error(e):t.next(n)}))}}:t(o)}}},17687:function(e,t,n){"use strict";n.r(t),n.d(t,{EditorContext:function(){return r.E},EditorContextProvider:function(){return r.a},ExecutionContext:function(){return r.q},ExecutionContextProvider:function(){return r.r},ExplorerContext:function(){return r.v},ExplorerContextProvider:function(){return r.w},HistoryContext:function(){return r.H},HistoryContextProvider:function(){return r.y},ImagePreview:function(){return r.b},SchemaContext:function(){return r.S},SchemaContextProvider:function(){return r.B},StorageContext:function(){return r.F},StorageContextProvider:function(){return r.G},onHasCompletion:function(){return r.d},useAutoCompleteLeafs:function(){return r.u},useCopyQuery:function(){return r.e},useDragResize:function(){return r.K},useEditorContext:function(){return r.f},useExecutionContext:function(){return r.s},useExplorerContext:function(){return r.x},useHeaderEditor:function(){return r.g},useHistoryContext:function(){return r.z},useMergeQuery:function(){return r.h},usePrettifyEditors:function(){return r.j},useQueryEditor:function(){return r.k},useResponseEditor:function(){return r.m},useSchemaContext:function(){return r.D},useSelectHistoryItem:function(){return r.A},useStorageContext:function(){return r.J},useVariableEditor:function(){return r.n}});var r=n(96872);n(5057),n(53627)},96872:function(e,t,n){"use strict";n.d(t,{A:function(){return Bs},B:function(){return ou},C:function(){return Xa},D:function(){return au},E:function(){return yc},F:function(){return fo},G:function(){return po},H:function(){return Rs},I:function(){return ea},J:function(){return Ho},K:function(){return Cc},L:function(){return rs},P:function(){return is},R:function(){return us},S:function(){return iu},a:function(){return bc},b:function(){return Ai},c:function(){return Z},d:function(){return pi},e:function(){return Su},f:function(){return _c},g:function(){return Du},h:function(){return Cu},i:function(){return ns},j:function(){return Nu},k:function(){return qu},l:function(){return $a},m:function(){return wc},n:function(){return hc},o:function(){return Ya},p:function(){return ts},q:function(){return Gs},r:function(){return Ws},s:function(){return Qs},t:function(){return es},u:function(){return Au},v:function(){return pu},w:function(){return du},x:function(){return hu},y:function(){return js},z:function(){return Ps}});var r=n(32723),i=n(9249),o=n(87371),a=n(96234),s=n(34795),u=n(56666),c=n(68079),l=n(41361);function f(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new p(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function p(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return p=function(e){this.s=e,this.n=e.next},p.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new p(e)}var d,h,v=n(10949),m=n(92460),g=n(23857),y=n(7751),b=n(56327),_=n(60844),E=n(80371),k=n(540),T=n(88041),w=n(89836),x=n(91681),S=n(95122),C=n(5057),N=n(53627),A=Object.defineProperty,O=Object.defineProperties,I=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,M=function(e,t,n){return t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},R=function(e,t){for(var n in t||(t={}))L.call(t,n)&&M(e,n,t[n]);if(D){var r,i=(0,l.Z)(D(t));try{for(i.s();!(r=i.n()).done;){n=r.value;F.call(t,n)&&M(e,n,t[n])}}catch(o){i.e(o)}finally{i.f()}}return e},j=function(e,t){return O(e,I(t))},P=function(e,t){return A(e,"name",{value:t,configurable:!0})},V=function(e,t){var n={};for(var r in e)L.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&D){var i,o=(0,l.Z)(D(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&F.call(e,r)&&(n[r]=e[r])}}catch(a){o.e(a)}finally{o.f()}}return n},Z="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U(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}P(q,"getDefaultExportFromCjs"),P(U,"getAugmentedNamespace");var B=/["'&<>]/,z=H;function H(e){var t,n=""+e,r=B.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==o&&(i+=n.substring(a,o)),a=o+1,i+=t}return a!==o?i+n.substring(a,o):i}P(H,"escapeHtml$1");var G={},W={Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\xca",ecirc:"\xea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105",in:"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba",int:"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\xb7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",Ocirc:"\xd4",ocirc:"\xf4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\xb6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",prap:"\u2ab7",Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\xd7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\xff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"},Q=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,X={},J={};function Y(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<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function $(e,t,n){var r,i,o,a,s,u="";for("string"!==typeof t&&(n=t,t=$.defaultChars),"undefined"===typeof n&&(n=!0),s=Y(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))u+=e.slice(r,r+3),r+=2;else if(o<128)u+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){u+=encodeURIComponent(e[r]+e[r+1]),r++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[r]);return u}P(Y,"getEncodeCache"),P($,"encode$1"),$.defaultChars=";/?:@&=+$,-_.!~*'()#",$.componentChars="-_.!~*'()";var K=$,ee={};function te(e){var t,n,r=ee[e];if(r)return r;for(r=ee[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function ne(e,t){var n;return"string"!==typeof t&&(t=ne.defaultChars),n=te(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,s,u,c="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?c+=n[i]:192===(224&i)&&t+3<r&&128===(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(u=i<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(u),t+=3):224===(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&o)&&128===(192&a))?(c+=(u=i<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(u),t+=6):240===(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?((u=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||u>1114111?c+="\ufffd\ufffd\ufffd\ufffd":(u-=65536,c+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):c+="\ufffd";return c}))}P(te,"getDecodeCache"),P(ne,"decode$1"),ne.defaultChars=";/?:@&=+$,#",ne.componentChars="";var re=ne,ie=P((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||"",t+=e.hash||""}),"format");function oe(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}P(oe,"Url");var ae=/^([a-z0-9.+-]+:)/i,se=/:[0-9]*$/,ue=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ce=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),le=["'"].concat(ce),fe=["%","/","?",";","#"].concat(le),pe=["/","?","#"],de=/^[+a-z0-9A-Z_-]{0,63}$/,he=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ve={javascript:!0,"javascript:":!0},me={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ge(e,t){if(e&&e instanceof oe)return e;var n=new oe;return n.parse(e,t),n}P(ge,"urlParse"),oe.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var u=ue.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}var c=ae.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&&ve[c]||(s=s.substr(2),this.slashes=!0)),!ve[c]&&(a||c&&!me[c])){var l,f,p=-1;for(n=0;n<pe.length;n++)-1!==(o=s.indexOf(pe[n]))&&(-1===p||o<p)&&(p=o);for(-1!==(f=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(l=s.slice(0,f),s=s.slice(f+1),this.auth=l),p=-1,n=0;n<fe.length;n++)-1!==(o=s.indexOf(fe[n]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var d=s.slice(0,p);s=s.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var v=this.hostname.split(/\./);for(n=0,r=v.length;n<r;n++){var m=v[n];if(m&&!m.match(de)){for(var g="",y=0,b=m.length;y<b;y++)m.charCodeAt(y)>127?g+="x":g+=m[y];if(!g.match(de)){var _=v.slice(0,n),E=v.slice(n+1),k=m.match(he);k&&(_.push(k[1]),E.unshift(k[2])),E.length&&(s=E.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var T=s.indexOf("#");-1!==T&&(this.hash=s.substr(T),s=s.slice(0,T));var w=s.indexOf("?");return-1!==w&&(this.search=s.substr(w),s=s.slice(0,w)),s&&(this.pathname=s),me[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},oe.prototype.parseHost=function(e){var t=se.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var ye=ge;X.encode=K,X.decode=re,X.format=ie,X.parse=ye;var be={},_e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ee=/[\0-\x1F\x7F-\x9F]/,ke=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;be.Any=_e,be.Cc=Ee,be.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]/,be.P=Q,be.Z=ke,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}P(t,"_class"),P(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!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function u(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}P(i,"has"),P(o,"assign"),P(a,"arrayReplaceAt"),P(s,"isValidEntityCode"),P(u,"fromCodePoint");var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=W;function d(e,t){var n=0;return i(p,t)?p[t]:35===t.charCodeAt(0)&&f.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?u(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function v(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||d(e,n)}))}P(d,"replaceEntityPattern"),P(h,"unescapeMd"),P(v,"unescapeAll");var m=/[&<>"]/,g=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function b(e){return y[e]}function _(e){return m.test(e)?e.replace(g,b):e}P(b,"replaceUnsafeChar"),P(_,"escapeHtml");var E=/[.?*+^$[\]\\(){}|-]/g;function k(e){return e.replace(E,"\\$&")}function T(e){switch(e){case 9:case 32:return!0}return!1}function w(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}P(k,"escapeRE"),P(T,"isSpace"),P(w,"isWhiteSpace");var x=Q;function S(e){return x.test(e)}function C(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," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}P(S,"isPunctChar"),P(C,"isMdAsciiPunct"),P(N,"normalizeReference"),e.lib={},e.lib.mdurl=X,e.lib.ucmicro=be,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=v,e.isValidEntityCode=s,e.fromCodePoint=u,e.escapeHtml=_,e.arrayReplaceAt=a,e.isSpace=T,e.isWhiteSpace=w,e.isMdAsciiPunct=C,e.isPunctChar=S,e.escapeRE=k,e.normalizeReference=N}(G);var Te={},we=P((function(e,t,n){var r,i,o,a,s=-1,u=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<u;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s}),"parseLinkLabel"),xe=G.unescapeAll,Se=P((function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=xe(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=xe(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),Ce=G.unescapeAll,Ne=P((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<n;){if((r=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=Ce(e.slice(a+1,t)),s.ok=!0,s;if(40===r&&41===i)return s;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s}),"parseLinkTitle");Te.parseLinkLabel=we,Te.parseLinkDestination=Se,Te.parseLinkTitle=Ne;var Ae=G.assign,Oe=G.unescapeAll,Ie=G.escapeHtml,De={};function Le(){this.rules=Ae({},De)}De.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+Ie(e[t].content)+"</code>"},De.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Ie(e[t].content)+"</code></pre>\n"},De.fence=function(e,t,n,r,i){var o,a,s,u,c,l=e[t],f=l.info?Oe(l.info).trim():"",p="",d="";return f&&(p=(s=f.split(/(\s+)/g))[0],d=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(l.content,p,d)||Ie(l.content)).indexOf("<pre")?o+"\n":f?(a=l.attrIndex("class"),u=l.attrs?l.attrs.slice():[],a<0?u.push(["class",n.langPrefix+p]):(u[a]=u[a].slice(),u[a][1]+=" "+n.langPrefix+p),c={attrs:u},"<pre><code"+i.renderAttrs(c)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"},De.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)},De.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},De.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},De.text=function(e,t){return Ie(e[t].content)},De.html_block=function(e,t){return e[t].content},De.html_inline=function(e,t){return e[t].content},P(Le,"Renderer$1"),Le.prototype.renderAttrs=P((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Ie(e.attrs[t][0])+'="'+Ie(e.attrs[t][1])+'"';return r}),"renderAttrs"),Le.prototype.renderToken=P((function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")}),"renderToken"),Le.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)"undefined"!==typeof o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},Le.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},Le.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):"undefined"!==typeof s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var Fe=Le;function Me(){this.__rules__=[],this.__cache__=null}P(Me,"Ruler$3"),Me.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Me.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},Me.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Me.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Me.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Me.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Me.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},Me.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},Me.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},Me.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var Re=Me,je=/\r\n?|\n/g,Pe=/\0/g,Ve=P((function(e){var t;t=(t=e.src.replace(je,"\n")).replace(Pe,"\ufffd"),e.src=t}),"normalize"),Ze=P((function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}),"block"),qe=P((function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}),"inline"),Ue=G.arrayReplaceAt;function Be(e){return/^<a[>\s]/i.test(e)}function ze(e){return/^<\/a\s*>/i.test(e)}P(Be,"isLinkOpen"),P(ze,"isLinkClose");var He=P((function(e){var t,n,r,i,o,a,s,u,c,l,f,p,d,h,v,m,g,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n<r;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(d=0,t=(i=y[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(Be(a.content)&&d>0&&d--,ze(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(c=a.content,g=e.md.linkify.match(c),s=[],p=a.level,f=0,u=0;u<g.length;u++)h=g[u].url,v=e.md.normalizeLink(h),e.md.validateLink(v)&&(m=g[u].text,m=g[u].schema?"mailto:"!==g[u].schema||/^mailto:/i.test(m)?e.md.normalizeLinkText(m):e.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),(l=g[u].index)>f&&((o=new e.Token("text","",0)).content=c.slice(f,l),o.level=p,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",v]],o.level=p++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=m,o.level=p,s.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",s.push(o),f=g[u].lastIndex);f<c.length&&((o=new e.Token("text","",0)).content=c.slice(f),o.level=p,s.push(o)),y[n].children=i=Ue(i,t,s)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}),"linkify"),Ge=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,We=/\((c|tm|r|p)\)/i,Qe=/\((c|tm|r|p)\)/gi,Xe={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function Je(e,t){return Xe[t.toLowerCase()]}function Ye(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Qe,Je)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function $e(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Ge.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}P(Je,"replaceFn"),P(Ye,"replace_scoped"),P($e,"replace_rare");var Ke=P((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(We.test(e.tokens[t].content)&&Ye(e.tokens[t].children),Ge.test(e.tokens[t].content)&&$e(e.tokens[t].children))}),"replace"),et=G.isWhiteSpace,tt=G.isPunctChar,nt=G.isMdAsciiPunct,rt=/['"]/,it=/['"]/g;function ot(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function at(e,t){var n,r,i,o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k;for(_=[],n=0;n<e.length;n++){for(r=e[n],u=e[n].level,y=_.length-1;y>=0&&!(_[y].level<=u);y--);if(_.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a<s&&(it.lastIndex=a,o=it.exec(i));){if(m=g=!0,a=o.index+1,b="'"===o[0],l=32,o.index-1>=0)l=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){l=e[y].content.charCodeAt(e[y].content.length-1);break}if(f=32,a<s)f=i.charCodeAt(a);else for(y=n+1;y<e.length&&("softbreak"!==e[y].type&&"hardbreak"!==e[y].type);y++)if(e[y].content){f=e[y].content.charCodeAt(0);break}if(p=nt(l)||tt(String.fromCharCode(l)),d=nt(f)||tt(String.fromCharCode(f)),h=et(l),(v=et(f))?m=!1:d&&(h||p||(m=!1)),h?g=!1:p&&(v||d||(g=!1)),34===f&&'"'===o[0]&&l>=48&&l<=57&&(g=m=!1),m&&g&&(m=p,g=d),m||g){if(g)for(y=_.length-1;y>=0&&(c=_[y],!(_[y].level<u));y--)if(c.single===b&&_[y].level===u){c=_[y],b?(E=t.md.options.quotes[2],k=t.md.options.quotes[3]):(E=t.md.options.quotes[0],k=t.md.options.quotes[1]),r.content=ot(r.content,o.index,k),e[c.token].content=ot(e[c.token].content,c.pos,E),a+=k.length-1,c.token===n&&(a+=E.length-1),s=(i=r.content).length,_.length=y;continue e}m?_.push({token:n,pos:o.index,single:b,level:u}):g&&b&&(r.content=ot(r.content,o.index,"\u2019"))}else b&&(r.content=ot(r.content,o.index,"\u2019"))}}}}P(ot,"replaceAt"),P(at,"process_inlines");var st=P((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&rt.test(e.tokens[t].content)&&at(e.tokens[t].children,e)}),"smartquotes");function ut(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}P(ut,"Token$3"),ut.prototype.attrIndex=P((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1}),"attrIndex"),ut.prototype.attrPush=P((function(e){this.attrs?this.attrs.push(e):this.attrs=[e]}),"attrPush"),ut.prototype.attrSet=P((function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}),"attrSet"),ut.prototype.attrGet=P((function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}),"attrGet"),ut.prototype.attrJoin=P((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 ct=ut,lt=ct;function ft(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}P(ft,"StateCore"),ft.prototype.Token=lt;var pt=ft,dt=Re,ht=[["normalize",Ve],["block",Ze],["inline",qe],["linkify",He],["replacements",Ke],["smartquotes",st]];function vt(){this.ruler=new dt;for(var e=0;e<ht.length;e++)this.ruler.push(ht[e][0],ht[e][1])}P(vt,"Core"),vt.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},vt.prototype.State=pt;var mt=vt,gt=G.isSpace;function yt(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function bt(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}P(yt,"getLine"),P(bt,"escapedSplit");var _t=P((function(e,t,n,r){var i,o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E;if(t+2>n)return!1;if(c=t+1,e.sCount[c]<e.blkIndent)return!1;if(e.sCount[c]-e.blkIndent>=4)return!1;if((a=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(_=e.src.charCodeAt(a++))&&45!==_&&58!==_)return!1;if(a>=e.eMarks[c])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E&&!gt(E))return!1;if(45===_&>(E))return!1;for(;a<e.eMarks[c];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!gt(i))return!1;a++}for(l=(o=yt(e,t+1)).split("|"),d=[],s=0;s<l.length;s++){if(!(h=l[s].trim())){if(0===s||s===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?d.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(o=yt(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((l=bt(o)).length&&""===l[0]&&l.shift(),l.length&&""===l[l.length-1]&&l.pop(),0===(f=l.length)||f!==d.length)return!1;if(r)return!0;for(g=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=v=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s<l.length;s++)p=e.push("th_open","th",1),d[s]&&(p.attrs=[["style","text-align:"+d[s]]]),(p=e.push("inline","",0)).content=l[s].trim(),p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),c=t+2;c<n&&!(e.sCount[c]<e.blkIndent);c++){for(y=!1,s=0,u=b.length;s<u;s++)if(b[s](e,c,n,!0)){y=!0;break}if(y)break;if(!(o=yt(e,c).trim()))break;if(e.sCount[c]-e.blkIndent>=4)break;for((l=bt(o)).length&&""===l[0]&&l.shift(),l.length&&""===l[l.length-1]&&l.pop(),c===t+2&&((p=e.push("tbody_open","tbody",1)).map=m=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[c,c+1],s=0;s<f;s++)p=e.push("td_open","td",1),d[s]&&(p.attrs=[["style","text-align:"+d[s]]]),(p=e.push("inline","",0)).content=l[s]?l[s].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return m&&(p=e.push("tbody_close","tbody",-1),m[1]=c),p=e.push("table_close","table",-1),v[1]=c,e.parentType=g,e.line=c,!0}),"table"),Et=P((function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=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"),kt=P((function(e,t,n,r){var i,o,a,s,u,c,l,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(l=e.src.slice(u,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((p=u=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4)&&!((p=e.skipChars(p,i))-u<o)&&!((p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,o,!0),c.markup=l,c.map=[t,e.line],!0}),"fence"),Tt=G.isSpace,wt=P((function(e,t,n,r){var i,o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k,T,w=e.lineMax,x=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(r)return!0;for(s=p=e.sCount[t]+1,32===e.src.charCodeAt(x)?(x++,s++,p++,i=!1,b=!0):9===e.src.charCodeAt(x)?(b=!0,(e.bsCount[t]+p)%4===3?(x++,s++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=x;x<S&&(o=e.src.charCodeAt(x),Tt(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,x++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),c=x>=S,g=[e.sCount[t]],e.sCount[t]=p-s,y=[e.tShift[t]],e.tShift[t]=x-e.bMarks[t],E=e.md.block.ruler.getRules("blockquote"),m=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(T=e.sCount[f]<e.blkIndent,!((x=e.bMarks[f]+e.tShift[f])>=(S=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(x++)||T){if(c)break;for(_=!1,a=0,u=E.length;a<u;a++)if(E[a](e,f,n,!0)){_=!0;break}if(_){e.lineMax=f,0!==e.blkIndent&&(d.push(e.bMarks[f]),h.push(e.bsCount[f]),y.push(e.tShift[f]),g.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}d.push(e.bMarks[f]),h.push(e.bsCount[f]),y.push(e.tShift[f]),g.push(e.sCount[f]),e.sCount[f]=-1}else{for(s=p=e.sCount[f]+1,32===e.src.charCodeAt(x)?(x++,s++,p++,i=!1,b=!0):9===e.src.charCodeAt(x)?(b=!0,(e.bsCount[f]+p)%4===3?(x++,s++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=x;x<S&&(o=e.src.charCodeAt(x),Tt(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,x++;c=x>=S,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),g.push(e.sCount[f]),e.sCount[f]=p-s,y.push(e.tShift[f]),e.tShift[f]=x-e.bMarks[f]}for(v=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=l=[t,0],e.md.block.tokenize(e,t,f),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=w,e.parentType=m,l[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+t]=d[a],e.tShift[a+t]=y[a],e.sCount[a+t]=g[a],e.bsCount[a+t]=h[a];return e.blkIndent=v,!0}),"blockquote"),xt=G.isSpace,St=P((function(e,t,n,r){var i,o,a,s,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(u++))&&45!==i&&95!==i)return!1;for(o=1;u<c;){if((a=e.src.charCodeAt(u++))!==i&&!xt(a))return!1;a===i&&o++}return!(o<3)&&(r||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i))),!0)}),"hr"),Ct=G.isSpace;function Nt(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!Ct(o))?-1:r}function At(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=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<o&&(n=e.src.charCodeAt(i),!Ct(n))?-1:i}function Ot(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}P(Nt,"skipBulletListMarker"),P(At,"skipOrderedListMarker"),P(Ot,"markTightParagraphs");var It=P((function(e,t,n,r){var i,o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k,T,w,x,S,C,N,A,O,I,D=!1,L=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(D=!0),(S=At(e,t))>=0){if(l=!0,N=e.bMarks[t]+e.tShift[t],m=Number(e.src.slice(N,S-1)),D&&1!==m)return!1}else{if(!((S=Nt(e,t))>=0))return!1;l=!1}if(D&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(S-1),r)return!0;for(h=e.tokens.length,l?(I=e.push("ordered_list_open","ol",1),1!==m&&(I.attrs=[["start",m]])):I=e.push("bullet_list_open","ul",1),I.map=d=[t,0],I.markup=String.fromCharCode(v),y=t,C=!1,O=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";y<n;){for(x=S,g=e.eMarks[y],c=b=e.sCount[y]+S-(e.bMarks[t]+e.tShift[t]);x<g;){if(9===(i=e.src.charCodeAt(x)))b+=4-(b+e.bsCount[y])%4;else{if(32!==i)break;b++}x++}if((u=(o=x)>=g?1:b-c)>4&&(u=1),s=c+u,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),I.map=f=[t,0],l&&(I.info=e.src.slice(N,S-1)),w=e.tight,T=e.tShift[t],k=e.sCount[t],_=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=g&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!C||(L=!1),C=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[t]=T,e.sCount[t]=k,e.tight=w,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),y=t=e.line,f[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(A=!1,a=0,p=O.length;a<p;a++)if(O[a](e,y,n,!0)){A=!0;break}if(A)break;if(l){if((S=At(e,y))<0)break;N=e.bMarks[y]+e.tShift[y]}else if((S=Nt(e,y))<0)break;if(v!==e.src.charCodeAt(S-1))break}return(I=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),d[1]=y,e.line=y,e.parentType=E,L&&Ot(e,h),!0}),"list"),Dt=G.normalizeReference,Lt=G.isSpace,Ft=P((function(e,t,n,r){var i,o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_=0,E=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],T=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(E))return!1;for(;++E<k;)if(93===e.src.charCodeAt(E)&&92!==e.src.charCodeAt(E-1)){if(E+1===k)return!1;if(58!==e.src.charCodeAt(E+1))return!1;break}for(s=e.lineMax,y=e.md.block.ruler.getRules("reference"),d=e.parentType,e.parentType="reference";T<s&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(g=!1,c=0,l=y.length;c<l;c++)if(y[c](e,T,s,!0)){g=!0;break}if(g)break}for(k=(m=e.getLines(t,T,e.blkIndent,!1).trim()).length,E=1;E<k;E++){if(91===(i=m.charCodeAt(E)))return!1;if(93===i){p=E;break}(10===i||92===i&&++E<k&&10===m.charCodeAt(E))&&_++}if(p<0||58!==m.charCodeAt(p+1))return!1;for(E=p+2;E<k;E++)if(10===(i=m.charCodeAt(E)))_++;else if(!Lt(i))break;if(!(h=e.md.helpers.parseLinkDestination(m,E,k)).ok)return!1;if(u=e.md.normalizeLink(h.str),!e.md.validateLink(u))return!1;for(o=E=h.pos,a=_+=h.lines,v=E;E<k;E++)if(10===(i=m.charCodeAt(E)))_++;else if(!Lt(i))break;for(h=e.md.helpers.parseLinkTitle(m,E,k),E<k&&v!==E&&h.ok?(b=h.str,E=h.pos,_+=h.lines):(b="",E=o,_=a);E<k&&(i=m.charCodeAt(E),Lt(i));)E++;if(E<k&&10!==m.charCodeAt(E)&&b)for(b="",E=o,_=a;E<k&&(i=m.charCodeAt(E),Lt(i));)E++;return!(E<k&&10!==m.charCodeAt(E))&&(!!(f=Dt(m.slice(1,p)))&&(r||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[f]&&(e.env.references[f]={title:b,href:u}),e.parentType=d,e.line=t+_+1),!0))}),"reference"),Mt={},Rt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",jt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Pt=new RegExp("^(?:"+Rt+"|"+jt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Vt=new RegExp("^(?:"+Rt+"|"+jt+")");Mt.HTML_TAG_RE=Pt,Mt.HTML_OPEN_CLOSE_TAG_RE=Vt;var Zt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qt=Mt.HTML_OPEN_CLOSE_TAG_RE,Ut=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Zt.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(qt.source+"\\s*$"),/^$/,!1]],Bt=P((function(e,t,n,r){var i,o,a,s,u=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(u))return!1;for(s=e.src.slice(u,c),i=0;i<Ut.length&&!Ut[i][0].test(s);i++);if(i===Ut.length)return!1;if(r)return Ut[i][2];if(o=t+1,!Ut[i][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(u=e.bMarks[o]+e.tShift[o],c=e.eMarks[o],s=e.src.slice(u,c),Ut[i][1].test(s)){0!==s.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0}),"html_block"),zt=G.isSpace,Ht=P((function(e,t,n,r){var i,o,a,s,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(u))||u>=c)return!1;for(o=1,i=e.src.charCodeAt(++u);35===i&&u<c&&o<=6;)o++,i=e.src.charCodeAt(++u);return!(o>6||u<c&&!zt(i))&&(r||(c=e.skipSpacesBack(c,u),(a=e.skipCharsBack(c,35,u))>u&&zt(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(u,c).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),!0)}),"heading"),Gt=P((function(e,t,n){var r,i,o,a,s,u,c,l,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d])<(c=e.eMarks[d])&&(45===(f=e.src.charCodeAt(u))||61===f)&&(u=e.skipChars(u,f),(u=e.skipSpaces(u))>=c)){l=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!l&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(l),1)).markup=String.fromCharCode(f),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(l),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}),"lheading"),Wt=P((function(e,t){var n,r,i,o,a,s,u=t+1,c=e.md.block.ruler.getRules("paragraph"),l=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<l&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(r=!1,i=0,o=c.length;i<o;i++)if(c[i](e,u,l,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}),"paragraph"),Qt=ct,Xt=G.isSpace;function Jt(e,t,n,r){var i,o,a,s,u,c,l,f;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,a=s=c=l=0,u=(o=this.src).length;s<u;s++){if(i=o.charCodeAt(s),!f){if(Xt(i)){c++,9===i?l+=4-l%4:l++;continue}f=!0}10!==i&&s!==u-1||(10!==i&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(l),this.bsCount.push(0),f=!1,c=0,l=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}P(Jt,"StateBlock"),Jt.prototype.push=function(e,t,n){var r=new Qt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Jt.prototype.isEmpty=P((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Jt.prototype.skipEmptyLines=P((function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}),"skipEmptyLines"),Jt.prototype.skipSpaces=P((function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),Xt(t));e++);return e}),"skipSpaces"),Jt.prototype.skipSpacesBack=P((function(e,t){if(e<=t)return e;for(;e>t;)if(!Xt(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Jt.prototype.skipChars=P((function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}),"skipChars"),Jt.prototype.skipCharsBack=P((function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Jt.prototype.getLines=P((function(e,t,n,r){var i,o,a,s,u,c,l,f=e;if(e>=t)return"";for(c=new Array(t-e),i=0;f<t;f++,i++){for(o=0,l=s=this.bMarks[f],u=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];s<u&&o<n;){if(a=this.src.charCodeAt(s),Xt(a))9===a?o+=4-(o+this.bsCount[f])%4:o++;else{if(!(s-l<this.tShift[f]))break;o++}s++}c[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,u):this.src.slice(s,u)}return c.join("")}),"getLines"),Jt.prototype.Token=Qt;var Yt=Jt,$t=Re,Kt=[["table",_t,["paragraph","reference"]],["code",Et],["fence",kt,["paragraph","reference","blockquote","list"]],["blockquote",wt,["paragraph","reference","blockquote","list"]],["hr",St,["paragraph","reference","blockquote","list"]],["list",It,["paragraph","reference","blockquote"]],["reference",Ft],["html_block",Bt,["paragraph","reference","blockquote"]],["heading",Ht,["paragraph","reference","blockquote"]],["lheading",Gt],["paragraph",Wt]];function en(){this.ruler=new $t;for(var e=0;e<Kt.length;e++)this.ruler.push(Kt[e][0],Kt[e][1],{alt:(Kt[e][2]||[]).slice()})}P(en,"ParserBlock$1"),en.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,u=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},en.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},en.prototype.State=Yt;var tn=en;function nn(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}P(nn,"isTerminatorChar");for(var rn=P((function(e,t){for(var n=e.pos;n<e.posMax&&!nn(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}),"text"),on=G.isSpace,an=P((function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=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<r&&on(e.src.charCodeAt(i));)i++;return e.pos=i,!0}),"newline"),sn=G.isSpace,un=[],cn=0;cn<256;cn++)un.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){un[e.charCodeAt(0)]=1}));var ln=P((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<i){if((n=e.src.charCodeAt(r))<256&&0!==un[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<i&&(n=e.src.charCodeAt(r),sn(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}),"escape"),fn=P((function(e,t){var n,r,i,o,a,s,u,c,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,r=e.posMax;l<r&&96===e.src.charCodeAt(l);)l++;if(u=(i=e.src.slice(n,l)).length,e.backticksScanned&&(e.backticks[u]||0)<=n)return t||(e.pending+=i),e.pos+=u,!0;for(a=s=l;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-a)===u)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(l,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=u,!0}),"backtick"),pn={};function dn(e,t){var n,r,i,o,a,s=[],u=t.length;for(n=0;n<u;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}pn.tokenize=P((function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"strikethrough"),P(dn,"postProcess$1"),pn.postProcess=P((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(dn(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&dn(e,n[t].delimiters)}),"strikethrough");var hn={};function vn(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].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--))}hn.tokenize=P((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<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"emphasis"),P(vn,"postProcess"),hn.postProcess=P((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(vn(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&vn(e,n[t].delimiters)}),"emphasis");var mn=G.normalizeReference,gn=G.isSpace,yn=P((function(e,t){var n,r,i,o,a,s,u,c,l="",f="",p=e.pos,d=e.posMax,h=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=o+1)<d&&40===e.src.charCodeAt(s)){for(v=!1,s++;s<d&&(r=e.src.charCodeAt(s),gn(r)||10===r);s++);if(s>=d)return!1;if(h=s,(u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(l=e.md.normalizeLink(u.str),e.md.validateLink(l)?s=u.pos:l="",h=s;s<d&&(r=e.src.charCodeAt(s),gn(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<d&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<d&&(r=e.src.charCodeAt(s),gn(r)||10===r);s++);}(s>=d||41!==e.src.charCodeAt(s))&&(v=!0),s++}if(v){if("undefined"===typeof e.env.references)return!1;if(s<d&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,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[mn(i)]))return e.pos=p,!1;l=c.href,f=c.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",l]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=d,!0}),"link"),bn=G.normalizeReference,_n=G.isSpace,En=P((function(e,t){var n,r,i,o,a,s,u,c,l,f,p,d,h,v="",m=e.pos,g=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((u=a+1)<g&&40===e.src.charCodeAt(u)){for(u++;u<g&&(r=e.src.charCodeAt(u),_n(r)||10===r);u++);if(u>=g)return!1;for(h=u,(l=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(v=e.md.normalizeLink(l.str),e.md.validateLink(v)?u=l.pos:v=""),h=u;u<g&&(r=e.src.charCodeAt(u),_n(r)||10===r);u++);if(l=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<g&&h!==u&&l.ok)for(f=l.str,u=l.pos;u<g&&(r=e.src.charCodeAt(u),_n(r)||10===r);u++);else f="";if(u>=g||41!==e.src.charCodeAt(u))return e.pos=m,!1;u++}else{if("undefined"===typeof e.env.references)return!1;if(u<g&&91===e.src.charCodeAt(u)?(h=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?o=e.src.slice(h,u++):u=a+1):u=a+1,o||(o=e.src.slice(s,a)),!(c=e.env.references[bn(o)]))return e.pos=m,!1;v=c.href,f=c.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,d=[]),(p=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],p.children=d,p.content=i,f&&n.push(["title",f])),e.pos=u,e.posMax=g,!0}),"image"),kn=/^([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])?)*)$/,Tn=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,wn=P((function(e,t){var n,r,i,o,a,s,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(a=e.pos,s=e.posMax;;){if(++u>=s)return!1;if(60===(o=e.src.charCodeAt(u)))return!1;if(62===o)break}return n=e.src.slice(a+1,u),Tn.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)):!!kn.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"),xn=Mt.HTML_TAG_RE;function Sn(e){var t=32|e;return t>=97&&t<=122}P(Sn,"isLetter");var Cn=P((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&&!Sn(n))&&(!!(r=e.src.slice(o).match(xn))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,!0))))}),"html_inline"),Nn=W,An=G.has,On=G.isValidEntityCode,In=G.fromCodePoint,Dn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ln=/^&([a-z][a-z0-9]{1,31});/i,Fn=P((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<o)if(35===e.src.charCodeAt(i+1)){if(r=e.src.slice(i).match(Dn))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=On(n)?In(n):In(65533)),e.pos+=r[0].length,!0}else if((r=e.src.slice(i).match(Ln))&&An(Nn,r[1]))return t||(e.pending+=Nn[r[1]]),e.pos+=r[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}),"entity");function Mn(e,t){var n,r,i,o,a,s,u,c,l={},f=t.length;for(n=0;n<f;n++)if((i=t[n]).length=i.length||0,i.close){for(l.hasOwnProperty(i.marker)||(l[i.marker]=[-1,-1,-1,-1,-1,-1]),a=l[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),s=r;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(u=!0)),!u)){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&&(l[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}P(Mn,"processDelimiters");var Rn=P((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Mn(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Mn(0,n[t].delimiters)}),"link_pairs"),jn=P((function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}),"text_collapse"),Pn=ct,Vn=G.isWhiteSpace,Zn=G.isPunctChar,qn=G.isMdAsciiPunct;function Un(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}P(Un,"StateInline"),Un.prototype.pushPending=function(){var e=new Pn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Un.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new Pn(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(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},Un.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,u,c,l,f=e,p=!0,d=!0,h=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<h&&this.src.charCodeAt(f)===v;)f++;return i=f-e,r=f<h?this.src.charCodeAt(f):32,u=qn(n)||Zn(String.fromCharCode(n)),l=qn(r)||Zn(String.fromCharCode(r)),s=Vn(n),(c=Vn(r))?p=!1:l&&(s||u||(p=!1)),s?d=!1:u&&(c||l||(d=!1)),t?(o=p,a=d):(o=p&&(!d||u),a=d&&(!p||l)),{can_open:o,can_close:a,length:i}},Un.prototype.Token=Pn;var Bn=Un,zn=Re,Hn=[["text",rn],["newline",an],["escape",ln],["backticks",fn],["strikethrough",pn.tokenize],["emphasis",hn.tokenize],["link",yn],["image",En],["autolink",wn],["html_inline",Cn],["entity",Fn]],Gn=[["balance_pairs",Rn],["strikethrough",pn.postProcess],["emphasis",hn.postProcess],["text_collapse",jn]];function Wn(){var e;for(this.ruler=new zn,e=0;e<Hn.length;e++)this.ruler.push(Hn[e][0],Hn[e][1]);for(this.ruler2=new zn,e=0;e<Gn.length;e++)this.ruler2.push(Gn[e][0],Gn[e][1])}P(Wn,"ParserInline$1"),Wn.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"===typeof s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},Wn.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Wn.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<a;i++)o[i](s)},Wn.prototype.State=Bn;var Qn=Wn,Xn=P((function(e){var t={};t.src_Any=_e.source,t.src_Cc=Ee.source,t.src_Z=ke.source,t.src_P=Q.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+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='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function Jn(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Yn(e){return Object.prototype.toString.call(e)}function $n(e){return"[object String]"===Yn(e)}function Kn(e){return"[object Object]"===Yn(e)}function er(e){return"[object RegExp]"===Yn(e)}function tr(e){return"[object Function]"===Yn(e)}function nr(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}P(Jn,"assign"),P(Yn,"_class"),P($n,"isString"),P(Kn,"isObject$2"),P(er,"isRegExp"),P(tr,"isFunction"),P(nr,"escapeRE");var rr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ir(e){return Object.keys(e||{}).reduce((function(e,t){return e||rr.hasOwnProperty(t)}),!1)}P(ir,"isOptionsObj");var or={"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}}},ar="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]",sr="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function ur(e){e.__index__=-1,e.__text_cache__=""}function cr(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function lr(){return function(e,t){t.normalize(e)}}function fr(e){var t=e.re=Xn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(ar),n.push(t.src_xn),t.src_tlds=n.join("|"),P(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__={},P(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,Kn(n))return er(n.validate)?r.validate=cr(n.validate):tr(n.validate)?r.validate=n.validate:o(t,n),void(tr(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});$n(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(nr).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),ur(e)}function pr(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 dr(e,t){var n=new pr(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function hr(e,t){if(!(this instanceof hr))return new hr(e,t);t||ir(e)&&(t=e,e={}),this.__opts__=Jn({},rr,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jn({},or,e),this.__compiled__={},this.__tlds__=sr,this.__tlds_replaced__=!1,this.re={},fr(this)}P(ur,"resetScanCache"),P(cr,"createValidator"),P(lr,"createNormalizer"),P(fr,"compile"),P(pr,"Match"),P(dr,"createMatch"),P(hr,"LinkifyIt$1"),hr.prototype.add=P((function(e,t){return this.__schemas__[e]=t,fr(this),this}),"add"),hr.prototype.set=P((function(e){return this.__opts__=Jn(this.__opts__,e),this}),"set"),hr.prototype.test=P((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;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:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),hr.prototype.pretest=P((function(e){return this.re.pretest.test(e)}),"pretest"),hr.prototype.testSchemaAt=P((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),hr.prototype.match=P((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(dr(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(dr(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),hr.prototype.tlds=P((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(),fr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,fr(this),this)}),"tlds"),hr.prototype.normalize=P((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),hr.prototype.onCompile=P((function(){}),"onCompile");var vr=hr,mr=2147483647,gr=36,yr=/^xn--/,br=/[^\0-\x7E]/,_r=/[\x2E\u3002\uFF0E\uFF61]/g,Er={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},kr=Math.floor,Tr=String.fromCharCode;function wr(e){throw new RangeError(Er[e])}function xr(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function Sr(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+xr((e=e.replace(_r,".")).split("."),t).join(".")}function Cr(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}P(wr,"error"),P(xr,"map"),P(Sr,"mapDomain"),P(Cr,"ucs2decode");var Nr=P((function(e){return String.fromCodePoint.apply(String,(0,c.Z)(e))}),"ucs2encode"),Ar=P((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:gr}),"basicToDigit"),Or=P((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),Ir=P((function(e,t,n){var r=0;for(e=n?kr(e/700):e>>1,e+=kr(e/t);e>455;r+=gr)e=kr(e/35);return kr(r+36*e/(e+38))}),"adapt"),Dr=P((function(e){var t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&wr("not-basic"),t.push(e.charCodeAt(s));for(var u=a>0?a+1:0;u<n;){for(var c=r,l=1,f=gr;;f+=gr){u>=n&&wr("invalid-input");var p=Ar(e.charCodeAt(u++));(p>=gr||p>kr((mr-r)/l))&&wr("overflow"),r+=p*l;var d=f<=o?1:f>=o+26?26:f-o;if(p<d)break;var h=gr-d;l>kr(mr/h)&&wr("overflow"),l*=h}var v=t.length+1;o=Ir(r-c,v,0==c),kr(r/v)>mr-i&&wr("overflow"),i+=kr(r/v),r%=v,t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)}),"decode"),Lr=P((function(e){var t,n=[],r=(e=Cr(e)).length,i=128,o=0,a=72,s=(0,l.Z)(e);try{for(s.s();!(t=s.n()).done;){var u=t.value;u<128&&n.push(Tr(u))}}catch(x){s.e(x)}finally{s.f()}var c=n.length,f=c;for(c&&n.push("-");f<r;){var p,d=mr,h=(0,l.Z)(e);try{for(h.s();!(p=h.n()).done;){var v=p.value;v>=i&&v<d&&(d=v)}}catch(x){h.e(x)}finally{h.f()}var m=f+1;d-i>kr((mr-o)/m)&&wr("overflow"),o+=(d-i)*m,i=d;var g,y=(0,l.Z)(e);try{for(y.s();!(g=y.n()).done;){var b=g.value;if(b<i&&++o>mr&&wr("overflow"),b==i){for(var _=o,E=gr;;E+=gr){var k=E<=a?1:E>=a+26?26:E-a;if(_<k)break;var T=_-k,w=gr-k;n.push(Tr(Or(k+T%w,0))),_=kr(T/w)}n.push(Tr(Or(_,0))),a=Ir(o,m,f==c),o=0,++f}}}catch(x){y.e(x)}finally{y.f()}++o,++i}return n.join("")}),"encode"),Fr=P((function(e){return Sr(e,(function(e){return yr.test(e)?Dr(e.slice(4).toLowerCase()):e}))}),"toUnicode"),Mr=P((function(e){return Sr(e,(function(e){return br.test(e)?"xn--"+Lr(e):e}))}),"toASCII"),Rr={version:"2.1.0",ucs2:{decode:Cr,encode:Nr},decode:Dr,encode:Lr,toASCII:Mr,toUnicode:Fr},jr=Object.freeze((d={__proto__:null},(0,u.Z)(d,Symbol.toStringTag,"Module"),(0,u.Z)(d,"ucs2decode",Cr),(0,u.Z)(d,"ucs2encode",Nr),(0,u.Z)(d,"decode",Dr),(0,u.Z)(d,"encode",Lr),(0,u.Z)(d,"toASCII",Mr),(0,u.Z)(d,"toUnicode",Fr),(0,u.Z)(d,"default",Rr),d)),Pr=G,Vr=Te,Zr=Fe,qr=mt,Ur=tn,Br=Qn,zr=vr,Hr=X,Gr=U(jr),Wr={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},Qr=/^(vbscript|javascript|file|data):/,Xr=/^data:image\/(gif|png|jpeg|webp);/;function Jr(e){var t=e.trim().toLowerCase();return!Qr.test(t)||!!Xr.test(t)}P(Jr,"validateLink");var Yr=["http:","https:","mailto:"];function $r(e){var t=Hr.parse(e,!0);if(t.hostname&&(!t.protocol||Yr.indexOf(t.protocol)>=0))try{t.hostname=Gr.toASCII(t.hostname)}catch(n){}return Hr.encode(Hr.format(t))}function Kr(e){var t=Hr.parse(e,!0);if(t.hostname&&(!t.protocol||Yr.indexOf(t.protocol)>=0))try{t.hostname=Gr.toUnicode(t.hostname)}catch(n){}return Hr.decode(Hr.format(t),Hr.decode.defaultChars+"%")}function ei(e,t){if(!(this instanceof ei))return new ei(e,t);t||Pr.isString(e)||(t=e||{},e="default"),this.inline=new Br,this.block=new Ur,this.core=new qr,this.renderer=new Zr,this.linkify=new zr,this.validateLink=Jr,this.normalizeLink=$r,this.normalizeLinkText=Kr,this.utils=Pr,this.helpers=Pr.assign({},Vr),this.options={},this.configure(e),t&&this.set(t)}P($r,"normalizeLink"),P(Kr,"normalizeLinkText"),P(ei,"MarkdownIt"),ei.prototype.set=function(e){return Pr.assign(this.options,e),this},ei.prototype.configure=function(e){var t,n=this;if(Pr.isString(e)&&!(e=Wr[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},ei.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},ei.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},ei.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},ei.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},ei.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},ei.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},ei.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ti=new ei,ni=Object.defineProperty,ri=P((function(e,t){return ni(e,"name",{value:t,configurable:!0})}),"__name$j"),ii="graphiql",oi="sublime",ai=!1;"object"===typeof window&&(ai=0===window.navigator.platform.toLowerCase().indexOf("mac"));var si=(h={},(0,u.Z)(h,ai?"Cmd-F":"Ctrl-F","findPersistent"),(0,u.Z)(h,"Cmd-G","findPersistent"),(0,u.Z)(h,"Ctrl-G","findPersistent"),(0,u.Z)(h,"Ctrl-Left","goSubwordLeft"),(0,u.Z)(h,"Ctrl-Right","goSubwordRight"),(0,u.Z)(h,"Alt-Left","goGroupLeft"),(0,u.Z)(h,"Alt-Right","goGroupRight"),h);function ui(e,t){return ci.apply(this,arguments)}function ci(){return(ci=(0,s.Z)((0,r.Z)().mark((function e(t,i){var o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(8262).then(n.bind(n,48262)).then((function(e){return e.c})).then((function(e){return"function"===typeof e?e:e.default}));case 2:return o=e.sent,e.next=5,Promise.all(!1===(null==i?void 0:i.useCommonAddons)?t:[Promise.all([n.e(8262),n.e(3111)]).then(n.bind(n,23111)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(4104)]).then(n.bind(n,34104)).then((function(e){return e.m})),Promise.all([n.e(8262),n.e(2564)]).then(n.bind(n,72564)).then((function(e){return e.c})),Promise.all([n.e(8262),n.e(4349)]).then(n.bind(n,24349)).then((function(e){return e.b})),Promise.all([n.e(8262),n.e(4074)]).then(n.bind(n,44074)).then((function(e){return e.f})),Promise.all([n.e(8262),n.e(4241)]).then(n.bind(n,84241)).then((function(e){return e.l})),Promise.all([n.e(8262),n.e(3829)]).then(n.bind(n,33829)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(4590)]).then(n.bind(n,44590)).then((function(e){return e.j})),Promise.all([n.e(8262),n.e(6830)]).then(n.bind(n,36830)).then((function(e){return e.d})),Promise.all([n.e(8262),n.e(1361)]).then(n.bind(n,61361)).then((function(e){return e.s}))].concat((0,c.Z)(t)));case 5:return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}P(ui,"importCodeMirror"),ri(ui,"importCodeMirror");var li=Object.defineProperty,fi=P((function(e,t){return li(e,"name",{value:t,configurable:!0})}),"__name$i");function pi(e,t,n,r){function i(e){if(n&&r&&e.currentTarget instanceof HTMLElement&&"typeName"===e.currentTarget.className){var t=e.currentTarget.innerHTML,i=n.getType(t);i&&(r.show(),r.push({name:i.name,def:i}))}}ui([],{useCommonAddons:!1}).then((function(e){var n,r;e.on(t,"select",(function(e,t){if(!n){var o,a=t.parentNode;(n=document.createElement("div")).className="CodeMirror-hint-information",n.addEventListener("click",i),a.appendChild(n),(r=document.createElement("div")).className="CodeMirror-hint-deprecation",a.appendChild(r),a.addEventListener("DOMNodeRemoved",o=fi((function(e){e.target===a&&(a.removeEventListener("DOMNodeRemoved",o),n&&n.removeEventListener("click",i),n=null,r=null,o=null)}),"onRemoveFn"))}var s=e.description?ti.render(e.description):"Self descriptive.",u=e.type?'<span class="infoType">'+di(e.type)+"</span>":"";if(n.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+u+s.slice(3):u+s)+"</div>",e&&r&&e.deprecationReason){var c=e.deprecationReason?ti.render(e.deprecationReason):"";r.innerHTML='<span class="deprecation-label">Deprecated</span>'+c,r.style.display="block"}else r&&(r.style.display="none")}))})),P(i,"onClickHintInformation"),fi(i,"onClickHintInformation")}function di(e){return(0,v.zM)(e)?"".concat(di(e.ofType),"!"):(0,v.HG)(e)?"[".concat(di(e.ofType),"]"):'<a class="typeName">'.concat(z(e.name),"</a>")}P(pi,"onHasCompletion"),fi(pi,"onHasCompletion"),P(di,"renderType"),fi(di,"renderType");var hi={exports:{}},vi={};Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function mi(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function gi(){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(i){return!1}}P(mi,"toObject"),P(gi,"shouldUseNative"),gi()&&Object.assign;var yi=C,bi=60103;if(vi.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var _i=Symbol.for;bi=_i("react.element"),vi.Fragment=_i("react.fragment")}var Ei=yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ki=Object.prototype.hasOwnProperty,Ti={key:!0,ref:!0,__self:!0,__source:!0};function wi(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)ki.call(t,r)&&!Ti.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:bi,type:e,key:o,ref:a,props:i,_owner:Ei.current}}P(wi,"q"),vi.jsx=wi,vi.jsxs=wi,hi.exports=vi;var xi=hi.exports.jsx,Si=hi.exports.jsxs,Ci=Object.defineProperty,Ni=P((function(e,t){return Ci(e,"name",{value:t,configurable:!0})}),"__name$h");function Ai(e){var t,n=(0,C.useState)({width:null,height:null}),r=(0,a.Z)(n,2),i=r[0],o=r[1],s=(0,C.useState)(null),u=(0,a.Z)(s,2),c=u[0],l=u[1],f=(0,C.useRef)(null),p=null==(t=Oi(e.token))?void 0:t.href;(0,C.useEffect)((function(){if(f.current)return p?void fetch(p,{method:"HEAD"}).then((function(e){l(e.headers.get("Content-Type"))})).catch((function(){l(null)})):(o({width:null,height:null}),void l(null))}),[p]);var d=null!==i.width&&null!==i.height?Si("div",{children:[i.width,"x",i.height,null!==c?" "+c:null]}):null;return Si("div",{children:[xi("img",{onLoad:function(){var e,t,n,r;o({width:null!=(t=null==(e=f.current)?void 0:e.naturalWidth)?t:null,height:null!=(r=null==(n=f.current)?void 0:n.naturalHeight)?r:null})},ref:f,src:p}),d]})}function Oi(e){if("string"===e.type){var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(r){return}}}function Ii(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function Di(e){return"object"===typeof e&&"function"===typeof e.then}function Li(e){return new Promise((function(t,n){var r=e.subscribe({next:function(e){t(e),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})}))}function Fi(e){return"object"===typeof e&&"subscribe"in e&&"function"===typeof e.subscribe}function Mi(e){return"object"===typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function Ri(e){return new Promise((function(t,n){var r,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((function(e){t(e.value),null===i||void 0===i||i()})).catch((function(e){n(e)}))}))}function ji(e){return Promise.resolve(e).then((function(e){return Mi(e)?Ri(e):Fi(e)?Li(e):e}))}P(Ai,"ImagePreview"),Ni(Ai,"ImagePreview"),Ai.shouldRender=Ni(P((function(e){var t=Oi(e);return!!t&&Ii(t)}),"shouldRender"),"shouldRender"),P(Oi,"tokenToURL"),Ni(Oi,"tokenToURL"),P(Ii,"isImageURL"),Ni(Ii,"isImageURL"),P(Di,"isPromise"),P(Li,"observableToPromise"),P(Fi,"isObservable"),P(Mi,"isAsyncIterable"),P(Ri,"asyncIterableToPromise"),P(ji,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var Pi=globalThis&&globalThis.__await||function(e){return this instanceof Pi?(this.v=e,this):new Pi(e)};function Vi(e){return JSON.stringify(e,null,2)}function Zi(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function qi(e){return e instanceof Error?Zi(e):e}function Ui(e){return Array.isArray(e)?Vi({errors:e.map((function(e){return qi(e)}))}):Vi({errors:[qi(e)]})}function Bi(e){return Vi(e)}function zi(e,t,n){var r,i=[];if(!e||!t)return{insertions:i,result:t};try{r=(0,m.Qc)(t)}catch(s){return{insertions:i,result:t}}var o=n||Hi,a=new g.a(e);return(0,y.Vn)(r,{leave:function(e){a.leave(e)},enter:function(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){var n=Gi(Xi(a.getType()),o);if(n&&e.loc){var r=Qi(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,b.S)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:i,result:Wi(t,i)}}function Hi(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach((function(e){(0,v.UT)(t[e].type)&&n.push(e)})),n}function Gi(e,t){var n=(0,v.xC)(e);if(e&&!(0,v.UT)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:_.h.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:_.h.FIELD,name:{kind:_.h.NAME,value:e},selectionSet:Gi(i,t)}}))}}}function Wi(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach((function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i})),n+=e.slice(r)}function Qi(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}function Xi(e){if(e)return e}function Ji(e,t){var n,r,i=new Map,o=[],a=(0,l.Z)(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;if("Field"===s.kind){var u=t(s),f=i.get(u);if(null===(n=s.directives)||void 0===n?void 0:n.length){var p=Object.assign({},s);o.push(p)}else if((null===f||void 0===f?void 0:f.selectionSet)&&s.selectionSet)f.selectionSet.selections=[].concat((0,c.Z)(f.selectionSet.selections),(0,c.Z)(s.selectionSet.selections));else if(!f){var d=Object.assign({},s);i.set(u,d),o.push(d)}}else o.push(s)}}catch(h){a.e(h)}finally{a.f()}return o}function Yi(e,t,n){var r,i,o=n?(0,v.xC)(n).name:null,a=[],s=[],u=(0,l.Z)(t);try{for(u.s();!(i=u.n()).done;){var f=i.value;if("FragmentSpread"===f.kind){var p=f.name.value;if(!f.directives||0===f.directives.length){if(s.indexOf(p)>=0)continue;s.push(p)}var d=e[f.name.value];if(d){var h=d.typeCondition,m=d.directives,g=d.selectionSet;f={kind:_.h.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:g}}}if(f.kind===_.h.INLINE_FRAGMENT&&(!f.directives||0===(null===(r=f.directives)||void 0===r?void 0:r.length))){var y=f.typeCondition?f.typeCondition.name.value:null;if(!y||y===o){a.push.apply(a,(0,c.Z)(Yi(e,f.selectionSet.selections,n)));continue}}a.push(f)}}catch(b){u.e(b)}finally{u.f()}return a}function $i(e,t){var n,r=t?new g.a(t):null,i=Object.create(null),o=(0,l.Z)(e.definitions);try{for(o.s();!(n=o.n()).done;){var a=n.value;a.kind===_.h.FRAGMENT_DEFINITION&&(i[a.name.value]=a)}}catch(u){o.e(u)}finally{o.f()}var s={SelectionSet:function(e){var t=r?r.getParentType():null,n=e.selections;return n=Ji(n=Yi(i,n,t),(function(e){return e.alias?e.alias.value:e.name.value})),Object.assign(Object.assign({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,y.Vn)(e,r?(0,g.y)(r,s):s)}function Ki(e,t,n){if(n&&!(n.length<1)){var r=n.map((function(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){var i=e.map((function(e){var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==i&&i<r.length)return r[i]}return r[0]}}function eo(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,P(Vi,"stringify"),P(Zi,"formatSingleError"),P(qi,"handleSingleError"),P(Ui,"formatError"),P(Bi,"formatResult"),P(zi,"fillLeafs"),P(Hi,"defaultGetDefaultFieldNames"),P(Gi,"buildSelectionSet"),P(Wi,"withInsertions"),P(Qi,"getIndentation"),P(Xi,"isFieldType"),P(Ji,"uniqueBy"),P(Yi,"inlineRelevantFragmentSpreads"),P($i,"mergeAst"),P(Ki,"getSelectedOperationName"),P(eo,"isQuotaError");var to=function(){function e(t){(0,i.Z)(this,e),this.storage=t||(null===t?null:"undefined"!==typeof window?window.localStorage:null)}return(0,o.Z)(e,[{key:"get",value:function(e){if(!this.storage)return null;var t="".concat(no,":").concat(e),n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}},{key:"set",value:function(e,t){var n=!1,r=null;if(this.storage){var i="".concat(no,":").concat(e);if(t)try{this.storage.setItem(i,t)}catch(o){r=o instanceof Error?o:new Error("".concat(o)),n=eo(this.storage,o)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}]),e}();P(to,"StorageAPI");var no="graphiql",ro=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,i.Z)(this,e),this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}return(0,o.Z)(e,[{key:"length",get:function(){return this.items.length}},{key:"contains",value:function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}))}},{key:"edit",value:function(e){var t=this.items.findIndex((function(t){return 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())}},{key:"delete",value:function(e){var t=this.items.findIndex((function(t){return 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())}},{key:"fetchRecent",value:function(){return this.items[this.items.length-1]}},{key:"fetchAll",value:function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}},{key:"push",value:function(e){var t=[].concat((0,c.Z)(this.items),[e]);this.maxSize&&t.length>this.maxSize&&t.shift();for(var n=0;n<5;n++){var r=this.storage.set(this.key,JSON.stringify((0,u.Z)({},this.key,t)));if(r&&r.error){if(!r.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}},{key:"save",value:function(){this.storage.set(this.key,JSON.stringify((0,u.Z)({},this.key,this.items)))}}]),e}();P(ro,"QueryStore");var io=function(){function e(t,n){var r=this;(0,i.Z)(this,e),this.storage=t,this.maxHistoryLength=n,this.updateHistory=function(e,t,n,i){if(r.shouldSaveQuery(e,t,n,r.history.fetchRecent())){r.history.push({query:e,variables:t,headers:n,operationName:i});var o=r.history.items,a=r.favorite.items;r.queries=o.concat(a)}},this.history=new ro("queries",this.storage,this.maxHistoryLength),this.favorite=new ro("favorites",this.storage,null),this.queries=[].concat((0,c.Z)(this.history.fetchAll()),(0,c.Z)(this.favorite.fetchAll()))}return(0,o.Z)(e,[{key:"shouldSaveQuery",value:function(e,t,n,r){if(!e)return!1;try{(0,m.Qc)(e)}catch(i){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}},{key:"toggleFavorite",value:function(e,t,n,r,i,o){var 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=[].concat((0,c.Z)(this.history.items),(0,c.Z)(this.favorite.items))}},{key:"editLabel",value:function(e,t,n,r,i,o){var 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=[].concat((0,c.Z)(this.history.items),(0,c.Z)(this.favorite.items))}}]),e}();P(io,"HistoryStore");var oo=Object.defineProperty,ao=P((function(e,t){return oo(e,"name",{value:t,configurable:!0})}),"__name$g");function so(e){var t=(0,C.createContext)(null);return t.displayName=e,t}function uo(e){function t(n){var r,i=(0,C.useContext)(e);if(null===i&&(null==n?void 0:n.nonNull))throw new Error("Tried to use `".concat((null==(r=n.caller)?void 0:r.name)||t.caller.name,"` without the necessary context. Make sure to render the `").concat(e.displayName,"Provider` component higher up the tree."));return i}return P(t,"useGivenContext"),ao(t,"useGivenContext"),Object.defineProperty(t,"name",{value:"use".concat(e.displayName)}),t}P(so,"createNullableContext"),ao(so,"createNullableContext"),P(uo,"createContextHook"),ao(uo,"createContextHook");var co=Object.defineProperty,lo=P((function(e,t){return co(e,"name",{value:t,configurable:!0})}),"__name$f"),fo=so("StorageContext");function po(e){var t=(0,C.useRef)(!0),n=(0,C.useState)(new to(e.storage)),r=(0,a.Z)(n,2),i=r[0],o=r[1];return(0,C.useEffect)((function(){t.current?t.current=!1:o(new to(e.storage))}),[e.storage]),xi(fo.Provider,{value:i,children:e.children})}P(po,"StorageContextProvider"),lo(po,"StorageContextProvider");var ho,vo,mo,go,yo,bo,_o,Eo,ko,To,wo,xo,So,Co,No,Ao,Oo,Io,Do,Lo,Fo,Mo,Ro,jo,Po,Vo,Zo,qo,Uo,Bo,zo,Ho=uo(fo);!function(e){function t(e){return"string"===typeof e}P(t,"is"),e.is=t}(ho||(ho={})),function(e){function t(e){return"string"===typeof e}P(t,"is"),e.is=t}(vo||(vo={})),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,P(t,"is"),e.is=t}(mo||(mo={})),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,P(t,"is"),e.is=t}(go||(go={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=go.MAX_VALUE),t===Number.MAX_VALUE&&(t=go.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return Qa.objectLiteral(t)&&Qa.uinteger(t.line)&&Qa.uinteger(t.character)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(yo||(yo={})),function(e){function t(e,t,n,r){if(Qa.uinteger(e)&&Qa.uinteger(t)&&Qa.uinteger(n)&&Qa.uinteger(r))return{start:yo.create(e,t),end:yo.create(n,r)};if(yo.is(e)&&yo.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 Qa.objectLiteral(t)&&yo.is(t.start)&&yo.is(t.end)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(bo||(bo={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return Qa.defined(t)&&bo.is(t.range)&&(Qa.string(t.uri)||Qa.undefined(t.uri))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(_o||(_o={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return Qa.defined(t)&&bo.is(t.targetRange)&&Qa.string(t.targetUri)&&bo.is(t.targetSelectionRange)&&(bo.is(t.originSelectionRange)||Qa.undefined(t.originSelectionRange))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Eo||(Eo={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return Qa.objectLiteral(t)&&Qa.numberRange(t.red,0,1)&&Qa.numberRange(t.green,0,1)&&Qa.numberRange(t.blue,0,1)&&Qa.numberRange(t.alpha,0,1)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(ko||(ko={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return Qa.objectLiteral(t)&&bo.is(t.range)&&ko.is(t.color)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(To||(To={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return Qa.objectLiteral(t)&&Qa.string(t.label)&&(Qa.undefined(t.textEdit)||Ro.is(t))&&(Qa.undefined(t.additionalTextEdits)||Qa.typedArray(t.additionalTextEdits,Ro.is))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(wo||(wo={})),(So=xo||(xo={})).Comment="comment",So.Imports="imports",So.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return Qa.defined(n)&&(a.startCharacter=n),Qa.defined(r)&&(a.endCharacter=r),Qa.defined(i)&&(a.kind=i),Qa.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return Qa.objectLiteral(t)&&Qa.uinteger(t.startLine)&&Qa.uinteger(t.startLine)&&(Qa.undefined(t.startCharacter)||Qa.uinteger(t.startCharacter))&&(Qa.undefined(t.endCharacter)||Qa.uinteger(t.endCharacter))&&(Qa.undefined(t.kind)||Qa.string(t.kind))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Co||(Co={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return Qa.defined(t)&&_o.is(t.location)&&Qa.string(t.message)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(No||(No={})),(Oo=Ao||(Ao={})).Error=1,Oo.Warning=2,Oo.Information=3,Oo.Hint=4,(Do=Io||(Io={})).Unnecessary=1,Do.Deprecated=2,function(e){function t(e){var t=e;return Qa.objectLiteral(t)&&Qa.string(t.href)}P(t,"is"),e.is=t}(Lo||(Lo={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return Qa.defined(n)&&(a.severity=n),Qa.defined(r)&&(a.code=r),Qa.defined(i)&&(a.source=i),Qa.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return Qa.defined(n)&&bo.is(n.range)&&Qa.string(n.message)&&(Qa.number(n.severity)||Qa.undefined(n.severity))&&(Qa.integer(n.code)||Qa.string(n.code)||Qa.undefined(n.code))&&(Qa.undefined(n.codeDescription)||Qa.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Qa.string(n.source)||Qa.undefined(n.source))&&(Qa.undefined(n.relatedInformation)||Qa.typedArray(n.relatedInformation,No.is))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Fo||(Fo={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return Qa.defined(n)&&n.length>0&&(i.arguments=n),i}function n(e){var t=e;return Qa.defined(t)&&Qa.string(t.title)&&Qa.string(t.command)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Mo||(Mo={})),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 Qa.objectLiteral(t)&&Qa.string(t.newText)&&bo.is(t.range)}P(t,"replace"),e.replace=t,P(n,"insert"),e.insert=n,P(r,"del"),e.del=r,P(i,"is"),e.is=i}(Ro||(Ro={})),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 Qa.objectLiteral(t)&&Qa.string(t.label)&&(Qa.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Qa.string(t.description)||void 0===t.description)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(jo||(jo={})),function(e){function t(e){var t=e;return Qa.string(t)}P(t,"is"),e.is=t}(Po||(Po={})),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 Ro.is(t)&&(jo.is(t.annotationId)||Po.is(t.annotationId))}P(t,"replace"),e.replace=t,P(n,"insert"),e.insert=n,P(r,"del"),e.del=r,P(i,"is"),e.is=i}(Vo||(Vo={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return Qa.defined(t)&&Qo.is(t.textDocument)&&Array.isArray(t.edits)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Zo||(Zo={})),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&&Qa.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Qa.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Qa.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Po.is(t.annotationId))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(qo||(qo={})),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&&Qa.string(t.oldUri)&&Qa.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Qa.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Qa.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Po.is(t.annotationId))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Uo||(Uo={})),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&&Qa.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Qa.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Qa.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Po.is(t.annotationId))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Bo||(Bo={})),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 Qa.string(e.kind)?qo.is(e)||Uo.is(e)||Bo.is(e):Zo.is(e)})))}P(t,"is"),e.is=t}(zo||(zo={}));var Go,Wo,Qo,Xo,Jo,Yo,$o,Ko,ea,ta,na,ra,ia,oa,aa,sa,ua,ca,la,fa,pa,da,ha,va,ma,ga,ya,ba,_a,Ea,ka,Ta,wa,xa,Sa,Ca,Na,Aa,Oa,Ia,Da,La,Fa,Ma,Ra,ja,Pa,Va,Za,qa,Ua,Ba,za,Ha,Ga=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return P(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=Ro.insert(e,t):Po.is(n)?(i=n,r=Vo.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Vo.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=Ro.replace(e,t):Po.is(n)?(i=n,r=Vo.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Vo.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=Ro.del(e):Po.is(t)?(r=t,n=Vo.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=Vo.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}(),Wa=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return P(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(Po.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 Wa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Zo.is(e)){var n=new Ga(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ga(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}P(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(Qo.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 Ga(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 Ga(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Wa,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(jo.is(t)||Po.is(t)?r=t:n=t,void 0===r?i=qo.create(e,n):(o=Po.is(r)?r:this._changeAnnotations.manage(r),i=qo.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(jo.is(n)||Po.is(n)?i=n:r=n,void 0===i?o=Uo.create(e,t,r):(a=Po.is(i)?i:this._changeAnnotations.manage(i),o=Uo.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(jo.is(t)||Po.is(t)?r=t:n=t,void 0===r?i=Bo.create(e,n):(o=Po.is(r)?r:this._changeAnnotations.manage(r),i=Bo.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 Qa.defined(t)&&Qa.string(t.uri)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Go||(Go={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Qa.defined(t)&&Qa.string(t.uri)&&Qa.integer(t.version)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Wo||(Wo={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Qa.defined(t)&&Qa.string(t.uri)&&(null===t.version||Qa.integer(t.version))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Qo||(Qo={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return Qa.defined(t)&&Qa.string(t.uri)&&Qa.string(t.languageId)&&Qa.integer(t.version)&&Qa.string(t.text)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Xo||(Xo={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",P(t,"is"),e.is=t}(Jo||(Jo={})),function(e){function t(e){var t=e;return Qa.objectLiteral(e)&&Jo.is(t.kind)&&Qa.string(t.value)}P(t,"is"),e.is=t}(Yo||(Yo={})),(Ko=$o||($o={})).Text=1,Ko.Method=2,Ko.Function=3,Ko.Constructor=4,Ko.Field=5,Ko.Variable=6,Ko.Class=7,Ko.Interface=8,Ko.Module=9,Ko.Property=10,Ko.Unit=11,Ko.Value=12,Ko.Enum=13,Ko.Keyword=14,Ko.Snippet=15,Ko.Color=16,Ko.File=17,Ko.Reference=18,Ko.Folder=19,Ko.EnumMember=20,Ko.Constant=21,Ko.Struct=22,Ko.Event=23,Ko.Operator=24,Ko.TypeParameter=25,(ta=ea||(ea={})).PlainText=1,ta.Snippet=2,(na||(na={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&Qa.string(t.newText)&&bo.is(t.insert)&&bo.is(t.replace)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(ra||(ra={})),(oa=ia||(ia={})).asIs=1,oa.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(Qa.string(t.detail)||void 0===t.detail)&&(Qa.string(t.description)||void 0===t.description)}P(t,"is"),e.is=t}(aa||(aa={})),function(e){function t(e){return{label:e}}P(t,"create"),e.create=t}(sa||(sa={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}P(t,"create"),e.create=t}(ua||(ua={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return Qa.string(t)||Qa.objectLiteral(t)&&Qa.string(t.language)&&Qa.string(t.value)}P(t,"fromPlainText"),e.fromPlainText=t,P(n,"is"),e.is=n}(ca||(ca={})),function(e){function t(e){var t=e;return!!t&&Qa.objectLiteral(t)&&(Yo.is(t.contents)||ca.is(t.contents)||Qa.typedArray(t.contents,ca.is))&&(void 0===e.range||bo.is(e.range))}P(t,"is"),e.is=t}(la||(la={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}P(t,"create"),e.create=t}(fa||(fa={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return Qa.defined(t)&&(i.documentation=t),Qa.defined(n)?i.parameters=n:i.parameters=[],i}P(t,"create"),e.create=t}(pa||(pa={})),(ha=da||(da={})).Text=1,ha.Read=2,ha.Write=3,function(e){function t(e,t){var n={range:e};return Qa.number(t)&&(n.kind=t),n}P(t,"create"),e.create=t}(va||(va={})),(ga=ma||(ma={})).File=1,ga.Module=2,ga.Namespace=3,ga.Package=4,ga.Class=5,ga.Method=6,ga.Property=7,ga.Field=8,ga.Constructor=9,ga.Enum=10,ga.Interface=11,ga.Function=12,ga.Variable=13,ga.Constant=14,ga.String=15,ga.Number=16,ga.Boolean=17,ga.Array=18,ga.Object=19,ga.Key=20,ga.Null=21,ga.EnumMember=22,ga.Struct=23,ga.Event=24,ga.Operator=25,ga.TypeParameter=26,(ya||(ya={})).Deprecated=1,function(e){function t(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}P(t,"create"),e.create=t}(ba||(ba={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}P(t,"create"),e.create=t}(_a||(_a={})),function(e){function t(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a}function n(e){var t=e;return t&&Qa.string(t.name)&&Qa.number(t.kind)&&bo.is(t.range)&&bo.is(t.selectionRange)&&(void 0===t.detail||Qa.string(t.detail))&&(void 0===t.deprecated||Qa.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Ea||(Ea={})),(Ta=ka||(ka={})).Empty="",Ta.QuickFix="quickfix",Ta.Refactor="refactor",Ta.RefactorExtract="refactor.extract",Ta.RefactorInline="refactor.inline",Ta.RefactorRewrite="refactor.rewrite",Ta.Source="source",Ta.SourceOrganizeImports="source.organizeImports",Ta.SourceFixAll="source.fixAll",(xa=wa||(wa={})).Invoked=1,xa.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r}function n(e){var t=e;return Qa.defined(t)&&Qa.typedArray(t.diagnostics,Fo.is)&&(void 0===t.only||Qa.typedArray(t.only,Qa.string))&&(void 0===t.triggerKind||t.triggerKind===wa.Invoked||t.triggerKind===wa.Automatic)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Sa||(Sa={})),function(e){function t(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):Mo.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&Qa.string(t.title)&&(void 0===t.diagnostics||Qa.typedArray(t.diagnostics,Fo.is))&&(void 0===t.kind||Qa.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Mo.is(t.command))&&(void 0===t.isPreferred||Qa.boolean(t.isPreferred))&&(void 0===t.edit||zo.is(t.edit))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Ca||(Ca={})),function(e){function t(e,t){var n={range:e};return Qa.defined(t)&&(n.data=t),n}function n(e){var t=e;return Qa.defined(t)&&bo.is(t.range)&&(Qa.undefined(t.command)||Mo.is(t.command))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Na||(Na={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return Qa.defined(t)&&Qa.uinteger(t.tabSize)&&Qa.boolean(t.insertSpaces)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Aa||(Aa={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return Qa.defined(t)&&bo.is(t.range)&&(Qa.undefined(t.target)||Qa.string(t.target))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Oa||(Oa={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return Qa.objectLiteral(n)&&bo.is(n.range)&&(void 0===n.parent||e.is(n.parent))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Ia||(Ia={})),(La=Da||(Da={})).namespace="namespace",La.type="type",La.class="class",La.enum="enum",La.interface="interface",La.struct="struct",La.typeParameter="typeParameter",La.parameter="parameter",La.variable="variable",La.property="property",La.enumMember="enumMember",La.event="event",La.function="function",La.method="method",La.macro="macro",La.keyword="keyword",La.modifier="modifier",La.comment="comment",La.string="string",La.number="number",La.regexp="regexp",La.operator="operator",La.decorator="decorator",(Ma=Fa||(Fa={})).declaration="declaration",Ma.definition="definition",Ma.readonly="readonly",Ma.static="static",Ma.deprecated="deprecated",Ma.abstract="abstract",Ma.async="async",Ma.modification="modification",Ma.documentation="documentation",Ma.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return Qa.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])}P(t,"is"),e.is=t}(Ra||(Ra={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return void 0!==t&&null!==t&&bo.is(t.range)&&Qa.string(t.text)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(ja||(ja={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return void 0!==t&&null!==t&&bo.is(t.range)&&Qa.boolean(t.caseSensitiveLookup)&&(Qa.string(t.variableName)||void 0===t.variableName)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Pa||(Pa={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return void 0!==t&&null!==t&&bo.is(t.range)&&(Qa.string(t.expression)||void 0===t.expression)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Va||(Va={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return Qa.defined(t)&&bo.is(e.stoppedLocation)}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Za||(Za={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,P(t,"is"),e.is=t}(qa||(qa={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return Qa.objectLiteral(t)&&(void 0===t.tooltip||Qa.string(t.tooltip)||Yo.is(t.tooltip))&&(void 0===t.location||_o.is(t.location))&&(void 0===t.command||Mo.is(t.command))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Ua||(Ua={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return Qa.objectLiteral(t)&&yo.is(t.position)&&(Qa.string(t.label)||Qa.typedArray(t.label,Ua.is))&&(void 0===t.kind||qa.is(t.kind))&&void 0===t.textEdits||Qa.typedArray(t.textEdits,Ro.is)&&(void 0===t.tooltip||Qa.string(t.tooltip)||Yo.is(t.tooltip))&&(void 0===t.paddingLeft||Qa.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Qa.boolean(t.paddingRight))}P(t,"create"),e.create=t,P(n,"is"),e.is=n}(Ba||(Ba={})),function(e){function t(e){var t=e;return Qa.objectLiteral(t)&&vo.is(t.uri)&&Qa.string(t.name)}P(t,"is"),e.is=t}(za||(za={})),function(e){function t(e,t,n,r){return new Ja(e,t,n,r)}function n(e){var t=e;return!!(Qa.defined(t)&&Qa.string(t.uri)&&(Qa.undefined(t.languageId)||Qa.string(t.languageId))&&Qa.uinteger(t.lineCount)&&Qa.func(t.getText)&&Qa.func(t.positionAt)&&Qa.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=i(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=n.length,a=r.length-1;a>=0;a--){var s=r[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");n=n.substring(0,u)+s.newText+n.substring(c,n.length),o=u}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,u=0;a<r.length&&s<o.length;){var c=t(r[a],o[s]);e[u++]=c<=0?r[a++]:o[s++]}for(;a<r.length;)e[u++]=r[a++];for(;s<o.length;)e[u++]=o[s++];return e}P(t,"create"),e.create=t,P(n,"is"),e.is=n,P(r,"applyEdits"),e.applyEdits=r,P(i,"mergeSort")}(Ha||(Ha={}));var Qa,Xa,Ja=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return P(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&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 yo.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return yo.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<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function Ya(e){return{ofRule:e}}function $a(e,t){return{ofRule:e,isList:!0,separator:t}}function Ka(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every((function(t){return t.match&&!t.match(e)}))},e}function es(e,t){return{style:t,match:function(t){return t.kind===e}}}function ts(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}!function(e){var t=Object.prototype.toString;function n(e){return"undefined"!==typeof e}function r(e){return"undefined"===typeof 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 u(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 l(e){return"[object Function]"===t.call(e)}function f(e){return null!==e&&"object"===typeof e}function p(e,t){return Array.isArray(e)&&e.every(t)}P(n,"defined"),e.defined=n,P(r,"undefined$1"),e.undefined=r,P(i,"boolean"),e.boolean=i,P(o,"string"),e.string=o,P(a,"number"),e.number=a,P(s,"numberRange"),e.numberRange=s,P(u,"integer"),e.integer=u,P(c,"uinteger"),e.uinteger=c,P(l,"func"),e.func=l,P(f,"objectLiteral"),e.objectLiteral=f,P(p,"typedArray"),e.typedArray=p}(Qa||(Qa={})),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}(Xa||(Xa={})),P(Ya,"opt"),P($a,"list"),P(Ka,"butNot"),P(es,"t"),P(ts,"p");var ns=P((function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e}),"isIgnored"),rs={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:/^#.*/},is={Document:[$a("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return _.h.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:[os("query"),Ya(as("def")),Ya("VariableDefinitions"),$a("Directive"),"SelectionSet"],Mutation:[os("mutation"),Ya(as("def")),Ya("VariableDefinitions"),$a("Directive"),"SelectionSet"],Subscription:[os("subscription"),Ya(as("def")),Ya("VariableDefinitions"),$a("Directive"),"SelectionSet"],VariableDefinitions:[ts("("),$a("VariableDefinition"),ts(")")],VariableDefinition:["Variable",ts(":"),"Type",Ya("DefaultValue")],Variable:[ts("$","variable"),as("variable")],DefaultValue:[ts("="),"Value"],SelectionSet:[ts("{"),$a("Selection"),ts("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[as("property"),ts(":"),as("qualifier"),Ya("Arguments"),$a("Directive"),Ya("SelectionSet")],Field:[as("property"),Ya("Arguments"),$a("Directive"),Ya("SelectionSet")],Arguments:[ts("("),$a("Argument"),ts(")")],Argument:[as("attribute"),ts(":"),"Value"],FragmentSpread:[ts("..."),as("def"),$a("Directive")],InlineFragment:[ts("..."),Ya("TypeCondition"),$a("Directive"),"SelectionSet"],FragmentDefinition:[os("fragment"),Ya(Ka(as("def"),[os("on")])),"TypeCondition",$a("Directive"),"SelectionSet"],TypeCondition:[os("on"),"NamedType"],Value:function(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:[es("Number","number")],StringValue:[{style:"string",match:function(e){return"String"===e.kind},update:function(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[es("Name","builtin")],NullValue:[es("Name","keyword")],EnumValue:[as("string-2")],ListValue:[ts("["),$a("Value"),ts("]")],ObjectValue:[ts("{"),$a("ObjectField"),ts("}")],ObjectField:[as("attribute"),ts(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[ts("["),"Type",ts("]"),Ya(ts("!"))],NonNullType:["NamedType",Ya(ts("!"))],NamedType:[ss("atom")],Directive:[ts("@","meta"),as("meta"),Ya("Arguments")],DirectiveDef:[os("directive"),ts("@","meta"),as("meta"),Ya("ArgumentsDef"),os("on"),$a("DirectiveLocation",ts("|"))],InterfaceDef:[os("interface"),as("atom"),Ya("Implements"),$a("Directive"),ts("{"),$a("FieldDef"),ts("}")],Implements:[os("implements"),$a("NamedType",ts("&"))],DirectiveLocation:[as("string-2")],SchemaDef:[os("schema"),$a("Directive"),ts("{"),$a("OperationTypeDef"),ts("}")],OperationTypeDef:[as("keyword"),ts(":"),as("atom")],ScalarDef:[os("scalar"),as("atom"),$a("Directive")],ObjectTypeDef:[os("type"),as("atom"),Ya("Implements"),$a("Directive"),ts("{"),$a("FieldDef"),ts("}")],FieldDef:[as("property"),Ya("ArgumentsDef"),ts(":"),"Type",$a("Directive")],ArgumentsDef:[ts("("),$a("InputValueDef"),ts(")")],InputValueDef:[as("attribute"),ts(":"),"Type",Ya("DefaultValue"),$a("Directive")],UnionDef:[os("union"),as("atom"),$a("Directive"),ts("="),$a("UnionMember",ts("|"))],UnionMember:["NamedType"],EnumDef:[os("enum"),as("atom"),$a("Directive"),ts("{"),$a("EnumValueDef"),ts("}")],EnumValueDef:[as("string-2"),$a("Directive")],InputDef:[os("input"),as("atom"),$a("Directive"),ts("{"),$a("InputValueDef"),ts("}")],ExtendDef:[os("extend"),"ObjectTypeDef"]};function os(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function as(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function ss(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(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)}}}P(os,"word"),P(as,"name"),P(ss,"type");var us=Object.assign(Object.assign({},_.h),{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"}),cs={exports:{}};function ls(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}P(ls,"nullthrows"),cs.exports=ls,cs.exports.default=ls,Object.defineProperty(cs.exports,"__esModule",{value:!0});var fs=q(cs.exports),ps=P((function(e,t){if(!t)return[];var n=new Map,r=new Set;(0,y.Vn)(e,{FragmentDefinition:function(e){n.set(e.name.value,!0)},FragmentSpread:function(e){r.has(e.name.value)||r.add(e.name.value)}});var i=new Set;r.forEach((function(e){!n.has(e)&&t.has(e)&&i.add(fs(t.get(e)))}));var o=[];return i.forEach((function(e){(0,y.Vn)(e,{FragmentSpread:function(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(fs(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e)})),o}),"getFragmentDependenciesForAST");function ds(e,t){var n=Object.create(null);return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind){var r=t.variableDefinitions;r&&r.forEach((function(t){var r=t.variable,i=t.type,o=(0,E._)(e,i);o?n[r.name.value]=o:i.kind===_.h.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=k.av)}))}})),n}function hs(e,t){var n=t?ds(t,e):void 0,r=[];return(0,y.Vn)(e,{OperationDefinition:function(e){r.push(e)}}),{variableToType:n,operations:r}}function vs(e,t){if(t)try{var n=(0,m.Qc)(t);return Object.assign(Object.assign({},hs(n,e)),{documentAST:n})}catch(r){return}}P(ds,"collectVariables"),P(hs,"getOperationASTFacts"),P(vs,"getOperationFacts"),globalThis&&globalThis.__awaiter;var ms=P((function(e){return"object"===typeof e?null===e:"function"!==typeof e}),"isPrimitive"),gs=P((function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}),"isObject");function ys(e){return!0===gs(e)&&"[object Object]"===Object.prototype.toString.call(e)}P(ys,"isObjectObject");var bs=P((function(e){var t,n;return!1!==ys(e)&&("function"===typeof(t=e.constructor)&&(!1!==ys(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}),"isPlainObject"),_s=Reflect.deleteProperty,Es=ms,ks=bs,Ts=P((function(e){return"object"===typeof e&&null!==e||"function"===typeof e}),"isObject"),ws=P((function(e){return"__proto__"===e||"constructor"===e||"prototype"===e}),"isUnsafeKey"),xs=P((function(e){if(!Es(e))throw new TypeError("Object keys must be strings or symbols");if(ws(e))throw new Error('Cannot set unsafe key: "'.concat(e,'"'))}),"validateKey"),Ss=P((function(e){return Array.isArray(e)?e.flat().map(String).join(","):e}),"toStringKey"),Cs=P((function(e,t){if("string"!==typeof e||!t)return e;var n=e+";";return void 0!==t.arrays&&(n+="arrays=".concat(t.arrays,";")),void 0!==t.separator&&(n+="separator=".concat(t.separator,";")),void 0!==t.split&&(n+="split=".concat(t.split,";")),void 0!==t.merge&&(n+="merge=".concat(t.merge,";")),void 0!==t.preservePaths&&(n+="preservePaths=".concat(t.preservePaths,";")),n}),"createMemoKey"),Ns=P((function(e,t,n){var r=Ss(t?Cs(e,t):e);xs(r);var i=Ds.cache.get(r)||n();return Ds.cache.set(r,i),i}),"memoize"),As=P((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"===typeof e&&!1!==r&&/\//.test(e))return[e];for(var i=[],o="",a=P((function(e){var t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)}),"push"),s=0;s<e.length;s++){var u=e[s];"\\"!==u?u!==n?o+=u:(a(o),o=""):o+=e[++s]}return o&&a(o),i}),"splitString"),Os=P((function(e,t){return t&&"function"===typeof t.split?t.split(e):"symbol"===typeof e?[e]:Array.isArray(e)?e:Ns(e,t,(function(){return As(e,t)}))}),"split"),Is=P((function(e,t,n,r){if(xs(t),void 0===n)_s(e,t);else if(r&&r.merge){var i="function"===r.merge?r.merge:Object.assign;i&&ks(e[t])&&ks(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e}),"assignProp"),Ds=P((function(e,t,n,r){if(!t||!Ts(e))return e;for(var i=Os(t,r),o=e,a=0;a<i.length;a++){var s=i[a],u=i[a+1];if(xs(s),void 0===u){Is(o,s,n,r);break}"number"!==typeof u||Array.isArray(o[s])?(Ts(o[s])||(o[s]={}),o=o[s]):o=o[s]=[]}return e}),"setValue");Ds.split=Os,Ds.cache=new Map,Ds.clear=function(){Ds.cache=new Map};var Ls=Ds,Fs=Object.defineProperty,Ms=P((function(e,t){return Fs(e,"name",{value:t,configurable:!0})}),"__name$e"),Rs=so("HistoryContext");function js(e){var t,n=Ho(),r=(0,C.useRef)(new io(n||new to(null),e.maxHistoryLength||Vs)),i=(0,C.useState)((null==(t=r.current)?void 0:t.queries)||[]),o=(0,a.Z)(i,2),s=o[0],u=o[1],c=(0,C.useState)("true"===(null==n?void 0:n.get(Zs))||!1),l=(0,a.Z)(c,2),f=l[0],p=l[1],d=(0,C.useCallback)((function(e){var t,n=e.query,i=e.variables,o=e.headers,a=e.operationName;null==(t=r.current)||t.updateHistory(n,i,o,a),u(r.current.queries)}),[]),h=(0,C.useCallback)((function(e){var t=e.query,n=e.variables,i=e.headers,o=e.operationName,a=e.label,s=e.favorite;r.current.editLabel(t,n,i,o,a,s),u(r.current.queries)}),[]),v=e.onToggle,m=(0,C.useCallback)((function(){null==v||v(!1),null==n||n.set(Zs,JSON.stringify(!1)),p(!1)}),[v,n]),g=(0,C.useCallback)((function(){null==v||v(!0),null==n||n.set(Zs,JSON.stringify(!0)),p(!0)}),[v,n]),y=(0,C.useCallback)((function(){p((function(e){var t=!e;return null==v||v(t),null==n||n.set(Zs,JSON.stringify(t)),t}))}),[v,n]),b=(0,C.useCallback)((function(e){var t=e.query,n=e.variables,i=e.headers,o=e.operationName,a=e.label,s=e.favorite;r.current.toggleFavorite(t,n,i,o,a,s),u(r.current.queries)}),[]),_=(0,C.useMemo)((function(){return{addToHistory:d,editLabel:h,hide:m,isVisible:f,items:s,show:g,toggle:y,toggleFavorite:b}}),[d,h,m,f,s,g,y,b]);return xi(Rs.Provider,{value:_,children:e.children})}P(js,"HistoryContextProvider"),Ms(js,"HistoryContextProvider");var Ps=uo(Rs),Vs=20,Zs="historyPaneOpen",qs=Object.defineProperty,Us=P((function(e,t){return qs(e,"name",{value:t,configurable:!0})}),"__name$d");function Bs(){var e=_c({nonNull:!0,caller:Bs}),t=e.headerEditor,n=e.queryEditor,r=e.variableEditor;return function(e){var i,o,a;null==n||n.setValue(null!=(i=e.query)?i:""),null==r||r.setValue(null!=(o=e.variables)?o:""),null==t||t.setValue(null!=(a=e.headers)?a:"")}}P(Bs,"useSelectHistoryItem"),Us(Bs,"useSelectHistoryItem");var zs=Object.defineProperty,Hs=P((function(e,t){return zs(e,"name",{value:t,configurable:!0})}),"__name$c"),Gs=so("ExecutionContext");function Ws(e){var t=_c({nonNull:!0,caller:Ws}),n=t.externalFragments,i=t.headerEditor,o=t.queryEditor,u=t.responseEditor,p=t.shouldPersistHeaders,d=t.variableEditor,h=t.updateActiveTabValues,v=Ps(),m=Au({caller:Ws}),g=(0,C.useState)(!1),y=(0,a.Z)(g,2),_=y[0],E=y[1],k=(0,C.useState)(null),T=(0,a.Z)(k,2),w=T[0],x=T[1],S=(0,C.useRef)(0),N=(0,C.useCallback)((function(){null==w||w.unsubscribe(),E(!1),x(null)}),[w]),A=e.fetcher,O=(0,C.useCallback)((0,s.Z)((0,r.Z)().mark((function t(){var a,s,g,y,_,k,T,C,O,I,D,L,F,M,j,P,Z,q,U,B,z,H;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o&&u){t.next=2;break}return t.abrupt("return");case 2:if(!w){t.next=5;break}return N(),t.abrupt("return");case 5:y=Hs((function(e){u.setValue(e),h({response:e})}),"setResponse"),S.current+=1,_=S.current,k=m()||o.getValue(),T=null==d?void 0:d.getValue(),t.prev=10,C=Xs({json:T,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."}),t.next=18;break;case 14:return t.prev=14,t.t0=t.catch(10),y(t.t0 instanceof Error?t.t0.message:"".concat(t.t0)),t.abrupt("return");case 18:O=null==i?void 0:i.getValue(),t.prev=19,I=Xs({json:O,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."}),t.next=27;break;case 23:return t.prev=23,t.t1=t.catch(19),y(t.t1 instanceof Error?t.t1.message:"".concat(t.t1)),t.abrupt("return");case 27:return n&&(D=o.documentAST?ps(o.documentAST,n):[]).length>0&&(k+="\n"+D.map((function(e){return(0,b.S)(e)})).join("\n")),y(""),E(!0),L=null!=(s=null!=(a=e.operationName)?a:o.operationName)?s:void 0,null==v||v.addToHistory({query:k,variables:T,headers:O,operationName:L}),t.prev=32,F={data:{}},M=Hs((function(e){if(_===S.current){var t=!!Array.isArray(e)&&e;if(!t&&"object"===typeof e&&null!==e&&"hasNext"in e&&(t=[e]),t){var n={data:F.data},r=[].concat((0,c.Z)((null==F?void 0:F.errors)||[]),(0,c.Z)(t.map((function(e){return e.errors})).flat().filter(Boolean)));r.length&&(n.errors=r);var i,o=(0,l.Z)(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a,u=s.path,f=s.data,p=(s.errors,V(s,["path","data","errors"]));if(u){if(!f)throw new Error("Expected part to contain a data property, but got ".concat(a));Ls(n.data,u,f,{merge:!0})}else f&&(n.data=a.data);F=R(R({},n),p)}}catch(h){o.e(h)}finally{o.f()}E(!1),y(Bi(F))}else{var d=Bi(e);E(!1),y(d)}}}),"handleResponse"),j=A({query:k,variables:C,operationName:L},{headers:null!=I?I:void 0,shouldPersistHeaders:p,documentAST:null!=(g=o.documentAST)?g:void 0}),t.next=38,Promise.resolve(j);case 38:if(!Fi(P=t.sent)){t.next=43;break}x(P.subscribe({next:function(e){M(e)},error:function(e){E(!1),e&&y(Ui(e)),x(null)},complete:function(){E(!1),x(null)}})),t.next=86;break;case 43:if(!Mi(P)){t.next=85;break}x({unsubscribe:function(){var e,t;return null==(t=(e=P[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),t.prev=45,Z=!1,q=!1,t.prev=48,B=f(P);case 50:return t.next=52,B.next();case 52:if(!(Z=!(z=t.sent).done)){t.next=58;break}H=z.value,M(H);case 55:Z=!1,t.next=50;break;case 58:t.next=64;break;case 60:t.prev=60,t.t2=t.catch(48),q=!0,U=t.t2;case 64:if(t.prev=64,t.prev=65,!Z||null==B.return){t.next=69;break}return t.next=69,B.return();case 69:if(t.prev=69,!q){t.next=72;break}throw U;case 72:return t.finish(69);case 73:return t.finish(64);case 74:E(!1),x(null),t.next=83;break;case 78:t.prev=78,t.t3=t.catch(45),E(!1),y(Ui(t.t3)),x(null);case 83:t.next=86;break;case 85:M(P);case 86:t.next=93;break;case 88:t.prev=88,t.t4=t.catch(32),E(!1),y(Ui(t.t4)),x(null);case 93:case"end":return t.stop()}}),t,null,[[10,14],[19,23],[32,88],[45,78],[48,60,64,74],[65,,69,73]])}))),[m,n,A,i,v,e.operationName,o,u,p,N,w,h,d]),I=(0,C.useMemo)((function(){var t;return{isFetching:_,operationName:null!=(t=e.operationName)?t:null,run:O,stop:N}}),[_,e.operationName,O,N]);return xi(Gs.Provider,{value:I,children:e.children})}P(Ws,"ExecutionContextProvider"),Hs(Ws,"ExecutionContextProvider");var Qs=uo(Gs);function Xs(e){var t=e.json,n=e.errorMessageParse,r=e.errorMessageType,i=void 0;try{i=t&&""!==t.trim()?JSON.parse(t):void 0}catch(a){throw new Error("".concat(n,": ").concat(a instanceof Error?a.message:a,"."))}var o="object"===typeof i&&null!==i&&!Array.isArray(i);if(void 0!==i&&!o)throw new Error(r);return i}P(Xs,"tryParseJsonObject"),Hs(Xs,"tryParseJsonObject");var Js=P((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),"toggleSelection"),Ys=Js,$s={"text/plain":"Text","text/html":"Url",default:"Text"};function Ks(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function eu(e,t){var n,r,i,o,a,s,u=!1;t||(t={}),n=t.debug||!1;try{if(i=Ys(),o=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=$s[t.format]||$s.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(l){n&&console.error("unable to copy using clipboardData: ",l),n&&console.error("falling back to prompt"),r=Ks("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return u}P(Ks,"format"),P(eu,"copy");var tu=eu,nu=Object.defineProperty,ru=P((function(e,t){return nu(e,"name",{value:t,configurable:!0})}),"__name$b"),iu=so("SchemaContext");function ou(e){var t=_c({nonNull:!0,caller:ou}),n=t.initialHeaders,i=t.headerEditor,o=(0,C.useState)(),u=(0,a.Z)(o,2),c=u[0],l=u[1],f=(0,C.useState)(!1),p=(0,a.Z)(f,2),d=p[0],h=p[1],v=(0,C.useState)(null),m=(0,a.Z)(v,2),g=m[0],y=m[1],b=(0,C.useRef)(0);(0,C.useEffect)((function(){l((0,T.nN)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),b.current++}),[e.schema]);var _=(0,C.useRef)(n);(0,C.useEffect)((function(){i&&(_.current=i.getValue())}));var E=su({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),k=E.introspectionQuery,S=E.introspectionQueryName,N=E.introspectionQuerySansSubscriptions,A=e.fetcher,O=e.onSchemaChange,I=(0,C.useCallback)((function(){if(!(0,T.nN)(e.schema)&&null!==e.schema){var t=++b.current;l(void 0);var n=e.schema;P(i,"fetchIntrospectionData"),ru(i,"fetchIntrospectionData"),i().then((function(e){if(t===b.current&&e)try{var n=(0,w.Z)(e);l(n),null==O||O(n)}catch(r){y(Ui(r))}})).catch((function(e){t===b.current&&(y(Ui(e)),h(!1))}))}function i(){return o.apply(this,arguments)}function o(){return(o=(0,s.Z)((0,r.Z)().mark((function e(){var t,i,o,a,s,u;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=2;break}return e.abrupt("return",n);case 2:if((t=uu(_.current)).isValidJSON){e.next=6;break}return y("Introspection failed as headers are invalid."),e.abrupt("return");case 6:if(i=t.headers?{headers:t.headers}:{},Di(o=ji(A({query:k,operationName:S},i)))){e.next=11;break}return y("Fetcher did not return a Promise for introspection."),e.abrupt("return");case 11:return h(!0),e.next=14,o;case 14:if("object"===typeof(a=e.sent)&&null!==a&&"data"in a){e.next=22;break}if(Di(s=ji(A({query:N,operationName:S},i)))){e.next=19;break}throw new Error("Fetcher did not return a Promise for introspection.");case 19:return e.next=21,s;case 21:a=e.sent;case 22:if(h(!1),!(null==a?void 0:a.data)||!("__schema"in a.data)){e.next=25;break}return e.abrupt("return",a.data);case 25:u="string"===typeof a?a:Bi(a),y(u);case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}),[A,S,k,N,O,e.schema]);(0,C.useEffect)((function(){I()}),[I]),(0,C.useEffect)((function(){function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&I()}return P(e,"triggerIntrospection"),ru(e,"triggerIntrospection"),window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}));var D=(0,C.useMemo)((function(){return!c||e.dangerouslyAssumeSchemaIsValid?[]:(0,x.F)(c)}),[c,e.dangerouslyAssumeSchemaIsValid]),L=(0,C.useMemo)((function(){return{fetchError:g,introspect:I,isFetching:d,schema:c,validationErrors:D}}),[g,I,d,c,D]);return xi(iu.Provider,{value:L,children:e.children})}P(ou,"SchemaContextProvider"),ru(ou,"SchemaContextProvider");var au=uo(iu);function su(e){var t=e.inputValueDeprecation,n=e.introspectionQueryName,r=e.schemaDescription;return(0,C.useMemo)((function(){var e=n||"IntrospectionQuery",i=(0,S.K)({inputValueDeprecation:t,schemaDescription:r});n&&(i=i.replace("query IntrospectionQuery","query ".concat(e)));var o=i.replace("subscriptionType { name }","");return{introspectionQueryName:e,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}),[t,n,r])}function uu(e){var t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(r){n=!1}return{headers:t,isValidJSON:n}}P(su,"useIntrospectionQuery"),ru(su,"useIntrospectionQuery"),P(uu,"parseHeaderString"),ru(uu,"parseHeaderString");var cu=Object.defineProperty,lu=P((function(e,t){return cu(e,"name",{value:t,configurable:!0})}),"__name$a"),fu={name:"Schema",title:"Documentation Explorer"},pu=so("ExplorerContext");function du(e){var t,n,r=au({nonNull:!0,caller:du}).isFetching,i=Ho(),o=(0,C.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==i?void 0:i.get(vu)))&&n),s=(0,a.Z)(o,2),u=s[0],l=s[1],f=(0,C.useState)([fu]),p=(0,a.Z)(f,2),d=p[0],h=p[1],v=e.onToggleVisibility,m=(0,C.useRef)(!0);(0,C.useEffect)((function(){m.current?m.current=!1:void 0!==e.isVisible&&l(e.isVisible)}),[e.isVisible]);var g=(0,C.useCallback)((function(){null==v||v(!1),null==i||i.set(vu,"false"),l(!1)}),[v,i]),y=(0,C.useCallback)((function(e){h((function(t){return t[t.length-1].def===e.def?t:[].concat((0,c.Z)(t),[e])}))}),[]),b=(0,C.useCallback)((function(){h((function(e){return e.length>1?e.slice(0,-1):e}))}),[]),_=(0,C.useCallback)((function(){h((function(e){return 1===e.length?e:[fu]}))}),[]),E=(0,C.useCallback)((function(){null==v||v(!0),null==i||i.set(vu,"true"),l(!0)}),[v,i]),k=(0,C.useCallback)((function(e){h((function(t){var n=t[t.length-1],r=t.slice(0,-1);return[].concat((0,c.Z)(r),[j(R({},n),{search:e})])}))}),[]);(0,C.useEffect)((function(){r&&_()}),[r,_]);var T=(0,C.useMemo)((function(){return{explorerNavStack:d,hide:g,isVisible:u,push:y,pop:b,reset:_,show:E,showSearch:k}}),[g,u,d,y,b,_,E,k]);return xi(pu.Provider,{value:T,children:e.children})}P(du,"ExplorerContextProvider"),lu(du,"ExplorerContextProvider");var hu=uo(pu),vu="docExplorerOpen",mu=Object.defineProperty,gu=P((function(e,t){return mu(e,"name",{value:t,configurable:!0})}),"__name$9");function yu(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=null,t.apply(void 0,i)}),e)}}P(yu,"debounce"),gu(yu,"debounce");var bu=Object.defineProperty,_u=P((function(e,t){return bu(e,"name",{value:t,configurable:!0})}),"__name$8");function Eu(e,t){(0,C.useEffect)((function(){e&&"string"===typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function ku(e,t,n){(0,C.useEffect)((function(){e&&e.setOption(t,n)}),[e,t,n])}function Tu(e,t,n,r,i){var o=_c({nonNull:!0,caller:i}).updateActiveTabValues,a=Ho();(0,C.useEffect)((function(){if(e){var i=yu(500,(function(e){a&&null!==n&&a.set(n,e)})),s=yu(100,(function(e){o((0,u.Z)({},r,e))})),c=_u((function(e,n){if(n){var r=e.getValue();i(r),s(r),null==t||t(r)}}),"handleChange");return e.on("change",c),function(){return e.off("change",c)}}}),[t,e,a,n,r,o])}function wu(e,t){var n=au({nonNull:!0,caller:t}).schema,r=hu();(0,C.useEffect)((function(){if(e){var t=_u((function(e,t){pi(0,t,n,r)}),"handleCompletion");return e.on("hasCompletion",t),function(){return e.off("hasCompletion",t)}}}),[e,r,n])}function xu(e,t,n){(0,C.useEffect)((function(){if(e){var r,i=(0,l.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.removeKeyMap(o)}}catch(c){i.e(c)}finally{i.f()}if(n){var a,s={},u=(0,l.Z)(t);try{for(u.s();!(a=u.n()).done;){s[a.value]=function(){return n()}}}catch(c){u.e(c)}finally{u.f()}e.addKeyMap(s)}}}),[e,t,n])}function Su(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=e.onCopyQuery,r=_c({nonNull:!0,caller:t||Su}).queryEditor;return(0,C.useCallback)((function(){if(r){var e=r.getValue();tu(e),null==n||n(e)}}),[r,n])}function Cu(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).caller,t=_c({nonNull:!0,caller:e||Cu}).queryEditor,n=au({nonNull:!0,caller:Cu}).schema;return(0,C.useCallback)((function(){var e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();e&&r&&t.setValue((0,b.S)($i(e,n)))}),[t,n])}function Nu(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).caller,t=_c({nonNull:!0,caller:e||Nu}),n=t.queryEditor,r=t.headerEditor,i=t.variableEditor;return(0,C.useCallback)((function(){if(i){var e=i.getValue();try{var t=JSON.stringify(JSON.parse(e),null,2);t!==e&&i.setValue(t)}catch(c){}}if(r){var o=r.getValue();try{var a=JSON.stringify(JSON.parse(o),null,2);a!==o&&r.setValue(a)}catch(l){}}if(n){var s=n.getValue(),u=(0,b.S)((0,m.Qc)(s));u!==s&&n.setValue(u)}}),[n,i,r])}function Au(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getDefaultFieldNames,n=e.caller,r=au({nonNull:!0,caller:n||Au}).schema,i=_c({nonNull:!0,caller:n||Au}).queryEditor;return(0,C.useCallback)((function(){if(i){var e=i.getValue(),n=zi(r,e,t),o=n.insertions,a=n.result;return o&&o.length>0&&i.operation((function(){var e=i.getCursor(),t=i.indexFromPos(e);i.setValue(a||"");var n=0,r=o.map((function(e){var t=e.index,r=e.string;return i.markText(i.posFromIndex(t+n),i.posFromIndex(t+(n+=r.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return r.forEach((function(e){return e.clear()}))}),7e3);var s=t;o.forEach((function(e){var n=e.index,r=e.string;n<t&&(s+=r.length)})),i.setCursor(i.posFromIndex(s))})),a}}),[t,i,r])}P(Eu,"useSynchronizeValue"),_u(Eu,"useSynchronizeValue"),P(ku,"useSynchronizeOption"),_u(ku,"useSynchronizeOption"),P(Tu,"useChangeHandler"),_u(Tu,"useChangeHandler"),P(wu,"useCompletion"),_u(wu,"useCompletion"),P(xu,"useKeyMap"),_u(xu,"useKeyMap"),P(Su,"useCopyQuery"),_u(Su,"useCopyQuery"),P(Cu,"useMergeQuery"),_u(Cu,"useMergeQuery"),P(Nu,"usePrettifyEditors"),_u(Nu,"usePrettifyEditors"),P(Au,"useAutoCompleteLeafs"),_u(Au,"useAutoCompleteLeafs");var Ou=Object.defineProperty,Iu=P((function(e,t){return Ou(e,"name",{value:t,configurable:!0})}),"__name$7");function Du(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?ii:t,i=e.keyMap,o=void 0===i?oi:i,a=e.onEdit,s=e.readOnly,u=void 0!==s&&s,c=_c({nonNull:!0,caller:Du}),l=c.initialHeaders,f=c.headerEditor,p=c.setHeaderEditor,d=c.shouldPersistHeaders,h=Qs(),v=Cu({caller:Du}),m=Nu({caller:Du}),g=(0,C.useRef)(null);return(0,C.useEffect)((function(){var e=!0;return ui([Promise.all([n.e(8262),n.e(2720)]).then(n.bind(n,42720)).then((function(e){return e.j}))]).then((function(t){if(e){var n=g.current;if(n){var i=t(n,{value:l,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!u&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:si});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!1,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!1,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!1,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!1,container:n})}}),i.on("keyup",(function(e,t){var n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),p(i)}}})),function(){e=!1}}),[r,l,u,p]),ku(f,"keyMap",o),Tu(f,a,d?Lu:null,"headers",Du),wu(f,Du),xu(f,["Cmd-Enter","Ctrl-Enter"],null==h?void 0:h.run),xu(f,["Shift-Ctrl-P"],m),xu(f,["Shift-Ctrl-M"],v),g}P(Du,"useHeaderEditor"),Iu(Du,"useHeaderEditor");var Lu="headers",Fu=Object.defineProperty,Mu=P((function(e,t){return Fu(e,"name",{value:t,configurable:!0})}),"__name$6"),Ru=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029","\u202f","\xa0"]),ju=new RegExp("["+Ru.join("")+"]","g");function Pu(e){return e.replace(ju," ")}P(Pu,"normalizeWhitespace"),Mu(Pu,"normalizeWhitespace");var Vu=Object.defineProperty,Zu=P((function(e,t){return Vu(e,"name",{value:t,configurable:!0})}),"__name$5");function qu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?ii:t,i=e.keyMap,o=void 0===i?oi:i,a=e.onClickReference,s=e.onCopyQuery,u=e.onEdit,c=e.readOnly,f=void 0!==c&&c,p=au({nonNull:!0,caller:qu}).schema,d=_c({nonNull:!0,caller:qu}),h=d.externalFragments,v=d.initialQuery,m=d.queryEditor,g=d.setOperationName,y=d.setQueryEditor,b=d.validationRules,_=d.variableEditor,E=d.updateActiveTabValues,k=Qs(),T=Ho(),w=hu(),x=Su({caller:qu,onCopyQuery:s}),S=Cu({caller:qu}),N=Nu({caller:qu}),A=(0,C.useRef)(null),O=(0,C.useRef)(),I=(0,C.useRef)((function(){}));(0,C.useEffect)((function(){I.current=function(e){w&&(w.show(),e&&"Type"===e.kind?w.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?w.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&w.push({name:e.type.name,def:e.type}),null==a||a(e))}}),[w,a]),(0,C.useEffect)((function(){var e=!0;return ui([Promise.all([n.e(8262),n.e(8606)]).then(n.bind(n,68606)).then((function(e){return e.c})),Promise.all([n.e(8262),n.e(6602)]).then(n.bind(n,46602)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(3633),n.e(3111),n.e(4274)]).then(n.bind(n,34274)),Promise.all([n.e(8262),n.e(6780)]).then(n.bind(n,66780)),Promise.all([n.e(8262),n.e(3633),n.e(744)]).then(n.bind(n,40744)),Promise.all([n.e(8262),n.e(3633),n.e(2828)]).then(n.bind(n,2828)),Promise.all([n.e(8262),n.e(3476)]).then(n.bind(n,3476))]).then((function(t){if(e){O.current=t;var n=A.current;if(n){var i=t(n,{value:v,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!f&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0},info:{schema:void 0,renderDescription:function(e){return ti.render(e)},onClick:function(e){I.current(e)}},jump:{schema:void 0,onClick:function(e){I.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:j(R({},si),{"Cmd-S":function(){},"Ctrl-S":function(){}})});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!0,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!0,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!0,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!0,container:n})},"Shift-Alt-Space":function(){i.showHint({completeSingle:!0,container:n})}}),i.on("keyup",(function(e,t){Hu.test(t.key)&&e.execCommand("autocomplete")})),i.on("beforeChange",(function(e,t){var n;if("paste"===t.origin){var r=t.text.map(Pu);null==(n=t.update)||n.call(t,t.from,t.to,r)}})),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,y(i)}}})),function(){e=!1}}),[r,v,f,y]),ku(m,"keyMap",o),(0,C.useEffect)((function(){if(m){P(t,"getAndUpdateOperationFacts"),Zu(t,"getAndUpdateOperationFacts");var e=yu(100,(function(e){var n,r=e.getValue();null==T||T.set(Gu,r);var i=e.operationName,o=t(e);void 0!==(null==o?void 0:o.operationName)&&(null==T||T.set(Wu,o.operationName)),null==u||u(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&g(o.operationName),E({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})}));return t(m),m.on("change",e),function(){return m.off("change",e)}}function t(e){var t,n,r,i,o,a=vs(p,e.getValue()),s=Ki(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!=s?s:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,_&&(_.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,_.options.lint.variableToType=null==a?void 0:a.variableToType,_.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=O.current)||o.signal(_,"change",_)),a?j(R({},a),{operationName:s}):null}}),[u,m,p,g,T,_,E]),Uu(m,null!=p?p:null,O),Bu(m,null!=b?b:null,O),zu(m,h,O),wu(m,qu);var D=null==k?void 0:k.run,L=(0,C.useCallback)((function(){var e;if(D&&m&&m.operations&&m.hasFocus()){var t,n,r=m.indexFromPos(m.getCursor()),i=(0,l.Z)(m.operations);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.loc&&o.loc.start<=r&&o.loc.end>=r&&(t=null==(e=o.name)?void 0:e.value)}}catch(a){i.e(a)}finally{i.f()}t&&t!==m.operationName&&g(t),D()}else null==D||D()}),[m,D,g]);return xu(m,["Cmd-Enter","Ctrl-Enter"],L),xu(m,["Shift-Ctrl-C"],x),xu(m,["Shift-Ctrl-P","Shift-Ctrl-F"],N),xu(m,["Shift-Ctrl-M"],S),A}function Uu(e,t,n){(0,C.useEffect)((function(){if(e){var 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 Bu(e,t,n){(0,C.useEffect)((function(){if(e){var 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 zu(e,t,n){var r=(0,C.useMemo)((function(){return(0,c.Z)(t.values())}),[t]);(0,C.useEffect)((function(){if(e){var 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])}P(qu,"useQueryEditor"),Zu(qu,"useQueryEditor"),P(Uu,"useSynchronizeSchema"),Zu(Uu,"useSynchronizeSchema"),P(Bu,"useSynchronizeValidationRules"),Zu(Bu,"useSynchronizeValidationRules"),P(zu,"useSynchronizeExternalFragments"),Zu(zu,"useSynchronizeExternalFragments");var Hu=/^[a-zA-Z0-9_@(]$/,Gu="query",Wu="operationName",Qu=Object.defineProperty,Xu=P((function(e,t){return Qu(e,"name",{value:t,configurable:!0})}),"__name$4");function Ju(e){var t=e.headers,n=e.query,r=e.variables,i=e.storage,o=null==i?void 0:i.get(fc);try{if(!o)throw new Error("Storage for tabs is empty");var a=JSON.parse(o);if(Yu(a)){for(var s=uc({query:n,variables:r,headers:t}),u=-1,c=0;c<a.tabs.length;c++){var l=a.tabs[c];l.hash=uc({query:l.query,variables:l.variables,headers:l.headers}),l.hash===s&&(u=c)}if(u>=0)a.activeTabIndex=u;else{var f=n?cc(n):null;a.tabs.push({id:sc(),hash:s,title:f||lc,query:n,variables:r,headers:t,operationName:f,response:null})}return a}throw new Error("Storage for tabs is invalid")}catch(p){return null==i||i.set(fc,""),{activeTabIndex:0,tabs:[oc()]}}}function Yu(e){return e&&"object"===typeof e&&!Array.isArray(e)&&Ku(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every($u)}function $u(e){return e&&"object"===typeof e&&!Array.isArray(e)&&ec(e,"id")&&ec(e,"title")&&tc(e,"query")&&tc(e,"variables")&&tc(e,"headers")&&tc(e,"operationName")&&tc(e,"response")}function Ku(e,t){return t in e&&"number"===typeof e[t]}function ec(e,t){return t in e&&"string"===typeof e[t]}function tc(e,t){return t in e&&("string"===typeof e[t]||null===e[t])}function nc(e){var t=e.queryEditor,n=e.variableEditor,r=e.headerEditor,i=e.responseEditor;return(0,C.useCallback)((function(e){var o,a,s,u,c,l=null!=(o=null==t?void 0:t.getValue())?o:null,f=null!=(a=null==n?void 0:n.getValue())?a:null,p=null!=(s=null==r?void 0:r.getValue())?s:null,d=null!=(u=null==t?void 0:t.operationName)?u:null;return ac(e,{query:l,variables:f,headers:p,response:null!=(c=null==i?void 0:i.getValue())?c:null,operationName:d})}),[t,n,r,i])}function rc(e){var t=e.storage,n=e.shouldPersistHeaders,r=(0,C.useMemo)((function(){return yu(500,(function(e){null==t||t.set(fc,e)}))}),[t]);return(0,C.useCallback)((function(e){r(JSON.stringify(e,(function(e,t){return"hash"===e||"response"===e||!n&&"headers"===e?null:t})))}),[n,r])}function ic(e){var t=e.queryEditor,n=e.variableEditor,r=e.headerEditor,i=e.responseEditor;return(0,C.useCallback)((function(e){var o=e.query,a=e.variables,s=e.headers,u=e.response;null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=s?s:""),null==i||i.setValue(null!=u?u:"")}),[r,t,i,n])}function oc(){return{id:sc(),hash:uc({query:null,variables:null,headers:null}),title:lc,query:null,variables:null,headers:null,operationName:null,response:null}}function ac(e,t){return j(R({},e),{tabs:e.tabs.map((function(n,r){if(r!==e.activeTabIndex)return n;var i=R(R({},n),t);return j(R({},i),{hash:uc(i),title:i.operationName||(i.query?cc(i.query):void 0)||lc})}))})}function sc(){var e=Xu((function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}),"s4");return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function uc(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function cc(e){var t,n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}P(Ju,"getDefaultTabState"),Xu(Ju,"getDefaultTabState"),P(Yu,"isTabsState"),Xu(Yu,"isTabsState"),P($u,"isTabState"),Xu($u,"isTabState"),P(Ku,"hasNumberKey"),Xu(Ku,"hasNumberKey"),P(ec,"hasStringKey"),Xu(ec,"hasStringKey"),P(tc,"hasStringOrNullKey"),Xu(tc,"hasStringOrNullKey"),P(nc,"useSynchronizeActiveTabValues"),Xu(nc,"useSynchronizeActiveTabValues"),P(rc,"useStoreTabs"),Xu(rc,"useStoreTabs"),P(ic,"useSetEditorValues"),Xu(ic,"useSetEditorValues"),P(oc,"emptyTab"),Xu(oc,"emptyTab"),P(ac,"setPropertiesInActiveTab"),Xu(ac,"setPropertiesInActiveTab"),P(sc,"guid"),Xu(sc,"guid"),P(uc,"hashFromTabContents"),Xu(uc,"hashFromTabContents"),P(cc,"fuzzyExtractOperationName"),Xu(cc,"fuzzyExtractOperationName");var lc="<untitled>",fc="tabState",pc=Object.defineProperty,dc=P((function(e,t){return pc(e,"name",{value:t,configurable:!0})}),"__name$3");function hc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?ii:t,i=e.keyMap,o=void 0===i?oi:i,a=e.onEdit,s=e.readOnly,u=void 0!==s&&s,c=_c({nonNull:!0,caller:hc}),l=c.initialVariables,f=c.variableEditor,p=c.setVariableEditor,d=Qs(),h=Cu({caller:hc}),v=Nu({caller:hc}),m=(0,C.useRef)(null),g=(0,C.useRef)();return(0,C.useEffect)((function(){var e=!0;return ui([Promise.all([n.e(8262),n.e(1826)]).then(n.bind(n,51826)),Promise.all([n.e(8262),n.e(2129)]).then(n.bind(n,2129)),Promise.all([n.e(8262),n.e(556)]).then(n.bind(n,90556))]).then((function(t){if(e){g.current=t;var n=m.current;if(n){var i=t(n,{value:l,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!u&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:si});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!1,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!1,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!1,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!1,container:n})}}),i.on("keyup",(function(e,t){var n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),p(i)}}})),function(){e=!1}}),[r,l,u,p]),ku(f,"keyMap",o),Tu(f,a,vc,"variables",hc),wu(f,hc),xu(f,["Cmd-Enter","Ctrl-Enter"],null==d?void 0:d.run),xu(f,["Shift-Ctrl-P"],v),xu(f,["Shift-Ctrl-M"],h),m}P(hc,"useVariableEditor"),dc(hc,"useVariableEditor");var vc="variables",mc=Object.defineProperty,gc=P((function(e,t){return mc(e,"name",{value:t,configurable:!0})}),"__name$2"),yc=so("EditorContext");function bc(e){var t,n,r,i,o,s=Ho(),u=(0,C.useState)(null),f=(0,a.Z)(u,2),p=f[0],d=f[1],h=(0,C.useState)(null),v=(0,a.Z)(h,2),g=v[0],b=v[1],_=(0,C.useState)(null),E=(0,a.Z)(_,2),k=E[0],T=E[1],w=(0,C.useState)(null),x=(0,a.Z)(w,2),S=x[0],N=x[1];Eu(p,e.headers),Eu(g,e.query),Eu(k,e.response),Eu(S,e.variables);var A=(0,C.useState)((function(){var t,n,r,i,o,a;return{headers:null!=(n=null!=(t=e.headers)?t:null==s?void 0:s.get(Lu))?n:null,query:null!=(i=null!=(r=e.query)?r:null==s?void 0:s.get(Gu))?i:null,variables:null!=(a=null!=(o=e.variables)?o:null==s?void 0:s.get(vc))?a:null}})),O=(0,a.Z)(A,1)[0],I=(0,C.useState)((function(){return Ju(j(R({},O),{storage:s}))})),D=(0,a.Z)(I,2),L=D[0],F=D[1],M=rc({storage:s,shouldPersistHeaders:e.shouldPersistHeaders}),P=nc({queryEditor:g,variableEditor:S,headerEditor:p,responseEditor:k}),V=ic({queryEditor:g,variableEditor:S,headerEditor:p,responseEditor:k}),Z=e.onTabChange,q=(0,C.useCallback)((function(){F((function(e){var t=P(e),n={tabs:[].concat((0,c.Z)(t.tabs),[oc()]),activeTabIndex:t.tabs.length};return M(n),V(n.tabs[n.activeTabIndex]),null==Z||Z(n),n}))}),[Z,V,M,P]),U=(0,C.useCallback)((function(e){F((function(t){var n=j(R({},P(t)),{activeTabIndex:e});return M(n),V(n.tabs[n.activeTabIndex]),null==Z||Z(n),n}))}),[Z,V,M,P]),B=(0,C.useCallback)((function(e){F((function(t){var n={tabs:t.tabs.filter((function(t,n){return e!==n})),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return M(n),V(n.tabs[n.activeTabIndex]),null==Z||Z(n),n}))}),[Z,V,M]),z=(0,C.useCallback)((function(e){F((function(t){var n=ac(t,e);return M(n),null==Z||Z(n),n}))}),[Z,M]),H=e.onEditOperationName,G=(0,C.useCallback)((function(e){g&&(g.operationName=e,z({operationName:e}),null==H||H(e))}),[H,g,z]),W=L.activeTabIndex>0?"":null!=(t=e.defaultQuery)?t:Ec,Q=(0,C.useRef)({initialHeaders:null!=(n=O.headers)?n:"",initialQuery:null!=(r=O.query)?r:W,initialResponse:null!=(i=e.response)?i:"",initialVariables:null!=(o=O.variables)?o:""}),X=(0,C.useMemo)((function(){var t=new Map;if(Array.isArray(e.externalFragments)){var n,r=(0,l.Z)(e.externalFragments);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.set(i.name.value,i)}}catch(o){r.e(o)}finally{r.f()}}else if("string"===typeof e.externalFragments)(0,y.Vn)((0,m.Qc)(e.externalFragments,{}),{FragmentDefinition:function(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]),J=(0,C.useMemo)((function(){return e.validationRules||[]}),[e.validationRules]),Y=(0,C.useMemo)((function(){return j(R(j(R({},L),{addTab:q,changeTab:U,closeTab:B,updateActiveTabValues:z,headerEditor:p,queryEditor:g,responseEditor:k,variableEditor:S,setHeaderEditor:d,setQueryEditor:b,setResponseEditor:T,setVariableEditor:N,setOperationName:G}),Q.current),{externalFragments:X,validationRules:J,shouldPersistHeaders:e.shouldPersistHeaders||!1})}),[L,q,U,B,z,p,g,k,S,G,X,J,e.shouldPersistHeaders]);return xi(yc.Provider,{value:Y,children:e.children})}P(bc,"EditorContextProvider"),gc(bc,"EditorContextProvider");var _c=uo(yc),Ec='# 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',kc=Object.defineProperty,Tc=P((function(e,t){return kc(e,"name",{value:t,configurable:!0})}),"__name$1");function wc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResponseTooltip,r=e.editorTheme,i=void 0===r?ii:r,o=e.keyMap,a=void 0===o?oi:o,s=au({nonNull:!0,caller:wc}),u=s.fetchError,c=s.validationErrors,l=_c({nonNull:!0,caller:wc}),f=l.initialResponse,p=l.responseEditor,d=l.setResponseEditor,h=(0,C.useRef)(null),v=(0,C.useRef)(t);return(0,C.useEffect)((function(){v.current=t}),[t]),(0,C.useEffect)((function(){var e=!0;return ui([Promise.all([n.e(8262),n.e(4074)]).then(n.bind(n,44074)).then((function(e){return e.f})),Promise.all([n.e(8262),n.e(4349)]).then(n.bind(n,24349)).then((function(e){return e.b})),Promise.all([n.e(8262),n.e(6830)]).then(n.bind(n,36830)).then((function(e){return e.d})),Promise.all([n.e(8262),n.e(6602)]).then(n.bind(n,46602)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(3829)]).then(n.bind(n,33829)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(4590)]).then(n.bind(n,44590)).then((function(e){return e.j})),Promise.all([n.e(8262),n.e(1361)]).then(n.bind(n,61361)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(8249)]).then(n.bind(n,88249)),Promise.all([n.e(8262),n.e(3732)]).then(n.bind(n,53732))],{useCommonAddons:!1}).then((function(t){if(e){var n=document.createElement("div");t.registerHelper("info","graphql-results",(function(e,t,r,i){var o=[],a=v.current;return a&&o.push(xi(a,{pos:i})),Ai.shouldRender(e)&&o.push(xi(Ai,{token:e},"image-preview")),o.length?(N.render(o,n),n):(N.unmountComponentAtNode(n),null)}));var r=h.current;if(r){var o=t(r,{value:f,lineWrapping:!0,readOnly:!0,theme:i,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:si});d(o)}}})),function(){e=!1}}),[i,f,d]),ku(p,"keyMap",a),(0,C.useEffect)((function(){u&&(null==p||p.setValue(u)),c.length>0&&(null==p||p.setValue(Ui(c)))}),[p,u,c]),h}P(wc,"useResponseEditor"),Tc(wc,"useResponseEditor");var xc=Object.defineProperty,Sc=P((function(e,t){return xc(e,"name",{value:t,configurable:!0})}),"__name");function Cc(e){var t=e.defaultSizeRelation,n=void 0===t?Nc:t,r=e.direction,i=e.initiallyHidden,o=e.onHiddenElementChange,s=e.sizeThresholdFirst,u=void 0===s?100:s,c=e.sizeThresholdSecond,l=void 0===c?100:c,f=e.storageKey,p=Ho(),d=(0,C.useCallback)(yu(500,(function(e){p&&f&&p.set(f,e)})),[p,f]),h=(0,C.useState)((function(){var e=p&&f?p.get(f):null;return e===Ac||"first"===i?"first":e===Oc||"second"===i?"second":null})),v=(0,a.Z)(h,2),m=v[0],g=v[1],y=(0,C.useCallback)((function(e){g(e),null==o||o(e)}),[o]),b=(0,C.useRef)(null),_=(0,C.useRef)(null),E=(0,C.useRef)(null),k=(0,C.useRef)("".concat(n));(0,C.useLayoutEffect)((function(){var e=p&&f&&p.get(f)||k.current,t="horizontal"===r?"row":"column";b.current&&(b.current.style.display="flex",b.current.style.flexDirection=t,b.current.style.flex=e===Ac||e===Oc?k.current:e),E.current&&(E.current.style.display="flex",E.current.style.flexDirection=t,E.current.style.flex="1"),_.current&&(_.current.style.display="flex",_.current.style.flexDirection=t)}),[r,p,f]);var T=(0,C.useCallback)((function(e){var t="first"===e?b.current:E.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",b.current)){var n=parseFloat(b.current.style.flex);(!Number.isFinite(n)||n<1)&&(b.current.style.flex="1"),b.current.style.flex}}),[]),w=(0,C.useCallback)((function(e){var t="first"===e?b.current:E.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",b.current&&p&&f)){var n=null==p?void 0:p.get(f);n&&n!==Ac&&n!==Oc&&(b.current.style.flex=n)}}),[p,f]);return(0,C.useLayoutEffect)((function(){"first"===m?T("first"):w("first"),"second"===m?T("second"):w("second")}),[m,T,w]),(0,C.useEffect)((function(){if(_.current&&b.current&&E.current){var e=_.current,t=b.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight";return P(c,"handleMouseDown"),Sc(c,"handleMouseDown"),e.addEventListener("mousedown",c),P(f,"reset"),Sc(f,"reset"),e.addEventListener("dblclick",f),function(){e.removeEventListener("mousedown",c),e.removeEventListener("dblclick",f)}}function c(r){r.preventDefault();var c=r[i]-e.getBoundingClientRect()[o];function f(r){if(0===r.buttons)return p();var f=r[i]-n.getBoundingClientRect()[o]-c,h=n.getBoundingClientRect()[a]-r[i]+c-e[s];if(f<u)y("first"),d(Ac);else if(h<l)y("second"),d(Oc);else{y(null);var v="".concat(f/h);t.style.flex=v,d(v)}}function p(){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}P(f,"handleMouseMove"),Sc(f,"handleMouseMove"),P(p,"handleMouseUp"),Sc(p,"handleMouseUp"),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)}function f(){b.current&&(b.current.style.flex=k.current),d(k.current),y(null)}}),[r,y,u,l,d]),(0,C.useMemo)((function(){return{dragBarRef:_,hiddenElement:m,firstRef:b,setHiddenElement:y,secondRef:E}}),[m,y])}P(Cc,"useDragResize"),Sc(Cc,"useDragResize");var Nc=1,Ac="hide-first",Oc="hide-second"},79239:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalizeFirstLetter:function(){return F},computeOperationDataList:function(){return w},default:function(){return ne},jsCommentsFactory:function(){return M},snippets:function(){return te}});var r=n(32723),i=n(5057),o=n(85408),a=n.n(o),s=n(56327),u=n(92460),c=n(74031),l=n.n(c),f=function(e,t){return e.find((function(e){return e.name===t}))};function p(e,t,n,r,i){n[e.name]=!0;for(var o=e.fragmentDependencies,a=0;a<o.length;a+=1){var s=o[a],u=f(r,s.name.value);u&&(n[u.name]?console.error("The operation graph has a cycle"):t[u.name]||p(u,t,n,r,i))}n[e.name]=!1,t[e.name]=!0,i.push(e)}var d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(){var e=E((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({files:t})});case 2:return n=e.sent,e.next=5,n.json();case 5:if((i=e.sent).sandbox_id){e.next=10;break}throw new Error("Invalid response from Codesandbox API");case 10:return e.abrupt("return",{sandboxId:i.sandbox_id});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function E(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,o){try{var a=t[i](o),s=a.value}catch(u){return void n(u)}if(!a.done)return Promise.resolve(s).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(s)}("next")}))}}var k=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"})),T=i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 256 296",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},i.createElement("g",null,i.createElement("path",{d:"M115.497674,261.08837 L115.497674,154.478845 L23.8139535,101.729261 L23.8139535,162.501763 L65.8104558,186.8486 L65.8104558,232.549219 L115.497674,261.08837 Z M139.311628,261.714907 L189.916577,232.563707 L189.916577,185.779949 L232.186047,161.285235 L232.186047,101.27387 L139.311628,154.895035 L139.311628,261.714907 Z M219.971965,80.8276886 L171.155386,52.5391067 L128.292316,77.4106841 L85.1040206,52.5141067 L35.8521355,81.1812296 L127.765737,134.063073 L219.971965,80.8276886 Z M0,222.211907 L0,74.4948807 L127.986799,0 L256,74.1820085 L256,221.978632 L127.983954,295.72283 L0,222.211907 Z",fill:"#000000"}))),w=function(e){var t=e.query,n=e.variables,r=function(e){if(S[0]===e&&S[1])return S[1];var t=[];try{var n=!0,r=!1,i=void 0;try{for(var o,a=(0,u.Qc)(e).definitions[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;"FragmentDefinition"!==s.kind&&"OperationDefinition"!==s.kind||t.push(s)}}catch(c){r=!0,i=c}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}catch(l){}return S=[e,t],t}(t),i=[],o=!0,a=!1,c=void 0;try{for(var l,f=r[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var d=l.value;"FragmentDefinition"===d.kind&&i.push(d)}}catch(m){a=!0,c=m}finally{try{!o&&f.return&&f.return()}finally{if(a)throw c}}var h=r.map((function(e){return{query:(0,s.S)(e),name:N(e),displayName:A(e),type:e.operation||"fragment",variableName:(t=N(e),t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()),variables:C(n,e),operationDefinition:e,fragmentDependencies:x(i,e)};var t})),v=function(e){var t=[],n={},r={},i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;n[c.name]||r[c.name]||p(c,n,r,e,t)}}catch(m){o=!0,a=m}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return t}(h);return{operationDefinitions:r,fragmentDefinitions:i,rawOperationDataList:h,operationDataList:v}},x=function(e,t){return function t(n){var r=n.selections,i=r.map((function(t){return"FragmentSpread"===t.kind?(n=t.name.value,e.find((function(e){return e.name.value===n}))):null;var n})).filter(Boolean),o=r.reduce((function(e,n){return"Field"!==n.kind&&"SelectionNode"!==n.kind&&"InlineFragment"!==n.kind||void 0===n.selectionSet?e:e.concat(t(n.selectionSet))}),[]);return i.concat(o)}(t.selectionSet)},S=[null,null];var C=function(e,t){return(t.variableDefinitions||[]).reduce((function(t,n){var r=n.variable.name.value;return e[r]&&(t[r]=e[r]),t}),{})},N=function(e){return e.name?e.name.value:e.operation},A=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},O=function(e){function t(){var e,n,r;y(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={visible:!1},r.handleOpen=function(e){e.preventDefault(),r.setState({visible:!0}),r._subscribe()},b(r,n)}return _(t,e),v(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=this.state.visible;return i.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen,onMouseDown:function(e){return e.preventDefault()},ref:function(t){e._node=t},title:this.props.title},this.props.label,i.createElement("svg",{width:"14",height:"8"},i.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())}}]),t}(i.Component),I=function(e){function t(){return y(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _(t,e),v(t,[{key:"componentDidMount",value:function(){this.editor=l()(this._node,{value:this.props.code.trim(),lineNumbers:!1,mode:this.props.mode,readOnly:!0,theme:this.props.theme})}},{key:"componentDidUpdate",value:function(e){this.props.code!==e.code&&this.editor.setValue(this.props.code),this.props.mode!==e.mode&&this.editor.setOption("mode",this.props.mode),this.props.theme!==e.theme&&this.editor.setOption("theme",this.props.theme)}},{key:"render",value:function(){var e=this;return i.createElement("div",{ref:function(t){return e._node=t}})}}]),t}(i.PureComponent),D=function(e){function t(){var e,n,i,o=this;y(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=i=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={showCopiedTooltip:!1,optionValuesBySnippet:new Map,snippet:null,codesandboxResult:null},i._activeSnippet=function(){return i.props.snippet||i.state.snippet||i.props.snippets[0]},i.setSnippet=function(e){i.props.onSelectSnippet&&i.props.onSelectSnippet(e),i.setState({snippet:e,codesandboxResult:null})},i.setLanguage=function(e){var t=i.props.snippets.find((function(t){return t.language===e}));t&&i.setSnippet(t)},i.handleSetOptionValue=function(e,t,n){i.props.onSetOptionValue&&i.props.onSetOptionValue(e,t,n);var r=i.state.optionValuesBySnippet,o=r.get(e)||{};return r.set(e,h({},o,g({},t,n))),i.setState({optionValuesBySnippet:r})},i.getOptionValues=function(e){var t=e.options.reduce((function(e,t){return h({},e,g({},t.id,t.initial))}),{});return h({},t,i.state.optionValuesBySnippet.get(e)||{},i.props.optionValues)},i._generateCodesandbox=function(){var e=E((0,r.Z)().mark((function e(t){var n,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.setState({codesandboxResult:{type:"loading"}}),n=i._activeSnippet()){e.next=5;break}return i.setState({codesandboxResult:{type:"error",error:"No active snippet"}}),e.abrupt("return");case 5:if(a=n.generateCodesandboxFiles){e.next=9;break}return i.setState({codesandboxResult:{type:"error",error:"Snippet does not support CodeSandbox"}}),e.abrupt("return");case 9:return e.prev=9,e.next=12,m(a(i._collectOptions(n,t,i.props.schema)));case 12:s=e.sent,i.setState({codesandboxResult:h({type:"success"},s)}),i.props.onGenerateCodesandbox&&i.props.onGenerateCodesandbox(s),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(9),console.error("Error generating codesandbox",e.t0),i.setState({codesandboxResult:{type:"error",error:"Failed to generate CodeSandbox"}});case 21:case"end":return e.stop()}}),e,o,[[9,17]])})));return function(t){return e.apply(this,arguments)}}(),i._collectOptions=function(e,t,n){var r=i.props,o=r.serverUrl,a=r.context,s=void 0===a?{}:a,u=r.headers;return{serverUrl:o,headers:void 0===u?{}:u,context:s,operationDataList:t,options:i.getOptionValues(e),schema:n}},b(i,n)}return _(t,e),v(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.query,r=t.snippets,o=t.variables,s=void 0===o?{}:o,u=this.state,c=u.showCopiedTooltip,l=u.codesandboxResult,f=this._activeSnippet(),p=f.name,d=f.language,v=f.generate,m=w({query:n,variables:s}),g=m.operationDefinitions,y=(m.fragmentDefinitions,m.rawOperationDataList,m.operationDataList),b=this.getOptionValues(f),_=g.length?v(this._collectOptions(f,y,this.props.schema)):null,E=f.generateCodesandboxFiles,x=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(new Set(r.map((function(e){return e.language}))))).sort((function(e,t){return e.localeCompare(t)}));return i.createElement("div",{className:"graphiql-code-exporter",style:{minWidth:410}},i.createElement("div",{style:{fontFamily:"system, -apple-system, San Francisco, Helvetica Neue, arial, sans-serif"}},i.createElement("div",{style:{padding:"12px 7px 8px"}},i.createElement(O,{label:d,title:"Language"},x.map((function(t){return i.createElement("li",{key:t,onClick:function(){return e.setLanguage(t)}},t)}))),i.createElement(O,{label:p,title:"Mode"},r.filter((function(e){return e.language===d})).map((function(t){return i.createElement("li",{key:t.name,onClick:function(){return e.setSnippet(t)}},t.name)})))),f.options.length>0?i.createElement("div",{style:{padding:"0px 11px 10px"}},i.createElement("div",{style:{fontWeight:700,color:"rgb(177, 26, 4)",fontVariant:"small-caps",textTransform:"lowercase"}},"Options"),f.options.map((function(t){return i.createElement("div",{key:t.id},i.createElement("input",{id:t.id,type:"checkbox",style:{position:"relative",top:-1},checked:b[t.id],onChange:function(){return e.handleSetOptionValue(f,t.id,!b[t.id])}}),i.createElement("label",{htmlFor:t.id,style:{paddingLeft:5}},t.label))}))):i.createElement("div",{style:{minHeight:8}}),E?i.createElement("div",{style:{padding:"0 7px 8px"}},i.createElement("button",{className:"toolbar-button",style:h({backgroundColor:"white",border:"none",outline:"none",maxWidth:320,display:"flex"},_?{}:{opacity:.6,cursor:"default",background:"#ececec"}),type:"button",disabled:!_,onClick:function(){return e._generateCodesandbox(y)}},T," ",i.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),l?i.createElement("div",{style:{paddingLeft:5,paddingTop:5}},"loading"===l.type?"Loading...":"error"===l.type?"Error: "+l.error:i.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+l.sandboxId},"Visit CodeSandbox")):null):null),i.createElement("button",{className:"toolbar-button",style:{fontSize:"1.2em",padding:0,position:"absolute",left:340,marginTop:-20,width:40,height:40,backgroundColor:"white",borderRadius:40,border:"none",outline:"none"},type:"link",onClick:function(){a()(_),e.setState({showCopiedTooltip:!0},(function(){return setTimeout((function(){return e.setState({showCopiedTooltip:!1})}),450)}))}},i.createElement("div",{style:{position:"absolute",top:"-30px",left:"-15px",fontSize:"small",padding:"6px 8px",color:"#fff",textAlign:"left",textDecoration:"none",wordWrap:"break-word",backgroundColor:"rgba(0,0,0,0.75)",borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:c?"block":"none"},pointerEvents:"none"},"Copied!"),k),i.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},_?i.createElement(I,{code:_,mode:f.codeMirrorMode,theme:this.props.codeMirrorTheme}):i.createElement("div",null,"The query is invalid.",i.createElement("br",null),"The generated code will appear here once the errors in the query editor are resolved.")))}}]),t}(i.Component),L=function(e){function t(){var e,n,r;y(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1},b(r,n)}return _(t,e),v(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?i.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Error generating code. Please"," ",i.createElement("a",{href:"https://spectrum.chat/onegraph",target:"_blank",rel:"noreferrer noopener"},"report your query on Spectrum"),"."):this.props.children}}]),t}(i.Component);function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}function M(e,t){return function(n){return e?"// "+t[n]:""}}function R(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var j=["query","mutation","subscription"];function P(e){return-1===j.indexOf(e.name.trim())}function V(e,t){var n=[].concat(R(new Array(t+1))).join(" ");return e.split("\n").map((function(e){return""+n+e})).join("\n")}function Z(e){return e.replace(/\n{2,}/g,"\n\n")}n(27090);var q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},B={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};var z="fetchGraphQL";function H(e){var t=e.type,n="query"===t?"fetch":"mutation"===t?"execute":"subscription"===t?"subscribeTo":"";return n+(n.length>0?F(e.name):e.name)}var G={language:"JavaScript",codeMirrorMode:"javascript",name:"fetch",options:[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],generate:function(e){var t=e.serverUrl,n=e.headers,r=e.options,i=e.operationDataList.map((function(e,t){return P(e)?e:q({},e,{name:("unnamed"+F(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+F(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),o=M(!0,B),a=r.server?o("nodeFetch"):"",s=r.server?'import fetch from "node-fetch";\n':"",u=function(e){return"const operationsDoc = `\n"+V(e.map((function(e){return e.query})).join("\n\n").trim(),2)+"\n`;"}(i),c=(JSON.stringify({},null,2),[]),l=!0,f=!1,p=void 0;try{for(var d,h=Object.keys(n)[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var v=d.value;v&&n[v]&&c.push('"'+v+'": "'+n[v]+'"')}}catch(k){f=!0,p=k}finally{try{!l&&h.return&&h.return()}finally{if(f)throw p}}var m=c.length?""+c.join(",\n"):"",g=[r.server?'"node-fetch": "^2.5.0"':null].filter(Boolean),y=g.length>0?"/*\nAdd these to your `package.json`:\n"+V(g.join(",\n"),2)+"\n*/\n":"",b=r.asyncAwait?function(e,t){return"async function "+z+'(operationsDoc, operationName, variables) {\n const result = await fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+V(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n );\n\n return await result.json();\n}"}(t,m):function(e,t){return"function "+z+'(operationsDoc, operationName, variables) {\n return fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+V(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n ).then((result) => result.json());\n}"}(t,m),_=function(e){return e.map((function(e){var t=H(e),n=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r="{"+n.map((function(e){return'"'+e+'": '+e})).join(", ")+"}";return"function "+t+"("+n.join(", ")+") {\n return "+z+'(\n operationsDoc,\n "'+e.name+'",\n '+r+"\n );\n}"})).join("\n\n")}(i),E=r.asyncAwait?function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r=Object.entries(t.variables||{}).map((function(e){var t=U(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"}));return"async function start"+F(H(t))+"("+n.join(", ")+") {\n const { errors, data } = await "+H(t)+"("+n.join(", ")+");\n\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n\n "+e("graphqlData")+"\n console.log(data);\n}\n\n"+r.join("\n")+"\n\nstart"+F(H(t))+"("+n.join(", ")+");"})).join("\n\n")}(o,i):function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value}));return Object.entries(t.variables||{}).map((function(e){var t=U(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"})).join("\n")+"\n\n"+H(t)+"("+n.join(", ")+")\n .then(({ data, errors }) => {\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n "+e("graphqlData")+"\n console.log(data);\n })\n .catch((error) => {\n "+e("fetchError")+"\n console.error(error);\n });"})).join("\n\n")}(o,i);return Z(("\n/*\nThis is an example snippet - you should consider tailoring it\nto your service.\n*/\n"+y+"\n"+a+"\n"+s+"\n\n"+b+"\n\n"+u+"\n\n"+_+"\n\n"+E).trim())}},W=(n(50563),function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}),Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var X={setup:"This setup is only needed once per application"};function J(e){var t=e.type;return function(e){var t=e.name;return t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}(e)+"_"+t.toUpperCase()}function Y(e){var t=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),n="{"+t.map((function(e){return'"'+e+'": '+e})).join(", ")+"}",r=t.map((function(e){return'"'+e+'": props.'+e})).join(", ");return{params:t,variables:n,props:"{"+r+"}"}}function $(e){var t=e.type,n="query"===t?"Query":"mutation"===t?"Mutation":"subscription"===t?"Subscription":"";return n.length>0?""+F(e.name)+n:F(e.name)}function K(e,t,n,r,i,o){var a=Y(r),s=a.params,u=a.variables,c="() => "+(r.name+"("+(0===s.length?"":""+u)+")");return"<Mutation\n mutation={"+J(r)+"}"+("{}"===i?"":"\n context={{ headers: "+i+" }}\n")+">\n {("+r.name+", { loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n\n if (error)\n return (\n <"+n+">\n Error in "+J(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n const dataEl = data ? (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n ) : null;\n\n return (\n <div>\n {dataEl}\n\n <button onClick={"+c+"}>\n Run mutation: "+r.name+"\n </button>\n </div>\n );\n }}\n</Mutation>"}var ee=function(e,t,n,r,i,o){var a=Y(r),s=a.params,u=a.props;return"<Query\n query={"+J(r)+"}"+("{}"===i?"":"\n context={{ headers: "+i+" }}")+" "+(0===s.length?"":"\n variables={"+u+"}")+">\n {({ loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n if (error)\n return (\n <"+n+">\n Error in "+J(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n if (data) {\n return (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n )\n }\n }}\n</Query>"},te=[G,{language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var t,n=e.headers,r=e.options,i=e.serverUrl,o=M(!0,X),a=e.operationDataList.map((function(e,t){return P(e)?e:Q({},e,{name:("unnamed"+F(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+F(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),s=r.reactNative?"View":"pre",u=JSON.stringify({},null,2),c="{"+[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(n||[]))).filter((function(e){return n[e]})).map((function(e){return'"'+e+'": "'+n[e]+'"'})).join(",\n")+"}",l=r.client?o("setup")+';\nconst apolloClient = new ApolloClient({\n cache: new InMemoryCache(),\n link: new HttpLink({\n uri: "'+i+'",\n }),\n});\n':"",f=(t=a.map((function(e){return e.type})),[].concat(R(new Set(t)))),p="import { "+[f.indexOf("query")>-1?"Query":null,f.indexOf("mutation")>-1?"Mutation":null,"ApolloProvider"].filter(Boolean).join(", ")+' } from "react-apollo";',d='import React from "react";\nimport ReactDOM from "react-dom";\nimport { '+(r.client?"ApolloClient, ":"")+'InMemoryCache, HttpLink } from "apollo-boost";',h=r.imports?'import gql from "graphql-tag";\n'+d+"\n"+p:"",v=a.map((function(e){var t="query"===e.type?ee:"mutation"===e.type?K:function(){return"\"We don't support "+e.type+' GraphQL operations yet"'};return"const "+J(e)+" = gql`\n"+V(e.query,2)+"\n`;"+"\n\nconst "+$(e)+" = (props) => {\n return (\n"+V(t(o,r,s,e,c,u),4)+"\n )\n};"})).join("\n\n"),m=a.map((function(e){var t=Y(e).params.map((function(e){return e+"={"+e+"}"})).join(" ");return"<"+$(e)+" "+t+" />"})).join("\n");return Z(('\n/* This is an example snippet - you should consider tailoring it\nto your service.\n*/\n/*\n Add these to your `package.json`:\n "apollo-boost": "^0.3.1",\n "graphql": "^14.2.1",\n "graphql-tag": "^2.10.0",\n "react-apollo": "^2.5.5"\n*/\n\n'+h+"\n\n"+l+"\n\n"+v+"\n\n"+(a.map((function(e){return""+Object.entries(e.variables||{}).map((function(e){var t=W(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"})).join("\n")})).join("\n\n")+"\n\nconst container = (\n <ApolloProvider client={apolloClient}>\n"+V(m,4)+"\n </ApolloProvider>\n);")+'\n\nReactDOM.render(container, document.getElementById("root"));').trim())}}],ne=function(e){var t=e.query,n=e.serverUrl,r=e.variables,o=e.context,a=void 0===o?{}:o,s=e.headers,u=void 0===s?{}:s,c=e.hideCodeExporter,l=void 0===c?function(){}:c,f=e.snippets,p=e.snippet,h=e.codeMirrorTheme,v=e.onSelectSnippet,m=e.onSetOptionValue,g=e.optionValues,y=e.onGenerateCodesandbox,b=e.schema,_={};try{var E=JSON.parse(r);"object"===("undefined"===typeof E?"undefined":d(E))&&(_=E)}catch(k){}return i.createElement("div",{className:"docExplorerWrap",style:{width:440,minWidth:440,zIndex:7}},i.createElement("div",{className:"doc-explorer-title-bar"},i.createElement("div",{className:"doc-explorer-title"},"Code Exporter"),i.createElement("div",{className:"doc-explorer-rhs"},i.createElement("div",{className:"docExplorerHide",onClick:l},"\u2715"))),i.createElement("div",{className:"doc-explorer-contents",style:{borderTop:"1px solid #d6d6d6",padding:0}},f.length?i.createElement(L,null,i.createElement(D,{query:t,serverUrl:n,snippets:f,snippet:p,context:a,headers:u,variables:_,codeMirrorTheme:h,onSelectSnippet:v,onSetOptionValue:m,optionValues:g||{},onGenerateCodesandbox:y,schema:b})):i.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))}},13897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(84179)),i=o(n(36695));function o(e){return e&&e.__esModule?e:{default:e}}t.default=[r.default,i.default]},84179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=u(n(76091)),a=u(n(37904)),s=n(54866);function u(e){return e&&e.__esModule?e:{default:e}}n(27090);var c={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};var l="fetchGraphQL";function f(e){var t=e.type,n="query"===t?"fetch":"mutation"===t?"execute":"subscription"===t?"subscribeTo":"";return n+(n.length>0?(0,o.default)(e.name):e.name)}var p={language:"JavaScript",codeMirrorMode:"javascript",name:"fetch",options:[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],generate:function(e){var t=e.serverUrl,n=e.headers,u=e.options,p=e.operationDataList.map((function(e,t){return(0,s.isOperationNamed)(e)?e:r({},e,{name:("unnamed"+(0,o.default)(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+(0,o.default)(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),d=(0,a.default)(!0,c),h=u.server?d("nodeFetch"):"",v=u.server?'import fetch from "node-fetch";\n':"",m=function(e){var t=e.map((function(e){return e.query})).join("\n\n").trim();return"const operationsDoc = `\n"+(0,s.addLeftWhitespace)(t,2)+"\n`;"}(p),g=(JSON.stringify({},null,2),[]),y=!0,b=!1,_=void 0;try{for(var E,k=Object.keys(n)[Symbol.iterator]();!(y=(E=k.next()).done);y=!0){var T=E.value;T&&n[T]&&g.push('"'+T+'": "'+n[T]+'"')}}catch(I){b=!0,_=I}finally{try{!y&&k.return&&k.return()}finally{if(b)throw _}}var w=g.length?""+g.join(",\n"):"",x=[u.server?'"node-fetch": "^2.5.0"':null].filter(Boolean),S=x.length>0?"/*\nAdd these to your `package.json`:\n"+(0,s.addLeftWhitespace)(x.join(",\n"),2)+"\n*/\n":"",C=u.asyncAwait?function(e,t){return"async function "+l+'(operationsDoc, operationName, variables) {\n const result = await fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+(0,s.addLeftWhitespace)(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n );\n\n return await result.json();\n}"}(t,w):function(e,t){return"function "+l+'(operationsDoc, operationName, variables) {\n return fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+(0,s.addLeftWhitespace)(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n ).then((result) => result.json());\n}"}(t,w),N=function(e){return e.map((function(e){var t=f(e),n=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r="{"+n.map((function(e){return'"'+e+'": '+e})).join(", ")+"}";return"function "+t+"("+n.join(", ")+") {\n return "+l+'(\n operationsDoc,\n "'+e.name+'",\n '+r+"\n );\n}"})).join("\n\n")}(p),A=u.asyncAwait?function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r=Object.entries(t.variables||{}).map((function(e){var t=i(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"}));return"async function start"+(0,o.default)(f(t))+"("+n.join(", ")+") {\n const { errors, data } = await "+f(t)+"("+n.join(", ")+");\n\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n\n "+e("graphqlData")+"\n console.log(data);\n}\n\n"+r.join("\n")+"\n\nstart"+(0,o.default)(f(t))+"("+n.join(", ")+");"})).join("\n\n")}(d,p):function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value}));return Object.entries(t.variables||{}).map((function(e){var t=i(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"})).join("\n")+"\n\n"+f(t)+"("+n.join(", ")+")\n .then(({ data, errors }) => {\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n "+e("graphqlData")+"\n console.log(data);\n })\n .catch((error) => {\n "+e("fetchError")+"\n console.error(error);\n });"})).join("\n\n")}(d,p),O="\n/*\nThis is an example snippet - you should consider tailoring it\nto your service.\n*/\n"+S+"\n"+h+"\n"+v+"\n\n"+C+"\n\n"+m+"\n\n"+N+"\n\n"+A;return(0,s.collapseExtraNewlines)(O.trim())}};t.default=p},36695:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(76091)),a=u(n(37904)),s=n(54866);function u(e){return e&&e.__esModule?e:{default:e}}n(50563);var c={setup:"This setup is only needed once per application"};function l(e){var t=e.type;return function(e){var t=e.name;return t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}(e)+"_"+t.toUpperCase()}function f(e){var t=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),n="{"+t.map((function(e){return'"'+e+'": '+e})).join(", ")+"}",r=t.map((function(e){return'"'+e+'": props.'+e})).join(", ");return{params:t,variables:n,props:"{"+r+"}"}}function p(e){var t=e.type,n="query"===t?"Query":"mutation"===t?"Mutation":"subscription"===t?"Subscription":"";return n.length>0?""+(0,o.default)(e.name)+n:(0,o.default)(e.name)}function d(e,t,n,r,i,o){var a=f(r),s=a.params,u=a.variables,c="() => "+(r.name+"("+(0===s.length?"":""+u)+")");return"<Mutation\n mutation={"+l(r)+"}"+("{}"===i?"":"\n context={{ headers: "+i+" }}\n")+">\n {("+r.name+", { loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n\n if (error)\n return (\n <"+n+">\n Error in "+l(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n const dataEl = data ? (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n ) : null;\n\n return (\n <div>\n {dataEl}\n\n <button onClick={"+c+"}>\n Run mutation: "+r.name+"\n </button>\n </div>\n );\n }}\n</Mutation>"}var h=function(e,t,n,r,i,o){var a=f(r),s=a.params,u=a.props;return"<Query\n query={"+l(r)+"}"+("{}"===i?"":"\n context={{ headers: "+i+" }}")+" "+(0===s.length?"":"\n variables={"+u+"}")+">\n {({ loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n if (error)\n return (\n <"+n+">\n Error in "+l(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n if (data) {\n return (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n )\n }\n }}\n</Query>"},v={language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var t=e.headers,n=e.options,u=e.serverUrl,v=(0,a.default)(!0,c),m=e.operationDataList.map((function(e,t){return(0,s.isOperationNamed)(e)?e:i({},e,{name:("unnamed"+(0,o.default)(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+(0,o.default)(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),g=n.reactNative?"View":"pre",y=JSON.stringify({},null,2),b="{"+[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(t||[]))).filter((function(e){return t[e]})).map((function(e){return'"'+e+'": "'+t[e]+'"'})).join(",\n")+"}",_=n.client?v("setup")+';\nconst apolloClient = new ApolloClient({\n cache: new InMemoryCache(),\n link: new HttpLink({\n uri: "'+u+'",\n }),\n});\n':"",E=(0,s.distinct)(m.map((function(e){return e.type}))),k="import { "+[E.indexOf("query")>-1?"Query":null,E.indexOf("mutation")>-1?"Mutation":null,"ApolloProvider"].filter(Boolean).join(", ")+' } from "react-apollo";',T='import React from "react";\nimport ReactDOM from "react-dom";\nimport { '+(n.client?"ApolloClient, ":"")+'InMemoryCache, HttpLink } from "apollo-boost";',w=n.imports?'import gql from "graphql-tag";\n'+T+"\n"+k:"",x=m.map((function(e){var t="query"===e.type?h:"mutation"===e.type?d:function(){return"\"We don't support "+e.type+' GraphQL operations yet"'};return"const "+l(e)+" = gql`\n"+(0,s.addLeftWhitespace)(e.query,2)+"\n`;"+"\n\nconst "+p(e)+" = (props) => {\n return (\n"+(0,s.addLeftWhitespace)(t(v,n,g,e,b,y),4)+"\n )\n};"})).join("\n\n"),S=m.map((function(e){var t=f(e).params.map((function(e){return e+"={"+e+"}"})).join(" ");return"<"+p(e)+" "+t+" />"})).join("\n"),C='\n/* This is an example snippet - you should consider tailoring it\nto your service.\n*/\n/*\n Add these to your `package.json`:\n "apollo-boost": "^0.3.1",\n "graphql": "^14.2.1",\n "graphql-tag": "^2.10.0",\n "react-apollo": "^2.5.5"\n*/\n\n'+w+"\n\n"+_+"\n\n"+x+"\n\n"+(m.map((function(e){return""+Object.entries(e.variables||{}).map((function(e){var t=r(e,2),n=t[0],i=t[1];return"const "+n+" = "+JSON.stringify(i,null,2)+";"})).join("\n")})).join("\n\n")+"\n\nconst container = (\n <ApolloProvider client={apolloClient}>\n"+(0,s.addLeftWhitespace)(S,4)+"\n </ApolloProvider>\n);")+'\n\nReactDOM.render(container, document.getElementById("root"));';return(0,s.collapseExtraNewlines)(C.trim())}};t.default=v},76091:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},54866:function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=["query","mutation","subscription"];function i(e){return-1===r.indexOf(e.name.trim())}t.distinct=function(e){return[].concat(n(new Set(e)))},t.findFirstNamedOperation=function(e){return e.find(i)},t.isOperationNamed=i,t.addLeftWhitespace=function(e,t){var r=[].concat(n(new Array(t+1))).join(" ");return e.split("\n").map((function(e){return""+r+e})).join("\n")},t.collapseExtraNewlines=function(e){return e.replace(/\n{2,}/g,"\n\n")}},37904:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return e?"// "+t[n]:""}}},49814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.defaultValue=S;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5057)),u=n(18700);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}var v={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},m=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),g=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),y=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),b=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function _(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function E(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach((function(e){(0,u.isLeafType)(t[e].type)&&r.push(e)})),r.length?r.slice(0,2):["__typename"]}function k(e){return(0,u.isNonNullType)(e.type)&&void 0===e.defaultValue}function T(e){for(var t=e;(0,u.isWrappingType)(t);)t=t.ofType;return t}function w(e,t){if("string"!==typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,u.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"===typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(i){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(i){return console.error("error coercing arg value",i,t),{kind:"StringValue",value:t}}else try{var r=e.parseValue(t);return r?{kind:"EnumValue",value:String(r)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(i){return{kind:"EnumValue",value:e.getValues()[0].name}}}var x=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return r.props.selection.fields.find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(){var e=r.props.selection,t=r._getArgSelection();r._previousArgSelection=t,r.props.modifyFields(e.fields.filter((function(e){return e!==t})),!0)},r._addArg=function(){var e=r.props,t=e.selection,n=e.arg,i=e.getDefaultScalarArgValue,o=e.parentField,a=e.makeDefaultArg,s=T(n.type),c=null;if(r._previousArgSelection)c=r._previousArgSelection;else if((0,u.isInputObjectType)(s)){var f=s.getFields();c={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:L(i,a,o,Object.keys(f).map((function(e){return f[e]})))}}}else(0,u.isLeafType)(s)&&(c={kind:"ObjectField",name:{kind:"Name",value:n.name},value:i(o,n,s)});if(c)return r.props.modifyFields([].concat(l(t.fields||[]),[c]),!0);console.error("Unable to add arg for argType",s)},r._setArgValue=function(e,t){var n=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null===e||"undefined"===typeof e?n=!0:"string"===typeof e.kind&&(a=!0)}catch(d){}var s=r.props.selection,c=r._getArgSelection();if(c){var l=T(r.props.arg.type);if((0,u.isLeafType)(l)||i||n||a){var f=void 0,p=void 0;return null===e||"undefined"===typeof e?p=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?p=(f=e).variable:"string"===typeof e.kind?p=e:e.target&&"string"===typeof e.target.value&&(f=e.target.value,p=w(l,f)),r.props.modifyFields((s.fields||[]).map((function(e){return e===c?o({},e,{value:p}):e})),t)}console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e)}else console.error("missing arg selection when setting arg value")},r._modifyChildFields=function(e){return r.props.modifyFields(r.props.selection.fields.map((function(t){return t.name.value===r.props.arg.name?o({},t,{value:{kind:"ObjectValue",fields:e}}):t})),!0)},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(O,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);function S(e){if((0,u.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}}function C(e,t,n){return S(n)}var N=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return(r.props.selection.arguments||[]).find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(e){var t=r.props.selection,n=r._getArgSelection();return r._previousArgSelection=n,r.props.modifyArguments((t.arguments||[]).filter((function(e){return e!==n})),e)},r._addArg=function(e){var t=r.props,n=t.selection,i=t.getDefaultScalarArgValue,o=t.makeDefaultArg,a=t.parentField,s=t.arg,c=T(s.type),f=null;if(r._previousArgSelection)f=r._previousArgSelection;else if((0,u.isInputObjectType)(c)){var p=c.getFields();f={kind:"Argument",name:{kind:"Name",value:s.name},value:{kind:"ObjectValue",fields:L(i,o,a,Object.keys(p).map((function(e){return p[e]})))}}}else(0,u.isLeafType)(c)&&(f={kind:"Argument",name:{kind:"Name",value:s.name},value:i(a,s,c)});return f?r.props.modifyArguments([].concat(l(n.arguments||[]),[f]),e):(console.error("Unable to add arg for argType",c),null)},r._setArgValue=function(e,t){var n=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null===e||"undefined"===typeof e?n=!0:"string"===typeof e.kind&&(a=!0)}catch(d){}var s=r.props.selection,c=r._getArgSelection();if(c||i){var l=T(r.props.arg.type);if((0,u.isLeafType)(l)||i||n||a){var f=void 0,p=void 0;return null===e||"undefined"===typeof e?p=null:e.target&&"string"===typeof e.target.value?(f=e.target.value,p=w(l,f)):e.target||"VariableDefinition"!==e.kind?"string"===typeof e.kind&&(p=e):p=(f=e).variable,r.props.modifyArguments((s.arguments||[]).map((function(e){return e===c?o({},e,{value:p}):e})),t)}console.warn("Unable to handle non leaf types in ArgView._setArgValue")}else console.error("missing arg selection when setting arg value")},r._setArgFields=function(e,t){var n=r.props.selection,i=r._getArgSelection();if(i)return r.props.modifyArguments((n.arguments||[]).map((function(t){return t===i?o({},t,{value:{kind:"ObjectValue",fields:e}}):t})),t);console.error("missing arg selection when setting arg value")},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(O,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);var A=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._handleChange=function(e){r.props.setArgValue(e,!0)},p(r,n)}return d(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,i=t.styleConfig,o=T(n.type),a="string"===typeof r.value?r.value:"",u="StringValue"===this.props.argValue.kind?i.colors.string:i.colors.number;return s.createElement("span",{style:{color:u}},"String"===o.name?'"':"",s.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,a.length))+"ch",color:u},ref:function(t){e._ref=t},type:"text",onChange:this._handleChange,value:a}),"String"===o.name?'"':"")}}]),t}(s.PureComponent),O=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayArgActions:!1},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,a=t.styleConfig,c=T(r.type),f=null;if(n)if("Variable"===n.kind)f=s.createElement("span",{style:{color:a.colors.variable}},"$",n.name.value);else if((0,u.isScalarType)(c))f="Boolean"===c.name?s.createElement("select",{style:{color:a.colors.builtin},onChange:this.props.setArgValue,value:"BooleanValue"===n.kind?n.value:void 0},s.createElement("option",{key:"true",value:"true"},"true"),s.createElement("option",{key:"false",value:"false"},"false")):s.createElement(A,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,u.isEnumType)(c))"EnumValue"===n.kind?f=s.createElement("select",{style:{backgroundColor:"white",color:a.colors.string2},onChange:this.props.setArgValue,value:n.value},c.getValues().map((function(e){return s.createElement("option",{key:e.name,value:e.name},e.name)}))):console.error("arg mismatch between arg and selection",c,n);else if((0,u.isInputObjectType)(c))if("ObjectValue"===n.kind){var p=c.getFields();f=s.createElement("div",{style:{marginLeft:16}},Object.keys(p).sort().map((function(t){return s.createElement(x,{key:t,arg:p[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})))}else console.error("arg mismatch between arg and selection",c,n);var d=function(){var t=r.name,a=(e.props.definition.variableDefinitions||[]).filter((function(e){return e.variable.name.value.startsWith(t)})).length,s=void 0;s=a>0?""+t+a:t;var c=r.type.toString(),f={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:s}},type:(0,u.parseType)(c),directives:[]},p=void 0,d={};if("undefined"!==typeof n&&null!==n){var h=(0,u.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(d[r]=d[r]+1||1,i)return i.defaultValue}}),v="NonNullType"===f.type.kind?o({},f,{type:f.type.type}):f;p=o({},v,{defaultValue:h})}else p=f;var m=Object.entries(d).filter((function(e){var t=i(e,2);t[0];return t[1]<2})).map((function(e){var t=i(e,2),n=t[0];t[1];return n}));if(p){var g=e.props.setArgValue(p,!1);if(g){var y=g.definitions.find((function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value})),b=[].concat(l(y.variableDefinitions||[]),[p]).filter((function(e){return-1===m.indexOf(e.variable.name.value)})),_=o({},y,{variableDefinitions:b}),E=g.definitions.map((function(e){return y===e?_:e})),k=o({},g,{definitions:E});e.props.onCommit(k)}}},h=n&&"Variable"===n.kind,v=this.state.displayArgActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:h?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),h?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===t}));if(r){var i=r.defaultValue,a=e.props.setArgValue(i,{commit:!1});if(a){var s=a.definitions.find((function(t){return t.name.value===e.props.definition.name.value}));if(!s)return;var c=0;(0,u.visit)(s,{Variable:function(e){e.name.value===t&&(c+=1)}});var l=s.variableDefinitions||[];c<2&&(l=l.filter((function(e){return e.variable.name.value!==t})));var f=o({},s,{variableDefinitions:l}),p=a.definitions.map((function(e){return s===e?f:e})),d=o({},a,{definitions:p});e.props.onCommit(d)}}}}():d()},style:a.styles.actionButtonStyle},s.createElement("span",{style:{color:a.colors.variable}},"$")):null;return s.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":c.name,className:"graphiql-explorer-"+r.name},s.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,u.isInputObjectType)(c)?s.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(_,{checked:!!n,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:a.colors.attribute},title:r.description,onMouseEnter:function(){null!==n&&"undefined"!==typeof n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,k(r)?"*":"",": ",v," ")," "),f||s.createElement("span",null)," ")}}]),t}(s.PureComponent),I=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(l(r.props.selections),[r._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:r.props.getDefaultFieldNames(r.props.implementingType).map((function(e){return{kind:"Field",name:{kind:"Name",value:e}}}))}}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"InlineFragment"===e.kind&&e.typeCondition&&r.props.implementingType.name===e.typeCondition.name.value}));return e?"InlineFragment"===e.kind?e:void 0:null},r._modifyChildSelections=function(e,t){var n=r._getSelection();return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{directives:t.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:t})),t)},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,i=t.getDefaultFieldNames,o=t.styleConfig,a=this._getSelection(),u=n.getFields(),c=a&&a.selectionSet?a.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+n.name},s.createElement("span",{style:{cursor:"pointer"},onClick:a?this._removeFragment:this._addFragment},s.createElement(_,{checked:!!a,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:o.colors.atom}},this.props.implementingType.name)),a?s.createElement("div",{style:{marginLeft:16}},Object.keys(u).sort().map((function(t){return s.createElement(M,{key:t,field:u[t],selections:c,modifySelections:e._modifyChildSelections,schema:r,getDefaultFieldNames:i,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,onCommit:e.props.onCommit,styleConfig:e.props.styleConfig,definition:e.props.definition,availableFragments:e.props.availableFragments})}))):null)}}]),t}(s.PureComponent),D=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(l(r.props.selections),[r._previousSelection||{kind:"FragmentSpread",name:r.props.fragment.name}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(e){return!("FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value)})))},r._getSelection=function(){return r.props.selections.find((function(e){return"FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value}))},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this.props.styleConfig,t=this._getSelection();return s.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},s.createElement("span",{style:{cursor:"pointer"},onClick:t?this._removeFragment:this._addFragment},s.createElement(_,{checked:!!t,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:e.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(s.PureComponent);function L(e,t,n,r){var i=[],o=!0,a=!1,s=void 0;try{for(var c,l=r[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f=c.value;if((0,u.isRequiredInputField)(f)||t&&t(n,f)){var p=T(f.type);(0,u.isInputObjectType)(p)?function(){var r=p.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:f.name},value:{kind:"ObjectValue",fields:L(e,t,n,Object.keys(r).map((function(e){return r[e]})))}})}():(0,u.isLeafType)(p)&&i.push({kind:"ObjectField",name:{kind:"Name",value:f.name},value:e(n,f,p)})}}}catch(d){a=!0,s=d}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return i}function F(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s,c=n.args[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var l=s.value;if(k(l)||t&&t(n,l)){var f=T(l.type);(0,u.isInputObjectType)(f)?function(){var i=f.getFields();r.push({kind:"Argument",name:{kind:"Name",value:l.name},value:{kind:"ObjectValue",fields:L(e,t,n,Object.keys(i).map((function(e){return i[e]})))}})}():(0,u.isLeafType)(f)&&r.push({kind:"Argument",name:{kind:"Name",value:l.name},value:e(n,l,f)})}}}catch(p){o=!0,a=p}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}return r}var M=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayFieldActions:!1},r._addAllFieldsToSelections=function(e){var t={kind:"SelectionSet",selections:e?Object.keys(e).map((function(e){return{kind:"Field",name:{kind:"Name",value:e},arguments:[]}})):[]},n=[].concat(l(r.props.selections.filter((function(e){return"InlineFragment"===e.kind||e.name.value!==r.props.field.name}))),[{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:F(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field),selectionSet:t}]);r.props.modifySelections(n)},r._addFieldToSelections=function(e){var t=[].concat(l(r.props.selections),[r._previousSelection||{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:F(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,u.getNamedType)(r.props.field.type),n=(0,u.isObjectType)(t)&&t.getFields();!!n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"Field"===e.kind&&r.props.field.name===e.name.value}));return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e,t){var n=r._getSelection();if(n)return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{alias:n.alias,arguments:e,directives:n.directives,kind:"Field",name:n.name,selectionSet:n.selectionSet}:t})),t);console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e,t){return r.props.modifySelections(r.props.selections.map((function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t})),t)},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,i=n.schema,a=n.getDefaultFieldNames,c=n.styleConfig,f=this._getSelection(),p=function(e){for(var t=e;(0,u.isWrappingType)(t);)t=t.ofType;return t}(r.type),d=r.args.sort((function(e,t){return e.name.localeCompare(t.name)})),h="graphiql-explorer-node graphiql-explorer-"+r.name;r.isDeprecated&&(h+=" graphiql-explorer-deprecated");var v=(0,u.isObjectType)(p)||(0,u.isInterfaceType)(p)||(0,u.isUnionType)(p)?this.props.availableFragments&&this.props.availableFragments[p.name]:null,m=s.createElement("div",{className:h},s.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":p.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){(0,u.isObjectType)(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter((function(e){return"FragmentSpread"!==e.kind})).length>0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,u.isObjectType)(p)?s.createElement("span",null,f?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,u.isObjectType)(p)?null:s.createElement(_,{checked:!!f,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:c.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=p.name+"Fragment",r=(v||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var i=f&&f.selectionSet?f.selectionSet.selections:[],a=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],s={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:p.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},u=e._modifyChildSelections(a,!1);if(u){var c=o({},u,{definitions:[].concat(l(u.definitions),[s])});e.props.onCommit(c)}else console.warn("Unable to complete extractFragment operation")},style:o({},c.styles.actionButtonStyle)},s.createElement("span",null,"\u2026")):null),f&&d.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},d.map((function(t){return s.createElement(N,{key:t.name,parentField:r,arg:t,selection:f,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(f&&((0,u.isObjectType)(p)||(0,u.isInterfaceType)(p)||(0,u.isUnionType)(p))){var g=(0,u.isUnionType)(p)?{}:p.getFields(),y=f&&f.selectionSet?f.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+r.name},m,s.createElement("div",{style:{marginLeft:16}},v?v.map((function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(D,{key:r,fragment:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null})):null,Object.keys(g).sort().map((function(n){return s.createElement(t,{key:n,field:g[n],selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})),(0,u.isInterfaceType)(p)||(0,u.isUnionType)(p)?i.getPossibleTypes(p).map((function(t){return s.createElement(I,{key:t.name,implementingType:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null))}return m}}]),t}(s.PureComponent);var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},j=null;function P(e){if(j&&j[0]===e)return j[1];var t=function(e){try{return e.trim()?(0,u.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}(e);return t?t instanceof Error?j?j[1]:R:(j=[e,t],t):R}var V={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},Z=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={newOperationType:"query",displayTitleActions:!1},r._modifySelections=function(e,t){var n=r.props.definition;0===n.selectionSet.selections.length&&r._previousOperationDef&&(n=r._previousOperationDef);var i=void 0;if("FragmentDefinition"===n.kind)i=o({},n,{selectionSet:o({},n.selectionSet,{selections:e})});else if("OperationDefinition"===n.kind){var a=e.filter((function(e){return!("Field"===e.kind&&"__typename"===e.name.value)}));0===a.length&&(a=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),i=o({},n,{selectionSet:o({},n.selectionSet,{selections:a})})}return r.props.onEdit(i,t)},r._onOperationRename=function(e){return r.props.onOperationRename(e.target.value)},r._handlePotentialRun=function(e){(function(e){return e.ctrlKey&&"Enter"===e.key})(e)&&"FragmentDefinition"!==r.props.definition.kind&&r.props.onRunOperation(r.props.name)},r._rootViewElId=function(){var e=r.props;return e.operationType+"-"+(e.name||"unknown")},p(r,n)}return d(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._rootViewElId();this.props.onMount(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.operationType,r=t.definition,i=t.schema,a=t.getDefaultFieldNames,u=t.styleConfig,c=this._rootViewElId(),l=this.props.fields||{},f=r.selectionSet.selections,p=this.props.name||h(n)+" Name";return s.createElement("div",{id:c,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},s.createElement("div",{style:{color:u.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return e.setState({displayTitleActions:!0})},onMouseLeave:function(){return e.setState({displayTitleActions:!1})}},n," ",s.createElement("span",{style:{color:u.colors.def}},s.createElement("input",{style:{color:u.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,p.length)+"ch"},autoComplete:"false",placeholder:h(n)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?s.createElement("span",null,s.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?s.createElement(s.Fragment,null,s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationDestroy()},style:o({},u.styles.actionButtonStyle)},s.createElement("span",null,"\u2715")),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationClone()},style:o({},u.styles.actionButtonStyle)},s.createElement("span",null,"\u2398"))):""),Object.keys(l).sort().map((function(t){return s.createElement(M,{key:t,field:l[t],selections:f,modifySelections:e._modifySelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})))}}]),t}(s.PureComponent);function q(){return s.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},s.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",s.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),s.createElement("div",null,"Contribute on"," ",s.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var U=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={newOperationType:"query",operation:null,operationToScrollTo:null},r._resetScroll=function(){var e=r._ref;e&&(e.scrollLeft=0)},r._onEdit=function(e){return r.props.onEdit(e)},r._setAddOperationType=function(e){r.setState({newOperationType:e})},r._handleRootViewMount=function(e){if(r.state.operationToScrollTo&&r.state.operationToScrollTo===e){var t=".graphiql-explorer-root #"+e,n=document.querySelector(t);n&&n.scrollIntoView()}},p(r,n)}return d(t,e),a(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,i=t.query,a=t.makeDefaultArg;if(!n)return s.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var f={colors:this.props.colors||v,checkboxChecked:this.props.checkboxChecked||y,checkboxUnchecked:this.props.checkboxUnchecked||b,arrowClosed:this.props.arrowClosed||g,arrowOpen:this.props.arrowOpen||m,styles:this.props.styles?o({},V,this.props.styles):V},p=n.getQueryType(),d=n.getMutationType(),_=n.getSubscriptionType();if(!p&&!d&&!_)return s.createElement("div",null,"Missing query type");var k=p&&p.getFields(),T=d&&d.getFields(),w=_&&_.getFields(),x=P(i),S=this.props.getDefaultFieldNames||E,N=this.props.getDefaultScalarArgValue||C,A=x.definitions.map((function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null})).filter(Boolean),O=0===A.length?R.definitions:A,I=[k?s.createElement("option",{key:"query",className:"toolbar-button",style:f.styles.buttonStyle,type:"link",value:"query"},"Query"):null,T?s.createElement("option",{key:"mutation",className:"toolbar-button",style:f.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,w?s.createElement("option",{key:"subscription",className:"toolbar-button",style:f.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),D=0===I.length||this.props.hideActions?null:s.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},s.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:o({},f.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(e){return e.preventDefault()}},s.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),s.createElement("select",{onChange:function(t){return e._setAddOperationType(t.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},I),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.state.newOperationType?function(t){var n=x.definitions,r=1===x.definitions.length&&x.definitions[0]===R.definitions[0],i=r?[]:n.filter((function(e){return"OperationDefinition"===e.kind&&e.operation===t})),a="My"+h(t)+(0===i.length?"":i.length+1),s={kind:"OperationDefinition",operation:t,name:{kind:"Name",value:a},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},c=r?[s]:[].concat(l(x.definitions),[s]),f=o({},x,{definitions:c});e.setState({operationToScrollTo:t+"-"+a}),e.props.onEdit((0,u.print)(f))}(e.state.newOperationType):null},style:o({},f.styles.buttonStyle,{height:"22px",width:"22px"})},s.createElement("span",null,"+")))),L=this.props.externalFragments&&this.props.externalFragments.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(l(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return o({},e,c({},n,i))}return e}),{}),F=O.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(l(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return o({},e,c({},n,i))}return e}),{}),M=o({},F,L),j=this.props.showAttribution?s.createElement(q,null):null;return s.createElement("div",{ref:function(t){e._ref=t},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},s.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},O.map((function(t,i){var c=t&&t.name&&t.name.value,p="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",d="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),h=d instanceof u.GraphQLObjectType?d.getFields():null,v="query"===p?k:"mutation"===p?T:"subscription"===p?w:"FragmentDefinition"===t.kind?h:null,m="FragmentDefinition"===t.kind?t.typeCondition.name.value:null,g=function(t){var n=(0,u.print)(t);e.props.onEdit(n)};return s.createElement(Z,{key:i,isLast:i===O.length-1,fields:v,operationType:p,name:c,definition:t,onOperationRename:function(n){var r=function(e,t){var n=o({},e,{name:null==t||""===t?null:{kind:"Name",value:t,loc:void 0}}),r=x.definitions.map((function(t){return e===t?n:t}));return o({},x,{definitions:r})}(t,n);e.props.onEdit((0,u.print)(r))},onOperationDestroy:function(){var n=function(e){var t=x.definitions.filter((function(t){return e!==t}));return o({},x,{definitions:t})}(t);e.props.onEdit((0,u.print)(n))},onOperationClone:function(){var n=function(t){var n=void 0;n="FragmentDefinition"===t.kind?"fragment":t.operation;var r=(t.name&&t.name.value||"")+"Copy",i=o({},t,{name:{kind:"Name",value:r,loc:void 0}}),a=x.definitions,s=[].concat(l(a),[i]);return e.setState({operationToScrollTo:n+"-"+r}),o({},x,{definitions:s})}(t);e.props.onEdit((0,u.print)(n))},onTypeName:m,onMount:e._handleRootViewMount,onCommit:g,onEdit:function(e,n){var i=void 0;if(i="object"!==("undefined"===typeof n?"undefined":r(n))||"undefined"===typeof n.commit||n.commit,e){var a=o({},x,{definitions:x.definitions.map((function(n){return n===t?e:n}))});return i?(g(a),a):a}return x},schema:n,getDefaultFieldNames:S,getDefaultScalarArgValue:N,makeDefaultArg:a,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(c)},styleConfig:f,availableFragments:M})})),j),D)}}]),t}(s.PureComponent);U.defaultProps={getDefaultFieldNames:E,getDefaultScalarArgValue:C};var B=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1,error:null,errorInfo:null},p(r,n)}return d(t,e),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?s.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},s.createElement("div",null,"Something went wrong"),s.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,s.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(s.Component),z=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),a(t,[{key:"render",value:function(){return s.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},s.createElement("div",{className:"doc-explorer-title-bar"},s.createElement("div",{className:"doc-explorer-title"},this.props.title),s.createElement("div",{className:"doc-explorer-rhs"},s.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"\u2715"))),s.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},s.createElement(B,null,s.createElement(U,this.props))))}}]),t}(s.PureComponent);z.defaultValue=S,z.defaultProps={width:320,title:"Explorer"},t.default=z},42220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,i=n(49814),o=(r=i)&&r.__esModule?r:{default:r};t.Explorer=o.default,t.default=o.default},49445:function(e,t,n){"use strict";n.r(t),n.d(t,{DocExplorer:function(){return H},GraphiQL:function(){return ke},QueryEditor:function(){return h},ToolbarButton:function(){return u},ToolbarGroup:function(){return c},ToolbarMenu:function(){return f},ToolbarMenuItem:function(){return p},ToolbarSelect:function(){return De},ToolbarSelectOption:function(){return Le},VariableEditor:function(){return m},default:function(){return je},fillLeafs:function(){return Ve},getSelectedOperationName:function(){return Ze},mergeAst:function(){return qe},onHasCompletion:function(){return Pe}});var r=n(5057),i=n(17687),o=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function a(){var e=(0,i.useEditorContext)({nonNull:!0}),t=e.queryEditor,n=e.setOperationName,a=(0,i.useExecutionContext)({nonNull:!0}),s=a.isFetching,u=a.operationName,c=a.run,l=a.stop,f=o((0,r.useState)(!1),2),p=f[0],d=f[1],h=o((0,r.useState)(null),2),v=h[0],m=h[1],g=(null===t||void 0===t?void 0:t.operations)||[],y=g.length>1&&"string"!==typeof u;return r.createElement("div",{className:"execute-button-wrap"},r.createElement("button",{type:"button",className:"execute-button",onMouseDown:s||!y||p?void 0:function(e){var t=!0,n=e.currentTarget;m(null),d(!0);var r=function(e){var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||d(!1))};document.addEventListener("mouseup",r)},onClick:s||!y?function(){s?l():c()}:void 0,title:"Execute Query (Ctrl-Enter)"},r.createElement("svg",{width:"34",height:"34"},s?r.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):r.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),y&&p?r.createElement("ul",{className:"execute-options"},g.map((function(e,i){var o=e.name?e.name.value:"<Unnamed ".concat(e.operation,">");return r.createElement("li",{key:"".concat(o,"-").concat(i),className:e===v?"selected":void 0,onMouseOver:function(){return m(e)},onMouseOut:function(){return m(null)},onMouseUp:function(){var r;d(!1);var i=null===(r=e.name)||void 0===r?void 0:r.value;t&&i&&i!==t.operationName&&n(i),c()}},o)}))):null)}var s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){if(e instanceof Error)return void n.setState({error:e});throw e}},n.state={error:null},n}return s(t,e),t.prototype.render=function(){var e=this.state.error;return r.createElement("button",{type:"button",className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(r.Component);function c(e){var t=e.children;return r.createElement("div",{className:"toolbar-button-group"},t)}var l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){d(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return l(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return r.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:d,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,r.createElement("svg",{width:"14",height:"8"},r.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),r.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(r.Component),p=function(e){var t=e.onSelect,n=e.title,i=e.label;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:d,onMouseUp:t,title:n},i)};function d(e){e.preventDefault()}function h(e){var t=(0,i.useQueryEditor)(e);return r.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:t})}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function m(e){var t=e.active,n=v(e,["active"]),o=(0,i.useVariableEditor)(n);return r.createElement("div",{className:"codemirrorWrap",style:{position:t?"relative":"absolute",visibility:t?"visible":"hidden"},ref:o})}var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function y(e){var t=e.active,n=g(e,["active"]),o=(0,i.useHeaderEditor)(n);return r.createElement("div",{className:"codemirrorWrap",style:{position:t?"relative":"absolute",visibility:t?"visible":"hidden"},ref:o})}function b(e){var t=(0,i.useResponseEditor)(e);return r.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}var _=n(10949);function E(e){var t=(0,i.useExplorerContext)({nonNull:!0,caller:E}).push;if(!e.type)return null;var n=e.type;return(0,_.zM)(n)?r.createElement(r.Fragment,null,r.createElement(E,{type:n.ofType}),"!"):(0,_.HG)(n)?r.createElement(r.Fragment,null,"[",r.createElement(E,{type:n.ofType}),"]"):r.createElement("a",{className:"type-name",onClick:function(e){e.preventDefault(),t({name:n.name,def:n})},href:"#"},n.name)}var k=n(56327),T=n(99024),w=function(e){return e?(0,k.S)(e):""};function x(e){var t=e.field;return"defaultValue"in t&&void 0!==t.defaultValue?r.createElement("span",null," = ",r.createElement("span",{className:"arg-default-value"},w((0,T.J)(t.defaultValue,t.type)))):null}function S(e){var t=e.arg,n=e.showDefaultValue;return r.createElement("span",{className:"arg"},r.createElement("span",{className:"arg-name"},t.name),": ",r.createElement(E,{type:t.type}),!1!==n&&r.createElement(x,{field:t}))}function C(e){var t=e.directive;return r.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var N=n(48776),A=new(n.n(N)())({breaks:!0,linkify:!0});function O(e){var t=e.markdown,n=e.className;return t?r.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:A.render(t)}}):r.createElement("div",null)}var I=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function D(){var e,t,n,o,a=(0,i.useExplorerContext)({nonNull:!0}).explorerNavStack,s=I(r.useState(!1),2),u=s[0],c=s[1],l=a[a.length-1].def;if(!l||(0,_.P9)(l))return null;if(l&&"args"in l&&l.args.length>0){t=r.createElement("div",{id:"doc-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"arguments"),l.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement("div",null,r.createElement(S,{arg:e})),r.createElement(O,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(O,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})));var f=l.args.filter((function(e){return Boolean(e.deprecationReason)}));f.length>0&&(n=r.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated arguments"),u?f.map((function(e,t){return r.createElement("div",{key:t},r.createElement("div",null,r.createElement(S,{arg:e})),r.createElement(O,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(O,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})):r.createElement("button",{type:"button",className:"show-btn",onClick:function(){return c(!u)}},"Show deprecated arguments...")))}return(null===(e=null===l||void 0===l?void 0:l.astNode)||void 0===e?void 0:e.directives)&&l.astNode.directives.length>0&&(o=r.createElement("div",{id:"doc-directives",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"directives"),l.astNode.directives.map((function(e){return r.createElement("div",{key:e.name.value,className:"doc-category-item"},r.createElement("div",null,r.createElement(C,{directive:e})))})))),r.createElement("div",null,r.createElement(O,{className:"doc-type-description",markdown:l.description||"No Description"}),l&&"deprecationReason"in l&&r.createElement(O,{className:"doc-deprecation",markdown:l.deprecationReason}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"type"),r.createElement(E,{type:l.type})),t,o,n)}function L(){var e,t,n=(0,i.useSchemaContext)({nonNull:!0}).schema;if(!n)return null;var o=n.getQueryType(),a=null===(e=n.getMutationType)||void 0===e?void 0:e.call(n),s=null===(t=n.getSubscriptionType)||void 0===t?void 0:t.call(n);return r.createElement("div",null,r.createElement(O,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"root types"),o?r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"query"),": ",r.createElement(E,{type:o})):null,a&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"mutation"),": ",r.createElement(E,{type:a})),s&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"subscription"),": ",r.createElement(E,{type:s}))))}var F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){var t=e.currentTarget.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:t.value||""},n.debouncedOnSearch=function(e,t){var n;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=null,t.apply(r,i)}),e)}}(200,n.props.onSearch),n}return F(t,e),t.prototype.render=function(){return r.createElement("label",{className:"search-box"},r.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"\u26b2"),r.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&r.createElement("button",{type:"button",className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"\u2715"))},t}(r.Component),R=M;function j(e){var t=(0,i.useExplorerContext)({nonNull:!0}).push;return r.createElement("a",{className:"field-name",onClick:function(n){n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#"},e.field.name)}var P=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function V(){var e,t,n=(0,i.useExplorerContext)({nonNull:!0}).explorerNavStack,o=(0,i.useSchemaContext)({nonNull:!0}).schema,a=n[n.length-1];if(!o||!a.search)return null;var s=a.search,u=a.def,c=[],l=[],f=[],p=o.getTypeMap(),d=Object.keys(p);u&&(d=d.filter((function(e){return e!==u.name}))).unshift(u.name);var h=function(e){if(c.length+l.length+f.length>=100)return"break";var t=p[e];if(u!==t&&Z(e,s)&&l.push(r.createElement("div",{className:"doc-category-item",key:e},r.createElement(E,{type:t}))),t&&"getFields"in t){var n=t.getFields();Object.keys(n).forEach((function(i){var o,a=n[i];if(!Z(i,s)){if(!("args"in a)||!a.args.length)return;if(0===(o=a.args.filter((function(e){return Z(e.name,s)}))).length)return}var l=r.createElement("div",{className:"doc-category-item",key:e+"."+i},u!==t&&[r.createElement(E,{key:"type",type:t}),"."],r.createElement(j,{field:a}),o&&["(",r.createElement("span",{key:"args"},o.map((function(e){return r.createElement(S,{key:e.name,arg:e,showDefaultValue:!1})}))),")"]);u===t?c.push(l):f.push(l)}))}};try{for(var v=P(d),m=v.next();!m.done;m=v.next()){if("break"===h(m.value))break}}catch(g){e={error:g}}finally{try{m&&!m.done&&(t=v.return)&&t.call(v)}finally{if(e)throw e.error}}return c.length+l.length+f.length===0?r.createElement("span",{className:"doc-alert-text"},"No results found."):u&&l.length+f.length>0?r.createElement("div",null,c,r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"other results"),l,f)):r.createElement("div",{className:"doc-search-items"},c,l,f)}function Z(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(r){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}var q=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function U(){var e=(0,i.useSchemaContext)({nonNull:!0}).schema,t=(0,i.useExplorerContext)({nonNull:!0}).explorerNavStack,n=q((0,r.useState)(!1),2),o=n[0],a=n[1],s=t[t.length-1].def;if(!e||!(0,_.Zs)(s))return null;var u,c,l,f,p,d=null,h=[];if((0,_.EN)(s)?(d="possible types",h=e.getPossibleTypes(s)):(0,_.oT)(s)?(d="implementations",h=e.getPossibleTypes(s)):(0,_.lp)(s)&&(d="implements",h=s.getInterfaces()),h&&h.length>0&&(u=r.createElement("div",{id:"doc-types",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},d),h.map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement(E,{type:e}))})))),s&&"getFields"in s){var v=s.getFields(),m=Object.keys(v).map((function(e){return v[e]}));c=r.createElement("div",{id:"doc-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"fields"),m.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(B,{key:e.name,type:s,field:e})})));var g=m.filter((function(e){return Boolean(e.deprecationReason)}));g.length>0&&(l=r.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated fields"),o?g.map((function(e){return r.createElement(B,{key:e.name,type:s,field:e})})):r.createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated fields...")))}if((0,_.EM)(s)){var y=s.getValues();f=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"values"),y.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return r.createElement(z,{key:e.name,value:e})})));var b=y.filter((function(e){return Boolean(e.deprecationReason)}));b.length>0&&(p=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated values"),o?b.map((function(e){return r.createElement(z,{key:e.name,value:e})})):r.createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated values...")))}return r.createElement("div",null,r.createElement(O,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),(0,_.lp)(s)&&u,c,l,f,p,!(0,_.lp)(s)&&u)}function B(e){var t=e.field;return r.createElement("div",{className:"doc-category-item"},r.createElement(j,{field:t}),"args"in t&&t.args&&t.args.length>0&&["(",r.createElement("span",{key:"args"},t.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(S,{key:e.name,arg:e})}))),")"],": ",r.createElement(E,{type:t.type}),r.createElement(x,{field:t}),t.description&&r.createElement(O,{className:"field-short-description",markdown:t.description}),"deprecationReason"in t&&t.deprecationReason&&r.createElement(O,{className:"doc-deprecation",markdown:t.deprecationReason}))}function z(e){var t=e.value;return r.createElement("div",{className:"doc-category-item"},r.createElement("div",{className:"enum-value"},t.name),r.createElement(O,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&r.createElement(O,{className:"doc-deprecation",markdown:t.deprecationReason}))}function H(e){var t=(0,i.useSchemaContext)({nonNull:!0}),n=t.fetchError,o=t.isFetching,a=t.schema,s=t.validationErrors,u=(0,i.useExplorerContext)({nonNull:!0}),c=u.explorerNavStack,l=u.hide,f=u.pop,p=u.showSearch,d=c[c.length-1],h=void 0===e.schema?a:e.schema,v=null;n?v=r.createElement("div",{className:"error-container"},"Error fetching schema"):s.length>0?v=r.createElement("div",{className:"error-container"},"Schema is invalid: ",s[0].message):o?v=r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})):h?d.search?v=r.createElement(V,null):1===c.length?v=r.createElement(L,null):(0,_.P9)(d.def)?v=r.createElement(U,null):d.def&&(v=r.createElement(D,null)):v=r.createElement("div",{className:"error-container"},"No Schema Available");var m,g=1===c.length||(0,_.P9)(d.def)&&"getFields"in d.def;return c.length>1&&(m=c[c.length-2].name),r.createElement("section",{className:"doc-explorer",key:d.name,"aria-label":"Documentation Explorer"},r.createElement("div",{className:"doc-explorer-title-bar"},m&&r.createElement("button",{type:"button",className:"doc-explorer-back",onClick:f,"aria-label":"Go back to ".concat(m)},m),r.createElement("div",{className:"doc-explorer-title"},d.title||d.name),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var t;l(),null===(t=e.onClose)||void 0===t||t.call(e)},"aria-label":"Close Documentation Explorer"},"\u2715"))),r.createElement("div",{className:"doc-explorer-contents"},g&&r.createElement(R,{value:d.search,placeholder:"Search ".concat(d.name,"..."),onSearch:p}),v))}var G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)},W=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Q(){var e=(0,i.useHistoryContext)({nonNull:!0}),t=e.hide,n=e.items;return r.createElement("section",{"aria-label":"History"},r.createElement("div",{className:"history-title-bar"},r.createElement("div",{className:"history-title"},"History"),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){return t()},"aria-label":"Close History"},"\u2715"))),r.createElement("ul",{className:"history-contents"},n.slice().reverse().map((function(e,t){return r.createElement(X,{key:"".concat(t,":").concat(e.label||e.query),item:e})}))))}function X(e){var t,n=(0,i.useHistoryContext)({nonNull:!0}),o=n.editLabel,a=n.toggleFavorite,s=(0,i.useSelectHistoryItem)(),u=(0,r.useRef)(null),c=W((0,r.useState)(!1),2),l=c[0],f=c[1];(0,r.useEffect)((function(){l&&u.current&&u.current.focus()}),[l]);var p=e.item.label||e.item.operationName||(null===(t=e.item.query)||void 0===t?void 0:t.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),d=e.item.favorite?"\u2605":"\u2606";return r.createElement("li",{className:l?"editable":void 0},l?r.createElement("input",{type:"text",defaultValue:e.item.label,ref:u,onBlur:function(t){t.stopPropagation(),f(!1),o(G(G({},e.item),{label:t.target.value}))},onKeyDown:function(t){13===t.keyCode&&(t.stopPropagation(),f(!1),o(G(G({},e.item),{label:t.currentTarget.value})))},placeholder:"Type a label"}):r.createElement("button",{type:"button",className:"history-label",onClick:function(){s(e.item)}},p),r.createElement("button",{type:"button",onClick:function(e){e.stopPropagation(),f(!0)},"aria-label":"Edit label"},"\u270e"),r.createElement("button",{type:"button",onClick:function(t){t.stopPropagation(),a(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite"},d))}function J(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function Y(e,t){this.v=e,this.k=t}function $(e){var t,n;function r(t,n){try{var o=e[t](n),a=o.value,s=a instanceof Y;Promise.resolve(s?a.v:a).then((function(n){if(s){var u="return"===t?"return":"next";if(!a.k||n.done)return r(u,n);n=e[u](n).value}i(o.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}$.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},$.prototype.next=function(e){return this._invoke("next",e)},$.prototype.throw=function(e){return this._invoke("throw",e)},$.prototype.return=function(e){return this._invoke("return",e)};function K(e){return JSON.stringify(e,null,2)}function ee(e){return e instanceof Error?function(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}(e):e}var te=n(92460),ne=n(23857),re=n(7751),ie=n(60844);function oe(e,t,n){var r,i=[];if(!e||!t)return{insertions:i,result:t};try{r=(0,te.Qc)(t)}catch(s){return{insertions:i,result:t}}var o=n||ae,a=new ne.a(e);return(0,re.Vn)(r,{leave:function(e){a.leave(e)},enter:function(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){var n=se(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){var r=function(e,t){var n=t,r=t;for(;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,k.S)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:i,result:ue(t,i)}}function ae(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach((function(e){(0,_.UT)(t[e].type)&&n.push(e)})),n}function se(e,t){var n=(0,_.xC)(e);if(e&&!(0,_.UT)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:ie.h.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:ie.h.FIELD,name:{kind:ie.h.NAME,value:e},selectionSet:se(i,t)}}))}}}function ue(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach((function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i})),n+=e.slice(r)}var ce=n(68079),le=n(41361);function fe(e,t,n){var r,i,o=n?(0,_.xC)(n).name:null,a=[],s=[],u=(0,le.Z)(t);try{for(u.s();!(i=u.n()).done;){var c=i.value;if("FragmentSpread"===c.kind){var l=c.name.value;if(!c.directives||0===c.directives.length){if(s.indexOf(l)>=0)continue;s.push(l)}var f=e[c.name.value];if(f){var p=f.typeCondition,d=f.directives,h=f.selectionSet;c={kind:ie.h.INLINE_FRAGMENT,typeCondition:p,directives:d,selectionSet:h}}}if(c.kind===ie.h.INLINE_FRAGMENT&&(!c.directives||0===(null===(r=c.directives)||void 0===r?void 0:r.length))){var v=c.typeCondition?c.typeCondition.name.value:null;if(!v||v===o){a.push.apply(a,(0,ce.Z)(fe(e,c.selectionSet.selections,n)));continue}}a.push(c)}}catch(m){u.e(m)}finally{u.f()}return a}function pe(e,t){var n,r=t?new ne.a(t):null,i=Object.create(null),o=(0,le.Z)(e.definitions);try{for(o.s();!(n=o.n()).done;){var a=n.value;a.kind===ie.h.FRAGMENT_DEFINITION&&(i[a.name.value]=a)}}catch(u){o.e(u)}finally{o.f()}var s={SelectionSet:function(e){var t=r?r.getParentType():null,n=e.selections;return n=function(e,t){var n,r,i=new Map,o=[],a=(0,le.Z)(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;if("Field"===s.kind){var c=t(s),l=i.get(c);if(null===(n=s.directives)||void 0===n?void 0:n.length){var f=Object.assign({},s);o.push(f)}else if((null===l||void 0===l?void 0:l.selectionSet)&&s.selectionSet)l.selectionSet.selections=[].concat((0,ce.Z)(l.selectionSet.selections),(0,ce.Z)(s.selectionSet.selections));else if(!l){var p=Object.assign({},s);i.set(c,p),o.push(p)}}else o.push(s)}}catch(u){a.e(u)}finally{a.f()}return o}(n=fe(i,n,t),(function(e){return e.alias?e.alias.value:e.name.value})),Object.assign(Object.assign({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,re.Vn)(e,r?(0,ne.y)(r,s):s)}function de(e,t,n){if(n&&!(n.length<1)){var r=n.map((function(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){var i=e.map((function(e){var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==i&&i<r.length)return r[i]}return r[0]}}var he=function(){return he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},he.apply(this,arguments)};function ve(e){return r.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(t){t.stopPropagation(),e.onClick()}})}function me(e){return r.createElement("button",he({},e.tabProps,{role:"tab",type:"button","aria-selected":e.isActive,title:e.title,className:"tab".concat(e.isActive?" active":""),onClick:e.onSelect}),e.title,e.isCloseable?r.createElement(ve,{onClick:function(){return e.onClose()}}):null)}function ge(e){return r.createElement("button",{type:"button",onClick:e.onClick,className:"tab-add",title:"Create new tab"},r.createElement("span",null,"+"))}function ye(e){return r.createElement("div",he({role:"tablist",className:"tabs"},e.tabsProps),e.children)}var be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_e=function(){return _e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_e.apply(this,arguments)},Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};if(parseInt(r.version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));var ke=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=null,n}return be(t,e),t.prototype.componentDidMount=function(){"undefined"!==typeof window&&(window.g=this)},t.prototype.render=function(){var e=this;return r.createElement(Te,_e({},this.props,{ref:function(t){e.ref=t}}))},t.prototype.getQueryEditor=function(){var e;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getQueryEditor())||null},t.prototype.getVariableEditor=function(){var e;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getVariableEditor())||null},t.prototype.getHeaderEditor=function(){var e;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getHeaderEditor())||null},t.prototype.refresh=function(){var e;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),null===(e=this.ref)||void 0===e||e.refresh()},t.prototype.autoCompleteLeafs=function(){var e;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),null===(e=this.ref)||void 0===e?void 0:e.autoCompleteLeafs()},t.formatResult=function(e){return console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),function(e){return K(e)}(e)},t.formatError=function(e){return console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),function(e){return Array.isArray(e)?K({errors:e.map((function(e){return ee(e)}))}):K({errors:[ee(e)]})}(e)},t.Logo=Se,t.Toolbar=Ce,t.Footer=Ne,t.QueryEditor=h,t.VariableEditor=m,t.HeaderEditor=y,t.ResultViewer=b,t.Button=u,t.ToolbarButton=u,t.Group=c,t.Menu=f,t.MenuItem=p,t}(r.Component),Te=(0,r.forwardRef)((function(e,t){var n=e.dangerouslyAssumeSchemaIsValid,o=e.docExplorerOpen,a=e.externalFragments,s=e.fetcher,u=e.headers,c=e.inputValueDeprecation,l=e.introspectionQueryName,f=e.maxHistoryLength,p=e.onEditOperationName,d=e.onSchemaChange,h=e.onToggleHistory,v=e.onToggleDocs,m=e.operationName,g=e.query,y=e.response,b=e.storage,_=e.schema,E=e.schemaDescription,k=e.shouldPersistHeaders,T=e.validationRules,w=e.variables,x=Ee(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if("function"!==typeof s)throw new TypeError("GraphiQL requires a fetcher function.");return r.createElement(i.StorageContextProvider,{storage:b},r.createElement(i.HistoryContextProvider,{maxHistoryLength:f,onToggle:h},r.createElement(i.EditorContextProvider,{defaultQuery:x.defaultQuery,externalFragments:a,headers:u,onEditOperationName:p,onTabChange:"object"===typeof x.tabs?x.tabs.onTabChange:void 0,query:g,response:y,shouldPersistHeaders:k,validationRules:T,variables:w},r.createElement(i.SchemaContextProvider,{dangerouslyAssumeSchemaIsValid:n,fetcher:s,inputValueDeprecation:c,introspectionQueryName:l,onSchemaChange:d,schema:_,schemaDescription:E},r.createElement(i.ExecutionContextProvider,{fetcher:s,operationName:m},r.createElement(i.ExplorerContextProvider,{isVisible:o,onToggleVisibility:v},r.createElement(we,_e({},x,{ref:t}))))))))})),we=(0,r.forwardRef)((function(e,t){var n=e.getDefaultFieldNames,o=Ee(e,["getDefaultFieldNames"]),a=(0,i.useEditorContext)({nonNull:!0}),s=(0,i.useExecutionContext)({nonNull:!0}),u=(0,i.useExplorerContext)(),c=(0,i.useHistoryContext)(),l=(0,i.useSchemaContext)({nonNull:!0}),f=(0,i.useStorageContext)(),p=(0,i.useAutoCompleteLeafs)({getDefaultFieldNames:n}),d=(0,i.useCopyQuery)({onCopyQuery:o.onCopyQuery}),h=(0,i.useMergeQuery)(),v=(0,i.usePrettifyEditors)(),m=(0,i.useDragResize)({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:(null===u||void 0===u?void 0:u.isVisible)?void 0:"second",onHiddenElementChange:function(e){"second"===e?null===u||void 0===u||u.hide():null===u||void 0===u||u.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),g=(0,i.useDragResize)({direction:"horizontal",storageKey:"editorFlex"}),y=(0,i.useDragResize)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:void 0!==o.defaultVariableEditorOpen?o.defaultVariableEditorOpen?void 0:"second":void 0!==o.defaultSecondaryEditorOpen?o.defaultSecondaryEditorOpen?void 0:"second":a.initialVariables||a.initialHeaders?void 0:"second",sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return r.createElement(xe,_e({},o,{editorContext:a,executionContext:s,explorerContext:u,historyContext:c,schemaContext:l,storageContext:f,autoCompleteLeafs:p,copy:d,merge:h,prettify:v,docResize:m,editorResize:g,secondaryEditorResize:y,ref:t}))})),xe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeSecondaryEditor:"variable"},n}return be(t,e),t.prototype.render=function(){var e,t,n,i,o=this,s=r.Children.toArray(this.props.children),c=J(s,(function(e){return Ae(e,ke.Logo)}))||r.createElement(ke.Logo,null),l=J(s,(function(e){return Ae(e,ke.Toolbar)}))||r.createElement(ke.Toolbar,null,r.createElement(u,{onClick:function(){o.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),r.createElement(u,{onClick:function(){o.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),r.createElement(u,{onClick:function(){o.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),r.createElement(u,{onClick:function(){var e;return null===(e=o.props.historyContext)||void 0===e?void 0:e.toggle()},title:(null===(e=this.props.historyContext)||void 0===e?void 0:e.isVisible)?"Hide History":"Show History",label:"History"}),r.createElement(u,{onClick:function(){return o.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),(null===(t=this.props.toolbar)||void 0===t?void 0:t.additionalContent)?this.props.toolbar.additionalContent:null),f=J(s,(function(e){return Ae(e,ke.Footer)})),p=null===(n=this.props.headerEditorEnabled)||void 0===n||n;return r.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},r.createElement("div",{ref:this.props.docResize.firstRef},(null===(i=this.props.historyContext)||void 0===i?void 0:i.isVisible)&&r.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},r.createElement(Q,null)),r.createElement("div",{className:"editorWrap"},r.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,r.createElement("div",{className:"topBar"},c,r.createElement(a,null),l),this.props.explorerContext&&!this.props.explorerContext.isVisible&&r.createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var e;null===(e=o.props.explorerContext)||void 0===e||e.show(),o.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?r.createElement(ye,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map((function(e,t){return r.createElement(me,{key:e.id,isActive:t===o.props.editorContext.activeTabIndex,title:e.title,isCloseable:o.props.editorContext.tabs.length>1,onSelect:function(){o.props.executionContext.stop(),o.props.editorContext.changeTab(t)},onClose:function(){o.props.editorContext.activeTabIndex===t&&o.props.executionContext.stop(),o.props.editorContext.closeTab(t)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(t)}})})),r.createElement(ge,{onClick:function(){o.props.editorContext.addTab()}})):null,r.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},r.createElement("div",{ref:this.props.editorResize.firstRef},r.createElement("div",{className:"queryWrap"},r.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},r.createElement(h,{editorTheme:this.props.editorTheme,onClickReference:function(){"second"===o.props.docResize.hiddenElement&&o.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),r.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},r.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},r.createElement("div",{className:"variable-editor-title-text".concat("variable"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"variable"},(function(){var e;null===(e=o.props.editorContext.variableEditor)||void 0===e||e.refresh()}))}},"Query Variables"),p&&r.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat("header"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"header"},(function(){var e;null===(e=o.props.editorContext.headerEditor)||void 0===e||e.refresh()}))}},"Request Headers"))),r.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},r.createElement("section",{className:"variable-editor secondary-editor","aria-label":"variable"===this.state.activeSecondaryEditor?"Query Variables":"Request Headers"},r.createElement(m,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:"variable"===this.state.activeSecondaryEditor,keyMap:this.props.keyMap}),p&&r.createElement(y,{active:"header"===this.state.activeSecondaryEditor,editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),r.createElement("div",{ref:this.props.editorResize.dragBarRef},r.createElement("div",{className:"editor-drag-bar"})),r.createElement("div",{ref:this.props.editorResize.secondRef},r.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})),r.createElement(b,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),f))))),r.createElement("div",{ref:this.props.docResize.dragBarRef},r.createElement("div",{className:"docExplorerResizer"})),r.createElement("div",{ref:this.props.docResize.secondRef},r.createElement("div",{className:"docExplorerWrap"},r.createElement(H,{onClose:function(){return o.props.docResize.setHiddenElement("second")}}))))},t.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},t.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},t.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},t.prototype.refresh=function(){var e,t,n,r;null===(e=this.props.editorContext.queryEditor)||void 0===e||e.refresh(),null===(t=this.props.editorContext.variableEditor)||void 0===t||t.refresh(),null===(n=this.props.editorContext.headerEditor)||void 0===n||n.refresh(),null===(r=this.props.editorContext.responseEditor)||void 0===r||r.refresh()},t.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},t}(r.Component);function Se(e){return r.createElement("div",{className:"title"},e.children||r.createElement("span",null,"Graph",r.createElement("em",null,"i"),"QL"))}function Ce(e){return r.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function Ne(e){return r.createElement("div",{className:"footer"},e.children)}function Ae(e,t){var n;return!(!(null===(n=null===e||void 0===e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}Se.displayName="GraphiQLLogo",Ce.displayName="GraphiQLToolbar",Ne.displayName="GraphiQLFooter";var Oe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ie=function(){return Ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ie.apply(this,arguments)};var De=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Fe(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return Oe(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,i=r.Children.map(this.props.children,(function(n,i){var o;if(!function(e){return!(!e||"object"!==typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var a=n.props.onSelect||(null===(o=t.props.onSelect)||void 0===o?void 0:o.bind(null,n.props.value,i));return r.createElement(Le,Ie({},n.props,{onSelect:a}))}));return r.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Fe,ref:function(e){t._node=e},title:this.props.title},null===e||void 0===e?void 0:e.props.label,r.createElement("svg",{width:"13",height:"10"},r.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),r.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),r.createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},i))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(Fe(e),this.setState({visible:!1}),this._release())},t}(r.Component);function Le(e){var t=e.onSelect,n=e.label,i=e.selected;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Fe,onMouseUp:t},n,i&&r.createElement("svg",{width:"13",height:"13"},r.createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\n 10.686,0 13,2.314 4.851,10.462"})))}function Fe(e){e.preventDefault()}var Me=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Re=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},je=ke,Pe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `onHasCompletion` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `onHasCompletion` function provided by the `@graphiql/react` package."),i.onHasCompletion.apply(void 0,Re([],Me(e),!1))},Ve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `fillLeafs` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `fillLeafs` function provided by the `@graphiql/toolkit` package."),oe.apply(void 0,Re([],Me(e),!1))},Ze=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `getSelectedOperationName` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `getSelectedOperationName` function provided by the `@graphiql/toolkit` package."),de.apply(void 0,Re([],Me(e),!1))},qe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `mergeAst` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `mergeAst` function provided by the `@graphiql/toolkit` package."),pe.apply(void 0,Re([],Me(e),!1))}},86373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var r,i=(r=n(36382))&&r.__esModule?r:{default:r}},36382:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={common:{black:"#000",white:"#fff"},primary:{main:"#3773F2",contrastText:"#fff"},secondary:{main:"#16CED1",contrastText:"#fff"},error:{main:"#F16E6E",contrastText:"#fff"},warning:{main:"#DE9E37",contrastText:"#fff"},info:{main:"#0775F8",contrastText:"#fff"},success:{main:"#34BE74",contrastText:"#fff"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{default:"#fff"},did:{primary:"#4598FA",secondary:"#49C3AD"}};t.default=n},66044:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={styled:!0,useTheme:!0,ThemeProvider:!0};Object.defineProperty(t,"ThemeProvider",{enumerable:!0,get:function(){return s.default}}),t.styled=void 0,Object.defineProperty(t,"useTheme",{enumerable:!0,get:function(){return i.useTheme}});var i=n(18537),o=n(57976);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a,s=(a=n(674))&&a.__esModule?a:{default:a};function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){return e.startsWith("$")};t.styled=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.styled)(e,c(c({},t),{},{shouldForwardProp:function(e){return t.shouldForwardProp?t.shouldForwardProp(e)&&!f(e):!f(e)}}))}},674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=c(n(55898)),i=n(18537),o=c(n(51909)),a=c(n(52010)),s=n(57976),u=n(96266);function c(e){return e&&e.__esModule?e:{default:e}}var l=(0,s.createTheme)();function f(e){var t=e.children,n=e.theme,r=e.injectFirst;return(0,u.jsx)(o.default,{injectFirst:r,children:(0,u.jsxs)(i.ThemeProvider,{theme:n,children:[(0,u.jsx)(a.default,{}),t]})})}f.propTypes={children:r.default.any,theme:r.default.any,injectFirst:r.default.bool},f.defaultProps={children:null,theme:l,injectFirst:!0}},57976:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=t.create=void 0;var r=n(18537);n(7865),n(7091);var i,o=(i=n(86373))&&i.__esModule?i:{default:i},a=["mode","pageWidth","palette","typography","overrides"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=(0,r.createTheme)({palette:{mode:"dark"}}),p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mode,n=void 0===t?"light":t,i=e.pageWidth,s=void 0===i?"md":i,c=e.palette,p=e.typography,d=e.overrides,h=l(e,a),v="light"===n?Object.assign(u(u({},o.default),{},{background:{paper:o.default.common.white,default:o.default.background.default},mode:n}),c||{}):Object.assign(u(u({},f.palette),{},{background:{paper:o.default.grey[900],default:o.default.grey[900]},mode:n}),c||{}),m=(0,r.createTheme)(u({themeName:"ArcBlock",palette:v,typography:Object.assign({useNextVariants:!0,color:{main:"light"===n?"#222222":o.default.common.white,gray:"light"===n?o.default.grey[500]:o.default.grey[300]},fontFamily:["Lato","Avenir","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontWeightLight:400,fontWeightRegular:400,fontWeightMedium:700,fontWeightBold:700,button:{fontWeight:700}},p||{}),components:u({MuiButton:{styleOverrides:{root:{boxShadow:"none"}}},MuiButtonGroup:{styleOverrides:{root:{boxShadow:"none"}}},MuiTableCell:{styleOverrides:{root:{borderBottomWidth:"0",paddingTop:"14px",paddingBottom:"14px",paddingLeft:0,paddingRight:"30px"},head:{textTransform:"uppercase",color:"light"===n?o.default.grey[900]:o.default.grey[300]},body:{color:"light"===n?o.default.grey[900]:o.default.grey[300]}}}},d),pageWidth:s,colors:{white:"#FFFFFF",dark:"#4A707C",gray:"#222222",minor:"#9B9B9B",darkText:"#DCDCDC",background:"#F7F8F8",yellow:"#FFCF71",green:"#44cdc6",red:"#D0021B",blue:"#4E6AF6",primary:"#222222",black:"#222222",secondary:"#44cdc6",mint:"#44cdc6",textSecondary:"#4A4A4A",active:"#5b9025",danger:"#D0021B",lightGrey:"#BCBCBC"},mode:n},h));return(0,r.responsiveFontSizes)(m,{breakpoints:["xs","sm","md","lg"],disableAlign:!1,factor:3,variants:["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]})};t.create=p;var d=p;t.createTheme=d},3044:function(e,t,n){"use strict";var r=n(43111).default;Object.defineProperty(t,"__esModule",{value:!0}),t.appendParams=void 0,t.detectWalletExtension=u,t.formatToDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=t.tz;return s("ll")(e,{locale:n,tz:r})},t.formatToDatetime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=t.tz;return s("lll")(e,{locale:n,tz:r})},t.getColor=t.getBackground=t.formatUptime=void 0,t.getCookieOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={expireInDays:e};"object"===typeof e&&(t=e);void 0===t.path&&(t.path="/");t.expireInDays||(t.expireInDays=1);var n={expires:t.expireInDays,path:t.path,domain:t.domain||"",sameSite:t.sameSite||"lax"};if("undefined"===typeof window||t.domain||!1===t.returnDomain)return!1===t.returnDomain&&delete n.domain,n;return n},t.getCopyright=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2017,t=(new Date).getFullYear();return"".concat(t)==="".concat(e)?"\xa9 ArcBlock ".concat(t):"\xa9 ArcBlock ".concat(e," - ").concat(t)},t.getDateTool=function(){return a},t.isEthereumDid=t.getUserAvatar=t.getTimezone=t.getFontSize=void 0,t.mergeProps=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e);Object.keys(t.defaultProps||{}).forEach((function(e){"string"===typeof r[e]&&0===r[e].indexOf("::prop::")&&(r[e]=t.defaultProps[e])})),Array.isArray(n)&&n.forEach((function(e){if("string"===typeof r[e])try{r[e]=JSON.parse(r[e])}catch(t){}}));return Object.keys(r).forEach((function(e){"string"===typeof r[e]&&0===r[e].indexOf("::prop::")&&(r[e]="")})),r},t.openWebWallet=function(e){var t=e.webWalletUrl,n=e.action,r=void 0===n?"login":n,i=e.locale,o=void 0===i?"en":i,a=e.url,s=e.windowFeatures,c=u();if(c)return void c.open({action:r,locale:o,url:encodeURIComponent(a)});var l="".concat(t,"?action=").concat(r,"&locale=").concat(o,"&url=").concat(encodeURIComponent(a)),f=Object.assign({},{toolbar:"no",location:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:414,height:736},s);if(!("left"in f)){var p=(h=window.top||window).innerWidth||h.document.documentElement.clientWidth||h.document.body.clientWidth,d=window.screenLeft||window.screenX;f.left=p+d-f.width}var h;if(!("top"in f)){var v=window.screenTop||window.screenY;f.top=v}var m=Object.keys(f).map((function(e){return"".concat(e,"=").concat(f[e])})).join(",");window.open(l,"targetWindow",m)},t.parseQuery=function(e){return e.replace(/^\?/,"").split("&").map((function(e){return e.split("=")})).filter((function(e){return!!r(e,1)[0]})).reduce((function(e,t){var n=t[0],r=decodeURIComponent(t[1])||!0;return e[n]=r,e}),{})},t.setDateTool=function(e){a=e},t.str2color=t.sleep=void 0,t.stringifyQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new URLSearchParams(e).toString()};var i,o=(i=n(47289))&&i.__esModule?i:{default:i};var a=null;t.getColor=function(e){return e.color?e.color:e.dark?e.theme.palette.common.white:e.theme.palette.text.primary};t.getBackground=function(e){return e.background?e.background:e.dark?e.theme.palette.common.black:e.theme.palette.common.white};t.getTimezone=function(){return"object"===typeof Intl&&"function"===typeof Intl.DateTimeFormat&&"function"===typeof Intl.DateTimeFormat().resolvedOptions?Intl.DateTimeFormat().resolvedOptions().timeZone:""};t.str2color=function(e){for(var t=0,n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);for(var r="#",i=0;i<3;i++){r+="00".concat((t>>8*i&255).toString(16)).substr(-2)}return r};t.formatUptime=function(e){var t=Math.round(e/1e3),n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),i=t%60;return"".concat((0,o.default)(n,2,"0"),":").concat((0,o.default)(r,2,"0"),":").concat((0,o.default)(i,2,"0"))};var s=function(e){return function(t,n){var r=n.locale,i=n.tz;if(null===a)throw new Error("call setDateTool to set the date tool library, such as: setDateTool(dayjs)");if(!t)return"-";var o=a(t);return i&&(o=o.tz(i)),"undefined"!==typeof r&&(o=o.locale(r)),o.format(e)}};function u(){var e,t=(null===(e=window)||void 0===e?void 0:e.ABT_DEV)||window.ABT;return t&&"function"===typeof t.open?t:null}t.getFontSize=function(e){return e&&Number(e)>=12?"".concat(Number(e),"px"):"inherit"};t.isEthereumDid=function(e){var t=e.replace("did:abt:","");return!!/^(0x)?[0-9a-f]{40}$/i.test(t)};var c=function(e,t){if(!t)return e;try{var n=new URL(e,window.location.origin);return Object.keys(t).forEach((function(e){n.searchParams.set(e,t[e])})),n.origin===window.location.origin?n.pathname+n.search:n.href}catch(r){return e}};t.appendParams=c;t.getUserAvatar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:48;return e&&e.indexOf("/.well-known/service")>=0?c(e,{imageFilter:"resize",w:t,h:t}):e};t.sleep=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t){setTimeout((function(){t()}),e)}))}},52010:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.ZP}});var r=n(17369)},51909:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(178)},74031:function(e){e.exports=function(){"use strict";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),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),l=!o&&/Chrome\/(\d+)/.exec(e),f=l&&+l[1],p=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),v=/PhantomJS/.test(e),m=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),y=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),_=/\bCrOS\b/.test(e),E=/win/i.test(t),k=p&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(p=!1,u=!0);var T=b&&(c||p&&(null==k||k<12.11)),w=n||a&&s>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,C=function(e,t){var n=e.className,r=x(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:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return N(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.length;++o)i.appendChild(t[o]);return i}function I(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function F(e,t){var n=e.className;x(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!x(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var R=function(e){e.select()};function j(e){return e.display.wrapper.ownerDocument}function P(e){return j(e).defaultView}function V(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Z(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function q(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=function(e){try{e.select()}catch(t){}});var U=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var z=50,H={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},W={origin:"*mouse"},Q={origin:"+move"};function X(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var J=[""];function Y(e){for(;J.length<=e;)J.push($(J)+" ");return J[e]}function $(e){return e[e.length-1]}function K(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&Z(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 ue(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&ue(e.charAt(t));)t+=n;return t}function le(e,t,n){for(var r=t>n?-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 fe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||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")}var pe=null;function de(e,t,n){var r;pe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function u(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var l=e.length,f=[],p=0;p<l;++p)f.push(n(e.charCodeAt(p)));for(var d=0,h=c;d<l;++d){var v=f[d];"m"==v?f[d]=h:h=v}for(var m=0,g=c;m<l;++m){var y=f[m];"1"==y&&"r"==g?f[m]="n":o.test(y)&&(g=y,"r"==y&&(f[m]="R"))}for(var b=1,_=f[0];b<l-1;++b){var E=f[b];"+"==E&&"1"==_&&"1"==f[b+1]?f[b]="1":","!=E||_!=f[b+1]||"1"!=_&&"n"!=_||(f[b]=_),_=E}for(var k=0;k<l;++k){var T=f[k];if(","==T)f[k]="N";else if("%"==T){var w=void 0;for(w=k+1;w<l&&"%"==f[w];++w);for(var x=k&&"!"==f[k-1]||w<l&&"1"==f[w]?"1":"N",S=k;S<w;++S)f[S]=x;k=w-1}}for(var C=0,N=c;C<l;++C){var A=f[C];"L"==N&&"1"==A?f[C]="L":o.test(A)&&(N=A)}for(var O=0;O<l;++O)if(i.test(f[O])){var I=void 0;for(I=O+1;I<l&&i.test(f[I]);++I);for(var D="L"==(O?f[O-1]:c),L=D==("L"==(I<l?f[I]:c))?D?"L":"R":c,F=O;F<I;++F)f[F]=L;O=I-1}for(var M,R=[],j=0;j<l;)if(a.test(f[j])){var P=j;for(++j;j<l&&a.test(f[j]);++j);R.push(new u(0,P,j))}else{var V=j,Z=R.length,q="rtl"==t?1:0;for(++j;j<l&&"L"!=f[j];++j);for(var U=V;U<j;)if(s.test(f[U])){V<U&&(R.splice(Z,0,new u(1,V,U)),Z+=q);var B=U;for(++U;U<j&&s.test(f[U]);++U);R.splice(Z,0,new u(2,B,U)),Z+=q,V=U}else++U;V<j&&R.splice(Z,0,new u(1,V,j))}return"ltr"==t&&(1==R[0].level&&(M=e.match(/^\s+/))&&(R[0].from=M[0].length,R.unshift(new u(0,0,M[0].length))),1==$(R).level&&(M=e.match(/\s+$/))&&($(R).to-=M[0].length,R.push(new u(0,l-M[0].length,l)))),"rtl"==t?R.reverse():R}}();function ve(e,t){var n=e.order;return null==n&&(n=e.order=he(e.text,t)),n}var me=[],ge=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||me).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||me}function be(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function _e(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ee(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),_e(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function ke(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function Te(e,t){return ye(e,t).length>0}function we(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){xe(e),Se(e)}function Ae(e){return e.target||e.srcElement}function Oe(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}var Ie,De,Le=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==Ie){var t=O("span","\u200b");A(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ie=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ie?O("span","\u200b"):O("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=De)return De;var t=A(e,document.createTextNode("A\u062eA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(De=r.right-n.right<3)}var Re=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/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe=function(){var e=O("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ve=null;function Ze(e){if(null!=Ve)return Ve;var t=A(e,O("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Ve=Math.abs(n.left-r.left)>1}var qe={},Ue={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function ze(e,t){Ue[e]=t}function He(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return He("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return He("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=He(t);var n=qe[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(We.hasOwnProperty(t.name)){var i=We[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}var We={};function Qe(e,t){Z(t,We.hasOwnProperty(e)?We[e]:We[e]={})}function Xe(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 Je(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 Ye(e,t,n){return!e.startState||e.startState(t,n)}var $e=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};function Ke(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<o){n=i;break}t-=o}return n.lines[t]}function et(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function tt(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function nt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function rt(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function it(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function ot(e,t){return t>=e.first&&t<e.first+e.size}function at(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function st(e,t,n){if(void 0===n&&(n=null),!(this instanceof st))return new st(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ut(e,t){return e.line-t.line||e.ch-t.ch}function ct(e,t){return e.sticky==t.sticky&&0==ut(e,t)}function lt(e){return st(e.line,e.ch)}function ft(e,t){return ut(e,t)<0?t:e}function pt(e,t){return ut(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return st(e.first,0);var n=e.first+e.size-1;return t.line>n?st(n,Ke(e,n).text.length):vt(t,Ke(e,t.line).text.length)}function vt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function mt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ht(e,t[r]);return n}$e.prototype.eol=function(){return this.pos>=this.string.length},$e.prototype.sol=function(){return this.pos==this.lineStart},$e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$e.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},$e.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$e.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$e.prototype.skipToEnd=function(){this.pos=this.string.length},$e.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$e.prototype.backUp=function(e){this.pos-=e},$e.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},$e.prototype.indentation=function(){return q(this.string,null,this.tabSize)-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},$e.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},$e.prototype.current=function(){return this.string.slice(this.start,this.pos)},$e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function bt(e,t,n,r){var i=[e.state.modeGen],o={};Nt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],u=1,c=0;n.state=!0,Nt(e,t.text,s.mode,n,(function(e,t){for(var n=u;c<e;){var r=i[u];r>e&&i.splice(u,1,e,i[u+1],r),u+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},u=0;u<e.state.overlays.length;++u)s(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function _t(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Et(e,rt(t)),i=t.text.length>e.options.maxHighlightLength&&Xe(e.doc.mode,r.state),o=bt(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 Et(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new yt(r,!0,t);var o=At(e,t,n),a=o>r.first&&Ke(r,o-1).stateAfter,s=a?yt.fromSaved(r,a,o):new yt(r,Ye(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&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function kt(e,t,n,r){var i=e.doc.mode,o=new $e(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Tt(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Je(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.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}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,n){return t instanceof gt?new yt(e,Xe(e.mode,t.state),n,t.lookAhead):new yt(e,Xe(e.mode,t),n)},yt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o,a=e.doc,s=a.mode,u=Ke(a,(t=ht(a,t)).line),c=Et(e,t.line,n),l=new $e(u.text,e.options.tabSize,c);for(r&&(o=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,i=wt(s,l,c.state),r&&o.push(new xt(l,i,Xe(a.mode,c.state)));return r?o:new xt(l,i,c.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Nt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var u,c=0,l=null,f=new $e(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Ct(Tt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&kt(e,t,r,f.pos),f.pos=t.length,u=null):u=Ct(wt(n,f,r.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||l!=u){for(;c<f.start;)i(c=Math.min(f.start,c+5e3),l);l=u}f.start=f.pos}for(;c<f.pos;){var h=Math.min(f.pos,c+5e3);i(h,l),c=h}}function At(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var u=Ke(o,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof gt?c.lookAhead:0)<=o.modeFrontier))return s;var l=q(u.text,null,e.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ke(e,r).stateAfter;if(i&&(!(i instanceof gt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var It=!1,Dt=!1;function Lt(){It=!0}function Ft(){Dt=!0}function Mt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Pt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Vt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Mt(a,o.from,s?null:o.to))}}return r}function Zt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=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.from<t);(r||(r=[])).push(new Mt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function qt(e,t){if(t.full)return null;var n=ot(e,t.from.line)&&Ke(e,t.from.line).markedSpans,r=ot(e,t.to.line)&&Ke(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ut(t.from,t.to),s=Vt(n,i,a),u=Zt(r,o,a),c=1==t.text.length,l=$(t.text).length+(c?i:0);if(s)for(var f=0;f<s.length;++f){var p=s[f];if(null==p.to){var d=Rt(u,p.marker);d?c&&(p.to=null==d.to?null:d.to+l):p.to=i}}if(u)for(var h=0;h<u.length;++h){var v=u[h];null!=v.to&&(v.to+=l),null==v.from?Rt(s,v.marker)||(v.from=l,c&&(s||(s=[])).push(v)):(v.from+=l,c&&(s||(s=[])).push(v))}s&&(s=Ut(s)),u&&u!=s&&(u=Ut(u));var m=[s];if(!c){var g,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(g||(g=[])).push(new Mt(s[b].marker,null,null));for(var _=0;_<y;++_)m.push(g);m.push(u)}return m}function Ut(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Bt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),u=0;u<i.length;++u){var c=i[u];if(!(ut(c.to,s.from)<0||ut(c.from,s.to)>0)){var l=[u,1],f=ut(c.from,s.from),p=ut(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&l.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&l.push({from:s.to,to:c.to}),i.splice.apply(i,l),u+=l.length-3}}return i}function zt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ht(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Gt(e){return e.inclusiveLeft?-1:0}function Wt(e){return e.inclusiveRight?1:0}function Qt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ut(r.from,i.from)||Gt(e)-Gt(t);if(o)return-o;var a=ut(r.to,i.to)||Wt(e)-Wt(t);return a||t.id-e.id}function Xt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Qt(n,i.marker)<0)&&(n=i.marker);return n}function Jt(e){return Xt(e,!0)}function Yt(e){return Xt(e,!1)}function $t(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Qt(n,o.marker)<0)&&(n=o.marker)}return n}function Kt(e,t,n,r,i){var o=Ke(e,t),a=Dt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var c=u.marker.find(0),l=ut(c.from,n)||Gt(u.marker)-Gt(i),f=ut(c.to,r)||Wt(u.marker)-Wt(i);if(!(l>=0&&f<=0||l<=0&&f>=0)&&(l<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ut(c.to,n)>=0:ut(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ut(c.from,r)<=0:ut(c.from,r)<0)))return!0}}}function en(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function tn(e){for(var t;t=Yt(e);)e=t.find(1,!0).line;return e}function nn(e){for(var t,n;t=Yt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function rn(e,t){var n=Ke(e,t),r=en(n);return n==r?t:rt(r)}function on(e,t){if(t>e.lastLine())return t;var n,r=Ke(e,t);if(!an(e,r))return t;for(;n=Yt(r);)r=n.find(1,!0).line;return rt(r)+1}function an(e,t){var n=Dt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&sn(e,t,r))return!0}}function sn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return sn(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&sn(e,t,i))return!0}function un(e){for(var t=0,n=(e=en(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function cn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Yt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Ke(n,n.first),t.maxLineLength=cn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=cn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var fn=function(e,t,n){this.text=e,Ht(this,t),this.height=n?n(this):1};function pn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),zt(e),Ht(e,n);var i=r?r(e):1;i!=e.height&&nt(e,i)}function dn(e){e.parent=null,zt(e)}fn.prototype.lineNo=function(){return rt(this)},we(fn);var hn={},vn={};function mn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?vn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=I("span",null,null,u?"padding-right: .1px":null),r={pre:I("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=bn,Me(e.display.measure)&&(a=ve(o,e.doc.direction))&&(r.addToken=En(r.addToken,a)),r.map=[],Tn(o,r,_t(e,o,t!=e.display.externalMeasured&&rt(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(Fe(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(u){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 _e(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function yn(e){var t=O("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function bn(e,t,n,r,i,o,u){if(t){var c,l=e.splitSpaces?_n(t,e.trailingSpace):t,f=e.cm.state.specialChars,p=!1;if(f.test(t)){c=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var h=f.exec(t),v=h?h.index-d:t.length-d;if(v){var m=document.createTextNode(l.slice(d,d+v));a&&s<9?c.appendChild(O("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!h)break;d+=v+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=c.appendChild(O("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=c.appendChild(O("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(O("span",[g])):c.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,c=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||i||p||o||u){var _=n||"";r&&(_+=r),i&&(_+=i);var E=O("span",[c],_,o);if(u)for(var k in u)u.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&E.setAttribute(k,u[k]);return e.content.appendChild(E)}e.content.appendChild(c)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o="\xa0"),r+=o,n=" "==o}return r}function En(e,t){return function(n,r,i,o,a,s,u){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,l=c+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>c&&f.from<=c);p++);if(f.to>=l)return e(n,r,i,o,a,s,u);e(n,r.slice(0,f.to-c),i,o,null,s,u),o=null,r=r.slice(f.to-c),c=f.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 Tn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,u,c,l,f,p,d=i.length,h=0,v=1,m="",g=0;;){if(g==h){u=c=l=s="",p=null,f=null,g=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var E=r[_],k=E.marker;if("bookmark"==k.type&&E.from==h&&k.widgetNode)y.push(k);else if(E.from<=h&&(null==E.to||E.to>h||k.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,c=""),k.className&&(u+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&E.from==h&&(l+=" "+k.startStyle),k.endStyle&&E.to==g&&(b||(b=[])).push(k.endStyle,E.to),k.title&&((p||(p={})).title=k.title),k.attributes)for(var T in k.attributes)(p||(p={}))[T]=k.attributes[T];k.collapsed&&(!f||Qt(f.marker,k)<0)&&(f=E)}else E.from>h&&g>E.from&&(g=E.from)}if(b)for(var w=0;w<b.length;w+=2)b[w+1]==g&&(c+=" "+b[w]);if(!f||f.from==h)for(var x=0;x<y.length;++x)kn(t,0,y[x]);if(f&&(f.from||0)==h){if(kn(t,(null==f.to?d+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(m){var C=h+m.length;if(!f){var N=C>S?m.slice(0,S-h):m;t.addToken(t,N,a?a+u:u,l,h+N.length==g?c:"",s,p)}if(C>=S){m=m.slice(S-h),h=S;break}h=C,l=""}m=i.slice(o,o=n[v++]),a=mn(n[v++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),mn(n[A+1],t.cm.options))}function wn(e,t,n){this.line=t,this.rest=nn(t),this.size=this.rest?rt($(this.rest))-n+1:1,this.node=this.text=null,this.hidden=an(e,t)}function xn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new wn(e.doc,Ke(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Sn=null;function Cn(e){Sn?Sn.ops.push(e):e.ownsGroup=Sn={ops:[e],delayedCallbacks:[]}}function Nn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function An(e,t){var n=e.ownsGroup;if(n)try{Nn(n)}finally{Sn=null,t(n)}}var On=null;function In(e,t){var n=ye(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Sn?r=Sn.delayedCallbacks:On?r=On:(r=On=[],setTimeout(Dn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function Dn(){var e=On;On=null;for(var t=0;t<e.length;++t)e[t]()}function Ln(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?jn(e,t):"gutter"==o?Vn(e,t,n,r):"class"==o?Pn(e,t):"widget"==o&&Zn(e,t,r)}t.changes=null}function Fn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Mn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Fn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Rn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):gn(e,t)}function jn(e,t){var n=t.text.className,r=Rn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Pn(e,t)):n&&(t.text.className=n)}function Pn(e,t){Mn(e,t),t.line.wrapClass?Fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Vn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Fn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Fn(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",at(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.display.gutterSpecs.length;++u){var c=e.display.gutterSpecs[u].className,l=o.hasOwnProperty(c)&&o[c];l&&s.appendChild(O("div",[l],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Zn(e,t,n){t.alignable&&(t.alignable=null);for(var r=x("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Un(e,t,n)}function qn(e,t,n,r){var i=Rn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Pn(e,t),Vn(e,t,n,r),Un(e,t,r),t.node}function Un(e,t,n){if(Bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Bn(e,t.rest[r],t,n,!1)}function Bn(e,t,n,r,i){if(t.widgets)for(var o=Fn(n),a=0,s=t.widgets;a<s.length;++a){var u=s[a],c=O("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),zn(u,c,n,r),e.display.input.setUneditable(c),i&&u.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),In(u,"redraw")}}function zn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Hn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,t){for(var n=Ae(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Wn(e){return e.lineSpace.offsetTop}function Qn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Xn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Jn(e){return z-e.display.nativeBarWidth}function Yn(e){return e.display.scroller.clientWidth-Jn(e)-e.display.barWidth}function $n(e){return e.display.scroller.clientHeight-Jn(e)-e.display.barHeight}function Kn(e,t,n){var r=e.options.lineWrapping,i=r&&Yn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var u=a[s],c=a[s+1];Math.abs(u.bottom-c.bottom)>2&&o.push((u.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function er(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(rt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function tr(e,t){var n=rt(t=en(t)),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var i=r.built=gn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}function nr(e,t,n,r){return or(e,ir(e,t),n,r)}function rr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Pr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function ir(e,t){var n=rt(t),r=rr(e,n);r&&!r.text?r=null:r&&r.changes&&(Ln(e,r,n,Lr(e)),e.curOp.forceUpdate=!0),r||(r=tr(e,t));var i=er(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function or(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Kn(e,t.view,t.rect),t.hasHeights=!0),(o=lr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var ar,sr={left:0,right:0,top:0,bottom:0};function ur(e,t,n){for(var r,i,o,a,s,u,c=0;c<e.length;c+=3)if(s=e[c],u=e[c+1],t<s?(i=0,o=1,a="left"):t<u?o=1+(i=t-s):(c==e.length-3||t==u&&e[c+3]>t)&&(i=(o=u-s)-1,t>=u&&(a="right")),null!=i){if(r=e[c+2],s==u&&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==u-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:u}}function cr(e,t){var n=sr;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function lr(e,t,n,r){var i,o=ur(t.map,n,r),u=o.node,c=o.start,l=o.end,f=o.collapse;if(3==u.nodeType){for(var p=0;p<4;p++){for(;c&&ue(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+l<o.coverEnd&&ue(t.line.text.charAt(o.coverStart+l));)++l;if((i=a&&s<9&&0==c&&l==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():cr(S(u,c,l).getClientRects(),r)).left||i.right||0==c)break;l=c,c-=1,f="right"}a&&s<11&&(i=fr(e.display.measure,i))}else{var d;c>0&&(f=r="right"),i=e.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=u.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Dr(e.display),top:h.top,bottom:h.bottom}:sr}for(var v=i.top-t.rect.top,m=i.bottom-t.rect.top,g=(v+m)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var _=b?y[b-1]:0,E=y[b],k={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:_,bottom:E};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=v,k.rbottom=m),k}function fr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ze(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function pr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)pr(e.display.view[t])}function hr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function vr(e){return l&&g?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function mr(e){return l&&g?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function gr(e){var t=en(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Hn(t[r]));return n}function yr(e,t,n,r,i){if(!i){var o=gr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=un(t);if("local"==r?a+=Wn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:mr(j(e)));var u=s.left+("window"==r?0:vr(j(e)));n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function br(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=vr(j(e)),i-=mr(j(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function _r(e,t,n,r,i){return r||(r=Ke(e.doc,t.line)),yr(e,r,nr(e,r,t.ch,i),n)}function Er(e,t,n,r,i,o){function a(t,a){var s=or(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,yr(e,r,s,n)}r=r||Ke(e.doc,t.line),i||(i=ir(e,r));var s=ve(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function l(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=de(s,u,c),p=pe,d=l(u,f,"before"==c);return null!=p&&(d.other=l(u,p,"before"!=c)),d}function kr(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Dr(e.display)*t.ch);var r=Ke(e.doc,t.line),i=un(r)+Wn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Tr(e,t,n,r,i){var o=st(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function wr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Tr(r.first,0,null,-1,-1);var i=it(r,n),o=r.first+r.size-1;if(i>o)return Tr(r.first+r.size-1,Ke(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ke(r,i);;){var s=Nr(e,a,i,t,n),u=$t(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var c=u.find(1);if(c.line==i)return c;a=Ke(r,i=c.line)}}function xr(e,t,n,r){r-=gr(t);var i=t.text.length,o=le((function(t){return or(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=le((function(t){return or(e,n,t).top>r}),o,i)}}function Sr(e,t,n,r){return n||(n=ir(e,t)),xr(e,t,n,yr(e,t,or(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 Nr(e,t,n,r,i){i-=un(t);var o=ir(e,t),a=gr(t),s=0,u=t.text.length,c=!0,l=ve(t,e.doc.direction);if(l){var f=(e.options.lineWrapping?Or:Ar)(e,t,n,o,l,r,i);s=(c=1!=f.level)?f.from:f.to-1,u=c?f.to:f.from-1}var p,d,h=null,v=null,m=le((function(t){var n=or(e,o,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,v=n),!0)}),s,u),g=!1;if(v){var y=r-v.left<v.right-r,b=y==c;m=h+(b?0:1),d=b?"after":"before",p=y?v.left:v.right}else{c||m!=u&&m!=s||m++,d=0==m?"after":m==t.text.length?"before":or(e,o,m-(c?1:0)).bottom+a<=i==c?"after":"before";var _=Er(e,st(n,m,d),"line",t,o);p=_.left,g=i<_.top?-1:i>=_.bottom?1:0}return Tr(n,m=ce(t.text,m,1),d,g,r-p)}function Ar(e,t,n,r,i,o,a){var s=le((function(s){var u=i[s],c=1!=u.level;return Cr(Er(e,st(n,c?u.to:u.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var c=1!=u.level,l=Er(e,st(n,c?u.from:u.to,c?"after":"before"),"line",t,r);Cr(l,o,a,!0)&&l.top>a&&(u=i[s-1])}return u}function Or(e,t,n,r,i,o,a){var s=xr(e,t,r,a),u=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var l=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=c||d.to<=u)){var h=or(e,r,1!=d.level?Math.min(c,d.to)-1:Math.max(u,d.from)).right,v=h<o?o-h+1e9:h-o;(!l||f>v)&&(l=d,f=v)}}return l||(l=i[i.length-1]),l.from<u&&(l={from:u,to:l.to,level:l.level}),l.to>c&&(l={from:l.from,to:c,level:l.level}),l}function Ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ar){ar=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ar.appendChild(document.createTextNode("x")),ar.appendChild(O("br"));ar.appendChild(document.createTextNode("x"))}A(e.measure,ar);var n=ar.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function Dr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Lr(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:Fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Mr(e){var t=Ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Dr(e.display)-3);return function(i){if(an(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Rr(e){var t=e.doc,n=Mr(e);t.iter((function(e){var t=n(e);t!=e.height&&nt(e,t)}))}function jr(e,t,n,r){var i=e.display;if(!n&&"true"==Ae(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(f){return null}var u,c=wr(e,o,a);if(r&&c.xRel>0&&(u=Ke(e.doc,c.line).text).length==c.ch){var l=q(u,u.length,e.options.tabSize)-u.length;c=st(c.line,Math.max(0,Math.round((o-Xn(e.display).left)/Dr(e.display))-l))}return c}function Pr(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;r<n.length;r++)if((t-=n[r].size)<0)return r}function Vr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Dt&&rn(e.doc,t)<i.viewTo&&qr(e);else if(n<=i.viewFrom)Dt&&on(e.doc,n+r)>i.viewFrom?qr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)qr(e);else if(t<=i.viewFrom){var o=Ur(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):qr(e)}else if(n>=i.viewTo){var a=Ur(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):qr(e)}else{var s=Ur(e,t,t,-1),u=Ur(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(xn(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):qr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Zr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==B(a,n)&&a.push(n)}}}function qr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ur(e,t,n,r){var i,o=Pr(e,t),a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u<o;u++)s+=a[u].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;rn(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 Br(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=xn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=xn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Pr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(xn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Pr(e,n)))),r.viewTo=n}function zr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Hr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Gr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var u=n.sel.ranges[s];if(!(u.from().line>=e.display.viewTo||u.to().line<e.display.viewFrom)){var c=u.empty();if(a){var l=a(e,u);l&&Wr(e,l,i)}else(c||e.options.showCursorWhenSelecting)&&Wr(e,u.head,i);c||Xr(e,u,o)}}return r}function Wr(e,t,n){var r=Er(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div","\xa0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=_r(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(O("div","\xa0","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 Qr(e,t){return e.top-t.top||e.left-t.left}function Xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xn(e.display),s=a.left,u=Math.max(r.sizerWidth,Yn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function l(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=Ke(i,t),p=f.text.length;function d(n,r){return _r(e,st(t,n),"div",f,r)}function h(t,n,r){var i=Sr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var v=ve(f,i.direction);return fe(v,n||0,null==r?p:r,(function(e,t,i,f){var m="ltr"==i,g=d(e,m?"left":"right"),y=d(t-1,m?"right":"left"),b=null==n&&0==e,_=null==r&&t==p,E=0==f,k=!v||f==v.length-1;if(y.top-g.top<=3){var T=(c?_:b)&&k,w=(c?b:_)&&E?s:(m?g:y).left,x=T?u:(m?y:g).right;l(w,g.top,x-w,g.bottom)}else{var S,C,N,A;m?(S=c&&b&&E?s:g.left,C=c?u:h(e,i,"before"),N=c?s:h(t,i,"after"),A=c&&_&&k?u:y.right):(S=c?h(e,i,"before"):s,C=!c&&b&&E?u:g.right,N=!c&&_&&k?s:y.left,A=c?h(t,i,"after"):u),l(S,g.top,C-S,g.bottom),g.bottom<y.top&&l(s,g.bottom,null,y.top),l(N,y.top,A-N,y.bottom)}(!o||Qr(g,o)<0)&&(o=g),Qr(y,o)<0&&(o=y),(!a||Qr(g,a)<0)&&(a=g),Qr(y,a)<0&&(a=y)})),{start:o,end:a}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=Ke(i,p.line),v=Ke(i,d.line),m=en(h)==en(v),g=f(p.line,p.ch,m?h.text.length+1:null).end,y=f(d.line,m?0:null,d.ch).start;m&&(g.top<y.top-2?(l(g.right,g.top,null,g.bottom),l(s,y.top,y.left,y.bottom)):l(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&l(s,g.bottom,null,y.top)}n.appendChild(o)}function Jr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||ei(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Yr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Kr(e))}function $r(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ei(e))}),100)}function Kr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(_e(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(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Jr(e))}function ei(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ti(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,u=0;u<t.view.length;u++){var c=t.view[u],l=e.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var d=c.node.offsetTop+c.node.offsetHeight;f=d-n,n=d}else{var h=c.node.getBoundingClientRect();f=h.bottom-h.top,!l&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var v=c.line.height-f;if((v>.005||v<-.005)&&(i<r&&(o-=v),nt(c.line,f),ni(c.line),c.rest))for(var m=0;m<c.rest.length;m++)ni(c.rest[m]);if(p>e.display.sizerWidth){var g=Math.ceil(p/Dr(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ni(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ri(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Wn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=it(t,r),a=it(t,i);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<o?(o=s,a=it(t,un(Ke(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=it(t,un(Ke(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function ii(e,t){if(!Ee(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!v){var a=O("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Wn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function oi(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Er(e,t),u=n&&n!=t?Er(e,n):s,c=si(e,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),l=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(hi(e,c.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(mi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ai(e,t){var n=si(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&mi(e,n.scrollLeft)}function si(e,t){var n=e.display,r=Ir(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=$n(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Qn(n),u=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=u?0:t.top;else if(t.bottom>i+o){var l=Math.min(t.top,(c?s:t.bottom)-o);l!=i&&(a.scrollTop=l)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Yn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+f-(h?0:10)):t.right>d+p-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function ui(e,t){null!=t&&(pi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){pi(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||pi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function fi(e,t){pi(e),e.curOp.scrollToPos=t}function pi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,di(e,kr(e,t.from),kr(e,t.to),t.margin))}function di(e,t,n,r){var i=si(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 hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Hi(e,{top:t}),vi(e,t,!0),n&&Hi(e),ji(e,100))}function vi(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 mi(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,Xi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Qn(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+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var yi=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),ge(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ge(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yi.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}},yi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new U,this.disableVert=new U},yi.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.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},yi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bi=function(){};function _i(e,t){t||(t=gi(e));var n=e.display.barWidth,r=e.display.barHeight;Ei(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ti(e),Ei(e,gi(e)),n=e.display.barWidth,r=e.display.barHeight}function Ei(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=""}bi.prototype.update=function(){return{bottom:0,right:0}},bi.prototype.setScrollLeft=function(){},bi.prototype.setScrollTop=function(){},bi.prototype.clear=function(){};var ki={native:yi,null:bi};function Ti(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(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),ge(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?mi(e,t):hi(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var wi=0;function xi(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:++wi,markArrays:null},Cn(e.curOp)}function Si(e){var t=e.curOp;t&&An(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ci(e)}))}function Ci(e){for(var t=e.ops,n=0;n<t.length;n++)Ni(t[n]);for(var r=0;r<t.length;r++)Ai(t[r]);for(var i=0;i<t.length;i++)Oi(t[i]);for(var o=0;o<t.length;o++)Ii(t[o]);for(var a=0;a<t.length;a++)Di(t[a])}function Ni(e){var t=e.cm,n=t.display;Zi(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Vi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ai(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function Oi(e){var t=e.cm,n=t.display;e.updatedDisplay&&ti(t),e.barMeasure=gi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=nr(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+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ii(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&mi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L(j(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&_i(t,e.barMeasure),e.updatedDisplay&&Qi(t,e.barMeasure),e.selectionChanged&&Jr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Yr(e.cm)}function Di(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&zi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&vi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&mi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ii(t,oi(t,ht(r,e.scrollToPos.from),ht(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||_e(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&_e(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&_e(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Li(e,t){if(e.curOp)return t();xi(e);try{return t()}finally{Si(e)}}function Fi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);xi(e);try{return t.apply(e,arguments)}finally{Si(e)}}}function Mi(e){return function(){if(this.curOp)return e.apply(this,arguments);xi(this);try{return e.apply(this,arguments)}finally{Si(this)}}}function Ri(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);xi(t);try{return e.apply(this,arguments)}finally{Si(t)}}}function ji(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,V(Pi,e))}function Pi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Et(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?Xe(t.mode,r.state):null,u=bt(e,o,r,!0);s&&(r.state=s),o.styles=u.styles;var c=o.styleClasses,l=u.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&kt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ji(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Li(e,(function(){for(var t=0;t<i.length;t++)Zr(e,i[t],"text")}))}}var Vi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ri(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Yn(e),this.force=n,this.dims=Lr(e),this.events=[]};function Zi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Jn(e)+"px",t.scrollbarsClipped=!0)}function qi(e){if(e.hasFocus())return null;var t=L(j(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=P(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ui(e){if(e&&e.activeElt&&e.activeElt!=L(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Bi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return qr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==zr(e))return!1;Ji(e)&&(qr(e),t.dims=Lr(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.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Dt&&(o=rn(e.doc,o),a=on(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Br(e,o,a),n.viewOffset=un(Ke(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=zr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=qi(e);return u>4&&(n.lineDiv.style.display="none"),Gi(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ji(e,400)),n.updateLineNumbers=null,!0}function zi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Yn(e))r&&(t.visible=ri(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Qn(e.display)-$n(e),n.top)}),t.visible=ri(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Bi(e,t))break;ti(e);var i=gi(e);Hr(e),_i(e,i),Qi(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 Hi(e,t){var n=new Vi(e,t);if(Bi(e,n)){ti(e),zi(e,n);var r=gi(e);Hr(e),_i(e,r),Qi(e,r),n.finish()}}function Gi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,l=r.viewFrom,f=0;f<c.length;f++){var p=c[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=i&&null!=t&&t<=l&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(d=!1),Ln(e,p,l,n)),d&&(N(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(at(e.options,l)))),a=p.node.nextSibling}else{var h=qn(e,p,l,n);o.insertBefore(h,a)}l+=p.size}for(;a;)a=s(a)}function Wi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",In(e,"gutterChanged",e)}function Qi(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+Jn(e)+"px"}function Xi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Fr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ji(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=at(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Wi(e.display),!0}return!1}function Yi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function $i(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(O("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Wi(e)}function Ki(e){$i(e.display),Vr(e),Xi(e)}function eo(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=I("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=I("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=I("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[c],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),l&&f>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Yi(i.gutters,i.lineNumbers),$i(o),r.init(o)}Vi.prototype.signal=function(e,t){Te(e,t)&&this.events.push(arguments)},Vi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)_e.apply(null,this.events[e])};var to=0,no=null;function ro(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function io(e){var t=ro(e);return t.x*=no,t.y*=no,t}function oo(e,t){l&&102==f&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=ro(t),i=r.x,o=r.y,a=no;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,d=c.scrollWidth>c.clientWidth,h=c.scrollHeight>c.clientHeight;if(i&&d||o&&h){if(o&&b&&u)e:for(var v=t.target,m=s.view;v!=c;v=v.parentNode)for(var g=0;g<m.length;g++)if(m[g].node==v){e.display.currentWheelTarget=v;break e}if(i&&!n&&!p&&null!=a)return o&&h&&hi(e,Math.max(0,c.scrollTop+o*a)),mi(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&h)&&xe(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,_=e.doc.scrollTop,E=_+s.wrapper.clientHeight;y<0?_=Math.max(0,_+y-50):E=Math.min(e.doc.height,E+y+50),Hi(e,{top:_,bottom:E})}to<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(no=(no*to+n)/(to+1),++to)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?no=-.53:n?no=15:l?no=-.7:d&&(no=-1/3);var ao=function(e,t){this.ranges=e,this.primIndex=t};ao.prototype.primary=function(){return this.ranges[this.primIndex]},ao.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ct(n.anchor,r.anchor)||!ct(n.head,r.head))return!1}return!0},ao.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new so(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new ao(e,this.primIndex)},ao.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ao.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ut(t,r.from())>=0&&ut(e,r.to())<=0)return n}return-1};var so=function(e,t){this.anchor=e,this.head=t};function uo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ut(e.from(),t.from())})),n=B(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],u=ut(s.to(),a.from());if(r&&!a.empty()?u>0:u>=0){var c=pt(s.from(),a.from()),l=ft(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new so(f?l:c,f?c:l))}}return new ao(t,n)}function co(e,t){return new ao([new so(e,t||e)],0)}function lo(e){return e.text?st(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function fo(e,t){if(ut(e,t.from)<0)return e;if(ut(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),st(n,r)}function po(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new so(fo(i.anchor,t),fo(i.head,t)))}return uo(e.cm,n,e.sel.primIndex)}function ho(e,t,n){return e.line==t.line?st(n.line,e.ch-t.ch+n.ch):st(n.line+(e.line-t.line),e.ch)}function vo(e,t,n){for(var r=[],i=st(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],u=ho(s.from,i,o),c=ho(lo(s),i,o);if(i=s.to,o=c,"around"==n){var l=e.sel.ranges[a],f=ut(l.head,l.anchor)<0;r[a]=new so(f?c:u,f?u:c)}else r[a]=new so(u,u)}return new ao(r,e.sel.primIndex)}function mo(e){e.doc.mode=Ge(e.options,e.doc.modeOption),go(e)}function go(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ji(e,100),e.state.modeGen++,e.curOp&&Vr(e)}function yo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==$(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function bo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){pn(e,n,i,r),In(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new fn(c[o],i(o),r));return n}var s=t.from,u=t.to,c=t.text,l=Ke(e,s.line),f=Ke(e,u.line),p=$(c),d=i(c.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(yo(e,t)){var v=a(0,c.length-1);o(f,f.text,d),h&&e.remove(s.line,h),v.length&&e.insert(s.line,v)}else if(l==f)if(1==c.length)o(l,l.text.slice(0,s.ch)+p+l.text.slice(u.ch),d);else{var m=a(1,c.length-1);m.push(new fn(p+l.text.slice(u.ch),d,r)),o(l,l.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,m)}else if(1==c.length)o(l,l.text.slice(0,s.ch)+c[0]+f.text.slice(u.ch),i(0)),e.remove(s.line+1,h);else{o(l,l.text.slice(0,s.ch)+c[0],i(0)),o(f,p+f.text.slice(u.ch),d);var g=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}In(e,"change",e,t)}function _o(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var u=o&&s.sharedHist;n&&!u||(t(s.doc,u),r(s.doc,e,u))}}}r(e,null,!0)}function Eo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Rr(e),mo(e),ko(e),e.options.direction=t.direction,e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Vr(e)}function ko(e){("rtl"==e.doc.direction?F:C)(e.display.lineDiv,"CodeMirror-rtl")}function To(e){Li(e,(function(){ko(e),Vr(e)}))}function wo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function xo(e,t){var n={from:lt(t.from),to:lo(t),text:et(e,t.from,t.to)};return Do(e,n,t.from.line,t.to.line+1),_o(e,(function(e){return Do(e,n,t.from.line,t.to.line+1)}),!0),n}function So(e){for(;e.length&&$(e).ranges;)e.pop()}function Co(e,t){return t?(So(e.done),$(e.done)):e.done.length&&!$(e.done).ranges?$(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}function No(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==ut(t.from,t.to)&&0==ut(t.from,a.to)?a.to=lo(t):o.changes.push(xo(e,t));else{var u=$(i.done);for(u&&u.ranges||Io(e.sel,i.done),o={changes:[xo(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||_e(e,"historyAdded")}function Ao(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 Oo(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||Ao(e,o,$(i.done),t))?i.done[i.done.length-1]=t:Io(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&So(i.undone)}function Io(e,t){var n=$(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Do(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 Lo(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Fo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Lo(n[i]));return r}function Mo(e,t){var n=Fo(e,t),r=qt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var u=a[s],c=0;c<o.length;++c)if(o[c].marker==u.marker)continue e;o.push(u)}else a&&(n[i]=a)}return n}function Ro(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ao.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var c=a[u],l=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var f in c)(l=f.match(/^spans_(\d+)$/))&&B(t,Number(l[1]))>-1&&($(s)[f]=c[f],delete c[f])}}}return r}function jo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ut(t,i)<0;o!=ut(n,i)<0?(i=t,t=n):o!=ut(t,n)<0&&(t=n)}return new so(i,t)}return new so(n||t,t)}function Po(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),zo(e,new ao([jo(e.sel.primary(),t,n,i)],0),r)}function Vo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=jo(e.sel.ranges[o],t[o],null,i);zo(e,uo(e.cm,r,e.sel.primIndex),n)}function Zo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,zo(e,uo(e.cm,i,e.sel.primIndex),r)}function qo(e,t,n,r){zo(e,co(t,n),r)}function Uo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new so(ht(e,t[n].anchor),ht(e,t[n].head))},origin:n&&n.origin};return _e(e,"beforeSelectionChange",e,r),e.cm&&_e(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?uo(e.cm,r.ranges,r.ranges.length-1):t}function Bo(e,t,n){var r=e.history.done,i=$(r);i&&i.ranges?(r[r.length-1]=t,Ho(e,t,n)):zo(e,t,n)}function zo(e,t,n){Ho(e,t,n),Oo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ho(e,t,n){(Te(e,"beforeSelectionChange")||e.cm&&Te(e.cm,"beforeSelectionChange"))&&(t=Uo(e,t,n));var r=n&&n.bias||(ut(t.primary().head,e.sel.primary().head)<0?-1:1);Go(e,Qo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ci(e.cm)}function Go(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ke(e.cm)),In(e,"cursorActivity",e))}function Wo(e){Go(e,Qo(e,e.sel,null,!1))}function Qo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=Jo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?u:Jo(e,a.head,s&&s.head,n,r);(i||u!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new so(u,c))}return i?uo(e.cm,i,t.primIndex):t}function Xo(e,t,n,r,i){var o=Ke(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],u=s.marker,c="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,l="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l?s.to>=t.ch:s.to>t.ch))){if(i&&(_e(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),p=void 0;if((r<0?l:c)&&(f=Yo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=ut(f,n))&&(r<0?p<0:p>0))return Xo(e,f,t,r,i)}var d=u.find(r<0?-1:1);return(r<0?c:l)&&(d=Yo(e,d,r,d.line==t.line?o:null)),d?Xo(e,d,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Xo(e,t,n,o,i)||!i&&Xo(e,t,n,o,!0)||Xo(e,t,n,-o,i)||!i&&Xo(e,t,n,-o,!0);return a||(e.cantEdit=!0,st(e.first,0))}function Yo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,st(t.line-1)):null:n>0&&t.ch==(r||Ke(e,t.line)).text.length?t.line<e.first+e.size-1?st(t.line+1,0):null:new st(t.line,t.ch+n)}function $o(e){e.setSelection(st(e.firstLine(),0),st(e.lastLine()),G)}function Ko(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ht(e,t)),n&&(r.to=ht(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),_e(e,"beforeChange",e,r),e.cm&&_e(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ea(e,t,n){if(e.cm){if(!e.cm.curOp)return Fi(e.cm,ea)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"))||(t=Ko(e,t,!0))){var r=It&&!n&&Bt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ta(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ta(e,t)}}function ta(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ut(t.from,t.to)){var n=po(e,t);No(e,t,n,e.cm?e.cm.curOp.id:NaN),ia(e,t,n,qt(e,t));var r=[];_o(e,(function(e,n){n||-1!=B(r,e.history)||(ca(e.history,t),r.push(e.history)),ia(e,t,null,qt(e,t))}))}}function na(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,u="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Io(i,u),n&&!i.equals(e.sel))return void zo(e,i,{clearRedo:!1});a=i}var l=[];Io(a,u),u.push({changes:l,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,f&&!Ko(e,r,!1))return s.length=0,{};l.push(xo(e,r));var o=n?po(e,r):$(s);ia(e,r,o,Mo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:lo(r)});var a=[];_o(e,(function(e,t){t||-1!=B(a,e.history)||(ca(e.history,r),a.push(e.history)),ia(e,r,null,Mo(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=p(d);if(h)return h.v}}}}function ra(e,t){if(0!=t&&(e.first+=t,e.sel=new ao(K(e.sel.ranges,(function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Zr(e.cm,r,"gutter")}}function ia(e,t,n,r){if(e.cm&&!e.cm.curOp)return Fi(e.cm,ia)(e,t,n,r);if(t.to.line<e.first)ra(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ra(e,i),t={from:st(e.first,0),to:st(t.to.line+i,t.to.ch),text:[$(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:st(o,Ke(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),n||(n=po(e,t)),e.cm?oa(e.cm,t,r):bo(e,t,r),Ho(e,n,G),e.cantEdit&&Jo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function oa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=rt(en(Ke(r,o.line))),r.iter(u,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ke(e),bo(r,t,n,Mr(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,(function(e){var t=cn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Ot(r,o.line),ji(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Vr(e):o.line!=a.line||1!=t.text.length||yo(e.doc,t)?Vr(e,o.line,a.line+1,c):Zr(e,o.line,"text");var l=Te(e,"changes"),f=Te(e,"change");if(f||l){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&In(e,"change",e,p),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function aa(e,t,n,r,i){var o;r||(r=n),ut(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ea(e,{from:n,to:r,text:t,origin:i})}function sa(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ua(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)sa(o.ranges[s].anchor,t,n,r),sa(o.ranges[s].head,t,n,r)}else{for(var u=0;u<o.changes.length;++u){var c=o.changes[u];if(n<c.from.line)c.from=st(c.from.line+r,c.from.ch),c.to=st(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ca(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ua(e.done,n,r,i),ua(e.undone,n,r,i)}function la(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ke(e,dt(e,t)):i=rt(t),null==i?null:(r(o,i)&&e.cm&&Zr(e.cm,i,n),o)}function fa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function pa(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}so.prototype.from=function(){return pt(this.anchor,this.head)},so.prototype.to=function(){return ft(this.anchor,this.head)},so.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,dn(i),In(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},pa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof fa))){var s=[];this.collapse(s),this.children=[new fa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var u=new fa(i.lines.slice(s,s+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new pa(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new pa(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var da=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ha(e,t,n){un(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ui(e,n)}function va(e,t,n,r){var i=new da(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),la(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!an(e,t)){var r=un(t)<e.scrollTop;nt(t,t.height+Hn(i)),r&&ui(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&In(o,"lineWidgetAdded",o,i,"number"==typeof t?t:rt(t)),i}da.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=rt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Hn(this);nt(n,Math.max(0,n.height-o)),e&&(Li(e,(function(){ha(e,n,-o),Zr(e,r,"widget")})),In(e,"lineWidgetCleared",e,this,r))}},da.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Hn(this)-t;i&&(an(this.doc,r)||nt(r,r.height+i),n&&Li(n,(function(){n.curOp.forceUpdate=!0,ha(n,r,i),In(n,"lineWidgetChanged",n,e,rt(r))})))},we(da);var ma=0,ga=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ma};function ya(e,t,n,r,i){if(r&&r.shared)return _a(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Fi(e.cm,ya)(e,t,n,r,i);var o=new ga(e,i),a=ut(t,n);if(r&&Z(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=I("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Kt(e,t.line,t,n,o)||t.line!=n.line&&Kt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ft()}o.addToHistory&&No(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,c=e.cm;if(e.iter(u,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&en(r)==c.display.maxLine&&(s=!0),o.collapsed&&u!=t.line&&nt(r,0),Pt(r,new Mt(o,u==t.line?t.ch:null,u==n.line?n.ch:null),e.cm&&e.cm.curOp),++u})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){an(e,t)&&nt(t,0)})),o.clearOnEnter&&ge(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Lt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ma,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Vr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=t.line;l<=n.line;l++)Zr(c,l,"text");o.atomic&&Wo(c.doc),In(c,"markerAdded",c,o)}return o}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&xi(e),Te(this,"clear")){var n=this.find();n&&In(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Rt(a.markedSpans,this);e&&!this.collapsed?Zr(e,rt(a),"text"):e&&(null!=s.to&&(i=rt(a)),null!=s.from&&(r=rt(a))),a.markedSpans=jt(a.markedSpans,s),null==s.from&&this.collapsed&&!an(this.doc,a)&&e&&nt(a,Ir(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=en(this.lines[u]),l=cn(c);l>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Vr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wo(e.doc)),e&&In(e,"markerCleared",e,this,r,i),t&&Si(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Rt(o.markedSpans,this);if(null!=a.from&&(n=st(t?o:rt(o),a.from),-1==e))return n;if(null!=a.to&&(r=st(t?o:rt(o),a.to),1==e))return r}return n&&{from:n,to:r}},ga.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Li(r,(function(){var i=t.line,o=rt(t.line),a=rr(r,o);if(a&&(pr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!an(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var u=Hn(n)-s;u&&nt(i,i.height+u)}In(r,"markerChanged",r,e)}))},ga.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ga.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(ga);var ba=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _a(e,t,n,r,i){(r=Z(r)).shared=!1;var o=[ya(e,t,n,r,i)],a=o[0],s=r.widgetNode;return _o(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ya(e,ht(e,t),ht(e,n),r,i));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=$(o)})),new ba(o,a)}function Ea(e){return e.findMarks(st(e.first,0),e.clipPos(st(e.lastLine())),(function(e){return e.parent}))}function ka(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ut(o,a)){var s=ya(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Ta(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];_o(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();In(this,"clear")}},ba.prototype.find=function(e,t){return this.primary.find(e,t)},we(ba);var wa=0,xa=function e(t,n,r,i,o){if(!(this instanceof e))return new e(t,n,r,i,o);null==r&&(r=0),pa.call(this,[new fa([new fn("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=st(r,0);this.sel=co(a),this.history=new wo(null),this.id=++wa,this.modeOption=n,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),bo(this,{from:a,to:a,text:t}),zo(this,co(a),G)};xa.prototype=ne(pa.prototype,{constructor:xa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=tt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Ri((function(e){var t=st(this.first,0),n=this.first+this.size-1;ea(this,{from:t,to:st(n,Ke(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&li(this.cm,0,0),zo(this,co(t),G)})),replaceRange:function(e,t,n,r){aa(this,e,t=ht(this,t),n=n?ht(this,n):t,r)},getRange:function(e,t,n){var r=et(this,ht(this,e),ht(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(ot(this,e))return Ke(this,e)},getLineNumber:function(e){return rt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ke(this,e)),en(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ri((function(e,t,n){qo(this,ht(this,"number"==typeof e?st(e,t||0):e),null,n)})),setSelection:Ri((function(e,t,n){qo(this,ht(this,e),ht(this,t||e),n)})),extendSelection:Ri((function(e,t,n){Po(this,ht(this,e),t&&ht(this,t),n)})),extendSelections:Ri((function(e,t){Vo(this,mt(this,e),t)})),extendSelectionsBy:Ri((function(e,t){Vo(this,mt(this,K(this.sel.ranges,e)),t)})),setSelections:Ri((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new so(ht(this,e[i].anchor),ht(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),zo(this,uo(this.cm,r,t),n)}})),addSelection:Ri((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new so(ht(this,e),ht(this,t||e))),zo(this,uo(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=et(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=et(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Ri((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&vo(this,r,t),u=r.length-1;u>=0;u--)ea(this,r[u]);s?Bo(this,s):this.cm&&ci(this.cm)})),undo:Ri((function(){na(this,"undo")})),redo:Ri((function(){na(this,"redo")})),undoSelection:Ri((function(){na(this,"undo",!0)})),redoSelection:Ri((function(){na(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.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new wo(this.history),_o(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(e){var t=this.history=new wo(this.history);t.done=Ro(e.done.slice(0),null,!0),t.undone=Ro(e.undone.slice(0),null,!0)},setGutterMarker:Ri((function(e,t,n){return la(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Ri((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&la(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!ot(this,e))return null;if(t=e,!(e=Ke(this,e)))return null}else if(null==(t=rt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ri((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(x(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Ri((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(x(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Ri((function(e,t,n){return va(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ya(this,ht(this,e),ht(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ya(this,e=ht(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ke(this,(e=ht(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(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<a.length;s++){var u=a[s];null!=u.to&&i==e.line&&e.ch>=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ht(this,st(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new xa(tt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new xa(tt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ka(r,Ea(this)),r},unlinkDoc:function(e){if(e instanceof Vs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ta(Ea(this));break}if(e.history==this.history){var n=[e.id];_o(e,(function(e){return n.push(e.id)}),!0),e.history=new wo(null),e.history.done=Ro(this.history.done,n),e.history.undone=Ro(this.history.undone,n)}},iterLinkedDocs:function(e){_o(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ri((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&To(this.cm))}))}),xa.prototype.eachLine=xa.prototype.iter;var Sa=0;function Ca(e){var t=this;if(Oa(t),!Ee(t,e)&&!Gn(t.display,e)){xe(e),a&&(Sa=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,u=function(){++s==i&&Fi(t,(function(){var e={from:n=ht(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ea(t.doc,e),Bo(t.doc,co(ht(t.doc,n),ht(t.doc,lo(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),u()},r.readAsText(e)}},l=0;l<r.length;l++)c(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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 p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),Ho(t.doc,co(n,n)),p)for(var d=0;d<p.length;++d)aa(t.doc,"",p[d].anchor,p[d].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(h){}}}}function Na(e,t){if(a&&(!e.state.draggingText||+new Date-Sa<100))Ne(t);else if(!Ee(e,t)&&!Gn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}function Aa(e,t){var n=jr(e,t);if(n){var r=document.createDocumentFragment();Wr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}function Oa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ia(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Da=!1;function La(){Da||(Fa(),Da=!0)}function Fa(){var e;ge(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ia(Ma)}),100))})),ge(window,"blur",(function(){return Ia(ei)}))}function Ma(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ra={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Ra[ja+48]=Ra[ja+96]=String(ja);for(var Pa=65;Pa<=90;Pa++)Ra[Pa]=String.fromCharCode(Pa);for(var Va=1;Va<=12;Va++)Ra[Va+111]=Ra[Va+63235]="F"+Va;var Za={};function qa(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ua(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=K(n.split(" "),qa),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var u=t[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Ba(e,t,n,r){var i=(t=Wa(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ba(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ba(e,t.fallthrough[o],n,r);if(a)return a}}}function za(e){var t="string"==typeof e?e:Ra[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ha(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(T?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(T?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ga(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Ra[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ha(n,e,t))}function Wa(e){return"string"==typeof e?Za[e]:e}function Qa(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ut(o.from,$(r).to)<=0;){var a=r.pop();if(ut(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Li(e,(function(){for(var t=r.length-1;t>=0;t--)aa(e.doc,"",r[t].from,r[t].to,"+delete");ci(e)}))}function Xa(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Xa(e,t.ch,n);return null==r?null:new st(t.line,r,n<0?"after":"before")}function Ya(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ve(n,t.doc.direction);if(o){var a,s=i<0?$(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ir(t,n);a=i<0?n.text.length-1:0;var l=or(t,c,a).top;a=le((function(e){return or(t,c,e).top==l}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Xa(n,a,1))}else a=i<0?s.to:s.from;return new st(r,a,u)}}return new st(r,i<0?n.text.length:0,i<0?"before":"after")}function $a(e,t,n,r){var i=ve(t,e.doc.direction);if(!i)return Ja(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 o=de(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ja(t,n,r);var s,u=function(e,n){return Xa(t,e instanceof st?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||ir(e,t),Sr(e,t,s,n)):{begin:0,end:t.text.length}},l=c("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=l.end:p>=a.from&&p>=l.begin)){var d=f?"before":"after";return new st(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new st(n.line,u(e,1),"before"):new st(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:u(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},v=h(o+r,r,l);if(v)return v;var m=r>0?l.end:u(l.begin,-1);return null==m||r>0&&m==t.text.length||!(v=h(r>0?0:i.length-1,r,c(m)))?null:v}Za.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"},Za.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"},Za.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"},Za.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"]},Za.default=b?Za.macDefault:Za.pcDefault;var Ka={selectAll:$o,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Qa(e,(function(t){if(t.empty()){var n=Ke(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:st(t.head.line+1,0)}:{from:t.head,to:st(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Qa(e,(function(t){return{from:st(t.from().line,0),to:ht(e.doc,st(t.to().line+1,0))}}))},delLineLeft:function(e){return Qa(e,(function(e){return{from:st(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Qa(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Qa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(st(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(st(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ns(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),Q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),Q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ns(e,t.head):r}),Q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=q(e.getLine(o.line),o.ch,r);t.push(Y(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Li(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ke(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new st(i.line,i.ch-1)),i.ch>0)i=new st(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ke(e.doc,i.line-1).text;a&&(i=new st(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),st(i.line-1,a.length-1),i,"+transpose"))}n.push(new so(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Li(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<t.length;r++)e.indentLine(t[r].from().line,null,!0);ci(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function es(e,t){var n=Ke(e.doc,t),r=en(n);return r!=n&&(t=rt(r)),Ya(!0,e,r,t,1)}function ts(e,t){var n=Ke(e.doc,t),r=tn(n);return r!=n&&(t=rt(r)),Ya(!0,e,n,t,-1)}function ns(e,t){var n=es(e,t.line),r=Ke(e.doc,n.line),i=ve(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return st(n.line,a?0:o,n.sticky)}return n}function rs(e,t,n){if("string"==typeof t&&!(t=Ka[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function is(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ba(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ba(t,e.options.extraKeys,n,e)||Ba(t,e.options.keyMap,n,e)}var os=new U;function as(e,t,n,r){var i=e.state.keySeq;if(i){if(za(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:os.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ss(e,i+" "+t,n,r))return!0}return ss(e,t,n,r)}function ss(e,t,n,r){var i=is(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&In(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),Jr(e)),!!i}function us(e,t){var n=Ga(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?as(e,"Shift-"+n,t,(function(t){return rs(e,t,!0)}))||as(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return rs(e,t)})):as(e,n,t,(function(t){return rs(e,t)})))}function cs(e,t,n){return as(e,"'"+n+"'",t,(function(t){return rs(e,t,!0)}))}var ls=null;function fs(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=L(j(t)),!Ee(t,e))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=us(t,e);p&&(ls=i?r:null,i||88!=r||Pe||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ps(t)}}function ps(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n))}F(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}function ds(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ee(this,e)}function hs(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(Gn(t.display,e)||Ee(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==ls)return ls=null,void xe(e);if(!p||e.which&&!(e.which<10)||!us(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(cs(t,e,i)||t.display.input.onKeyPress(e))}}}var vs,ms,gs=400,ys=function(e,t,n){this.time=e,this.pos=t,this.button=n};function bs(e,t){var n=+new Date;return ms&&ms.compare(n,e,t)?(vs=ms=null,"triple"):vs&&vs.compare(n,e,t)?(ms=new ys(n,e,t),vs=null,"double"):(vs=new ys(n,e,t),ms=null,"single")}function _s(e){var t=this,n=t.display;if(!(Ee(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Gn(n,e))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!As(t,e)){var r=jr(t,e),i=Oe(e),o=r?bs(r,i):"single";P(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&Es(t,i,r,o,e)||(1==i?r?Ts(t,r,o,e):Ae(e)==n.scroller&&xe(e):2==i?(r&&Po(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(w?t.display.input.onContextMenu(e):$r(t)))}}function Es(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),as(e,Ha(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=Ka[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}function ks(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=_?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Ts(e,t,n,r){a?setTimeout(V(Yr,e),0):e.curOp.focus=L(j(e));var i,o=ks(e,n,r),s=e.doc.sel;e.options.dragDrop&&Le&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ut((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ut(i.to(),t)>0||t.xRel<0)?ws(e,r,t,o):Ss(e,r,t,o)}function ws(e,t,n,r){var i=e.display,o=!1,c=Fi(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:$r(e)),be(i.wrapper.ownerDocument,"mouseup",c),be(i.wrapper.ownerDocument,"mousemove",l),be(i.scroller,"dragstart",f),be(i.scroller,"drop",c),o||(xe(t),r.addNew||Po(e.doc,n,null,null,r.extend),u&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",l),ge(i.scroller,"dragstart",f),ge(i.scroller,"drop",c),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 so(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new so(st(t.line,0),ht(e.doc,st(t.line+1,0)));var r=n(e,t);return new so(r.from,r.to)}function Ss(e,t,n,r){a&&$r(e);var i=e.display,o=e.doc;xe(t);var s,u,c=o.sel,l=c.ranges;if(r.addNew&&!r.extend?(u=o.sel.contains(n),s=u>-1?l[u]:new so(n,n)):(s=o.sel.primary(),u=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new so(n,n)),n=jr(e,t,!0,!0),u=-1;else{var f=xs(e,n,r.unit);s=r.extend?jo(s,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=l.length,zo(o,uo(e,l.concat([s]),u),{scroll:!1,origin:"*mouse"})):l.length>1&&l[u].empty()&&"char"==r.unit&&!r.extend?(zo(o,uo(e,l.slice(0,u).concat(l.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Zo(o,u,s,W):(u=0,zo(o,new ao([s],0),W),c=o.sel);var p=n;function d(t){if(0!=ut(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,l=q(Ke(o,n.line).text,n.ch,a),f=q(Ke(o,t.line).text,t.ch,a),d=Math.min(l,f),h=Math.max(l,f),v=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));v<=m;v++){var g=Ke(o,v).text,y=X(g,d,a);d==h?i.push(new so(st(v,y),st(v,y))):g.length>y&&i.push(new so(st(v,y),st(v,X(g,h,a))))}i.length||i.push(new so(n,n)),zo(o,uo(e,c.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,E=xs(e,t,r.unit),k=_.anchor;ut(E.anchor,k)>0?(b=E.head,k=pt(_.from(),E.anchor)):(b=E.anchor,k=ft(_.to(),E.head));var T=c.ranges.slice(0);T[u]=Cs(e,new so(ht(o,k),b)),zo(o,uo(e,T,u),W)}}var h=i.wrapper.getBoundingClientRect(),v=0;function m(t){var n=++v,a=jr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ut(a,p)){e.curOp.focus=L(j(e)),d(a);var s=ri(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Fi(e,(function(){v==n&&m(t)})),150)}else{var u=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;u&&setTimeout(Fi(e,(function(){v==n&&(i.scroller.scrollTop+=u,m(t))})),50)}}function g(t){e.state.selectingText=!1,v=1/0,t&&(xe(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Fi(e,(function(e){0!==e.buttons&&Oe(e)?m(e):g(e)})),b=Fi(e,g);e.state.selectingText=b,ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",b)}function Cs(e,t){var n=t.anchor,r=t.head,i=Ke(e.doc,n.line);if(0==ut(n,r)&&n.sticky==r.sticky)return t;var o=ve(i);if(!o)return t;var a=de(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=de(o,r.ch,r.sticky),f=l-a||(r.ch-n.ch)*(1==s.level?-1:1);u=l==c-1||l==c?f<0:f>0}var p=o[c+(u?-1:0)],d=u==(1==p.level),h=d?p.from:p.to,v=d?"after":"before";return n.ch==h&&n.sticky==v?t:new so(new st(n.line,h,v),r)}function Ns(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(l){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||!Te(e,n))return Ce(t);o-=s.top-a.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var c=a.gutters.childNodes[u];if(c&&c.getBoundingClientRect().right>=i)return _e(e,n,e,it(e.doc,o),e.display.gutterSpecs[u].className,t),Ce(t)}}function As(e,t){return Ns(e,t,"gutterClick",!0)}function Os(e,t){Gn(e.display,t)||Is(e,t)||Ee(e,t,"contextmenu")||w||e.display.input.onContextMenu(t)}function Is(e,t){return!!Te(e,"gutterContextMenu")&&Ns(e,t,"gutterContextMenu",!1)}function Ds(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}ys.prototype.compare=function(e,t,n){return this.time+gs>e&&0==ut(t,this.pos)&&n==this.button};var Ls={toString:function(){return"CodeMirror.Init"}},Fs={},Ms={};function Rs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ls&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ls,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,mo(e)}),!0),n("indentUnit",2,mo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){go(e),hr(e),Vr(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(st(r,o))}r++}));for(var i=n.length-1;i>=0;i--)aa(e.doc,t,n[i],st(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ls&&e.refresh()})),n("specialCharPlaceholder",yn,(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){Ds(e),Ki(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Wa(t),i=n!=Ls&&Wa(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ps,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Yi(t,e.options.lineNumbers),Ki(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Fr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return _i(e)}),!0),n("scrollbarStyle","native",(function(e){Ti(e),_i(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=Yi(e.options.gutters,t),Ki(e)}),!0),n("firstLineNumber",1,Ki,!0),n("lineNumberFormatter",(function(e){return e}),Ki,!0),n("showCursorWhenSelecting",!1,Hr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ei(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,js),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Hr,!0),n("singleCursorHeightPerLine",!0,Hr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,go,!0),n("addModeClass",!1,go,!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,go,!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 js(e,t,n){if(!t!=!(n&&n!=Ls)){var r=e.display.dragFunctions,i=t?ge:be;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 Ps(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Rr(e),Vr(e),hr(e),setTimeout((function(){return _i(e)}),100)}function Vs(e,t){var n=this;if(!(this instanceof Vs))return new Vs(e,t);this.options=t=t?Z(t):{},Z(Fs,t,!1);var r=t.value;"string"==typeof r?r=new xa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Vs.inputStyles[t.inputStyle](this),o=this.display=new eo(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ds(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ti(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 U,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Zs(this),La(),xi(this),this.curOp.forceUpdate=!0,Eo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Kr(n)}),20):ei(this),Ms)Ms.hasOwnProperty(c)&&Ms[c](this,t[c],Ls);Ji(this),t.finishInit&&t.finishInit(this);for(var l=0;l<qs.length;++l)qs[l](this);Si(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Zs(e){var t=e.display;ge(t.scroller,"mousedown",Fi(e,_s)),ge(t.scroller,"dblclick",a&&s<11?Fi(e,(function(t){if(!Ee(e,t)){var n=jr(e,t);if(n&&!As(e,t)&&!Gn(e.display,t)){xe(t);var r=e.findWordAt(n);Po(e.doc,r.anchor,r.head)}}})):function(t){return Ee(e,t)||xe(t)}),ge(t.scroller,"contextmenu",(function(t){return Os(e,t)})),ge(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Os(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",(function(i){if(!Ee(e,i)&&!o(i)&&!As(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ge(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ge(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Gn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||u(r,r.prev)?new so(a,a):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(a):new so(st(a.line,0),ht(e.doc,st(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),xe(n)}i()})),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),mi(e,t.scroller.scrollLeft,!0),_e(e,"scroll",e))})),ge(t.scroller,"mousewheel",(function(t){return oo(e,t)})),ge(t.scroller,"DOMMouseScroll",(function(t){return oo(e,t)})),ge(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Ee(e,t)||Ne(t)},over:function(t){Ee(e,t)||(Aa(e,t),Ne(t))},start:function(t){return Na(e,t)},drop:Fi(e,Ca),leave:function(t){Ee(e,t)||Oa(e)}};var c=t.input.getField();ge(c,"keyup",(function(t){return ds.call(e,t)})),ge(c,"keydown",Fi(e,fs)),ge(c,"keypress",Fi(e,hs)),ge(c,"focus",(function(t){return Kr(e,t)})),ge(c,"blur",(function(t){return ei(e,t)}))}Vs.defaults=Fs,Vs.optionHandlers=Ms;var qs=[];function Us(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Et(e,t).state:n="prev");var a=e.options.tabSize,s=Ke(o,t),u=q(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(l.length),s.text))==H||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?q(Ke(o,t-1).text,null,a):0:"add"==n?c=u+e.options.indentUnit:"subtract"==n?c=u-e.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)p+=a,f+="\t";if(p<c&&(f+=Y(c-p)),f!=l)return aa(o,f,st(t,0),st(t,l.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var v=o.sel.ranges[h];if(v.head.line==t&&v.head.ch<l.length){var m=st(t,l.length);Zo(o,h,new so(m,m));break}}}Vs.defineInitHook=function(e){return qs.push(e)};var Bs=null;function zs(e){Bs=e}function Hs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,u=Re(t),c=null;if(s&&r.ranges.length>1)if(Bs&&Bs.text.join("\n")==t){if(r.ranges.length%Bs.text.length==0){c=[];for(var l=0;l<Bs.text.length;l++)c.push(o.splitLines(Bs.text[l]))}}else u.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=K(u,(function(e){return[e]})));for(var f=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],h=d.from(),v=d.to();d.empty()&&(n&&n>0?h=st(h.line,h.ch-n):e.state.overwrite&&!s?v=st(v.line,Math.min(Ke(o,v.line).text.length,v.ch+$(u).length)):s&&Bs&&Bs.lineWise&&Bs.text.join("\n")==u.join("\n")&&(h=v=st(h.line,0)));var m={from:h,to:v,text:c?c[p%c.length]:u,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ea(e.doc,m),In(e,"inputRead",e,m)}t&&!s&&Ws(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Gs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Li(t,(function(){return Hs(t,n,0,null,"paste")})),!0}function Ws(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<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Us(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ke(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Us(e,i.head.line,"smart"));a&&In(e,"electricInput",e,i.head.line)}}}function Qs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:st(i,0),head:st(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Xs(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Js(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function Ys(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){P(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Fi(this,t[e])(this,n,i),_e(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Wa(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Mi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Vr(this)})),removeOverlay:Mi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Vr(this)}})),indentLine:Mi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),ot(this.doc,e)&&Us(this,e,t,n)})),indentSelection:Mi((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Us(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ci(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 u=s;u<n;++u)Us(this,u,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Zo(this.doc,r,new so(o,c[r].to()),G)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,st(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=_t(this,Ke(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)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var c=i._global[u];c.pred(o,this)&&-1==B(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return Et(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Er(this,null==e?n.head:"object"==typeof e?ht(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return _r(this,ht(this.doc,e),t||"page")},coordsChar:function(e,t){return wr(this,(e=br(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=br(this,{top:e,left:0},t||"page").top,it(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ke(this.doc,e)}else r=e;return yr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-un(r):0)},defaultTextHeight:function(){return Ir(this.display)},defaultCharWidth:function(){return Dr(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=Er(this,ht(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 u=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(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&&ai(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Mi(fs),triggerOnKeyPress:Mi(hs),triggerOnKeyUp:ds,triggerOnMouseDown:Mi(_s),execCommand:function(e){if(Ka.hasOwnProperty(e))return Ka[e].call(null,this)},triggerElectric:Mi((function(e){Ws(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ht(this.doc,e),a=0;a<t&&!(o=$s(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Mi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?$s(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),Q)})),deleteH:Mi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Qa(this,(function(n){var i=$s(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ht(this.doc,e),s=0;s<t;++s){var u=Er(this,a,"div");if(null==o?o=u.left:u.left=o,(a=Ks(this,u,i,n)).hitSide)break}return a},moveV:Mi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Er(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var u=Ks(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ui(n,_r(n,u,"div").top-s.top),u}),Q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ke(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new so(st(e.line,n),st(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),_e(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L(j(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Mi((function(e,t){li(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Jn(this)-this.display.barHeight,width:e.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:$n(this),clientWidth:Yn(this)}},scrollIntoView:Mi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:st(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?fi(this,e):di(this,e.from,e.to,e.margin)})),setSize:Mi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Zr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,_e(this,"refresh",this)})),operation:function(e){return Li(this,e)},startOperation:function(){return xi(this)},endOperation:function(){return Si(this)},refresh:Mi((function(){var e=this.display.cachedTextHeight;Vr(this),this.curOp.forceUpdate=!0,hr(this),li(this,this.doc.scrollLeft,this.doc.scrollTop),Wi(this.display),(null==e||Math.abs(e-Ir(this.display))>.5||this.options.lineWrapping)&&Rr(this),_e(this,"refresh",this)})),swapDoc:Mi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Eo(this,e),hr(this),this.display.input.reset(),li(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,In(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}},we(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 o=t,a=n,s=Ke(e,t.line),u=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+u;return!(n<e.first||n>=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),s=Ke(e,n))}function l(o){var a;if("codepoint"==r){var l=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(l))a=null;else{var f=n>0?l>=55296&&l<56320:l>=56320&&l<57343;a=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?$a(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!c())return!1;t=Ya(i,e.cm,s,t.line,u)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var f=null,p="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var v=s.text.charAt(t.ch)||"\n",m=oe(v,d)?"w":p&&"\n"==v?"n":!p||/\s/.test(v)?null:"p";if(!p||h||m||(m="s"),f&&f!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(f=m),n>0&&!l(!h))break}var g=Jo(e,t,o,a,!0);return ct(o,g)&&(g.hitSide=!0),g}function Ks(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,P(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(u-.5*Ir(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=wr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var eu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tu(e,t){var n=rr(e,t.line);if(!n||n.hidden)return null;var r=Ke(e.doc,t.line),i=er(n,r,t.line),o=ve(r,e.doc.direction),a="left";o&&(a=de(o,t.ch)%2?"right":"left");var s=ur(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function nu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ru(e,t){return t&&(e.bad=!0),e}function iu(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),u=!1;function c(e){return function(t){return t.id==e}}function l(){a&&(o+=s,u&&(o+=s),a=u=!1)}function f(e){e&&(l(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(st(r,0),st(i+1,0),c(+d));return void(h.length&&(o=h[0].find(0))&&f(et(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var v=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;v&&l();for(var m=0;m<t.childNodes.length;m++)p(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),v&&(a=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;p(t),t!=n;)t=t.nextSibling,u=!1;return o}function ou(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ru(e.clipPos(st(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return au(o,t,n)}}function au(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return ru(st(rt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?$(e.rest):e.line;return ru(st(rt(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=e.measure,c=u.maps;function l(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?u.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var l=rt(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),st(l,f)}}}var f=l(a,s,n);if(f)return ru(f,i);for(var p=s.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=l(p,p.firstChild,0))return ru(st(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=s.previousSibling,v=n;h;h=h.previousSibling){if(f=l(h,h.firstChild,-1))return ru(st(f.line,f.ch+v),i);v+=h.textContent.length}}eu.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Ee(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Qs(r);zs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,G),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Bs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Js(),u=s.firstChild;Xs(u),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),u.value=Bs.text.join("\n");var c=L(i.ownerDocument);R(u),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Xs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ge(i,"paste",(function(e){!o(e)||Ee(r,e)||Gs(e,r)||s<=11&&setTimeout(Fi(r,(function(){return t.updateFromDOM()})),20)})),ge(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ge(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ge(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ge(i,"touchstart",(function(){return n.forceCompositionEnd()})),ge(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ge(i,"copy",a),ge(i,"cut",a)},eu.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},eu.prototype.prepareSelection=function(){var e=Gr(this.cm,!1);return e.focus=L(this.div.ownerDocument)==this.div,e},eu.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},eu.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},eu.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=ou(t,e.anchorNode,e.anchorOffset),s=ou(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ut(pt(a,s),i)||0!=ut(ft(a,s),o)){var u=t.display.view,c=i.line>=t.display.viewFrom&&tu(t,i)||{node:u[0].measure.map[2],offset:0},l=o.line<t.display.viewTo&&tu(t,o);if(!l){var f=u[u.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;l={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&l){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=S(c.node,c.offset,l.offset,l.node)}catch(v){}d&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},eu.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},eu.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},eu.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},eu.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},eu.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},eu.prototype.blur=function(){this.div.blur()},eu.prototype.getField=function(){return this.div},eu.prototype.supportsTouch=function(){return!0},eu.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Li(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},eu.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},eu.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&l&&this.cm.display.gutterSpecs.length&&nu(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ou(t,e.anchorNode,e.anchorOffset),r=ou(t,e.focusNode,e.focusOffset);n&&r&&Li(t,(function(){zo(t.doc,co(n,r),G),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},eu.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=st(a.line-1,Ke(r.doc,a.line-1).length)),s.ch==Ke(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=st(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Pr(r,a.line))?(t=rt(i.view[0].line),n=i.view[0].node):(t=rt(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,c,l=Pr(r,s.line);if(l==i.view.length-1?(u=i.viewTo-1,c=i.lineDiv.lastChild):(u=rt(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(iu(r,n,c,t,u)),p=et(r.doc,st(t,0),st(u,Ke(r.doc,u).text.length));f.length>1&&p.length>1;)if($(f)==$(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,v=f[0],m=p[0],g=Math.min(v.length,m.length);d<g&&v.charCodeAt(d)==m.charCodeAt(d);)++d;for(var y=$(f),b=$(p),_=Math.min(y.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var E=st(t,d),k=st(u,p.length?$(p).length-h:0);return f.length>1||f[0]||ut(E,k)?(aa(r.doc,f,E,k,"+input"),!0):void 0},eu.prototype.ensurePolled=function(){this.forceCompositionEnd()},eu.prototype.reset=function(){this.forceCompositionEnd()},eu.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},eu.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))},eu.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Li(this.cm,(function(){return Vr(e.cm)}))},eu.prototype.setUneditable=function(e){e.contentEditable="false"},eu.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Fi(this.cm,Hs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},eu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},eu.prototype.onContextMenu=function(){},eu.prototype.resetPosition=function(){},eu.prototype.needsContentAttribute=!0;var su=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null,this.resetting=!1};function uu(e,t){if((t=t?Z(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(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(u){}}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&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Vs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function cu(e){e.off=be,e.on=ge,e.wheelEventPixels=io,e.Doc=xa,e.splitLines=Re,e.countColumn=q,e.findColumn=X,e.isWordChar=ie,e.Pass=H,e.signal=_e,e.Line=fn,e.changeEnd=lo,e.scrollbarModel=ki,e.Pos=st,e.cmpPos=ut,e.modes=qe,e.mimeModes=Ue,e.resolveMode=He,e.getMode=Ge,e.modeExtensions=We,e.extendMode=Qe,e.copyState=Xe,e.startState=Ye,e.innerMode=Je,e.commands=Ka,e.keyMap=Za,e.keyName=Ga,e.isModifierKey=za,e.lookupKey=Ba,e.normalizeKeyMap=Ua,e.StringStream=$e,e.SharedTextMarker=ba,e.TextMarker=ga,e.LineWidget=da,e.e_preventDefault=xe,e.e_stopPropagation=Se,e.e_stop=Ne,e.addClass=F,e.contains=D,e.rmClass=C,e.keyNames=Ra}su.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Ee(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Qs(r);zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(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),m&&(i.style.width="0px"),ge(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ge(i,"paste",(function(e){Ee(r,e)||Gs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",(function(t){if(!Gn(e,t)&&!Ee(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)}})),ge(e.lineSpace,"selectstart",(function(t){Gn(e,t)||xe(t)})),ge(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"})}})),ge(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},su.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Xs(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},su.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},su.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Gr(e);if(e.options.moveInputWithCursor){var i=Er(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},su.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},su.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},su.prototype.getField=function(){return this.textarea},su.prototype.supportsTouch=function(){return!1},su.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},su.prototype.blur=function(){this.textarea.blur()},su.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},su.prototype.receivedFocus=function(){this.slowPoll()},su.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},su.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,t.polling.set(20,n)},su.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(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(a&&s>=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="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,c=Math.min(r.length,i.length);u<c&&r.charCodeAt(u)==i.charCodeAt(u);)++u;return Li(t,(function(){Hs(t,i.slice(u),r.length-u,null,e.composing?"*compose":null),i.length>1e3||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},su.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},su.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},su.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=jr(n,e),c=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Fi(n,zo)(n.doc,co(o),G);var l,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(l=i.ownerDocument.defaultView.scrollY),r.input.focus(),u&&i.ownerDocument.defaultView.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),w?(Ne(e),ge(window,"mouseup",(function e(){be(window,"mouseup",e),setTimeout(m,20)}))):setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?i.value:"");i.value="\u21da",i.value=o,t.prevInput=e?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Fi(n,$o)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},su.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},su.prototype.setUneditable=function(){},su.prototype.needsContentAttribute=!1,Rs(Vs),Ys(Vs);var lu="iter insert remove copy getEditor constructor".split(" ");for(var fu in xa.prototype)xa.prototype.hasOwnProperty(fu)&&B(lu,fu)<0&&(Vs.prototype[fu]=function(e){return function(){return e.apply(this.doc,arguments)}}(xa.prototype[fu]));return we(xa),Vs.inputStyles={textarea:su,contenteditable:eu},Vs.defineMode=function(e){Vs.defaults.mode||"null"==e||(Vs.defaults.mode=e),Be.apply(this,arguments)},Vs.defineMIME=ze,Vs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Vs.defineMIME("text/plain","null"),Vs.defineExtension=function(e,t){Vs.prototype[e]=t},Vs.defineDocExtension=function(e,t){xa.prototype[e]=t},Vs.fromTextArea=uu,cu(Vs),Vs.version="5.65.13",Vs}()},27090:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,u=n.json||s,c=!1!==n.trackScope,l=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={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:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(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 m(e,t,n){return r=e,i=n,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):it(e,t,1)?(v(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=_,_(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(f))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.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(".")?m("."):m("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return m(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",r)}return m("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=g),m("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function _(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var E="([{}])";function k(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(l){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),u=E.indexOf(s);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(u>=3&&u<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)}}var T={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(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 x(e,t){if(!c)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 S(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?H:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&x(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function A(){return N.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 I(e){var t=C.state;if(C.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=D(e,t.context);if(null!=r)return void(t.context=r)}else if(!O(e,t.localVars))return void(t.localVars=new M(e,t.localVars));n.globalVars&&!O(e,t.globalVars)&&(t.globalVars=new M(e,t.globalVars))}}function D(e,t){if(t){if(t.block){var n=D(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}var R=new M("this",new M("arguments",null));function j(){C.state.context=new F(C.state.context,C.state.localVars,!1),C.state.localVars=R}function P(){C.state.context=new F(C.state.context,C.state.localVars,!0),C.state.localVars=null}function V(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function Z(e,t){var n=function(){var n=C.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 w(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function q(){var e=C.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?A():";"==e||"}"==n||")"==n||"]"==n?N():A(t)}return t}function B(e,t){return"var"==e?A(Z("vardef",t),Ne,U(";"),q):"keyword a"==e?A(Z("form"),W,B,q):"keyword b"==e?A(Z("form"),B,q):"keyword d"==e?C.stream.match(/^\s*$/,!1)?A():A(Z("stat"),X,U(";"),q):"debugger"==e?A(U(";")):"{"==e?A(Z("}"),P,pe,q,V):";"==e?A():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==q&&C.state.cc.pop()(),A(Z("form"),W,B,q,Fe)):"function"==e?A(Pe):"for"==e?A(Z("form"),P,Me,B,V,q):"class"==e||l&&"interface"==t?(C.marked="keyword",A(Z("form","class"==e?e:t),Be,q)):"variable"==e?l&&"declare"==t?(C.marked="keyword",A(B)):l&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?A(tt):"type"==t?A(Ze,U("operator"),ge,U(";")):A(Z("form"),Ae,U("{"),Z("}"),pe,q,q)):l&&"namespace"==t?(C.marked="keyword",A(Z("form"),H,B,q)):l&&"abstract"==t?(C.marked="keyword",A(B)):A(Z("stat"),oe):"switch"==e?A(Z("form"),W,U("{"),Z("}","switch"),P,pe,q,q,V):"case"==e?A(H,U(":")):"default"==e?A(U(":")):"catch"==e?A(Z("form"),j,z,B,q,V):"export"==e?A(Z("stat"),We,q):"import"==e?A(Z("stat"),Xe,q):"async"==e?A(B):"@"==t?A(H,B):N(Z("stat"),H,U(";"),q)}function z(e){if("("==e)return A(qe,U(")"))}function H(e,t){return Q(e,t,!1)}function G(e,t){return Q(e,t,!0)}function W(e){return"("!=e?N():A(Z(")"),X,U(")"),q)}function Q(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?te:ee;if("("==e)return A(j,Z(")"),le(qe,")"),q,U("=>"),r,V);if("variable"==e)return N(j,Ae,U("=>"),r,V)}var i=n?Y:J;return T.hasOwnProperty(e)?A(i):"function"==e?A(Pe,i):"class"==e||l&&"interface"==t?(C.marked="keyword",A(Z("form"),Ue,q)):"keyword c"==e||"async"==e?A(n?G:H):"("==e?A(Z(")"),X,U(")"),q,i):"operator"==e||"spread"==e?A(n?G:H):"["==e?A(Z("]"),et,q,i):"{"==e?fe(se,"}",null,i):"quasi"==e?N($,i):"new"==e?A(ne(n)):A()}function X(e){return e.match(/[;\}\)\],]/)?N():N(H)}function J(e,t){return","==e?A(X):Y(e,t,!1)}function Y(e,t,n){var r=0==n?J:Y,i=0==n?H:G;return"=>"==e?A(j,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?A(r):l&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(Z(">"),le(ge,">"),q,r):"?"==t?A(H,U(":"),i):A(i):"quasi"==e?N($,r):";"!=e?"("==e?fe(G,")","call",r):"."==e?A(ae,r):"["==e?A(Z("]"),X,U("]"),q,r):l&&"as"==t?(C.marked="keyword",A(ge,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),A(i)):void 0:void 0}function $(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?A($):A(X,K)}function K(e){if("}"==e)return C.marked="string-2",C.state.tokenize=_,A($)}function ee(e){return k(C.stream,C.state),N("{"==e?B:H)}function te(e){return k(C.stream,C.state),N("{"==e?B:G)}function ne(e){return function(t){return"."==t?A(e?ie:re):"variable"==t&&l?A(xe,e?Y:J):N(e?G:H)}}function re(e,t){if("target"==t)return C.marked="keyword",A(J)}function ie(e,t){if("target"==t)return C.marked="keyword",A(Y)}function oe(e){return":"==e?A(q,B):N(J,U(";"),q)}function ae(e){if("variable"==e)return C.marked="property",A()}function se(e,t){return"async"==e?(C.marked="property",A(se)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?A(ue):(l&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),A(ce))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",A(ce)):"jsonld-keyword"==e?A(ce):l&&L(t)?(C.marked="keyword",A(se)):"["==e?A(H,de,U("]"),ce):"spread"==e?A(G,ce):"*"==t?(C.marked="keyword",A(se)):":"==e?N(ce):void 0;var n}function ue(e){return"variable"!=e?N(ce):(C.marked="property",A(Pe))}function ce(e){return":"==e?A(G):"("==e?N(Pe):void 0}function le(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A((function(n,r){return n==t||r==t?N():N(e)}),r)}return i==t||o==t?A():n&&n.indexOf(";")>-1?N(e):A(U(t))}return function(n,i){return n==t||i==t?A():N(e,r)}}function fe(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return A(Z(t,n),le(e,t),q)}function pe(e){return"}"==e?A():N(B,pe)}function de(e,t){if(l){if(":"==e)return A(ge);if("?"==t)return A(de)}}function he(e,t){if(l&&(":"==e||"in"==t))return A(ge)}function ve(e){if(l&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?A(H,me,ge):A(ge)}function me(e,t){if("is"==t)return C.marked="keyword",A()}function ge(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",A("typeof"==t?G:ge)):"variable"==e||"void"==t?(C.marked="type",A(we)):"|"==t||"&"==t?A(ge):"string"==e||"number"==e||"atom"==e?A(we):"["==e?A(Z("]"),le(ge,"]",","),q,we):"{"==e?A(Z("}"),be,q,we):"("==e?A(le(Te,")"),ye,we):"<"==e?A(le(ge,">"),ge):"quasi"==e?N(Ee,we):void 0}function ye(e){if("=>"==e)return A(ge)}function be(e){return e.match(/[\}\)\]]/)?A():","==e||";"==e?A(be):N(_e,be)}function _e(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",A(_e)):"?"==t||"number"==e||"string"==e?A(_e):":"==e?A(ge):"["==e?A(U("variable"),he,U("]"),_e):"("==e?N(Ve,_e):e.match(/[;\}\)\],]/)?void 0:A()}function Ee(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?A(Ee):A(ge,ke)}function ke(e){if("}"==e)return C.marked="string-2",C.state.tokenize=_,A(Ee)}function Te(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?A(Te):":"==e?A(ge):"spread"==e?A(Te):N(ge)}function we(e,t){return"<"==t?A(Z(">"),le(ge,">"),q,we):"|"==t||"."==e||"&"==t?A(ge):"["==e?A(ge,U("]"),we):"extends"==t||"implements"==t?(C.marked="keyword",A(ge)):"?"==t?A(ge,U(":"),ge):void 0}function xe(e,t){if("<"==t)return A(Z(">"),le(ge,">"),q,we)}function Se(){return N(ge,Ce)}function Ce(e,t){if("="==t)return A(ge)}function Ne(e,t){return"enum"==t?(C.marked="keyword",A(tt)):N(Ae,de,De,Le)}function Ae(e,t){return l&&L(t)?(C.marked="keyword",A(Ae)):"variable"==e?(I(t),A()):"spread"==e?A(Ae):"["==e?fe(Ie,"]"):"{"==e?fe(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?A(Ae):"}"==e?N():"["==e?A(H,U("]"),U(":"),Oe):A(U(":"),Ae,De)):(I(t),A(De))}function Ie(){return N(Ae,De)}function De(e,t){if("="==t)return A(G)}function Le(e){if(","==e)return A(Ne)}function Fe(e,t){if("keyword b"==e&&"else"==t)return A(Z("form","else"),B,q)}function Me(e,t){return"await"==t?A(Me):"("==e?A(Z(")"),Re,q):void 0}function Re(e){return"var"==e?A(Ne,je):"variable"==e?A(je):N(je)}function je(e,t){return")"==e?A():";"==e?A(je):"in"==t||"of"==t?(C.marked="keyword",A(H,je)):N(H,je)}function Pe(e,t){return"*"==t?(C.marked="keyword",A(Pe)):"variable"==e?(I(t),A(Pe)):"("==e?A(j,Z(")"),le(qe,")"),q,ve,B,V):l&&"<"==t?A(Z(">"),le(Se,">"),q,Pe):void 0}function Ve(e,t){return"*"==t?(C.marked="keyword",A(Ve)):"variable"==e?(I(t),A(Ve)):"("==e?A(j,Z(")"),le(qe,")"),q,ve,V):l&&"<"==t?A(Z(">"),le(Se,">"),q,Ve):void 0}function Ze(e,t){return"keyword"==e||"variable"==e?(C.marked="type",A(Ze)):"<"==t?A(Z(">"),le(Se,">"),q):void 0}function qe(e,t){return"@"==t&&A(H,qe),"spread"==e?A(qe):l&&L(t)?(C.marked="keyword",A(qe)):l&&"this"==e?A(de,De):N(Ae,de,De)}function Ue(e,t){return"variable"==e?Be(e,t):ze(e,t)}function Be(e,t){if("variable"==e)return I(t),A(ze)}function ze(e,t){return"<"==t?A(Z(">"),le(Se,">"),q,ze):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(C.marked="keyword"),A(l?ge:H,ze)):"{"==e?A(Z("}"),He,q):void 0}function He(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&L(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",A(He)):"variable"==e||"keyword"==C.style?(C.marked="property",A(Ge,He)):"number"==e||"string"==e?A(Ge,He):"["==e?A(H,de,U("]"),Ge,He):"*"==t?(C.marked="keyword",A(He)):l&&"("==e?N(Ve,He):";"==e||","==e?A(He):"}"==e?A():"@"==t?A(H,He):void 0}function Ge(e,t){if("!"==t)return A(Ge);if("?"==t)return A(Ge);if(":"==e)return A(ge,De);if("="==t)return A(G);var n=C.state.lexical.prev;return N(n&&"interface"==n.info?Ve:Pe)}function We(e,t){return"*"==t?(C.marked="keyword",A(Ke,U(";"))):"default"==t?(C.marked="keyword",A(H,U(";"))):"{"==e?A(le(Qe,"}"),Ke,U(";")):N(B)}function Qe(e,t){return"as"==t?(C.marked="keyword",A(U("variable"))):"variable"==e?N(G,Qe):void 0}function Xe(e){return"string"==e?A():"("==e?N(H):"."==e?N(J):N(Je,Ye,Ke)}function Je(e,t){return"{"==e?fe(Je,"}"):("variable"==e&&I(t),"*"==t&&(C.marked="keyword"),A($e))}function Ye(e){if(","==e)return A(Je,Ye)}function $e(e,t){if("as"==t)return C.marked="keyword",A(Je)}function Ke(e,t){if("from"==t)return C.marked="keyword",A(H)}function et(e){return"]"==e?A():N(le(G,"]"))}function tt(){return N(Z("form"),Ae,U("{"),Z("}"),le(nt,"}"),q,q)}function nt(){return N(Ae,De)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==g&&/^(?: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 j.lex=P.lex=!0,V.lex=!0,q.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new F(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),k(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",S(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==_)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),u=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var l=t.cc[c];if(l==q)u=u.prev;else if(l!=Fe&&l!=V)break}for(;("stat"==u.type||"form"==u.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==J||i==Y)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;a&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,p=s==f;return"vardef"==f?u.indented+("operator"==t.lastType||","==t.lastType?u.info.length+1:0):"form"==f&&"{"==s?u.indented:"form"==f?u.indented+o:"stat"==f?u.indented+(rt(t,r)?a||o:0):"switch"!=u.info||p||0==n.doubleIndentSwitch?u.align?u.column+(p?0:1):u.indented+(p?0:o):u.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:s,jsonMode:u,expressionAllowed:it,skipExpression:function(t){S(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(74031))},50563:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}function u(e,t){return t.context.mode==o?c(e,t,t.context):l(e,t,t.context)}function c(n,i,c){if(2==c.depth)return n.match(/^.*?\*\//)?c.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(c.state);var l=s(c.state),f=c.state.context;if(f&&n.match(/^[^>]*>\s*$/,!1)){for(;f.prev&&!f.startOfLine;)f=f.prev;f.startOfLine?l-=r.indentUnit:c.prev.state.lexical&&(l=c.prev.state.lexical.indented)}else 1==c.depth&&(l+=r.indentUnit);return i.context=new t(e.startState(a,l),a,0,i.context),null}if(1==c.depth){if("<"==n.peek())return o.skipAttribute(c.state),i.context=new t(e.startState(o,s(c.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return c.depth=2,u(n,i)}var p,d=o.token(n,c.state),h=n.current();return/\btag\b/.test(d)?/>$/.test(h)?c.state.context?c.depth=0:i.context=i.context.prev:/^</.test(h)&&(c.depth=1):!d&&(p=h.indexOf("{"))>-1&&n.backUp(h.length-p),d}function l(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),a.skipExpression(i.state),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var u=n.current();"{"==u?i.depth++:"}"==u&&0==--i.depth&&(r.context=r.context.prev)}return s}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:u,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(74031),n(58608),n(27090))},58608:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,u={},c=i.htmlMode?t:n;for(var l in c)u[l]=c[l];for(var l in i)u[l]=i[l];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(v(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=f,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=f,t.state=_,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=d(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=p;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function v(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=v(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=v(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function g(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!u.contextGrabbers.hasOwnProperty(m(n))||!u.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;y(e)}}function _(e,t,n){return"openTag"==e?(n.tagStart=t.column(),E):"closeTag"==e?k:_}function E(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",x):u.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,t,n)):(a="error",E)}function k(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&u.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===u.matchClosing?(a="tag",T):(a="tag error",w)}return u.allowMissingTagName&&"endTag"==e?(a="tag bracket",T(e,t,n)):(a="error",w)}function T(e,t,n){return"endTag"!=e?(a="error",T):(y(n),_)}function w(e,t,n){return a="error",T(e,t,n)}function x(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||u.autoSelfClosers.hasOwnProperty(m(r))?b(n,r):(b(n,r),n.context=new g(n,r,i==n.indented)),_}return a="error",x}function S(e,t,n){return"equals"==e?C:(u.allowMissing||(a="error"),x(e,t,n))}function C(e,t,n){return"string"==e?N:"word"==e&&u.allowUnquoted?(a="string",x):(a="error",x(e,t,n))}function N(e,t,n){return"string"==e?N:x(e,t,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:_,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==u.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!u.implicitlyClosed.hasOwnProperty(m(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=u.contextGrabbers[m(i.tagName)];if(!a||!a.hasOwnProperty(m(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=x)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(74031))},19445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5285),t),i(n(98060),t),i(n(15242),t)},76511:function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"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}}},c="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]",l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function f(e){var t=e.re=n(48882)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var u=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},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,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):u.push(t)}})),u.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 f=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(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 d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},f(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,f(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;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:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.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(),f(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,f(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},48882:function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(16637).source,t.src_Cc=n(3370).source,t.src_Z=n(95872).source,t.src_P=n(4226).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+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='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},48776:function(e,t,n){"use strict";e.exports=n(82167)},58458:function(e,t,n){"use strict";e.exports=n(50549)},82805:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},94316:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=i},26083:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=n(58458);var f=/[&<>"]/,p=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function h(e){return d[e]}var v=/[.?*+^$[\]\\(){}|-]/g;var m=n(4226);t.lib={},t.lib.mdurl=n(1036),t.lib.ucmicro=n(33146),t.assign=function(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},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return i(l,t)?l[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(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},t.isMdAsciiPunct=function(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}},t.isPunctChar=function(e){return m.test(e)},t.escapeRE=function(e){return e.replace(v,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},84358:function(e,t,n){"use strict";t.parseLinkLabel=n(91637),t.parseLinkDestination=n(21066),t.parseLinkTitle=n(52675)},21066:function(e,t,n){"use strict";var r=n(26083).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},91637:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,u=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<u;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s}},52675:function(e,t,n){"use strict";var r=n(26083).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,u={ok:!1,pos:0,lines:0,str:""};if(t>=n)return u;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return u.pos=t+1,u.lines=a,u.str=r(e.slice(s+1,t)),u.ok=!0,u;if(40===i&&41===o)return u;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return u}},82167:function(e,t,n){"use strict";var r=n(26083),i=n(84358),o=n(70283),a=n(32494),s=n(64769),u=n(19957),c=n(76511),l=n(1036),f=n(78154),p={default:n(65432),zero:n(37104),commonmark:n(76188)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function v(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var m=["http:","https:","mailto:"];function g(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=f.toASCII(t.hostname)}catch(n){}return l.encode(l.format(t))}function y(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=f.toUnicode(t.hostname)}catch(n){}return l.decode(l.format(t),l.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 u,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new c,this.validateLink=v,this.normalizeLink=g,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=p[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},64769:function(e,t,n){"use strict";var r=n(32655),i=[["table",n(15547),["paragraph","reference"]],["code",n(67600)],["fence",n(77351),["paragraph","reference","blockquote","list"]],["blockquote",n(63172),["paragraph","reference","blockquote","list"]],["hr",n(75080),["paragraph","reference","blockquote","list"]],["list",n(70954),["paragraph","reference","blockquote"]],["reference",n(73528)],["html_block",n(52820),["paragraph","reference","blockquote"]],["heading",n(99058),["paragraph","reference","blockquote"]],["lheading",n(62143)],["paragraph",n(81603)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,u=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(96542),e.exports=o},32494:function(e,t,n){"use strict";var r=n(32655),i=[["normalize",n(77980)],["block",n(85887)],["inline",n(45076)],["linkify",n(28898)],["replacements",n(46247)],["smartquotes",n(53344)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(86853),e.exports=o},19957:function(e,t,n){"use strict";var r=n(32655),i=[["text",n(43308)],["newline",n(12489)],["escape",n(69639)],["backticks",n(81864)],["strikethrough",n(69743).w],["emphasis",n(41568).w],["link",n(87463)],["image",n(62692)],["autolink",n(73455)],["html_inline",n(31519)],["entity",n(71467)]],o=[["balance_pairs",n(42935)],["strikethrough",n(69743).g],["emphasis",n(41568).g],["text_collapse",n(31072)]];function a(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"===typeof s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=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<a;i++)o[i](s)},a.prototype.State=n(95361),e.exports=a},76188:function(e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},65432:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},37104:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},70283:function(e,t,n){"use strict";var r=n(26083).assign,i=n(26083).unescapeAll,o=n(26083).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,u,c,l,f,p=e[t],d=p.info?i(p.info).trim():"",h="",v="";return d&&(h=(c=d.split(/(\s+)/g))[0],v=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,v)||o(p.content)).indexOf("<pre")?s+"\n":d?(u=p.attrIndex("class"),l=p.attrs?p.attrs.slice():[],u<0?l.push(["class",n.langPrefix+h]):(l[u]=l[u].slice(),l[u][1]+=" "+n.langPrefix+h),f={attrs:l},"<pre><code"+a.renderAttrs(f)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"},a.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)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)"undefined"!==typeof o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):"undefined"!==typeof s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},32655:function(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},63172:function(e,t,n){"use strict";var r=n(26083).isSpace;e.exports=function(e,t,n,i){var o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k,T,w,x=e.lineMax,S=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(i)return!0;for(u=d=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,u++,d++,o=!1,_=!0):9===e.src.charCodeAt(S)?(_=!0,(e.bsCount[t]+d)%4===3?(S++,u++,d++,o=!1):o=!0):_=!1,h=[e.bMarks[t]],e.bMarks[t]=S;S<C&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,S++;for(v=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(_?1:0),l=S>=C,y=[e.sCount[t]],e.sCount[t]=d-u,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(w=e.sCount[p]<e.blkIndent,!((S=e.bMarks[p]+e.tShift[p])>=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(S++)||w){if(l)break;for(E=!1,s=0,c=k.length;s<c;s++)if(k[s](e,p,n,!0)){E=!0;break}if(E){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),v.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),v.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(u=d=e.sCount[p]+1,32===e.src.charCodeAt(S)?(S++,u++,d++,o=!1,_=!0):9===e.src.charCodeAt(S)?(_=!0,(e.bsCount[p]+d)%4===3?(S++,u++,d++,o=!1):o=!0):_=!1,h.push(e.bMarks[p]),e.bMarks[p]=S;S<C&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,S++;l=S>=C,v.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(_?1:0),y.push(e.sCount[p]),e.sCount[p]=d-u,b.push(e.tShift[p]),e.tShift[p]=S-e.bMarks[p]}for(m=e.blkIndent,e.blkIndent=0,(T=e.push("blockquote_open","blockquote",1)).markup=">",T.map=f=[t,0],e.md.block.tokenize(e,t,p),(T=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,f[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=v[s];return e.blkIndent=m,!0}},67600:function(e){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=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}},77351:function(e){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,u,c,l,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(l=e.src.slice(u,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((p=u=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4)&&!((p=e.skipChars(p,i))-u<o)&&!((p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,o,!0),c.markup=l,c.map=[t,e.line],!0}},99058:function(e,t,n){"use strict";var r=n(26083).isSpace;e.exports=function(e,t,n,i){var o,a,s,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=l)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c<l&&a<=6;)a++,o=e.src.charCodeAt(++c);return!(a>6||c<l&&!r(o))&&(i||(l=e.skipSpacesBack(l,c),(s=e.skipCharsBack(l,35,c))>c&&r(e.src.charCodeAt(s-1))&&(l=s),e.line=t+1,(u=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[t,e.line],(u=e.push("inline","",0)).content=e.src.slice(c,l).trim(),u.map=[t,e.line],u.children=[],(u=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}},75080:function(e,t,n){"use strict";var r=n(26083).isSpace;e.exports=function(e,t,n,i){var o,a,s,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(a=1;c<l;){if((s=e.src.charCodeAt(c++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(i||(e.line=t+1,(u=e.push("hr","hr",0)).map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o))),!0)}},52820:function(e,t,n){"use strict";var r=n(82805),i=n(94316).q,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(u=e.src.slice(c,l),i=0;i<o.length&&!o[i][0].test(u);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(u))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],l=e.eMarks[a],u=e.src.slice(c,l),o[i][1].test(u)){0!==u.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},62143:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,u,c,l,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d])<(c=e.eMarks[d])&&(45===(f=e.src.charCodeAt(u))||61===f)&&(u=e.skipChars(u,f),(u=e.skipSpaces(u))>=c)){l=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!l&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(l),1)).markup=String.fromCharCode(f),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(l),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}},70954:function(e,t,n){"use strict";var r=n(26083).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k,T,w,x,S,C,N,A,O,I,D,L,F=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(F=!0),(N=o(e,t))>=0){if(p=!0,O=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(O,N-1)),F&&1!==y)return!1}else{if(!((N=i(e,t))>=0))return!1;p=!1}if(F&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(N-1),r)return!0;for(m=e.tokens.length,p?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=v=[t,0],L.markup=String.fromCharCode(g),_=t,A=!1,D=e.md.block.ruler.getRules("list"),T=e.parentType,e.parentType="list";_<n;){for(C=N,b=e.eMarks[_],f=E=e.sCount[_]+N-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))E+=4-(E+e.bsCount[_])%4;else{if(32!==a)break;E++}C++}if((l=(s=C)>=b?1:E-f)>4&&(l=1),c=f+l,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),L.map=d=[t,0],p&&(L.info=e.src.slice(O,N-1)),S=e.tight,x=e.tShift[t],w=e.sCount[t],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[t]=x,e.sCount[t]=w,e.tight=S,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),_=t=e.line,d[1]=_,s=e.bMarks[t],_>=n)break;if(e.sCount[_]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(I=!1,u=0,h=D.length;u<h;u++)if(D[u](e,_,n,!0)){I=!0;break}if(I)break;if(p){if((N=o(e,_))<0)break;O=e.bMarks[_]+e.tShift[_]}else if((N=i(e,_))<0)break;if(g!==e.src.charCodeAt(N-1))break}return(L=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),v[1]=_,e.line=_,e.parentType=T,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0}},81603:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u=t+1,c=e.md.block.ruler.getRules("paragraph"),l=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<l&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(r=!1,i=0,o=c.length;i<o;i++)if(c[i](e,u,l,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},73528:function(e,t,n){"use strict";var r=n(26083).normalizeReference,i=n(26083).isSpace;e.exports=function(e,t,n,o){var a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k=0,T=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],x=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(T))return!1;for(;++T<w;)if(93===e.src.charCodeAt(T)&&92!==e.src.charCodeAt(T-1)){if(T+1===w)return!1;if(58!==e.src.charCodeAt(T+1))return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),v=e.parentType,e.parentType="reference";x<c&&!e.isEmpty(x);x++)if(!(e.sCount[x]-e.blkIndent>3)&&!(e.sCount[x]<0)){for(b=!1,f=0,p=_.length;f<p;f++)if(_[f](e,x,c,!0)){b=!0;break}if(b)break}for(w=(y=e.getLines(t,x,e.blkIndent,!1).trim()).length,T=1;T<w;T++){if(91===(a=y.charCodeAt(T)))return!1;if(93===a){h=T;break}(10===a||92===a&&++T<w&&10===y.charCodeAt(T))&&k++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(T=h+2;T<w;T++)if(10===(a=y.charCodeAt(T)))k++;else if(!i(a))break;if(!(m=e.md.helpers.parseLinkDestination(y,T,w)).ok)return!1;if(l=e.md.normalizeLink(m.str),!e.md.validateLink(l))return!1;for(s=T=m.pos,u=k+=m.lines,g=T;T<w;T++)if(10===(a=y.charCodeAt(T)))k++;else if(!i(a))break;for(m=e.md.helpers.parseLinkTitle(y,T,w),T<w&&g!==T&&m.ok?(E=m.str,T=m.pos,k+=m.lines):(E="",T=s,k=u);T<w&&(a=y.charCodeAt(T),i(a));)T++;if(T<w&&10!==y.charCodeAt(T)&&E)for(E="",T=s,k=u;T<w&&(a=y.charCodeAt(T),i(a));)T++;return!(T<w&&10!==y.charCodeAt(T))&&(!!(d=r(y.slice(1,h)))&&(o||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[d]&&(e.env.references[d]={title:E,href:l}),e.parentType=v,e.line=t+k+1),!0))}},96542:function(e,t,n){"use strict";var r=n(46581),i=n(26083).isSpace;function o(e,t,n,r){var o,a,s,u,c,l,f,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=u=l=f=0,c=(a=this.src).length;u<c;u++){if(o=a.charCodeAt(u),!p){if(i(o)){l++,9===o?f+=4-f%4:f++;continue}p=!0}10!==o&&u!==c-1||(10!==o&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),p=!1,l=0,f=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,u,c,l,f,p=e;if(e>=t)return"";for(l=new Array(t-e),o=0;p<t;p++,o++){for(a=0,f=u=this.bMarks[p],c=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];u<c&&a<n;){if(s=this.src.charCodeAt(u),i(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(u-f<this.tShift[p]))break;a++}u++}l[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(u,c):this.src.slice(u,c)}return l.join("")},o.prototype.Token=r,e.exports=o},15547:function(e,t,n){"use strict";var r=n(26083).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,t,n,a){var s,u,c,l,f,p,d,h,v,m,g,y,b,_,E,k,T,w;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((c=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(T=e.src.charCodeAt(c++))&&45!==T&&58!==T)return!1;if(c>=e.eMarks[p])return!1;if(124!==(w=e.src.charCodeAt(c++))&&45!==w&&58!==w&&!r(w))return!1;if(45===T&&r(w))return!1;for(;c<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!r(s))return!1;c++}for(d=(u=i(e,t+1)).split("|"),m=[],l=0;l<d.length;l++){if(!(g=d[l].trim())){if(0===l||l===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(u=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=o(u)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==m.length)return!1;if(a)return!0;for(_=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),(v=e.push("table_open","table",1)).map=y=[t,0],(v=e.push("thead_open","thead",1)).map=[t,t+1],(v=e.push("tr_open","tr",1)).map=[t,t+1],l=0;l<d.length;l++)v=e.push("th_open","th",1),m[l]&&(v.attrs=[["style","text-align:"+m[l]]]),(v=e.push("inline","",0)).content=d[l].trim(),v.children=[],v=e.push("th_close","th",-1);for(v=e.push("tr_close","tr",-1),v=e.push("thead_close","thead",-1),p=t+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(E=!1,l=0,f=k.length;l<f;l++)if(k[l](e,p,n,!0)){E=!0;break}if(E)break;if(!(u=i(e,p).trim()))break;if(e.sCount[p]-e.blkIndent>=4)break;for((d=o(u)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),p===t+2&&((v=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(v=e.push("tr_open","tr",1)).map=[p,p+1],l=0;l<h;l++)v=e.push("td_open","td",1),m[l]&&(v.attrs=[["style","text-align:"+m[l]]]),(v=e.push("inline","",0)).content=d[l]?d[l].trim():"",v.children=[],v=e.push("td_close","td",-1);v=e.push("tr_close","tr",-1)}return b&&(v=e.push("tbody_close","tbody",-1),b[1]=p),v=e.push("table_close","table",-1),y[1]=p,e.parentType=_,e.line=p,!0}},85887:function(e){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},45076:function(e){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},28898:function(e,t,n){"use strict";var r=n(26083).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,u,c,l,f,p,d,h,v,m,g,y,b,_,E=e.tokens;if(e.md.options.linkify)for(n=0,o=E.length;n<o;n++)if("inline"===E[n].type&&e.md.linkify.pretest(E[n].content))for(v=0,t=(a=E[n].children).length-1;t>=0;t--)if("link_close"!==(u=a[t]).type){if("html_inline"===u.type&&(_=u.content,/^<a[>\s]/i.test(_)&&v>0&&v--,i(u.content)&&v++),!(v>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(f=u.content,b=e.md.linkify.match(f),c=[],h=u.level,d=0,l=0;l<b.length;l++)m=b[l].url,g=e.md.normalizeLink(m),e.md.validateLink(g)&&(y=b[l].text,y=b[l].schema?"mailto:"!==b[l].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[l].index)>d&&((s=new e.Token("text","",0)).content=f.slice(d,p),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",g]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),d=b[l].lastIndex);d<f.length&&((s=new e.Token("text","",0)).content=f.slice(d),s.level=h,c.push(s)),E[n].children=a=r(a,t,c)}}else for(t--;a[t].level!==u.level&&"link_open"!==a[t].type;)t--}},77980:function(e){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"\ufffd"),e.src=r}},46247:function(e){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},53344:function(e,t,n){"use strict";var r=n(26083).isWhiteSpace,i=n(26083).isPunctChar,o=n(26083).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function u(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,l,f,p,d,h,v,m,g,y,b,_,E,k,T,w,x,S,C;for(x=[],n=0;n<e.length;n++){for(a=e[n],d=e[n].level,T=x.length-1;T>=0&&!(x[T].level<=d);T--);if(x.length=T+1,"text"===a.type){f=0,p=(c=a.content).length;e:for(;f<p&&(s.lastIndex=f,l=s.exec(c));){if(E=k=!0,f=l.index+1,w="'"===l[0],v=32,l.index-1>=0)v=c.charCodeAt(l.index-1);else for(T=n-1;T>=0&&("softbreak"!==e[T].type&&"hardbreak"!==e[T].type);T--)if(e[T].content){v=e[T].content.charCodeAt(e[T].content.length-1);break}if(m=32,f<p)m=c.charCodeAt(f);else for(T=n+1;T<e.length&&("softbreak"!==e[T].type&&"hardbreak"!==e[T].type);T++)if(e[T].content){m=e[T].content.charCodeAt(0);break}if(g=o(v)||i(String.fromCharCode(v)),y=o(m)||i(String.fromCharCode(m)),b=r(v),(_=r(m))?E=!1:y&&(b||g||(E=!1)),b?k=!1:g&&(_||y||(k=!1)),34===m&&'"'===l[0]&&v>=48&&v<=57&&(k=E=!1),E&&k&&(E=g,k=y),E||k){if(k)for(T=x.length-1;T>=0&&(h=x[T],!(x[T].level<d));T--)if(h.single===w&&x[T].level===d){h=x[T],w?(S=t.md.options.quotes[2],C=t.md.options.quotes[3]):(S=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=u(a.content,l.index,C),e[h.token].content=u(e[h.token].content,h.pos,S),f+=C.length-1,h.token===n&&(f+=S.length-1),p=(c=a.content).length,x.length=T;continue e}E?x.push({token:n,pos:l.index,single:w,level:d}):k&&w&&(a.content=u(a.content,l.index,"\u2019"))}else w&&(a.content=u(a.content,l.index,"\u2019"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},86853:function(e,t,n){"use strict";var r=n(46581);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},73455:function(e){"use strict";var t=/^([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])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,u,c,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(u=e.pos,c=e.posMax;;){if(++l>=c)return!1;if(60===(s=e.src.charCodeAt(l)))return!1;if(62===s)break}return i=e.src.slice(u+1,l),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},81864:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u,c,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,r=e.posMax;l<r&&96===e.src.charCodeAt(l);)l++;if(u=(i=e.src.slice(n,l)).length,e.backticksScanned&&(e.backticks[u]||0)<=n)return t||(e.pending+=i),e.pos+=u,!0;for(a=s=l;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-a)===u)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(l,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=u,!0}},42935:function(e){"use strict";function t(e,t){var n,r,i,o,a,s,u,c,l={},f=t.length;if(f){var p=0,d=-2,h=[];for(n=0;n<f;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&d===i.token-1||(p=n),d=i.token,i.length=i.length||0,i.close){for(l.hasOwnProperty(i.marker)||(l[i.marker]=[-1,-1,-1,-1,-1,-1]),a=l[i.marker][(i.open?3:0)+i.length%3],s=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(u=!0)),!u)){c=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+c,h[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,d=-2;break}-1!==s&&(l[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},41568:function(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.w=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<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},71467:function(e,t,n){"use strict";var r=n(58458),i=n(26083).has,o=n(26083).isValidEntityCode,a=n(26083).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,l=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(l))return!1;if(l+1<f)if(35===e.src.charCodeAt(l+1)){if(c=e.src.slice(l).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(l).match(u))&&i(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},69639:function(e,t,n){"use strict";for(var r=n(26083).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<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},31519:function(e,t,n){"use strict";var r=n(94316).n;e.exports=function(e,t){var n,i,o,a=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=o)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,!0))))}},62692:function(e,t,n){"use strict";var r=n(26083).normalizeReference,i=n(26083).isSpace;e.exports=function(e,t){var n,o,a,s,u,c,l,f,p,d,h,v,m,g="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=u+1)<b&&40===e.src.charCodeAt(l)){for(l++;l<b&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(l>=b)return!1;for(m=l,(p=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(g=e.md.normalizeLink(p.str),e.md.validateLink(g)?l=p.pos:g=""),m=l;l<b&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(p=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<b&&m!==l&&p.ok)for(d=p.str,l=p.pos;l<b&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);else d="";if(l>=b||41!==e.src.charCodeAt(l))return e.pos=y,!1;l++}else{if("undefined"===typeof e.env.references)return!1;if(l<b&&91===e.src.charCodeAt(l)?(m=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?s=e.src.slice(m,l++):l=u+1):l=u+1,s||(s=e.src.slice(c,u)),!(f=e.env.references[r(s)]))return e.pos=y,!1;g=f.href,d=f.title}return t||(a=e.src.slice(c,u),e.md.inline.parse(a,e.md,e.env,v=[]),(h=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],h.children=v,h.content=a,d&&n.push(["title",d])),e.pos=l,e.posMax=b,!0}},87463:function(e,t,n){"use strict";var r=n(26083).normalizeReference,i=n(26083).isSpace;e.exports=function(e,t){var n,o,a,s,u,c,l,f,p="",d="",h=e.pos,v=e.posMax,m=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)<v&&40===e.src.charCodeAt(c)){for(g=!1,c++;c<v&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=v)return!1;if(m=c,(l=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(p=e.md.normalizeLink(l.str),e.md.validateLink(p)?c=l.pos:p="",m=c;c<v&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(l=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<v&&m!==c&&l.ok)for(d=l.str,c=l.pos;c<v&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);}(c>=v||41!==e.src.charCodeAt(c))&&(g=!0),c++}if(g){if("undefined"===typeof e.env.references)return!1;if(c<v&&91===e.src.charCodeAt(c)?(m=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(m,c++):c=s+1):c=s+1,a||(a=e.src.slice(u,s)),!(f=e.env.references[r(a)]))return e.pos=h,!1;p=f.href,d=f.title}return t||(e.pos=u,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",p]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=v,!0}},12489:function(e,t,n){"use strict";var r=n(26083).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<i&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}},95361:function(e,t,n){"use strict";var r=n(46581),i=n(26083).isWhiteSpace,o=n(26083).isPunctChar,a=n(26083).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,u,c,l,f,p,d,h=e,v=!0,m=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<g&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<g?this.src.charCodeAt(h):32,f=a(n)||o(String.fromCharCode(n)),d=a(r)||o(String.fromCharCode(r)),l=i(n),(p=i(r))?v=!1:d&&(l||f||(v=!1)),l?m=!1:f&&(p||d||(m=!1)),t?(u=v,c=m):(u=v&&(!m||f),c=m&&(!v||d)),{can_open:u,can_close:c,length:s}},s.prototype.Token=r,e.exports=s},69743:function(e){"use strict";function t(e,t){var n,r,i,o,a,s=[],u=t.length;for(n=0;n<u;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.w=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},43308:function(e){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},31072:function(e){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},46581:function(e){"use strict";function t(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}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.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},e.exports=t},69080:function(e){"use strict";var t={};function n(e,r){var i;return"string"!==typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,a,s,u,c="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=i[r]:192===(224&r)&&t+3<n&&128===(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(u=r<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(u),t+=3):224===(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&o)&&128===(192&a))?(c+=(u=r<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(u),t+=6):240===(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?((u=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||u>1114111?c+="\ufffd\ufffd\ufffd\ufffd":(u-=65536,c+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):c+="\ufffd";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},33754:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,u,c,l="";for("string"!==typeof r&&(i=r,r=n.defaultChars),"undefined"===typeof i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},74647:function(e){"use strict";e.exports=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||"",t+=e.hash||""}},1036:function(e,t,n){"use strict";e.exports.encode=n(33754),e.exports.decode=n(69080),e.exports.format=n(74647),e.exports.parse=n(63179)},63179:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),u=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,d,h,v=e;if(v=v.trim(),!t&&1===e.split("#").length){var m=i.exec(v);if(m)return this.pathname=m[1],m[2]&&(this.search=m[2]),this}var g=n.exec(v);if(g&&(a=(g=g[0]).toLowerCase(),this.protocol=g,v=v.substr(g.length)),(t||g||v.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===v.substr(0,2))||g&&f[g]||(v=v.substr(2),this.slashes=!0)),!f[g]&&(h||g&&!p[g])){var y,b,_=-1;for(r=0;r<u.length;r++)-1!==(d=v.indexOf(u[r]))&&(-1===_||d<_)&&(_=d);for(-1!==(b=-1===_?v.lastIndexOf("@"):v.lastIndexOf("@",_))&&(y=v.slice(0,b),v=v.slice(b+1),this.auth=y),_=-1,r=0;r<s.length;r++)-1!==(d=v.indexOf(s[r]))&&(-1===_||d<_)&&(_=d);-1===_&&(_=v.length),":"===v[_-1]&&_--;var E=v.slice(0,_);v=v.slice(_),this.parseHost(E),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var T=this.hostname.split(/\./);for(r=0,o=T.length;r<o;r++){var w=T[r];if(w&&!w.match(c)){for(var x="",S=0,C=w.length;S<C;S++)w.charCodeAt(S)>127?x+="x":x+=w[S];if(!x.match(c)){var N=T.slice(0,r),A=T.slice(r+1),O=w.match(l);O&&(N.push(O[1]),A.unshift(O[2])),A.length&&(v=A.join(".")+v),this.hostname=N.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=v.indexOf("#");-1!==I&&(this.hash=v.substr(I),v=v.slice(0,I));var D=v.indexOf("?");return-1!==D&&(this.search=v.substr(D),v=v.slice(0,D)),v&&(this.pathname=v),p[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},78154:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return b},encode:function(){return _},toASCII:function(){return k},toUnicode:function(){return E},ucs2decode:function(){return v},ucs2encode:function(){return m}});var r=n(41361),i=n(68079),o=2147483647,a=36,s=/^xn--/,u=/[^\0-\x7F]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function d(e){throw new RangeError(l[e])}function h(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(c,".")).split("."),t).join(".");return r+i}function v(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var m=function(e){return String.fromCodePoint.apply(String,(0,i.Z)(e))},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},y=function(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=a)e=f(e/35);return f(r+36*e/(e+38))},b=function(e){var t,n=[],r=e.length,i=0,s=128,u=72,c=e.lastIndexOf("-");c<0&&(c=0);for(var l=0;l<c;++l)e.charCodeAt(l)>=128&&d("not-basic"),n.push(e.charCodeAt(l));for(var p=c>0?c+1:0;p<r;){for(var h=i,v=1,m=a;;m+=a){p>=r&&d("invalid-input");var g=(t=e.charCodeAt(p++))>=48&&t<58?t-48+26:t>=65&&t<91?t-65:t>=97&&t<123?t-97:a;g>=a&&d("invalid-input"),g>f((o-i)/v)&&d("overflow"),i+=g*v;var b=m<=u?1:m>=u+26?26:m-u;if(g<b)break;var _=a-b;v>f(o/_)&&d("overflow"),v*=_}var E=n.length+1;u=y(i-h,E,0==h),f(i/E)>o-s&&d("overflow"),s+=f(i/E),i%=E,n.splice(i++,0,s)}return String.fromCodePoint.apply(String,n)},_=function(e){var t,n=[],i=(e=v(e)).length,s=128,u=0,c=72,l=(0,r.Z)(e);try{for(l.s();!(t=l.n()).done;){var h=t.value;h<128&&n.push(p(h))}}catch(L){l.e(L)}finally{l.f()}var m=n.length,b=m;for(m&&n.push("-");b<i;){var _,E=o,k=(0,r.Z)(e);try{for(k.s();!(_=k.n()).done;){var T=_.value;T>=s&&T<E&&(E=T)}}catch(L){k.e(L)}finally{k.f()}var w=b+1;E-s>f((o-u)/w)&&d("overflow"),u+=(E-s)*w,s=E;var x,S=(0,r.Z)(e);try{for(S.s();!(x=S.n()).done;){var C=x.value;if(C<s&&++u>o&&d("overflow"),C===s){for(var N=u,A=a;;A+=a){var O=A<=c?1:A>=c+26?26:A-c;if(N<O)break;var I=N-O,D=a-O;n.push(p(g(O+I%D,0))),N=f(I/D)}n.push(p(g(N,0))),c=y(u,w,b===m),u=0,++b}}}catch(L){S.e(L)}finally{S.f()}++u,++s}return n.join("")},E=function(e){return h(e,(function(e){return s.test(e)?b(e.slice(4).toLowerCase()):e}))},k=function(e){return h(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},T={version:"2.1.0",ucs2:{decode:v,encode:m},decode:b,encode:_,toASCII:k,toUnicode:E};t.default=T},36676:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(5057),a=(r=o)&&r.__esModule?r:{default:r},s=n(55898);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scriptLoaderId="id"+n.constructor.idCount++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.onError,n=e.onLoad,r=e.url;this.constructor.loadedScripts[r]?n():this.constructor.erroredScripts[r]?t():this.constructor.scriptObservers[r]?this.constructor.scriptObservers[r][this.scriptLoaderId]=this.props:(this.constructor.scriptObservers[r]=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.scriptLoaderId,this.props),this.createScript())}},{key:"componentWillUnmount",value:function(){var e=this.props.url,t=this.constructor.scriptObservers[e];t&&delete t[this.scriptLoaderId]}},{key:"createScript",value:function(){var e=this,t=this.props,n=t.onCreate,r=t.url,i=t.attributes,o=document.createElement("script");n(),i&&Object.keys(i).forEach((function(e){return o.setAttribute(e,i[e])})),o.src=r,o.hasAttribute("async")||(o.async=1);var a=function(t){var n=e.constructor.scriptObservers[r];Object.keys(n).forEach((function(i){t(n[i])&&delete e.constructor.scriptObservers[r][e.scriptLoaderId]}))};o.onload=function(){e.constructor.loadedScripts[r]=!0,a((function(e){return e.onLoad(),!0}))},o.onerror=function(){e.constructor.erroredScripts[r]=!0,a((function(e){return e.onError(),!0}))},document.body.appendChild(o)}},{key:"render",value:function(){return null}}]),t}(a.default.Component);u.propTypes={attributes:s.PropTypes.object,onCreate:s.PropTypes.func,onError:s.PropTypes.func.isRequired,onLoad:s.PropTypes.func.isRequired,url:s.PropTypes.string.isRequired},u.defaultProps={attributes:{},onCreate:function(){},onError:function(){},onLoad:function(){}},u.scriptObservers={},u.loadedScripts={},u.erroredScripts={},u.idCount=0,t.default=u,e.exports=t.default},3370:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},8152:function(e){e.exports=/[\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]/},4226:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/},95872:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},33146:function(e,t,n){"use strict";t.Any=n(16637),t.Cc=n(3370),t.Cf=n(8152),t.P=n(4226),t.Z=n(95872)},16637:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},26762:function(e,t,n){"use strict";n.r(t),t.default={}},3307:function(e,t,n){"use strict";n.r(t),t.default={}},84808:function(e,t,n){"use strict";n.r(t),t.default={}},31478:function(e,t,n){"use strict";n.d(t,{OS:function(){return v},Z:function(){return m},__:function(){return d}});var r=n(41361),i=n(9249),o=n(87371),a=n(80753),s=n(45754),u=n(86906),c=n(25991),l=n(17869),f=n(56287),p=n(38766);var d=function(e,t){(0,s.Z)(c,e);var n=(0,u.Z)(c);function c(e){var t,r,o,s;(0,i.Z)(this,c);for(var u=arguments.length,p=new Array(u>1?u-1:0),d=1;d<u;d++)p[d-1]=arguments[d];var v=function(e){var t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(p),m=v.nodes,g=v.source,y=v.positions,b=v.path,_=v.originalError,E=v.extensions;(t=n.call(this,e)).name="GraphQLError",t.path=null!==b&&void 0!==b?b:void 0,t.originalError=null!==_&&void 0!==_?_:void 0,t.nodes=h(Array.isArray(m)?m:m?[m]:void 0);var k=h(null===(r=t.nodes)||void 0===r?void 0:r.map((function(e){return e.loc})).filter((function(e){return null!=e})));t.source=null!==g&&void 0!==g?g:null===k||void 0===k||null===(o=k[0])||void 0===o?void 0:o.source,t.positions=null!==y&&void 0!==y?y:null===k||void 0===k?void 0:k.map((function(e){return e.start})),t.locations=y&&g?y.map((function(e){return(0,f.k)(g,e)})):null===k||void 0===k?void 0:k.map((function(e){return(0,f.k)(e.source,e.start)}));var T=(0,l.y)(null===_||void 0===_?void 0:_.extensions)?null===_||void 0===_?void 0:_.extensions:void 0;return t.extensions=null!==(s=null!==E&&void 0!==E?E:T)&&void 0!==s?s:Object.create(null),Object.defineProperties((0,a.Z)(t),{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==_&&void 0!==_&&_.stack?Object.defineProperty((0,a.Z)(t),"stack",{value:_.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace((0,a.Z)(t),c):Object.defineProperty((0,a.Z)(t),"stack",{value:Error().stack,writable:!0,configurable:!0}),t}return(0,o.Z)(c,[{key:t,get:function(){return"GraphQLError"}},{key:"toString",value:function(){var e=this.message;if(this.nodes){var t,n=(0,r.Z)(this.nodes);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.loc&&(e+="\n\n"+(0,p.Q)(i.loc))}}catch(u){n.e(u)}finally{n.f()}}else if(this.source&&this.locations){var o,a=(0,r.Z)(this.locations);try{for(a.s();!(o=a.n()).done;){var s=o.value;e+="\n\n"+(0,p.z)(this.source,s)}}catch(u){a.e(u)}finally{a.f()}}return e}},{key:"toJSON",value:function(){var e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}]),c}((0,c.Z)(Error),Symbol.toStringTag);function h(e){return void 0===e||0===e.length?void 0:e}function v(e){return e.toString()}function m(e){return e.toJSON()}},96843:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(31478);function i(e,t,n){return new r.__("Syntax Error: ".concat(n),{source:e,positions:[t]})}},55744:function(e,t,n){"use strict";n.d(t,{g:function(){return c},w:function(){return l}});var r=n(41361),i=n(60844),o=n(10949),a=n(78831),s=n(80371),u=n(11331);function c(e,t,n,r,i){var o=new Map;return f(e,t,n,r,i,o,new Set),o}function l(e,t,n,i,o){var a,s=new Map,u=new Set,c=(0,r.Z)(o);try{for(c.s();!(a=c.n()).done;){var l=a.value;l.selectionSet&&f(e,t,n,i,l.selectionSet,s,u)}}catch(p){c.e(p)}finally{c.f()}return s}function f(e,t,n,o,a,s,u){var c,l,h=(0,r.Z)(a.selections);try{for(h.s();!(c=h.n()).done;){var v=c.value;switch(v.kind){case i.h.FIELD:if(!p(n,v))continue;var m=(l=v).alias?l.alias.value:l.name.value,g=s.get(m);void 0!==g?g.push(v):s.set(m,[v]);break;case i.h.INLINE_FRAGMENT:if(!p(n,v)||!d(e,v,o))continue;f(e,t,n,o,v.selectionSet,s,u);break;case i.h.FRAGMENT_SPREAD:var y=v.name.value;if(u.has(y)||!p(n,v))continue;u.add(y);var b=t[y];if(!b||!d(e,b,o))continue;f(e,t,n,o,b.selectionSet,s,u)}}}catch(_){h.e(_)}finally{h.f()}}function p(e,t){var n=(0,u.zu)(a.QE,t,e);if(!0===(null===n||void 0===n?void 0:n.if))return!1;var r=(0,u.zu)(a.Yf,t,e);return!1!==(null===r||void 0===r?void 0:r.if)}function d(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=(0,s._)(e,r);return i===n||!!(0,o.m0)(i)&&e.isSubType(i,n)}},11331:function(e,t,n){"use strict";n.d(t,{LX:function(){return v},QF:function(){return h},zu:function(){return m}});var r=n(41361),i=n(6024),o=n(92373),a=n(2960),s=n(31478),u=n(60844),c=n(56327),l=n(10949),f=n(44517),p=n(80371),d=n(42954);function h(e,t,n,o){var u=[],h=null===o||void 0===o?void 0:o.maxErrors;try{var v=function(e,t,n,o){var u,h={},v=(0,r.Z)(t);try{var m=function(){var t=u.value,r=t.variable.name.value,v=(0,p._)(e,t.type);if(!(0,l.j$)(v)){var m=(0,c.S)(t.type);return o(new s.__('Variable "$'.concat(r,'" expected value of type "').concat(m,'" which cannot be used as an input type.'),{nodes:t.type})),"continue"}if(!g(n,r)){if(t.defaultValue)h[r]=(0,d.u)(t.defaultValue,v);else if((0,l.zM)(v)){var y=(0,i.X)(v);o(new s.__('Variable "$'.concat(r,'" of required type "').concat(y,'" was not provided.'),{nodes:t}))}return"continue"}var b=n[r];if(null===b&&(0,l.zM)(v)){var _=(0,i.X)(v);return o(new s.__('Variable "$'.concat(r,'" of non-null type "').concat(_,'" must not be null.'),{nodes:t})),"continue"}h[r]=(0,f.K)(b,v,(function(e,n,u){var c='Variable "$'.concat(r,'" got invalid value ')+(0,i.X)(n);e.length>0&&(c+=' at "'.concat(r).concat((0,a.F)(e),'"')),o(new s.__(c+"; "+u.message,{nodes:t,originalError:u}))}))};for(v.s();!(u=v.n()).done;)m()}catch(y){v.e(y)}finally{v.f()}return h}(e,t,n,(function(e){if(null!=h&&u.length>=h)throw new s.__("Too many errors processing variables, error limit reached. Execution aborted.");u.push(e)}));if(0===u.length)return{coerced:v}}catch(m){u.push(m)}return{errors:u}}function v(e,t,n){var a,f,p={},h=null!==(a=t.arguments)&&void 0!==a?a:[],v=(0,o.P)(h,(function(e){return e.name.value})),m=(0,r.Z)(e.args);try{for(m.s();!(f=m.n()).done;){var y=f.value,b=y.name,_=y.type,E=v[b];if(E){var k=E.value,T=k.kind===u.h.NULL;if(k.kind===u.h.VARIABLE){var w=k.name.value;if(null==n||!g(n,w)){if(void 0!==y.defaultValue)p[b]=y.defaultValue;else if((0,l.zM)(_))throw new s.__('Argument "'.concat(b,'" of required type "').concat((0,i.X)(_),'" ')+'was provided the variable "$'.concat(w,'" which was not provided a runtime value.'),{nodes:k});continue}T=null==n[w]}if(T&&(0,l.zM)(_))throw new s.__('Argument "'.concat(b,'" of non-null type "').concat((0,i.X)(_),'" ')+"must not be null.",{nodes:k});var x=(0,d.u)(k,_,n);if(void 0===x)throw new s.__('Argument "'.concat(b,'" has invalid value ').concat((0,c.S)(k),"."),{nodes:k});p[b]=x}else if(void 0!==y.defaultValue)p[b]=y.defaultValue;else if((0,l.zM)(_))throw new s.__('Argument "'.concat(b,'" of required type "').concat((0,i.X)(_),'" ')+"was not provided.",{nodes:t})}}catch(S){m.e(S)}finally{m.f()}return p}function m(e,t,n){var r,i=null===(r=t.directives)||void 0===r?void 0:r.find((function(t){return t.name.value===e.name}));if(i)return v(e,i,n)}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},18700:function(e,t,n){"use strict";n.r(t),n.d(t,{BREAK:function(){return se.$_},BreakingChangeType:function(){return Yt},DEFAULT_DEPRECATION_REASON:function(){return $.SY},DangerousChangeType:function(){return $t},DirectiveLocation:function(){return ue.B},ExecutableDefinitionsRule:function(){return Ce.i},FieldsOnCorrectTypeRule:function(){return Ne.A},FragmentsOnCompositeTypesRule:function(){return Ae.T},GRAPHQL_MAX_INT:function(){return K.HI},GRAPHQL_MIN_INT:function(){return K.st},GraphQLBoolean:function(){return K.EZ},GraphQLDeprecatedDirective:function(){return $.fg},GraphQLDirective:function(){return $.NZ},GraphQLEnumType:function(){return C.mR},GraphQLError:function(){return y.__},GraphQLFloat:function(){return K.av},GraphQLID:function(){return K.km},GraphQLIncludeDirective:function(){return $.Yf},GraphQLInputObjectType:function(){return C.sR},GraphQLInt:function(){return K._o},GraphQLInterfaceType:function(){return C.oW},GraphQLList:function(){return C.p2},GraphQLNonNull:function(){return C.bM},GraphQLObjectType:function(){return C.h6},GraphQLScalarType:function(){return C.n2},GraphQLSchema:function(){return Y.XO},GraphQLSkipDirective:function(){return $.QE},GraphQLSpecifiedByDirective:function(){return $.df},GraphQLString:function(){return K.kH},GraphQLUnionType:function(){return C.Gp},Kind:function(){return S.h},KnownArgumentNamesRule:function(){return Oe.e},KnownDirectivesRule:function(){return Ie.J},KnownFragmentNamesRule:function(){return De.a},KnownTypeNamesRule:function(){return Le.I},Lexer:function(){return ie.h},Location:function(){return x.Ye},LoneAnonymousOperationRule:function(){return Fe.F},LoneSchemaDefinitionRule:function(){return Ke.t},NoDeprecatedCustomRule:function(){return st.r},NoFragmentCyclesRule:function(){return Me.H},NoSchemaIntrospectionCustomRule:function(){return we},NoUndefinedVariablesRule:function(){return Re.$},NoUnusedFragmentsRule:function(){return je.J},NoUnusedVariablesRule:function(){return Pe.p},OperationTypeNode:function(){return x.ku},OverlappingFieldsCanBeMergedRule:function(){return Ve.y},PossibleFragmentSpreadsRule:function(){return Ze.a},PossibleTypeExtensionsRule:function(){return at.g},ProvidedRequiredArgumentsRule:function(){return qe.s},ScalarLeafsRule:function(){return Ue.O},SchemaMetaFieldDef:function(){return N.Az},SingleFieldSubscriptionsRule:function(){return Be.Z},Source:function(){return te.H},Token:function(){return x.WU},TokenKind:function(){return oe.T},TypeInfo:function(){return yn.a},TypeKind:function(){return N.zU},TypeMetaFieldDef:function(){return N.tF},TypeNameMetaFieldDef:function(){return N.hU},UniqueArgumentDefinitionNamesRule:function(){return it.L},UniqueArgumentNamesRule:function(){return ze.L},UniqueDirectiveNamesRule:function(){return ot.o},UniqueDirectivesPerLocationRule:function(){return He.k},UniqueEnumValueNamesRule:function(){return nt.L},UniqueFieldDefinitionNamesRule:function(){return rt.y},UniqueFragmentNamesRule:function(){return Ge.N},UniqueInputFieldNamesRule:function(){return We.P},UniqueOperationNamesRule:function(){return Qe.H},UniqueOperationTypesRule:function(){return et.q},UniqueTypeNamesRule:function(){return tt.P},UniqueVariableNamesRule:function(){return Xe.H},ValidationContext:function(){return xe._t},ValuesOfCorrectTypeRule:function(){return Je.j},VariablesAreInputTypesRule:function(){return Ye.I},VariablesInAllowedPositionRule:function(){return $e.w},__Directive:function(){return N.l3},__DirectiveLocation:function(){return N.x2},__EnumValue:function(){return N.jT},__Field:function(){return N.e_},__InputValue:function(){return N.XQ},__Schema:function(){return N.TK},__Type:function(){return N.qz},__TypeKind:function(){return N.PX},assertAbstractType:function(){return C.fU},assertCompositeType:function(){return C.M_},assertDirective:function(){return $.CO},assertEnumType:function(){return C.Zu},assertEnumValueName:function(){return ee.g},assertInputObjectType:function(){return C.U8},assertInputType:function(){return C.qT},assertInterfaceType:function(){return C.k2},assertLeafType:function(){return C.H5},assertListType:function(){return C.kS},assertName:function(){return ee.i},assertNamedType:function(){return C.rM},assertNonNullType:function(){return C.E$},assertNullableType:function(){return C.i_},assertObjectType:function(){return C.Z6},assertOutputType:function(){return C.Gt},assertScalarType:function(){return C.Pt},assertSchema:function(){return Y.EO},assertType:function(){return C.p_},assertUnionType:function(){return C.rc},assertValidName:function(){return Xt},assertValidSchema:function(){return u.J},assertWrappingType:function(){return C.vX},astFromValue:function(){return Ot.J},buildASTSchema:function(){return Et},buildClientSchema:function(){return vn.Z},buildSchema:function(){return kt},coerceInputValue:function(){return bn.K},concatAST:function(){return zt},createSourceEventStream:function(){return _e},defaultFieldResolver:function(){return G},defaultTypeResolver:function(){return H},doTypesOverlap:function(){return _n.zR},execute:function(){return D},executeSync:function(){return L},extendSchema:function(){return mt},findBreakingChanges:function(){return en},findDangerousChanges:function(){return tn},formatError:function(){return y.Z},getArgumentValues:function(){return O.LX},getDirectiveValues:function(){return O.zu},getEnterLeaveForKind:function(){return se.Eu},getIntrospectionQuery:function(){return ft.K},getLocation:function(){return ne.k},getNamedType:function(){return C.xC},getNullableType:function(){return C.tf},getOperationAST:function(){return ct},getOperationRootType:function(){return lt},getVariableValues:function(){return O.QF},getVisitFn:function(){return se.CK},graphql:function(){return Q},graphqlSync:function(){return X},introspectionFromSchema:function(){return pt},introspectionTypes:function(){return N.nL},isAbstractType:function(){return C.m0},isCompositeType:function(){return C.Gv},isConstValueNode:function(){return ce.Of},isDefinitionNode:function(){return ce.Ir},isDirective:function(){return $.wX},isEnumType:function(){return C.EM},isEqualType:function(){return _n._7},isExecutableDefinitionNode:function(){return ce.Wk},isInputObjectType:function(){return C.hL},isInputType:function(){return C.j$},isInterfaceType:function(){return C.oT},isIntrospectionType:function(){return N.s9},isLeafType:function(){return C.UT},isListType:function(){return C.HG},isNamedType:function(){return C.Zs},isNonNullType:function(){return C.zM},isNullableType:function(){return C.zP},isObjectType:function(){return C.lp},isOutputType:function(){return C.SZ},isRequiredArgument:function(){return C.dK},isRequiredInputField:function(){return C.Wd},isScalarType:function(){return C.KA},isSchema:function(){return Y.nN},isSelectionNode:function(){return ce.pO},isSpecifiedDirective:function(){return $.xg},isSpecifiedScalarType:function(){return K.u1},isType:function(){return C.P9},isTypeDefinitionNode:function(){return ce.zT},isTypeExtensionNode:function(){return ce.D$},isTypeNode:function(){return ce.VB},isTypeSubTypeOf:function(){return _n.uJ},isTypeSystemDefinitionNode:function(){return ce.G4},isTypeSystemExtensionNode:function(){return ce.aU},isUnionType:function(){return C.EN},isValidNameError:function(){return Jt},isValueNode:function(){return ce.nr},isWrappingType:function(){return C.fw},lexicographicSortSchema:function(){return xt},locatedError:function(){return w},parse:function(){return s.Qc},parseConstValue:function(){return s.tl},parseType:function(){return s.gZ},parseValue:function(){return s.H2},print:function(){return ae.S},printError:function(){return y.OS},printIntrospectionSchema:function(){return Dt},printLocation:function(){return re.Q},printSchema:function(){return It},printSourceLocation:function(){return re.z},printType:function(){return Rt},resolveObjMapThunk:function(){return C.WB},resolveReadonlyArrayThunk:function(){return C._9},responsePathAsArray:function(){return m.N},separateOperations:function(){return Ht},specifiedDirectives:function(){return $.V4},specifiedRules:function(){return Se.i},specifiedScalarTypes:function(){return K.HS},stripIgnoredCharacters:function(){return Qt},subscribe:function(){return ge},syntaxError:function(){return ut.h},typeFromAST:function(){return mn._},validate:function(){return c.Gu},validateSchema:function(){return u.F},valueFromAST:function(){return vt.u},valueFromASTUntyped:function(){return gn.M},version:function(){return r},versionInfo:function(){return i},visit:function(){return se.Vn},visitInParallel:function(){return se.j1},visitWithTypeInfo:function(){return yn.y}});var r="16.7.1",i=Object.freeze({major:16,minor:7,patch:1,preReleaseTag:null}),o=n(61388);function a(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}var s=n(92460),u=n(91681),c=n(72996),l=n(96234),f=n(41361),p=n(6024),d=n(42690),h=n(73342),v=n(17869);var m=n(97836);function g(e){return Promise.all(Object.values(e)).then((function(t){var n,r=Object.create(null),i=(0,f.Z)(Object.keys(e).entries());try{for(i.s();!(n=i.n()).done;){var o=(0,l.Z)(n.value,2),a=o[0];r[o[1]]=t[a]}}catch(s){i.e(s)}finally{i.f()}return r}))}var y=n(31478),b=n(87371),_=n(9249),E=n(45754),k=n(86906);var T=function(e){(0,E.Z)(n,e);var t=(0,k.Z)(n);function n(e){var r;return(0,_.Z)(this,n),(r=t.call(this,"Unexpected error value: "+(0,p.X)(e))).name="NonErrorThrown",r.thrownValue=e,r}return(0,b.Z)(n)}((0,n(25991).Z)(Error));function w(e,t,n){var r,i,o,a=(i=e)instanceof Error?i:new T(i);return o=a,Array.isArray(o.path)?a:new y.__(a.message,{nodes:null!==(r=a.nodes)&&void 0!==r?r:t,source:a.source,positions:a.positions,path:n,originalError:a})}var x=n(48700),S=n(60844),C=n(10949),N=n(64478),A=n(55744),O=n(11331),I=function(e){var t;return function(n,r,i){void 0===t&&(t=new WeakMap);var o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));var a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));var s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}((function(e,t,n){return(0,A.w)(e.schema,e.fragments,e.variableValues,t,n)}));function D(e){arguments.length<2||(0,o.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");var t=e.schema,n=e.document,r=e.variableValues,i=e.rootValue;M(t,n,r);var s=R(e);if(!("schema"in s))return{errors:s};try{var u=s.operation,c=function(e,t,n){var r=e.schema.getRootType(t.operation);if(null==r)throw new y.__("Schema is not configured to execute ".concat(t.operation," operation."),{nodes:t});var i=(0,A.g)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case x.ku.QUERY:return j(e,r,n,o,i);case x.ku.MUTATION:return function(e,t,n,r,i){return function(e,t,n){var r,i=n,o=(0,f.Z)(e);try{var s=function(){var e=r.value;i=a(i)?i.then((function(n){return t(n,e)})):t(i,e)};for(o.s();!(r=o.n()).done;)s()}catch(u){o.e(u)}finally{o.f()}return i}(i.entries(),(function(i,o){var s=(0,l.Z)(o,2),u=s[0],c=s[1],f=(0,m.Q)(r,u,t.name),p=P(e,t,n,c,f);return void 0===p?i:a(p)?p.then((function(e){return i[u]=e,i})):(i[u]=p,i)}),Object.create(null))}(e,r,n,o,i);case x.ku.SUBSCRIPTION:return j(e,r,n,o,i)}}(s,u,i);return a(c)?c.then((function(e){return F(e,s.errors)}),(function(e){return s.errors.push(e),F(null,s.errors)})):F(c,s.errors)}catch(p){return s.errors.push(p),F(null,s.errors)}}function L(e){var t=D(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function F(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function M(e,t,n){t||(0,o.a)(!1,"Must provide document."),(0,u.J)(e),null==n||(0,v.y)(n)||(0,o.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function R(e){var t,n,r,i,o=e.schema,a=e.document,s=e.rootValue,u=e.contextValue,c=e.variableValues,l=e.operationName,p=e.fieldResolver,d=e.typeResolver,h=e.subscribeFieldResolver,v=Object.create(null),m=(0,f.Z)(a.definitions);try{for(m.s();!(i=m.n()).done;){var g=i.value;switch(g.kind){case S.h.OPERATION_DEFINITION:if(null==l){if(void 0!==r)return[new y.__("Must provide operation name if query contains multiple operations.")];r=g}else(null===(t=g.name)||void 0===t?void 0:t.value)===l&&(r=g);break;case S.h.FRAGMENT_DEFINITION:v[g.name.value]=g}}}catch(E){m.e(E)}finally{m.f()}if(!r)return null!=l?[new y.__('Unknown operation named "'.concat(l,'".'))]:[new y.__("Must provide an operation.")];var b=null!==(n=r.variableDefinitions)&&void 0!==n?n:[],_=(0,O.QF)(o,b,null!==c&&void 0!==c?c:{},{maxErrors:50});return _.errors?_.errors:{schema:o,fragments:v,rootValue:s,contextValue:u,operation:r,variableValues:_.coerced,fieldResolver:null!==p&&void 0!==p?p:G,typeResolver:null!==d&&void 0!==d?d:H,subscribeFieldResolver:null!==h&&void 0!==h?h:G,errors:[]}}function j(e,t,n,r,i){var o=Object.create(null),s=!1;try{var u,c=(0,f.Z)(i.entries());try{for(c.s();!(u=c.n()).done;){var p=(0,l.Z)(u.value,2),d=p[0],h=P(e,t,n,p[1],(0,m.Q)(r,d,t.name));void 0!==h&&(o[d]=h,a(h)&&(s=!0))}}catch(v){c.e(v)}finally{c.f()}}catch(y){if(s)return g(o).finally((function(){throw y}));throw y}return s?g(o):o}function P(e,t,n,r,i){var o,s=W(e.schema,t,r[0]);if(s){var u=s.type,c=null!==(o=s.resolve)&&void 0!==o?o:e.fieldResolver,l=V(e,s,r,t,i);try{var f,p=c(n,(0,O.LX)(s,r[0],e.variableValues),e.contextValue,l);return f=a(p)?p.then((function(t){return q(e,u,r,l,i,t)})):q(e,u,r,l,i,p),a(f)?f.then(void 0,(function(t){return Z(w(t,r,(0,m.N)(i)),u,e)})):f}catch(d){return Z(w(d,r,(0,m.N)(i)),u,e)}}}function V(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Z(e,t,n){if((0,C.zM)(t))throw e;return n.errors.push(e),null}function q(e,t,n,r,i,o){if(o instanceof Error)throw o;if((0,C.zM)(t)){var s=q(e,t.ofType,n,r,i,o);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==o?null:(0,C.HG)(t)?function(e,t,n,r,i,o){if(!(0,h.i)(o))throw new y.__('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));var s=t.ofType,u=!1,c=Array.from(o,(function(t,o){var c=(0,m.Q)(i,o,void 0);try{var l;return l=a(t)?t.then((function(t){return q(e,s,n,r,c,t)})):q(e,s,n,r,c,t),a(l)?(u=!0,l.then(void 0,(function(t){return Z(w(t,n,(0,m.N)(c)),s,e)}))):l}catch(f){return Z(w(f,n,(0,m.N)(c)),s,e)}}));return u?Promise.all(c):c}(e,t,n,r,i,o):(0,C.UT)(t)?function(e,t){var n=e.serialize(t);if(null==n)throw new Error("Expected `".concat((0,p.X)(e),".serialize(").concat((0,p.X)(t),")` to ")+"return non-nullable value, returned: ".concat((0,p.X)(n)));return n}(t,o):(0,C.m0)(t)?function(e,t,n,r,i,o){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(o,c,r,t);if(a(l))return l.then((function(a){return B(e,U(a,e,t,n,r,o),n,r,i,o)}));return B(e,U(l,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):(0,C.lp)(t)?B(e,t,n,r,i,o):void(0,d.k)(!1,"Cannot complete value of unexpected output type: "+(0,p.X)(t))}function U(e,t,n,r,i,o){if(null==e)throw new y.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if((0,C.lp)(e))throw new y.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!==typeof e)throw new y.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat((0,p.X)(o),', received "').concat((0,p.X)(e),'".'));var a=t.schema.getType(e);if(null==a)throw new y.__('Abstract type "'.concat(n.name,'" was resolved to a type "').concat(e,'" that does not exist inside the schema.'),{nodes:r});if(!(0,C.lp)(a))throw new y.__('Abstract type "'.concat(n.name,'" was resolved to a non-object type "').concat(e,'".'),{nodes:r});if(!t.schema.isSubType(n,a))throw new y.__('Runtime Object type "'.concat(a.name,'" is not a possible type for "').concat(n.name,'".'),{nodes:r});return a}function B(e,t,n,r,i,o){var s=I(e,t,n);if(t.isTypeOf){var u=t.isTypeOf(o,e.contextValue,r);if(a(u))return u.then((function(r){if(!r)throw z(t,o,n);return j(e,t,o,i,s)}));if(!u)throw z(t,o,n)}return j(e,t,o,i,s)}function z(e,t,n){return new y.__('Expected value of type "'.concat(e.name,'" but got: ').concat((0,p.X)(t),"."),{nodes:n})}var H=function(e,t,n,r){if((0,v.y)(e)&&"string"===typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),o=[],s=0;s<i.length;s++){var u=i[s];if(u.isTypeOf){var c=u.isTypeOf(e,t,n);if(a(c))o[s]=c;else if(c)return u.name}}return o.length?Promise.all(o).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},G=function(e,t,n,r){if((0,v.y)(e)||"function"===typeof e){var i=e[r.fieldName];return"function"===typeof i?e[r.fieldName](t,n,r):i}};function W(e,t,n){var r=n.name.value;return r===N.Az.name&&e.getQueryType()===t?N.Az:r===N.tF.name&&e.getQueryType()===t?N.tF:r===N.hU.name?N.hU:t.getFields()[r]}function Q(e){return new Promise((function(t){return t(J(e))}))}function X(e){var t=J(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function J(e){arguments.length<2||(0,o.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");var t,n=e.schema,r=e.source,i=e.rootValue,a=e.contextValue,l=e.variableValues,f=e.operationName,p=e.fieldResolver,d=e.typeResolver,h=(0,u.F)(n);if(h.length>0)return{errors:h};try{t=(0,s.Qc)(r)}catch(ut){return{errors:[ut]}}var v=(0,c.Gu)(n,t);return v.length>0?{errors:v}:D({schema:n,document:t,rootValue:i,contextValue:a,variableValues:l,operationName:f,fieldResolver:p,typeResolver:d})}var Y=n(88041),$=n(78831),K=n(540),ee=n(56086),te=n(84835),ne=n(56287),re=n(38766),ie=n(54551),oe=n(42008),ae=n(56327),se=n(7751),ue=n(62724),ce=n(2364),le=n(68079),fe=n(32723),pe=n(33028),de=n(34795);function he(e){return"function"===typeof(null===e||void 0===e?void 0:e[Symbol.asyncIterator])}var ve=n(56666);function me(e,t){var n=e[Symbol.asyncIterator]();function r(e){return i.apply(this,arguments)}function i(){return(i=(0,de.Z)((0,fe.Z)().mark((function e(r){return(0,fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.done){e.next=2;break}return e.abrupt("return",r);case 2:return e.prev=2,e.next=5,t(r.value);case 5:return e.t0=e.sent,e.abrupt("return",{value:e.t0,done:!1});case 9:if(e.prev=9,e.t1=e.catch(2),"function"!==typeof n.return){e.next=19;break}return e.prev=12,e.next=15,n.return();case 15:e.next=19;break;case 17:e.prev=17,e.t2=e.catch(12);case 19:throw e.t1;case 20:case"end":return e.stop()}}),e,null,[[2,9],[12,17]])})))).apply(this,arguments)}return(0,ve.Z)({next:function(){return(0,de.Z)((0,fe.Z)().mark((function e(){return(0,fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=r,e.next=3,n.next();case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}),e)})))()},return:function(){return(0,de.Z)((0,fe.Z)().mark((function e(){return(0,fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof n.return){e.next=8;break}return e.t1=r,e.next=4,n.return();case 4:e.t2=e.sent,e.t0=(0,e.t1)(e.t2),e.next=9;break;case 8:e.t0={value:void 0,done:!0};case 9:return e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e)})))()},throw:function(e){return(0,de.Z)((0,fe.Z)().mark((function t(){return(0,fe.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!==typeof n.throw){t.next=6;break}return t.t0=r,t.next=4,n.throw(e);case 4:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 6:throw e;case 7:case"end":return t.stop()}}),t)})))()}},Symbol.asyncIterator,(function(){return this}))}function ge(e){return ye.apply(this,arguments)}function ye(){return ye=(0,de.Z)((0,fe.Z)().mark((function e(t){var n,r,i=arguments;return(0,fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.length<2||(0,o.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead."),e.next=3,_e(t);case 3:if(he(n=e.sent)){e.next=6;break}return e.abrupt("return",n);case 6:return r=function(e){return D((0,pe.Z)((0,pe.Z)({},t),{},{rootValue:e}))},e.abrupt("return",me(n,r));case 8:case"end":return e.stop()}}),e)}))),ye.apply(this,arguments)}function be(e){var t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function _e(){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,de.Z)((0,fe.Z)().mark((function e(){var t,n,r,i,o,a,s,u,c,l=arguments;return(0,fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=l.length,n=new Array(t),r=0;r<t;r++)n[r]=l[r];if(i=be(n),o=i.schema,a=i.document,s=i.variableValues,M(o,a,s),"schema"in(u=R(i))){e.next=7;break}return e.abrupt("return",{errors:u});case 7:return e.prev=7,e.next=10,ke(u);case 10:if(he(c=e.sent)){e.next=13;break}throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,p.X)(c),"."));case 13:return e.abrupt("return",c);case 16:if(e.prev=16,e.t0=e.catch(7),!(e.t0 instanceof y.__)){e.next=20;break}return e.abrupt("return",{errors:[e.t0]});case 20:throw e.t0;case 21:case"end":return e.stop()}}),e,null,[[7,16]])}))),Ee.apply(this,arguments)}function ke(e){return Te.apply(this,arguments)}function Te(){return(Te=(0,de.Z)((0,fe.Z)().mark((function e(t){var n,r,i,o,a,s,u,c,f,p,d,h,v,g,b,_,E,k,T;return(0,fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.schema,r=t.fragments,i=t.operation,o=t.variableValues,a=t.rootValue,null!=(s=n.getSubscriptionType())){e.next=4;break}throw new y.__("Schema is not configured to execute subscription operation.",{nodes:i});case 4:if(u=(0,A.g)(n,r,o,s,i.selectionSet),c=(0,l.Z)((0,le.Z)(u.entries())[0],2),f=c[0],p=c[1],d=W(n,s,p[0])){e.next=10;break}throw h=p[0].name.value,new y.__('The subscription field "'.concat(h,'" is not defined.'),{nodes:p});case 10:return v=(0,m.Q)(void 0,f,s.name),g=V(t,d,p,s,v),e.prev=12,_=(0,O.LX)(d,p[0],o),E=t.contextValue,k=null!==(b=d.subscribe)&&void 0!==b?b:t.subscribeFieldResolver,e.next=18,k(a,_,E,g);case 18:if(!((T=e.sent)instanceof Error)){e.next=21;break}throw T;case 21:return e.abrupt("return",T);case 24:throw e.prev=24,e.t0=e.catch(12),w(e.t0,p,(0,m.N)(v));case 27:case"end":return e.stop()}}),e,null,[[12,24]])})))).apply(this,arguments)}function we(e){return{Field:function(t){var n=(0,C.xC)(e.getType());n&&(0,N.s9)(n)&&e.reportError(new y.__('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),{nodes:t}))}}}var xe=n(26743),Se=n(14141),Ce=n(77382),Ne=n(5741),Ae=n(84876),Oe=n(68521),Ie=n(84646),De=n(27499),Le=n(52546),Fe=n(76373),Me=n(76776),Re=n(754),je=n(5826),Pe=n(67184),Ve=n(61074),Ze=n(20919),qe=n(25897),Ue=n(80926),Be=n(93448),ze=n(65915),He=n(23453),Ge=n(53316),We=n(83703),Qe=n(83654),Xe=n(42205),Je=n(82856),Ye=n(15024),$e=n(15247),Ke=n(1367),et=n(8590),tt=n(63669),nt=n(15617),rt=n(77916),it=n(15702),ot=n(86066),at=n(92793),st=n(43113),ut=n(96843);function ct(e,t){var n,r=null,i=(0,f.Z)(e.definitions);try{for(i.s();!(n=i.n()).done;){var o,a=n.value;if(a.kind===S.h.OPERATION_DEFINITION)if(null==t){if(r)return null;r=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}}catch(s){i.e(s)}finally{i.f()}return r}function lt(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new y.__("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new y.__("Schema is not configured for mutations.",{nodes:t});return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new y.__("Schema is not configured for subscriptions.",{nodes:t});return i}throw new y.__("Can only have query, mutation and subscription operations.",{nodes:t})}var ft=n(95122);function pt(e,t){var n=(0,pe.Z)({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=L({schema:e,document:(0,s.Qc)((0,ft.K)(n))});return!r.errors&&r.data||(0,d.k)(!1),r.data}var dt=n(92373),ht=n(2153),vt=n(42954);function mt(e,t,n){(0,Y.EO)(e),null!=t&&t.kind===S.h.DOCUMENT||(0,o.a)(!1,"Must provide valid Document AST."),!0!==(null===n||void 0===n?void 0:n.assumeValid)&&!0!==(null===n||void 0===n?void 0:n.assumeValidSDL)&&(0,c.ED)(t,e);var r=e.toConfig(),i=gt(r,t,n);return r===i?e:new Y.XO(i)}function gt(e,t,n){var r,i,o,a,s,u,c=[],l=Object.create(null),h=[],v=[],m=(0,f.Z)(t.definitions);try{for(m.s();!(u=m.n()).done;){var g=u.value;if(g.kind===S.h.SCHEMA_DEFINITION)s=g;else if(g.kind===S.h.SCHEMA_EXTENSION)v.push(g);else if((0,ce.zT)(g))c.push(g);else if((0,ce.D$)(g)){var y=g.name.value,b=l[y];l[y]=b?b.concat([g]):[g]}else g.kind===S.h.DIRECTIVE_DEFINITION&&h.push(g)}}catch(Q){m.e(Q)}finally{m.f()}if(0===Object.keys(l).length&&0===c.length&&0===h.length&&0===v.length&&null==s)return e;var _,E=Object.create(null),k=(0,f.Z)(e.types);try{for(k.s();!(_=k.n()).done;){var T=_.value;E[T.name]=M(T)}}catch(Q){k.e(Q)}finally{k.f()}for(var w=0,x=c;w<x.length;w++){var A,O=x[w],I=O.name.value;E[I]=null!==(A=yt[I])&&void 0!==A?A:W(O)}var D=(0,pe.Z)((0,pe.Z)({query:e.query&&F(e.query),mutation:e.mutation&&F(e.mutation),subscription:e.subscription&&F(e.subscription)},s&&P([s])),P(v));return(0,pe.Z)((0,pe.Z)({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},D),{},{types:Object.values(E),directives:[].concat((0,le.Z)(e.directives.map((function(e){var t=e.toConfig();return new $.NZ((0,pe.Z)((0,pe.Z)({},t),{},{args:(0,ht.j)(t.args,j)}))}))),(0,le.Z)(h.map((function(e){var t;return new $.NZ({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((function(e){return e.value})),isRepeatable:e.repeatable,args:U(e.arguments),astNode:e})})))),extensions:Object.create(null),astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(v),assumeValid:null!==(a=null===n||void 0===n?void 0:n.assumeValid)&&void 0!==a&&a});function L(e){return(0,C.HG)(e)?new C.p2(L(e.ofType)):(0,C.zM)(e)?new C.bM(L(e.ofType)):F(e)}function F(e){return E[e.name]}function M(e){return(0,N.s9)(e)||(0,K.u1)(e)?e:(0,C.KA)(e)?function(e){var t,n,r=e.toConfig(),i=null!==(t=l[r.name])&&void 0!==t?t:[],o=r.specifiedByURL,a=(0,f.Z)(i);try{for(a.s();!(n=a.n()).done;){var s;o=null!==(s=_t(n.value))&&void 0!==s?s:o}}catch(Q){a.e(Q)}finally{a.f()}return new C.n2((0,pe.Z)((0,pe.Z)({},r),{},{specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)}))}(e):(0,C.lp)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new C.h6((0,pe.Z)((0,pe.Z)({},n),{},{interfaces:function(){return[].concat((0,le.Z)(e.getInterfaces().map(F)),(0,le.Z)(H(r)))},fields:function(){return(0,pe.Z)((0,pe.Z)({},(0,ht.j)(n.fields,R)),q(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,C.oT)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new C.oW((0,pe.Z)((0,pe.Z)({},n),{},{interfaces:function(){return[].concat((0,le.Z)(e.getInterfaces().map(F)),(0,le.Z)(H(r)))},fields:function(){return(0,pe.Z)((0,pe.Z)({},(0,ht.j)(n.fields,R)),q(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,C.EN)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new C.Gp((0,pe.Z)((0,pe.Z)({},n),{},{types:function(){return[].concat((0,le.Z)(e.getTypes().map(F)),(0,le.Z)(G(r)))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,C.EM)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new C.mR((0,pe.Z)((0,pe.Z)({},n),{},{values:(0,pe.Z)((0,pe.Z)({},n.values),z(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,C.hL)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new C.sR((0,pe.Z)((0,pe.Z)({},n),{},{fields:function(){return(0,pe.Z)((0,pe.Z)({},(0,ht.j)(n.fields,(function(e){return(0,pe.Z)((0,pe.Z)({},e),{},{type:L(e.type)})}))),B(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):void(0,d.k)(!1,"Unexpected type: "+(0,p.X)(e))}function R(e){return(0,pe.Z)((0,pe.Z)({},e),{},{type:L(e.type),args:e.args&&(0,ht.j)(e.args,j)})}function j(e){return(0,pe.Z)((0,pe.Z)({},e),{},{type:L(e.type)})}function P(e){var t,n={},r=(0,f.Z)(e);try{for(r.s();!(t=r.n()).done;){var i,o,a=null!==(i=t.value.operationTypes)&&void 0!==i?i:[],s=(0,f.Z)(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;n[u.operation]=V(u.type)}}catch(Q){s.e(Q)}finally{s.f()}}}catch(Q){r.e(Q)}finally{r.f()}return n}function V(e){var t,n=e.name.value,r=null!==(t=yt[n])&&void 0!==t?t:E[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function Z(e){return e.kind===S.h.LIST_TYPE?new C.p2(Z(e.type)):e.kind===S.h.NON_NULL_TYPE?new C.bM(Z(e.type)):V(e)}function q(e){var t,n=Object.create(null),r=(0,f.Z)(e);try{for(r.s();!(t=r.n()).done;){var i,o,a=null!==(i=t.value.fields)&&void 0!==i?i:[],s=(0,f.Z)(a);try{for(s.s();!(o=s.n()).done;){var u,c=o.value;n[c.name.value]={type:Z(c.type),description:null===(u=c.description)||void 0===u?void 0:u.value,args:U(c.arguments),deprecationReason:bt(c),astNode:c}}}catch(Q){s.e(Q)}finally{s.f()}}}catch(Q){r.e(Q)}finally{r.f()}return n}function U(e){var t,n=null!==e&&void 0!==e?e:[],r=Object.create(null),i=(0,f.Z)(n);try{for(i.s();!(t=i.n()).done;){var o,a=t.value,s=Z(a.type);r[a.name.value]={type:s,description:null===(o=a.description)||void 0===o?void 0:o.value,defaultValue:(0,vt.u)(a.defaultValue,s),deprecationReason:bt(a),astNode:a}}}catch(Q){i.e(Q)}finally{i.f()}return r}function B(e){var t,n=Object.create(null),r=(0,f.Z)(e);try{for(r.s();!(t=r.n()).done;){var i,o,a=null!==(i=t.value.fields)&&void 0!==i?i:[],s=(0,f.Z)(a);try{for(s.s();!(o=s.n()).done;){var u,c=o.value,l=Z(c.type);n[c.name.value]={type:l,description:null===(u=c.description)||void 0===u?void 0:u.value,defaultValue:(0,vt.u)(c.defaultValue,l),deprecationReason:bt(c),astNode:c}}}catch(Q){s.e(Q)}finally{s.f()}}}catch(Q){r.e(Q)}finally{r.f()}return n}function z(e){var t,n=Object.create(null),r=(0,f.Z)(e);try{for(r.s();!(t=r.n()).done;){var i,o,a=null!==(i=t.value.values)&&void 0!==i?i:[],s=(0,f.Z)(a);try{for(s.s();!(o=s.n()).done;){var u,c=o.value;n[c.name.value]={description:null===(u=c.description)||void 0===u?void 0:u.value,deprecationReason:bt(c),astNode:c}}}catch(Q){s.e(Q)}finally{s.f()}}}catch(Q){r.e(Q)}finally{r.f()}return n}function H(e){return e.flatMap((function(e){var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(V))&&void 0!==t?t:[]}))}function G(e){return e.flatMap((function(e){var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(V))&&void 0!==t?t:[]}))}function W(e){var t,n=e.name.value,r=null!==(t=l[n])&&void 0!==t?t:[];switch(e.kind){case S.h.OBJECT_TYPE_DEFINITION:var i,o=[e].concat((0,le.Z)(r));return new C.h6({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:function(){return H(o)},fields:function(){return q(o)},astNode:e,extensionASTNodes:r});case S.h.INTERFACE_TYPE_DEFINITION:var a,s=[e].concat((0,le.Z)(r));return new C.oW({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,interfaces:function(){return H(s)},fields:function(){return q(s)},astNode:e,extensionASTNodes:r});case S.h.ENUM_TYPE_DEFINITION:var u,c=[e].concat((0,le.Z)(r));return new C.mR({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,values:z(c),astNode:e,extensionASTNodes:r});case S.h.UNION_TYPE_DEFINITION:var f,p=[e].concat((0,le.Z)(r));return new C.Gp({name:n,description:null===(f=e.description)||void 0===f?void 0:f.value,types:function(){return G(p)},astNode:e,extensionASTNodes:r});case S.h.SCALAR_TYPE_DEFINITION:var d;return new C.n2({name:n,description:null===(d=e.description)||void 0===d?void 0:d.value,specifiedByURL:_t(e),astNode:e,extensionASTNodes:r});case S.h.INPUT_OBJECT_TYPE_DEFINITION:var h,v=[e].concat((0,le.Z)(r));return new C.sR({name:n,description:null===(h=e.description)||void 0===h?void 0:h.value,fields:function(){return B(v)},astNode:e,extensionASTNodes:r})}}}var yt=(0,dt.P)([].concat((0,le.Z)(K.HS),(0,le.Z)(N.nL)),(function(e){return e.name}));function bt(e){var t=(0,O.zu)($.fg,e);return null===t||void 0===t?void 0:t.reason}function _t(e){var t=(0,O.zu)($.df,e);return null===t||void 0===t?void 0:t.url}function Et(e,t){null!=e&&e.kind===S.h.DOCUMENT||(0,o.a)(!1,"Must provide valid Document AST."),!0!==(null===t||void 0===t?void 0:t.assumeValid)&&!0!==(null===t||void 0===t?void 0:t.assumeValidSDL)&&(0,c.zo)(e);var n=gt({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode){var r,i=(0,f.Z)(n.types);try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a}}}catch(u){i.e(u)}finally{i.f()}}var s=[].concat((0,le.Z)(n.directives),(0,le.Z)($.V4.filter((function(e){return n.directives.every((function(t){return t.name!==e.name}))}))));return new Y.XO((0,pe.Z)((0,pe.Z)({},n),{},{directives:s}))}function kt(e,t){return Et((0,s.Qc)(e,{noLocation:null===t||void 0===t?void 0:t.noLocation,allowLegacyFragmentVariables:null===t||void 0===t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null===t||void 0===t?void 0:t.assumeValidSDL,assumeValid:null===t||void 0===t?void 0:t.assumeValid})}var Tt=n(50964),wt=n(9911);function xt(e){var t=e.toConfig(),n=(0,Tt.w)(Ct(t.types),(function(e){return e.name}),(function(e){if((0,C.KA)(e)||(0,N.s9)(e))return e;if((0,C.lp)(e)){var t=e.toConfig();return new C.h6((0,pe.Z)((0,pe.Z)({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if((0,C.oT)(e)){var n=e.toConfig();return new C.oW((0,pe.Z)((0,pe.Z)({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if((0,C.EN)(e)){var i=e.toConfig();return new C.Gp((0,pe.Z)((0,pe.Z)({},i),{},{types:function(){return u(i.types)}}))}if((0,C.EM)(e)){var o=e.toConfig();return new C.mR((0,pe.Z)((0,pe.Z)({},o),{},{values:St(o.values,(function(e){return e}))}))}if((0,C.hL)(e)){var a=e.toConfig();return new C.sR((0,pe.Z)((0,pe.Z)({},a),{},{fields:function(){return St(a.fields,(function(e){return(0,pe.Z)((0,pe.Z)({},e),{},{type:r(e.type)})}))}}))}(0,d.k)(!1,"Unexpected type: "+(0,p.X)(e))}));return new Y.XO((0,pe.Z)((0,pe.Z)({},t),{},{types:Object.values(n),directives:Ct(t.directives).map((function(e){var t=e.toConfig();return new $.NZ((0,pe.Z)((0,pe.Z)({},t),{},{locations:Nt(t.locations,(function(e){return e})),args:a(t.args)}))})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return(0,C.HG)(e)?new C.p2(r(e.ofType)):(0,C.zM)(e)?new C.bM(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return St(e,(function(e){return(0,pe.Z)((0,pe.Z)({},e),{},{type:r(e.type)})}))}function s(e){return St(e,(function(e){return(0,pe.Z)((0,pe.Z)({},e),{},{type:r(e.type),args:e.args&&a(e.args)})}))}function u(e){return Ct(e).map(i)}}function St(e,t){var n,r=Object.create(null),i=(0,f.Z)(Object.keys(e).sort(wt.K));try{for(i.s();!(n=i.n()).done;){var o=n.value;r[o]=t(e[o])}}catch(a){i.e(a)}finally{i.f()}return r}function Ct(e){return Nt(e,(function(e){return e.name}))}function Nt(e,t){return e.slice().sort((function(e,n){var r=t(e),i=t(n);return(0,wt.K)(r,i)}))}var At=n(5035),Ot=n(99024);function It(e){return Ft(e,(function(e){return!(0,$.xg)(e)}),Lt)}function Dt(e){return Ft(e,$.xg,N.s9)}function Lt(e){return!(0,K.u1)(e)&&!(0,N.s9)(e)}function Ft(e,t,n){var r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Mt(e)].concat((0,le.Z)(r.map((function(e){return function(e){return Bt(e)+"directive @"+e.name+Zt(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)}))),(0,le.Z)(i.map((function(e){return Rt(e)})))).filter(Boolean).join("\n\n")}function Mt(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Bt(e)+"schema {\n".concat(t.join("\n"),"\n}")}}function Rt(e){return(0,C.KA)(e)?function(e){return Bt(e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByURL)return"";var t=(0,ae.S)({kind:S.h.STRING,value:e.specifiedByURL});return" @specifiedBy(url: ".concat(t,")")}(e)}(e):(0,C.lp)(e)?function(e){return Bt(e)+"type ".concat(e.name)+jt(e)+Pt(e)}(e):(0,C.oT)(e)?function(e){return Bt(e)+"interface ".concat(e.name)+jt(e)+Pt(e)}(e):(0,C.EN)(e)?function(e){var t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Bt(e)+"union "+e.name+n}(e):(0,C.EM)(e)?function(e){var t=e.getValues().map((function(e,t){return Bt(e," ",!t)+" "+e.name+Ut(e.deprecationReason)}));return Bt(e)+"enum ".concat(e.name)+Vt(t)}(e):(0,C.hL)(e)?function(e){var t=Object.values(e.getFields()).map((function(e,t){return Bt(e," ",!t)+" "+qt(e)}));return Bt(e)+"input ".concat(e.name)+Vt(t)}(e):void(0,d.k)(!1,"Unexpected type: "+(0,p.X)(e))}function jt(e){var t=e.getInterfaces();return t.length?" implements "+t.map((function(e){return e.name})).join(" & "):""}function Pt(e){return Vt(Object.values(e.getFields()).map((function(e,t){return Bt(e," ",!t)+" "+e.name+Zt(e.args," ")+": "+String(e.type)+Ut(e.deprecationReason)})))}function Vt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length?"":e.every((function(e){return!e.description}))?"("+e.map(qt).join(", ")+")":"(\n"+e.map((function(e,n){return Bt(e," "+t,!n)+" "+t+qt(e)})).join("\n")+"\n"+t+")"}function qt(e){var t=(0,Ot.J)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat((0,ae.S)(t))),n+Ut(e.deprecationReason)}function Ut(e){if(null==e)return"";if(e!==$.SY){var t=(0,ae.S)({kind:S.h.STRING,value:e});return" @deprecated(reason: ".concat(t,")")}return" @deprecated"}function Bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.description;return null==r?"":(t&&!n?"\n"+t:t)+(0,ae.S)({kind:S.h.STRING,value:r,block:(0,At.MZ)(r)}).replace(/\n/g,"\n"+t)+"\n"}function zt(e){var t,n=[],r=(0,f.Z)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push.apply(n,(0,le.Z)(i.definitions))}}catch(o){r.e(o)}finally{r.f()}return{kind:S.h.DOCUMENT,definitions:n}}function Ht(e){var t,n=[],r=Object.create(null),i=(0,f.Z)(e.definitions);try{for(i.s();!(t=i.n()).done;){var o=t.value;switch(o.kind){case S.h.OPERATION_DEFINITION:n.push(o);break;case S.h.FRAGMENT_DEFINITION:r[o.name.value]=Wt(o.selectionSet)}}}catch(l){i.e(l)}finally{i.f()}for(var a=Object.create(null),s=function(){var t,n=c[u],i=new Set,o=(0,f.Z)(Wt(n.selectionSet));try{for(o.s();!(t=o.n()).done;){var s=t.value;Gt(i,r,s)}}catch(l){o.e(l)}finally{o.f()}var p=n.name?n.name.value:"";a[p]={kind:S.h.DOCUMENT,definitions:e.definitions.filter((function(e){return e===n||e.kind===S.h.FRAGMENT_DEFINITION&&i.has(e.name.value)}))}},u=0,c=n;u<c.length;u++)s();return a}function Gt(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r){var i,o=(0,f.Z)(r);try{for(o.s();!(i=o.n()).done;){Gt(e,t,i.value)}}catch(a){o.e(a)}finally{o.f()}}}}function Wt(e){var t=[];return(0,se.Vn)(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function Qt(e){for(var t=(0,te.T)(e)?e:new te.H(e),n=t.body,r=new ie.h(t),i="",o=!1;r.advance().kind!==oe.T.EOF;){var a=r.token,s=a.kind,u=!(0,ie.u)(a.kind);o&&(u||a.kind===oe.T.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);s===oe.T.BLOCK_STRING?i+=(0,At.LZ)(a.value,{minimize:!0}):i+=c,o=u}return i}function Xt(e){var t=Jt(e);if(t)throw t;return e}function Jt(e){if("string"===typeof e||(0,o.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new y.__('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));try{(0,ee.i)(e)}catch(t){return t}}var Yt,$t,Kt=n(67853);function en(e,t){return nn(e,t).filter((function(e){return e.type in Yt}))}function tn(e,t){return nn(e,t).filter((function(e){return e.type in $t}))}function nn(e,t){return[].concat((0,le.Z)(function(e,t){var n,r=[],i=hn(Object.values(e.getTypeMap()),Object.values(t.getTypeMap())),o=(0,f.Z)(i.removed);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push({type:Yt.TYPE_REMOVED,description:(0,K.u1)(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}}catch(h){o.e(h)}finally{o.f()}var s,u=(0,f.Z)(i.persisted);try{for(u.s();!(s=u.n()).done;){var c=(0,l.Z)(s.value,2),p=c[0],d=c[1];(0,C.EM)(p)&&(0,C.EM)(d)?r.push.apply(r,(0,le.Z)(an(p,d))):(0,C.EN)(p)&&(0,C.EN)(d)?r.push.apply(r,(0,le.Z)(on(p,d))):(0,C.hL)(p)&&(0,C.hL)(d)?r.push.apply(r,(0,le.Z)(rn(p,d))):(0,C.lp)(p)&&(0,C.lp)(d)||(0,C.oT)(p)&&(0,C.oT)(d)?r.push.apply(r,(0,le.Z)(un(p,d)).concat((0,le.Z)(sn(p,d)))):p.constructor!==d.constructor&&r.push({type:Yt.TYPE_CHANGED_KIND,description:"".concat(p.name," changed from ")+"".concat(pn(p)," to ").concat(pn(d),".")})}}catch(h){u.e(h)}finally{u.f()}return r}(e,t)),(0,le.Z)(function(e,t){var n,r=[],i=hn(e.getDirectives(),t.getDirectives()),o=(0,f.Z)(i.removed);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push({type:Yt.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}}catch(w){o.e(w)}finally{o.f()}var s,u=(0,f.Z)(i.persisted);try{for(u.s();!(s=u.n()).done;){var c,p=(0,l.Z)(s.value,2),d=p[0],h=p[1],v=hn(d.args,h.args),m=(0,f.Z)(v.added);try{for(m.s();!(c=m.n()).done;){var g=c.value;(0,C.dK)(g)&&r.push({type:Yt.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(g.name," on directive ").concat(d.name," was added.")})}}catch(w){m.e(w)}finally{m.f()}var y,b=(0,f.Z)(v.removed);try{for(b.s();!(y=b.n()).done;){var _=y.value;r.push({type:Yt.DIRECTIVE_ARG_REMOVED,description:"".concat(_.name," was removed from ").concat(d.name,".")})}}catch(w){b.e(w)}finally{b.f()}d.isRepeatable&&!h.isRepeatable&&r.push({type:Yt.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(d.name,".")});var E,k=(0,f.Z)(d.locations);try{for(k.s();!(E=k.n()).done;){var T=E.value;h.locations.includes(T)||r.push({type:Yt.DIRECTIVE_LOCATION_REMOVED,description:"".concat(T," was removed from ").concat(d.name,".")})}}catch(w){k.e(w)}finally{k.f()}}}catch(w){u.e(w)}finally{u.f()}return r}(e,t)))}function rn(e,t){var n,r=[],i=hn(Object.values(e.getFields()),Object.values(t.getFields())),o=(0,f.Z)(i.added);try{for(o.s();!(n=o.n()).done;){var a=n.value;(0,C.Wd)(a)?r.push({type:Yt.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):r.push({type:$t.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}}catch(g){o.e(g)}finally{o.f()}var s,u=(0,f.Z)(i.removed);try{for(u.s();!(s=u.n()).done;){var c=s.value;r.push({type:Yt.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}}catch(g){u.e(g)}finally{u.f()}var p,d=(0,f.Z)(i.persisted);try{for(d.s();!(p=d.n()).done;){var h=(0,l.Z)(p.value,2),v=h[0],m=h[1];fn(v.type,m.type)||r.push({type:Yt.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(v.name," changed type from ")+"".concat(String(v.type)," to ").concat(String(m.type),".")})}}catch(g){d.e(g)}finally{d.f()}return r}function on(e,t){var n,r=[],i=hn(e.getTypes(),t.getTypes()),o=(0,f.Z)(i.added);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push({type:$t.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}}catch(l){o.e(l)}finally{o.f()}var s,u=(0,f.Z)(i.removed);try{for(u.s();!(s=u.n()).done;){var c=s.value;r.push({type:Yt.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}}catch(l){u.e(l)}finally{u.f()}return r}function an(e,t){var n,r=[],i=hn(e.getValues(),t.getValues()),o=(0,f.Z)(i.added);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push({type:$t.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}}catch(l){o.e(l)}finally{o.f()}var s,u=(0,f.Z)(i.removed);try{for(u.s();!(s=u.n()).done;){var c=s.value;r.push({type:Yt.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}}catch(l){u.e(l)}finally{u.f()}return r}function sn(e,t){var n,r=[],i=hn(e.getInterfaces(),t.getInterfaces()),o=(0,f.Z)(i.added);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push({type:$t.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}}catch(l){o.e(l)}finally{o.f()}var s,u=(0,f.Z)(i.removed);try{for(u.s();!(s=u.n()).done;){var c=s.value;r.push({type:Yt.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}}catch(l){u.e(l)}finally{u.f()}return r}function un(e,t){var n,r=[],i=hn(Object.values(e.getFields()),Object.values(t.getFields())),o=(0,f.Z)(i.removed);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push({type:Yt.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}}catch(h){o.e(h)}finally{o.f()}var s,u=(0,f.Z)(i.persisted);try{for(u.s();!(s=u.n()).done;){var c=(0,l.Z)(s.value,2),p=c[0],d=c[1];r.push.apply(r,(0,le.Z)(cn(e,p,d))),ln(p.type,d.type)||r.push({type:Yt.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(p.name," changed type from ")+"".concat(String(p.type)," to ").concat(String(d.type),".")})}}catch(h){u.e(h)}finally{u.f()}return r}function cn(e,t,n){var r,i=[],o=hn(t.args,n.args),a=(0,f.Z)(o.removed);try{for(a.s();!(r=a.n()).done;){var s=r.value;i.push({type:Yt.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}}catch(_){a.e(_)}finally{a.f()}var u,c=(0,f.Z)(o.persisted);try{for(c.s();!(u=c.n()).done;){var p=(0,l.Z)(u.value,2),d=p[0],h=p[1];if(fn(d.type,h.type)){if(void 0!==d.defaultValue)if(void 0===h.defaultValue)i.push({type:$t.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(d.name," defaultValue was removed.")});else{var v=dn(d.defaultValue,d.type),m=dn(h.defaultValue,h.type);v!==m&&i.push({type:$t.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(d.name," has changed defaultValue from ").concat(v," to ").concat(m,".")})}}else i.push({type:Yt.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(d.name," has changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}}catch(_){c.e(_)}finally{c.f()}var g,y=(0,f.Z)(o.added);try{for(y.s();!(g=y.n()).done;){var b=g.value;(0,C.dK)(b)?i.push({type:Yt.REQUIRED_ARG_ADDED,description:"A required arg ".concat(b.name," on ").concat(e.name,".").concat(t.name," was added.")}):i.push({type:$t.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(b.name," on ").concat(e.name,".").concat(t.name," was added.")})}}catch(_){y.e(_)}finally{y.f()}return i}function ln(e,t){return(0,C.HG)(e)?(0,C.HG)(t)&&ln(e.ofType,t.ofType)||(0,C.zM)(t)&&ln(e,t.ofType):(0,C.zM)(e)?(0,C.zM)(t)&&ln(e.ofType,t.ofType):(0,C.Zs)(t)&&e.name===t.name||(0,C.zM)(t)&&ln(e,t.ofType)}function fn(e,t){return(0,C.HG)(e)?(0,C.HG)(t)&&fn(e.ofType,t.ofType):(0,C.zM)(e)?(0,C.zM)(t)&&fn(e.ofType,t.ofType)||!(0,C.zM)(t)&&fn(e.ofType,t):(0,C.Zs)(t)&&e.name===t.name}function pn(e){return(0,C.KA)(e)?"a Scalar type":(0,C.lp)(e)?"an Object type":(0,C.oT)(e)?"an Interface type":(0,C.EN)(e)?"a Union type":(0,C.EM)(e)?"an Enum type":(0,C.hL)(e)?"an Input type":void(0,d.k)(!1,"Unexpected type: "+(0,p.X)(e))}function dn(e,t){var n=(0,Ot.J)(e,t);return null!=n||(0,d.k)(!1),(0,ae.S)((0,Kt.n)(n))}function hn(e,t){var n,r=[],i=[],o=[],a=(0,dt.P)(e,(function(e){return e.name})),s=(0,dt.P)(t,(function(e){return e.name})),u=(0,f.Z)(e);try{for(u.s();!(n=u.n()).done;){var c=n.value,l=s[c.name];void 0===l?i.push(c):o.push([c,l])}}catch(v){u.e(v)}finally{u.f()}var p,d=(0,f.Z)(t);try{for(d.s();!(p=d.n()).done;){var h=p.value;void 0===a[h.name]&&r.push(h)}}catch(v){d.e(v)}finally{d.f()}return{added:r,persisted:o,removed:i}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Yt||(Yt={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}($t||($t={}));var vn=n(89836),mn=n(80371),gn=n(83576),yn=n(23857),bn=n(44517),_n=n(34836)},97836:function(e,t,n){"use strict";function r(e,t,n){return{prev:e,key:t,typename:n}}function i(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}n.d(t,{N:function(){return i},Q:function(){return r}})},61388:function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{a:function(){return r}})},18513:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(96234),i=5;function o(e,t){var n=t?[e,t]:[void 0,e],o=(0,r.Z)(n,2),a=o[0],s=" Did you mean ";a&&(s+=a+" ");var u=o[1].map((function(e){return'"'.concat(e,'"')}));switch(u.length){case 0:return"";case 1:return s+u[0]+"?";case 2:return s+u[0]+" or "+u[1]+"?"}var c=u.slice(0,i),l=c.pop();return s+c.join(", ")+", or "+l+"?"}},34807:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(41361);function i(e,t){var n,i=new Map,o=(0,r.Z)(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=t(a),u=i.get(s);void 0===u?i.set(s,[a]):u.push(a)}}catch(c){o.e(c)}finally{o.f()}return i}},6024:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var r=n(96234),i=n(68079),o=10,a=2;function s(e){return u(e,[])}function u(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat((0,i.Z)(t),[e]);if(function(e){return"function"===typeof e.toJSON}(e)){var s=e.toJSON();if(s!==e)return"string"===typeof s?s:u(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(o,e.length),r=e.length-n,i=[],s=0;s<n;++s)i.push(u(e[s],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map((function(e){var n=(0,r.Z)(e,2);return n[0]+": "+u(n[1],t)}));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},31040:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(6024),i=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===typeof e&&null!==e){var n,i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var o=(0,r.X)(e);throw new Error("Cannot use ".concat(i,' "').concat(o,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1}},42690:function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{k:function(){return r}})},73342:function(e,t,n){"use strict";function r(e){return"object"===typeof e&&"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}n.d(t,{i:function(){return r}})},17869:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{y:function(){return r}})},92373:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(41361);function i(e,t){var n,i=Object.create(null),o=(0,r.Z)(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;i[t(a)]=a}}catch(s){o.e(s)}finally{o.f()}return i}},50964:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(41361);function i(e,t,n){var i,o=Object.create(null),a=(0,r.Z)(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;o[t(s)]=n(s)}}catch(u){a.e(u)}finally{a.f()}return o}},2153:function(e,t,n){"use strict";function r(e,t){for(var n=Object.create(null),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n[o]=t(e[o],o)}return n}n.d(t,{j:function(){return r}})},9911:function(e,t,n){"use strict";function r(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var o=e.charCodeAt(n),s=t.charCodeAt(r);if(a(o)&&a(s)){var u=0;do{++n,u=10*u+o-i,o=e.charCodeAt(n)}while(a(o)&&u>0);var c=0;do{++r,c=10*c+s-i,s=t.charCodeAt(r)}while(a(s)&&c>0);if(u<c)return-1;if(u>c)return 1}else{if(o<s)return-1;if(o>s)return 1;++n,++r}}return e.length-t.length}n.d(t,{K:function(){return r}});var i=48,o=57;function a(e){return!isNaN(e)&&i<=e&&e<=o}},2960:function(e,t,n){"use strict";function r(e){return e.map((function(e){return"number"===typeof e?"["+e.toString()+"]":"."+e})).join("")}n.d(t,{F:function(){return r}})},23649:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r=n(9249),i=n(87371),o=n(41361),a=n(9911);function s(e,t){var n,r=Object.create(null),i=new u(e),s=Math.floor(.4*e.length)+1,c=(0,o.Z)(t);try{for(c.s();!(n=c.n()).done;){var l=n.value,f=i.measure(l,s);void 0!==f&&(r[l]=f)}}catch(p){c.e(p)}finally{c.f()}return Object.keys(r).sort((function(e,t){var n=r[e]-r[t];return 0!==n?n:(0,a.K)(e,t)}))}var u=function(){function e(t){(0,r.Z)(this,e),this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=c(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}return(0,i.Z)(e,[{key:"measure",value:function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=c(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var u=this._rows,l=0;l<=s;l++)u[0][l]=l;for(var f=1;f<=a;f++){for(var p=u[(f-1)%3],d=u[f%3],h=d[0]=f,v=1;v<=s;v++){var m=r[f-1]===i[v-1]?0:1,g=Math.min(p[v]+1,d[v-1]+1,p[v-1]+m);if(f>1&&v>1&&r[f-1]===i[v-2]&&r[f-2]===i[v-1]){var y=u[(f-2)%3][v-2];g=Math.min(g,y+1)}g<h&&(h=g),d[v]=g}if(h>t)return}var b=u[a%3][s];return b<=t?b:void 0}}}]),e}();function c(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},69182:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(96234);function i(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=Object.entries(e);n<i.length;n++){var o=(0,r.Z)(i[n],2),a=o[0],s=o[1];t[a]=s}return t}},48700:function(e,t,n){"use strict";n.d(t,{UG:function(){return l},WU:function(){return s},Ye:function(){return a},h8:function(){return u},ku:function(){return r}});var r,i=n(9249),o=n(87371),a=function(e){function t(e,n,r){(0,i.Z)(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return(0,o.Z)(t,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(Symbol.toStringTag),s=function(e){function t(e,n,r,o,a,s){(0,i.Z)(this,t),this.kind=e,this.start=n,this.end=r,this.line=o,this.column=a,this.value=s,this.prev=null,this.next=null}return(0,o.Z)(t,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(Symbol.toStringTag),u={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},c=new Set(Object.keys(u));function l(e){var t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&c.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(r||(r={}))},5035:function(e,t,n){"use strict";n.d(t,{LZ:function(){return s},MZ:function(){return a},wv:function(){return i}});var r=n(14907);function i(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,i=-1,a=0;a<e.length;++a){var s,u=e[a],c=o(u);c!==u.length&&(r=null!==(s=r)&&void 0!==s?s:a,i=a,0!==a&&c<n&&(n=c))}return e.map((function(e,t){return 0===t?e:e.slice(n)})).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){for(var t=0;t<e.length&&(0,r.FD)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;for(var t=!0,n=!1,r=!0,i=!1,o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)}function s(e,t){var n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every((function(e){return 0===e.length||(0,r.FD)(e.charCodeAt(0))})),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!==t&&void 0!==t&&t.minimize)&&(!o||e.length>70||l||a||s),p="",d=o&&(0,r.FD)(e.charCodeAt(0));return(f&&!d||a)&&(p+="\n"),p+=n,(f||l)&&(p+="\n"),'"""'+p+'"""'}},14907:function(e,t,n){"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:function(){return r},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},62724:function(e,t,n){"use strict";var r;n.d(t,{B:function(){return r}}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(r||(r={}))},60844:function(e,t,n){"use strict";var r;n.d(t,{h:function(){return r}}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},54551:function(e,t,n){"use strict";n.d(t,{h:function(){return l},u:function(){return f}});var r=n(9249),i=n(87371),o=n(96843),a=n(48700),s=n(5035),u=n(14907),c=n(42008),l=function(e){function t(e){(0,r.Z)(this,t);var n=new a.WU(c.T.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return(0,i.Z)(t,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==c.T.EOF)do{if(e.next)e=e.next;else{var t=y(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===c.T.COMMENT);return e}}]),t}(Symbol.toStringTag);function f(e){return e===c.T.BANG||e===c.T.DOLLAR||e===c.T.AMP||e===c.T.PAREN_L||e===c.T.PAREN_R||e===c.T.SPREAD||e===c.T.COLON||e===c.T.EQUALS||e===c.T.AT||e===c.T.BRACKET_L||e===c.T.BRACKET_R||e===c.T.BRACE_L||e===c.T.PIPE||e===c.T.BRACE_R}function p(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function d(e,t){return h(e.charCodeAt(t))&&v(e.charCodeAt(t+1))}function h(e){return e>=55296&&e<=56319}function v(e){return e>=56320&&e<=57343}function m(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return c.T.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function g(e,t,n,r,i){var o=e.line,s=1+n-e.lineStart;return new a.WU(t,n,r,o,s,i)}function y(e,t){for(var n=e.source.body,r=n.length,i=t;i<r;){var a=n.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return b(e,i);case 33:return g(e,c.T.BANG,i,i+1);case 36:return g(e,c.T.DOLLAR,i,i+1);case 38:return g(e,c.T.AMP,i,i+1);case 40:return g(e,c.T.PAREN_L,i,i+1);case 41:return g(e,c.T.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return g(e,c.T.SPREAD,i,i+3);break;case 58:return g(e,c.T.COLON,i,i+1);case 61:return g(e,c.T.EQUALS,i,i+1);case 64:return g(e,c.T.AT,i,i+1);case 91:return g(e,c.T.BRACKET_L,i,i+1);case 93:return g(e,c.T.BRACKET_R,i,i+1);case 123:return g(e,c.T.BRACE_L,i,i+1);case 124:return g(e,c.T.PIPE,i,i+1);case 125:return g(e,c.T.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?N(e,i):k(e,i)}if((0,u.X1)(a)||45===a)return _(e,i,a);if((0,u.LQ)(a))return A(e,i);throw(0,o.h)(e.source,i,39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":p(a)||d(n,i)?"Unexpected character: ".concat(m(e,i),"."):"Invalid character: ".concat(m(e,i),"."))}return g(e,c.T.EOF,r,r)}function b(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){var o=n.charCodeAt(i);if(10===o||13===o)break;if(p(o))++i;else{if(!d(n,i))break;i+=2}}return g(e,c.T.COMMENT,t,i,n.slice(t+1,i))}function _(e,t,n){var r=e.source.body,i=t,a=n,s=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(a=r.charCodeAt(++i),(0,u.X1)(a))throw(0,o.h)(e.source,i,"Invalid number, unexpected digit after 0: ".concat(m(e,i),"."))}else i=E(e,i,a),a=r.charCodeAt(i);if(46===a&&(s=!0,a=r.charCodeAt(++i),i=E(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(s=!0,43!==(a=r.charCodeAt(++i))&&45!==a||(a=r.charCodeAt(++i)),i=E(e,i,a),a=r.charCodeAt(i)),46===a||(0,u.LQ)(a))throw(0,o.h)(e.source,i,"Invalid number, expected digit but got: ".concat(m(e,i),"."));return g(e,s?c.T.FLOAT:c.T.INT,t,i,r.slice(t,i))}function E(e,t,n){if(!(0,u.X1)(n))throw(0,o.h)(e.source,t,"Invalid number, expected digit but got: ".concat(m(e,t),"."));for(var r=e.source.body,i=t+1;(0,u.X1)(r.charCodeAt(i));)++i;return i}function k(e,t){for(var n=e.source.body,r=n.length,i=t+1,a=i,s="";i<r;){var u=n.charCodeAt(i);if(34===u)return s+=n.slice(a,i),g(e,c.T.STRING,t,i+1,s);if(92!==u){if(10===u||13===u)break;if(p(u))++i;else{if(!d(n,i))throw(0,o.h)(e.source,i,"Invalid character within String: ".concat(m(e,i),"."));i+=2}}else{s+=n.slice(a,i);var l=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?T(e,i):w(e,i):C(e,i);s+=l.value,a=i+=l.size}}throw(0,o.h)(e.source,i,"Unterminated string.")}function T(e,t){for(var n=e.source.body,r=0,i=3;i<12;){var a=n.charCodeAt(t+i++);if(125===a){if(i<5||!p(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|S(a))<0)break}throw(0,o.h)(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function w(e,t){var n=e.source.body,r=x(n,t+2);if(p(r))return{value:String.fromCodePoint(r),size:6};if(h(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){var i=x(n,t+8);if(v(i))return{value:String.fromCodePoint(r,i),size:12}}throw(0,o.h)(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function x(e,t){return S(e.charCodeAt(t))<<12|S(e.charCodeAt(t+1))<<8|S(e.charCodeAt(t+2))<<4|S(e.charCodeAt(t+3))}function S(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function C(e,t){var n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,o.h)(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function N(e,t){for(var n=e.source.body,r=n.length,i=e.lineStart,a=t+3,u=a,l="",f=[];a<r;){var h=n.charCodeAt(a);if(34===h&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){l+=n.slice(u,a),f.push(l);var v=g(e,c.T.BLOCK_STRING,t,a+3,(0,s.wv)(f).join("\n"));return e.line+=f.length-1,e.lineStart=i,v}if(92!==h||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==h&&13!==h)if(p(h))++a;else{if(!d(n,a))throw(0,o.h)(e.source,a,"Invalid character within String: ".concat(m(e,a),"."));a+=2}else l+=n.slice(u,a),f.push(l),13===h&&10===n.charCodeAt(a+1)?a+=2:++a,l="",u=a,i=a;else l+=n.slice(u,a),u=a+1,a+=4}throw(0,o.h)(e.source,a,"Unterminated string.")}function A(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){var o=n.charCodeAt(i);if(!(0,u.HQ)(o))break;++i}return g(e,c.T.NAME,t,i,n.slice(t,i))}},56287:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(41361),i=n(42690),o=/\r\n|[\n\r]/g;function a(e,t){var n,a=0,s=1,u=(0,r.Z)(e.body.matchAll(o));try{for(u.s();!(n=u.n()).done;){var c=n.value;if("number"===typeof c.index||(0,i.k)(!1),c.index>=t)break;a=c.index+c[0].length,s+=1}}catch(l){u.e(l)}finally{u.f()}return{line:s,column:t+1-a}}},92460:function(e,t,n){"use strict";n.d(t,{H2:function(){return d},Qc:function(){return p},gZ:function(){return v},tl:function(){return h}});var r=n(9249),i=n(87371),o=n(96843),a=n(48700),s=n(62724),u=n(60844),c=n(54551),l=n(84835),f=n(42008);function p(e,t){return new m(e,t).parseDocument()}function d(e,t){var n=new m(e,t);n.expectToken(f.T.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(f.T.EOF),r}function h(e,t){var n=new m(e,t);n.expectToken(f.T.SOF);var r=n.parseConstValueLiteral();return n.expectToken(f.T.EOF),r}function v(e,t){var n=new m(e,t);n.expectToken(f.T.SOF);var r=n.parseTypeReference();return n.expectToken(f.T.EOF),r}var m=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.Z)(this,e);var i=(0,l.T)(t)?t:new l.H(t);this._lexer=new c.h(i),this._options=n,this._tokenCounter=0}return(0,i.Z)(e,[{key:"parseName",value:function(){var e=this.expectToken(f.T.NAME);return this.node(e,{kind:u.h.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:u.h.DOCUMENT,definitions:this.many(f.T.SOF,this.parseDefinition,f.T.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(f.T.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===f.T.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,o.h)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(f.T.BRACE_L))return this.node(e,{kind:u.h.OPERATION_DEFINITION,operation:a.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(f.T.NAME)&&(t=this.parseName()),this.node(e,{kind:u.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(f.T.NAME);switch(e.value){case"query":return a.ku.QUERY;case"mutation":return a.ku.MUTATION;case"subscription":return a.ku.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(f.T.PAREN_L,this.parseVariableDefinition,f.T.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:u.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(f.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(f.T.DOLLAR),this.node(e,{kind:u.h.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:u.h.SELECTION_SET,selections:this.many(f.T.BRACE_L,this.parseSelection,f.T.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(f.T.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(f.T.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:u.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.T.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.T.PAREN_L,t,f.T.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(f.T.COLON),this.node(t,{kind:u.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(f.T.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(f.T.NAME)?this.node(e,{kind:u.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:u.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:u.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:u.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case f.T.BRACKET_L:return this.parseList(e);case f.T.BRACE_L:return this.parseObject(e);case f.T.INT:return this.advanceLexer(),this.node(t,{kind:u.h.INT,value:t.value});case f.T.FLOAT:return this.advanceLexer(),this.node(t,{kind:u.h.FLOAT,value:t.value});case f.T.STRING:case f.T.BLOCK_STRING:return this.parseStringLiteral();case f.T.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:u.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:u.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:u.h.NULL});default:return this.node(t,{kind:u.h.ENUM,value:t.value})}case f.T.DOLLAR:if(e){if(this.expectToken(f.T.DOLLAR),this._lexer.token.kind===f.T.NAME){var n=this._lexer.token.value;throw(0,o.h)(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:u.h.STRING,value:e.value,block:e.kind===f.T.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:u.h.LIST,values:this.any(f.T.BRACKET_L,(function(){return t.parseValueLiteral(e)}),f.T.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:u.h.OBJECT,fields:this.any(f.T.BRACE_L,(function(){return t.parseObjectField(e)}),f.T.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(f.T.COLON),this.node(t,{kind:u.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(f.T.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(f.T.AT),this.node(t,{kind:u.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(f.T.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(f.T.BRACKET_R),e=this.node(t,{kind:u.h.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(f.T.BANG)?this.node(t,{kind:u.h.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:u.h.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(f.T.STRING)||this.peek(f.T.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(f.T.BRACE_L,this.parseOperationTypeDefinition,f.T.BRACE_R);return this.node(e,{kind:u.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(f.T.COLON);var n=this.parseNamedType();return this.node(e,{kind:u.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:u.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(f.T.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(f.T.BRACE_L,this.parseFieldDefinition,f.T.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(f.T.COLON);var i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:u.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(f.T.PAREN_L,this.parseInputValueDef,f.T.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(f.T.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(f.T.EQUALS)&&(r=this.parseConstValueLiteral());var o=this.parseConstDirectives();return this.node(e,{kind:u.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:u.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(f.T.EQUALS)?this.delimitedMany(f.T.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:u.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(f.T.BRACE_L,this.parseEnumValueDefinition,f.T.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:u.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,o.h)(this._lexer.source,this._lexer.token.start,"".concat(g(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:u.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(f.T.BRACE_L,this.parseInputValueDef,f.T.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===f.T.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(f.T.BRACE_L,this.parseOperationTypeDefinition,f.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:u.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.T.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return this.node(e,{kind:u.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(f.T.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(s.B,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){return!0!==this._options.noLocation&&(t.loc=new a.Ye(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,o.h)(this._lexer.source,t.start,"Expected ".concat(y(e),", found ").concat(g(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==f.T.NAME||t.value!==e)throw(0,o.h)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(g(t),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===f.T.NAME&&t.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return(0,o.h)(this._lexer.source,t.start,"Unexpected ".concat(g(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==f.T.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,o.h)(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function g(e){var t=e.value;return y(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function y(e){return(0,c.u)(e)?'"'.concat(e,'"'):e}},2364:function(e,t,n){"use strict";n.d(t,{D$:function(){return d},G4:function(){return l},Ir:function(){return i},Of:function(){return u},VB:function(){return c},Wk:function(){return o},aU:function(){return p},nr:function(){return s},pO:function(){return a},zT:function(){return f}});var r=n(60844);function i(e){return o(e)||l(e)||p(e)}function o(e){return e.kind===r.h.OPERATION_DEFINITION||e.kind===r.h.FRAGMENT_DEFINITION}function a(e){return e.kind===r.h.FIELD||e.kind===r.h.FRAGMENT_SPREAD||e.kind===r.h.INLINE_FRAGMENT}function s(e){return e.kind===r.h.VARIABLE||e.kind===r.h.INT||e.kind===r.h.FLOAT||e.kind===r.h.STRING||e.kind===r.h.BOOLEAN||e.kind===r.h.NULL||e.kind===r.h.ENUM||e.kind===r.h.LIST||e.kind===r.h.OBJECT}function u(e){return s(e)&&(e.kind===r.h.LIST?e.values.some(u):e.kind===r.h.OBJECT?e.fields.some((function(e){return u(e.value)})):e.kind!==r.h.VARIABLE)}function c(e){return e.kind===r.h.NAMED_TYPE||e.kind===r.h.LIST_TYPE||e.kind===r.h.NON_NULL_TYPE}function l(e){return e.kind===r.h.SCHEMA_DEFINITION||f(e)||e.kind===r.h.DIRECTIVE_DEFINITION}function f(e){return e.kind===r.h.SCALAR_TYPE_DEFINITION||e.kind===r.h.OBJECT_TYPE_DEFINITION||e.kind===r.h.INTERFACE_TYPE_DEFINITION||e.kind===r.h.UNION_TYPE_DEFINITION||e.kind===r.h.ENUM_TYPE_DEFINITION||e.kind===r.h.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===r.h.SCHEMA_EXTENSION||d(e)}function d(e){return e.kind===r.h.SCALAR_TYPE_EXTENSION||e.kind===r.h.OBJECT_TYPE_EXTENSION||e.kind===r.h.INTERFACE_TYPE_EXTENSION||e.kind===r.h.UNION_TYPE_EXTENSION||e.kind===r.h.ENUM_TYPE_EXTENSION||e.kind===r.h.INPUT_OBJECT_TYPE_EXTENSION}},38766:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},z:function(){return s}});var r=n(96234),i=n(68079),o=n(56287);function a(e){return s(e.source,(0,o.k)(e.source,e.start))}function s(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,a=e.locationOffset.line-1,s=t.line+a,c=1===t.line?n:0,l=t.column+c,f="".concat(e.name,":").concat(s,":").concat(l,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[o];if(d.length>120){for(var h=Math.floor(l/80),v=l%80,m=[],g=0;g<d.length;g+=80)m.push(d.slice(g,g+80));return f+u([["".concat(s," |"),m[0]]].concat((0,i.Z)(m.slice(1,h+1).map((function(e){return["|",e]}))),[["|","^".padStart(v)],["|",m[h+1]]]))}return f+u([["".concat(s-1," |"),p[o-1]],["".concat(s," |"),d],["|","^".padStart(l)],["".concat(s+1," |"),p[o+1]]])}function u(e){var t=e.filter((function(e){var t=(0,r.Z)(e,2);t[0];return void 0!==t[1]})),n=Math.max.apply(Math,(0,i.Z)(t.map((function(e){return(0,r.Z)(e,1)[0].length}))));return t.map((function(e){var t=(0,r.Z)(e,2),i=t[0],o=t[1];return i.padStart(n)+(o?" "+o:"")})).join("\n")}},56327:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(5035);var i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}var a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],s=n(7751);function u(e){return(0,s.Vn)(e,c)}var c={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return l(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var t=p("(",l(e.variableDefinitions,", "),")"),n=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+p(" = ",r)+p(" ",l(i," "))}},SelectionSet:{leave:function(e){return f(e.selections)}},Field:{leave:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=p("",t,": ")+n,s=a+p("(",l(r,", "),")");return s.length>80&&(s=a+p("(\n",d(l(r,"\n")),"\n)")),l([s,l(i," "),o]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+p(" ",l(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",p("on ",t),l(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(p("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(p("",l(i," ")," "))+o}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?(0,r.LZ)(t):'"'.concat(t.replace(i,o),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+l(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+l(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+p("(",l(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return p("",t,"\n")+l(["schema",l(n," "),f(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return p("",t,"\n")+l(["scalar",n,l(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return p("",t,"\n")+l(["type",n,p("implements ",l(r," & ")),l(i," "),f(o)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,o=e.directives;return p("",t,"\n")+n+(h(r)?p("(\n",d(l(r,"\n")),"\n)"):p("(",l(r,", "),")"))+": "+i+p(" ",l(o," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,o=e.directives;return p("",t,"\n")+l([n+": "+r,p("= ",i),l(o," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return p("",t,"\n")+l(["interface",n,p("implements ",l(r," & ")),l(i," "),f(o)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return p("",t,"\n")+l(["union",n,l(r," "),p("= ",l(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return p("",t,"\n")+l(["enum",n,l(r," "),f(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return p("",t,"\n")+l([n,l(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return p("",t,"\n")+l(["input",n,l(r," "),f(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,o=e.locations;return p("",t,"\n")+"directive @"+n+(h(r)?p("(\n",d(l(r,"\n")),"\n)"):p("(",l(r,", "),")"))+(i?" repeatable":"")+" on "+l(o," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),f(n)]," ")}},ScalarTypeExtension:{leave:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend type",t,p("implements ",l(n," & ")),l(r," "),f(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend interface",t,p("implements ",l(n," & ")),l(r," "),f(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),p("= ",l(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),f(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),f(r)]," ")}}};function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function f(e){return p("{\n",d(l(e,"\n")),"\n}")}function p(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function d(e){return p(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}},84835:function(e,t,n){"use strict";n.d(t,{H:function(){return u},T:function(){return c}});var r=n(9249),i=n(87371),o=n(61388),a=n(6024),s=n(31040),u=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};(0,r.Z)(this,t),"string"===typeof e||(0,o.a)(!1,"Body must be a string. Received: ".concat((0,a.X)(e),".")),this.body=e,this.name=n,this.locationOffset=i,this.locationOffset.line>0||(0,o.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}return(0,i.Z)(t,[{key:e,get:function(){return"Source"}}]),t}(Symbol.toStringTag);function c(e){return(0,s.n)(e,u)}},42008:function(e,t,n){"use strict";var r;n.d(t,{T:function(){return r}}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}))},7751:function(e,t,n){"use strict";n.d(t,{$_:function(){return c},CK:function(){return d},Eu:function(){return p},Vn:function(){return l},j1:function(){return f}});var r=n(96234),i=n(41361),o=n(61388),a=n(6024),s=n(48700),u=n(60844),c=Object.freeze({});function l(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.h8,l=new Map,f=0,d=Object.values(u.h);f<d.length;f++){var h=d[f];l.set(h,p(t,h))}var v=void 0,m=Array.isArray(e),g=[e],y=-1,b=[],_=e,E=void 0,k=void 0,T=[],w=[];do{var x=++y===g.length,S=x&&0!==b.length;if(x){if(E=0===w.length?void 0:T[T.length-1],_=k,k=w.pop(),S)if(m){_=_.slice();var C,N=0,A=(0,i.Z)(b);try{for(A.s();!(C=A.n()).done;){var O=(0,r.Z)(C.value,2),I=O[0],D=O[1],L=I-N;null===D?(_.splice(L,1),N++):_[L]=D}}catch(z){A.e(z)}finally{A.f()}}else{_=Object.defineProperties({},Object.getOwnPropertyDescriptors(_));var F,M=(0,i.Z)(b);try{for(M.s();!(F=M.n()).done;){var R=(0,r.Z)(F.value,2),j=R[0],P=R[1];_[j]=P}}catch(z){M.e(z)}finally{M.f()}}y=v.index,g=v.keys,b=v.edits,m=v.inArray,v=v.prev}else if(k){if(null===(_=k[E=m?y:g[y]])||void 0===_)continue;T.push(E)}var V,Z=void 0;if(!Array.isArray(_)){var q,U;(0,s.UG)(_)||(0,o.a)(!1,"Invalid AST Node: ".concat((0,a.X)(_),"."));var B=x?null===(q=l.get(_.kind))||void 0===q?void 0:q.leave:null===(U=l.get(_.kind))||void 0===U?void 0:U.enter;if((Z=null===B||void 0===B?void 0:B.call(t,_,E,k,T,w))===c)break;if(!1===Z){if(!x){T.pop();continue}}else if(void 0!==Z&&(b.push([E,Z]),!x)){if(!(0,s.UG)(Z)){T.pop();continue}_=Z}}if(void 0===Z&&S&&b.push([E,_]),x)T.pop();else v={inArray:m,index:y,keys:g,edits:b,prev:v},g=(m=Array.isArray(_))?_:null!==(V=n[_.kind])&&void 0!==V?V:[],y=-1,b=[],k&&w.push(k),k=_}while(void 0!==v);return 0!==b.length?b[b.length-1][1]:e}function f(e){for(var t=new Array(e.length).fill(null),n=Object.create(null),r=function(){for(var r=o[i],a=!1,s=new Array(e.length).fill(void 0),u=new Array(e.length).fill(void 0),l=0;l<e.length;++l){var f=p(e[l],r),d=f.enter,h=f.leave;a||(a=null!=d||null!=h),s[l]=d,u[l]=h}if(!a)return"continue";var v={enter:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r[0],a=0;a<e.length;a++)if(null===t[a]){var u,l=null===(u=s[a])||void 0===u?void 0:u.apply(e[a],r);if(!1===l)t[a]=o;else if(l===c)t[a]=c;else if(void 0!==l)return l}},leave:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r[0],a=0;a<e.length;a++)if(null===t[a]){var s,l=null===(s=u[a])||void 0===s?void 0:s.apply(e[a],r);if(l===c)t[a]=c;else if(void 0!==l&&!1!==l)return l}else t[a]===o&&(t[a]=null)}};n[r]=v},i=0,o=Object.values(u.h);i<o.length;i++)r();return n}function p(e,t){var n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function d(e,t,n){var r=p(e,t),i=r.enter,o=r.leave;return n?o:i}},56086:function(e,t,n){"use strict";n.d(t,{g:function(){return s},i:function(){return a}});var r=n(61388),i=n(31478),o=n(14907);function a(e){if(null!=e||(0,r.a)(!1,"Must provide name."),"string"===typeof e||(0,r.a)(!1,"Expected name to be a string."),0===e.length)throw new i.__("Expected name to be a non-empty string.");for(var t=1;t<e.length;++t)if(!(0,o.HQ)(e.charCodeAt(t)))throw new i.__('Names must only contain [_a-zA-Z0-9] but "'.concat(e,'" does not.'));if(!(0,o.LQ)(e.charCodeAt(0)))throw new i.__('Names must start with [_a-zA-Z] but "'.concat(e,'" does not.'));return e}function s(e){if("true"===e||"false"===e||"null"===e)throw new i.__("Enum values cannot be named: ".concat(e));return a(e)}},10949:function(e,t,n){"use strict";n.d(t,{mR:function(){return _e},sR:function(){return ke},oW:function(){return ge},p2:function(){return J},bM:function(){return Y},h6:function(){return ce},n2:function(){return ue},Gp:function(){return ye},DM:function(){return ve},fU:function(){return X},M_:function(){return W},Zu:function(){return L},U8:function(){return M},qT:function(){return q},k2:function(){return A},H5:function(){return H},kS:function(){return j},rM:function(){return ie},E$:function(){return V},i_:function(){return te},Z6:function(){return C},Gt:function(){return B},Pt:function(){return x},p_:function(){return T},rc:function(){return I},vX:function(){return K},WO:function(){return pe},xC:function(){return oe},tf:function(){return ne},m0:function(){return Q},Gv:function(){return G},EM:function(){return D},hL:function(){return F},j$:function(){return Z},oT:function(){return N},UT:function(){return z},HG:function(){return R},Zs:function(){return re},zM:function(){return P},zP:function(){return ee},lp:function(){return S},SZ:function(){return U},dK:function(){return me},Wd:function(){return we},KA:function(){return w},P9:function(){return k},EN:function(){return O},fw:function(){return $},WB:function(){return se},_9:function(){return ae}});var r=n(96234),i=n(9249),o=n(87371),a=n(61388),s=n(18513);function u(e){return e}var c=n(6024),l=n(31040),f=n(17869),p=n(92373),d=n(50964),h=n(2153),v=n(23649),m=n(69182),g=n(31478),y=n(60844),b=n(56327),_=n(83576),E=n(56086);function k(e){return w(e)||S(e)||N(e)||O(e)||D(e)||F(e)||R(e)||P(e)}function T(e){if(!k(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL type."));return e}function w(e){return(0,l.n)(e,ue)}function x(e){if(!w(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Scalar type."));return e}function S(e){return(0,l.n)(e,ce)}function C(e){if(!S(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Object type."));return e}function N(e){return(0,l.n)(e,ge)}function A(e){if(!N(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Interface type."));return e}function O(e){return(0,l.n)(e,ye)}function I(e){if(!O(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Union type."));return e}function D(e){return(0,l.n)(e,_e)}function L(e){if(!D(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Enum type."));return e}function F(e){return(0,l.n)(e,ke)}function M(e){if(!F(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Input Object type."));return e}function R(e){return(0,l.n)(e,J)}function j(e){if(!R(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL List type."));return e}function P(e){return(0,l.n)(e,Y)}function V(e){if(!P(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL Non-Null type."));return e}function Z(e){return w(e)||D(e)||F(e)||$(e)&&Z(e.ofType)}function q(e){if(!Z(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL input type."));return e}function U(e){return w(e)||S(e)||N(e)||O(e)||D(e)||$(e)&&U(e.ofType)}function B(e){if(!U(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL output type."));return e}function z(e){return w(e)||D(e)}function H(e){if(!z(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL leaf type."));return e}function G(e){return S(e)||N(e)||O(e)}function W(e){if(!G(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL composite type."));return e}function Q(e){return N(e)||O(e)}function X(e){if(!Q(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL abstract type."));return e}var J=function(e){function t(e){(0,i.Z)(this,t),k(e)||(0,a.a)(!1,"Expected ".concat((0,c.X)(e)," to be a GraphQL type.")),this.ofType=e}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLList"}},{key:"toString",value:function(){return"["+String(this.ofType)+"]"}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),Y=function(e){function t(e){(0,i.Z)(this,t),ee(e)||(0,a.a)(!1,"Expected ".concat((0,c.X)(e)," to be a GraphQL nullable type.")),this.ofType=e}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLNonNull"}},{key:"toString",value:function(){return String(this.ofType)+"!"}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function $(e){return R(e)||P(e)}function K(e){if(!$(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL wrapping type."));return e}function ee(e){return k(e)&&!P(e)}function te(e){if(!ee(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL nullable type."));return e}function ne(e){if(e)return P(e)?e.ofType:e}function re(e){return w(e)||S(e)||N(e)||O(e)||D(e)||F(e)}function ie(e){if(!re(e))throw new Error("Expected ".concat((0,c.X)(e)," to be a GraphQL named type."));return e}function oe(e){if(e){for(var t=e;$(t);)t=t.ofType;return t}}function ae(e){return"function"===typeof e?e():e}function se(e){return"function"===typeof e?e():e}var ue=function(e){function t(e){var n,r,o,s;(0,i.Z)(this,t);var l=null!==(n=e.parseValue)&&void 0!==n?n:u;this.name=(0,E.i)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(r=e.serialize)&&void 0!==r?r:u,this.parseValue=l,this.parseLiteral=null!==(o=e.parseLiteral)&&void 0!==o?o:function(e,t){return l((0,_.M)(e,t))},this.extensions=(0,m.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"===typeof e.specifiedByURL||(0,a.a)(!1,"".concat(this.name,' must provide "specifiedByURL" as a string, ')+"but got: ".concat((0,c.X)(e.specifiedByURL),".")),null==e.serialize||"function"===typeof e.serialize||(0,a.a)(!1,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,a.a)(!1,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLScalarType"}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),ce=function(e){function t(e){var n;(0,i.Z)(this,t),this.name=(0,E.i)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,m.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=function(){return fe(e)},this._interfaces=function(){return le(e)},null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,a.a)(!1,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,c.X)(e.isTypeOf),"."))}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLObjectType"}},{key:"getFields",value:function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}},{key:"getInterfaces",value:function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function le(e){var t,n=ae(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,a.a)(!1,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function fe(e){var t=se(e.fields);return de(t)||(0,a.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,h.j)(t,(function(t,n){var r;de(t)||(0,a.a)(!1,"".concat(e.name,".").concat(n," field config must be an object.")),null==t.resolve||"function"===typeof t.resolve||(0,a.a)(!1,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,c.X)(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};return de(i)||(0,a.a)(!1,"".concat(e.name,".").concat(n," args must be an object with argument names as keys.")),{name:(0,E.i)(n),description:t.description,type:t.type,args:pe(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,m.u)(t.extensions),astNode:t.astNode}}))}function pe(e){return Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return{name:(0,E.i)(n),description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:(0,m.u)(i.extensions),astNode:i.astNode}}))}function de(e){return(0,f.y)(e)&&!Array.isArray(e)}function he(e){return(0,h.j)(e,(function(e){return{description:e.description,type:e.type,args:ve(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ve(e){return(0,d.w)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function me(e){return P(e.type)&&void 0===e.defaultValue}var ge=function(e){function t(e){var n;(0,i.Z)(this,t),this.name=(0,E.i)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,m.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=fe.bind(void 0,e),this._interfaces=le.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,a.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,c.X)(e.resolveType),"."))}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLInterfaceType"}},{key:"getFields",value:function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}},{key:"getInterfaces",value:function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),ye=function(e){function t(e){var n;(0,i.Z)(this,t),this.name=(0,E.i)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,m.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._types=be.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,a.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,c.X)(e.resolveType),"."))}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLUnionType"}},{key:"getTypes",value:function(){return"function"===typeof this._types&&(this._types=this._types()),this._types}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function be(e){var t=ae(e.types);return Array.isArray(t)||(0,a.a)(!1,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var _e=function(e){function t(e){var n,o,s;(0,i.Z)(this,t),this.name=(0,E.i)(e.name),this.description=e.description,this.extensions=(0,m.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._values=(o=this.name,de(s=e.values)||(0,a.a)(!1,"".concat(o," values must be an object with value names as keys.")),Object.entries(s).map((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return de(i)||(0,a.a)(!1,"".concat(o,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,c.X)(i),".")),{name:(0,E.g)(n),description:i.description,value:void 0!==i.value?i.value:n,deprecationReason:i.deprecationReason,extensions:(0,m.u)(i.extensions),astNode:i.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,p.P)(this._values,(function(e){return e.name}))}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLEnumType"}},{key:"getValues",value:function(){return this._values}},{key:"getValue",value:function(e){return this._nameLookup[e]}},{key:"serialize",value:function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g.__('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,c.X)(e)));return t.name}},{key:"parseValue",value:function(e){if("string"!==typeof e){var t=(0,c.X)(e);throw new g.__('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ee(this,t))}var n=this.getValue(e);if(null==n)throw new g.__('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,e));return n.value}},{key:"parseLiteral",value:function(e,t){if(e.kind!==y.h.ENUM){var n=(0,b.S)(e);throw new g.__('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ee(this,n),{nodes:e})}var r=this.getValue(e.value);if(null==r){var i=(0,b.S)(e);throw new g.__('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,i),{nodes:e})}return r.value}},{key:"toConfig",value:function(){var e=(0,d.w)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function Ee(e,t){var n=e.getValues().map((function(e){return e.name})),r=(0,v.D)(t,n);return(0,s.l)("the enum value",r)}var ke=function(e){function t(e){var n;(0,i.Z)(this,t),this.name=(0,E.i)(e.name),this.description=e.description,this.extensions=(0,m.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=Te.bind(void 0,e)}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLInputObjectType"}},{key:"getFields",value:function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}},{key:"toConfig",value:function(){var e=(0,h.j)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function Te(e){var t=se(e.fields);return de(t)||(0,a.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,h.j)(t,(function(t,n){return!("resolve"in t)||(0,a.a)(!1,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:(0,E.i)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,m.u)(t.extensions),astNode:t.astNode}}))}function we(e){return P(e.type)&&void 0===e.defaultValue}},78831:function(e,t,n){"use strict";n.d(t,{CO:function(){return v},NZ:function(){return m},QE:function(){return y},SY:function(){return b},V4:function(){return k},Yf:function(){return g},df:function(){return E},fg:function(){return _},wX:function(){return h},xg:function(){return T}});var r=n(9249),i=n(87371),o=n(61388),a=n(6024),s=n(31040),u=n(17869),c=n(69182),l=n(62724),f=n(56086),p=n(10949),d=n(540);function h(e){return(0,s.n)(e,m)}function v(e){if(!h(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL directive."));return e}var m=function(e){function t(e){var n,i;(0,r.Z)(this,t),this.name=(0,f.i)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(n=e.isRepeatable)&&void 0!==n&&n,this.extensions=(0,c.u)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,o.a)(!1,"@".concat(e.name," locations must be an Array."));var a=null!==(i=e.args)&&void 0!==i?i:{};(0,u.y)(a)&&!Array.isArray(a)||(0,o.a)(!1,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=(0,p.WO)(a)}return(0,i.Z)(t,[{key:e,get:function(){return"GraphQLDirective"}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.DM)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}},{key:"toString",value:function(){return"@"+this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),g=new m({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.B.FIELD,l.B.FRAGMENT_SPREAD,l.B.INLINE_FRAGMENT],args:{if:{type:new p.bM(d.EZ),description:"Included when true."}}}),y=new m({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.B.FIELD,l.B.FRAGMENT_SPREAD,l.B.INLINE_FRAGMENT],args:{if:{type:new p.bM(d.EZ),description:"Skipped when true."}}}),b="No longer supported",_=new m({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.B.FIELD_DEFINITION,l.B.ARGUMENT_DEFINITION,l.B.INPUT_FIELD_DEFINITION,l.B.ENUM_VALUE],args:{reason:{type:d.kH,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:b}}}),E=new m({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[l.B.SCALAR],args:{url:{type:new p.bM(d.kH),description:"The URL that specifies the behavior of this scalar."}}}),k=Object.freeze([g,y,_,E]);function T(e){return k.some((function(t){return t.name===e.name}))}},64478:function(e,t,n){"use strict";n.d(t,{Az:function(){return b},PX:function(){return y},TK:function(){return f},XQ:function(){return m},e_:function(){return v},hU:function(){return E},jT:function(){return g},l3:function(){return p},nL:function(){return k},qz:function(){return h},s9:function(){return T},tF:function(){return _},x2:function(){return d},zU:function(){return r}});var r,i=n(6024),o=n(42690),a=n(62724),s=n(56327),u=n(99024),c=n(10949),l=n(540),f=new c.h6({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:l.kH,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new c.bM(new c.p2(new c.bM(h))),resolve:function(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.bM(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 c.bM(new c.p2(new c.bM(p))),resolve:function(e){return e.getDirectives()}}}}}),p=new c.h6({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 c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},isRepeatable:{type:new c.bM(l.EZ),resolve:function(e){return e.isRepeatable}},locations:{type:new c.bM(new c.p2(new c.bM(d))),resolve:function(e){return e.locations}},args:{type:new c.bM(new c.p2(new c.bM(m))),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),d=new c.mR({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:a.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:a.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:a.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:a.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:a.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:a.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:a.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:a.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:a.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:a.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:a.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:a.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:a.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:a.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:a.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:a.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:a.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:a.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:a.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new c.h6({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 c.bM(y),resolve:function(e){return(0,c.KA)(e)?r.SCALAR:(0,c.lp)(e)?r.OBJECT:(0,c.oT)(e)?r.INTERFACE:(0,c.EN)(e)?r.UNION:(0,c.EM)(e)?r.ENUM:(0,c.hL)(e)?r.INPUT_OBJECT:(0,c.HG)(e)?r.LIST:(0,c.zM)(e)?r.NON_NULL:void(0,o.k)(!1,'Unexpected type: "'.concat((0,i.X)(e),'".'))}},name:{type:l.kH,resolve:function(e){return"name"in e?e.name:void 0}},description:{type:l.kH,resolve:function(e){return"description"in e?e.description:void 0}},specifiedByURL:{type:l.kH,resolve:function(e){return"specifiedByURL"in e?e.specifiedByURL:void 0}},fields:{type:new c.p2(new c.bM(v)),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.lp)(e)||(0,c.oT)(e)){var r=Object.values(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new c.p2(new c.bM(h)),resolve:function(e){if((0,c.lp)(e)||(0,c.oT)(e))return e.getInterfaces()}},possibleTypes:{type:new c.p2(new c.bM(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,c.m0)(e))return i.getPossibleTypes(e)}},enumValues:{type:new c.p2(new c.bM(g)),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.EM)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new c.p2(new c.bM(m)),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.hL)(e)){var r=Object.values(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:h,resolve:function(e){return"ofType"in e?e.ofType:void 0}}}}}),v=new c.h6({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 c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},args:{type:new c.bM(new c.p2(new c.bM(m))),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new c.bM(h),resolve:function(e){return e.type}},isDeprecated:{type:new c.bM(l.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:l.kH,resolve:function(e){return e.deprecationReason}}}}}),m=new c.h6({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 c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},type:{type:new c.bM(h),resolve:function(e){return e.type}},defaultValue:{type:l.kH,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,u.J)(n,t);return r?(0,s.S)(r):null}},isDeprecated:{type:new c.bM(l.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:l.kH,resolve:function(e){return e.deprecationReason}}}}}),g=new c.h6({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 c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},isDeprecated:{type:new c.bM(l.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:l.kH,resolve:function(e){return e.deprecationReason}}}}});!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(r||(r={}));var y=new c.mR({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:r.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:r.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:r.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:r.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:r.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:r.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:r.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:r.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:new c.bM(f),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},_={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new c.bM(l.kH),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},E={name:"__typename",type:new c.bM(l.kH),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},k=Object.freeze([f,p,d,h,v,m,g,y]);function T(e){return k.some((function(t){var n=t.name;return e.name===n}))}},540:function(e,t,n){"use strict";n.d(t,{EZ:function(){return h},HI:function(){return c},HS:function(){return m},_o:function(){return f},av:function(){return p},kH:function(){return d},km:function(){return v},st:function(){return l},u1:function(){return g}});var r=n(6024),i=n(17869),o=n(31478),a=n(60844),s=n(56327),u=n(10949),c=2147483647,l=-2147483648,f=new u.n2({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=y(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isInteger(n))throw new o.__("Int cannot represent non-integer value: ".concat((0,r.X)(t)));if(n>c||n<l)throw new o.__("Int cannot represent non 32-bit signed integer value: "+(0,r.X)(t));return n},parseValue:function(e){if("number"!==typeof e||!Number.isInteger(e))throw new o.__("Int cannot represent non-integer value: ".concat((0,r.X)(e)));if(e>c||e<l)throw new o.__("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==a.h.INT)throw new o.__("Int cannot represent non-integer value: ".concat((0,s.S)(e)),{nodes:e});var t=parseInt(e.value,10);if(t>c||t<l)throw new o.__("Int cannot represent non 32-bit signed integer value: ".concat(e.value),{nodes:e});return t}}),p=new u.n2({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=y(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isFinite(n))throw new o.__("Float cannot represent non numeric value: ".concat((0,r.X)(t)));return n},parseValue:function(e){if("number"!==typeof e||!Number.isFinite(e))throw new o.__("Float cannot represent non numeric value: ".concat((0,r.X)(e)));return e},parseLiteral:function(e){if(e.kind!==a.h.FLOAT&&e.kind!==a.h.INT)throw new o.__("Float cannot represent non numeric value: ".concat((0,s.S)(e)),e);return parseFloat(e.value)}}),d=new u.n2({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=y(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if("number"===typeof t&&Number.isFinite(t))return t.toString();throw new o.__("String cannot represent value: ".concat((0,r.X)(e)))},parseValue:function(e){if("string"!==typeof e)throw new o.__("String cannot represent a non string value: ".concat((0,r.X)(e)));return e},parseLiteral:function(e){if(e.kind!==a.h.STRING)throw new o.__("String cannot represent a non string value: ".concat((0,s.S)(e)),{nodes:e});return e.value}}),h=new u.n2({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=y(e);if("boolean"===typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.__("Boolean cannot represent a non boolean value: ".concat((0,r.X)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new o.__("Boolean cannot represent a non boolean value: ".concat((0,r.X)(e)));return e},parseLiteral:function(e){if(e.kind!==a.h.BOOLEAN)throw new o.__("Boolean cannot represent a non boolean value: ".concat((0,s.S)(e)),{nodes:e});return e.value}}),v=new u.n2({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=y(e);if("string"===typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.__("ID cannot represent value: ".concat((0,r.X)(e)))},parseValue:function(e){if("string"===typeof e)return e;if("number"===typeof e&&Number.isInteger(e))return e.toString();throw new o.__("ID cannot represent value: ".concat((0,r.X)(e)))},parseLiteral:function(e){if(e.kind!==a.h.STRING&&e.kind!==a.h.INT)throw new o.__("ID cannot represent a non-string and non-integer value: "+(0,s.S)(e),{nodes:e});return e.value}}),m=Object.freeze([d,f,p,h,v]);function g(e){return m.some((function(t){var n=t.name;return e.name===n}))}function y(e){if((0,i.y)(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!(0,i.y)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}},88041:function(e,t,n){"use strict";n.d(t,{EO:function(){return m},XO:function(){return g},nN:function(){return v}});var r=n(41361),i=n(9249),o=n(87371),a=n(61388),s=n(6024),u=n(31040),c=n(17869),l=n(69182),f=n(48700),p=n(10949),d=n(78831),h=n(64478);function v(e){return(0,u.n)(e,g)}function m(e){if(!v(e))throw new Error("Expected ".concat((0,s.X)(e)," to be a GraphQL schema."));return e}var g=function(e){function t(e){var n,o;(0,i.Z)(this,t),this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,c.y)(e)||(0,a.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,a.a)(!1,'"types" must be Array if provided but got: '.concat((0,s.X)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,a.a)(!1,'"directives" must be Array if provided but got: '+"".concat((0,s.X)(e.directives),".")),this.description=e.description,this.extensions=(0,l.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(o=e.directives)&&void 0!==o?o:d.V4;var u=new Set(e.types);if(null!=e.types){var f,v=(0,r.Z)(e.types);try{for(v.s();!(f=v.n()).done;){var m=f.value;u.delete(m),y(m,u)}}catch(M){v.e(M)}finally{v.f()}}null!=this._queryType&&y(this._queryType,u),null!=this._mutationType&&y(this._mutationType,u),null!=this._subscriptionType&&y(this._subscriptionType,u);var g,b=(0,r.Z)(this._directives);try{for(b.s();!(g=b.n()).done;){var _=g.value;if((0,d.wX)(_)){var E,k=(0,r.Z)(_.args);try{for(k.s();!(E=k.n()).done;){y(E.value.type,u)}}catch(M){k.e(M)}finally{k.f()}}}}catch(M){b.e(M)}finally{b.f()}y(h.TK,u),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);var T,w=(0,r.Z)(u);try{for(w.s();!(T=w.n()).done;){var x=T.value;if(null!=x){var S=x.name;if(S||(0,a.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[S])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(S,'".'));if(this._typeMap[S]=x,(0,p.oT)(x)){var C,N=(0,r.Z)(x.getInterfaces());try{for(N.s();!(C=N.n()).done;){var A=C.value;if((0,p.oT)(A)){var O=this._implementationsMap[A.name];void 0===O&&(O=this._implementationsMap[A.name]={objects:[],interfaces:[]}),O.interfaces.push(x)}}}catch(M){N.e(M)}finally{N.f()}}else if((0,p.lp)(x)){var I,D=(0,r.Z)(x.getInterfaces());try{for(D.s();!(I=D.n()).done;){var L=I.value;if((0,p.oT)(L)){var F=this._implementationsMap[L.name];void 0===F&&(F=this._implementationsMap[L.name]={objects:[],interfaces:[]}),F.objects.push(x)}}}catch(M){D.e(M)}finally{D.f()}}}}}catch(M){w.e(M)}finally{w.f()}}return(0,o.Z)(t,[{key:e,get:function(){return"GraphQLSchema"}},{key:"getQueryType",value:function(){return this._queryType}},{key:"getMutationType",value:function(){return this._mutationType}},{key:"getSubscriptionType",value:function(){return this._subscriptionType}},{key:"getRootType",value:function(e){switch(e){case f.ku.QUERY:return this.getQueryType();case f.ku.MUTATION:return this.getMutationType();case f.ku.SUBSCRIPTION:return this.getSubscriptionType()}}},{key:"getTypeMap",value:function(){return this._typeMap}},{key:"getType",value:function(e){return this.getTypeMap()[e]}},{key:"getPossibleTypes",value:function(e){return(0,p.EN)(e)?e.getTypes():this.getImplementations(e).objects}},{key:"getImplementations",value:function(e){var t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}}},{key:"isSubType",value:function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,p.EN)(e)){var i,o=(0,r.Z)(e.getTypes());try{for(o.s();!(i=o.n()).done;){n[i.value.name]=!0}}catch(f){o.e(f)}finally{o.f()}}else{var a,s=this.getImplementations(e),u=(0,r.Z)(s.objects);try{for(u.s();!(a=u.n()).done;){n[a.value.name]=!0}}catch(f){u.e(f)}finally{u.f()}var c,l=(0,r.Z)(s.interfaces);try{for(l.s();!(c=l.n()).done;){n[c.value.name]=!0}}catch(f){l.e(f)}finally{l.f()}}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}},{key:"getDirectives",value:function(){return this._directives}},{key:"getDirective",value:function(e){return this.getDirectives().find((function(t){return t.name===e}))}},{key:"toConfig",value:function(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}]),t}(Symbol.toStringTag);function y(e,t){var n=(0,p.xC)(e);if(!t.has(n))if(t.add(n),(0,p.EN)(n)){var i,o=(0,r.Z)(n.getTypes());try{for(o.s();!(i=o.n()).done;){y(i.value,t)}}catch(m){o.e(m)}finally{o.f()}}else if((0,p.lp)(n)||(0,p.oT)(n)){var a,s=(0,r.Z)(n.getInterfaces());try{for(s.s();!(a=s.n()).done;){y(a.value,t)}}catch(m){s.e(m)}finally{s.f()}for(var u=0,c=Object.values(n.getFields());u<c.length;u++){var l=c[u];y(l.type,t);var f,d=(0,r.Z)(l.args);try{for(d.s();!(f=d.n()).done;){y(f.value.type,t)}}catch(m){d.e(m)}finally{d.f()}}}else if((0,p.hL)(n))for(var h=0,v=Object.values(n.getFields());h<v.length;h++){y(v[h].type,t)}return t}},91681:function(e,t,n){"use strict";n.d(t,{F:function(){return v},J:function(){return m}});var r=n(41361),i=n(68079),o=n(9249),a=n(87371),s=n(6024),u=n(31478),c=n(48700),l=n(34836),f=n(10949),p=n(78831),d=n(64478),h=n(88041);function v(e){if((0,h.EO)(e),e.__validationErrors)return e.__validationErrors;var t=new g(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!(0,f.lp)(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,s.X)(n),"."),null!==(r=y(t,c.ku.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!(0,f.lp)(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,s.X)(o),"."),null!==(i=y(t,c.ku.MUTATION))&&void 0!==i?i:o.astNode);var a,u=t.getSubscriptionType();u&&!(0,f.lp)(u)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,s.X)(u),"."),null!==(a=y(t,c.ku.SUBSCRIPTION))&&void 0!==a?a:u.astNode)}(t),function(e){var t,n=(0,r.Z)(e.schema.getDirectives());try{for(n.s();!(t=n.n()).done;){var i=t.value;if((0,p.wX)(i)){b(e,i);var o,a=(0,r.Z)(i.args);try{for(a.s();!(o=a.n()).done;){var u,c=o.value;if(b(e,c),(0,f.j$)(c.type)||e.reportError("The type of @".concat(i.name,"(").concat(c.name,":) must be Input Type ")+"but got: ".concat((0,s.X)(c.type),"."),c.astNode),(0,f.dK)(c)&&null!=c.deprecationReason)e.reportError("Required argument @".concat(i.name,"(").concat(c.name,":) cannot be deprecated."),[A(c.astNode),null===(u=c.astNode)||void 0===u?void 0:u.type])}}catch(l){a.e(l)}finally{a.f()}}else e.reportError("Expected directive but got: ".concat((0,s.X)(i),"."),null===i||void 0===i?void 0:i.astNode)}}catch(l){n.e(l)}finally{n.f()}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(!t[o.name]){t[o.name]=!0,r[o.name]=n.length;for(var a=0,s=Object.values(o.getFields());a<s.length;a++){var u=s[a];if((0,f.zM)(u.type)&&(0,f.hL)(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var p=n.slice(l),d=p.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(d,'".'),p.map((function(e){return e.astNode})))}n.pop()}}r[o.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,i=Object.values(n);r<i.length;r++){var o=i[r];(0,f.Zs)(o)?((0,d.s9)(o)||b(e,o),(0,f.lp)(o)||(0,f.oT)(o)?(_(e,o),E(e,o)):(0,f.EN)(o)?w(e,o):(0,f.EM)(o)?x(e,o):(0,f.hL)(o)&&(S(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat((0,s.X)(o),"."),o.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function m(e){var t=v(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var g=function(){function e(t){(0,o.Z)(this,e),this._errors=[],this.schema=t}return(0,a.Z)(e,[{key:"reportError",value:function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new u.__(e,{nodes:n}))}},{key:"getErrors",value:function(){return this._errors}}]),e}();function y(e,t){var n;return null===(n=[e.astNode].concat((0,i.Z)(e.extensionASTNodes)).flatMap((function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((function(e){return e.operation===t})))||void 0===n?void 0:n.type}function b(e,t){t.name.startsWith("__")&&e.reportError('Name "'.concat(t.name,'" must not begin with "__", which is reserved by GraphQL introspection.'),t.astNode)}function _(e,t){var n=Object.values(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),[t.astNode].concat((0,i.Z)(t.extensionASTNodes)));for(var o=0,a=n;o<a.length;o++){var u,c=a[o];if(b(e,c),!(0,f.SZ)(c.type))e.reportError("The type of ".concat(t.name,".").concat(c.name," must be Output Type ")+"but got: ".concat((0,s.X)(c.type),"."),null===(u=c.astNode)||void 0===u?void 0:u.type);var l,p=(0,r.Z)(c.args);try{for(p.s();!(l=p.n()).done;){var d,h,v=l.value,m=v.name;if(b(e,v),!(0,f.j$)(v.type))e.reportError("The type of ".concat(t.name,".").concat(c.name,"(").concat(m,":) must be Input ")+"Type but got: ".concat((0,s.X)(v.type),"."),null===(d=v.astNode)||void 0===d?void 0:d.type);if((0,f.dK)(v)&&null!=v.deprecationReason)e.reportError("Required argument ".concat(t.name,".").concat(c.name,"(").concat(m,":) cannot be deprecated."),[A(v.astNode),null===(h=v.astNode)||void 0===h?void 0:h.type])}}catch(g){p.e(g)}finally{p.f()}}}function E(e,t){var n,i=Object.create(null),o=(0,r.Z)(t.getInterfaces());try{for(o.s();!(n=o.n()).done;){var a=n.value;(0,f.oT)(a)?t!==a?i[a.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(a.name," once."),C(t,a)):(i[a.name]=!0,T(e,t,a),k(e,t,a)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),C(t,a)):e.reportError("Type ".concat((0,s.X)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,s.X)(a),"."),C(t,a))}}catch(u){o.e(u)}finally{o.f()}}function k(e,t,n){for(var o=t.getFields(),a=0,u=Object.values(n.getFields());a<u.length;a++){var c=u[a],p=c.name,d=o[p];if(d){var h,v;if(!(0,l.uJ)(e.schema,d.type,c.type))e.reportError("Interface field ".concat(n.name,".").concat(p," expects type ")+"".concat((0,s.X)(c.type)," but ").concat(t.name,".").concat(p," ")+"is type ".concat((0,s.X)(d.type),"."),[null===(h=c.astNode)||void 0===h?void 0:h.type,null===(v=d.astNode)||void 0===v?void 0:v.type]);var m,g=(0,r.Z)(c.args);try{var y=function(){var r=m.value,i=r.name,o=d.args.find((function(e){return e.name===i}));if(!o)return e.reportError("Interface field argument ".concat(n.name,".").concat(p,"(").concat(i,":) expected but ").concat(t.name,".").concat(p," does not provide it."),[r.astNode,d.astNode]),"continue";(0,l._7)(r.type,o.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(p,"(").concat(i,":) ")+"expects type ".concat((0,s.X)(r.type)," but ")+"".concat(t.name,".").concat(p,"(").concat(i,":) is type ")+"".concat((0,s.X)(o.type),"."),[null===(b=r.astNode)||void 0===b?void 0:b.type,null===(_=o.astNode)||void 0===_?void 0:_.type])};for(g.s();!(m=g.n()).done;){var b,_;y()}}catch(w){g.e(w)}finally{g.f()}var E,k=(0,r.Z)(d.args);try{var T=function(){var r=E.value,i=r.name;!c.args.find((function(e){return e.name===i}))&&(0,f.dK)(r)&&e.reportError("Object field ".concat(t.name,".").concat(p," includes required argument ").concat(i," that is missing from the Interface field ").concat(n.name,".").concat(p,"."),[r.astNode,c.astNode])};for(k.s();!(E=k.n()).done;)T()}catch(w){k.e(w)}finally{k.f()}}else e.reportError("Interface field ".concat(n.name,".").concat(p," expected but ").concat(t.name," does not provide it."),[c.astNode,t.astNode].concat((0,i.Z)(t.extensionASTNodes)))}}function T(e,t,n){var o,a=t.getInterfaces(),s=(0,r.Z)(n.getInterfaces());try{for(s.s();!(o=s.n()).done;){var u=o.value;a.includes(u)||e.reportError(u===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(u.name," because it is implemented by ").concat(n.name,"."),[].concat((0,i.Z)(C(n,u)),(0,i.Z)(C(t,n))))}}catch(c){s.e(c)}finally{s.f()}}function w(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),[t.astNode].concat((0,i.Z)(t.extensionASTNodes)));var o,a=Object.create(null),u=(0,r.Z)(n);try{for(u.s();!(o=u.n()).done;){var c=o.value;a[c.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(c.name," once."),N(t,c.name)):(a[c.name]=!0,(0,f.lp)(c)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,s.X)(c),"."),N(t,String(c))))}}catch(l){u.e(l)}finally{u.f()}}function x(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),[t.astNode].concat((0,i.Z)(t.extensionASTNodes)));var o,a=(0,r.Z)(n);try{for(a.s();!(o=a.n()).done;){b(e,o.value)}}catch(s){a.e(s)}finally{a.f()}}function S(e,t){var n=Object.values(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),[t.astNode].concat((0,i.Z)(t.extensionASTNodes)));for(var r=0,o=n;r<o.length;r++){var a,u,c=o[r];if(b(e,c),!(0,f.j$)(c.type))e.reportError("The type of ".concat(t.name,".").concat(c.name," must be Input Type ")+"but got: ".concat((0,s.X)(c.type),"."),null===(a=c.astNode)||void 0===a?void 0:a.type);if((0,f.Wd)(c)&&null!=c.deprecationReason)e.reportError("Required input field ".concat(t.name,".").concat(c.name," cannot be deprecated."),[A(c.astNode),null===(u=c.astNode)||void 0===u?void 0:u.type])}}function C(e,t){var n=e.astNode,r=e.extensionASTNodes;return(null!=n?[n].concat((0,i.Z)(r)):r).flatMap((function(e){var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((function(e){return e.name.value===t.name}))}function N(e,t){var n=e.astNode,r=e.extensionASTNodes;return(null!=n?[n].concat((0,i.Z)(r)):r).flatMap((function(e){var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((function(e){return e.name.value===t}))}function A(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return e.name.value===p.fg.name}))}},23857:function(e,t,n){"use strict";n.d(t,{a:function(){return f},y:function(){return d}});var r=n(9249),i=n(87371),o=n(48700),a=n(60844),s=n(7751),u=n(10949),c=n(64478),l=n(80371),f=function(e){function t(e,n,i){(0,r.Z)(this,t),this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==i&&void 0!==i?i:p,n&&((0,u.j$)(n)&&this._inputTypeStack.push(n),(0,u.Gv)(n)&&this._parentTypeStack.push(n),(0,u.SZ)(n)&&this._typeStack.push(n))}return(0,i.Z)(t,[{key:e,get:function(){return"TypeInfo"}},{key:"getType",value:function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}},{key:"getParentType",value:function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}},{key:"getInputType",value:function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}},{key:"getParentInputType",value:function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}},{key:"getFieldDef",value:function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}},{key:"getDefaultValue",value:function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}},{key:"getDirective",value:function(){return this._directive}},{key:"getArgument",value:function(){return this._argument}},{key:"getEnumValue",value:function(){return this._enumValue}},{key:"enter",value:function(e){var t=this._schema;switch(e.kind){case a.h.SELECTION_SET:var n=(0,u.xC)(this.getType());this._parentTypeStack.push((0,u.Gv)(n)?n:void 0);break;case a.h.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push((0,u.SZ)(i)?i:void 0);break;case a.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case a.h.OPERATION_DEFINITION:var s=t.getRootType(e.operation);this._typeStack.push((0,u.lp)(s)?s:void 0);break;case a.h.INLINE_FRAGMENT:case a.h.FRAGMENT_DEFINITION:var c=e.typeCondition,f=c?(0,l._)(t,c):(0,u.xC)(this.getType());this._typeStack.push((0,u.SZ)(f)?f:void 0);break;case a.h.VARIABLE_DEFINITION:var p=(0,l._)(t,e.type);this._inputTypeStack.push((0,u.j$)(p)?p:void 0);break;case a.h.ARGUMENT:var d,h,v,m=null!==(d=this.getDirective())&&void 0!==d?d:this.getFieldDef();m&&(h=m.args.find((function(t){return t.name===e.name.value})))&&(v=h.type),this._argument=h,this._defaultValueStack.push(h?h.defaultValue:void 0),this._inputTypeStack.push((0,u.j$)(v)?v:void 0);break;case a.h.LIST:var g=(0,u.tf)(this.getInputType()),y=(0,u.HG)(g)?g.ofType:g;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,u.j$)(y)?y:void 0);break;case a.h.OBJECT_FIELD:var b,_,E=(0,u.xC)(this.getInputType());(0,u.hL)(E)&&(_=E.getFields()[e.name.value])&&(b=_.type),this._defaultValueStack.push(_?_.defaultValue:void 0),this._inputTypeStack.push((0,u.j$)(b)?b:void 0);break;case a.h.ENUM:var k,T=(0,u.xC)(this.getInputType());(0,u.EM)(T)&&(k=T.getValue(e.value)),this._enumValue=k}}},{key:"leave",value:function(e){switch(e.kind){case a.h.SELECTION_SET:this._parentTypeStack.pop();break;case a.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case a.h.DIRECTIVE:this._directive=null;break;case a.h.OPERATION_DEFINITION:case a.h.INLINE_FRAGMENT:case a.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case a.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case a.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case a.h.LIST:case a.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case a.h.ENUM:this._enumValue=null}}}]),t}(Symbol.toStringTag);function p(e,t,n){var r=n.name.value;return r===c.Az.name&&e.getQueryType()===t?c.Az:r===c.tF.name&&e.getQueryType()===t?c.tF:r===c.hU.name&&(0,u.Gv)(t)?c.hU:(0,u.lp)(t)||(0,u.oT)(t)?t.getFields()[r]:void 0}function d(e,t){return{enter:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r[0];e.enter(a);var u=(0,s.Eu)(t,a.kind).enter;if(u){var c=u.apply(t,r);return void 0!==c&&(e.leave(a),(0,o.UG)(c)&&e.enter(c)),c}},leave:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o,a=r[0],u=(0,s.Eu)(t,a.kind).leave;return u&&(o=u.apply(t,r)),e.leave(a),o}}}},99024:function(e,t,n){"use strict";n.d(t,{J:function(){return f}});var r=n(41361),i=n(6024),o=n(42690),a=n(73342),s=n(17869),u=n(60844),c=n(10949),l=n(540);function f(e,t){if((0,c.zM)(t)){var n=f(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===u.h.NULL?null:n}if(null===e)return{kind:u.h.NULL};if(void 0===e)return null;if((0,c.HG)(t)){var d=t.ofType;if((0,a.i)(e)){var h,v=[],m=(0,r.Z)(e);try{for(m.s();!(h=m.n()).done;){var g=f(h.value,d);null!=g&&v.push(g)}}catch(x){m.e(x)}finally{m.f()}return{kind:u.h.LIST,values:v}}return f(e,d)}if((0,c.hL)(t)){if(!(0,s.y)(e))return null;for(var y=[],b=0,_=Object.values(t.getFields());b<_.length;b++){var E=_[b],k=f(e[E.name],E.type);k&&y.push({kind:u.h.OBJECT_FIELD,name:{kind:u.h.NAME,value:E.name},value:k})}return{kind:u.h.OBJECT,fields:y}}if((0,c.UT)(t)){var T=t.serialize(e);if(null==T)return null;if("boolean"===typeof T)return{kind:u.h.BOOLEAN,value:T};if("number"===typeof T&&Number.isFinite(T)){var w=String(T);return p.test(w)?{kind:u.h.INT,value:w}:{kind:u.h.FLOAT,value:w}}if("string"===typeof T)return(0,c.EM)(t)?{kind:u.h.ENUM,value:T}:t===l.km&&p.test(T)?{kind:u.h.INT,value:T}:{kind:u.h.STRING,value:T};throw new TypeError("Cannot convert value to AST: ".concat((0,i.X)(T),"."))}(0,o.k)(!1,"Unexpected input type: "+(0,i.X)(t))}var p=/^-?(?:0|[1-9][0-9]*)$/},89836:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(68079),i=n(61388),o=n(6024),a=n(17869),s=n(50964),u=n(92460),c=n(10949),l=n(78831),f=n(64478),p=n(540),d=n(88041),h=n(42954);function v(e,t){(0,a.y)(e)&&(0,a.y)(e.__schema)||(0,i.a)(!1,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,o.X)(e),"."));for(var n=e.__schema,v=(0,s.w)(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case f.zU.SCALAR:return r=e,new c.n2({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case f.zU.OBJECT:return n=e,new c.h6({name:n.name,description:n.description,interfaces:function(){return C(n)},fields:function(){return N(n)}});case f.zU.INTERFACE:return t=e,new c.oW({name:t.name,description:t.description,interfaces:function(){return C(t)},fields:function(){return N(t)}});case f.zU.UNION:return function(e){if(!e.possibleTypes){var t=(0,o.X)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new c.Gp({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(x)}})}(e);case f.zU.ENUM:return function(e){if(!e.enumValues){var t=(0,o.X)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new c.mR({name:e.name,description:e.description,values:(0,s.w)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case f.zU.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=(0,o.X)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new c.sR({name:e.name,description:e.description,fields:function(){return O(e.inputFields)}})}(e)}var t;var n;var r;var i=(0,o.X)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)})),m=0,g=[].concat((0,r.Z)(p.HS),(0,r.Z)(f.nL));m<g.length;m++){var y=g[m];v[y.name]&&(v[y.name]=y)}var b=n.queryType?x(n.queryType):null,_=n.mutationType?x(n.mutationType):null,E=n.subscriptionType?x(n.subscriptionType):null,k=n.directives?n.directives.map((function(e){if(!e.args){var t=(0,o.X)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=(0,o.X)(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new l.NZ({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:O(e.args)})})):[];return new d.XO({description:n.description,query:b,mutation:_,subscription:E,types:Object.values(v),directives:k,assumeValid:null===t||void 0===t?void 0:t.assumeValid});function T(e){if(e.kind===f.zU.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new c.p2(T(t))}if(e.kind===f.zU.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=T(n);return new c.bM((0,c.i_)(r))}return w(e)}function w(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat((0,o.X)(e),"."));var n=v[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function x(e){return(0,c.Z6)(w(e))}function S(e){return(0,c.k2)(w(e))}function C(e){if(null===e.interfaces&&e.kind===f.zU.INTERFACE)return[];if(!e.interfaces){var t=(0,o.X)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(S)}function N(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat((0,o.X)(e),"."));return(0,s.w)(e.fields,(function(e){return e.name}),A)}function A(e){var t=T(e.type);if(!(0,c.SZ)(t)){var n=(0,o.X)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=(0,o.X)(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:O(e.args)}}function O(e){return(0,s.w)(e,(function(e){return e.name}),I)}function I(e){var t=T(e.type);if(!(0,c.j$)(t)){var n=(0,o.X)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?(0,h.u)((0,u.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}},44517:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var r=n(18513),i=n(6024),o=n(42690),a=n(73342),s=n(17869),u=n(97836),c=n(2960),l=n(23649),f=n(31478),p=n(10949);function d(e,t){return v(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,void 0)}function h(e,t,n){var r="Invalid value "+(0,i.X)(t);throw e.length>0&&(r+=' at "value'.concat((0,c.F)(e),'"')),n.message=r+": "+n.message,n}function v(e,t,n,c){if((0,p.zM)(t))return null!=e?v(e,t.ofType,n,c):void n((0,u.N)(c),e,new f.__('Expected non-nullable type "'.concat((0,i.X)(t),'" not to be null.')));if(null==e)return null;if((0,p.HG)(t)){var d=t.ofType;return(0,a.i)(e)?Array.from(e,(function(e,t){var r=(0,u.Q)(c,t,void 0);return v(e,d,n,r)})):[v(e,d,n,c)]}if((0,p.hL)(t)){if(!(0,s.y)(e))return void n((0,u.N)(c),e,new f.__('Expected type "'.concat(t.name,'" to be an object.')));for(var h={},m=t.getFields(),g=0,y=Object.values(m);g<y.length;g++){var b=y[g],_=e[b.name];if(void 0!==_)h[b.name]=v(_,b.type,n,(0,u.Q)(c,b.name,t.name));else if(void 0!==b.defaultValue)h[b.name]=b.defaultValue;else if((0,p.zM)(b.type)){var E=(0,i.X)(b.type);n((0,u.N)(c),e,new f.__('Field "'.concat(b.name,'" of required type "').concat(E,'" was not provided.')))}}for(var k=0,T=Object.keys(e);k<T.length;k++){var w=T[k];if(!m[w]){var x=(0,l.D)(w,Object.keys(t.getFields()));n((0,u.N)(c),e,new f.__('Field "'.concat(w,'" is not defined by type "').concat(t.name,'".')+(0,r.l)(x)))}}return h}if((0,p.UT)(t)){var S;try{S=t.parseValue(e)}catch(C){return void(C instanceof f.__?n((0,u.N)(c),e,C):n((0,u.N)(c),e,new f.__('Expected type "'.concat(t.name,'". ')+C.message,{originalError:C})))}return void 0===S&&n((0,u.N)(c),e,new f.__('Expected type "'.concat(t.name,'".'))),S}(0,o.k)(!1,"Unexpected input type: "+(0,i.X)(t))}},95122:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(33028);function i(e){var t=(0,r.Z)({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function s(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(a,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(o,"\n locations\n args").concat(s("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(i,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(s("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(s("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(s("isDeprecated"),"\n ").concat(s("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}},67853:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(33028),i=n(9911),o=n(60844);function a(e){switch(e.kind){case o.h.OBJECT:return(0,r.Z)((0,r.Z)({},e),{},{fields:(t=e.fields,t.map((function(e){return(0,r.Z)((0,r.Z)({},e),{},{value:a(e.value)})})).sort((function(e,t){return(0,i.K)(e.name.value,t.name.value)})))});case o.h.LIST:return(0,r.Z)((0,r.Z)({},e),{},{values:e.values.map(a)});case o.h.INT:case o.h.FLOAT:case o.h.STRING:case o.h.BOOLEAN:case o.h.NULL:case o.h.ENUM:case o.h.VARIABLE:return e}var t}},34836:function(e,t,n){"use strict";n.d(t,{_7:function(){return i},uJ:function(){return o},zR:function(){return a}});var r=n(10949);function i(e,t){return e===t||((0,r.zM)(e)&&(0,r.zM)(t)||!(!(0,r.HG)(e)||!(0,r.HG)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.zM)(n)?!!(0,r.zM)(t)&&o(e,t.ofType,n.ofType):(0,r.zM)(t)?o(e,t.ofType,n):(0,r.HG)(n)?!!(0,r.HG)(t)&&o(e,t.ofType,n.ofType):!(0,r.HG)(t)&&((0,r.m0)(n)&&((0,r.oT)(t)||(0,r.lp)(t))&&e.isSubType(n,t)))}function a(e,t,n){return t===n||((0,r.m0)(t)?(0,r.m0)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!(0,r.m0)(n)&&e.isSubType(n,t))}},80371:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(60844),i=n(10949);function o(e,t){switch(t.kind){case r.h.LIST_TYPE:var n=o(e,t.type);return n&&new i.p2(n);case r.h.NON_NULL_TYPE:var a=o(e,t.type);return a&&new i.bM(a);case r.h.NAMED_TYPE:return e.getType(t.name.value)}}},42954:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r=n(41361),i=n(6024),o=n(42690),a=n(92373),s=n(60844),u=n(10949);function c(e,t,n){if(e){if(e.kind===s.h.VARIABLE){var f=e.name.value;if(null==n||void 0===n[f])return;var p=n[f];if(null===p&&(0,u.zM)(t))return;return p}if((0,u.zM)(t)){if(e.kind===s.h.NULL)return;return c(e,t.ofType,n)}if(e.kind===s.h.NULL)return null;if((0,u.HG)(t)){var d=t.ofType;if(e.kind===s.h.LIST){var h,v=[],m=(0,r.Z)(e.values);try{for(m.s();!(h=m.n()).done;){var g=h.value;if(l(g,n)){if((0,u.zM)(d))return;v.push(null)}else{var y=c(g,d,n);if(void 0===y)return;v.push(y)}}}catch(N){m.e(N)}finally{m.f()}return v}var b=c(e,d,n);if(void 0===b)return;return[b]}if((0,u.hL)(t)){if(e.kind!==s.h.OBJECT)return;for(var _=Object.create(null),E=(0,a.P)(e.fields,(function(e){return e.name.value})),k=0,T=Object.values(t.getFields());k<T.length;k++){var w=T[k],x=E[w.name];if(x&&!l(x.value,n)){var S=c(x.value,w.type,n);if(void 0===S)return;_[w.name]=S}else if(void 0!==w.defaultValue)_[w.name]=w.defaultValue;else if((0,u.zM)(w.type))return}return _}if((0,u.UT)(t)){var C;try{C=t.parseLiteral(e,n)}catch(A){return}if(void 0===C)return;return C}(0,o.k)(!1,"Unexpected input type: "+(0,i.X)(t))}}function l(e,t){return e.kind===s.h.VARIABLE&&(null==t||void 0===t[e.name.value])}},83576:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(50964),i=n(60844);function o(e,t){switch(e.kind){case i.h.NULL:return null;case i.h.INT:return parseInt(e.value,10);case i.h.FLOAT:return parseFloat(e.value);case i.h.STRING:case i.h.ENUM:case i.h.BOOLEAN:return e.value;case i.h.LIST:return e.values.map((function(e){return o(e,t)}));case i.h.OBJECT:return(0,r.w)(e.fields,(function(e){return e.name.value}),(function(e){return o(e.value,t)}));case i.h.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}}},26743:function(e,t,n){"use strict";n.d(t,{_t:function(){return d},yv:function(){return p}});var r=n(45754),i=n(86906),o=n(41361),a=n(9249),s=n(87371),u=n(60844),c=n(7751),l=n(23857),f=function(e){function t(e,n){(0,a.Z)(this,t),this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}return(0,s.Z)(t,[{key:e,get:function(){return"ASTValidationContext"}},{key:"reportError",value:function(e){this._onError(e)}},{key:"getDocument",value:function(){return this._ast}},{key:"getFragment",value:function(e){var t;if(this._fragments)t=this._fragments;else{t=Object.create(null);var n,r=(0,o.Z)(this.getDocument().definitions);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.kind===u.h.FRAGMENT_DEFINITION&&(t[i.name.value]=i)}}catch(a){r.e(a)}finally{r.f()}this._fragments=t}return t[e]}},{key:"getFragmentSpreads",value:function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n,r=[e];n=r.pop();){var i,a=(0,o.Z)(n.selections);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.kind===u.h.FRAGMENT_SPREAD?t.push(s):s.selectionSet&&r.push(s.selectionSet)}}catch(c){a.e(c)}finally{a.f()}}this._fragmentSpreads.set(e,t)}return t}},{key:"getRecursivelyReferencedFragments",value:function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n,r=Object.create(null),i=[e.selectionSet];n=i.pop();){var a,s=(0,o.Z)(this.getFragmentSpreads(n));try{for(s.s();!(a=s.n()).done;){var u=a.value.name.value;if(!0!==r[u]){r[u]=!0;var c=this.getFragment(u);c&&(t.push(c),i.push(c.selectionSet))}}}catch(l){s.e(l)}finally{s.f()}}this._recursivelyReferencedFragments.set(e,t)}return t}}]),t}(Symbol.toStringTag),p=function(e,t){(0,r.Z)(o,e);var n=(0,i.Z)(o);function o(e,t,r){var i;return(0,a.Z)(this,o),(i=n.call(this,e,r))._schema=t,i}return(0,s.Z)(o,[{key:t,get:function(){return"SDLValidationContext"}},{key:"getSchema",value:function(){return this._schema}}]),o}(f,Symbol.toStringTag),d=function(e,t){(0,r.Z)(u,e);var n=(0,i.Z)(u);function u(e,t,r,i){var o;return(0,a.Z)(this,u),(o=n.call(this,t,i))._schema=e,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}return(0,s.Z)(u,[{key:t,get:function(){return"ValidationContext"}},{key:"getSchema",value:function(){return this._schema}},{key:"getVariableUsages",value:function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new l.a(this._schema);(0,c.Vn)(e,(0,l.y)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}},{key:"getRecursiveVariableUsages",value:function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);var n,r=(0,o.Z)(this.getRecursivelyReferencedFragments(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;t=t.concat(this.getVariableUsages(i))}}catch(a){r.e(a)}finally{r.f()}this._recursiveVariableUsages.set(e,t)}return t}},{key:"getType",value:function(){return this._typeInfo.getType()}},{key:"getParentType",value:function(){return this._typeInfo.getParentType()}},{key:"getInputType",value:function(){return this._typeInfo.getInputType()}},{key:"getParentInputType",value:function(){return this._typeInfo.getParentInputType()}},{key:"getFieldDef",value:function(){return this._typeInfo.getFieldDef()}},{key:"getDirective",value:function(){return this._typeInfo.getDirective()}},{key:"getArgument",value:function(){return this._typeInfo.getArgument()}},{key:"getEnumValue",value:function(){return this._typeInfo.getEnumValue()}}]),u}(f,Symbol.toStringTag)},77382:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var r=n(41361),i=n(31478),o=n(60844),a=n(2364);function s(e){return{Document:function(t){var n,s=(0,r.Z)(t.definitions);try{for(s.s();!(n=s.n()).done;){var u=n.value;if(!(0,a.Wk)(u)){var c=u.kind===o.h.SCHEMA_DEFINITION||u.kind===o.h.SCHEMA_EXTENSION?"schema":'"'+u.name.value+'"';e.reportError(new i.__("The ".concat(c," definition is not executable."),{nodes:u}))}}}catch(l){s.e(l)}finally{s.f()}return!1}}}},5741:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(68079),i=n(41361),o=n(18513),a=n(9911),s=n(23649),u=n(31478),c=n(10949);function l(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var l=e.getSchema(),f=t.name.value,p=(0,o.l)("to use an inline fragment on",function(e,t,n){if(!(0,c.m0)(t))return[];var o,s=new Set,u=Object.create(null),l=(0,i.Z)(e.getPossibleTypes(t));try{for(l.s();!(o=l.n()).done;){var f=o.value;if(f.getFields()[n]){s.add(f),u[f.name]=1;var p,d=(0,i.Z)(f.getInterfaces());try{for(d.s();!(p=d.n()).done;){var h,v=p.value;v.getFields()[n]&&(s.add(v),u[v.name]=(null!==(h=u[v.name])&&void 0!==h?h:0)+1)}}catch(m){d.e(m)}finally{d.f()}}}}catch(m){l.e(m)}finally{l.f()}return(0,r.Z)(s).sort((function(t,n){var r=u[n.name]-u[t.name];return 0!==r?r:(0,c.oT)(t)&&e.isSubType(t,n)?-1:(0,c.oT)(n)&&e.isSubType(n,t)?1:(0,a.K)(t.name,n.name)})).map((function(e){return e.name}))}(l,n,f));""===p&&(p=(0,o.l)(function(e,t){if((0,c.lp)(e)||(0,c.oT)(e)){var n=Object.keys(e.getFields());return(0,s.D)(t,n)}return[]}(n,f))),e.reportError(new u.__('Cannot query field "'.concat(f,'" on type "').concat(n.name,'".')+p,{nodes:t}))}}}}},84876:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(31478),i=n(56327),o=n(10949),a=n(80371);function s(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var s=(0,a._)(e.getSchema(),n);if(s&&!(0,o.Gv)(s)){var u=(0,i.S)(n);e.reportError(new r.__('Fragment cannot condition on non composite type "'.concat(u,'".'),{nodes:n}))}}},FragmentDefinition:function(t){var n=(0,a._)(e.getSchema(),t.typeCondition);if(n&&!(0,o.Gv)(n)){var s=(0,i.S)(t.typeCondition);e.reportError(new r.__('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(s,'".'),{nodes:t.typeCondition}))}}}}},68521:function(e,t,n){"use strict";n.d(t,{e:function(){return l},o:function(){return f}});var r=n(41361),i=n(33028),o=n(18513),a=n(23649),s=n(31478),u=n(60844),c=n(78831);function l(e){return(0,i.Z)((0,i.Z)({},f(e)),{},{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var u=t.name.value,c=r.args.map((function(e){return e.name})),l=(0,a.D)(u,c);e.reportError(new s.__('Unknown argument "'.concat(u,'" on field "').concat(i.name,".").concat(r.name,'".')+(0,o.l)(l),{nodes:t}))}}})}function f(e){var t,n=Object.create(null),i=e.getSchema(),l=i?i.getDirectives():c.V4,f=(0,r.Z)(l);try{for(f.s();!(t=f.n()).done;){var p=t.value;n[p.name]=p.args.map((function(e){return e.name}))}}catch(b){f.e(b)}finally{f.f()}var d,h=e.getDocument().definitions,v=(0,r.Z)(h);try{for(v.s();!(d=v.n()).done;){var m=d.value;if(m.kind===u.h.DIRECTIVE_DEFINITION){var g,y=null!==(g=m.arguments)&&void 0!==g?g:[];n[m.name.value]=y.map((function(e){return e.name.value}))}}}catch(b){v.e(b)}finally{v.f()}return{Directive:function(t){var i=t.name.value,u=n[i];if(t.arguments&&u){var c,l=(0,r.Z)(t.arguments);try{for(l.s();!(c=l.n()).done;){var f=c.value,p=f.name.value;if(!u.includes(p)){var d=(0,a.D)(p,u);e.reportError(new s.__('Unknown argument "'.concat(p,'" on directive "@').concat(i,'".')+(0,o.l)(d),{nodes:f}))}}}catch(b){l.e(b)}finally{l.f()}}return!1}}}},84646:function(e,t,n){"use strict";n.d(t,{J:function(){return f}});var r=n(41361),i=n(6024),o=n(42690),a=n(31478),s=n(48700),u=n(62724),c=n(60844),l=n(78831);function f(e){var t,n=Object.create(null),f=e.getSchema(),p=f?f.getDirectives():l.V4,d=(0,r.Z)(p);try{for(d.s();!(t=d.n()).done;){var h=t.value;n[h.name]=h.locations}}catch(b){d.e(b)}finally{d.f()}var v,m=e.getDocument().definitions,g=(0,r.Z)(m);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.kind===c.h.DIRECTIVE_DEFINITION&&(n[y.name.value]=y.locations.map((function(e){return e.value})))}}catch(b){g.e(b)}finally{g.f()}return{Directive:function(t,r,l,f,p){var d=t.name.value,h=n[d];if(h){var v=function(e){var t=e[e.length-1];switch("kind"in t||(0,o.k)(!1),t.kind){case c.h.OPERATION_DEFINITION:return function(e){switch(e){case s.ku.QUERY:return u.B.QUERY;case s.ku.MUTATION:return u.B.MUTATION;case s.ku.SUBSCRIPTION:return u.B.SUBSCRIPTION}}(t.operation);case c.h.FIELD:return u.B.FIELD;case c.h.FRAGMENT_SPREAD:return u.B.FRAGMENT_SPREAD;case c.h.INLINE_FRAGMENT:return u.B.INLINE_FRAGMENT;case c.h.FRAGMENT_DEFINITION:return u.B.FRAGMENT_DEFINITION;case c.h.VARIABLE_DEFINITION:return u.B.VARIABLE_DEFINITION;case c.h.SCHEMA_DEFINITION:case c.h.SCHEMA_EXTENSION:return u.B.SCHEMA;case c.h.SCALAR_TYPE_DEFINITION:case c.h.SCALAR_TYPE_EXTENSION:return u.B.SCALAR;case c.h.OBJECT_TYPE_DEFINITION:case c.h.OBJECT_TYPE_EXTENSION:return u.B.OBJECT;case c.h.FIELD_DEFINITION:return u.B.FIELD_DEFINITION;case c.h.INTERFACE_TYPE_DEFINITION:case c.h.INTERFACE_TYPE_EXTENSION:return u.B.INTERFACE;case c.h.UNION_TYPE_DEFINITION:case c.h.UNION_TYPE_EXTENSION:return u.B.UNION;case c.h.ENUM_TYPE_DEFINITION:case c.h.ENUM_TYPE_EXTENSION:return u.B.ENUM;case c.h.ENUM_VALUE_DEFINITION:return u.B.ENUM_VALUE;case c.h.INPUT_OBJECT_TYPE_DEFINITION:case c.h.INPUT_OBJECT_TYPE_EXTENSION:return u.B.INPUT_OBJECT;case c.h.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return"kind"in n||(0,o.k)(!1),n.kind===c.h.INPUT_OBJECT_TYPE_DEFINITION?u.B.INPUT_FIELD_DEFINITION:u.B.ARGUMENT_DEFINITION;default:(0,o.k)(!1,"Unexpected kind: "+(0,i.X)(t.kind))}}(p);v&&!h.includes(v)&&e.reportError(new a.__('Directive "@'.concat(d,'" may not be used on ').concat(v,"."),{nodes:t}))}else e.reportError(new a.__('Unknown directive "@'.concat(d,'".'),{nodes:t}))}}}},27499:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(31478);function i(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r.__('Unknown fragment "'.concat(n,'".'),{nodes:t.name}))}}}},52546:function(e,t,n){"use strict";n.d(t,{I:function(){return f}});var r=n(68079),i=n(41361),o=n(18513),a=n(23649),s=n(31478),u=n(2364),c=n(64478),l=n(540);function f(e){var t,n=e.getSchema(),c=n?n.getTypeMap():Object.create(null),l=Object.create(null),f=(0,i.Z)(e.getDocument().definitions);try{for(f.s();!(t=f.n()).done;){var d=t.value;(0,u.zT)(d)&&(l[d.name.value]=!0)}}catch(v){f.e(v)}finally{f.f()}var h=[].concat((0,r.Z)(Object.keys(c)),(0,r.Z)(Object.keys(l)));return{NamedType:function(t,n,r,i,f){var d,v=t.name.value;if(!c[v]&&!l[v]){var m,g=null!==(m=f[2])&&void 0!==m?m:r,y=null!=g&&("kind"in(d=g)&&((0,u.G4)(d)||(0,u.aU)(d)));if(y&&p.includes(v))return;var b=(0,a.D)(v,y?p.concat(h):h);e.reportError(new s.__('Unknown type "'.concat(v,'".')+(0,o.l)(b),{nodes:t}))}}}}var p=[].concat((0,r.Z)(l.HS),(0,r.Z)(c.nL)).map((function(e){return e.name}))},76373:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(31478),i=n(60844);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===i.h.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r.__("This anonymous operation must be the only defined operation.",{nodes:n}))}}}},1367:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(31478);function i(e){var t,n,i,o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null===o||void 0===o?void 0:o.astNode)&&void 0!==i?i:null===o||void 0===o?void 0:o.getQueryType())&&void 0!==n?n:null===o||void 0===o?void 0:o.getMutationType())&&void 0!==t?t:null===o||void 0===o?void 0:o.getSubscriptionType(),s=0;return{SchemaDefinition:function(t){a?e.reportError(new r.__("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.__("Must provide only one schema definition.",{nodes:t})),++s)}}}},76776:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(41361),i=n(31478);function o(e){var t=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return a(e),!1}};function a(s){if(!t[s.name.value]){var u=s.name.value;t[u]=!0;var c=e.getFragmentSpreads(s.selectionSet);if(0!==c.length){o[u]=n.length;var l,f=(0,r.Z)(c);try{for(f.s();!(l=f.n()).done;){var p=l.value,d=p.name.value,h=o[d];if(n.push(p),void 0===h){var v=e.getFragment(d);v&&a(v)}else{var m=n.slice(h),g=m.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new i.__('Cannot spread fragment "'.concat(d,'" within itself')+(""!==g?" via ".concat(g,"."):"."),{nodes:m}))}n.pop()}}catch(y){f.e(y)}finally{f.f()}o[u]=void 0}}}}},754:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(41361),i=n(31478);function o(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var o,a=e.getRecursiveVariableUsages(n),s=(0,r.Z)(a);try{for(s.s();!(o=s.n()).done;){var u=o.value.node,c=u.name.value;!0!==t[c]&&e.reportError(new i.__(n.name?'Variable "$'.concat(c,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(c,'" is not defined.'),{nodes:[u,n]}))}}catch(l){s.e(l)}finally{s.f()}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}},5826:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(41361),i=n(31478);function o(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 o=Object.create(null),a=0,s=t;a<s.length;a++){var u,c=s[a],l=(0,r.Z)(e.getRecursivelyReferencedFragments(c));try{for(l.s();!(u=l.n()).done;){o[u.value.name.value]=!0}}catch(v){l.e(v)}finally{l.f()}}for(var f=0,p=n;f<p.length;f++){var d=p[f],h=d.name.value;!0!==o[h]&&e.reportError(new i.__('Fragment "'.concat(h,'" is never used.'),{nodes:d}))}}}}}},67184:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var r=n(41361),i=n(31478);function o(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var o,a=Object.create(null),s=e.getRecursiveVariableUsages(n),u=(0,r.Z)(s);try{for(u.s();!(o=u.n()).done;){a[o.value.node.name.value]=!0}}catch(d){u.e(d)}finally{u.f()}for(var c=0,l=t;c<l.length;c++){var f=l[c],p=f.variable.name.value;!0!==a[p]&&e.reportError(new i.__(n.name?'Variable "$'.concat(p,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(p,'" is never used.'),{nodes:f}))}}},VariableDefinition:function(e){t.push(e)}}}},61074:function(e,t,n){"use strict";n.d(t,{y:function(){return m}});var r=n(9249),i=n(87371),o=n(68079),a=n(41361),s=n(96234),u=n(6024),c=n(31478),l=n(60844),f=n(56327),p=n(10949),d=n(67853),h=n(80371);function v(e){return Array.isArray(e)?e.map((function(e){var t=(0,s.Z)(e,2),n=t[0],r=t[1];return'subfields "'.concat(n,'" conflict because ')+v(r)})).join(" and "):e}function m(e){var t=new S,n=new Map;return{SelectionSet:function(r){var i,o=function(e,t,n,r,i){var o=[],a=T(e,t,r,i),u=(0,s.Z)(a,2),c=u[0],l=u[1];if(function(e,t,n,r,i){for(var o=0,a=Object.entries(i);o<a.length;o++){var u=(0,s.Z)(a[o],2),c=u[0],l=u[1];if(l.length>1)for(var f=0;f<l.length;f++)for(var p=f+1;p<l.length;p++){var d=_(e,n,r,!1,c,l[f],l[p]);d&&t.push(d)}}}(e,o,t,n,c),0!==l.length)for(var f=0;f<l.length;f++){g(e,o,t,n,!1,c,l[f]);for(var p=f+1;p<l.length;p++)y(e,o,t,n,!1,l[f],l[p])}return o}(e,n,t,e.getParentType(),r),u=(0,a.Z)(o);try{for(u.s();!(i=u.n()).done;){var l=(0,s.Z)(i.value,3),f=(0,s.Z)(l[0],2),p=f[0],d=f[1],h=l[1],m=l[2],b=v(d);e.reportError(new c.__('Fields "'.concat(p,'" conflict because ').concat(b,". Use different aliases on the fields to fetch both if this was intentional."),{nodes:h.concat(m)}))}}catch(E){u.e(E)}finally{u.f()}}}}function g(e,t,n,r,i,o,u){var c=e.getFragment(u);if(c){var l=w(e,n,c),f=(0,s.Z)(l,2),p=f[0],d=f[1];if(o!==p){b(e,t,n,r,i,o,p);var h,v=(0,a.Z)(d);try{for(v.s();!(h=v.n()).done;){var m=h.value;r.has(m,u,i)||(r.add(m,u,i),g(e,t,n,r,i,o,m))}}catch(y){v.e(y)}finally{v.f()}}}}function y(e,t,n,r,i,o,u){if(o!==u&&!r.has(o,u,i)){r.add(o,u,i);var c=e.getFragment(o),l=e.getFragment(u);if(c&&l){var f=w(e,n,c),p=(0,s.Z)(f,2),d=p[0],h=p[1],v=w(e,n,l),m=(0,s.Z)(v,2),g=m[0],_=m[1];b(e,t,n,r,i,d,g);var E,k=(0,a.Z)(_);try{for(k.s();!(E=k.n()).done;){y(e,t,n,r,i,o,E.value)}}catch(S){k.e(S)}finally{k.f()}var T,x=(0,a.Z)(h);try{for(x.s();!(T=x.n()).done;){y(e,t,n,r,i,T.value,u)}}catch(S){x.e(S)}finally{x.f()}}}}function b(e,t,n,r,i,o,u){for(var c=0,l=Object.entries(o);c<l.length;c++){var f=(0,s.Z)(l[c],2),p=f[0],d=f[1],h=u[p];if(h){var v,m=(0,a.Z)(d);try{for(m.s();!(v=m.n()).done;){var g,y=v.value,b=(0,a.Z)(h);try{for(b.s();!(g=b.n()).done;){var E=_(e,n,r,i,p,y,g.value);E&&t.push(E)}}catch(k){b.e(k)}finally{b.f()}}}catch(k){m.e(k)}finally{m.f()}}}}function _(e,t,n,r,i,c,l){var f=(0,s.Z)(c,3),d=f[0],h=f[1],v=f[2],m=(0,s.Z)(l,3),_=m[0],w=m[1],x=m[2],S=r||d!==_&&(0,p.lp)(d)&&(0,p.lp)(_);if(!S){var C=h.name.value,N=w.name.value;if(C!==N)return[[i,'"'.concat(C,'" and "').concat(N,'" are different fields')],[h],[w]];if(E(h)!==E(w))return[[i,"they have differing arguments"],[h],[w]]}var A=null===v||void 0===v?void 0:v.type,O=null===x||void 0===x?void 0:x.type;if(A&&O&&k(A,O))return[[i,'they return conflicting types "'.concat((0,u.X)(A),'" and "').concat((0,u.X)(O),'"')],[h],[w]];var I=h.selectionSet,D=w.selectionSet;if(I&&D){var L=function(e,t,n,r,i,o,u,c){var l=[],f=T(e,t,i,o),p=(0,s.Z)(f,2),d=p[0],h=p[1],v=T(e,t,u,c),m=(0,s.Z)(v,2),_=m[0],E=m[1];b(e,l,t,n,r,d,_);var k,w=(0,a.Z)(E);try{for(w.s();!(k=w.n()).done;)g(e,l,t,n,r,d,k.value)}catch(D){w.e(D)}finally{w.f()}var x,S=(0,a.Z)(h);try{for(S.s();!(x=S.n()).done;)g(e,l,t,n,r,_,x.value)}catch(D){S.e(D)}finally{S.f()}var C,N=(0,a.Z)(h);try{for(N.s();!(C=N.n()).done;){var A,O=C.value,I=(0,a.Z)(E);try{for(I.s();!(A=I.n()).done;)y(e,l,t,n,r,O,A.value)}catch(D){I.e(D)}finally{I.f()}}}catch(D){N.e(D)}finally{N.f()}return l}(e,t,n,S,(0,p.xC)(A),I,(0,p.xC)(O),D);return function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return(0,s.Z)(e,1)[0]}))],[n].concat((0,o.Z)(e.map((function(e){return(0,s.Z)(e,2)[1]})).flat())),[r].concat((0,o.Z)(e.map((function(e){return(0,s.Z)(e,3)[2]})).flat()))]}(L,i,h,w)}}function E(e){var t,n=null!==(t=e.arguments)&&void 0!==t?t:[],r={kind:l.h.OBJECT,fields:n.map((function(e){return{kind:l.h.OBJECT_FIELD,name:e.name,value:e.value}}))};return(0,f.S)((0,d.n)(r))}function k(e,t){return(0,p.HG)(e)?!(0,p.HG)(t)||k(e.ofType,t.ofType):!!(0,p.HG)(t)||((0,p.zM)(e)?!(0,p.zM)(t)||k(e.ofType,t.ofType):!!(0,p.zM)(t)||!(!(0,p.UT)(e)&&!(0,p.UT)(t))&&e!==t)}function T(e,t,n,r){var i=t.get(r);if(i)return i;var o=Object.create(null),a=Object.create(null);x(e,n,r,o,a);var s=[o,Object.keys(a)];return t.set(r,s),s}function w(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=(0,h._)(e.getSchema(),n.typeCondition);return T(e,t,i,n.selectionSet)}function x(e,t,n,r,i){var o,s=(0,a.Z)(n.selections);try{for(s.s();!(o=s.n()).done;){var u=o.value;switch(u.kind){case l.h.FIELD:var c=u.name.value,f=void 0;((0,p.lp)(t)||(0,p.oT)(t))&&(f=t.getFields()[c]);var d=u.alias?u.alias.value:c;r[d]||(r[d]=[]),r[d].push([t,u,f]);break;case l.h.FRAGMENT_SPREAD:i[u.name.value]=!0;break;case l.h.INLINE_FRAGMENT:var v=u.typeCondition,m=v?(0,h._)(e.getSchema(),v):t;x(e,m,u.selectionSet,r,i)}}}catch(g){s.e(g)}finally{s.f()}}var S=function(){function e(){(0,r.Z)(this,e),this._data=new Map}return(0,i.Z)(e,[{key:"has",value:function(e,t,n){var r,i=e<t?[e,t]:[t,e],o=(0,s.Z)(i,2),a=o[0],u=o[1],c=null===(r=this._data.get(a))||void 0===r?void 0:r.get(u);return void 0!==c&&(!!n||n===c)}},{key:"add",value:function(e,t,n){var r=e<t?[e,t]:[t,e],i=(0,s.Z)(r,2),o=i[0],a=i[1],u=this._data.get(o);void 0===u?this._data.set(o,new Map([[a,n]])):u.set(a,n)}}]),e}()},20919:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var r=n(6024),i=n(31478),o=n(10949),a=n(34836),s=n(80371);function u(e){return{InlineFragment:function(t){var n=e.getType(),s=e.getParentType();if((0,o.Gv)(n)&&(0,o.Gv)(s)&&!(0,a.zR)(e.getSchema(),n,s)){var u=(0,r.X)(s),c=(0,r.X)(n);e.reportError(new i.__('Fragment cannot be spread here as objects of type "'.concat(u,'" can never be of type "').concat(c,'".'),{nodes:t}))}},FragmentSpread:function(t){var n=t.name.value,u=function(e,t){var n=e.getFragment(t);if(n){var r=(0,s._)(e.getSchema(),n.typeCondition);if((0,o.Gv)(r))return r}}(e,n),c=e.getParentType();if(u&&c&&!(0,a.zR)(e.getSchema(),u,c)){var l=(0,r.X)(c),f=(0,r.X)(u);e.reportError(new i.__('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(l,'" can never be of type "').concat(f,'".'),{nodes:t}))}}}}},92793:function(e,t,n){"use strict";n.d(t,{g:function(){return v}});var r,i=n(56666),o=n(33028),a=n(41361),s=n(18513),u=n(6024),c=n(42690),l=n(23649),f=n(31478),p=n(60844),d=n(2364),h=n(10949);function v(e){var t,n=e.getSchema(),r=Object.create(null),i=(0,a.Z)(e.getDocument().definitions);try{for(i.s();!(t=i.n()).done;){var v=t.value;(0,d.zT)(v)&&(r[v.name.value]=v)}}catch(y){i.e(y)}finally{i.f()}return{ScalarTypeExtension:g,ObjectTypeExtension:g,InterfaceTypeExtension:g,UnionTypeExtension:g,EnumTypeExtension:g,InputObjectTypeExtension:g};function g(t){var i,a=t.name.value,d=r[a],v=null===n||void 0===n?void 0:n.getType(a);if(d?i=m[d.kind]:v&&(i=function(e){if((0,h.KA)(e))return p.h.SCALAR_TYPE_EXTENSION;if((0,h.lp)(e))return p.h.OBJECT_TYPE_EXTENSION;if((0,h.oT)(e))return p.h.INTERFACE_TYPE_EXTENSION;if((0,h.EN)(e))return p.h.UNION_TYPE_EXTENSION;if((0,h.EM)(e))return p.h.ENUM_TYPE_EXTENSION;if((0,h.hL)(e))return p.h.INPUT_OBJECT_TYPE_EXTENSION;(0,c.k)(!1,"Unexpected type: "+(0,u.X)(e))}(v)),i){if(i!==t.kind){var g=function(e){switch(e){case p.h.SCALAR_TYPE_EXTENSION:return"scalar";case p.h.OBJECT_TYPE_EXTENSION:return"object";case p.h.INTERFACE_TYPE_EXTENSION:return"interface";case p.h.UNION_TYPE_EXTENSION:return"union";case p.h.ENUM_TYPE_EXTENSION:return"enum";case p.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,c.k)(!1,"Unexpected kind: "+(0,u.X)(e))}}(t.kind);e.reportError(new f.__("Cannot extend non-".concat(g,' type "').concat(a,'".'),{nodes:d?[d,t]:t}))}}else{var y=Object.keys((0,o.Z)((0,o.Z)({},r),null===n||void 0===n?void 0:n.getTypeMap())),b=(0,l.D)(a,y);e.reportError(new f.__('Cannot extend type "'.concat(a,'" because it is not defined.')+(0,s.l)(b),{nodes:t.name}))}}}var m=(r={},(0,i.Z)(r,p.h.SCALAR_TYPE_DEFINITION,p.h.SCALAR_TYPE_EXTENSION),(0,i.Z)(r,p.h.OBJECT_TYPE_DEFINITION,p.h.OBJECT_TYPE_EXTENSION),(0,i.Z)(r,p.h.INTERFACE_TYPE_DEFINITION,p.h.INTERFACE_TYPE_EXTENSION),(0,i.Z)(r,p.h.UNION_TYPE_DEFINITION,p.h.UNION_TYPE_EXTENSION),(0,i.Z)(r,p.h.ENUM_TYPE_DEFINITION,p.h.ENUM_TYPE_EXTENSION),(0,i.Z)(r,p.h.INPUT_OBJECT_TYPE_DEFINITION,p.h.INPUT_OBJECT_TYPE_EXTENSION),r)},25897:function(e,t,n){"use strict";n.d(t,{c:function(){return h},s:function(){return d}});var r=n(96234),i=n(41361),o=n(33028),a=n(6024),s=n(92373),u=n(31478),c=n(60844),l=n(56327),f=n(10949),p=n(78831);function d(e){return(0,o.Z)((0,o.Z)({},h(e)),{},{Field:{leave:function(t){var n,r=e.getFieldDef();if(!r)return!1;var o,s=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((function(e){return e.name.value}))),c=(0,i.Z)(r.args);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(!s.has(l.name)&&(0,f.dK)(l)){var p=(0,a.X)(l.type);e.reportError(new u.__('Field "'.concat(r.name,'" argument "').concat(l.name,'" of type "').concat(p,'" is required, but it was not provided.'),{nodes:t}))}}}catch(d){c.e(d)}finally{c.f()}}}})}function h(e){var t,n,o=Object.create(null),d=e.getSchema(),h=null!==(t=null===d||void 0===d?void 0:d.getDirectives())&&void 0!==t?t:p.V4,m=(0,i.Z)(h);try{for(m.s();!(n=m.n()).done;){var g=n.value;o[g.name]=(0,s.P)(g.args.filter(f.dK),(function(e){return e.name}))}}catch(w){m.e(w)}finally{m.f()}var y,b=e.getDocument().definitions,_=(0,i.Z)(b);try{for(_.s();!(y=_.n()).done;){var E=y.value;if(E.kind===c.h.DIRECTIVE_DEFINITION){var k,T=null!==(k=E.arguments)&&void 0!==k?k:[];o[E.name.value]=(0,s.P)(T.filter(v),(function(e){return e.name.value}))}}}catch(w){_.e(w)}finally{_.f()}return{Directive:{leave:function(t){var n=t.name.value,i=o[n];if(i)for(var s,c=null!==(s=t.arguments)&&void 0!==s?s:[],p=new Set(c.map((function(e){return e.name.value}))),d=0,h=Object.entries(i);d<h.length;d++){var v=(0,r.Z)(h[d],2),m=v[0],g=v[1];if(!p.has(m)){var y=(0,f.P9)(g.type)?(0,a.X)(g.type):(0,l.S)(g.type);e.reportError(new u.__('Directive "@'.concat(n,'" argument "').concat(m,'" of type "').concat(y,'" is required, but it was not provided.'),{nodes:t}))}}}}}}function v(e){return e.type.kind===c.h.NON_NULL_TYPE&&null==e.defaultValue}},80926:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(6024),i=n(31478),o=n(10949);function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;if(n)if((0,o.UT)((0,o.xC)(n))){if(a){var s=t.name.value,u=(0,r.X)(n);e.reportError(new i.__('Field "'.concat(s,'" must not have a selection since type "').concat(u,'" has no subfields.'),{nodes:a}))}}else if(!a){var c=t.name.value,l=(0,r.X)(n);e.reportError(new i.__('Field "'.concat(c,'" of type "').concat(l,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),{nodes:t}))}}}}},93448:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(68079),i=n(41361),o=n(31478),a=n(60844),s=n(55744);function u(e){return{OperationDefinition:function(t){if("subscription"===t.operation){var n=e.getSchema(),u=n.getSubscriptionType();if(u){var c,l=t.name?t.name.value:null,f=Object.create(null),p=e.getDocument(),d=Object.create(null),h=(0,i.Z)(p.definitions);try{for(h.s();!(c=h.n()).done;){var v=c.value;v.kind===a.h.FRAGMENT_DEFINITION&&(d[v.name.value]=v)}}catch(E){h.e(E)}finally{h.f()}var m=(0,s.g)(n,d,f,u,t.selectionSet);if(m.size>1){var g=(0,r.Z)(m.values()).slice(1).flat();e.reportError(new o.__(null!=l?'Subscription "'.concat(l,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",{nodes:g}))}var y,b=(0,i.Z)(m.values());try{for(b.s();!(y=b.n()).done;){var _=y.value;_[0].name.value.startsWith("__")&&e.reportError(new o.__(null!=l?'Subscription "'.concat(l,'" must not select an introspection top level field.'):"Anonymous Subscription must not select an introspection top level field.",{nodes:_}))}}catch(E){b.e(E)}finally{b.f()}}}}}}},15702:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var r=n(96234),i=n(41361),o=n(34807),a=n(31478);function s(e){return{DirectiveDefinition:function(e){var t,r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@".concat(e.name.value),r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r,o=e.name.value,a=null!==(t=e.fields)&&void 0!==t?t:[],s=(0,i.Z)(a);try{for(s.s();!(r=s.n()).done;){var u,c=r.value,l=c.name.value,f=null!==(u=c.arguments)&&void 0!==u?u:[];n("".concat(o,".").concat(l),f)}}catch(p){s.e(p)}finally{s.f()}return!1}function n(t,n){var s,u=(0,o.v)(n,(function(e){return e.name.value})),c=(0,i.Z)(u);try{for(c.s();!(s=c.n()).done;){var l=(0,r.Z)(s.value,2),f=l[0],p=l[1];p.length>1&&e.reportError(new a.__('Argument "'.concat(t,"(").concat(f,':)" can only be defined once.'),{nodes:p.map((function(e){return e.name}))}))}}catch(d){c.e(d)}finally{c.f()}return!1}}},65915:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var r=n(96234),i=n(41361),o=n(34807),a=n(31478);function s(e){return{Field:t,Directive:t};function t(t){var n,s,u=null!==(n=t.arguments)&&void 0!==n?n:[],c=(0,o.v)(u,(function(e){return e.name.value})),l=(0,i.Z)(c);try{for(l.s();!(s=l.n()).done;){var f=(0,r.Z)(s.value,2),p=f[0],d=f[1];d.length>1&&e.reportError(new a.__('There can be only one argument named "'.concat(p,'".'),{nodes:d.map((function(e){return e.name}))}))}}catch(h){l.e(h)}finally{l.f()}}}},86066:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(31478);function i(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(null===n||void 0===n||!n.getDirective(o))return t[o]?e.reportError(new r.__('There can be only one directive named "@'.concat(o,'".'),{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.__('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),{nodes:i.name}))}}}},23453:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(41361),i=n(31478),o=n(60844),a=n(2364),s=n(78831);function u(e){var t,n=Object.create(null),u=e.getSchema(),c=u?u.getDirectives():s.V4,l=(0,r.Z)(c);try{for(l.s();!(t=l.n()).done;){var f=t.value;n[f.name]=!f.isRepeatable}}catch(y){l.e(y)}finally{l.f()}var p,d=e.getDocument().definitions,h=(0,r.Z)(d);try{for(h.s();!(p=h.n()).done;){var v=p.value;v.kind===o.h.DIRECTIVE_DEFINITION&&(n[v.name.value]=!v.repeatable)}}catch(y){h.e(y)}finally{h.f()}var m=Object.create(null),g=Object.create(null);return{enter:function(t){if("directives"in t&&t.directives){var s;if(t.kind===o.h.SCHEMA_DEFINITION||t.kind===o.h.SCHEMA_EXTENSION)s=m;else if((0,a.zT)(t)||(0,a.D$)(t)){var u=t.name.value;void 0===(s=g[u])&&(g[u]=s=Object.create(null))}else s=Object.create(null);var c,l=(0,r.Z)(t.directives);try{for(l.s();!(c=l.n()).done;){var f=c.value,p=f.name.value;n[p]&&(s[p]?e.reportError(new i.__('The directive "@'.concat(p,'" can only be used once at this location.'),{nodes:[s[p],f]})):s[p]=f)}}catch(y){l.e(y)}finally{l.f()}}}}}},15617:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(41361),i=n(31478),o=n(10949);function a(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),a=Object.create(null);return{EnumTypeDefinition:s,EnumTypeExtension:s};function s(t){var s,u=t.name.value;a[u]||(a[u]=Object.create(null));var c,l=null!==(s=t.values)&&void 0!==s?s:[],f=a[u],p=(0,r.Z)(l);try{for(p.s();!(c=p.n()).done;){var d=c.value,h=d.name.value,v=n[u];(0,o.EM)(v)&&v.getValue(h)?e.reportError(new i.__('Enum value "'.concat(u,".").concat(h,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:d.name})):f[h]?e.reportError(new i.__('Enum value "'.concat(u,".").concat(h,'" can only be defined once.'),{nodes:[f[h],d.name]})):f[h]=d.name}}catch(m){p.e(m)}finally{p.f()}return!1}}},77916:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(41361),i=n(31478),o=n(10949);function a(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a,u=t.name.value;o[u]||(o[u]=Object.create(null));var c,l=null!==(a=t.fields)&&void 0!==a?a:[],f=o[u],p=(0,r.Z)(l);try{for(p.s();!(c=p.n()).done;){var d=c.value,h=d.name.value;s(n[u],h)?e.reportError(new i.__('Field "'.concat(u,".").concat(h,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:d.name})):f[h]?e.reportError(new i.__('Field "'.concat(u,".").concat(h,'" can only be defined once.'),{nodes:[f[h],d.name]})):f[h]=d.name}}catch(v){p.e(v)}finally{p.f()}return!1}}function s(e,t){return!!((0,o.lp)(e)||(0,o.oT)(e)||(0,o.hL)(e))&&null!=e.getFields()[t]}},53316:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(31478);function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new r.__('There can be only one fragment named "'.concat(i,'".'),{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}},83703:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(42690),i=n(31478);function o(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){var e=t.pop();e||(0,r.k)(!1),n=e}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new i.__('There can be only one input field named "'.concat(r,'".'),{nodes:[n[r],t.name]})):n[r]=t.name}}}},83654:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(31478);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.__('There can be only one operation named "'.concat(i.value,'".'),{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}},8590:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(41361),i=n(31478);function o(e){var t=e.getSchema(),n=Object.create(null),o=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:a,SchemaExtension:a};function a(t){var a,s,u=null!==(a=t.operationTypes)&&void 0!==a?a:[],c=(0,r.Z)(u);try{for(c.s();!(s=c.n()).done;){var l=s.value,f=l.operation,p=n[f];o[f]?e.reportError(new i.__("Type for ".concat(f," already defined in the schema. It cannot be redefined."),{nodes:l})):p?e.reportError(new i.__("There can be only one ".concat(f," type in schema."),{nodes:[p,l]})):n[f]=l}}catch(d){c.e(d)}finally{c.f()}return!1}}},63669:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(31478);function i(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){var o=i.name.value;if(null===n||void 0===n||!n.getType(o))return t[o]?e.reportError(new r.__('There can be only one type named "'.concat(o,'".'),{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.__('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),{nodes:i.name}))}}},42205:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(96234),i=n(41361),o=n(34807),a=n(31478);function s(e){return{OperationDefinition:function(t){var n,s,u=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],c=(0,o.v)(u,(function(e){return e.variable.name.value})),l=(0,i.Z)(c);try{for(l.s();!(s=l.n()).done;){var f=(0,r.Z)(s.value,2),p=f[0],d=f[1];d.length>1&&e.reportError(new a.__('There can be only one variable named "$'.concat(p,'".'),{nodes:d.map((function(e){return e.variable.name}))}))}}catch(h){l.e(h)}finally{l.f()}}}}},82856:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(18513),i=n(6024),o=n(92373),a=n(23649),s=n(31478),u=n(56327),c=n(10949);function l(e){return{ListValue:function(t){var n=(0,c.tf)(e.getParentInputType());if(!(0,c.HG)(n))return f(e,t),!1},ObjectValue:function(t){var n=(0,c.xC)(e.getInputType());if(!(0,c.hL)(n))return f(e,t),!1;for(var r=(0,o.P)(t.fields,(function(e){return e.name.value})),a=0,u=Object.values(n.getFields());a<u.length;a++){var l=u[a];if(!r[l.name]&&(0,c.Wd)(l)){var p=(0,i.X)(l.type);e.reportError(new s.__('Field "'.concat(n.name,".").concat(l.name,'" of required type "').concat(p,'" was not provided.'),{nodes:t}))}}},ObjectField:function(t){var n=(0,c.xC)(e.getParentInputType());if(!e.getInputType()&&(0,c.hL)(n)){var i=(0,a.D)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.__('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+(0,r.l)(i),{nodes:t}))}},NullValue:function(t){var n=e.getInputType();(0,c.zM)(n)&&e.reportError(new s.__('Expected value of type "'.concat((0,i.X)(n),'", found ').concat((0,u.S)(t),"."),{nodes:t}))},EnumValue:function(t){return f(e,t)},IntValue:function(t){return f(e,t)},FloatValue:function(t){return f(e,t)},StringValue:function(t){return f(e,t)},BooleanValue:function(t){return f(e,t)}}}function f(e,t){var n=e.getInputType();if(n){var r=(0,c.xC)(n);if((0,c.UT)(r))try{if(void 0===r.parseLiteral(t,void 0)){var o=(0,i.X)(n);e.reportError(new s.__('Expected value of type "'.concat(o,'", found ').concat((0,u.S)(t),"."),{nodes:t}))}}catch(f){var a=(0,i.X)(n);f instanceof s.__?e.reportError(f):e.reportError(new s.__('Expected value of type "'.concat(a,'", found ').concat((0,u.S)(t),"; ")+f.message,{nodes:t,originalError:f}))}else{var l=(0,i.X)(n);e.reportError(new s.__('Expected value of type "'.concat(l,'", found ').concat((0,u.S)(t),"."),{nodes:t}))}}}},15024:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(31478),i=n(56327),o=n(10949),a=n(80371);function s(e){return{VariableDefinition:function(t){var n=(0,a._)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.j$)(n)){var s=t.variable.name.value,u=(0,i.S)(t.type);e.reportError(new r.__('Variable "$'.concat(s,'" cannot be non-input type "').concat(u,'".'),{nodes:t.type}))}}}}},15247:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(41361),i=n(6024),o=n(31478),a=n(60844),s=n(10949),u=n(34836),c=n(80371);function l(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var a,s=e.getRecursiveVariableUsages(n),u=(0,r.Z)(s);try{for(u.s();!(a=u.n()).done;){var l=a.value,p=l.node,d=l.type,h=l.defaultValue,v=p.name.value,m=t[v];if(m&&d){var g=e.getSchema(),y=(0,c._)(g,m.type);if(y&&!f(g,y,m.defaultValue,d,h)){var b=(0,i.X)(y),_=(0,i.X)(d);e.reportError(new o.__('Variable "$'.concat(v,'" of type "').concat(b,'" used in position expecting type "').concat(_,'".'),{nodes:[m,p]}))}}}}catch(E){u.e(E)}finally{u.f()}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function f(e,t,n,r,i){if((0,s.zM)(r)&&!(0,s.zM)(t)){if(!(null!=n&&n.kind!==a.h.NULL)&&!(void 0!==i))return!1;var o=r.ofType;return(0,u.uJ)(e,t,o)}return(0,u.uJ)(e,t,r)}},43113:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(42690),i=n(31478),o=n(10949);function a(e){return{Field:function(t){var n=e.getFieldDef(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getParentType();null!=a||(0,r.k)(!1),e.reportError(new i.__("The field ".concat(a.name,".").concat(n.name," is deprecated. ").concat(o),{nodes:t}))}},Argument:function(t){var n=e.getArgument(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getDirective();if(null!=a)e.reportError(new i.__('Directive "@'.concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),{nodes:t}));else{var s=e.getParentType(),u=e.getFieldDef();null!=s&&null!=u||(0,r.k)(!1),e.reportError(new i.__('Field "'.concat(s.name,".").concat(u.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),{nodes:t}))}}},ObjectField:function(t){var n=(0,o.xC)(e.getParentInputType());if((0,o.hL)(n)){var r=n.getFields()[t.name.value],a=null===r||void 0===r?void 0:r.deprecationReason;null!=a&&e.reportError(new i.__("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(a),{nodes:t}))}},EnumValue:function(t){var n=e.getEnumValue(),a=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=a){var s=(0,o.xC)(e.getInputType());null!=s||(0,r.k)(!1),e.reportError(new i.__('The enum value "'.concat(s.name,".").concat(n.name,'" is deprecated. ').concat(a),{nodes:t}))}}}}},14141:function(e,t,n){"use strict";n.d(t,{M:function(){return P},i:function(){return j}});var r=n(77382),i=n(5741),o=n(84876),a=n(68521),s=n(84646),u=n(27499),c=n(52546),l=n(76373),f=n(1367),p=n(76776),d=n(754),h=n(5826),v=n(67184),m=n(61074),g=n(20919),y=n(92793),b=n(25897),_=n(80926),E=n(93448),k=n(15702),T=n(65915),w=n(86066),x=n(23453),S=n(15617),C=n(77916),N=n(53316),A=n(83703),O=n(83654),I=n(8590),D=n(63669),L=n(42205),F=n(82856),M=n(15024),R=n(15247),j=Object.freeze([r.i,O.H,l.F,E.Z,c.I,o.T,M.I,_.O,i.A,N.N,u.a,h.J,g.a,p.H,L.H,d.$,v.p,s.J,x.k,a.e,T.L,F.j,b.s,R.w,m.y,A.P]),P=Object.freeze([f.t,I.q,D.P,S.L,C.y,k.L,w.o,c.I,s.J,x.k,y.g,a.o,T.L,A.P,b.c])},72996:function(e,t,n){"use strict";n.d(t,{ED:function(){return d},Gu:function(){return l},zo:function(){return p}});var r=n(61388),i=n(31478),o=n(7751),a=n(91681),s=n(23857),u=n(14141),c=n(26743);function l(e,t){var n,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.i,f=arguments.length>3?arguments[3]:void 0,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new s.a(e),d=null!==(n=null===f||void 0===f?void 0:f.maxErrors)&&void 0!==n?n:100;t||(0,r.a)(!1,"Must provide document."),(0,a.J)(e);var h=Object.freeze({}),v=[],m=new c._t(e,t,p,(function(e){if(v.length>=d)throw v.push(new i.__("Too many validation errors, error limit reached. Validation aborted.")),h;v.push(e)})),g=(0,o.j1)(l.map((function(e){return e(m)})));try{(0,o.Vn)(t,(0,s.y)(p,g))}catch(y){if(y!==h)throw y}return v}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.M,r=[],i=new c.yv(e,t,(function(e){r.push(e)})),a=n.map((function(e){return e(i)}));return(0,o.Vn)(e,(0,o.j1)(a)),r}function p(e){var t=f(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}function d(e,t){var n=f(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}},5285:function(e,t,n){"use strict";n.r(t),n.d(t,{CloseCode:function(){return s.CloseCode},DEPRECATED_GRAPHQL_WS_PROTOCOL:function(){return s.DEPRECATED_GRAPHQL_WS_PROTOCOL},GRAPHQL_TRANSPORT_WS_PROTOCOL:function(){return s.GRAPHQL_TRANSPORT_WS_PROTOCOL},MessageType:function(){return s.MessageType},createClient:function(){return c},isMessage:function(){return s.isMessage},parseMessage:function(){return s.parseMessage},stringifyMessage:function(){return s.stringifyMessage},validateMessage:function(){return s.validateMessage}});var r=n(96234),i=n(68079),o=n(32723),a=n(34795),s=n(15242),u=n(3403);function c(e){var t,n,c=e.url,f=e.connectionParams,p=e.lazy,d=void 0===p||p,h=e.onNonLazyError,v=void 0===h?console.error:h,m=e.lazyCloseTimeout,g=void 0===m?0:m,y=e.keepAlive,b=void 0===y?0:y,_=e.disablePong,E=e.connectionAckWaitTimeout,k=void 0===E?0:E,T=e.retryAttempts,w=void 0===T?5:T,x=e.retryWait,S=void 0===x?function(){var e=(0,a.Z)((0,o.Z)().mark((function e(t){var n,r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=1e3,r=0;r<t;r++)n*=2;return e.next=4,new Promise((function(e){return setTimeout(e,n+Math.floor(2700*Math.random()+300))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():x,C=e.shouldRetry,N=void 0===C?l:C,A=e.isFatalConnectionProblem,O=e.on,I=e.webSocketImpl,D=e.generateID,L=void 0===D?function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}:D,F=e.jsonMessageReplacer,M=e.jsonMessageReviver;if(I){if(!("function"===typeof(n=I)&&"constructor"in n&&"CLOSED"in n&&"CLOSING"in n&&"CONNECTING"in n&&"OPEN"in n))throw new Error("Invalid WebSocket implementation provided");t=I}else"undefined"!==typeof WebSocket?t=WebSocket:"undefined"!==typeof global?t=global.WebSocket||global.MozWebSocket:"undefined"!==typeof window&&(t=window.WebSocket||window.MozWebSocket);if(!t)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");var R=t,j=function(){var e=function(){var e={};return{on:function(t,n){return e[t]=n,function(){delete e[t]}},emit:function(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}}(),t={connecting:(null===O||void 0===O?void 0:O.connecting)?[O.connecting]:[],opened:(null===O||void 0===O?void 0:O.opened)?[O.opened]:[],connected:(null===O||void 0===O?void 0:O.connected)?[O.connected]:[],ping:(null===O||void 0===O?void 0:O.ping)?[O.ping]:[],pong:(null===O||void 0===O?void 0:O.pong)?[O.pong]:[],message:(null===O||void 0===O?void 0:O.message)?[e.emit,O.message]:[e.emit],closed:(null===O||void 0===O?void 0:O.closed)?[O.closed]:[],error:(null===O||void 0===O?void 0:O.error)?[O.error]:[]};return{onMessage:e.on,on:function(e,n){var r=t[e];return r.push(n),function(){r.splice(r.indexOf(n),1)}},emit:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var a=0,s=(0,i.Z)(t[e]);a<s.length;a++){s[a].apply(void 0,r)}}}}();function P(e){var t=[j.on("error",(function(n){t.forEach((function(e){return e()})),e(n)})),j.on("closed",(function(n){t.forEach((function(e){return e()})),e(n)}))]}var V,Z,q=0,U=!1,B=0,z=!1;function H(){return G.apply(this,arguments)}function G(){return(G=(0,a.Z)((0,o.Z)().mark((function e(){var t,n,i,p,d,h;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(Z),e.next=3,null!==V&&void 0!==V?V:V=new Promise((function(e,t){return(0,a.Z)((0,o.Z)().mark((function n(){var r,i,p,d,h;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(d=function(){isFinite(b)&&b>0&&(clearTimeout(p),p=setTimeout((function(){r.readyState===R.OPEN&&(r.send((0,s.stringifyMessage)({type:s.MessageType.Ping})),j.emit("ping",!1,void 0))}),b))},!U){n.next=8;break}return n.next=4,S(B);case 4:if(q){n.next=7;break}return V=void 0,n.abrupt("return",t({code:1e3,reason:"All Subscriptions Gone"}));case 7:B++;case 8:if(j.emit("connecting"),n.t0=R,"function"!==typeof c){n.next=16;break}return n.next=13,c();case 13:n.t1=n.sent,n.next=17;break;case 16:n.t1=c;case 17:n.t2=n.t1,n.t3=s.GRAPHQL_TRANSPORT_WS_PROTOCOL,r=new n.t0(n.t2,n.t3),P((function(e){V=void 0,clearTimeout(i),clearTimeout(p),t(e),l(e)&&4499===e.code&&(r.close(4499,"Terminated"),r.onerror=null,r.onclose=null)})),r.onerror=function(e){return j.emit("error",e)},r.onclose=function(e){return j.emit("closed",e)},r.onopen=(0,a.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,j.emit("opened",r),"function"!==typeof f){e.next=8;break}return e.next=5,f();case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=f;case 9:if(t=e.t0,r.readyState===R.OPEN){e.next=12;break}return e.abrupt("return");case 12:r.send((0,s.stringifyMessage)(t?{type:s.MessageType.ConnectionInit,payload:t}:{type:s.MessageType.ConnectionInit},F)),isFinite(k)&&k>0&&(i=setTimeout((function(){r.close(s.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),k)),d(),e.next=21;break;case 17:e.prev=17,e.t1=e.catch(0),j.emit("error",e.t1),r.close(s.CloseCode.InternalClientError,(0,u.qj)(e.t1 instanceof Error?e.t1.message:new Error(e.t1).message,"Internal client error"));case 21:case"end":return e.stop()}}),e,null,[[0,17]])}))),h=!1,r.onmessage=function(t){var n=t.data;try{var o=(0,s.parseMessage)(n,M);if(j.emit("message",o),"ping"===o.type||"pong"===o.type)return j.emit(o.type,!0,o.payload),void("pong"===o.type?d():_||(r.send((0,s.stringifyMessage)(o.payload?{type:s.MessageType.Pong,payload:o.payload}:{type:s.MessageType.Pong})),j.emit("pong",!1,o.payload)));if(h)return;if(o.type!==s.MessageType.ConnectionAck)throw new Error("First message cannot be of type ".concat(o.type));clearTimeout(i),h=!0,j.emit("connected",r,o.payload),U=!1,B=0,e([r,new Promise((function(e,t){return P(t)}))])}catch(a){r.onmessage=null,j.emit("error",a),r.close(s.CloseCode.BadResponse,(0,u.qj)(a instanceof Error?a.message:new Error(a).message,"Bad response"))}};case 26:case"end":return n.stop()}}),n)})))()}));case 3:if(t=e.sent,n=(0,r.Z)(t,2),i=n[0],p=n[1],i.readyState!==R.CLOSING){e.next=10;break}return e.next=10,p;case 10:return d=function(){},h=new Promise((function(e){return d=e})),e.abrupt("return",[i,d,Promise.race([h.then((function(){if(!q){var e=function(){return i.close(1e3,"Normal Closure")};isFinite(g)&&g>0?Z=setTimeout((function(){i.readyState===R.OPEN&&e()}),g):e()}})),p])]);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){if(l(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(t)&&t>=1e3&&t<=1999||[s.CloseCode.InternalServerError,s.CloseCode.InternalClientError,s.CloseCode.BadRequest,s.CloseCode.BadResponse,s.CloseCode.Unauthorized,s.CloseCode.SubprotocolNotAcceptable,s.CloseCode.SubscriberAlreadyExists,s.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(z)return!1;if(l(e)&&1e3===e.code)return q>0;if(!w||B>=w)throw e;if(!N(e))throw e;if(null===A||void 0===A?void 0:A(e))throw e;return U=!0}return d||(0,a.Z)((0,o.Z)().mark((function e(){var t,n,i;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:q++;case 1:return e.prev=1,e.next=4,H();case 4:return t=e.sent,n=(0,r.Z)(t,3),i=n[2],e.next=9,i;case 9:e.next=21;break;case 11:if(e.prev=11,e.t0=e.catch(1),e.prev=13,W(e.t0)){e.next=16;break}return e.abrupt("return");case 16:e.next=21;break;case 18:return e.prev=18,e.t1=e.catch(13),e.abrupt("return",null===v||void 0===v?void 0:v(e.t1));case 21:e.next=1;break;case 23:case"end":return e.stop()}}),e,null,[[1,11],[13,18]])})))(),{on:j.on,subscribe:function(e,t){var n=L(e),i=!1,u=!1,c=function(){q--,i=!0};return(0,a.Z)((0,o.Z)().mark((function a(){var l,f;return(0,o.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:q++,l=(0,o.Z)().mark((function a(){var l,f,p,d,h,v;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,H();case 3:if(l=o.sent,f=(0,r.Z)(l,3),p=f[0],d=f[1],h=f[2],!i){o.next=10;break}return o.abrupt("return",{v:d()});case 10:return v=j.onMessage(n,(function(e){switch(e.type){case s.MessageType.Next:return void t.next(e.payload);case s.MessageType.Error:return u=!0,i=!0,t.error(e.payload),void c();case s.MessageType.Complete:return i=!0,void c()}})),p.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Subscribe,payload:e},F)),c=function(){i||p.readyState!==R.OPEN||p.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Complete},F)),q--,i=!0,d()},o.next=15,h.finally(v);case 15:return o.abrupt("return",{v:void 0});case 18:if(o.prev=18,o.t0=o.catch(0),W(o.t0)){o.next=22;break}return o.abrupt("return",{v:void 0});case 22:case"end":return o.stop()}}),a,null,[[0,18]])}));case 2:return a.delegateYield(l(),"t0",3);case 3:if("object"!==typeof(f=a.t0)){a.next=6;break}return a.abrupt("return",f.v);case 6:a.next=2;break;case 8:case"end":return a.stop()}}),a)})))().then((function(){u||t.complete()})).catch((function(e){t.error(e)})),function(){i||c()}},dispose:function(){return(0,a.Z)((0,o.Z)().mark((function e(){var t,n;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(z=!0,!V){e.next=8;break}return e.next=4,V;case 4:t=e.sent,n=(0,r.Z)(t,1),n[0].close(1e3,"Normal Closure");case 8:case"end":return e.stop()}}),e)})))()},terminate:function(){V&&j.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}function l(e){return(0,u.Kn)(e)&&"code"in e&&"reason"in e}},15242:function(e,t,n){"use strict";n.r(t),n.d(t,{CloseCode:function(){return r},DEPRECATED_GRAPHQL_WS_PROTOCOL:function(){return s},GRAPHQL_TRANSPORT_WS_PROTOCOL:function(){return a},MessageType:function(){return i},isMessage:function(){return c},parseMessage:function(){return l},stringifyMessage:function(){return f},validateMessage:function(){return u}});var r,i,o=n(3403),a="graphql-transport-ws",s="graphql-ws";function u(e){if(!(0,o.Kn)(e))throw new Error("Message is expected to be an object, but got ".concat((0,o.IR)(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 ".concat((0,o.IR)(e.type)));switch(e.type){case i.ConnectionInit:case i.ConnectionAck:case i.Ping:case i.Pong:if(null!=e.payload&&!(0,o.Kn)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object or nullish or missing, but got \"").concat(e.payload,'"'));break;case i.Subscribe:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,o.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!(0,o.Kn)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat((0,o.IR)(e.payload)));if("string"!==typeof e.payload.query)throw new Error('"'.concat(e.type,"\" message payload expects the 'query' property to be a string, but got ").concat((0,o.IR)(e.payload.query)));if(null!=e.payload.variables&&!(0,o.Kn)(e.payload.variables))throw new Error('"'.concat(e.type,"\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ").concat((0,o.IR)(e.payload.variables)));if(null!=e.payload.operationName&&"string"!==(0,o.IR)(e.payload.operationName))throw new Error('"'.concat(e.type,"\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ").concat((0,o.IR)(e.payload.operationName)));if(null!=e.payload.extensions&&!(0,o.Kn)(e.payload.extensions))throw new Error('"'.concat(e.type,"\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ").concat((0,o.IR)(e.payload.extensions)));break;case i.Next:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,o.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!(0,o.Kn)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat((0,o.IR)(e.payload)));break;case i.Error:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,o.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!(0,o.Ox)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an array of GraphQL errors, but got ").concat(JSON.stringify(e.payload)));break;case i.Complete:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,o.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));break;default:throw new Error("Invalid message 'type' property \"".concat(e.type,'"'))}return e}function c(e){try{return u(e),!0}catch(t){return!1}}function l(e,t){return u("string"===typeof e?JSON.parse(e,t):e)}function f(e,t){return u(e),JSON.stringify(e,t)}!function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(r||(r={})),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||(i={}))},98060:function(e,t,n){"use strict";n.r(t),n.d(t,{handleProtocols:function(){return fr},makeServer:function(){return lr}});var r=n(32723),i=n(34795),o=n(86286),a=n(19313),s=n(62893),u=n(89193),c=n(41361),l=n(68079),f=n(9249),p=n(87371),d=n(61160),h=n(91510),v=n(96234),m=5;function g(e,t){var n=t?[e,t]:[void 0,e],r=(0,v.Z)(n,2),i=r[0],o=" Did you mean ";i&&(o+=i+" ");var a=r[1].map((function(e){return'"'.concat(e,'"')}));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}var s=a.slice(0,m),u=s.pop();return o+s.join(", ")+", or "+u+"?"}function y(e){return e}var b=n(35896),_=n(17032);function E(e,t){var n,r=Object.create(null),i=(0,c.Z)(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;r[t(o)]=o}}catch(a){i.e(a)}finally{i.f()}return r}function k(e,t,n){var r,i=Object.create(null),o=(0,c.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[t(a)]=n(a)}}catch(s){o.e(s)}finally{o.f()}return i}function T(e,t){for(var n=Object.create(null),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n[o]=t(e[o],o)}return n}function w(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var i=e.charCodeAt(n),o=t.charCodeAt(r);if(C(i)&&C(o)){var a=0;do{++n,a=10*a+i-x,i=e.charCodeAt(n)}while(C(i)&&a>0);var s=0;do{++r,s=10*s+o-x,o=t.charCodeAt(r)}while(C(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}var x=48,S=57;function C(e){return!isNaN(e)&&x<=e&&e<=S}function N(e,t){var n,r=Object.create(null),i=new A(e),o=Math.floor(.4*e.length)+1,a=(0,c.Z)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=i.measure(s,o);void 0!==u&&(r[s]=u)}}catch(l){a.e(l)}finally{a.f()}return Object.keys(r).sort((function(e,t){var n=r[e]-r[t];return 0!==n?n:w(e,t)}))}var A=function(){function e(t){(0,f.Z)(this,e),this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=O(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}return(0,p.Z)(e,[{key:"measure",value:function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=O(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var f=u[(l-1)%3],p=u[l%3],d=p[0]=l,h=1;h<=s;h++){var v=r[l-1]===i[h-1]?0:1,m=Math.min(f[h]+1,p[h-1]+1,f[h-1]+v);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var g=u[(l-2)%3][h-2];m=Math.min(m,g+1)}m<d&&(d=m),p[h]=m}if(d>t)return}var y=u[a%3][s];return y<=t?y:void 0}}}]),e}();function O(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function I(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Object.entries(e);n<r.length;n++){var i=(0,v.Z)(r[n],2),o=i[0],a=i[1];t[o]=a}return t}var D=n(80866),L=n(97299);function F(e,t){switch(e.kind){case D.h.NULL:return null;case D.h.INT:return parseInt(e.value,10);case D.h.FLOAT:return parseFloat(e.value);case D.h.STRING:case D.h.ENUM:case D.h.BOOLEAN:return e.value;case D.h.LIST:return e.values.map((function(e){return F(e,t)}));case D.h.OBJECT:return k(e.fields,(function(e){return e.name.value}),(function(e){return F(e.value,t)}));case D.h.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}}var M=n(6278);function R(e){if(null!=e||(0,a.a)(!1,"Must provide name."),"string"===typeof e||(0,a.a)(!1,"Expected name to be a string."),0===e.length)throw new s.__("Expected name to be a non-empty string.");for(var t=1;t<e.length;++t)if(!(0,M.HQ)(e.charCodeAt(t)))throw new s.__('Names must only contain [_a-zA-Z0-9] but "'.concat(e,'" does not.'));if(!(0,M.LQ)(e.charCodeAt(0)))throw new s.__('Names must start with [_a-zA-Z] but "'.concat(e,'" does not.'));return e}function j(e){if("true"===e||"false"===e||"null"===e)throw new s.__("Enum values cannot be named: ".concat(e));return R(e)}function P(e){return V(e)||Z(e)||q(e)||U(e)||B(e)||z(e)||H(e)||G(e)}function V(e){return(0,b.n)(e,se)}function Z(e){return(0,b.n)(e,ue)}function q(e){return(0,b.n)(e,me)}function U(e){return(0,b.n)(e,ge)}function B(e){return(0,b.n)(e,be)}function z(e){return(0,b.n)(e,Ee)}function H(e){return(0,b.n)(e,$)}function G(e){return(0,b.n)(e,K)}function W(e){return V(e)||B(e)||z(e)||ee(e)&&W(e.ofType)}function Q(e){return V(e)||Z(e)||q(e)||U(e)||B(e)||ee(e)&&Q(e.ofType)}function X(e){return V(e)||B(e)}function J(e){return Z(e)||q(e)||U(e)}function Y(e){return q(e)||U(e)}var $=function(e){function t(e){(0,f.Z)(this,t),P(e)||(0,a.a)(!1,"Expected ".concat((0,d.X)(e)," to be a GraphQL type.")),this.ofType=e}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLList"}},{key:"toString",value:function(){return"["+String(this.ofType)+"]"}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),K=function(e){function t(e){(0,f.Z)(this,t),te(e)||(0,a.a)(!1,"Expected ".concat((0,d.X)(e)," to be a GraphQL nullable type.")),this.ofType=e}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLNonNull"}},{key:"toString",value:function(){return String(this.ofType)+"!"}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function ee(e){return H(e)||G(e)}function te(e){return P(e)&&!G(e)}function ne(e){if(e)return G(e)?e.ofType:e}function re(e){return V(e)||Z(e)||q(e)||U(e)||B(e)||z(e)}function ie(e){if(e){for(var t=e;ee(t);)t=t.ofType;return t}}function oe(e){return"function"===typeof e?e():e}function ae(e){return"function"===typeof e?e():e}var se=function(e){function t(e){var n,r,i,o;(0,f.Z)(this,t);var s=null!==(n=e.parseValue)&&void 0!==n?n:y;this.name=R(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(r=e.serialize)&&void 0!==r?r:y,this.parseValue=s,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:function(e,t){return s(F(e,t))},this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"===typeof e.specifiedByURL||(0,a.a)(!1,"".concat(this.name,' must provide "specifiedByURL" as a string, ')+"but got: ".concat((0,d.X)(e.specifiedByURL),".")),null==e.serialize||"function"===typeof e.serialize||(0,a.a)(!1,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,a.a)(!1,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLScalarType"}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),ue=function(e){function t(e){var n;(0,f.Z)(this,t),this.name=R(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=function(){return le(e)},this._interfaces=function(){return ce(e)},null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,a.a)(!1,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,d.X)(e.isTypeOf),"."))}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLObjectType"}},{key:"getFields",value:function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}},{key:"getInterfaces",value:function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:de(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function ce(e){var t,n=oe(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,a.a)(!1,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function le(e){var t=ae(e.fields);return pe(t)||(0,a.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),T(t,(function(t,n){var r;pe(t)||(0,a.a)(!1,"".concat(e.name,".").concat(n," field config must be an object.")),null==t.resolve||"function"===typeof t.resolve||(0,a.a)(!1,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,d.X)(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};return pe(i)||(0,a.a)(!1,"".concat(e.name,".").concat(n," args must be an object with argument names as keys.")),{name:R(n),description:t.description,type:t.type,args:fe(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:I(t.extensions),astNode:t.astNode}}))}function fe(e){return Object.entries(e).map((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return{name:R(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:I(r.extensions),astNode:r.astNode}}))}function pe(e){return(0,_.y)(e)&&!Array.isArray(e)}function de(e){return T(e,(function(e){return{description:e.description,type:e.type,args:he(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function he(e){return k(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ve(e){return G(e.type)&&void 0===e.defaultValue}var me=function(e){function t(e){var n;(0,f.Z)(this,t),this.name=R(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=le.bind(void 0,e),this._interfaces=ce.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,a.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,d.X)(e.resolveType),"."))}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLInterfaceType"}},{key:"getFields",value:function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}},{key:"getInterfaces",value:function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:de(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),ge=function(e){function t(e){var n;(0,f.Z)(this,t),this.name=R(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._types=ye.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,a.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,d.X)(e.resolveType),"."))}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLUnionType"}},{key:"getTypes",value:function(){return"function"===typeof this._types&&(this._types=this._types()),this._types}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function ye(e){var t=oe(e.types);return Array.isArray(t)||(0,a.a)(!1,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var be=function(e){function t(e){var n,r,i;(0,f.Z)(this,t),this.name=R(e.name),this.description=e.description,this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._values=(r=this.name,pe(i=e.values)||(0,a.a)(!1,"".concat(r," values must be an object with value names as keys.")),Object.entries(i).map((function(e){var t=(0,v.Z)(e,2),n=t[0],i=t[1];return pe(i)||(0,a.a)(!1,"".concat(r,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,d.X)(i),".")),{name:j(n),description:i.description,value:void 0!==i.value?i.value:n,deprecationReason:i.deprecationReason,extensions:I(i.extensions),astNode:i.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=E(this._values,(function(e){return e.name}))}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLEnumType"}},{key:"getValues",value:function(){return this._values}},{key:"getValue",value:function(e){return this._nameLookup[e]}},{key:"serialize",value:function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new s.__('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,d.X)(e)));return t.name}},{key:"parseValue",value:function(e){if("string"!==typeof e){var t=(0,d.X)(e);throw new s.__('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+_e(this,t))}var n=this.getValue(e);if(null==n)throw new s.__('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+_e(this,e));return n.value}},{key:"parseLiteral",value:function(e,t){if(e.kind!==D.h.ENUM){var n=(0,L.print)(e);throw new s.__('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+_e(this,n),{nodes:e})}var r=this.getValue(e.value);if(null==r){var i=(0,L.print)(e);throw new s.__('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+_e(this,i),{nodes:e})}return r.value}},{key:"toConfig",value:function(){var e=k(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function _e(e,t){return g("the enum value",N(t,e.getValues().map((function(e){return e.name}))))}var Ee=function(e){function t(e){var n;(0,f.Z)(this,t),this.name=R(e.name),this.description=e.description,this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=ke.bind(void 0,e)}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLInputObjectType"}},{key:"getFields",value:function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}},{key:"toConfig",value:function(){var e=T(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}},{key:"toString",value:function(){return this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag);function ke(e){var t=ae(e.fields);return pe(t)||(0,a.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),T(t,(function(t,n){return!("resolve"in t)||(0,a.a)(!1,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:R(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:I(t.extensions),astNode:t.astNode}}))}function Te(e){return G(e.type)&&void 0===e.defaultValue}function we(e,t){return e===t||(G(e)&&G(t)||!(!H(e)||!H(t)))&&we(e.ofType,t.ofType)}function xe(e,t,n){return t===n||(G(n)?!!G(t)&&xe(e,t.ofType,n.ofType):G(t)?xe(e,t.ofType,n):H(n)?!!H(t)&&xe(e,t.ofType,n.ofType):!H(t)&&(Y(n)&&(q(t)||Z(t))&&e.isSubType(n,t)))}function Se(e,t,n){return t===n||(Y(t)?Y(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!Y(n)&&e.isSubType(n,t))}var Ce=n(40588),Ne=2147483647,Ae=-2147483648,Oe=new se({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=Re(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isInteger(n))throw new s.__("Int cannot represent non-integer value: ".concat((0,d.X)(t)));if(n>Ne||n<Ae)throw new s.__("Int cannot represent non 32-bit signed integer value: "+(0,d.X)(t));return n},parseValue:function(e){if("number"!==typeof e||!Number.isInteger(e))throw new s.__("Int cannot represent non-integer value: ".concat((0,d.X)(e)));if(e>Ne||e<Ae)throw new s.__("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==D.h.INT)throw new s.__("Int cannot represent non-integer value: ".concat((0,L.print)(e)),{nodes:e});var t=parseInt(e.value,10);if(t>Ne||t<Ae)throw new s.__("Int cannot represent non 32-bit signed integer value: ".concat(e.value),{nodes:e});return t}}),Ie=new se({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=Re(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isFinite(n))throw new s.__("Float cannot represent non numeric value: ".concat((0,d.X)(t)));return n},parseValue:function(e){if("number"!==typeof e||!Number.isFinite(e))throw new s.__("Float cannot represent non numeric value: ".concat((0,d.X)(e)));return e},parseLiteral:function(e){if(e.kind!==D.h.FLOAT&&e.kind!==D.h.INT)throw new s.__("Float cannot represent non numeric value: ".concat((0,L.print)(e)),e);return parseFloat(e.value)}}),De=new se({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=Re(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if("number"===typeof t&&Number.isFinite(t))return t.toString();throw new s.__("String cannot represent value: ".concat((0,d.X)(e)))},parseValue:function(e){if("string"!==typeof e)throw new s.__("String cannot represent a non string value: ".concat((0,d.X)(e)));return e},parseLiteral:function(e){if(e.kind!==D.h.STRING)throw new s.__("String cannot represent a non string value: ".concat((0,L.print)(e)),{nodes:e});return e.value}}),Le=new se({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=Re(e);if("boolean"===typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new s.__("Boolean cannot represent a non boolean value: ".concat((0,d.X)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new s.__("Boolean cannot represent a non boolean value: ".concat((0,d.X)(e)));return e},parseLiteral:function(e){if(e.kind!==D.h.BOOLEAN)throw new s.__("Boolean cannot represent a non boolean value: ".concat((0,L.print)(e)),{nodes:e});return e.value}}),Fe=new se({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=Re(e);if("string"===typeof t)return t;if(Number.isInteger(t))return String(t);throw new s.__("ID cannot represent value: ".concat((0,d.X)(e)))},parseValue:function(e){if("string"===typeof e)return e;if("number"===typeof e&&Number.isInteger(e))return e.toString();throw new s.__("ID cannot represent value: ".concat((0,d.X)(e)))},parseLiteral:function(e){if(e.kind!==D.h.STRING&&e.kind!==D.h.INT)throw new s.__("ID cannot represent a non-string and non-integer value: "+(0,L.print)(e),{nodes:e});return e.value}}),Me=Object.freeze([De,Oe,Ie,Le,Fe]);function Re(e){if((0,_.y)(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!(0,_.y)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}function je(e){return(0,b.n)(e,Pe)}var Pe=function(e){function t(e){var n,r;(0,f.Z)(this,t),this.name=R(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(n=e.isRepeatable)&&void 0!==n&&n,this.extensions=I(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,a.a)(!1,"@".concat(e.name," locations must be an Array."));var i=null!==(r=e.args)&&void 0!==r?r:{};(0,_.y)(i)&&!Array.isArray(i)||(0,a.a)(!1,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=fe(i)}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLDirective"}},{key:"toConfig",value:function(){return{name:this.name,description:this.description,locations:this.locations,args:he(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}},{key:"toString",value:function(){return"@"+this.name}},{key:"toJSON",value:function(){return this.toString()}}]),t}(Symbol.toStringTag),Ve=new Pe({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ce.B.FIELD,Ce.B.FRAGMENT_SPREAD,Ce.B.INLINE_FRAGMENT],args:{if:{type:new K(Le),description:"Included when true."}}}),Ze=new Pe({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ce.B.FIELD,Ce.B.FRAGMENT_SPREAD,Ce.B.INLINE_FRAGMENT],args:{if:{type:new K(Le),description:"Skipped when true."}}}),qe=new Pe({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ce.B.FIELD_DEFINITION,Ce.B.ARGUMENT_DEFINITION,Ce.B.INPUT_FIELD_DEFINITION,Ce.B.ENUM_VALUE],args:{reason:{type:De,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),Ue=new Pe({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ce.B.SCALAR],args:{url:{type:new K(De),description:"The URL that specifies the behavior of this scalar."}}}),Be=Object.freeze([Ve,Ze,qe,Ue]);var ze=n(66297);function He(e){return"object"===typeof e&&"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}function Ge(e,t){if(G(t)){var n=Ge(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===D.h.NULL?null:n}if(null===e)return{kind:D.h.NULL};if(void 0===e)return null;if(H(t)){var r=t.ofType;if(He(e)){var i,o=[],a=(0,c.Z)(e);try{for(a.s();!(i=a.n()).done;){var s=Ge(i.value,r);null!=s&&o.push(s)}}catch(g){a.e(g)}finally{a.f()}return{kind:D.h.LIST,values:o}}return Ge(e,r)}if(z(t)){if(!(0,_.y)(e))return null;for(var u=[],l=0,f=Object.values(t.getFields());l<f.length;l++){var p=f[l],h=Ge(e[p.name],p.type);h&&u.push({kind:D.h.OBJECT_FIELD,name:{kind:D.h.NAME,value:p.name},value:h})}return{kind:D.h.OBJECT,fields:u}}if(X(t)){var v=t.serialize(e);if(null==v)return null;if("boolean"===typeof v)return{kind:D.h.BOOLEAN,value:v};if("number"===typeof v&&Number.isFinite(v)){var m=String(v);return Qe.test(m)?{kind:D.h.INT,value:m}:{kind:D.h.FLOAT,value:m}}if("string"===typeof v)return B(t)?{kind:D.h.ENUM,value:v}:t===Fe&&Qe.test(v)?{kind:D.h.INT,value:v}:{kind:D.h.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat((0,d.X)(v),"."))}(0,ze.k)(!1,"Unexpected input type: "+(0,d.X)(t))}var We,Qe=/^-?(?:0|[1-9][0-9]*)$/,Xe=new ue({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:De,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new K(new $(new K($e))),resolve:function(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new K($e),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:$e,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:$e,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new K(new $(new K(Je))),resolve:function(e){return e.getDirectives()}}}}}),Je=new ue({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 K(De),resolve:function(e){return e.name}},description:{type:De,resolve:function(e){return e.description}},isRepeatable:{type:new K(Le),resolve:function(e){return e.isRepeatable}},locations:{type:new K(new $(new K(Ye))),resolve:function(e){return e.locations}},args:{type:new K(new $(new K(et))),args:{includeDeprecated:{type:Le,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),Ye=new be({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:Ce.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ce.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ce.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ce.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ce.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ce.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ce.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ce.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ce.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ce.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ce.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ce.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ce.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ce.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ce.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ce.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ce.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ce.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ce.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),$e=new ue({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 K(nt),resolve:function(e){return V(e)?We.SCALAR:Z(e)?We.OBJECT:q(e)?We.INTERFACE:U(e)?We.UNION:B(e)?We.ENUM:z(e)?We.INPUT_OBJECT:H(e)?We.LIST:G(e)?We.NON_NULL:void(0,ze.k)(!1,'Unexpected type: "'.concat((0,d.X)(e),'".'))}},name:{type:De,resolve:function(e){return"name"in e?e.name:void 0}},description:{type:De,resolve:function(e){return"description"in e?e.description:void 0}},specifiedByURL:{type:De,resolve:function(e){return"specifiedByURL"in e?e.specifiedByURL:void 0}},fields:{type:new $(new K(Ke)),args:{includeDeprecated:{type:Le,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Z(e)||q(e)){var r=Object.values(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new $(new K($e)),resolve:function(e){if(Z(e)||q(e))return e.getInterfaces()}},possibleTypes:{type:new $(new K($e)),resolve:function(e,t,n,r){var i=r.schema;if(Y(e))return i.getPossibleTypes(e)}},enumValues:{type:new $(new K(tt)),args:{includeDeprecated:{type:Le,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(B(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new $(new K(et)),args:{includeDeprecated:{type:Le,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(z(e)){var r=Object.values(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:$e,resolve:function(e){return"ofType"in e?e.ofType:void 0}}}}}),Ke=new ue({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 K(De),resolve:function(e){return e.name}},description:{type:De,resolve:function(e){return e.description}},args:{type:new K(new $(new K(et))),args:{includeDeprecated:{type:Le,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new K($e),resolve:function(e){return e.type}},isDeprecated:{type:new K(Le),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:De,resolve:function(e){return e.deprecationReason}}}}}),et=new ue({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 K(De),resolve:function(e){return e.name}},description:{type:De,resolve:function(e){return e.description}},type:{type:new K($e),resolve:function(e){return e.type}},defaultValue:{type:De,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=Ge(e.defaultValue,t);return n?(0,L.print)(n):null}},isDeprecated:{type:new K(Le),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:De,resolve:function(e){return e.deprecationReason}}}}}),tt=new ue({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 K(De),resolve:function(e){return e.name}},description:{type:De,resolve:function(e){return e.description}},isDeprecated:{type:new K(Le),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:De,resolve:function(e){return e.deprecationReason}}}}});!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(We||(We={}));var nt=new be({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:We.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:We.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:We.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:We.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:We.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:We.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:We.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:We.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),rt={name:"__schema",type:new K(Xe),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},it={name:"__type",type:$e,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new K(De),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ot={name:"__typename",type:new K(De),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},at=Object.freeze([Xe,Je,Ye,$e,Ke,et,tt,nt]);function st(e){return at.some((function(t){var n=t.name;return e.name===n}))}function ut(e){if(!function(e){return(0,b.n)(e,ct)}(e))throw new Error("Expected ".concat((0,d.X)(e)," to be a GraphQL schema."));return e}var ct=function(e){function t(e){var n,r;(0,f.Z)(this,t),this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,_.y)(e)||(0,a.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,a.a)(!1,'"types" must be Array if provided but got: '.concat((0,d.X)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,a.a)(!1,'"directives" must be Array if provided but got: '+"".concat((0,d.X)(e.directives),".")),this.description=e.description,this.extensions=I(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(r=e.directives)&&void 0!==r?r:Be;var i=new Set(e.types);if(null!=e.types){var o,s=(0,c.Z)(e.types);try{for(s.s();!(o=s.n()).done;){var u=o.value;i.delete(u),lt(u,i)}}catch(O){s.e(O)}finally{s.f()}}null!=this._queryType&<(this._queryType,i),null!=this._mutationType&<(this._mutationType,i),null!=this._subscriptionType&<(this._subscriptionType,i);var l,p=(0,c.Z)(this._directives);try{for(p.s();!(l=p.n()).done;){var h=l.value;if(je(h)){var v,m=(0,c.Z)(h.args);try{for(m.s();!(v=m.n()).done;){lt(v.value.type,i)}}catch(O){m.e(O)}finally{m.f()}}}}catch(O){p.e(O)}finally{p.f()}lt(Xe,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);var g,y=(0,c.Z)(i);try{for(y.s();!(g=y.n()).done;){var b=g.value;if(null!=b){var E=b.name;if(E||(0,a.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[E])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(E,'".'));if(this._typeMap[E]=b,q(b)){var k,T=(0,c.Z)(b.getInterfaces());try{for(T.s();!(k=T.n()).done;){var w=k.value;if(q(w)){var x=this._implementationsMap[w.name];void 0===x&&(x=this._implementationsMap[w.name]={objects:[],interfaces:[]}),x.interfaces.push(b)}}}catch(O){T.e(O)}finally{T.f()}}else if(Z(b)){var S,C=(0,c.Z)(b.getInterfaces());try{for(C.s();!(S=C.n()).done;){var N=S.value;if(q(N)){var A=this._implementationsMap[N.name];void 0===A&&(A=this._implementationsMap[N.name]={objects:[],interfaces:[]}),A.objects.push(b)}}}catch(O){C.e(O)}finally{C.f()}}}}}catch(O){y.e(O)}finally{y.f()}}return(0,p.Z)(t,[{key:e,get:function(){return"GraphQLSchema"}},{key:"getQueryType",value:function(){return this._queryType}},{key:"getMutationType",value:function(){return this._mutationType}},{key:"getSubscriptionType",value:function(){return this._subscriptionType}},{key:"getRootType",value:function(e){switch(e){case h.ku.QUERY:return this.getQueryType();case h.ku.MUTATION:return this.getMutationType();case h.ku.SUBSCRIPTION:return this.getSubscriptionType()}}},{key:"getTypeMap",value:function(){return this._typeMap}},{key:"getType",value:function(e){return this.getTypeMap()[e]}},{key:"getPossibleTypes",value:function(e){return U(e)?e.getTypes():this.getImplementations(e).objects}},{key:"getImplementations",value:function(e){var t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}}},{key:"isSubType",value:function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),U(e)){var r,i=(0,c.Z)(e.getTypes());try{for(i.s();!(r=i.n()).done;){n[r.value.name]=!0}}catch(f){i.e(f)}finally{i.f()}}else{var o,a=this.getImplementations(e),s=(0,c.Z)(a.objects);try{for(s.s();!(o=s.n()).done;){n[o.value.name]=!0}}catch(f){s.e(f)}finally{s.f()}var u,l=(0,c.Z)(a.interfaces);try{for(l.s();!(u=l.n()).done;){n[u.value.name]=!0}}catch(f){l.e(f)}finally{l.f()}}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}},{key:"getDirectives",value:function(){return this._directives}},{key:"getDirective",value:function(e){return this.getDirectives().find((function(t){return t.name===e}))}},{key:"toConfig",value:function(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}]),t}(Symbol.toStringTag);function lt(e,t){var n=ie(e);if(!t.has(n))if(t.add(n),U(n)){var r,i=(0,c.Z)(n.getTypes());try{for(i.s();!(r=i.n()).done;){lt(r.value,t)}}catch(v){i.e(v)}finally{i.f()}}else if(Z(n)||q(n)){var o,a=(0,c.Z)(n.getInterfaces());try{for(a.s();!(o=a.n()).done;){lt(o.value,t)}}catch(v){a.e(v)}finally{a.f()}for(var s=0,u=Object.values(n.getFields());s<u.length;s++){var l=u[s];lt(l.type,t);var f,p=(0,c.Z)(l.args);try{for(p.s();!(f=p.n()).done;){lt(f.value.type,t)}}catch(v){p.e(v)}finally{p.f()}}}else if(z(n))for(var d=0,h=Object.values(n.getFields());d<h.length;d++){lt(h[d].type,t)}return t}function ft(e){if(ut(e),e.__validationErrors)return e.__validationErrors;var t=new dt(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!Z(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,d.X)(n),"."),null!==(r=ht(t,h.ku.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!Z(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,d.X)(o),"."),null!==(i=ht(t,h.ku.MUTATION))&&void 0!==i?i:o.astNode);var a,s=t.getSubscriptionType();s&&!Z(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,d.X)(s),"."),null!==(a=ht(t,h.ku.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(t),function(e){var t,n=(0,c.Z)(e.schema.getDirectives());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(je(r)){vt(e,r);var i,o=(0,c.Z)(r.args);try{for(o.s();!(i=o.n()).done;){var a,s=i.value;if(vt(e,s),W(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,d.X)(s.type),"."),s.astNode),ve(s)&&null!=s.deprecationReason)e.reportError("Required argument @".concat(r.name,"(").concat(s.name,":) cannot be deprecated."),[xt(s.astNode),null===(a=s.astNode)||void 0===a?void 0:a.type])}}catch(u){o.e(u)}finally{o.f()}}else e.reportError("Expected directive but got: ".concat((0,d.X)(r),"."),null===r||void 0===r?void 0:r.astNode)}}catch(u){n.e(u)}finally{n.f()}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(!t[o.name]){t[o.name]=!0,r[o.name]=n.length;for(var a=0,s=Object.values(o.getFields());a<s.length;a++){var u=s[a];if(G(u.type)&&z(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var f=n.slice(l),p=f.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(p,'".'),f.map((function(e){return e.astNode})))}n.pop()}}r[o.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,i=Object.values(n);r<i.length;r++){var o=i[r];re(o)?(st(o)||vt(e,o),Z(o)||q(o)?(mt(e,o),gt(e,o)):U(o)?_t(e,o):B(o)?Et(e,o):z(o)&&(kt(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat((0,d.X)(o),"."),o.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function pt(e){var t=ft(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var dt=function(){function e(t){(0,f.Z)(this,e),this._errors=[],this.schema=t}return(0,p.Z)(e,[{key:"reportError",value:function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.__(e,{nodes:n}))}},{key:"getErrors",value:function(){return this._errors}}]),e}();function ht(e,t){var n;return null===(n=[e.astNode].concat((0,l.Z)(e.extensionASTNodes)).flatMap((function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((function(e){return e.operation===t})))||void 0===n?void 0:n.type}function vt(e,t){t.name.startsWith("__")&&e.reportError('Name "'.concat(t.name,'" must not begin with "__", which is reserved by GraphQL introspection.'),t.astNode)}function mt(e,t){var n=Object.values(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),[t.astNode].concat((0,l.Z)(t.extensionASTNodes)));for(var r=0,i=n;r<i.length;r++){var o,a=i[r];if(vt(e,a),!Q(a.type))e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Output Type ")+"but got: ".concat((0,d.X)(a.type),"."),null===(o=a.astNode)||void 0===o?void 0:o.type);var s,u=(0,c.Z)(a.args);try{for(u.s();!(s=u.n()).done;){var f,p,h=s.value,v=h.name;if(vt(e,h),!W(h.type))e.reportError("The type of ".concat(t.name,".").concat(a.name,"(").concat(v,":) must be Input ")+"Type but got: ".concat((0,d.X)(h.type),"."),null===(f=h.astNode)||void 0===f?void 0:f.type);if(ve(h)&&null!=h.deprecationReason)e.reportError("Required argument ".concat(t.name,".").concat(a.name,"(").concat(v,":) cannot be deprecated."),[xt(h.astNode),null===(p=h.astNode)||void 0===p?void 0:p.type])}}catch(m){u.e(m)}finally{u.f()}}}function gt(e,t){var n,r=Object.create(null),i=(0,c.Z)(t.getInterfaces());try{for(i.s();!(n=i.n()).done;){var o=n.value;q(o)?t!==o?r[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),Tt(t,o)):(r[o.name]=!0,bt(e,t,o),yt(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),Tt(t,o)):e.reportError("Type ".concat((0,d.X)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,d.X)(o),"."),Tt(t,o))}}catch(a){i.e(a)}finally{i.f()}}function yt(e,t,n){for(var r=t.getFields(),i=0,o=Object.values(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(u){var f,p;if(!xe(e.schema,u.type,a.type))e.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat((0,d.X)(a.type)," but ").concat(t.name,".").concat(s," ")+"is type ".concat((0,d.X)(u.type),"."),[null===(f=a.astNode)||void 0===f?void 0:f.type,null===(p=u.astNode)||void 0===p?void 0:p.type]);var h,v=(0,c.Z)(a.args);try{var m=function(){var r=h.value,i=r.name,o=u.args.find((function(e){return e.name===i}));if(!o)return e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(i,":) expected but ").concat(t.name,".").concat(s," does not provide it."),[r.astNode,u.astNode]),"continue";we(r.type,o.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(i,":) ")+"expects type ".concat((0,d.X)(r.type)," but ")+"".concat(t.name,".").concat(s,"(").concat(i,":) is type ")+"".concat((0,d.X)(o.type),"."),[null===(g=r.astNode)||void 0===g?void 0:g.type,null===(y=o.astNode)||void 0===y?void 0:y.type])};for(v.s();!(h=v.n()).done;){var g,y;m()}}catch(k){v.e(k)}finally{v.f()}var b,_=(0,c.Z)(u.args);try{var E=function(){var r=b.value,i=r.name;!a.args.find((function(e){return e.name===i}))&&ve(r)&&e.reportError("Object field ".concat(t.name,".").concat(s," includes required argument ").concat(i," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[r.astNode,a.astNode])};for(_.s();!(b=_.n()).done;)E()}catch(k){_.e(k)}finally{_.f()}}else e.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(t.name," does not provide it."),[a.astNode,t.astNode].concat((0,l.Z)(t.extensionASTNodes)))}}function bt(e,t,n){var r,i=t.getInterfaces(),o=(0,c.Z)(n.getInterfaces());try{for(o.s();!(r=o.n()).done;){var a=r.value;i.includes(a)||e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat((0,l.Z)(Tt(n,a)),(0,l.Z)(Tt(t,n))))}}catch(s){o.e(s)}finally{o.f()}}function _t(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),[t.astNode].concat((0,l.Z)(t.extensionASTNodes)));var r,i=Object.create(null),o=(0,c.Z)(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[a.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(a.name," once."),wt(t,a.name)):(i[a.name]=!0,Z(a)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,d.X)(a),"."),wt(t,String(a))))}}catch(s){o.e(s)}finally{o.f()}}function Et(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),[t.astNode].concat((0,l.Z)(t.extensionASTNodes)));var r,i=(0,c.Z)(n);try{for(i.s();!(r=i.n()).done;){vt(e,r.value)}}catch(o){i.e(o)}finally{i.f()}}function kt(e,t){var n=Object.values(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),[t.astNode].concat((0,l.Z)(t.extensionASTNodes)));for(var r=0,i=n;r<i.length;r++){var o,a,s=i[r];if(vt(e,s),!W(s.type))e.reportError("The type of ".concat(t.name,".").concat(s.name," must be Input Type ")+"but got: ".concat((0,d.X)(s.type),"."),null===(o=s.astNode)||void 0===o?void 0:o.type);if(Te(s)&&null!=s.deprecationReason)e.reportError("Required input field ".concat(t.name,".").concat(s.name," cannot be deprecated."),[xt(s.astNode),null===(a=s.astNode)||void 0===a?void 0:a.type])}}function Tt(e,t){var n=e.astNode,r=e.extensionASTNodes;return(null!=n?[n].concat((0,l.Z)(r)):r).flatMap((function(e){var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((function(e){return e.name.value===t.name}))}function wt(e,t){var n=e.astNode,r=e.extensionASTNodes;return(null!=n?[n].concat((0,l.Z)(r)):r).flatMap((function(e){var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((function(e){return e.name.value===t}))}function xt(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return e.name.value===qe.name}))}function St(e,t){switch(t.kind){case D.h.LIST_TYPE:var n=St(e,t.type);return n&&new $(n);case D.h.NON_NULL_TYPE:var r=St(e,t.type);return r&&new K(r);case D.h.NAMED_TYPE:return e.getType(t.name.value)}}var Ct=function(e){function t(e,n,r){(0,f.Z)(this,t),this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==r&&void 0!==r?r:Nt,n&&(W(n)&&this._inputTypeStack.push(n),J(n)&&this._parentTypeStack.push(n),Q(n)&&this._typeStack.push(n))}return(0,p.Z)(t,[{key:e,get:function(){return"TypeInfo"}},{key:"getType",value:function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}},{key:"getParentType",value:function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}},{key:"getInputType",value:function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}},{key:"getParentInputType",value:function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}},{key:"getFieldDef",value:function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}},{key:"getDefaultValue",value:function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}},{key:"getDirective",value:function(){return this._directive}},{key:"getArgument",value:function(){return this._argument}},{key:"getEnumValue",value:function(){return this._enumValue}},{key:"enter",value:function(e){var t=this._schema;switch(e.kind){case D.h.SELECTION_SET:var n=ie(this.getType());this._parentTypeStack.push(J(n)?n:void 0);break;case D.h.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(Q(i)?i:void 0);break;case D.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case D.h.OPERATION_DEFINITION:var a=t.getRootType(e.operation);this._typeStack.push(Z(a)?a:void 0);break;case D.h.INLINE_FRAGMENT:case D.h.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?St(t,s):ie(this.getType());this._typeStack.push(Q(u)?u:void 0);break;case D.h.VARIABLE_DEFINITION:var c=St(t,e.type);this._inputTypeStack.push(W(c)?c:void 0);break;case D.h.ARGUMENT:var l,f,p,d=null!==(l=this.getDirective())&&void 0!==l?l:this.getFieldDef();d&&(f=d.args.find((function(t){return t.name===e.name.value})))&&(p=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(W(p)?p:void 0);break;case D.h.LIST:var h=ne(this.getInputType()),v=H(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(W(v)?v:void 0);break;case D.h.OBJECT_FIELD:var m,g,y=ie(this.getInputType());z(y)&&(g=y.getFields()[e.name.value])&&(m=g.type),this._defaultValueStack.push(g?g.defaultValue:void 0),this._inputTypeStack.push(W(m)?m:void 0);break;case D.h.ENUM:var b,_=ie(this.getInputType());B(_)&&(b=_.getValue(e.value)),this._enumValue=b}}},{key:"leave",value:function(e){switch(e.kind){case D.h.SELECTION_SET:this._parentTypeStack.pop();break;case D.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case D.h.DIRECTIVE:this._directive=null;break;case D.h.OPERATION_DEFINITION:case D.h.INLINE_FRAGMENT:case D.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case D.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case D.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case D.h.LIST:case D.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case D.h.ENUM:this._enumValue=null}}}]),t}(Symbol.toStringTag);function Nt(e,t,n){var r=n.name.value;return r===rt.name&&e.getQueryType()===t?rt:r===it.name&&e.getQueryType()===t?it:r===ot.name&&J(t)?ot:Z(t)||q(t)?t.getFields()[r]:void 0}function At(e,t){return{enter:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r[0];e.enter(o);var a=(0,u.Eu)(t,o.kind).enter;if(a){var s=a.apply(t,r);return void 0!==s&&(e.leave(o),(0,h.UG)(s)&&e.enter(s)),s}},leave:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o,a=r[0],s=(0,u.Eu)(t,a.kind).leave;return s&&(o=s.apply(t,r)),e.leave(a),o}}}function Ot(e){return e.kind===D.h.OPERATION_DEFINITION||e.kind===D.h.FRAGMENT_DEFINITION}function It(e){return e.kind===D.h.SCHEMA_DEFINITION||Dt(e)||e.kind===D.h.DIRECTIVE_DEFINITION}function Dt(e){return e.kind===D.h.SCALAR_TYPE_DEFINITION||e.kind===D.h.OBJECT_TYPE_DEFINITION||e.kind===D.h.INTERFACE_TYPE_DEFINITION||e.kind===D.h.UNION_TYPE_DEFINITION||e.kind===D.h.ENUM_TYPE_DEFINITION||e.kind===D.h.INPUT_OBJECT_TYPE_DEFINITION}function Lt(e){return e.kind===D.h.SCHEMA_EXTENSION||Ft(e)}function Ft(e){return e.kind===D.h.SCALAR_TYPE_EXTENSION||e.kind===D.h.OBJECT_TYPE_EXTENSION||e.kind===D.h.INTERFACE_TYPE_EXTENSION||e.kind===D.h.UNION_TYPE_EXTENSION||e.kind===D.h.ENUM_TYPE_EXTENSION||e.kind===D.h.INPUT_OBJECT_TYPE_EXTENSION}var Mt=n(33028);function Rt(e){var t,n=Object.create(null),r=e.getSchema(),i=r?r.getDirectives():Be,o=(0,c.Z)(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;n[a.name]=a.args.map((function(e){return e.name}))}}catch(v){o.e(v)}finally{o.f()}var u,l=e.getDocument().definitions,f=(0,c.Z)(l);try{for(f.s();!(u=f.n()).done;){var p=u.value;if(p.kind===D.h.DIRECTIVE_DEFINITION){var d,h=null!==(d=p.arguments)&&void 0!==d?d:[];n[p.name.value]=h.map((function(e){return e.name.value}))}}}catch(v){f.e(v)}finally{f.f()}return{Directive:function(t){var r=t.name.value,i=n[r];if(t.arguments&&i){var o,a=(0,c.Z)(t.arguments);try{for(a.s();!(o=a.n()).done;){var u=o.value,l=u.name.value;if(!i.includes(l)){var f=N(l,i);e.reportError(new s.__('Unknown argument "'.concat(l,'" on directive "@').concat(r,'".')+g(f),{nodes:u}))}}}catch(v){a.e(v)}finally{a.f()}}return!1}}}function jt(e){var t,n=Object.create(null),r=e.getSchema(),i=r?r.getDirectives():Be,o=(0,c.Z)(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;n[a.name]=a.locations}}catch(v){o.e(v)}finally{o.f()}var u,l=e.getDocument().definitions,f=(0,c.Z)(l);try{for(f.s();!(u=f.n()).done;){var p=u.value;p.kind===D.h.DIRECTIVE_DEFINITION&&(n[p.name.value]=p.locations.map((function(e){return e.value})))}}catch(v){f.e(v)}finally{f.f()}return{Directive:function(t,r,i,o,a){var u=t.name.value,c=n[u];if(c){var l=function(e){var t=e[e.length-1];switch("kind"in t||(0,ze.k)(!1),t.kind){case D.h.OPERATION_DEFINITION:return function(e){switch(e){case h.ku.QUERY:return Ce.B.QUERY;case h.ku.MUTATION:return Ce.B.MUTATION;case h.ku.SUBSCRIPTION:return Ce.B.SUBSCRIPTION}}(t.operation);case D.h.FIELD:return Ce.B.FIELD;case D.h.FRAGMENT_SPREAD:return Ce.B.FRAGMENT_SPREAD;case D.h.INLINE_FRAGMENT:return Ce.B.INLINE_FRAGMENT;case D.h.FRAGMENT_DEFINITION:return Ce.B.FRAGMENT_DEFINITION;case D.h.VARIABLE_DEFINITION:return Ce.B.VARIABLE_DEFINITION;case D.h.SCHEMA_DEFINITION:case D.h.SCHEMA_EXTENSION:return Ce.B.SCHEMA;case D.h.SCALAR_TYPE_DEFINITION:case D.h.SCALAR_TYPE_EXTENSION:return Ce.B.SCALAR;case D.h.OBJECT_TYPE_DEFINITION:case D.h.OBJECT_TYPE_EXTENSION:return Ce.B.OBJECT;case D.h.FIELD_DEFINITION:return Ce.B.FIELD_DEFINITION;case D.h.INTERFACE_TYPE_DEFINITION:case D.h.INTERFACE_TYPE_EXTENSION:return Ce.B.INTERFACE;case D.h.UNION_TYPE_DEFINITION:case D.h.UNION_TYPE_EXTENSION:return Ce.B.UNION;case D.h.ENUM_TYPE_DEFINITION:case D.h.ENUM_TYPE_EXTENSION:return Ce.B.ENUM;case D.h.ENUM_VALUE_DEFINITION:return Ce.B.ENUM_VALUE;case D.h.INPUT_OBJECT_TYPE_DEFINITION:case D.h.INPUT_OBJECT_TYPE_EXTENSION:return Ce.B.INPUT_OBJECT;case D.h.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return"kind"in n||(0,ze.k)(!1),n.kind===D.h.INPUT_OBJECT_TYPE_DEFINITION?Ce.B.INPUT_FIELD_DEFINITION:Ce.B.ARGUMENT_DEFINITION;default:(0,ze.k)(!1,"Unexpected kind: "+(0,d.X)(t.kind))}}(a);l&&!c.includes(l)&&e.reportError(new s.__('Directive "@'.concat(u,'" may not be used on ').concat(l,"."),{nodes:t}))}else e.reportError(new s.__('Unknown directive "@'.concat(u,'".'),{nodes:t}))}}}function Pt(e){var t,n=e.getSchema(),r=n?n.getTypeMap():Object.create(null),i=Object.create(null),o=(0,c.Z)(e.getDocument().definitions);try{for(o.s();!(t=o.n()).done;){var a=t.value;Dt(a)&&(i[a.name.value]=!0)}}catch(f){o.e(f)}finally{o.f()}var u=[].concat((0,l.Z)(Object.keys(r)),(0,l.Z)(Object.keys(i)));return{NamedType:function(t,n,o,a,c){var l,f=t.name.value;if(!r[f]&&!i[f]){var p,d=null!==(p=c[2])&&void 0!==p?p:o,h=null!=d&&("kind"in(l=d)&&(It(l)||Lt(l)));if(h&&Vt.includes(f))return;var v=N(f,h?Vt.concat(u):u);e.reportError(new s.__('Unknown type "'.concat(f,'".')+g(v),{nodes:t}))}}}}var Vt=[].concat((0,l.Z)(Me),(0,l.Z)(at)).map((function(e){return e.name}));function Zt(e){switch(e.kind){case D.h.OBJECT:return(0,Mt.Z)((0,Mt.Z)({},e),{},{fields:(t=e.fields,t.map((function(e){return(0,Mt.Z)((0,Mt.Z)({},e),{},{value:Zt(e.value)})})).sort((function(e,t){return w(e.name.value,t.name.value)})))});case D.h.LIST:return(0,Mt.Z)((0,Mt.Z)({},e),{},{values:e.values.map(Zt)});case D.h.INT:case D.h.FLOAT:case D.h.STRING:case D.h.BOOLEAN:case D.h.NULL:case D.h.ENUM:case D.h.VARIABLE:return e}var t}function qt(e){return Array.isArray(e)?e.map((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return'subfields "'.concat(n,'" conflict because ')+qt(r)})).join(" and "):e}function Ut(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=Xt(e,n,s),l=(0,v.Z)(u,2),f=l[0],p=l[1];if(o!==f){zt(e,t,n,r,i,o,f);var d,h=(0,c.Z)(p);try{for(h.s();!(d=h.n()).done;){var m=d.value;r.has(m,a,i)||(r.add(m,a,i),Ut(e,t,n,r,i,o,m))}}catch(g){h.e(g)}finally{h.f()}}}}function Bt(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var l=Xt(e,n,s),f=(0,v.Z)(l,2),p=f[0],d=f[1],h=Xt(e,n,u),m=(0,v.Z)(h,2),g=m[0],y=m[1];zt(e,t,n,r,i,p,g);var b,_=(0,c.Z)(y);try{for(_.s();!(b=_.n()).done;){Bt(e,t,n,r,i,o,b.value)}}catch(T){_.e(T)}finally{_.f()}var E,k=(0,c.Z)(d);try{for(k.s();!(E=k.n()).done;){Bt(e,t,n,r,i,E.value,a)}}catch(T){k.e(T)}finally{k.f()}}}}function zt(e,t,n,r,i,o,a){for(var s=0,u=Object.entries(o);s<u.length;s++){var l=(0,v.Z)(u[s],2),f=l[0],p=l[1],d=a[f];if(d){var h,m=(0,c.Z)(p);try{for(m.s();!(h=m.n()).done;){var g,y=h.value,b=(0,c.Z)(d);try{for(b.s();!(g=b.n()).done;){var _=Ht(e,n,r,i,f,y,g.value);_&&t.push(_)}}catch(E){b.e(E)}finally{b.f()}}}catch(E){m.e(E)}finally{m.f()}}}}function Ht(e,t,n,r,i,o,a){var s=(0,v.Z)(o,3),u=s[0],f=s[1],p=s[2],h=(0,v.Z)(a,3),m=h[0],g=h[1],y=h[2],b=r||u!==m&&Z(u)&&Z(m);if(!b){var _=f.name.value,E=g.name.value;if(_!==E)return[[i,'"'.concat(_,'" and "').concat(E,'" are different fields')],[f],[g]];if(Gt(f)!==Gt(g))return[[i,"they have differing arguments"],[f],[g]]}var k=null===p||void 0===p?void 0:p.type,T=null===y||void 0===y?void 0:y.type;if(k&&T&&Wt(k,T))return[[i,'they return conflicting types "'.concat((0,d.X)(k),'" and "').concat((0,d.X)(T),'"')],[f],[g]];var w=f.selectionSet,x=g.selectionSet;if(w&&x){var S=function(e,t,n,r,i,o,a,s){var u=[],l=Qt(e,t,i,o),f=(0,v.Z)(l,2),p=f[0],d=f[1],h=Qt(e,t,a,s),m=(0,v.Z)(h,2),g=m[0],y=m[1];zt(e,u,t,n,r,p,g);var b,_=(0,c.Z)(y);try{for(_.s();!(b=_.n()).done;)Ut(e,u,t,n,r,p,b.value)}catch(N){_.e(N)}finally{_.f()}var E,k=(0,c.Z)(d);try{for(k.s();!(E=k.n()).done;)Ut(e,u,t,n,r,g,E.value)}catch(N){k.e(N)}finally{k.f()}var T,w=(0,c.Z)(d);try{for(w.s();!(T=w.n()).done;){var x,S=T.value,C=(0,c.Z)(y);try{for(C.s();!(x=C.n()).done;)Bt(e,u,t,n,r,S,x.value)}catch(N){C.e(N)}finally{C.f()}}}catch(N){w.e(N)}finally{w.f()}return u}(e,t,n,b,ie(k),w,ie(T),x);return function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return(0,v.Z)(e,1)[0]}))],[n].concat((0,l.Z)(e.map((function(e){return(0,v.Z)(e,2)[1]})).flat())),[r].concat((0,l.Z)(e.map((function(e){return(0,v.Z)(e,3)[2]})).flat()))]}(S,i,f,g)}}function Gt(e){var t,n=null!==(t=e.arguments)&&void 0!==t?t:[],r={kind:D.h.OBJECT,fields:n.map((function(e){return{kind:D.h.OBJECT_FIELD,name:e.name,value:e.value}}))};return(0,L.print)(Zt(r))}function Wt(e,t){return H(e)?!H(t)||Wt(e.ofType,t.ofType):!!H(t)||(G(e)?!G(t)||Wt(e.ofType,t.ofType):!!G(t)||!(!X(e)&&!X(t))&&e!==t)}function Qt(e,t,n,r){var i=t.get(r);if(i)return i;var o=Object.create(null),a=Object.create(null);Jt(e,n,r,o,a);var s=[o,Object.keys(a)];return t.set(r,s),s}function Xt(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=St(e.getSchema(),n.typeCondition);return Qt(e,t,i,n.selectionSet)}function Jt(e,t,n,r,i){var o,a=(0,c.Z)(n.selections);try{for(a.s();!(o=a.n()).done;){var s=o.value;switch(s.kind){case D.h.FIELD:var u=s.name.value,l=void 0;(Z(t)||q(t))&&(l=t.getFields()[u]);var f=s.alias?s.alias.value:u;r[f]||(r[f]=[]),r[f].push([t,s,l]);break;case D.h.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case D.h.INLINE_FRAGMENT:var p=s.typeCondition,d=p?St(e.getSchema(),p):t;Jt(e,d,s.selectionSet,r,i)}}}catch(h){a.e(h)}finally{a.f()}}var Yt=function(){function e(){(0,f.Z)(this,e),this._data=new Map}return(0,p.Z)(e,[{key:"has",value:function(e,t,n){var r,i=e<t?[e,t]:[t,e],o=(0,v.Z)(i,2),a=o[0],s=o[1],u=null===(r=this._data.get(a))||void 0===r?void 0:r.get(s);return void 0!==u&&(!!n||n===u)}},{key:"add",value:function(e,t,n){var r=e<t?[e,t]:[t,e],i=(0,v.Z)(r,2),o=i[0],a=i[1],s=this._data.get(o);void 0===s?this._data.set(o,new Map([[a,n]])):s.set(a,n)}}]),e}();var $t,Kt=n(56666);var en=($t={},(0,Kt.Z)($t,D.h.SCALAR_TYPE_DEFINITION,D.h.SCALAR_TYPE_EXTENSION),(0,Kt.Z)($t,D.h.OBJECT_TYPE_DEFINITION,D.h.OBJECT_TYPE_EXTENSION),(0,Kt.Z)($t,D.h.INTERFACE_TYPE_DEFINITION,D.h.INTERFACE_TYPE_EXTENSION),(0,Kt.Z)($t,D.h.UNION_TYPE_DEFINITION,D.h.UNION_TYPE_EXTENSION),(0,Kt.Z)($t,D.h.ENUM_TYPE_DEFINITION,D.h.ENUM_TYPE_EXTENSION),(0,Kt.Z)($t,D.h.INPUT_OBJECT_TYPE_DEFINITION,D.h.INPUT_OBJECT_TYPE_EXTENSION),$t);function tn(e){var t,n,r=Object.create(null),i=e.getSchema(),o=null!==(t=null===i||void 0===i?void 0:i.getDirectives())&&void 0!==t?t:Be,a=(0,c.Z)(o);try{for(a.s();!(n=a.n()).done;){var u=n.value;r[u.name]=E(u.args.filter(ve),(function(e){return e.name}))}}catch(y){a.e(y)}finally{a.f()}var l,f=e.getDocument().definitions,p=(0,c.Z)(f);try{for(p.s();!(l=p.n()).done;){var h=l.value;if(h.kind===D.h.DIRECTIVE_DEFINITION){var m,g=null!==(m=h.arguments)&&void 0!==m?m:[];r[h.name.value]=E(g.filter(nn),(function(e){return e.name.value}))}}}catch(y){p.e(y)}finally{p.f()}return{Directive:{leave:function(t){var n=t.name.value,i=r[n];if(i)for(var o,a=null!==(o=t.arguments)&&void 0!==o?o:[],u=new Set(a.map((function(e){return e.name.value}))),c=0,l=Object.entries(i);c<l.length;c++){var f=(0,v.Z)(l[c],2),p=f[0],h=f[1];if(!u.has(p)){var m=P(h.type)?(0,d.X)(h.type):(0,L.print)(h.type);e.reportError(new s.__('Directive "@'.concat(n,'" argument "').concat(p,'" of type "').concat(m,'" is required, but it was not provided.'),{nodes:t}))}}}}}}function nn(e){return e.type.kind===D.h.NON_NULL_TYPE&&null==e.defaultValue}function rn(e){return e.map((function(e){return"number"===typeof e?"["+e.toString()+"]":"."+e})).join("")}function on(e,t,n){return{prev:e,key:t,typename:n}}function an(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function sn(e,t){return cn(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:un,void 0)}function un(e,t,n){var r="Invalid value "+(0,d.X)(t);throw e.length>0&&(r+=' at "value'.concat(rn(e),'"')),n.message=r+": "+n.message,n}function cn(e,t,n,r){if(G(t))return null!=e?cn(e,t.ofType,n,r):void n(an(r),e,new s.__('Expected non-nullable type "'.concat((0,d.X)(t),'" not to be null.')));if(null==e)return null;if(H(t)){var i=t.ofType;return He(e)?Array.from(e,(function(e,t){var o=on(r,t,void 0);return cn(e,i,n,o)})):[cn(e,i,n,r)]}if(z(t)){if(!(0,_.y)(e))return void n(an(r),e,new s.__('Expected type "'.concat(t.name,'" to be an object.')));for(var o={},a=t.getFields(),u=0,c=Object.values(a);u<c.length;u++){var l=c[u],f=e[l.name];if(void 0!==f)o[l.name]=cn(f,l.type,n,on(r,l.name,t.name));else if(void 0!==l.defaultValue)o[l.name]=l.defaultValue;else if(G(l.type)){var p=(0,d.X)(l.type);n(an(r),e,new s.__('Field "'.concat(l.name,'" of required type "').concat(p,'" was not provided.')))}}for(var h=0,v=Object.keys(e);h<v.length;h++){var m=v[h];if(!a[m]){var y=N(m,Object.keys(t.getFields()));n(an(r),e,new s.__('Field "'.concat(m,'" is not defined by type "').concat(t.name,'".')+g(y)))}}return o}if(X(t)){var b;try{b=t.parseValue(e)}catch(E){return void(E instanceof s.__?n(an(r),e,E):n(an(r),e,new s.__('Expected type "'.concat(t.name,'". ')+E.message,{originalError:E})))}return void 0===b&&n(an(r),e,new s.__('Expected type "'.concat(t.name,'".'))),b}(0,ze.k)(!1,"Unexpected input type: "+(0,d.X)(t))}function ln(e,t,n){if(e){if(e.kind===D.h.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&&G(t))return;return i}if(G(t)){if(e.kind===D.h.NULL)return;return ln(e,t.ofType,n)}if(e.kind===D.h.NULL)return null;if(H(t)){var o=t.ofType;if(e.kind===D.h.LIST){var a,s=[],u=(0,c.Z)(e.values);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(fn(l,n)){if(G(o))return;s.push(null)}else{var f=ln(l,o,n);if(void 0===f)return;s.push(f)}}}catch(T){u.e(T)}finally{u.f()}return s}var p=ln(e,o,n);if(void 0===p)return;return[p]}if(z(t)){if(e.kind!==D.h.OBJECT)return;for(var h=Object.create(null),v=E(e.fields,(function(e){return e.name.value})),m=0,g=Object.values(t.getFields());m<g.length;m++){var y=g[m],b=v[y.name];if(b&&!fn(b.value,n)){var _=ln(b.value,y.type,n);if(void 0===_)return;h[y.name]=_}else if(void 0!==y.defaultValue)h[y.name]=y.defaultValue;else if(G(y.type))return}return h}if(X(t)){var k;try{k=t.parseLiteral(e,n)}catch(w){return}if(void 0===k)return;return k}(0,ze.k)(!1,"Unexpected input type: "+(0,d.X)(t))}}function fn(e,t){return e.kind===D.h.VARIABLE&&(null==t||void 0===t[e.name.value])}function pn(e,t,n,r){var i=[],o=null===r||void 0===r?void 0:r.maxErrors;try{var a=function(e,t,n,r){var i,o={},a=(0,c.Z)(t);try{var u=function(){var t=i.value,a=t.variable.name.value,u=St(e,t.type);if(!W(u)){var c=(0,L.print)(t.type);return r(new s.__('Variable "$'.concat(a,'" expected value of type "').concat(c,'" which cannot be used as an input type.'),{nodes:t.type})),"continue"}if(!vn(n,a)){if(t.defaultValue)o[a]=ln(t.defaultValue,u);else if(G(u)){var l=(0,d.X)(u);r(new s.__('Variable "$'.concat(a,'" of required type "').concat(l,'" was not provided.'),{nodes:t}))}return"continue"}var f=n[a];if(null===f&&G(u)){var p=(0,d.X)(u);return r(new s.__('Variable "$'.concat(a,'" of non-null type "').concat(p,'" must not be null.'),{nodes:t})),"continue"}o[a]=sn(f,u,(function(e,n,i){var o='Variable "$'.concat(a,'" got invalid value ')+(0,d.X)(n);e.length>0&&(o+=' at "'.concat(a).concat(rn(e),'"')),r(new s.__(o+"; "+i.message,{nodes:t,originalError:i.originalError}))}))};for(a.s();!(i=a.n()).done;)u()}catch(l){a.e(l)}finally{a.f()}return o}(e,t,n,(function(e){if(null!=o&&i.length>=o)throw new s.__("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(u){i.push(u)}return{errors:i}}function dn(e,t,n){var r,i,o={},a=E(null!==(r=t.arguments)&&void 0!==r?r:[],(function(e){return e.name.value})),u=(0,c.Z)(e.args);try{for(u.s();!(i=u.n()).done;){var l=i.value,f=l.name,p=l.type,h=a[f];if(h){var v=h.value,m=v.kind===D.h.NULL;if(v.kind===D.h.VARIABLE){var g=v.name.value;if(null==n||!vn(n,g)){if(void 0!==l.defaultValue)o[f]=l.defaultValue;else if(G(p))throw new s.__('Argument "'.concat(f,'" of required type "').concat((0,d.X)(p),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),{nodes:v});continue}m=null==n[g]}if(m&&G(p))throw new s.__('Argument "'.concat(f,'" of non-null type "').concat((0,d.X)(p),'" ')+"must not be null.",{nodes:v});var y=ln(v,p,n);if(void 0===y)throw new s.__('Argument "'.concat(f,'" has invalid value ').concat((0,L.print)(v),"."),{nodes:v});o[f]=y}else if(void 0!==l.defaultValue)o[f]=l.defaultValue;else if(G(p))throw new s.__('Argument "'.concat(f,'" of required type "').concat((0,d.X)(p),'" ')+"was not provided.",{nodes:t})}}catch(b){u.e(b)}finally{u.f()}return o}function hn(e,t,n){var r,i=null===(r=t.directives)||void 0===r?void 0:r.find((function(t){return t.name.value===e.name}));if(i)return dn(e,i,n)}function vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mn(e,t,n,r,i){var o=new Map;return gn(e,t,n,r,i,o,new Set),o}function gn(e,t,n,r,i,o,a){var s,u,l=(0,c.Z)(i.selections);try{for(l.s();!(s=l.n()).done;){var f=s.value;switch(f.kind){case D.h.FIELD:if(!yn(n,f))continue;var p=(u=f).alias?u.alias.value:u.name.value,d=o.get(p);void 0!==d?d.push(f):o.set(p,[f]);break;case D.h.INLINE_FRAGMENT:if(!yn(n,f)||!bn(e,f,r))continue;gn(e,t,n,r,f.selectionSet,o,a);break;case D.h.FRAGMENT_SPREAD:var h=f.name.value;if(a.has(h)||!yn(n,f))continue;a.add(h);var v=t[h];if(!v||!bn(e,v,r))continue;gn(e,t,n,r,v.selectionSet,o,a)}}}catch(m){l.e(m)}finally{l.f()}}function yn(e,t){var n=hn(Ze,t,e);if(!0===(null===n||void 0===n?void 0:n.if))return!1;var r=hn(Ve,t,e);return!1!==(null===r||void 0===r?void 0:r.if)}function bn(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=St(e,r);return i===n||!!Y(i)&&e.isSubType(i,n)}function _n(e,t){var n,r=new Map,i=(0,c.Z)(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t(o),s=r.get(a);void 0===s?r.set(a,[o]):s.push(o)}}catch(u){i.e(u)}finally{i.f()}return r}function En(e){return{Field:t,Directive:t};function t(t){var n,r,i=_n(null!==(n=t.arguments)&&void 0!==n?n:[],(function(e){return e.name.value})),o=(0,c.Z)(i);try{for(o.s();!(r=o.n()).done;){var a=(0,v.Z)(r.value,2),u=a[0],l=a[1];l.length>1&&e.reportError(new s.__('There can be only one argument named "'.concat(u,'".'),{nodes:l.map((function(e){return e.name}))}))}}catch(f){o.e(f)}finally{o.f()}}}function kn(e){var t,n=Object.create(null),r=e.getSchema(),i=r?r.getDirectives():Be,o=(0,c.Z)(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;n[a.name]=!a.isRepeatable}}catch(v){o.e(v)}finally{o.f()}var u,l=e.getDocument().definitions,f=(0,c.Z)(l);try{for(f.s();!(u=f.n()).done;){var p=u.value;p.kind===D.h.DIRECTIVE_DEFINITION&&(n[p.name.value]=!p.repeatable)}}catch(v){f.e(v)}finally{f.f()}var d=Object.create(null),h=Object.create(null);return{enter:function(t){if("directives"in t&&t.directives){var r;if(t.kind===D.h.SCHEMA_DEFINITION||t.kind===D.h.SCHEMA_EXTENSION)r=d;else if(Dt(t)||Ft(t)){var i=t.name.value;void 0===(r=h[i])&&(h[i]=r=Object.create(null))}else r=Object.create(null);var o,a=(0,c.Z)(t.directives);try{for(a.s();!(o=a.n()).done;){var u=o.value,l=u.name.value;n[l]&&(r[l]?e.reportError(new s.__('The directive "@'.concat(l,'" can only be used once at this location.'),{nodes:[r[l],u]})):r[l]=u)}}catch(v){a.e(v)}finally{a.f()}}}}}function Tn(e,t){return!!(Z(e)||q(e)||z(e))&&null!=e.getFields()[t]}function wn(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){var e=t.pop();e||(0,ze.k)(!1),n=e}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new s.__('There can be only one input field named "'.concat(r,'".'),{nodes:[n[r],t.name]})):n[r]=t.name}}}function xn(e,t){var n=e.getInputType();if(n){var r=ie(n);if(X(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=(0,d.X)(n);e.reportError(new s.__('Expected value of type "'.concat(i,'", found ').concat((0,L.print)(t),"."),{nodes:t}))}}catch(u){var o=(0,d.X)(n);u instanceof s.__?e.reportError(u):e.reportError(new s.__('Expected value of type "'.concat(o,'", found ').concat((0,L.print)(t),"; ")+u.message,{nodes:t,originalError:u}))}else{var a=(0,d.X)(n);e.reportError(new s.__('Expected value of type "'.concat(a,'", found ').concat((0,L.print)(t),"."),{nodes:t}))}}}function Sn(e,t,n,r,i){return G(r)&&!G(t)?(null!=n&&n.kind!==D.h.NULL||void 0!==i)&&xe(e,t,r.ofType):xe(e,t,r)}var Cn=Object.freeze([function(e){return{Document:function(t){var n,r=(0,c.Z)(t.definitions);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!Ot(i)){var o=i.kind===D.h.SCHEMA_DEFINITION||i.kind===D.h.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new s.__("The ".concat(o," definition is not executable."),{nodes:i}))}}}catch(a){r.e(a)}finally{r.f()}return!1}}},function(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new s.__('There can be only one operation named "'.concat(r.value,'".'),{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}},function(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===D.h.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new s.__("This anonymous operation must be the only defined operation.",{nodes:n}))}}},function(e){return{OperationDefinition:function(t){if("subscription"===t.operation){var n=e.getSchema(),r=n.getSubscriptionType();if(r){var i,o=t.name?t.name.value:null,a=Object.create(null),u=e.getDocument(),f=Object.create(null),p=(0,c.Z)(u.definitions);try{for(p.s();!(i=p.n()).done;){var d=i.value;d.kind===D.h.FRAGMENT_DEFINITION&&(f[d.name.value]=d)}}catch(b){p.e(b)}finally{p.f()}var h=mn(n,f,a,r,t.selectionSet);if(h.size>1){var v=(0,l.Z)(h.values()).slice(1).flat();e.reportError(new s.__(null!=o?'Subscription "'.concat(o,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",{nodes:v}))}var m,g=(0,c.Z)(h.values());try{for(g.s();!(m=g.n()).done;){var y=m.value;y[0].name.value.startsWith("__")&&e.reportError(new s.__(null!=o?'Subscription "'.concat(o,'" must not select an introspection top level field.'):"Anonymous Subscription must not select an introspection top level field.",{nodes:y}))}}catch(b){g.e(b)}finally{g.f()}}}}}},Pt,function(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=St(e.getSchema(),n);if(r&&!J(r)){var i=(0,L.print)(n);e.reportError(new s.__('Fragment cannot condition on non composite type "'.concat(i,'".'),{nodes:n}))}}},FragmentDefinition:function(t){var n=St(e.getSchema(),t.typeCondition);if(n&&!J(n)){var r=(0,L.print)(t.typeCondition);e.reportError(new s.__('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),{nodes:t.typeCondition}))}}}},function(e){return{VariableDefinition:function(t){var n=St(e.getSchema(),t.type);if(void 0!==n&&!W(n)){var r=t.variable.name.value,i=(0,L.print)(t.type);e.reportError(new s.__('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),{nodes:t.type}))}}}},function(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(X(ie(n))){if(r){var i=t.name.value,o=(0,d.X)(n);e.reportError(new s.__('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),{nodes:r}))}}else if(!r){var a=t.name.value,u=(0,d.X)(n);e.reportError(new s.__('Field "'.concat(a,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),{nodes:t}))}}}},function(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=g("to use an inline fragment on",function(e,t,n){if(!Y(t))return[];var r,i=new Set,o=Object.create(null),a=(0,c.Z)(e.getPossibleTypes(t));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.getFields()[n]){i.add(s),o[s.name]=1;var u,f=(0,c.Z)(s.getInterfaces());try{for(f.s();!(u=f.n()).done;){var p,d=u.value;d.getFields()[n]&&(i.add(d),o[d.name]=(null!==(p=o[d.name])&&void 0!==p?p:0)+1)}}catch(h){f.e(h)}finally{f.f()}}}}catch(h){a.e(h)}finally{a.f()}return(0,l.Z)(i).sort((function(t,n){var r=o[n.name]-o[t.name];return 0!==r?r:q(t)&&e.isSubType(t,n)?-1:q(n)&&e.isSubType(n,t)?1:w(t.name,n.name)})).map((function(e){return e.name}))}(r,n,i));""===o&&(o=g(function(e,t){if(Z(e)||q(e)){return N(t,Object.keys(e.getFields()))}return[]}(n,i))),e.reportError(new s.__('Cannot query field "'.concat(i,'" on type "').concat(n.name,'".')+o,{nodes:t}))}}}},function(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new s.__('There can be only one fragment named "'.concat(r,'".'),{nodes:[t[r],n.name]})):t[r]=n.name,!1}}},function(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new s.__('Unknown fragment "'.concat(n,'".'),{nodes:t.name}))}}},function(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 r=Object.create(null),i=0,o=t;i<o.length;i++){var a,u=o[i],l=(0,c.Z)(e.getRecursivelyReferencedFragments(u));try{for(l.s();!(a=l.n()).done;){r[a.value.name.value]=!0}}catch(v){l.e(v)}finally{l.f()}}for(var f=0,p=n;f<p.length;f++){var d=p[f],h=d.name.value;!0!==r[h]&&e.reportError(new s.__('Fragment "'.concat(h,'" is never used.'),{nodes:d}))}}}}},function(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();if(J(n)&&J(r)&&!Se(e.getSchema(),n,r)){var i=(0,d.X)(r),o=(0,d.X)(n);e.reportError(new s.__('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(o,'".'),{nodes:t}))}},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=St(e.getSchema(),n.typeCondition);if(J(r))return r}}(e,n),i=e.getParentType();if(r&&i&&!Se(e.getSchema(),r,i)){var o=(0,d.X)(i),a=(0,d.X)(r);e.reportError(new s.__('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(o,'" can never be of type "').concat(a,'".'),{nodes:t}))}}}},function(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return i(e),!1}};function i(o){if(!t[o.name.value]){var a=o.name.value;t[a]=!0;var u=e.getFragmentSpreads(o.selectionSet);if(0!==u.length){r[a]=n.length;var l,f=(0,c.Z)(u);try{for(f.s();!(l=f.n()).done;){var p=l.value,d=p.name.value,h=r[d];if(n.push(p),void 0===h){var v=e.getFragment(d);v&&i(v)}else{var m=n.slice(h),g=m.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new s.__('Cannot spread fragment "'.concat(d,'" within itself')+(""!==g?" via ".concat(g,"."):"."),{nodes:m}))}n.pop()}}catch(y){f.e(y)}finally{f.f()}r[a]=void 0}}}},function(e){return{OperationDefinition:function(t){var n,r,i=_n(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(function(e){return e.variable.name.value})),o=(0,c.Z)(i);try{for(o.s();!(r=o.n()).done;){var a=(0,v.Z)(r.value,2),u=a[0],l=a[1];l.length>1&&e.reportError(new s.__('There can be only one variable named "$'.concat(u,'".'),{nodes:l.map((function(e){return e.variable.name}))}))}}catch(f){o.e(f)}finally{o.f()}}}},function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var r,i=e.getRecursiveVariableUsages(n),o=(0,c.Z)(i);try{for(o.s();!(r=o.n()).done;){var a=r.value.node,u=a.name.value;!0!==t[u]&&e.reportError(new s.__(n.name?'Variable "$'.concat(u,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(u,'" is not defined.'),{nodes:[a,n]}))}}catch(l){o.e(l)}finally{o.f()}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}},function(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var r,i=Object.create(null),o=e.getRecursiveVariableUsages(n),a=(0,c.Z)(o);try{for(a.s();!(r=a.n()).done;){i[r.value.node.name.value]=!0}}catch(d){a.e(d)}finally{a.f()}for(var u=0,l=t;u<l.length;u++){var f=l[u],p=f.variable.name.value;!0!==i[p]&&e.reportError(new s.__(n.name?'Variable "$'.concat(p,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(p,'" is never used.'),{nodes:f}))}}},VariableDefinition:function(e){t.push(e)}}},jt,kn,function(e){return(0,Mt.Z)((0,Mt.Z)({},Rt(e)),{},{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=N(o,r.args.map((function(e){return e.name})));e.reportError(new s.__('Unknown argument "'.concat(o,'" on field "').concat(i.name,".").concat(r.name,'".')+g(a),{nodes:t}))}}})},En,function(e){return{ListValue:function(t){if(!H(ne(e.getParentInputType())))return xn(e,t),!1},ObjectValue:function(t){var n=ie(e.getInputType());if(!z(n))return xn(e,t),!1;for(var r=E(t.fields,(function(e){return e.name.value})),i=0,o=Object.values(n.getFields());i<o.length;i++){var a=o[i];if(!r[a.name]&&Te(a)){var u=(0,d.X)(a.type);e.reportError(new s.__('Field "'.concat(n.name,".").concat(a.name,'" of required type "').concat(u,'" was not provided.'),{nodes:t}))}}},ObjectField:function(t){var n=ie(e.getParentInputType());if(!e.getInputType()&&z(n)){var r=N(t.name.value,Object.keys(n.getFields()));e.reportError(new s.__('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+g(r),{nodes:t}))}},NullValue:function(t){var n=e.getInputType();G(n)&&e.reportError(new s.__('Expected value of type "'.concat((0,d.X)(n),'", found ').concat((0,L.print)(t),"."),{nodes:t}))},EnumValue:function(t){return xn(e,t)},IntValue:function(t){return xn(e,t)},FloatValue:function(t){return xn(e,t)},StringValue:function(t){return xn(e,t)},BooleanValue:function(t){return xn(e,t)}}},function(e){return(0,Mt.Z)((0,Mt.Z)({},tn(e)),{},{Field:{leave:function(t){var n,r=e.getFieldDef();if(!r)return!1;var i,o=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((function(e){return e.name.value}))),a=(0,c.Z)(r.args);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(!o.has(u.name)&&ve(u)){var l=(0,d.X)(u.type);e.reportError(new s.__('Field "'.concat(r.name,'" argument "').concat(u.name,'" of type "').concat(l,'" is required, but it was not provided.'),{nodes:t}))}}}catch(f){a.e(f)}finally{a.f()}}}})},function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var r,i=e.getRecursiveVariableUsages(n),o=(0,c.Z)(i);try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a.node,l=a.type,f=a.defaultValue,p=u.name.value,h=t[p];if(h&&l){var v=e.getSchema(),m=St(v,h.type);if(m&&!Sn(v,m,h.defaultValue,l,f)){var g=(0,d.X)(m),y=(0,d.X)(l);e.reportError(new s.__('Variable "$'.concat(p,'" of type "').concat(g,'" used in position expecting type "').concat(y,'".'),{nodes:[h,u]}))}}}}catch(b){o.e(b)}finally{o.f()}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}},function(e){var t=new Yt,n=new Map;return{SelectionSet:function(r){var i,o=function(e,t,n,r,i){var o=[],a=Qt(e,t,r,i),s=(0,v.Z)(a,2),u=s[0],c=s[1];if(function(e,t,n,r,i){for(var o=0,a=Object.entries(i);o<a.length;o++){var s=(0,v.Z)(a[o],2),u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var f=l+1;f<c.length;f++){var p=Ht(e,n,r,!1,u,c[l],c[f]);p&&t.push(p)}}}(e,o,t,n,u),0!==c.length)for(var l=0;l<c.length;l++){Ut(e,o,t,n,!1,u,c[l]);for(var f=l+1;f<c.length;f++)Bt(e,o,t,n,!1,c[l],c[f])}return o}(e,n,t,e.getParentType(),r),a=(0,c.Z)(o);try{for(a.s();!(i=a.n()).done;){var u=(0,v.Z)(i.value,3),l=(0,v.Z)(u[0],2),f=l[0],p=l[1],d=u[1],h=u[2],m=qt(p);e.reportError(new s.__('Fields "'.concat(f,'" conflict because ').concat(m,". Use different aliases on the fields to fetch both if this was intentional."),{nodes:d.concat(h)}))}}catch(g){a.e(g)}finally{a.f()}}}},wn]),Nn=(Object.freeze([function(e){var t,n,r,i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null===i||void 0===i?void 0:i.astNode)&&void 0!==r?r:null===i||void 0===i?void 0:i.getQueryType())&&void 0!==n?n:null===i||void 0===i?void 0:i.getMutationType())&&void 0!==t?t:null===i||void 0===i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(t){o?e.reportError(new s.__("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new s.__("Must provide only one schema definition.",{nodes:t})),++a)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i,o,a=null!==(i=t.operationTypes)&&void 0!==i?i:[],u=(0,c.Z)(a);try{for(u.s();!(o=u.n()).done;){var l=o.value,f=l.operation,p=n[f];r[f]?e.reportError(new s.__("Type for ".concat(f," already defined in the schema. It cannot be redefined."),{nodes:l})):p?e.reportError(new s.__("There can be only one ".concat(f," type in schema."),{nodes:[p,l]})):n[f]=l}}catch(d){u.e(d)}finally{u.f()}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(null===n||void 0===n||!n.getType(i))return t[i]?e.reportError(new s.__('There can be only one type named "'.concat(i,'".'),{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new s.__('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),{nodes:r.name}))}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));var a,u=null!==(i=t.values)&&void 0!==i?i:[],l=r[o],f=(0,c.Z)(u);try{for(f.s();!(a=f.n()).done;){var p=a.value,d=p.name.value,h=n[o];B(h)&&h.getValue(d)?e.reportError(new s.__('Enum value "'.concat(o,".").concat(d,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:p.name})):l[d]?e.reportError(new s.__('Enum value "'.concat(o,".").concat(d,'" can only be defined once.'),{nodes:[l[d],p.name]})):l[d]=p.name}}catch(v){f.e(v)}finally{f.f()}return!1}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));var a,u=null!==(i=t.fields)&&void 0!==i?i:[],l=r[o],f=(0,c.Z)(u);try{for(f.s();!(a=f.n()).done;){var p=a.value,d=p.name.value;Tn(n[o],d)?e.reportError(new s.__('Field "'.concat(o,".").concat(d,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:p.name})):l[d]?e.reportError(new s.__('Field "'.concat(o,".").concat(d,'" can only be defined once.'),{nodes:[l[d],p.name]})):l[d]=p.name}}catch(h){f.e(h)}finally{f.f()}return!1}},function(e){return{DirectiveDefinition:function(e){var t,r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@".concat(e.name.value),r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r,i=e.name.value,o=null!==(t=e.fields)&&void 0!==t?t:[],a=(0,c.Z)(o);try{for(a.s();!(r=a.n()).done;){var s,u=r.value,l=u.name.value,f=null!==(s=u.arguments)&&void 0!==s?s:[];n("".concat(i,".").concat(l),f)}}catch(p){a.e(p)}finally{a.f()}return!1}function n(t,n){var r,i=_n(n,(function(e){return e.name.value})),o=(0,c.Z)(i);try{for(o.s();!(r=o.n()).done;){var a=(0,v.Z)(r.value,2),u=a[0],l=a[1];l.length>1&&e.reportError(new s.__('Argument "'.concat(t,"(").concat(u,':)" can only be defined once.'),{nodes:l.map((function(e){return e.name}))}))}}catch(f){o.e(f)}finally{o.f()}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(null===n||void 0===n||!n.getDirective(i))return t[i]?e.reportError(new s.__('There can be only one directive named "@'.concat(i,'".'),{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new s.__('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),{nodes:r.name}))}}},Pt,jt,kn,function(e){var t,n=e.getSchema(),r=Object.create(null),i=(0,c.Z)(e.getDocument().definitions);try{for(i.s();!(t=i.n()).done;){var o=t.value;Dt(o)&&(r[o.name.value]=o)}}catch(u){i.e(u)}finally{i.f()}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(t){var i,o=t.name.value,a=r[o],u=null===n||void 0===n?void 0:n.getType(o);if(a?i=en[a.kind]:u&&(i=function(e){if(V(e))return D.h.SCALAR_TYPE_EXTENSION;if(Z(e))return D.h.OBJECT_TYPE_EXTENSION;if(q(e))return D.h.INTERFACE_TYPE_EXTENSION;if(U(e))return D.h.UNION_TYPE_EXTENSION;if(B(e))return D.h.ENUM_TYPE_EXTENSION;if(z(e))return D.h.INPUT_OBJECT_TYPE_EXTENSION;(0,ze.k)(!1,"Unexpected type: "+(0,d.X)(e))}(u)),i){if(i!==t.kind){var c=function(e){switch(e){case D.h.SCALAR_TYPE_EXTENSION:return"scalar";case D.h.OBJECT_TYPE_EXTENSION:return"object";case D.h.INTERFACE_TYPE_EXTENSION:return"interface";case D.h.UNION_TYPE_EXTENSION:return"union";case D.h.ENUM_TYPE_EXTENSION:return"enum";case D.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,ze.k)(!1,"Unexpected kind: "+(0,d.X)(e))}}(t.kind);e.reportError(new s.__("Cannot extend non-".concat(c,' type "').concat(o,'".'),{nodes:a?[a,t]:t}))}}else{var l=N(o,Object.keys((0,Mt.Z)((0,Mt.Z)({},r),null===n||void 0===n?void 0:n.getTypeMap())));e.reportError(new s.__('Cannot extend type "'.concat(o,'" because it is not defined.')+g(l),{nodes:t.name}))}}},Rt,En,wn,tn]),n(45754)),An=n(86906),On=function(e){function t(e,n){(0,f.Z)(this,t),this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}return(0,p.Z)(t,[{key:e,get:function(){return"ASTValidationContext"}},{key:"reportError",value:function(e){this._onError(e)}},{key:"getDocument",value:function(){return this._ast}},{key:"getFragment",value:function(e){var t;if(this._fragments)t=this._fragments;else{t=Object.create(null);var n,r=(0,c.Z)(this.getDocument().definitions);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.kind===D.h.FRAGMENT_DEFINITION&&(t[i.name.value]=i)}}catch(o){r.e(o)}finally{r.f()}this._fragments=t}return t[e]}},{key:"getFragmentSpreads",value:function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n,r=[e];n=r.pop();){var i,o=(0,c.Z)(n.selections);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.kind===D.h.FRAGMENT_SPREAD?t.push(a):a.selectionSet&&r.push(a.selectionSet)}}catch(s){o.e(s)}finally{o.f()}}this._fragmentSpreads.set(e,t)}return t}},{key:"getRecursivelyReferencedFragments",value:function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n,r=Object.create(null),i=[e.selectionSet];n=i.pop();){var o,a=(0,c.Z)(this.getFragmentSpreads(n));try{for(a.s();!(o=a.n()).done;){var s=o.value.name.value;if(!0!==r[s]){r[s]=!0;var u=this.getFragment(s);u&&(t.push(u),i.push(u.selectionSet))}}}catch(l){a.e(l)}finally{a.f()}}this._recursivelyReferencedFragments.set(e,t)}return t}}]),t}(Symbol.toStringTag),In=(Symbol.toStringTag,function(e,t){(0,Nn.Z)(r,e);var n=(0,An.Z)(r);function r(e,t,i,o){var a;return(0,f.Z)(this,r),(a=n.call(this,t,o))._schema=e,a._typeInfo=i,a._variableUsages=new Map,a._recursiveVariableUsages=new Map,a}return(0,p.Z)(r,[{key:t,get:function(){return"ValidationContext"}},{key:"getSchema",value:function(){return this._schema}},{key:"getVariableUsages",value:function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new Ct(this._schema);(0,u.Vn)(e,At(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}},{key:"getRecursiveVariableUsages",value:function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);var n,r=(0,c.Z)(this.getRecursivelyReferencedFragments(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;t=t.concat(this.getVariableUsages(i))}}catch(o){r.e(o)}finally{r.f()}this._recursiveVariableUsages.set(e,t)}return t}},{key:"getType",value:function(){return this._typeInfo.getType()}},{key:"getParentType",value:function(){return this._typeInfo.getParentType()}},{key:"getInputType",value:function(){return this._typeInfo.getInputType()}},{key:"getParentInputType",value:function(){return this._typeInfo.getParentInputType()}},{key:"getFieldDef",value:function(){return this._typeInfo.getFieldDef()}},{key:"getDirective",value:function(){return this._typeInfo.getDirective()}},{key:"getArgument",value:function(){return this._typeInfo.getArgument()}},{key:"getEnumValue",value:function(){return this._typeInfo.getEnumValue()}}]),r}(On,Symbol.toStringTag));function Dn(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cn,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Ct(e),c=null!==(n=null===i||void 0===i?void 0:i.maxErrors)&&void 0!==n?n:100;t||(0,a.a)(!1,"Must provide document."),pt(e);var l=Object.freeze({}),f=[],p=new In(e,t,o,(function(e){if(f.length>=c)throw f.push(new s.__("Too many validation errors, error limit reached. Validation aborted.")),l;f.push(e)})),d=(0,u.j1)(r.map((function(e){return e(p)})));try{(0,u.Vn)(t,At(o,d))}catch(h){if(h!==l)throw h}return f}function Ln(e,t){var n,r=null,i=(0,c.Z)(e.definitions);try{for(i.s();!(n=i.n()).done;){var o,a=n.value;if(a.kind===D.h.OPERATION_DEFINITION)if(null==t){if(r)return null;r=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}}catch(s){i.e(s)}finally{i.f()}return r}function Fn(e){return"function"===typeof(null===e||void 0===e?void 0:e[Symbol.asyncIterator])}var Mn=function(e){(0,Nn.Z)(n,e);var t=(0,An.Z)(n);function n(e){var r;return(0,f.Z)(this,n),(r=t.call(this,"Unexpected error value: "+(0,d.X)(e))).name="NonErrorThrown",r.thrownValue=e,r}return(0,p.Z)(n)}((0,n(25991).Z)(Error));function Rn(e,t,n){var r,i,o,a=(i=e)instanceof Error?i:new Mn(i);return o=a,Array.isArray(o.path)?a:new s.__(a.message,{nodes:null!==(r=a.nodes)&&void 0!==r?r:t,source:a.source,positions:a.positions,path:n,originalError:a})}function jn(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}var Pn=function(e){var t;return function(n,r,i){void 0===t&&(t=new WeakMap);var o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));var a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));var s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}((function(e,t,n){return function(e,t,n,r,i){var o,a=new Map,s=new Set,u=(0,c.Z)(i);try{for(u.s();!(o=u.n()).done;){var l=o.value;l.selectionSet&&gn(e,t,n,r,l.selectionSet,a,s)}}catch(f){u.e(f)}finally{u.f()}return a}(e.schema,e.fragments,e.variableValues,t,n)}));function Vn(e){arguments.length<2||(0,a.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");var t=e.schema,n=e.document,r=e.variableValues,i=e.rootValue;qn(t,n,r);var o=Un(e);if(!("schema"in o))return{errors:o};try{var u=o.operation,l=function(e,t,n){var r=e.schema.getRootType(t.operation);if(null==r)throw new s.__("Schema is not configured to execute ".concat(t.operation," operation."),{nodes:t});var i=mn(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case h.ku.QUERY:return Bn(e,r,n,o,i);case h.ku.MUTATION:return function(e,t,n,r,i){return function(e,t,n){var r,i=n,o=(0,c.Z)(e);try{var a=function(){var e=r.value;i=jn(i)?i.then((function(n){return t(n,e)})):t(i,e)};for(o.s();!(r=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}return i}(i.entries(),(function(i,o){var a=(0,v.Z)(o,2),s=a[0],u=a[1],c=on(r,s,t.name),l=zn(e,t,n,u,c);return void 0===l?i:jn(l)?l.then((function(e){return i[s]=e,i})):(i[s]=l,i)}),Object.create(null))}(e,r,n,o,i);case h.ku.SUBSCRIPTION:return Bn(e,r,n,o,i)}}(o,u,i);return jn(l)?l.then((function(e){return Zn(e,o.errors)}),(function(e){return o.errors.push(e),Zn(null,o.errors)})):Zn(l,o.errors)}catch(f){return o.errors.push(f),Zn(null,o.errors)}}function Zn(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function qn(e,t,n){t||(0,a.a)(!1,"Must provide document."),pt(e),null==n||(0,_.y)(n)||(0,a.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Un(e){var t,n,r,i,o=e.schema,a=e.document,u=e.rootValue,l=e.contextValue,f=e.variableValues,p=e.operationName,d=e.fieldResolver,h=e.typeResolver,v=e.subscribeFieldResolver,m=Object.create(null),g=(0,c.Z)(a.definitions);try{for(g.s();!(i=g.n()).done;){var y=i.value;switch(y.kind){case D.h.OPERATION_DEFINITION:if(null==p){if(void 0!==r)return[new s.__("Must provide operation name if query contains multiple operations.")];r=y}else(null===(t=y.name)||void 0===t?void 0:t.value)===p&&(r=y);break;case D.h.FRAGMENT_DEFINITION:m[y.name.value]=y}}}catch(_){g.e(_)}finally{g.f()}if(!r)return null!=p?[new s.__('Unknown operation named "'.concat(p,'".'))]:[new s.__("Must provide an operation.")];var b=pn(o,null!==(n=r.variableDefinitions)&&void 0!==n?n:[],null!==f&&void 0!==f?f:{},{maxErrors:50});return b.errors?b.errors:{schema:o,fragments:m,rootValue:u,contextValue:l,operation:r,variableValues:b.coerced,fieldResolver:null!==d&&void 0!==d?d:$n,typeResolver:null!==h&&void 0!==h?h:Yn,subscribeFieldResolver:null!==v&&void 0!==v?v:$n,errors:[]}}function Bn(e,t,n,r,i){var o,a,s=Object.create(null),u=!1,l=(0,c.Z)(i.entries());try{for(l.s();!(o=l.n()).done;){var f=(0,v.Z)(o.value,2),p=f[0],d=zn(e,t,n,f[1],on(r,p,t.name));void 0!==d&&(s[p]=d,jn(d)&&(u=!0))}}catch(h){l.e(h)}finally{l.f()}return u?(a=s,Promise.all(Object.values(a)).then((function(e){var t,n=Object.create(null),r=(0,c.Z)(Object.keys(a).entries());try{for(r.s();!(t=r.n()).done;){var i=(0,v.Z)(t.value,2),o=i[0];n[i[1]]=e[o]}}catch(h){r.e(h)}finally{r.f()}return n}))):s}function zn(e,t,n,r,i){var o,a=Kn(e.schema,t,r[0]);if(a){var s=a.type,u=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,c=Hn(e,a,r,t,i);try{var l,f=u(n,dn(a,r[0],e.variableValues),e.contextValue,c);return l=jn(f)?f.then((function(t){return Wn(e,s,r,c,i,t)})):Wn(e,s,r,c,i,f),jn(l)?l.then(void 0,(function(t){return Gn(Rn(t,r,an(i)),s,e)})):l}catch(p){return Gn(Rn(p,r,an(i)),s,e)}}}function Hn(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Gn(e,t,n){if(G(t))throw e;return n.errors.push(e),null}function Wn(e,t,n,r,i,o){if(o instanceof Error)throw o;if(G(t)){var a=Wn(e,t.ofType,n,r,i,o);if(null===a)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return a}return null==o?null:H(t)?function(e,t,n,r,i,o){if(!He(o))throw new s.__('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));var a=t.ofType,u=!1,c=Array.from(o,(function(t,o){var s=on(i,o,void 0);try{var c;return c=jn(t)?t.then((function(t){return Wn(e,a,n,r,s,t)})):Wn(e,a,n,r,s,t),jn(c)?(u=!0,c.then(void 0,(function(t){return Gn(Rn(t,n,an(s)),a,e)}))):c}catch(l){return Gn(Rn(l,n,an(s)),a,e)}}));return u?Promise.all(c):c}(e,t,n,r,i,o):X(t)?function(e,t){var n=e.serialize(t);if(null==n)throw new Error("Expected `".concat((0,d.X)(e),".serialize(").concat((0,d.X)(t),")` to ")+"return non-nullable value, returned: ".concat((0,d.X)(n)));return n}(t,o):Y(t)?function(e,t,n,r,i,o){var a,s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,u=e.contextValue,c=s(o,u,r,t);if(jn(c))return c.then((function(a){return Xn(e,Qn(a,e,t,n,r,o),n,r,i,o)}));return Xn(e,Qn(c,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):Z(t)?Xn(e,t,n,r,i,o):void(0,ze.k)(!1,"Cannot complete value of unexpected output type: "+(0,d.X)(t))}function Qn(e,t,n,r,i,o){if(null==e)throw new s.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if(Z(e))throw new s.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!==typeof e)throw new s.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat((0,d.X)(o),', received "').concat((0,d.X)(e),'".'));var a=t.schema.getType(e);if(null==a)throw new s.__('Abstract type "'.concat(n.name,'" was resolved to a type "').concat(e,'" that does not exist inside the schema.'),{nodes:r});if(!Z(a))throw new s.__('Abstract type "'.concat(n.name,'" was resolved to a non-object type "').concat(e,'".'),{nodes:r});if(!t.schema.isSubType(n,a))throw new s.__('Runtime Object type "'.concat(a.name,'" is not a possible type for "').concat(n.name,'".'),{nodes:r});return a}function Xn(e,t,n,r,i,o){var a=Pn(e,t,n);if(t.isTypeOf){var s=t.isTypeOf(o,e.contextValue,r);if(jn(s))return s.then((function(r){if(!r)throw Jn(t,o,n);return Bn(e,t,o,i,a)}));if(!s)throw Jn(t,o,n)}return Bn(e,t,o,i,a)}function Jn(e,t,n){return new s.__('Expected value of type "'.concat(e.name,'" but got: ').concat((0,d.X)(t),"."),{nodes:n})}var Yn=function(e,t,n,r){if((0,_.y)(e)&&"string"===typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),o=[],a=0;a<i.length;a++){var s=i[a];if(s.isTypeOf){var u=s.isTypeOf(e,t,n);if(jn(u))o[a]=u;else if(u)return s.name}}return o.length?Promise.all(o).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},$n=function(e,t,n,r){if((0,_.y)(e)||"function"===typeof e){var i=e[r.fieldName];return"function"===typeof i?e[r.fieldName](t,n,r):i}};function Kn(e,t,n){var r=n.name.value;return r===rt.name&&e.getQueryType()===t?rt:r===it.name&&e.getQueryType()===t?it:r===ot.name?ot:t.getFields()[r]}function er(e,t){var n=e[Symbol.asyncIterator]();function o(e){return a.apply(this,arguments)}function a(){return(a=(0,i.Z)((0,r.Z)().mark((function e(i){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.done){e.next=2;break}return e.abrupt("return",i);case 2:return e.prev=2,e.next=5,t(i.value);case 5:return e.t0=e.sent,e.abrupt("return",{value:e.t0,done:!1});case 9:if(e.prev=9,e.t1=e.catch(2),"function"!==typeof n.return){e.next=19;break}return e.prev=12,e.next=15,n.return();case 15:e.next=19;break;case 17:e.prev=17,e.t2=e.catch(12);case 19:throw e.t1;case 20:case"end":return e.stop()}}),e,null,[[2,9],[12,17]])})))).apply(this,arguments)}return(0,Kt.Z)({next:function(){return(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=o,e.next=3,n.next();case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}),e)})))()},return:function(){return(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof n.return){e.next=8;break}return e.t1=o,e.next=4,n.return();case 4:e.t2=e.sent,e.t0=(0,e.t1)(e.t2),e.next=9;break;case 8:e.t0={value:void 0,done:!0};case 9:return e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e)})))()},throw:function(e){return(0,i.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!==typeof n.throw){t.next=6;break}return t.t0=o,t.next=4,n.throw(e);case 4:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 6:throw e;case 7:case"end":return t.stop()}}),t)})))()}},Symbol.asyncIterator,(function(){return this}))}function tr(e){return nr.apply(this,arguments)}function nr(){return nr=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,o,s,u,c,l,f,p,d,h=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h.length<2||(0,a.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead."),n=t.schema,i=t.document,o=t.rootValue,s=t.contextValue,u=t.variableValues,c=t.operationName,l=t.fieldResolver,f=t.subscribeFieldResolver,e.next=4,rr(n,i,o,s,u,c,f);case 4:if(Fn(p=e.sent)){e.next=7;break}return e.abrupt("return",p);case 7:return d=function(e){return Vn({schema:n,document:i,rootValue:e,contextValue:s,variableValues:u,operationName:c,fieldResolver:l})},e.abrupt("return",er(p,d));case 9:case"end":return e.stop()}}),e)}))),nr.apply(this,arguments)}function rr(e,t,n,r,i,o,a){return ir.apply(this,arguments)}function ir(){return(ir=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,o,a,u,c){var l,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(qn(t,n,a),"schema"in(l=Un({schema:t,document:n,rootValue:i,contextValue:o,variableValues:a,operationName:u,subscribeFieldResolver:c}))){e.next=4;break}return e.abrupt("return",{errors:l});case 4:return e.prev=4,e.next=7,or(l);case 7:if(Fn(f=e.sent)){e.next=10;break}throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,d.X)(f),"."));case 10:return e.abrupt("return",f);case 13:if(e.prev=13,e.t0=e.catch(4),!(e.t0 instanceof s.__)){e.next=17;break}return e.abrupt("return",{errors:[e.t0]});case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,null,[[4,13]])})))).apply(this,arguments)}function or(e){return ar.apply(this,arguments)}function ar(){return(ar=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,o,a,u,c,f,p,d,h,m,g,y,b,_,E,k,T,w;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.schema,i=t.fragments,o=t.operation,a=t.variableValues,u=t.rootValue,null!=(c=n.getSubscriptionType())){e.next=4;break}throw new s.__("Schema is not configured to execute subscription operation.",{nodes:o});case 4:if(f=mn(n,i,a,c,o.selectionSet),p=(0,v.Z)((0,l.Z)(f.entries())[0],2),d=p[0],h=p[1],m=Kn(n,c,h[0])){e.next=10;break}throw g=h[0].name.value,new s.__('The subscription field "'.concat(g,'" is not defined.'),{nodes:h});case 10:return y=on(void 0,d,c.name),b=Hn(t,m,h,c,y),e.prev=12,E=dn(m,h[0],a),k=t.contextValue,T=null!==(_=m.subscribe)&&void 0!==_?_:t.subscribeFieldResolver,e.next=18,T(u,E,k,b);case 18:if(!((w=e.sent)instanceof Error)){e.next=21;break}throw w;case 21:return e.abrupt("return",w);case 24:throw e.prev=24,e.t0=e.catch(12),Rn(e.t0,h,an(y));case 27:case"end":return e.stop()}}),e,null,[[12,24]])})))).apply(this,arguments)}var sr=n(15242),ur=n(3403),cr=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}};function lr(e){var t=e.schema,n=e.context,a=e.roots,u=e.validate,c=e.execute,l=e.subscribe,f=e.connectionInitWaitTimeout,p=void 0===f?3e3:f,d=e.onConnect,h=e.onDisconnect,v=e.onClose,m=e.onSubscribe,g=e.onOperation,y=e.onNext,b=e.onError,_=e.onComplete,E=e.jsonMessageReviver,k=e.jsonMessageReplacer;return{opened:function(e,f){var T={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:f};if(e.protocol!==sr.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(sr.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===v||void 0===v?void 0:v(T,t,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();var w=p>0&&isFinite(p)?setTimeout((function(){T.connectionInitReceived||e.close(sr.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),p):null;return e.onMessage(function(){var f=(0,i.Z)((0,r.Z)().mark((function f(p){var h,v,w,x,S,C,N,A,O,I,D,L,F,M,R,j,P,V,Z,q,U,B,z;return(0,r.Z)().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:f.prev=0,C=(0,sr.parseMessage)(p,E),f.next=7;break;case 4:return f.prev=4,f.t0=f.catch(0),f.abrupt("return",e.close(sr.CloseCode.BadRequest,"Invalid message received"));case 7:f.t1=C.type,f.next=f.t1===sr.MessageType.ConnectionInit?10:f.t1===sr.MessageType.Ping?23:f.t1===sr.MessageType.Pong?30:f.t1===sr.MessageType.Subscribe?33:f.t1===sr.MessageType.Complete?154:160;break;case 10:if(!T.connectionInitReceived){f.next=12;break}return f.abrupt("return",e.close(sr.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests"));case 12:return T.connectionInitReceived=!0,(0,ur.Kn)(C.payload)&&(T.connectionParams=C.payload),f.next=16,null===d||void 0===d?void 0:d(T);case 16:if(!1!==(N=f.sent)){f.next=19;break}return f.abrupt("return",e.close(sr.CloseCode.Forbidden,"Forbidden"));case 19:return f.next=21,e.send((0,sr.stringifyMessage)((0,ur.Kn)(N)?{type:sr.MessageType.ConnectionAck,payload:N}:{type:sr.MessageType.ConnectionAck},k));case 21:return T.acknowledged=!0,f.abrupt("return");case 23:if(!e.onPing){f.next=27;break}return f.next=26,e.onPing(C.payload);case 26:return f.abrupt("return",f.sent);case 27:return f.next=29,e.send((0,sr.stringifyMessage)(C.payload?{type:sr.MessageType.Pong,payload:C.payload}:{type:sr.MessageType.Pong}));case 29:return f.abrupt("return");case 30:return f.next=32,null===(S=e.onPong)||void 0===S?void 0:S.call(e,C.payload);case 32:return f.abrupt("return",f.sent);case 33:if(T.acknowledged){f.next=35;break}return f.abrupt("return",e.close(sr.CloseCode.Unauthorized,"Unauthorized"));case 35:if(O=(A=C).id,I=A.payload,!(O in T.subscriptions)){f.next=38;break}return f.abrupt("return",e.close(sr.CloseCode.SubscriberAlreadyExists,"Subscriber for ".concat(O," already exists")));case 38:return T.subscriptions[O]=null,D={next:function(){var t=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={id:O,type:sr.MessageType.Next,payload:n},t.next=3,null===y||void 0===y?void 0:y(T,o,i,n);case 3:return(a=t.sent)&&(o=Object.assign(Object.assign({},o),{payload:a})),t.next=7,e.send((0,sr.stringifyMessage)(o,k));case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),error:function(){var t=(0,i.Z)((0,r.Z)().mark((function t(n){var i,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={id:O,type:sr.MessageType.Error,payload:n},t.next=3,null===b||void 0===b?void 0:b(T,i,n);case 3:return(o=t.sent)&&(i=Object.assign(Object.assign({},i),{payload:o})),t.next=7,e.send((0,sr.stringifyMessage)(i,k));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),complete:function(){var t=(0,i.Z)((0,r.Z)().mark((function t(n){var i;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={id:O,type:sr.MessageType.Complete},t.next=3,null===_||void 0===_?void 0:_(T,i);case 3:if(!n){t.next=6;break}return t.next=6,e.send((0,sr.stringifyMessage)(i,k));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},f.prev=40,f.next=43,null===m||void 0===m?void 0:m(T,C);case 43:if(!(F=f.sent)){f.next=56;break}if(!(0,ur.Ox)(F)){f.next=51;break}return f.next=48,D.error(F);case 48:return f.abrupt("return",f.sent);case 51:if(!Array.isArray(F)){f.next=53;break}throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");case 53:L=F,f.next=76;break;case 56:if(t){f.next=58;break}throw new Error("The GraphQL schema is not provided");case 58:if(M={operationName:I.operationName,document:(0,o.parse)(I.query),variableValues:I.variables},f.t2=Object,f.t3=Object.assign({},M),"function"!==typeof t){f.next=67;break}return f.next=64,t(T,C,M);case 64:f.t4=f.sent,f.next=68;break;case 67:f.t4=t;case 68:if(f.t5=f.t4,f.t6={schema:f.t5},L=f.t2.assign.call(f.t2,f.t3,f.t6),!((R=(null!==u&&void 0!==u?u:Dn)(L.schema,L.document)).length>0)){f.next=76;break}return f.next=75,D.error(R);case 75:return f.abrupt("return",f.sent);case 76:if(j=Ln(L.document,L.operationName)){f.next=81;break}return f.next=80,D.error([new s.__("Unable to identify operation")]);case 80:return f.abrupt("return",f.sent);case 81:if("rootValue"in L||(L.rootValue=null===a||void 0===a?void 0:a[j.operation]),"contextValue"in L){f.next=91;break}if("function"!==typeof n){f.next=89;break}return f.next=86,n(T,C,L);case 86:f.t7=f.sent,f.next=90;break;case 89:f.t7=n;case 90:L.contextValue=f.t7;case 91:if("subscription"!==j.operation){f.next=97;break}return f.next=94,(null!==l&&void 0!==l?l:tr)(L);case 94:P=f.sent,f.next=100;break;case 97:return f.next=99,(null!==c&&void 0!==c?c:Vn)(L);case 99:P=f.sent;case 100:return f.next=102,null===g||void 0===g?void 0:g(T,C,L,P);case 102:if((V=f.sent)&&(P=V),!(0,ur.D0)(P)){f.next=145;break}if(O in T.subscriptions){f.next=109;break}(0,ur.Jy)(P)&&P.return(void 0),f.next=143;break;case 109:T.subscriptions[O]=P,f.prev=110,Z=!0,q=cr(P);case 112:return f.next=114,q.next();case 114:if(U=f.sent,h=U.done){f.next=128;break}return x=U.value,Z=!1,f.prev=119,B=x,f.next=123,D.next(B,L);case 123:return f.prev=123,Z=!0,f.finish(123);case 126:f.next=112;break;case 128:f.next=133;break;case 130:f.prev=130,f.t8=f.catch(110),v={error:f.t8};case 133:if(f.prev=133,f.prev=134,Z||h||!(w=q.return)){f.next=138;break}return f.next=138,w.call(q);case 138:if(f.prev=138,!v){f.next=141;break}throw v.error;case 141:return f.finish(138);case 142:return f.finish(133);case 143:f.next=148;break;case 145:if(!(O in T.subscriptions)){f.next=148;break}return f.next=148,D.next(P,L);case 148:return f.next=150,D.complete(O in T.subscriptions);case 150:return f.prev=150,delete T.subscriptions[O],f.finish(150);case 153:return f.abrupt("return");case 154:if(z=T.subscriptions[C.id],delete T.subscriptions[C.id],!(0,ur.Jy)(z)){f.next=159;break}return f.next=159,z.return(void 0);case 159:return f.abrupt("return");case 160:throw new Error("Unexpected message of type ".concat(C.type," received"));case 161:case"end":return f.stop()}}),f,null,[[0,4],[40,,150,153],[110,130,133,143],[119,,123,126],[134,,138,142]])})));return function(e){return f.apply(this,arguments)}}()),function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,o,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:w&&clearTimeout(w),i=0,o=Object.values(T.subscriptions);case 2:if(!(i<o.length)){e.next=10;break}if(a=o[i],!(0,ur.Jy)(a)){e.next=7;break}return e.next=7,a.return(void 0);case 7:i++,e.next=2;break;case 10:if(!T.acknowledged){e.next=13;break}return e.next=13,null===h||void 0===h?void 0:h(T,t,n);case 13:return e.next=15,null===v||void 0===v?void 0:v(T,t,n);case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}}}function fr(e){switch(!0){case e instanceof Set&&e.has(sr.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(sr.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"===typeof e&&e.split(",").map((function(e){return e.trim()})).includes(sr.GRAPHQL_TRANSPORT_WS_PROTOCOL):return sr.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}},3403:function(e,t,n){"use strict";function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===r(e)}function o(e){return"function"===typeof Object(e)[Symbol.asyncIterator]}function a(e){return i(e)&&"function"===typeof Object(e)[Symbol.asyncIterator]&&"function"===typeof e.return}function s(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return"message"in e}))}function u(e,t){return e.length<124?e:t}n.d(t,{D0:function(){return o},IR:function(){return r},Jy:function(){return a},Kn:function(){return i},Ox:function(){return s},qj:function(){return u}})},50549:function(e){"use strict";e.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\ud835\udd04","afr":"\ud835\udd1e","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\ud835\udd38","aopf":"\ud835\udd52","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\ud835\udc9c","ascr":"\ud835\udcb6","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\ud835\udd05","bfr":"\ud835\udd1f","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\ud835\udd39","bopf":"\ud835\udd53","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\ud835\udcb7","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\ud835\udd20","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\ud835\udd54","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\ud835\udc9e","cscr":"\ud835\udcb8","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\ud835\udd07","dfr":"\ud835\udd21","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\ud835\udd3b","dopf":"\ud835\udd55","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\ud835\udc9f","dscr":"\ud835\udcb9","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\ud835\udd08","efr":"\ud835\udd22","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\ud835\udd3c","eopf":"\ud835\udd56","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\ud835\udd09","ffr":"\ud835\udd23","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\ud835\udd3d","fopf":"\ud835\udd57","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\ud835\udcbb","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\ud835\udd0a","gfr":"\ud835\udd24","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\ud835\udd3e","gopf":"\ud835\udd58","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\ud835\udca2","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')}}]);
|