@cubejs-backend/server-core 0.35.81 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/core/DevServer.js +5 -3
- package/dist/src/core/DevServer.js.map +1 -1
- package/dist/src/core/OptsHandler.js +19 -8
- package/dist/src/core/OptsHandler.js.map +1 -1
- package/dist/src/core/OrchestratorApi.js +6 -1
- package/dist/src/core/OrchestratorApi.js.map +1 -1
- package/dist/src/core/OrchestratorStorage.js +1 -3
- package/dist/src/core/OrchestratorStorage.js.map +1 -1
- package/dist/src/core/RefreshScheduler.js +1 -0
- package/dist/src/core/RefreshScheduler.js.map +1 -1
- package/dist/src/core/agentCollect.js +9 -1
- package/dist/src/core/agentCollect.js.map +1 -1
- package/dist/src/core/optionsValidate.d.ts.map +1 -1
- package/dist/src/core/optionsValidate.js +1 -23
- package/dist/src/core/optionsValidate.js.map +1 -1
- package/dist/src/core/server.d.ts.map +1 -1
- package/dist/src/core/server.js +98 -83
- package/dist/src/core/server.js.map +1 -1
- package/dist/src/core/types.d.ts +2 -5
- package/dist/src/core/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/playground/assets/index-n9H6oO1O.js +3538 -0
- package/playground/index.html +2 -3
- package/playground/vizard/assets/abap-Bs-KDgo-.js +6 -0
- package/playground/vizard/assets/apex-BB8ijgrA.js +6 -0
- package/playground/vizard/assets/azcli-CM0y7Ame.js +6 -0
- package/playground/vizard/assets/bat-Bfxf8Mzl.js +6 -0
- package/playground/vizard/assets/bicep-DJPqIr_M.js +7 -0
- package/playground/vizard/assets/cameligo-PnszTm2c.js +6 -0
- package/playground/vizard/assets/clients-CzhsrDwG.js +1 -0
- package/playground/vizard/assets/clojure-B3cFVYI-.js +6 -0
- package/playground/vizard/assets/codicon-BuT2v_Yt.ttf +0 -0
- package/playground/vizard/assets/coffee-D8tSzcLH.js +6 -0
- package/playground/vizard/assets/cpp-CP-cATHl.js +6 -0
- package/playground/vizard/assets/csharp-Dfj4WFqy.js +6 -0
- package/playground/vizard/assets/csp-D9HxVpWn.js +6 -0
- package/playground/vizard/assets/css-CkCHETKw.js +8 -0
- package/playground/vizard/assets/css.worker-CJ81phlL.js +84 -0
- package/playground/vizard/assets/cssMode-PbVgDCx5.js +9 -0
- package/playground/vizard/assets/cypher-B50w5pq9.js +6 -0
- package/playground/vizard/assets/dart-DvROnYA_.js +6 -0
- package/playground/vizard/assets/dockerfile-C4f37Dvd.js +6 -0
- package/playground/vizard/assets/ecl-DW46Dzft.js +6 -0
- package/playground/vizard/assets/editor.worker-DnhKYsI_.js +11 -0
- package/playground/vizard/assets/elixir-BIa5JtGe.js +6 -0
- package/playground/vizard/assets/flow9-ByI4Scwv.js +6 -0
- package/playground/vizard/assets/freemarker2-CJRN0A1r.js +8 -0
- package/playground/vizard/assets/fsharp-Cgf6u04w.js +6 -0
- package/playground/vizard/assets/go-CJfxPkej.js +6 -0
- package/playground/vizard/assets/graphql-CGlhcY2-.js +6 -0
- package/playground/vizard/assets/handlebars-iTWM3ahM.js +6 -0
- package/playground/vizard/assets/hcl-CTI7WNlW.js +6 -0
- package/playground/vizard/assets/html-CpaHgWrY.js +6 -0
- package/playground/vizard/assets/htmlMode-xt8whNAd.js +9 -0
- package/playground/vizard/assets/icons-DuVB-IiR.js +61 -0
- package/playground/vizard/assets/index-B0u8YO_h.css +1 -0
- package/playground/vizard/assets/index-C388WnHl.js +4841 -0
- package/playground/vizard/assets/ini-qJXHXiTY.js +6 -0
- package/playground/vizard/assets/java-Dnrl9822.js +6 -0
- package/playground/vizard/assets/javascript-zOLCCWF1.js +6 -0
- package/playground/vizard/assets/json.worker-DY5adJme.js +42 -0
- package/playground/vizard/assets/jsonMode-mWIcOV2K.js +11 -0
- package/playground/vizard/assets/julia-pqMLycLG.js +6 -0
- package/playground/vizard/assets/kotlin-DLX697jv.js +6 -0
- package/playground/vizard/assets/less-2ExdFhZM.js +7 -0
- package/playground/vizard/assets/lexon-ABKfEwhw.js +6 -0
- package/playground/vizard/assets/liquid-Bu0TeitP.js +6 -0
- package/playground/vizard/assets/lua-CI0blgFs.js +6 -0
- package/playground/vizard/assets/m3-yVPEHiu4.js +6 -0
- package/playground/vizard/assets/markdown-CjOKAnMy.js +6 -0
- package/playground/vizard/assets/mdx-uhxhQOIT.js +6 -0
- package/playground/vizard/assets/mips-B7KWClFm.js +6 -0
- package/playground/vizard/assets/monaco-B_IR9uhL.js +730 -0
- package/playground/vizard/assets/monaco-ZJDocGaF.css +1 -0
- package/playground/vizard/assets/msdax-N_40gjXO.js +6 -0
- package/playground/vizard/assets/mysql-CzgTwwi2.js +6 -0
- package/playground/vizard/assets/objective-c-CwAIQX-6.js +6 -0
- package/playground/vizard/assets/other-HgnFgCOO.js +2 -0
- package/playground/vizard/assets/pascal-3SrKWnFX.js +6 -0
- package/playground/vizard/assets/pascaligo-Cv9Y0fbC.js +6 -0
- package/playground/vizard/assets/perl-DHxnJL0_.js +6 -0
- package/playground/vizard/assets/pgsql-DGJFw0qd.js +6 -0
- package/playground/vizard/assets/php-BA3Rqjpx.js +6 -0
- package/playground/vizard/assets/pla-DKf5_u7N.js +6 -0
- package/playground/vizard/assets/postiats-Bup1kUyj.js +6 -0
- package/playground/vizard/assets/powerquery-BfbPeLER.js +6 -0
- package/playground/vizard/assets/powershell-DAsS7BG8.js +6 -0
- package/playground/vizard/assets/protobuf-Dzs34GPr.js +7 -0
- package/playground/vizard/assets/pug-CVuUMJ1K.js +6 -0
- package/playground/vizard/assets/python-4inBdLoB.js +6 -0
- package/playground/vizard/assets/qsharp-BgY1GbL_.js +6 -0
- package/playground/vizard/assets/r-C2Iz-cGs.js +6 -0
- package/playground/vizard/assets/razor-BGbFglDZ.js +6 -0
- package/playground/vizard/assets/react-CJahmRYQ.js +32 -0
- package/playground/vizard/assets/redis-F7UxdB6U.js +6 -0
- package/playground/vizard/assets/redshift-CDF44XVS.js +6 -0
- package/playground/vizard/assets/restructuredtext-C_dzeD_4.js +6 -0
- package/playground/vizard/assets/ruby-BdxlVRg3.js +6 -0
- package/playground/vizard/assets/rust-gU8692nP.js +6 -0
- package/playground/vizard/assets/sb-CsAkPjmq.js +6 -0
- package/playground/vizard/assets/scala-D_TH4Qyk.js +6 -0
- package/playground/vizard/assets/scheme-CTXRt_ZJ.js +6 -0
- package/playground/vizard/assets/scss-Rf_ppwBg.js +8 -0
- package/playground/vizard/assets/shell-osqRiq1b.js +6 -0
- package/playground/vizard/assets/solidity-BTHmi1CB.js +6 -0
- package/playground/vizard/assets/sophia-BRe4RArb.js +6 -0
- package/playground/vizard/assets/sparql-CaSv-uNl.js +6 -0
- package/playground/vizard/assets/sql-CHiRcria.js +6 -0
- package/playground/vizard/assets/st-CCGZ7KTi.js +6 -0
- package/playground/vizard/assets/swift-DeyDsJzf.js +8 -0
- package/playground/vizard/assets/systemverilog-RSGMMa-l.js +6 -0
- package/playground/vizard/assets/tcl-B28K5YOH.js +6 -0
- package/playground/vizard/assets/ts.worker-VACfgpbU.js +37021 -0
- package/playground/vizard/assets/tsMode-DWjmFJDZ.js +16 -0
- package/playground/vizard/assets/twig-ChoE7Tfw.js +6 -0
- package/playground/vizard/assets/typescript-3uQjFVUM.js +6 -0
- package/playground/vizard/assets/uikit-M_i__YCU.js +1352 -0
- package/playground/vizard/assets/vb-BCnlgLOU.js +6 -0
- package/playground/vizard/assets/wgsl-DlxrJ_uh.js +303 -0
- package/playground/vizard/assets/xml-DnmeLHVb.js +6 -0
- package/playground/vizard/assets/yaml-ByRsSZUB.js +6 -0
- package/playground/vizard/download/react-typescript-antd-table.zip +0 -0
- package/playground/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
- package/playground/vizard/favicon.ico +0 -0
- package/playground/vizard/fonts/Inter-Bold.woff +0 -0
- package/playground/vizard/fonts/Inter-Bold.woff2 +0 -0
- package/playground/vizard/fonts/Inter-Medium.woff +0 -0
- package/playground/vizard/fonts/Inter-Medium.woff2 +0 -0
- package/playground/vizard/fonts/Inter-Regular.woff +0 -0
- package/playground/vizard/fonts/Inter-Regular.woff2 +0 -0
- package/playground/vizard/fonts/Inter-SemiBold.woff +0 -0
- package/playground/vizard/fonts/Inter-SemiBold.woff2 +0 -0
- package/playground/vizard/fonts/JetBrainsMono-Bold.woff +0 -0
- package/playground/vizard/fonts/JetBrainsMono-Bold.woff2 +0 -0
- package/playground/vizard/fonts/JetBrainsMono-Medium.woff +0 -0
- package/playground/vizard/fonts/JetBrainsMono-Medium.woff2 +0 -0
- package/playground/vizard/fonts/JetBrainsMono-Regular.woff +0 -0
- package/playground/vizard/fonts/JetBrainsMono-Regular.woff2 +0 -0
- package/playground/vizard/fonts/SourceCodePro-Regular.woff +0 -0
- package/playground/vizard/fonts/SourceCodePro-Regular.woff2 +0 -0
- package/playground/vizard/fonts/text-security-disc.woff +0 -0
- package/playground/vizard/fonts/text-security-disc.woff2 +0 -0
- package/playground/vizard/index.html +20 -0
- package/playground/vizard/logos/angular.svg +1 -0
- package/playground/vizard/logos/js.svg +1 -0
- package/playground/vizard/logos/react.svg +1 -0
- package/playground/vizard/logos/svelte.svg +1 -0
- package/playground/vizard/logos/ts.svg +1 -0
- package/playground/vizard/logos/vue.svg +1 -0
- package/playground/vizard/preview/react-typescript-antd-table/assets/index-C6xomtdV.js +355 -0
- package/playground/vizard/preview/react-typescript-antd-table/assets/index-D47x4Gho.css +1 -0
- package/playground/vizard/preview/react-typescript-antd-table/index.html +14 -0
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-D47x4Gho.css +1 -0
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-DlSl_JqR.js +57 -0
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/index.html +14 -0
- package/playground/assets/CachePane-9673c7ae.js +0 -1
- package/playground/assets/GraphiQLSandbox-53d3feeb.js +0 -268
- package/playground/assets/GraphiQLSandbox-8134e867.css +0 -1
- package/playground/assets/SchemaReference-ef4fa07a.js +0 -1
- package/playground/assets/SqlQueryTab-3e2bdfa2.js +0 -1
- package/playground/assets/bigquery-da521185.svg +0 -7
- package/playground/assets/brace-fold-6a775a2a.js +0 -1
- package/playground/assets/clickhouse-c923cfe7.svg +0 -15
- package/playground/assets/closebrackets-8dae6aa3.js +0 -2
- package/playground/assets/codemirror-3e55eb16.js +0 -24
- package/playground/assets/comment-3e14e4d5.js +0 -2
- package/playground/assets/crate-b646e4b5.svg +0 -9
- package/playground/assets/deepnote-6b5057ec.svg +0 -1
- package/playground/assets/dialog-a3340072.js +0 -1
- package/playground/assets/dialog-b108f254.js +0 -1
- package/playground/assets/druid-749d725a.svg +0 -6
- package/playground/assets/excel-d8d00a7e.svg +0 -1
- package/playground/assets/firebolt-f9ba6fb1.svg +0 -11
- package/playground/assets/foldgutter-04638de0.js +0 -1
- package/playground/assets/forEachState-6d514dbd.js +0 -1
- package/playground/assets/google-data-studio-8fefa10d.svg +0 -1
- package/playground/assets/google-sheets-c7f3e3ba.svg +0 -1
- package/playground/assets/hex-d653256d.svg +0 -1
- package/playground/assets/hightouch-263b24e1.svg +0 -1
- package/playground/assets/hint-2f6f4aaa.js +0 -1
- package/playground/assets/hint-35bc0266.js +0 -1
- package/playground/assets/index-21441f59.js +0 -15
- package/playground/assets/index-5b7876a6.js +0 -24
- package/playground/assets/index-f32c771c.js +0 -2935
- package/playground/assets/info-2f09b005.js +0 -1
- package/playground/assets/info-addon-ccdc82e5.js +0 -1
- package/playground/assets/javascript-1746d201.js +0 -1
- package/playground/assets/jump-1975be72.js +0 -1
- package/playground/assets/jump-to-line-00f030bc.js +0 -1
- package/playground/assets/jupyter-cc6ef4a6.svg +0 -1
- package/playground/assets/lint-087d334a.js +0 -1
- package/playground/assets/lint-0dc04469.js +0 -1
- package/playground/assets/lint-d3c9ba5b.js +0 -1
- package/playground/assets/matchbrackets-08ac6e5b.js +0 -1
- package/playground/assets/matchbrackets-8cf1c673.js +0 -1
- package/playground/assets/materialize-1c275282.svg +0 -7
- package/playground/assets/metabase-94537ada.svg +0 -1
- package/playground/assets/mode-0a6ca237.js +0 -1
- package/playground/assets/mode-55dee06f.js +0 -1
- package/playground/assets/mode-6f83539b.js +0 -1
- package/playground/assets/mongodb-ff875234.svg +0 -5
- package/playground/assets/observable-1fb9435c.svg +0 -1
- package/playground/assets/oracle-ac621595.svg +0 -10
- package/playground/assets/power-bi-f8d15f9c.svg +0 -1
- package/playground/assets/questdb-e8a2159a.svg +0 -53
- package/playground/assets/redshift-e3635b1b.svg +0 -9
- package/playground/assets/search-3880dafb.js +0 -2
- package/playground/assets/searchcursor-c88732e4.js +0 -7
- package/playground/assets/searchcursor-f596c4b5.js +0 -1
- package/playground/assets/show-hint-61147df4.js +0 -1
- package/playground/assets/sqlFormatter-f7d64f52.js +0 -7
- package/playground/assets/streamlit-77ef93a9.svg +0 -1
- package/playground/assets/sublime-4489239f.js +0 -6
- package/playground/assets/superset-9a4f216d.svg +0 -1
- package/playground/assets/tableau-841bb88e.svg +0 -1
- package/playground/assets/thoughtspot-3774b7ec.svg +0 -1
- package/playground/chart-renderers/angular/index.html +0 -13
- package/playground/chart-renderers/angular/main.c9ec6970e8db9607c52c.js +0 -1
- package/playground/chart-renderers/angular/polyfills.5e0ce2c1a99c8658e3f9.js +0 -1
- package/playground/chart-renderers/angular/runtime.acf0dec4155e77772545.js +0 -1
- package/playground/chart-renderers/angular/styles.c241fdf862898bf70e5f.css +0 -1
- package/playground/chart-renderers/react/index.html +0 -1
- package/playground/chart-renderers/react/static/css/main.1607577d.css +0 -9
- package/playground/chart-renderers/react/static/js/main.71cb3173.js +0 -2
- package/playground/chart-renderers/vue/index.html +0 -1
- package/playground/chart-renderers/vue/js/app.f3bd331b.js +0 -2
- package/playground/chart-renderers/vue/js/chunk-vendors.8740c156.js +0 -308
- /package/playground/assets/{athena-6bb5702d.svg → athena-ojPCDZsu.svg} +0 -0
- /package/playground/assets/{hive-f1d55e07.svg → hive-CnKOdnG1.svg} +0 -0
- /package/playground/assets/{index-af3b87a2.css → index-xEIXRErq.css} +0 -0
- /package/playground/assets/{mssql-ee163b5c.svg → mssql-D2BHkfVq.svg} +0 -0
- /package/playground/assets/{mysql-505410e7.svg → mysql-BeONLFsC.svg} +0 -0
- /package/playground/assets/{postgres-f2e5378f.svg → postgres-CRAWabOt.svg} +0 -0
- /package/playground/assets/{presto-23044820.svg → presto-CuvrYmB5.svg} +0 -0
- /package/playground/assets/{semantic-layer-ab287c7b.svg → semantic-layer-B8UQ_kwI.svg} +0 -0
- /package/playground/assets/{snowflake-6ddc094d.svg → snowflake-BQpm6tUS.svg} +0 -0
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import{g as kr,j as _,a as V,R as be,b as Yu,_ as Z,c as jo,d as Zu,u as Uo,e as Ut,f as Xu,h as Ku,r as Bo,m as el,i as tl,s as nl}from"./index-f32c771c.js";function Zn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zn=function(n){return typeof n}:Zn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zn(t)}function pt(t){return Zn(t)=="object"&&t!==null}var lc=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",C8=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",Ge=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function _i(t,e){for(var n=/\r\n|[\n\r]/g,r=1,i=e+1,o;(o=n.exec(t.body))&&o.index<e;)r+=1,i=e+1-(o.index+o[0].length);return{line:r,column:i}}function rl(t){return fc(t.source,_i(t.source,t.start))}function fc(t,e){var n=t.locationOffset.column-1,r=Xn(n)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,s=e.line===1?n:0,u=e.column+s,c="".concat(t.name,":").concat(a,":").concat(u,`
|
|
2
|
-
`),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var d=Math.floor(u/80),h=u%80,p=[],m=0;m<f.length;m+=80)p.push(f.slice(m,m+80));return c+zo([["".concat(a),p[0]]].concat(p.slice(1,d+1).map(function(y){return["",y]}),[[" ",Xn(h-1)+"^"],["",p[d+1]]]))}return c+zo([["".concat(a-1),l[i-1]],["".concat(a),f],["",Xn(u-1)+"^"],["".concat(a+1),l[i+1]]])}function zo(t){var e=t.filter(function(r){r[0];var i=r[1];return i!==void 0}),n=Math.max.apply(Math,e.map(function(r){var i=r[0];return i.length}));return e.map(function(r){var i=r[0],o=r[1];return il(n,i)+(o?" | "+o:" |")}).join(`
|
|
3
|
-
`)}function Xn(t){return Array(t+1).join(" ")}function il(t,e){return Xn(t-e.length)+e}function Kn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kn=function(n){return typeof n}:Kn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kn(t)}function Go(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ol(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Go(Object(n),!0).forEach(function(r){al(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cl(t,e,n){return e&&Qo(t.prototype,e),n&&Qo(t,n),t}function ul(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_n(t,e)}function ll(t){var e=dc();return function(){var r=En(t),i;if(e){var o=En(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pc(this,i)}}function pc(t,e){return e&&(Kn(e)==="object"||typeof e=="function")?e:pn(t)}function pn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ei(t){var e=typeof Map=="function"?new Map:void 0;return Ei=function(r){if(r===null||!fl(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return er(r,arguments,En(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_n(i,r)},Ei(t)}function er(t,e,n){return dc()?er=Reflect.construct:er=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),c=new u;return a&&_n(c,a.prototype),c},er.apply(null,arguments)}function dc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function fl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _n(t,e){return _n=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_n(t,e)}function En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},En(t)}var C=function(t){ul(n,t);var e=ll(n);function n(r,i,o,a,s,u,c){var l,f,d,h;sl(this,n),h=e.call(this,r),h.name="GraphQLError",h.originalError=u!=null?u:void 0,h.nodes=Ho(Array.isArray(i)?i:i?[i]:void 0);for(var p=[],m=0,y=(b=h.nodes)!==null&&b!==void 0?b:[];m<y.length;m++){var b,g=y[m],k=g.loc;k!=null&&p.push(k)}p=Ho(p),h.source=o!=null?o:(l=p)===null||l===void 0?void 0:l[0].source,h.positions=a!=null?a:(f=p)===null||f===void 0?void 0:f.map(function(N){return N.start}),h.locations=a&&o?a.map(function(N){return _i(o,N)}):(d=p)===null||d===void 0?void 0:d.map(function(N){return _i(N.source,N.start)}),h.path=s!=null?s:void 0;var D=u==null?void 0:u.extensions;return c==null&&pt(D)?h.extensions=ol({},D):h.extensions=c!=null?c:{},Object.defineProperties(pn(h),{message:{enumerable:!0},locations:{enumerable:h.locations!=null},path:{enumerable:h.path!=null},extensions:{enumerable:h.extensions!=null&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?(Object.defineProperty(pn(h),"stack",{value:u.stack,writable:!0,configurable:!0}),pc(h)):(Error.captureStackTrace?Error.captureStackTrace(pn(h),n):Object.defineProperty(pn(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return cl(n,[{key:"toString",value:function(){return pl(this)}},{key:Ge,get:function(){return"Object"}}]),n}(Ei(Error));function Ho(t){return t===void 0||t.length===0?void 0:t}function pl(t){var e=t.message;if(t.nodes)for(var n=0,r=t.nodes;n<r.length;n++){var i=r[n];i.loc&&(e+=`
|
|
4
|
-
|
|
5
|
-
`+rl(i.loc))}else if(t.source&&t.locations)for(var o=0,a=t.locations;o<a.length;o++){var s=a[o];e+=`
|
|
6
|
-
|
|
7
|
-
`+fc(t.source,s)}return e}function Oe(t,e,n){return new C("Syntax Error: ".concat(n),void 0,t,[e])}var v=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function Ce(t,e){var n=!!t;if(!n)throw new Error(e!=null?e:"Unexpected invariant triggered.")}var dl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const Ti=dl;function Ze(t){var e=t.prototype.toJSON;typeof e=="function"||Ce(0),t.prototype.inspect=e,Ti&&(t.prototype[Ti]=e)}var hc=function(){function t(n,r,i){this.start=n.start,this.end=r.end,this.startToken=n,this.endToken=r,this.source=i}var e=t.prototype;return e.toJSON=function(){return{start:this.start,end:this.end}},t}();Ze(hc);var le=function(){function t(n,r,i,o,a,s,u){this.kind=n,this.start=r,this.end=i,this.line=o,this.column=a,this.value=u,this.prev=s,this.next=null}var e=t.prototype;return e.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();Ze(le);function ki(t){return t!=null&&typeof t.kind=="string"}var S=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function tr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tr=function(n){return typeof n}:tr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tr(t)}var hl=10,vc=2;function A(t){return wr(t,[])}function wr(t,e){switch(tr(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return t===null?"null":vl(t,e);default:return String(t)}}function vl(t,e){if(e.indexOf(t)!==-1)return"[Circular]";var n=[].concat(e,[t]),r=yl(t);if(r!==void 0){var i=r.call(t);if(i!==t)return typeof i=="string"?i:wr(i,n)}else if(Array.isArray(t))return gl(t,n);return ml(t,n)}function ml(t,e){var n=Object.keys(t);if(n.length===0)return"{}";if(e.length>vc)return"["+bl(t)+"]";var r=n.map(function(i){var o=wr(t[i],e);return i+": "+o});return"{ "+r.join(", ")+" }"}function gl(t,e){if(t.length===0)return"[]";if(e.length>vc)return"[Array]";for(var n=Math.min(hl,t.length),r=t.length-n,i=[],o=0;o<n;++o)i.push(wr(t[o],e));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function yl(t){var e=t[String(Ti)];if(typeof e=="function")return e;if(typeof t.inspect=="function")return t.inspect}function bl(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){var n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}function H(t,e){var n=!!t;if(!n)throw new Error(e)}const Xe=function(e,n){return e instanceof n};function $o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _l(t,e,n){return e&&$o(t.prototype,e),n&&$o(t,n),t}var mc=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||H(0,"Body must be a string. Received: ".concat(A(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||H(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||H(0,"column in locationOffset is 1-indexed and must be positive.")}return _l(t,[{key:Ge,get:function(){return"Source"}}]),t}();function El(t){return Xe(t,mc)}var B=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Tl(t){var e=t.split(/\r\n|[\n\r]/g),n=kl(t);if(n!==0)for(var r=1;r<e.length;r++)e[r]=e[r].slice(n);for(var i=0;i<e.length&&Jo(e[i]);)++i;for(var o=e.length;o>i&&Jo(e[o-1]);)--o;return e.slice(i,o).join(`
|
|
8
|
-
`)}function Jo(t){for(var e=0;e<t.length;++e)if(t[e]!==" "&&t[e]!==" ")return!1;return!0}function kl(t){for(var e,n=!0,r=!0,i=0,o=null,a=0;a<t.length;++a)switch(t.charCodeAt(a)){case 13:t.charCodeAt(a+1)===10&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(o===null||i<o)&&(o=i),r=!1}return(e=o)!==null&&e!==void 0?e:0}function wl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=t.indexOf(`
|
|
9
|
-
`)===-1,i=t[0]===" "||t[0]===" ",o=t[t.length-1]==='"',a=t[t.length-1]==="\\",s=!r||o||a||n,u="";return s&&!(r&&i)&&(u+=`
|
|
10
|
-
`+e),u+=e?t.replace(/\n/g,`
|
|
11
|
-
`+e):t,s&&(u+=`
|
|
12
|
-
`),'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Sl=function(){function t(n){var r=new le(S.SOF,0,0,0,0,null);this.source=n,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){this.lastToken=this.token;var r=this.token=this.lookahead();return r},e.lookahead=function(){var r=this.token;if(r.kind!==S.EOF)do{var i;r=(i=r.next)!==null&&i!==void 0?i:r.next=Nl(this,r)}while(r.kind===S.COMMENT);return r},t}();function xl(t){return t===S.BANG||t===S.DOLLAR||t===S.AMP||t===S.PAREN_L||t===S.PAREN_R||t===S.SPREAD||t===S.COLON||t===S.EQUALS||t===S.AT||t===S.BRACKET_L||t===S.BRACKET_R||t===S.BRACE_L||t===S.PIPE||t===S.BRACE_R}function Ct(t){return isNaN(t)?S.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function Nl(t,e){for(var n=t.source,r=n.body,i=r.length,o=e.end;o<i;){var a=r.charCodeAt(o),s=t.line,u=1+o-t.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++t.line,t.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++t.line,t.lineStart=o;continue;case 33:return new le(S.BANG,o,o+1,s,u,e);case 35:return Al(n,o,s,u,e);case 36:return new le(S.DOLLAR,o,o+1,s,u,e);case 38:return new le(S.AMP,o,o+1,s,u,e);case 40:return new le(S.PAREN_L,o,o+1,s,u,e);case 41:return new le(S.PAREN_R,o,o+1,s,u,e);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return new le(S.SPREAD,o,o+3,s,u,e);break;case 58:return new le(S.COLON,o,o+1,s,u,e);case 61:return new le(S.EQUALS,o,o+1,s,u,e);case 64:return new le(S.AT,o,o+1,s,u,e);case 91:return new le(S.BRACKET_L,o,o+1,s,u,e);case 93:return new le(S.BRACKET_R,o,o+1,s,u,e);case 123:return new le(S.BRACE_L,o,o+1,s,u,e);case 124:return new le(S.PIPE,o,o+1,s,u,e);case 125:return new le(S.BRACE_R,o,o+1,s,u,e);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?Il(n,o,s,u,e,t):Cl(n,o,s,u,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ol(n,o,a,s,u,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Fl(n,o,s,u,e)}throw Oe(n,o,Dl(a))}var c=t.line,l=1+o-t.lineStart;return new le(S.EOF,i,i,c,l,e)}function Dl(t){return t<32&&t!==9&&t!==10&&t!==13?"Cannot contain the invalid character ".concat(Ct(t),"."):t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Ct(t),".")}function Al(t,e,n,r,i){var o=t.body,a,s=e;do a=o.charCodeAt(++s);while(!isNaN(a)&&(a>31||a===9));return new le(S.COMMENT,e,s,n,r,i,o.slice(e+1,s))}function Ol(t,e,n,r,i,o){var a=t.body,s=n,u=e,c=!1;if(s===45&&(s=a.charCodeAt(++u)),s===48){if(s=a.charCodeAt(++u),s>=48&&s<=57)throw Oe(t,u,"Invalid number, unexpected digit after 0: ".concat(Ct(s),"."))}else u=Wr(t,u,s),s=a.charCodeAt(u);if(s===46&&(c=!0,s=a.charCodeAt(++u),u=Wr(t,u,s),s=a.charCodeAt(u)),(s===69||s===101)&&(c=!0,s=a.charCodeAt(++u),(s===43||s===45)&&(s=a.charCodeAt(++u)),u=Wr(t,u,s),s=a.charCodeAt(u)),s===46||Ll(s))throw Oe(t,u,"Invalid number, expected digit but got: ".concat(Ct(s),"."));return new le(c?S.FLOAT:S.INT,e,u,r,i,o,a.slice(e,u))}function Wr(t,e,n){var r=t.body,i=e,o=n;if(o>=48&&o<=57){do o=r.charCodeAt(++i);while(o>=48&&o<=57);return i}throw Oe(t,i,"Invalid number, expected digit but got: ".concat(Ct(o),"."))}function Cl(t,e,n,r,i){for(var o=t.body,a=e+1,s=a,u=0,c="";a<o.length&&!isNaN(u=o.charCodeAt(a))&&u!==10&&u!==13;){if(u===34)return c+=o.slice(s,a),new le(S.STRING,e,a+1,n,r,i,c);if(u<32&&u!==9)throw Oe(t,a,"Invalid character within String: ".concat(Ct(u),"."));if(++a,u===92){switch(c+=o.slice(s,a-1),u=o.charCodeAt(a),u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=`
|
|
13
|
-
`;break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:{var l=Rl(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(l<0){var f=o.slice(a+1,a+5);throw Oe(t,a,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l),a+=4;break}default:throw Oe(t,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++a,s=a}}throw Oe(t,a,"Unterminated string.")}function Il(t,e,n,r,i,o){for(var a=t.body,s=e+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(c===34&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34)return l+=a.slice(u,s),new le(S.BLOCK_STRING,e,s+3,n,r,i,Tl(l));if(c<32&&c!==9&&c!==10&&c!==13)throw Oe(t,s,"Invalid character within String: ".concat(Ct(c),"."));c===10?(++s,++o.line,o.lineStart=s):c===13?(a.charCodeAt(s+1)===10?s+=2:++s,++o.line,o.lineStart=s):c===92&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34&&a.charCodeAt(s+3)===34?(l+=a.slice(u,s)+'"""',s+=4,u=s):++s}throw Oe(t,s,"Unterminated string.")}function Rl(t,e,n,r){return jn(t)<<12|jn(e)<<8|jn(n)<<4|jn(r)}function jn(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function Fl(t,e,n,r,i){for(var o=t.body,a=o.length,s=e+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new le(S.NAME,e,s,n,r,i,o.slice(e,s))}function Ll(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}function It(t,e){var n=new Yi(t,e);return n.parseDocument()}function ql(t,e){var n=new Yi(t,e);n.expectToken(S.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(S.EOF),r}function I8(t,e){var n=new Yi(t,e);n.expectToken(S.SOF);var r=n.parseTypeReference();return n.expectToken(S.EOF),r}var Yi=function(){function t(n,r){var i=El(n)?n:new mc(n);this._lexer=new Sl(i),this._options=r}var e=t.prototype;return e.parseName=function(){var r=this.expectToken(S.NAME);return{kind:v.NAME,value:r.value,loc:this.loc(r)}},e.parseDocument=function(){var r=this._lexer.token;return{kind:v.DOCUMENT,definitions:this.many(S.SOF,this.parseDefinition,S.EOF),loc:this.loc(r)}},e.parseDefinition=function(){if(this.peek(S.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(S.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var r=this._lexer.token;if(this.peek(S.BRACE_L))return{kind:v.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var i=this.parseOperationType(),o;return this.peek(S.NAME)&&(o=this.parseName()),{kind:v.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},e.parseOperationType=function(){var r=this.expectToken(S.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},e.parseVariableDefinitions=function(){return this.optionalMany(S.PAREN_L,this.parseVariableDefinition,S.PAREN_R)},e.parseVariableDefinition=function(){var r=this._lexer.token;return{kind:v.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(S.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(S.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},e.parseVariable=function(){var r=this._lexer.token;return this.expectToken(S.DOLLAR),{kind:v.VARIABLE,name:this.parseName(),loc:this.loc(r)}},e.parseSelectionSet=function(){var r=this._lexer.token;return{kind:v.SELECTION_SET,selections:this.many(S.BRACE_L,this.parseSelection,S.BRACE_R),loc:this.loc(r)}},e.parseSelection=function(){return this.peek(S.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var r=this._lexer.token,i=this.parseName(),o,a;return this.expectOptionalToken(S.COLON)?(o=i,a=this.parseName()):a=i,{kind:v.FIELD,alias:o,name:a,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(S.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},e.parseArguments=function(r){var i=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(S.PAREN_L,i,S.PAREN_R)},e.parseArgument=function(){var r=this._lexer.token,i=this.parseName();return this.expectToken(S.COLON),{kind:v.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(r)}},e.parseConstArgument=function(){var r=this._lexer.token;return{kind:v.ARGUMENT,name:this.parseName(),value:(this.expectToken(S.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},e.parseFragment=function(){var r=this._lexer.token;this.expectToken(S.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(S.NAME)?{kind:v.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:v.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},e.parseFragmentDefinition=function(){var r,i=this._lexer.token;return this.expectKeyword("fragment"),((r=this._options)===null||r===void 0?void 0:r.experimentalFragmentVariables)===!0?{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(r){var i=this._lexer.token;switch(i.kind){case S.BRACKET_L:return this.parseList(r);case S.BRACE_L:return this.parseObject(r);case S.INT:return this._lexer.advance(),{kind:v.INT,value:i.value,loc:this.loc(i)};case S.FLOAT:return this._lexer.advance(),{kind:v.FLOAT,value:i.value,loc:this.loc(i)};case S.STRING:case S.BLOCK_STRING:return this.parseStringLiteral();case S.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:v.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:v.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:v.NULL,loc:this.loc(i)};default:return{kind:v.ENUM,value:i.value,loc:this.loc(i)}}case S.DOLLAR:if(!r)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var r=this._lexer.token;return this._lexer.advance(),{kind:v.STRING,value:r.value,block:r.kind===S.BLOCK_STRING,loc:this.loc(r)}},e.parseList=function(r){var i=this,o=this._lexer.token,a=function(){return i.parseValueLiteral(r)};return{kind:v.LIST,values:this.any(S.BRACKET_L,a,S.BRACKET_R),loc:this.loc(o)}},e.parseObject=function(r){var i=this,o=this._lexer.token,a=function(){return i.parseObjectField(r)};return{kind:v.OBJECT,fields:this.any(S.BRACE_L,a,S.BRACE_R),loc:this.loc(o)}},e.parseObjectField=function(r){var i=this._lexer.token,o=this.parseName();return this.expectToken(S.COLON),{kind:v.OBJECT_FIELD,name:o,value:this.parseValueLiteral(r),loc:this.loc(i)}},e.parseDirectives=function(r){for(var i=[];this.peek(S.AT);)i.push(this.parseDirective(r));return i},e.parseDirective=function(r){var i=this._lexer.token;return this.expectToken(S.AT),{kind:v.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(i)}},e.parseTypeReference=function(){var r=this._lexer.token,i;return this.expectOptionalToken(S.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(S.BRACKET_R),i={kind:v.LIST_TYPE,type:i,loc:this.loc(r)}):i=this.parseNamedType(),this.expectOptionalToken(S.BANG)?{kind:v.NON_NULL_TYPE,type:i,loc:this.loc(r)}:i},e.parseNamedType=function(){var r=this._lexer.token;return{kind:v.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},e.parseTypeSystemDefinition=function(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===S.NAME)switch(r.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()}throw this.unexpected(r)},e.peekDescription=function(){return this.peek(S.STRING)||this.peek(S.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),a=this.many(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);return{kind:v.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:a,loc:this.loc(r)}},e.parseOperationTypeDefinition=function(){var r=this._lexer.token,i=this.parseOperationType();this.expectToken(S.COLON);var o=this.parseNamedType();return{kind:v.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(r)}},e.parseScalarTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),a=this.parseDirectives(!0);return{kind:v.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:a,loc:this.loc(r)}},e.parseObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:v.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:a,directives:s,fields:u,loc:this.loc(r)}},e.parseImplementsInterfaces=function(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(S.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(S.AMP)||this.peek(S.NAME));return i}return this.delimitedMany(S.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var r;return((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLEmptyFields)===!0&&this.peek(S.BRACE_L)&&this._lexer.lookahead().kind===S.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(S.BRACE_L,this.parseFieldDefinition,S.BRACE_R)},e.parseFieldDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),a=this.parseArgumentDefs();this.expectToken(S.COLON);var s=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:v.FIELD_DEFINITION,description:i,name:o,arguments:a,type:s,directives:u,loc:this.loc(r)}},e.parseArgumentDefs=function(){return this.optionalMany(S.PAREN_L,this.parseInputValueDef,S.PAREN_R)},e.parseInputValueDef=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(S.COLON);var a=this.parseTypeReference(),s;this.expectOptionalToken(S.EQUALS)&&(s=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:v.INPUT_VALUE_DEFINITION,description:i,name:o,type:a,defaultValue:s,directives:u,loc:this.loc(r)}},e.parseInterfaceTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:v.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:a,directives:s,fields:u,loc:this.loc(r)}},e.parseUnionTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseUnionMemberTypes();return{kind:v.UNION_TYPE_DEFINITION,description:i,name:o,directives:a,types:s,loc:this.loc(r)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(S.EQUALS)?this.delimitedMany(S.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();return{kind:v.ENUM_TYPE_DEFINITION,description:i,name:o,directives:a,values:s,loc:this.loc(r)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(S.BRACE_L,this.parseEnumValueDefinition,S.BRACE_R)},e.parseEnumValueDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),a=this.parseDirectives(!0);return{kind:v.ENUM_VALUE_DEFINITION,description:i,name:o,directives:a,loc:this.loc(r)}},e.parseInputObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();return{kind:v.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:a,fields:s,loc:this.loc(r)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(S.BRACE_L,this.parseInputValueDef,S.BRACE_R)},e.parseTypeSystemExtension=function(){var r=this._lexer.lookahead();if(r.kind===S.NAME)switch(r.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(r)},e.parseSchemaExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.optionalMany(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:v.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(r)}},e.parseScalarTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:v.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(r)}},e.parseObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(o.length===0&&a.length===0&&s.length===0)throw this.unexpected();return{kind:v.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:a,fields:s,loc:this.loc(r)}},e.parseInterfaceTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(o.length===0&&a.length===0&&s.length===0)throw this.unexpected();return{kind:v.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:a,fields:s,loc:this.loc(r)}},e.parseUnionTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseUnionMemberTypes();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:v.UNION_TYPE_EXTENSION,name:i,directives:o,types:a,loc:this.loc(r)}},e.parseEnumTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:v.ENUM_TYPE_EXTENSION,name:i,directives:o,values:a,loc:this.loc(r)}},e.parseInputObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:v.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:a,loc:this.loc(r)}},e.parseDirectiveDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(S.AT);var o=this.parseName(),a=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:v.DIRECTIVE_DEFINITION,description:i,name:o,arguments:a,repeatable:s,locations:u,loc:this.loc(r)}},e.parseDirectiveLocations=function(){return this.delimitedMany(S.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var r=this._lexer.token,i=this.parseName();if(B[i.value]!==void 0)return i;throw this.unexpected(r)},e.loc=function(r){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new hc(r,this._lexer.lastToken,this._lexer.source)},e.peek=function(r){return this._lexer.token.kind===r},e.expectToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i;throw Oe(this._lexer.source,i.start,"Expected ".concat(gc(r),", found ").concat(Yr(i),"."))},e.expectOptionalToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i},e.expectKeyword=function(r){var i=this._lexer.token;if(i.kind===S.NAME&&i.value===r)this._lexer.advance();else throw Oe(this._lexer.source,i.start,'Expected "'.concat(r,'", found ').concat(Yr(i),"."))},e.expectOptionalKeyword=function(r){var i=this._lexer.token;return i.kind===S.NAME&&i.value===r?(this._lexer.advance(),!0):!1},e.unexpected=function(r){var i=r!=null?r:this._lexer.token;return Oe(this._lexer.source,i.start,"Unexpected ".concat(Yr(i),"."))},e.any=function(r,i,o){this.expectToken(r);for(var a=[];!this.expectOptionalToken(o);)a.push(i.call(this));return a},e.optionalMany=function(r,i,o){if(this.expectOptionalToken(r)){var a=[];do a.push(i.call(this));while(!this.expectOptionalToken(o));return a}return[]},e.many=function(r,i,o){this.expectToken(r);var a=[];do a.push(i.call(this));while(!this.expectOptionalToken(o));return a},e.delimitedMany=function(r,i){this.expectOptionalToken(r);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(r));return o},t}();function Yr(t){var e=t.value;return gc(t.kind)+(e!=null?' "'.concat(e,'"'):"")}function gc(t){return xl(t)?'"'.concat(t,'"'):t}var Pl={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"]},dn=Object.freeze({});function Ye(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pl,r=void 0,i=Array.isArray(t),o=[t],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],d=[],h=t;do{a++;var p=a===o.length,m=p&&s.length!==0;if(p){if(c=d.length===0?void 0:f[f.length-1],u=l,l=d.pop(),m){if(i)u=u.slice();else{for(var y={},b=0,g=Object.keys(u);b<g.length;b++){var k=g[b];y[k]=u[k]}u=y}for(var D=0,N=0;N<s.length;N++){var x=s[N][0],I=s[N][1];i&&(x-=D),i&&I===null?(u.splice(x,1),D++):u[x]=I}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,u=l?l[c]:h,u==null)continue;l&&f.push(c)}var P=void 0;if(!Array.isArray(u)){if(!ki(u))throw new Error("Invalid AST Node: ".concat(A(u),"."));var z=Tn(e,u.kind,p);if(z){if(P=z.call(e,u,c,l,f,d),P===dn)break;if(P===!1){if(!p){f.pop();continue}}else if(P!==void 0&&(s.push([c,P]),!p))if(ki(P))u=P;else{f.pop();continue}}}if(P===void 0&&m&&s.push([c,u]),p)f.pop();else{var j;r={inArray:i,index:a,keys:o,edits:s,prev:r},i=Array.isArray(u),o=i?u:(j=n[u.kind])!==null&&j!==void 0?j:[],a=-1,s=[],l&&d.push(l),l=u}}while(r!==void 0);return s.length!==0&&(h=s[s.length-1][1]),h}function yc(t){var e=new Array(t.length);return{enter:function(r){for(var i=0;i<t.length;i++)if(e[i]==null){var o=Tn(t[i],r.kind,!1);if(o){var a=o.apply(t[i],arguments);if(a===!1)e[i]=r;else if(a===dn)e[i]=dn;else if(a!==void 0)return a}}},leave:function(r){for(var i=0;i<t.length;i++)if(e[i]==null){var o=Tn(t[i],r.kind,!0);if(o){var a=o.apply(t[i],arguments);if(a===dn)e[i]=dn;else if(a!==void 0&&a!==!1)return a}}else e[i]===r&&(e[i]=null)}}}function Tn(t,e,n){var r=t[e];if(r){if(!n&&typeof r=="function")return r;var i=n?r.leave:r.enter;if(typeof i=="function")return i}else{var o=n?t.leave:t.enter;if(o){if(typeof o=="function")return o;var a=o[e];if(typeof a=="function")return a}}}var Ml=Array.prototype.find?function(t,e){return Array.prototype.find.call(t,e)}:function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(e(r))return r}};const kn=Ml;var Vl=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})};const De=Vl;function jl(t,e,n){var r,i=t instanceof Error?t:new Error("Unexpected error value: "+A(t));return Array.isArray(i.path)?i:new C(i.message,(r=i.nodes)!==null&&r!==void 0?r:e,i.source,i.positions,n,i)}var Ul=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function R8(t){var e=bc(t);if(e)throw e;return t}function bc(t){if(typeof t=="string"||H(0,"Expected name to be a string."),t.length>1&&t[0]==="_"&&t[1]==="_")return new C('Name "'.concat(t,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!Ul.test(t))return new C('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(t,'" does not.'))}var Bl=Object.entries||function(t){return Object.keys(t).map(function(e){return[e,t[e]]})};const Xt=Bl;function Dt(t,e){return t.reduce(function(n,r){return n[e(r)]=r,n},Object.create(null))}function Sr(t,e){for(var n=Object.create(null),r=0,i=Xt(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=e(s,a)}return n}function Ie(t){if(Object.getPrototypeOf(t)===null)return t;for(var e=Object.create(null),n=0,r=Xt(t);n<r.length;n++){var i=r[n],o=i[0],a=i[1];e[o]=a}return e}function xt(t,e,n){return t.reduce(function(r,i){return r[e(i)]=n(i),r},Object.create(null))}var zl=5;function _t(t,e){var n=typeof t=="string"?[t,e]:[void 0,t],r=n[0],i=n[1],o=" Did you mean ";r&&(o+=r+" ");var a=i.map(function(c){return'"'.concat(c,'"')});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,zl),u=s.pop();return o+s.join(", ")+", or "+u+"?"}function Wo(t){return t}function _c(t,e){for(var n=0,r=0;n<t.length&&r<e.length;){var i=t.charCodeAt(n),o=e.charCodeAt(r);if(Un(i)&&Un(o)){var a=0;do++n,a=a*10+i-wi,i=t.charCodeAt(n);while(Un(i)&&a>0);var s=0;do++r,s=s*10+o-wi,o=e.charCodeAt(r);while(Un(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 t.length-e.length}var wi=48,Gl=57;function Un(t){return!isNaN(t)&&wi<=t&&t<=Gl}function Mt(t,e){for(var n=Object.create(null),r=new Ql(t),i=Math.floor(t.length*.4)+1,o=0;o<e.length;o++){var a=e[o],s=r.measure(a,i);s!==void 0&&(n[a]=s)}return Object.keys(n).sort(function(u,c){var l=n[u]-n[c];return l!==0?l:_c(u,c)})}var Ql=function(){function t(n){this._input=n,this._inputLowerCase=n.toLowerCase(),this._inputArray=Yo(this._inputLowerCase),this._rows=[new Array(n.length+1).fill(0),new Array(n.length+1).fill(0),new Array(n.length+1).fill(0)]}var e=t.prototype;return e.measure=function(r,i){if(this._input===r)return 0;var o=r.toLowerCase();if(this._inputLowerCase===o)return 1;var a=Yo(o),s=this._inputArray;if(a.length<s.length){var u=a;a=s,s=u}var c=a.length,l=s.length;if(!(c-l>i)){for(var f=this._rows,d=0;d<=l;d++)f[0][d]=d;for(var h=1;h<=c;h++){for(var p=f[(h-1)%3],m=f[h%3],y=m[0]=h,b=1;b<=l;b++){var g=a[h-1]===s[b-1]?0:1,k=Math.min(p[b]+1,m[b-1]+1,p[b-1]+g);if(h>1&&b>1&&a[h-1]===s[b-2]&&a[h-2]===s[b-1]){var D=f[(h-2)%3][b-2];k=Math.min(k,D+1)}k<y&&(y=k),m[b]=k}if(y>i)return}var N=f[c%3][l];return N<=i?N:void 0}},t}();function Yo(t){for(var e=t.length,n=new Array(e),r=0;r<e;++r)n[r]=t.charCodeAt(r);return n}function ie(t){return Ye(t,{leave:$l})}var Hl=80,$l={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return q(e.definitions,`
|
|
14
|
-
|
|
15
|
-
`)+`
|
|
16
|
-
`},OperationDefinition:function(e){var n=e.operation,r=e.name,i=se("(",q(e.variableDefinitions,", "),")"),o=q(e.directives," "),a=e.selectionSet;return!r&&!o&&!i&&n==="query"?a:q([n,q([r,i]),o,a]," ")},VariableDefinition:function(e){var n=e.variable,r=e.type,i=e.defaultValue,o=e.directives;return n+": "+r+se(" = ",i)+se(" ",q(o," "))},SelectionSet:function(e){var n=e.selections;return Je(n)},Field:function(e){var n=e.alias,r=e.name,i=e.arguments,o=e.directives,a=e.selectionSet,s=se("",n,": ")+r,u=s+se("(",q(i,", "),")");return u.length>Hl&&(u=s+se(`(
|
|
17
|
-
`,nr(q(i,`
|
|
18
|
-
`)),`
|
|
19
|
-
)`)),q([u,q(o," "),a]," ")},Argument:function(e){var n=e.name,r=e.value;return n+": "+r},FragmentSpread:function(e){var n=e.name,r=e.directives;return"..."+n+se(" ",q(r," "))},InlineFragment:function(e){var n=e.typeCondition,r=e.directives,i=e.selectionSet;return q(["...",se("on ",n),q(r," "),i]," ")},FragmentDefinition:function(e){var n=e.name,r=e.typeCondition,i=e.variableDefinitions,o=e.directives,a=e.selectionSet;return"fragment ".concat(n).concat(se("(",q(i,", "),")")," ")+"on ".concat(r," ").concat(se("",q(o," ")," "))+a},IntValue:function(e){var n=e.value;return n},FloatValue:function(e){var n=e.value;return n},StringValue:function(e,n){var r=e.value,i=e.block;return i?wl(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function(e){var n=e.value;return n?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var n=e.value;return n},ListValue:function(e){var n=e.values;return"["+q(n,", ")+"]"},ObjectValue:function(e){var n=e.fields;return"{"+q(n,", ")+"}"},ObjectField:function(e){var n=e.name,r=e.value;return n+": "+r},Directive:function(e){var n=e.name,r=e.arguments;return"@"+n+se("(",q(r,", "),")")},NamedType:function(e){var n=e.name;return n},ListType:function(e){var n=e.type;return"["+n+"]"},NonNullType:function(e){var n=e.type;return n+"!"},SchemaDefinition:$e(function(t){var e=t.directives,n=t.operationTypes;return q(["schema",q(e," "),Je(n)]," ")}),OperationTypeDefinition:function(e){var n=e.operation,r=e.type;return n+": "+r},ScalarTypeDefinition:$e(function(t){var e=t.name,n=t.directives;return q(["scalar",e,q(n," ")]," ")}),ObjectTypeDefinition:$e(function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return q(["type",e,se("implements ",q(n," & ")),q(r," "),Je(i)]," ")}),FieldDefinition:$e(function(t){var e=t.name,n=t.arguments,r=t.type,i=t.directives;return e+(Zo(n)?se(`(
|
|
20
|
-
`,nr(q(n,`
|
|
21
|
-
`)),`
|
|
22
|
-
)`):se("(",q(n,", "),")"))+": "+r+se(" ",q(i," "))}),InputValueDefinition:$e(function(t){var e=t.name,n=t.type,r=t.defaultValue,i=t.directives;return q([e+": "+n,se("= ",r),q(i," ")]," ")}),InterfaceTypeDefinition:$e(function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return q(["interface",e,se("implements ",q(n," & ")),q(r," "),Je(i)]," ")}),UnionTypeDefinition:$e(function(t){var e=t.name,n=t.directives,r=t.types;return q(["union",e,q(n," "),r&&r.length!==0?"= "+q(r," | "):""]," ")}),EnumTypeDefinition:$e(function(t){var e=t.name,n=t.directives,r=t.values;return q(["enum",e,q(n," "),Je(r)]," ")}),EnumValueDefinition:$e(function(t){var e=t.name,n=t.directives;return q([e,q(n," ")]," ")}),InputObjectTypeDefinition:$e(function(t){var e=t.name,n=t.directives,r=t.fields;return q(["input",e,q(n," "),Je(r)]," ")}),DirectiveDefinition:$e(function(t){var e=t.name,n=t.arguments,r=t.repeatable,i=t.locations;return"directive @"+e+(Zo(n)?se(`(
|
|
23
|
-
`,nr(q(n,`
|
|
24
|
-
`)),`
|
|
25
|
-
)`):se("(",q(n,", "),")"))+(r?" repeatable":"")+" on "+q(i," | ")}),SchemaExtension:function(e){var n=e.directives,r=e.operationTypes;return q(["extend schema",q(n," "),Je(r)]," ")},ScalarTypeExtension:function(e){var n=e.name,r=e.directives;return q(["extend scalar",n,q(r," ")]," ")},ObjectTypeExtension:function(e){var n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return q(["extend type",n,se("implements ",q(r," & ")),q(i," "),Je(o)]," ")},InterfaceTypeExtension:function(e){var n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return q(["extend interface",n,se("implements ",q(r," & ")),q(i," "),Je(o)]," ")},UnionTypeExtension:function(e){var n=e.name,r=e.directives,i=e.types;return q(["extend union",n,q(r," "),i&&i.length!==0?"= "+q(i," | "):""]," ")},EnumTypeExtension:function(e){var n=e.name,r=e.directives,i=e.values;return q(["extend enum",n,q(r," "),Je(i)]," ")},InputObjectTypeExtension:function(e){var n=e.name,r=e.directives,i=e.fields;return q(["extend input",n,q(r," "),Je(i)]," ")}};function $e(t){return function(e){return q([e.description,t(e)],`
|
|
26
|
-
`)}}function q(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(e=t==null?void 0:t.filter(function(r){return r}).join(n))!==null&&e!==void 0?e:""}function Je(t){return se(`{
|
|
27
|
-
`,nr(q(t,`
|
|
28
|
-
`)),`
|
|
29
|
-
}`)}function se(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?t+e+n:""}function nr(t){return se(" ",t.replace(/\n/g,`
|
|
30
|
-
`))}function Jl(t){return t.indexOf(`
|
|
31
|
-
`)!==-1}function Zo(t){return t!=null&&t.some(Jl)}function Si(t,e){switch(t.kind){case v.NULL:return null;case v.INT:return parseInt(t.value,10);case v.FLOAT:return parseFloat(t.value);case v.STRING:case v.ENUM:case v.BOOLEAN:return t.value;case v.LIST:return t.values.map(function(n){return Si(n,e)});case v.OBJECT:return xt(t.fields,function(n){return n.name.value},function(n){return Si(n.value,e)});case v.VARIABLE:return e==null?void 0:e[t.name.value]}Ce(0,"Unexpected value node: "+A(t))}function Xo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kt(t,e,n){return e&&Xo(t.prototype,e),n&&Xo(t,n),t}function wn(t){return Et(t)||oe(t)||ce(t)||je(t)||Re(t)||we(t)||xe(t)||re(t)}function Wl(t){if(!wn(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL type."));return t}function Et(t){return Xe(t,Tt)}function F8(t){if(!Et(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Scalar type."));return t}function oe(t){return Xe(t,Me)}function Yl(t){if(!oe(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Object type."));return t}function ce(t){return Xe(t,Dr)}function Zl(t){if(!ce(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Interface type."));return t}function je(t){return Xe(t,Ar)}function L8(t){if(!je(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Union type."));return t}function Re(t){return Xe(t,tn)}function q8(t){if(!Re(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Enum type."));return t}function we(t){return Xe(t,Zi)}function P8(t){if(!we(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Input Object type."));return t}function xe(t){return Xe(t,me)}function M8(t){if(!xe(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL List type."));return t}function re(t){return Xe(t,G)}function V8(t){if(!re(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL Non-Null type."));return t}function qe(t){return Et(t)||Re(t)||we(t)||xr(t)&&qe(t.ofType)}function j8(t){if(!qe(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL input type."));return t}function At(t){return Et(t)||oe(t)||ce(t)||je(t)||Re(t)||xr(t)&&At(t.ofType)}function U8(t){if(!At(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL output type."));return t}function dt(t){return Et(t)||Re(t)}function B8(t){if(!dt(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL leaf type."));return t}function ht(t){return oe(t)||ce(t)||je(t)}function z8(t){if(!ht(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL composite type."));return t}function Ot(t){return ce(t)||je(t)}function G8(t){if(!Ot(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL abstract type."));return t}function me(t){if(this instanceof me)this.ofType=Wl(t);else return new me(t)}me.prototype.toString=function(){return"["+String(this.ofType)+"]"};me.prototype.toJSON=function(){return this.toString()};Object.defineProperty(me.prototype,Ge,{get:function(){return"GraphQLList"}});Ze(me);function G(t){if(this instanceof G)this.ofType=Ec(t);else return new G(t)}G.prototype.toString=function(){return String(this.ofType)+"!"};G.prototype.toJSON=function(){return this.toString()};Object.defineProperty(G.prototype,Ge,{get:function(){return"GraphQLNonNull"}});Ze(G);function xr(t){return xe(t)||re(t)}function Q8(t){if(!xr(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL wrapping type."));return t}function Xl(t){return wn(t)&&!re(t)}function Ec(t){if(!Xl(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL nullable type."));return t}function Tc(t){if(t)return re(t)?t.ofType:t}function kc(t){return Et(t)||oe(t)||ce(t)||je(t)||Re(t)||we(t)}function H8(t){if(!kc(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL named type."));return t}function Ne(t){if(t){for(var e=t;xr(e);)e=e.ofType;return e}}function Nr(t){return typeof t=="function"?t():t}function en(t){return t&&t.length>0?t:void 0}var Tt=function(){function t(n){var r,i,o,a=(r=n.parseValue)!==null&&r!==void 0?r:Wo;this.name=n.name,this.description=n.description,this.specifiedByUrl=n.specifiedByUrl,this.serialize=(i=n.serialize)!==null&&i!==void 0?i:Wo,this.parseValue=a,this.parseLiteral=(o=n.parseLiteral)!==null&&o!==void 0?o:function(s,u){return a(Si(s,u))},this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),typeof n.name=="string"||H(0,"Must provide name."),n.specifiedByUrl==null||typeof n.specifiedByUrl=="string"||H(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(A(n.specifiedByUrl),".")),n.serialize==null||typeof n.serialize=="function"||H(0,"".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.')),n.parseLiteral&&(typeof n.parseValue=="function"&&typeof n.parseLiteral=="function"||H(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var e=t.prototype;return e.toConfig=function(){var r;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:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLScalarType"}}]),t}();Ze(Tt);var Me=function(){function t(n){this.name=n.name,this.description=n.description,this.isTypeOf=n.isTypeOf,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._fields=Sc.bind(void 0,n),this._interfaces=wc.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name."),n.isTypeOf==null||typeof n.isTypeOf=="function"||H(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(A(n.isTypeOf),"."))}var e=t.prototype;return e.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},e.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:xc(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLObjectType"}}]),t}();Ze(Me);function wc(t){var e,n=(e=Nr(t.interfaces))!==null&&e!==void 0?e:[];return Array.isArray(n)||H(0,"".concat(t.name," interfaces must be an Array or a function which returns an Array.")),n}function Sc(t){var e=Nr(t.fields);return $t(e)||H(0,"".concat(t.name," fields must be an object with field names as keys or a function which returns such an object.")),Sr(e,function(n,r){var i;$t(n)||H(0,"".concat(t.name,".").concat(r," field config must be an object.")),!("isDeprecated"in n)||H(0,"".concat(t.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),n.resolve==null||typeof n.resolve=="function"||H(0,"".concat(t.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(A(n.resolve),"."));var o=(i=n.args)!==null&&i!==void 0?i:{};$t(o)||H(0,"".concat(t.name,".").concat(r," args must be an object with argument names as keys."));var a=Xt(o).map(function(s){var u=s[0],c=s[1];return{name:u,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&Ie(c.extensions),astNode:c.astNode}});return{name:r,description:n.description,type:n.type,args:a,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:n.deprecationReason!=null,deprecationReason:n.deprecationReason,extensions:n.extensions&&Ie(n.extensions),astNode:n.astNode}})}function $t(t){return pt(t)&&!Array.isArray(t)}function xc(t){return Sr(t,function(e){return{description:e.description,type:e.type,args:Nc(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function Nc(t){return xt(t,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 Cn(t){return re(t.type)&&t.defaultValue===void 0}var Dr=function(){function t(n){this.name=n.name,this.description=n.description,this.resolveType=n.resolveType,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._fields=Sc.bind(void 0,n),this._interfaces=wc.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name."),n.resolveType==null||typeof n.resolveType=="function"||H(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(A(n.resolveType),"."))}var e=t.prototype;return e.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},e.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function(){var r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:xc(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLInterfaceType"}}]),t}();Ze(Dr);var Ar=function(){function t(n){this.name=n.name,this.description=n.description,this.resolveType=n.resolveType,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._types=Kl.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name."),n.resolveType==null||typeof n.resolveType=="function"||H(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(A(n.resolveType),"."))}var e=t.prototype;return e.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},e.toConfig=function(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLUnionType"}}]),t}();Ze(Ar);function Kl(t){var e=Nr(t.types);return Array.isArray(e)||H(0,"Must provide Array of types or a function which returns such an array for Union ".concat(t.name,".")),e}var tn=function(){function t(n){this.name=n.name,this.description=n.description,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._values=ef(this.name,n.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=Dt(this._values,function(r){return r.name}),typeof n.name=="string"||H(0,"Must provide name.")}var e=t.prototype;return e.getValues=function(){return this._values},e.getValue=function(r){return this._nameLookup[r]},e.serialize=function(r){var i=this._valueLookup.get(r);if(i===void 0)throw new C('Enum "'.concat(this.name,'" cannot represent value: ').concat(A(r)));return i.name},e.parseValue=function(r){if(typeof r!="string"){var i=A(r);throw new C('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Bn(this,i))}var o=this.getValue(r);if(o==null)throw new C('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+Bn(this,r));return o.value},e.parseLiteral=function(r,i){if(r.kind!==v.ENUM){var o=ie(r);throw new C('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+Bn(this,o),r)}var a=this.getValue(r.value);if(a==null){var s=ie(r);throw new C('Value "'.concat(s,'" does not exist in "').concat(this.name,'" enum.')+Bn(this,s),r)}return a.value},e.toConfig=function(){var r,i=xt(this.getValues(),function(o){return o.name},function(o){return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLEnumType"}}]),t}();Ze(tn);function Bn(t,e){var n=t.getValues().map(function(i){return i.name}),r=Mt(e,n);return _t("the enum value",r)}function ef(t,e){return $t(e)||H(0,"".concat(t," values must be an object with value names as keys.")),Xt(e).map(function(n){var r=n[0],i=n[1];return $t(i)||H(0,"".concat(t,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(A(i),".")),!("isDeprecated"in i)||H(0,"".concat(t,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:i.value!==void 0?i.value:r,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&Ie(i.extensions),astNode:i.astNode}})}var Zi=function(){function t(n){this.name=n.name,this.description=n.description,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._fields=tf.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name.")}var e=t.prototype;return e.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},e.toConfig=function(){var r,i=Sr(this.getFields(),function(o){return{description:o.description,type:o.type,defaultValue:o.defaultValue,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLInputObjectType"}}]),t}();Ze(Zi);function tf(t){var e=Nr(t.fields);return $t(e)||H(0,"".concat(t.name," fields must be an object with field names as keys or a function which returns such an object.")),Sr(e,function(n,r){return!("resolve"in n)||H(0,"".concat(t.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Ie(n.extensions),astNode:n.astNode}})}function Dc(t){return re(t.type)&&t.defaultValue===void 0}function xi(t,e){return t===e?!0:re(t)&&re(e)||xe(t)&&xe(e)?xi(t.ofType,e.ofType):!1}function Jt(t,e,n){return e===n?!0:re(n)?re(e)?Jt(t,e.ofType,n.ofType):!1:re(e)?Jt(t,e.ofType,n):xe(n)?xe(e)?Jt(t,e.ofType,n.ofType):!1:xe(e)?!1:Ot(n)&&(ce(e)||oe(e))&&t.isSubType(n,e)}function Ko(t,e,n){return e===n?!0:Ot(e)?Ot(n)?t.getPossibleTypes(e).some(function(r){return t.isSubType(n,r)}):t.isSubType(e,n):Ot(n)?t.isSubType(n,e):!1}var nf=Array.from||function(t,e,n){if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=t[lc];if(typeof r=="function"){for(var i=r.call(t),o=[],a,s=0;!(a=i.next()).done;++s)if(o.push(e.call(n,a.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return o}var u=t.length;if(typeof u=="number"&&u>=0&&u%1===0){for(var c=[],l=0;l<u;++l)Object.prototype.hasOwnProperty.call(t,l)&&c.push(e.call(n,t[l],l));return c}return[]};const Ac=nf;var rf=Number.isFinite||function(t){return typeof t=="number"&&isFinite(t)};const In=rf;function rr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rr=function(n){return typeof n}:rr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rr(t)}function of(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(t==null||rr(t)!=="object")return null;if(Array.isArray(t))return t.map(e);var n=t[lc];if(typeof n=="function"){for(var r=n.call(t),i=[],o,a=0;!(o=r.next()).done;++a)i.push(e(o.value,a));return i}var s=t.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var u=[],c=0;c<s;++c){if(!Object.prototype.hasOwnProperty.call(t,c))return null;u.push(e(t[String(c)],c))}return u}return null}var af=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};const Or=af;var Xi=2147483647,Ki=-2147483648;function sf(t){var e=Rn(t);if(typeof e=="boolean")return e?1:0;var n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),!Or(n))throw new C("Int cannot represent non-integer value: ".concat(A(e)));if(n>Xi||n<Ki)throw new C("Int cannot represent non 32-bit signed integer value: "+A(e));return n}function cf(t){if(!Or(t))throw new C("Int cannot represent non-integer value: ".concat(A(t)));if(t>Xi||t<Ki)throw new C("Int cannot represent non 32-bit signed integer value: ".concat(t));return t}var uf=new Tt({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:sf,parseValue:cf,parseLiteral:function(e){if(e.kind!==v.INT)throw new C("Int cannot represent non-integer value: ".concat(ie(e)),e);var n=parseInt(e.value,10);if(n>Xi||n<Ki)throw new C("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return n}});function lf(t){var e=Rn(t);if(typeof e=="boolean")return e?1:0;var n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),!In(n))throw new C("Float cannot represent non numeric value: ".concat(A(e)));return n}function ff(t){if(!In(t))throw new C("Float cannot represent non numeric value: ".concat(A(t)));return t}var Oc=new Tt({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:lf,parseValue:ff,parseLiteral:function(e){if(e.kind!==v.FLOAT&&e.kind!==v.INT)throw new C("Float cannot represent non numeric value: ".concat(ie(e)),e);return parseFloat(e.value)}});function Rn(t){if(pt(t)){if(typeof t.valueOf=="function"){var e=t.valueOf();if(!pt(e))return e}if(typeof t.toJSON=="function")return t.toJSON()}return t}function pf(t){var e=Rn(t);if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(In(e))return e.toString();throw new C("String cannot represent value: ".concat(A(t)))}function df(t){if(typeof t!="string")throw new C("String cannot represent a non string value: ".concat(A(t)));return t}var ge=new Tt({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:pf,parseValue:df,parseLiteral:function(e){if(e.kind!==v.STRING)throw new C("String cannot represent a non string value: ".concat(ie(e)),e);return e.value}});function hf(t){var e=Rn(t);if(typeof e=="boolean")return e;if(In(e))return e!==0;throw new C("Boolean cannot represent a non boolean value: ".concat(A(e)))}function vf(t){if(typeof t!="boolean")throw new C("Boolean cannot represent a non boolean value: ".concat(A(t)));return t}var Ve=new Tt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:hf,parseValue:vf,parseLiteral:function(e){if(e.kind!==v.BOOLEAN)throw new C("Boolean cannot represent a non boolean value: ".concat(ie(e)),e);return e.value}});function mf(t){var e=Rn(t);if(typeof e=="string")return e;if(Or(e))return String(e);throw new C("ID cannot represent value: ".concat(A(t)))}function gf(t){if(typeof t=="string")return t;if(Or(t))return t.toString();throw new C("ID cannot represent value: ".concat(A(t)))}var Cc=new Tt({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:mf,parseValue:gf,parseLiteral:function(e){if(e.kind!==v.STRING&&e.kind!==v.INT)throw new C("ID cannot represent a non-string and non-integer value: "+ie(e),e);return e.value}}),eo=Object.freeze([ge,uf,Oc,Ve,Cc]);function $8(t){return eo.some(function(e){var n=e.name;return t.name===n})}function Ht(t,e){if(re(e)){var n=Ht(t,e.ofType);return(n==null?void 0:n.kind)===v.NULL?null:n}if(t===null)return{kind:v.NULL};if(t===void 0)return null;if(xe(e)){var r=e.ofType,i=of(t);if(i!=null){for(var o=[],a=0;a<i.length;a++){var s=i[a],u=Ht(s,r);u!=null&&o.push(u)}return{kind:v.LIST,values:o}}return Ht(t,r)}if(we(e)){if(!pt(t))return null;for(var c=[],l=0,f=De(e.getFields());l<f.length;l++){var d=f[l],h=Ht(t[d.name],d.type);h&&c.push({kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:d.name},value:h})}return{kind:v.OBJECT,fields:c}}if(dt(e)){var p=e.serialize(t);if(p==null)return null;if(typeof p=="boolean")return{kind:v.BOOLEAN,value:p};if(typeof p=="number"&&In(p)){var m=String(p);return ea.test(m)?{kind:v.INT,value:m}:{kind:v.FLOAT,value:m}}if(typeof p=="string")return Re(e)?{kind:v.ENUM,value:p}:e===Cc&&ea.test(p)?{kind:v.INT,value:p}:{kind:v.STRING,value:p};throw new TypeError("Cannot convert value to AST: ".concat(A(p),"."))}Ce(0,"Unexpected input type: "+A(e))}var ea=/^-?(?:0|[1-9][0-9]*)$/,Cr=new Me({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:ge,resolve:function(n){return n.description}},types:{description:"A list of all types supported by this server.",type:new G(new me(new G(Pe))),resolve:function(n){return De(n.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new G(Pe),resolve:function(n){return n.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Pe,resolve:function(n){return n.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Pe,resolve:function(n){return n.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new G(new me(new G(to))),resolve:function(n){return n.getDirectives()}}}}}),to=new Me({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
32
|
-
|
|
33
|
-
In 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 G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},isRepeatable:{type:new G(Ve),resolve:function(n){return n.isRepeatable}},locations:{type:new G(new me(new G(no))),resolve:function(n){return n.locations}},args:{type:new G(new me(new G(Fn))),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;return i?n.args:n.args.filter(function(o){return o.deprecationReason==null})}}}}}),no=new tn({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:B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Pe=new Me({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 G(oo),resolve:function(n){if(Et(n))return ne.SCALAR;if(oe(n))return ne.OBJECT;if(ce(n))return ne.INTERFACE;if(je(n))return ne.UNION;if(Re(n))return ne.ENUM;if(we(n))return ne.INPUT_OBJECT;if(xe(n))return ne.LIST;if(re(n))return ne.NON_NULL;Ce(0,'Unexpected type: "'.concat(A(n),'".'))}},name:{type:ge,resolve:function(n){return n.name!==void 0?n.name:void 0}},description:{type:ge,resolve:function(n){return n.description!==void 0?n.description:void 0}},specifiedByUrl:{type:ge,resolve:function(n){return n.specifiedByUrl!==void 0?n.specifiedByUrl:void 0}},fields:{type:new me(new G(ro)),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;if(oe(n)||ce(n)){var o=De(n.getFields());return i?o:o.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new me(new G(Pe)),resolve:function(n){if(oe(n)||ce(n))return n.getInterfaces()}},possibleTypes:{type:new me(new G(Pe)),resolve:function(n,r,i,o){var a=o.schema;if(Ot(n))return a.getPossibleTypes(n)}},enumValues:{type:new me(new G(io)),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;if(Re(n)){var o=n.getValues();return i?o:o.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new me(new G(Fn)),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;if(we(n)){var o=De(n.getFields());return i?o:o.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Pe,resolve:function(n){return n.ofType!==void 0?n.ofType:void 0}}}}}),ro=new Me({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 G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},args:{type:new G(new me(new G(Fn))),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;return i?n.args:n.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new G(Pe),resolve:function(n){return n.type}},isDeprecated:{type:new G(Ve),resolve:function(n){return n.deprecationReason!=null}},deprecationReason:{type:ge,resolve:function(n){return n.deprecationReason}}}}}),Fn=new Me({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 G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},type:{type:new G(Pe),resolve:function(n){return n.type}},defaultValue:{type:ge,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(n){var r=n.type,i=n.defaultValue,o=Ht(i,r);return o?ie(o):null}},isDeprecated:{type:new G(Ve),resolve:function(n){return n.deprecationReason!=null}},deprecationReason:{type:ge,resolve:function(n){return n.deprecationReason}}}}}),io=new Me({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 G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},isDeprecated:{type:new G(Ve),resolve:function(n){return n.deprecationReason!=null}},deprecationReason:{type:ge,resolve:function(n){return n.deprecationReason}}}}}),ne=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),oo=new tn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ne.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ne.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ne.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ne.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ne.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ne.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ne.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ne.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ni={name:"__schema",type:new G(Cr),description:"Access the current type schema of this server.",args:[],resolve:function(e,n,r,i){var o=i.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Di={name:"__type",type:Pe,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new G(ge),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,n,r,i){var o=n.name,a=i.schema;return a.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ai={name:"__typename",type:new G(ge),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,n,r,i){var o=i.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ir=Object.freeze([Cr,to,no,Pe,ro,Fn,io,oo]);function Ic(t){return Ir.some(function(e){var n=e.name;return t.name===n})}const J8=Object.freeze(Object.defineProperty({__proto__:null,SchemaMetaFieldDef:Ni,TypeKind:ne,TypeMetaFieldDef:Di,TypeNameMetaFieldDef:Ai,__Directive:to,__DirectiveLocation:no,__EnumValue:io,__Field:ro,__InputValue:Fn,__Schema:Cr,__Type:Pe,__TypeKind:oo,introspectionTypes:Ir,isIntrospectionType:Ic},Symbol.toStringTag,{value:"Module"}));function ta(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yf(t,e,n){return e&&ta(t.prototype,e),n&&ta(t,n),t}function ao(t){return Xe(t,Vt)}function W8(t){if(!ao(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL directive."));return t}var Vt=function(){function t(n){var r,i;this.name=n.name,this.description=n.description,this.locations=n.locations,this.isRepeatable=(r=n.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,n.name||H(0,"Directive must be named."),Array.isArray(n.locations)||H(0,"@".concat(n.name," locations must be an Array."));var o=(i=n.args)!==null&&i!==void 0?i:{};pt(o)&&!Array.isArray(o)||H(0,"@".concat(n.name," args must be an object with argument names as keys.")),this.args=Xt(o).map(function(a){var s=a[0],u=a[1];return{name:s,description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions&&Ie(u.extensions),astNode:u.astNode}})}var e=t.prototype;return e.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Nc(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e.toString=function(){return"@"+this.name},e.toJSON=function(){return this.toString()},yf(t,[{key:Ge,get:function(){return"GraphQLDirective"}}]),t}();Ze(Vt);var bf=new Vt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[B.FIELD,B.FRAGMENT_SPREAD,B.INLINE_FRAGMENT],args:{if:{type:new G(Ve),description:"Included when true."}}}),_f=new Vt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[B.FIELD,B.FRAGMENT_SPREAD,B.INLINE_FRAGMENT],args:{if:{type:new G(Ve),description:"Skipped when true."}}}),Ef="No longer supported",Rc=new Vt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[B.FIELD_DEFINITION,B.ARGUMENT_DEFINITION,B.INPUT_FIELD_DEFINITION,B.ENUM_VALUE],args:{reason:{type:ge,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:Ef}}}),Tf=new Vt({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[B.SCALAR],args:{url:{type:new G(ge),description:"The URL that specifies the behaviour of this scalar."}}}),nn=Object.freeze([bf,_f,Rc,Tf]);function Y8(t){return nn.some(function(e){var n=e.name;return n===t.name})}function na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kf(t,e,n){return e&&na(t.prototype,e),n&&na(t,n),t}function wf(t){return Xe(t,Fc)}function Sf(t){if(!wf(t))throw new Error("Expected ".concat(A(t)," to be a GraphQL schema."));return t}var Fc=function(){function t(n){var r;this.__validationErrors=n.assumeValid===!0?[]:void 0,pt(n)||H(0,"Must provide configuration object."),!n.types||Array.isArray(n.types)||H(0,'"types" must be Array if provided but got: '.concat(A(n.types),".")),!n.directives||Array.isArray(n.directives)||H(0,'"directives" must be Array if provided but got: '+"".concat(A(n.directives),".")),this.description=n.description,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=n.extensionASTNodes,this._queryType=n.query,this._mutationType=n.mutation,this._subscriptionType=n.subscription,this._directives=(r=n.directives)!==null&&r!==void 0?r:nn;var i=new Set(n.types);if(n.types!=null)for(var o=0,a=n.types;o<a.length;o++){var s=a[o];i.delete(s),We(s,i)}this._queryType!=null&&We(this._queryType,i),this._mutationType!=null&&We(this._mutationType,i),this._subscriptionType!=null&&We(this._subscriptionType,i);for(var u=0,c=this._directives;u<c.length;u++){var l=c[u];if(ao(l))for(var f=0,d=l.args;f<d.length;f++){var h=d[f];We(h.type,i)}}We(Cr,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var p=0,m=Ac(i);p<m.length;p++){var y=m[p];if(y!=null){var b=y.name;if(b||H(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[b]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(b,'".'));if(this._typeMap[b]=y,ce(y))for(var g=0,k=y.getInterfaces();g<k.length;g++){var D=k[g];if(ce(D)){var N=this._implementationsMap[D.name];N===void 0&&(N=this._implementationsMap[D.name]={objects:[],interfaces:[]}),N.interfaces.push(y)}}else if(oe(y))for(var x=0,I=y.getInterfaces();x<I.length;x++){var P=I[x];if(ce(P)){var z=this._implementationsMap[P.name];z===void 0&&(z=this._implementationsMap[P.name]={objects:[],interfaces:[]}),z.objects.push(y)}}}}}var e=t.prototype;return e.getQueryType=function(){return this._queryType},e.getMutationType=function(){return this._mutationType},e.getSubscriptionType=function(){return this._subscriptionType},e.getTypeMap=function(){return this._typeMap},e.getType=function(r){return this.getTypeMap()[r]},e.getPossibleTypes=function(r){return je(r)?r.getTypes():this.getImplementations(r).objects},e.getImplementations=function(r){var i=this._implementationsMap[r.name];return i!=null?i:{objects:[],interfaces:[]}},e.isPossibleType=function(r,i){return this.isSubType(r,i)},e.isSubType=function(r,i){var o=this._subTypeMap[r.name];if(o===void 0){if(o=Object.create(null),je(r))for(var a=0,s=r.getTypes();a<s.length;a++){var u=s[a];o[u.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var d=f[l];o[d.name]=!0}for(var h=0,p=c.interfaces;h<p.length;h++){var m=p[h];o[m.name]=!0}}this._subTypeMap[r.name]=o}return o[i.name]!==void 0},e.getDirectives=function(){return this._directives},e.getDirective=function(r){return kn(this.getDirectives(),function(i){return i.name===r})},e.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:De(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[],assumeValid:this.__validationErrors!==void 0}},kf(t,[{key:Ge,get:function(){return"GraphQLSchema"}}]),t}();function We(t,e){var n=Ne(t);if(!e.has(n)){if(e.add(n),je(n))for(var r=0,i=n.getTypes();r<i.length;r++){var o=i[r];We(o,e)}else if(oe(n)||ce(n)){for(var a=0,s=n.getInterfaces();a<s.length;a++){var u=s[a];We(u,e)}for(var c=0,l=De(n.getFields());c<l.length;c++){var f=l[c];We(f.type,e);for(var d=0,h=f.args;d<h.length;d++){var p=h[d];We(p.type,e)}}}else if(we(n))for(var m=0,y=De(n.getFields());m<y.length;m++){var b=y[m];We(b.type,e)}}return e}function ir(t){if(Sf(t),t.__validationErrors)return t.__validationErrors;var e=new Nf(t);Df(e),Af(e),Of(e);var n=e.getErrors();return t.__validationErrors=n,n}function xf(t){var e=ir(t);if(e.length!==0)throw new Error(e.map(function(n){return n.message}).join(`
|
|
34
|
-
|
|
35
|
-
`))}var Nf=function(){function t(n){this._errors=[],this.schema=n}var e=t.prototype;return e.reportError=function(r,i){var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new C(r,o))},e.addError=function(r){this._errors.push(r)},e.getErrors=function(){return this._errors},t}();function Df(t){var e=t.schema,n=e.getQueryType();if(!n)t.reportError("Query root type must be provided.",e.astNode);else if(!oe(n)){var r;t.reportError("Query root type must be Object type, it cannot be ".concat(A(n),"."),(r=Zr(e,"query"))!==null&&r!==void 0?r:n.astNode)}var i=e.getMutationType();if(i&&!oe(i)){var o;t.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(A(i),"."),(o=Zr(e,"mutation"))!==null&&o!==void 0?o:i.astNode)}var a=e.getSubscriptionType();if(a&&!oe(a)){var s;t.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(A(a),"."),(s=Zr(e,"subscription"))!==null&&s!==void 0?s:a.astNode)}}function Zr(t,e){for(var n=so(t,function(o){return o.operationTypes}),r=0;r<n.length;r++){var i=n[r];if(i.operation===e)return i.type}}function Af(t){for(var e=0,n=t.schema.getDirectives();e<n.length;e++){var r=n[e];if(!ao(r)){t.reportError("Expected directive but got: ".concat(A(r),"."),r==null?void 0:r.astNode);continue}Rt(t,r);for(var i=0,o=r.args;i<o.length;i++){var a=o[i];if(Rt(t,a),qe(a.type)||t.reportError("The type of @".concat(r.name,"(").concat(a.name,":) must be Input Type ")+"but got: ".concat(A(a.type),"."),a.astNode),Cn(a)&&a.deprecationReason!=null){var s;t.reportError("Required argument @".concat(r.name,"(").concat(a.name,":) cannot be deprecated."),[co(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}}function Rt(t,e){var n=bc(e.name);n&&t.addError(jl(n,e.astNode))}function Of(t){for(var e=qf(t),n=t.schema.getTypeMap(),r=0,i=De(n);r<i.length;r++){var o=i[r];if(!kc(o)){t.reportError("Expected GraphQL named type but got: ".concat(A(o),"."),o.astNode);continue}Ic(o)||Rt(t,o),oe(o)||ce(o)?(ra(t,o),ia(t,o)):je(o)?Rf(t,o):Re(o)?Ff(t,o):we(o)&&(Lf(t,o),e(o))}}function ra(t,e){var n=De(e.getFields());n.length===0&&t.reportError("Type ".concat(e.name," must define one or more fields."),rn(e));for(var r=0;r<n.length;r++){var i=n[r];if(Rt(t,i),!At(i.type)){var o;t.reportError("The type of ".concat(e.name,".").concat(i.name," must be Output Type ")+"but got: ".concat(A(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}for(var a=0,s=i.args;a<s.length;a++){var u=s[a],c=u.name;if(Rt(t,u),!qe(u.type)){var l;t.reportError("The type of ".concat(e.name,".").concat(i.name,"(").concat(c,":) must be Input ")+"Type but got: ".concat(A(u.type),"."),(l=u.astNode)===null||l===void 0?void 0:l.type)}if(Cn(u)&&u.deprecationReason!=null){var f;t.reportError("Required argument ".concat(e.name,".").concat(i.name,"(").concat(c,":) cannot be deprecated."),[co(u.astNode),(f=u.astNode)===null||f===void 0?void 0:f.type])}}}}function ia(t,e){for(var n=Object.create(null),r=0,i=e.getInterfaces();r<i.length;r++){var o=i[r];if(!ce(o)){t.reportError("Type ".concat(A(e)," must only implement Interface types, ")+"it cannot implement ".concat(A(o),"."),mn(e,o));continue}if(e===o){t.reportError("Type ".concat(e.name," cannot implement itself because it would create a circular reference."),mn(e,o));continue}if(n[o.name]){t.reportError("Type ".concat(e.name," can only implement ").concat(o.name," once."),mn(e,o));continue}n[o.name]=!0,If(t,e,o),Cf(t,e,o)}}function Cf(t,e,n){for(var r=e.getFields(),i=0,o=De(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(!u){t.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(e.name," does not provide it."),[a.astNode].concat(rn(e)));continue}if(!Jt(t.schema,u.type,a.type)){var c,l;t.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat(A(a.type)," but ").concat(e.name,".").concat(s," ")+"is type ".concat(A(u.type),"."),[(c=a.astNode)===null||c===void 0?void 0:c.type,(l=u.astNode)===null||l===void 0?void 0:l.type])}for(var f=function(k,D){var N=D[k],x=N.name,I=kn(u.args,function(j){return j.name===x});if(!I)return t.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(x,":) expected but ").concat(e.name,".").concat(s," does not provide it."),[N.astNode,u.astNode]),"continue";if(!xi(N.type,I.type)){var P,z;t.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(x,":) ")+"expects type ".concat(A(N.type)," but ")+"".concat(e.name,".").concat(s,"(").concat(x,":) is type ")+"".concat(A(I.type),"."),[(P=N.astNode)===null||P===void 0?void 0:P.type,(z=I.astNode)===null||z===void 0?void 0:z.type])}},d=0,h=a.args;d<h.length;d++)var p=f(d,h);for(var m=function(k,D){var N=D[k],x=N.name,I=kn(a.args,function(P){return P.name===x});!I&&Cn(N)&&t.reportError("Object field ".concat(e.name,".").concat(s," includes required argument ").concat(x," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[N.astNode,a.astNode])},y=0,b=u.args;y<b.length;y++)m(y,b)}}function If(t,e,n){for(var r=e.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];r.indexOf(a)===-1&&t.reportError(a===e?"Type ".concat(e.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(e.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(mn(n,a),mn(e,n)))}}function Rf(t,e){var n=e.getTypes();n.length===0&&t.reportError("Union type ".concat(e.name," must define one or more member types."),rn(e));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];if(r[o.name]){t.reportError("Union type ".concat(e.name," can only include type ").concat(o.name," once."),oa(e,o.name));continue}r[o.name]=!0,oe(o)||t.reportError("Union type ".concat(e.name," can only include Object types, ")+"it cannot include ".concat(A(o),"."),oa(e,String(o)))}}function Ff(t,e){var n=e.getValues();n.length===0&&t.reportError("Enum type ".concat(e.name," must define one or more values."),rn(e));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;Rt(t,i),(o==="true"||o==="false"||o==="null")&&t.reportError("Enum type ".concat(e.name," cannot include value: ").concat(o,"."),i.astNode)}}function Lf(t,e){var n=De(e.getFields());n.length===0&&t.reportError("Input Object type ".concat(e.name," must define one or more fields."),rn(e));for(var r=0;r<n.length;r++){var i=n[r];if(Rt(t,i),!qe(i.type)){var o;t.reportError("The type of ".concat(e.name,".").concat(i.name," must be Input Type ")+"but got: ".concat(A(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}if(Dc(i)&&i.deprecationReason!=null){var a;t.reportError("Required input field ".concat(e.name,".").concat(i.name," cannot be deprecated."),[co(i.astNode),(a=i.astNode)===null||a===void 0?void 0:a.type])}}}function qf(t){var e=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(!e[o.name]){e[o.name]=!0,r[o.name]=n.length;for(var a=De(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(re(u.type)&&we(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),l===void 0)i(c);else{var f=n.slice(l),d=f.map(function(h){return h.name}).join(".");t.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(d,'".'),f.map(function(h){return h.astNode}))}n.pop()}}r[o.name]=void 0}}}function rn(t){var e=t.astNode,n=t.extensionASTNodes;return e?n?[e].concat(n):[e]:n!=null?n:[]}function so(t,e){for(var n=[],r=0,i=rn(t);r<i.length;r++){var o,a=i[r];n=n.concat((o=e(a))!==null&&o!==void 0?o:[])}return n}function mn(t,e){return so(t,function(n){return n.interfaces}).filter(function(n){return n.name.value===e.name})}function oa(t,e){return so(t,function(n){return n.types}).filter(function(n){return n.name.value===e})}function co(t){var e;return t==null||(e=t.directives)===null||e===void 0?void 0:e.find(function(n){return n.name.value===Rc.name})}function Ue(t,e){var n;if(e.kind===v.LIST_TYPE)return n=Ue(t,e.type),n&&new me(n);if(e.kind===v.NON_NULL_TYPE)return n=Ue(t,e.type),n&&new G(n);if(e.kind===v.NAMED_TYPE)return t.getType(e.name.value);Ce(0,"Unexpected type node: "+A(e))}var Rr=function(){function t(n,r,i){this._schema=n,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:Pf,i&&(qe(i)&&this._inputTypeStack.push(i),ht(i)&&this._parentTypeStack.push(i),At(i)&&this._typeStack.push(i))}var e=t.prototype;return e.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},e.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},e.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},e.getDirective=function(){return this._directive},e.getArgument=function(){return this._argument},e.getEnumValue=function(){return this._enumValue},e.enter=function(r){var i=this._schema;switch(r.kind){case v.SELECTION_SET:{var o=Ne(this.getType());this._parentTypeStack.push(ht(o)?o:void 0);break}case v.FIELD:{var a=this.getParentType(),s,u;a&&(s=this._getFieldDef(i,a,r),s&&(u=s.type)),this._fieldDefStack.push(s),this._typeStack.push(At(u)?u:void 0);break}case v.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case v.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(oe(c)?c:void 0);break}case v.INLINE_FRAGMENT:case v.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Ue(i,l):Ne(this.getType());this._typeStack.push(At(f)?f:void 0);break}case v.VARIABLE_DEFINITION:{var d=Ue(i,r.type);this._inputTypeStack.push(qe(d)?d:void 0);break}case v.ARGUMENT:{var h,p,m,y=(h=this.getDirective())!==null&&h!==void 0?h:this.getFieldDef();y&&(p=kn(y.args,function(P){return P.name===r.name.value}),p&&(m=p.type)),this._argument=p,this._defaultValueStack.push(p?p.defaultValue:void 0),this._inputTypeStack.push(qe(m)?m:void 0);break}case v.LIST:{var b=Tc(this.getInputType()),g=xe(b)?b.ofType:b;this._defaultValueStack.push(void 0),this._inputTypeStack.push(qe(g)?g:void 0);break}case v.OBJECT_FIELD:{var k=Ne(this.getInputType()),D,N;we(k)&&(N=k.getFields()[r.name.value],N&&(D=N.type)),this._defaultValueStack.push(N?N.defaultValue:void 0),this._inputTypeStack.push(qe(D)?D:void 0);break}case v.ENUM:{var x=Ne(this.getInputType()),I;Re(x)&&(I=x.getValue(r.value)),this._enumValue=I;break}}},e.leave=function(r){switch(r.kind){case v.SELECTION_SET:this._parentTypeStack.pop();break;case v.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case v.DIRECTIVE:this._directive=null;break;case v.OPERATION_DEFINITION:case v.INLINE_FRAGMENT:case v.FRAGMENT_DEFINITION:this._typeStack.pop();break;case v.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case v.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case v.LIST:case v.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case v.ENUM:this._enumValue=null;break}},t}();function Pf(t,e,n){var r=n.name.value;if(r===Ni.name&&t.getQueryType()===e)return Ni;if(r===Di.name&&t.getQueryType()===e)return Di;if(r===Ai.name&&ht(e))return Ai;if(oe(e)||ce(e))return e.getFields()[r]}function uo(t,e){return{enter:function(r){t.enter(r);var i=Tn(e,r.kind,!1);if(i){var o=i.apply(e,arguments);return o!==void 0&&(t.leave(r),ki(o)&&t.enter(o)),o}},leave:function(r){var i=Tn(e,r.kind,!0),o;return i&&(o=i.apply(e,arguments)),t.leave(r),o}}}function Z8(t){return Lc(t)||qc(t)||Pc(t)}function Lc(t){return t.kind===v.OPERATION_DEFINITION||t.kind===v.FRAGMENT_DEFINITION}function X8(t){return t.kind===v.FIELD||t.kind===v.FRAGMENT_SPREAD||t.kind===v.INLINE_FRAGMENT}function K8(t){return t.kind===v.VARIABLE||t.kind===v.INT||t.kind===v.FLOAT||t.kind===v.STRING||t.kind===v.BOOLEAN||t.kind===v.NULL||t.kind===v.ENUM||t.kind===v.LIST||t.kind===v.OBJECT}function e7(t){return t.kind===v.NAMED_TYPE||t.kind===v.LIST_TYPE||t.kind===v.NON_NULL_TYPE}function qc(t){return t.kind===v.SCHEMA_DEFINITION||Fr(t)||t.kind===v.DIRECTIVE_DEFINITION}function Fr(t){return t.kind===v.SCALAR_TYPE_DEFINITION||t.kind===v.OBJECT_TYPE_DEFINITION||t.kind===v.INTERFACE_TYPE_DEFINITION||t.kind===v.UNION_TYPE_DEFINITION||t.kind===v.ENUM_TYPE_DEFINITION||t.kind===v.INPUT_OBJECT_TYPE_DEFINITION}function Pc(t){return t.kind===v.SCHEMA_EXTENSION||Mc(t)}function Mc(t){return t.kind===v.SCALAR_TYPE_EXTENSION||t.kind===v.OBJECT_TYPE_EXTENSION||t.kind===v.INTERFACE_TYPE_EXTENSION||t.kind===v.UNION_TYPE_EXTENSION||t.kind===v.ENUM_TYPE_EXTENSION||t.kind===v.INPUT_OBJECT_TYPE_EXTENSION}function Vc(t){return{Document:function(n){for(var r=0,i=n.definitions;r<i.length;r++){var o=i[r];if(!Lc(o)){var a=o.kind===v.SCHEMA_DEFINITION||o.kind===v.SCHEMA_EXTENSION?"schema":'"'+o.name.value+'"';t.reportError(new C("The ".concat(a," definition is not executable."),o))}}return!1}}}function Mf(t){var e=Object.create(null);return{OperationDefinition:function(r){var i=r.name;return i&&(e[i.value]?t.reportError(new C('There can be only one operation named "'.concat(i.value,'".'),[e[i.value],i])):e[i.value]=i),!1},FragmentDefinition:function(){return!1}}}function Vf(t){var e=0;return{Document:function(r){e=r.definitions.filter(function(i){return i.kind===v.OPERATION_DEFINITION}).length},OperationDefinition:function(r){!r.name&&e>1&&t.reportError(new C("This anonymous operation must be the only defined operation.",r))}}}function jf(t){return{OperationDefinition:function(n){n.operation==="subscription"&&n.selectionSet.selections.length!==1&&t.reportError(new C(n.name?'Subscription "'.concat(n.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",n.selectionSet.selections.slice(1)))}}}function lo(t){for(var e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=t.getDocument().definitions;i<o.length;i++){var a=o[i];Fr(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(c,l,f,d,h){var p=c.name.value;if(!n[p]&&!r[p]){var m,y=(m=h[2])!==null&&m!==void 0?m:f,b=y!=null&&Bf(y);if(b&&Uf(p))return;var g=Mt(p,b?jc.concat(s):s);t.reportError(new C('Unknown type "'.concat(p,'".')+_t(g),c))}}}}var jc=[].concat(eo,Ir).map(function(t){return t.name});function Uf(t){return jc.indexOf(t)!==-1}function Bf(t){return!Array.isArray(t)&&(qc(t)||Pc(t))}function zf(t){return{InlineFragment:function(n){var r=n.typeCondition;if(r){var i=Ue(t.getSchema(),r);if(i&&!ht(i)){var o=ie(r);t.reportError(new C('Fragment cannot condition on non composite type "'.concat(o,'".'),r))}}},FragmentDefinition:function(n){var r=Ue(t.getSchema(),n.typeCondition);if(r&&!ht(r)){var i=ie(n.typeCondition);t.reportError(new C('Fragment "'.concat(n.name.value,'" cannot condition on non composite type "').concat(i,'".'),n.typeCondition))}}}}function Gf(t){return{VariableDefinition:function(n){var r=Ue(t.getSchema(),n.type);if(r&&!qe(r)){var i=n.variable.name.value,o=ie(n.type);t.reportError(new C('Variable "$'.concat(i,'" cannot be non-input type "').concat(o,'".'),n.type))}}}}function Qf(t){return{Field:function(n){var r=t.getType(),i=n.selectionSet;if(r){if(dt(Ne(r))){if(i){var o=n.name.value,a=A(r);t.reportError(new C('Field "'.concat(o,'" must not have a selection since type "').concat(a,'" has no subfields.'),i))}}else if(!i){var s=n.name.value,u=A(r);t.reportError(new C('Field "'.concat(s,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(s,' { ... }"?'),n))}}}}}function Hf(t){return{Field:function(n){var r=t.getParentType();if(r){var i=t.getFieldDef();if(!i){var o=t.getSchema(),a=n.name.value,s=_t("to use an inline fragment on",$f(o,r,a));s===""&&(s=_t(Jf(r,a))),t.reportError(new C('Cannot query field "'.concat(a,'" on type "').concat(r.name,'".')+s,n))}}}}}function $f(t,e,n){if(!Ot(e))return[];for(var r=new Set,i=Object.create(null),o=0,a=t.getPossibleTypes(e);o<a.length;o++){var s=a[o];if(s.getFields()[n]){r.add(s),i[s.name]=1;for(var u=0,c=s.getInterfaces();u<c.length;u++){var l,f=c[u];f.getFields()[n]&&(r.add(f),i[f.name]=((l=i[f.name])!==null&&l!==void 0?l:0)+1)}}}return Ac(r).sort(function(d,h){var p=i[h.name]-i[d.name];return p!==0?p:ce(d)&&t.isSubType(d,h)?-1:ce(h)&&t.isSubType(h,d)?1:_c(d.name,h.name)}).map(function(d){return d.name})}function Jf(t,e){if(oe(t)||ce(t)){var n=Object.keys(t.getFields());return Mt(e,n)}return[]}function Wf(t){var e=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(r){var i=r.name.value;return e[i]?t.reportError(new C('There can be only one fragment named "'.concat(i,'".'),[e[i],r.name])):e[i]=r.name,!1}}}function Uc(t){return{FragmentSpread:function(n){var r=n.name.value,i=t.getFragment(r);i||t.reportError(new C('Unknown fragment "'.concat(r,'".'),n.name))}}}function Bc(t){var e=[],n=[];return{OperationDefinition:function(i){return e.push(i),!1},FragmentDefinition:function(i){return n.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o<e.length;o++)for(var a=e[o],s=0,u=t.getRecursivelyReferencedFragments(a);s<u.length;s++){var c=u[s];i[c.name.value]=!0}for(var l=0;l<n.length;l++){var f=n[l],d=f.name.value;i[d]!==!0&&t.reportError(new C('Fragment "'.concat(d,'" is never used.'),f))}}}}}function Yf(t){return{InlineFragment:function(n){var r=t.getType(),i=t.getParentType();if(ht(r)&&ht(i)&&!Ko(t.getSchema(),r,i)){var o=A(i),a=A(r);t.reportError(new C('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(a,'".'),n))}},FragmentSpread:function(n){var r=n.name.value,i=Zf(t,r),o=t.getParentType();if(i&&o&&!Ko(t.getSchema(),i,o)){var a=A(o),s=A(i);t.reportError(new C('Fragment "'.concat(r,'" cannot be spread here as objects of type "').concat(a,'" can never be of type "').concat(s,'".'),n))}}}}function Zf(t,e){var n=t.getFragment(e);if(n){var r=Ue(t.getSchema(),n.typeCondition);if(ht(r))return r}}function Xf(t){var e=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(a){return i(a),!1}};function i(o){if(!e[o.name.value]){var a=o.name.value;e[a]=!0;var s=t.getFragmentSpreads(o.selectionSet);if(s.length!==0){r[a]=n.length;for(var u=0;u<s.length;u++){var c=s[u],l=c.name.value,f=r[l];if(n.push(c),f===void 0){var d=t.getFragment(l);d&&i(d)}else{var h=n.slice(f),p=h.slice(0,-1).map(function(m){return'"'+m.name.value+'"'}).join(", ");t.reportError(new C('Cannot spread fragment "'.concat(l,'" within itself')+(p!==""?" via ".concat(p,"."):"."),h))}n.pop()}r[a]=void 0}}}}function Kf(t){var e=Object.create(null);return{OperationDefinition:function(){e=Object.create(null)},VariableDefinition:function(r){var i=r.variable.name.value;e[i]?t.reportError(new C('There can be only one variable named "$'.concat(i,'".'),[e[i],r.variable.name])):e[i]=r.variable.name}}}function ep(t){var e=Object.create(null);return{OperationDefinition:{enter:function(){e=Object.create(null)},leave:function(r){for(var i=t.getRecursiveVariableUsages(r),o=0;o<i.length;o++){var a=i[o],s=a.node,u=s.name.value;e[u]!==!0&&t.reportError(new C(r.name?'Variable "$'.concat(u,'" is not defined by operation "').concat(r.name.value,'".'):'Variable "$'.concat(u,'" is not defined.'),[s,r]))}}},VariableDefinition:function(r){e[r.variable.name.value]=!0}}}function tp(t){var e=[];return{OperationDefinition:{enter:function(){e=[]},leave:function(r){for(var i=Object.create(null),o=t.getRecursiveVariableUsages(r),a=0;a<o.length;a++){var s=o[a],u=s.node;i[u.name.value]=!0}for(var c=0,l=e;c<l.length;c++){var f=l[c],d=f.variable.name.value;i[d]!==!0&&t.reportError(new C(r.name?'Variable "$'.concat(d,'" is never used in operation "').concat(r.name.value,'".'):'Variable "$'.concat(d,'" is never used.'),f))}}},VariableDefinition:function(r){e.push(r)}}}function fo(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=o.locations}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===v.DIRECTIVE_DEFINITION&&(e[u.name.value]=u.locations.map(function(c){return c.value}))}return{Directive:function(l,f,d,h,p){var m=l.name.value,y=e[m];if(!y){t.reportError(new C('Unknown directive "@'.concat(m,'".'),l));return}var b=np(p);b&&y.indexOf(b)===-1&&t.reportError(new C('Directive "@'.concat(m,'" may not be used on ').concat(b,"."),l))}}}function np(t){var e=t[t.length-1];switch(!Array.isArray(e)||Ce(0),e.kind){case v.OPERATION_DEFINITION:return rp(e.operation);case v.FIELD:return B.FIELD;case v.FRAGMENT_SPREAD:return B.FRAGMENT_SPREAD;case v.INLINE_FRAGMENT:return B.INLINE_FRAGMENT;case v.FRAGMENT_DEFINITION:return B.FRAGMENT_DEFINITION;case v.VARIABLE_DEFINITION:return B.VARIABLE_DEFINITION;case v.SCHEMA_DEFINITION:case v.SCHEMA_EXTENSION:return B.SCHEMA;case v.SCALAR_TYPE_DEFINITION:case v.SCALAR_TYPE_EXTENSION:return B.SCALAR;case v.OBJECT_TYPE_DEFINITION:case v.OBJECT_TYPE_EXTENSION:return B.OBJECT;case v.FIELD_DEFINITION:return B.FIELD_DEFINITION;case v.INTERFACE_TYPE_DEFINITION:case v.INTERFACE_TYPE_EXTENSION:return B.INTERFACE;case v.UNION_TYPE_DEFINITION:case v.UNION_TYPE_EXTENSION:return B.UNION;case v.ENUM_TYPE_DEFINITION:case v.ENUM_TYPE_EXTENSION:return B.ENUM;case v.ENUM_VALUE_DEFINITION:return B.ENUM_VALUE;case v.INPUT_OBJECT_TYPE_DEFINITION:case v.INPUT_OBJECT_TYPE_EXTENSION:return B.INPUT_OBJECT;case v.INPUT_VALUE_DEFINITION:{var n=t[t.length-3];return n.kind===v.INPUT_OBJECT_TYPE_DEFINITION?B.INPUT_FIELD_DEFINITION:B.ARGUMENT_DEFINITION}}}function rp(t){switch(t){case"query":return B.QUERY;case"mutation":return B.MUTATION;case"subscription":return B.SUBSCRIPTION}Ce(0,"Unexpected operation: "+A(t))}function po(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=!o.isRepeatable}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===v.DIRECTIVE_DEFINITION&&(e[u.name.value]=!u.repeatable)}var c=Object.create(null),l=Object.create(null);return{enter:function(d){if(d.directives!=null){var h;if(d.kind===v.SCHEMA_DEFINITION||d.kind===v.SCHEMA_EXTENSION)h=c;else if(Fr(d)||Mc(d)){var p=d.name.value;h=l[p],h===void 0&&(l[p]=h=Object.create(null))}else h=Object.create(null);for(var m=0,y=d.directives;m<y.length;m++){var b=y[m],g=b.name.value;e[g]&&(h[g]?t.reportError(new C('The directive "@'.concat(g,'" can only be used once at this location.'),[h[g],b])):h[g]=b)}}}}}function aa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aa(Object(n),!0).forEach(function(r){ip(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ip(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function op(t){return sa(sa({},zc(t)),{},{Argument:function(n){var r=t.getArgument(),i=t.getFieldDef(),o=t.getParentType();if(!r&&i&&o){var a=n.name.value,s=i.args.map(function(c){return c.name}),u=Mt(a,s);t.reportError(new C('Unknown argument "'.concat(a,'" on field "').concat(o.name,".").concat(i.name,'".')+_t(u),n))}}})}function zc(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=o.args.map(function(f){return f.name})}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===v.DIRECTIVE_DEFINITION){var c,l=(c=u.arguments)!==null&&c!==void 0?c:[];e[u.name.value]=l.map(function(f){return f.name.value})}}return{Directive:function(d){var h=d.name.value,p=e[h];if(d.arguments&&p)for(var m=0,y=d.arguments;m<y.length;m++){var b=y[m],g=b.name.value;if(p.indexOf(g)===-1){var k=Mt(g,p);t.reportError(new C('Unknown argument "'.concat(g,'" on directive "@').concat(h,'".')+_t(k),b))}}return!1}}}function ho(t){var e=Object.create(null);return{Field:function(){e=Object.create(null)},Directive:function(){e=Object.create(null)},Argument:function(r){var i=r.name.value;return e[i]?t.reportError(new C('There can be only one argument named "'.concat(i,'".'),[e[i],r.name])):e[i]=r.name,!1}}}function ap(t){return{ListValue:function(n){var r=Tc(t.getParentInputType());if(!xe(r))return kt(t,n),!1},ObjectValue:function(n){var r=Ne(t.getInputType());if(!we(r))return kt(t,n),!1;for(var i=Dt(n.fields,function(l){return l.name.value}),o=0,a=De(r.getFields());o<a.length;o++){var s=a[o],u=i[s.name];if(!u&&Dc(s)){var c=A(s.type);t.reportError(new C('Field "'.concat(r.name,".").concat(s.name,'" of required type "').concat(c,'" was not provided.'),n))}}},ObjectField:function(n){var r=Ne(t.getParentInputType()),i=t.getInputType();if(!i&&we(r)){var o=Mt(n.name.value,Object.keys(r.getFields()));t.reportError(new C('Field "'.concat(n.name.value,'" is not defined by type "').concat(r.name,'".')+_t(o),n))}},NullValue:function(n){var r=t.getInputType();re(r)&&t.reportError(new C('Expected value of type "'.concat(A(r),'", found ').concat(ie(n),"."),n))},EnumValue:function(n){return kt(t,n)},IntValue:function(n){return kt(t,n)},FloatValue:function(n){return kt(t,n)},StringValue:function(n){return kt(t,n)},BooleanValue:function(n){return kt(t,n)}}}function kt(t,e){var n=t.getInputType();if(n){var r=Ne(n);if(!dt(r)){var i=A(n);t.reportError(new C('Expected value of type "'.concat(i,'", found ').concat(ie(e),"."),e));return}try{var o=r.parseLiteral(e,void 0);if(o===void 0){var a=A(n);t.reportError(new C('Expected value of type "'.concat(a,'", found ').concat(ie(e),"."),e))}}catch(u){var s=A(n);u instanceof C?t.reportError(u):t.reportError(new C('Expected value of type "'.concat(s,'", found ').concat(ie(e),"; ")+u.message,e,void 0,void 0,void 0,u))}}}function ca(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ua(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ca(Object(n),!0).forEach(function(r){sp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cp(t){return ua(ua({},Gc(t)),{},{Field:{leave:function(n){var r,i=t.getFieldDef();if(!i)return!1;for(var o=(r=n.arguments)!==null&&r!==void 0?r:[],a=Dt(o,function(d){return d.name.value}),s=0,u=i.args;s<u.length;s++){var c=u[s],l=a[c.name];if(!l&&Cn(c)){var f=A(c.type);t.reportError(new C('Field "'.concat(i.name,'" argument "').concat(c.name,'" of type "').concat(f,'" is required, but it was not provided.'),n))}}}}})}function Gc(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=Dt(o.args.filter(Cn),function(f){return f.name})}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===v.DIRECTIVE_DEFINITION){var c,l=(c=u.arguments)!==null&&c!==void 0?c:[];e[u.name.value]=Dt(l.filter(up),function(f){return f.name.value})}}return{Directive:{leave:function(d){var h=d.name.value,p=e[h];if(p)for(var m,y=(m=d.arguments)!==null&&m!==void 0?m:[],b=Dt(y,function(I){return I.name.value}),g=0,k=Object.keys(p);g<k.length;g++){var D=k[g];if(!b[D]){var N=p[D].type,x=wn(N)?A(N):ie(N);t.reportError(new C('Directive "@'.concat(h,'" argument "').concat(D,'" of type "').concat(x,'" is required, but it was not provided.'),d))}}}}}}function up(t){return t.type.kind===v.NON_NULL_TYPE&&t.defaultValue==null}function lp(t){var e=Object.create(null);return{OperationDefinition:{enter:function(){e=Object.create(null)},leave:function(r){for(var i=t.getRecursiveVariableUsages(r),o=0;o<i.length;o++){var a=i[o],s=a.node,u=a.type,c=a.defaultValue,l=s.name.value,f=e[l];if(f&&u){var d=t.getSchema(),h=Ue(d,f.type);if(h&&!fp(d,h,f.defaultValue,u,c)){var p=A(h),m=A(u);t.reportError(new C('Variable "$'.concat(l,'" of type "').concat(p,'" used in position expecting type "').concat(m,'".'),[f,s]))}}}}},VariableDefinition:function(r){e[r.variable.name.value]=r}}}function fp(t,e,n,r,i){if(re(r)&&!re(e)){var o=n!=null&&n.kind!==v.NULL,a=i!==void 0;if(!o&&!a)return!1;var s=r.ofType;return Jt(t,e,s)}return Jt(t,e,r)}function Qc(t){return Array.isArray(t)?t.map(function(e){var n=e[0],r=e[1];return'subfields "'.concat(n,'" conflict because ')+Qc(r)}).join(" and "):t}function pp(t){var e=new bp,n=new Map;return{SelectionSet:function(i){for(var o=dp(t,n,e,t.getParentType(),i),a=0;a<o.length;a++){var s=o[a],u=s[0],c=u[0],l=u[1],f=s[1],d=s[2],h=Qc(l);t.reportError(new C('Fields "'.concat(c,'" conflict because ').concat(h,". Use different aliases on the fields to fetch both if this was intentional."),f.concat(d)))}}}}function dp(t,e,n,r,i){var o=[],a=ur(t,e,r,i),s=a[0],u=a[1];if(vp(t,o,e,n,s),u.length!==0)for(var c=0;c<u.length;c++){sr(t,o,e,n,!1,s,u[c]);for(var l=c+1;l<u.length;l++)cr(t,o,e,n,!1,u[c],u[l])}return o}function sr(t,e,n,r,i,o,a){var s=t.getFragment(a);if(s){var u=Ci(t,n,s),c=u[0],l=u[1];if(o!==c){vo(t,e,n,r,i,o,c);for(var f=0;f<l.length;f++)sr(t,e,n,r,i,o,l[f])}}}function cr(t,e,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=t.getFragment(o),u=t.getFragment(a);if(!(!s||!u)){var c=Ci(t,n,s),l=c[0],f=c[1],d=Ci(t,n,u),h=d[0],p=d[1];vo(t,e,n,r,i,l,h);for(var m=0;m<p.length;m++)cr(t,e,n,r,i,o,p[m]);for(var y=0;y<f.length;y++)cr(t,e,n,r,i,f[y],a)}}}function hp(t,e,n,r,i,o,a,s){var u=[],c=ur(t,e,i,o),l=c[0],f=c[1],d=ur(t,e,a,s),h=d[0],p=d[1];if(vo(t,u,e,n,r,l,h),p.length!==0)for(var m=0;m<p.length;m++)sr(t,u,e,n,r,l,p[m]);if(f.length!==0)for(var y=0;y<f.length;y++)sr(t,u,e,n,r,h,f[y]);for(var b=0;b<f.length;b++)for(var g=0;g<p.length;g++)cr(t,u,e,n,r,f[b],p[g]);return u}function vp(t,e,n,r,i){for(var o=0,a=Xt(i);o<a.length;o++){var s=a[o],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 d=Hc(t,n,r,!1,u,c[l],c[f]);d&&e.push(d)}}}function vo(t,e,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var f=o[c],d=0;d<f.length;d++)for(var h=0;h<l.length;h++){var p=Hc(t,n,r,i,c,f[d],l[h]);p&&e.push(p)}}}function Hc(t,e,n,r,i,o,a){var s=o[0],u=o[1],c=o[2],l=a[0],f=a[1],d=a[2],h=r||s!==l&&oe(s)&&oe(l);if(!h){var p,m,y=u.name.value,b=f.name.value;if(y!==b)return[[i,'"'.concat(y,'" and "').concat(b,'" are different fields')],[u],[f]];var g=(p=u.arguments)!==null&&p!==void 0?p:[],k=(m=f.arguments)!==null&&m!==void 0?m:[];if(!mp(g,k))return[[i,"they have differing arguments"],[u],[f]]}var D=c==null?void 0:c.type,N=d==null?void 0:d.type;if(D&&N&&Oi(D,N))return[[i,'they return conflicting types "'.concat(A(D),'" and "').concat(A(N),'"')],[u],[f]];var x=u.selectionSet,I=f.selectionSet;if(x&&I){var P=hp(t,e,n,h,Ne(D),x,Ne(N),I);return yp(P,i,u,f)}}function mp(t,e){return t.length!==e.length?!1:t.every(function(n){var r=kn(e,function(i){return i.name.value===n.name.value});return r?gp(n.value,r.value):!1})}function gp(t,e){return ie(t)===ie(e)}function Oi(t,e){return xe(t)?xe(e)?Oi(t.ofType,e.ofType):!0:xe(e)?!0:re(t)?re(e)?Oi(t.ofType,e.ofType):!0:re(e)?!0:dt(t)||dt(e)?t!==e:!1}function ur(t,e,n,r){var i=e.get(r);if(!i){var o=Object.create(null),a=Object.create(null);$c(t,n,r,o,a),i=[o,Object.keys(a)],e.set(r,i)}return i}function Ci(t,e,n){var r=e.get(n.selectionSet);if(r)return r;var i=Ue(t.getSchema(),n.typeCondition);return ur(t,e,i,n.selectionSet)}function $c(t,e,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case v.FIELD:{var u=s.name.value,c=void 0;(oe(e)||ce(e))&&(c=e.getFields()[u]);var l=s.alias?s.alias.value:u;r[l]||(r[l]=[]),r[l].push([e,s,c]);break}case v.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case v.INLINE_FRAGMENT:{var f=s.typeCondition,d=f?Ue(t.getSchema(),f):e;$c(t,d,s.selectionSet,r,i);break}}}}function yp(t,e,n,r){if(t.length>0)return[[e,t.map(function(i){var o=i[0];return o})],t.reduce(function(i,o){var a=o[1];return i.concat(a)},[n]),t.reduce(function(i,o){var a=o[2];return i.concat(a)},[r])]}var bp=function(){function t(){this._data=Object.create(null)}var e=t.prototype;return e.has=function(r,i,o){var a=this._data[r],s=a&&a[i];return s===void 0?!1:o===!1?s===!1:!0},e.add=function(r,i,o){this._pairSetAdd(r,i,o),this._pairSetAdd(i,r,o)},e._pairSetAdd=function(r,i,o){var a=this._data[r];a||(a=Object.create(null),this._data[r]=a),a[i]=o},t}();function mo(t){var e=[],n=Object.create(null);return{ObjectValue:{enter:function(){e.push(n),n=Object.create(null)},leave:function(){n=e.pop()}},ObjectField:function(i){var o=i.name.value;n[o]?t.reportError(new C('There can be only one input field named "'.concat(o,'".'),[n[o],i.name])):n[o]=i.name}}}function Jc(t){var e,n,r,i=t.getSchema(),o=(e=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&e!==void 0?e:i==null?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(u){if(o){t.reportError(new C("Cannot define a new schema within a schema extension.",u));return}a>0&&t.reportError(new C("Must provide only one schema definition.",u)),++a}}}function Wc(t){var e=t.getSchema(),n=Object.create(null),r=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){for(var a,s=(a=o.operationTypes)!==null&&a!==void 0?a:[],u=0;u<s.length;u++){var c=s[u],l=c.operation,f=n[l];r[l]?t.reportError(new C("Type for ".concat(l," already defined in the schema. It cannot be redefined."),c)):f?t.reportError(new C("There can be only one ".concat(l," type in schema."),[f,c])):n[l]=c}return!1}}function Yc(t){var e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){var o=i.name.value;if(n!=null&&n.getType(o)){t.reportError(new C('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name));return}return e[o]?t.reportError(new C('There can be only one type named "'.concat(o,'".'),[e[o],i.name])):e[o]=i.name,!1}}function Zc(t){var e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var a,s=o.name.value;r[s]||(r[s]=Object.create(null));for(var u=(a=o.values)!==null&&a!==void 0?a:[],c=r[s],l=0;l<u.length;l++){var f=u[l],d=f.name.value,h=n[s];Re(h)&&h.getValue(d)?t.reportError(new C('Enum value "'.concat(s,".").concat(d,'" already exists in the schema. It cannot also be defined in this type extension.'),f.name)):c[d]?t.reportError(new C('Enum value "'.concat(s,".").concat(d,'" can only be defined once.'),[c[d],f.name])):c[d]=f.name}return!1}}function Xc(t){var e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var a,s=o.name.value;r[s]||(r[s]=Object.create(null));for(var u=(a=o.fields)!==null&&a!==void 0?a:[],c=r[s],l=0;l<u.length;l++){var f=u[l],d=f.name.value;_p(n[s],d)?t.reportError(new C('Field "'.concat(s,".").concat(d,'" already exists in the schema. It cannot also be defined in this type extension.'),f.name)):c[d]?t.reportError(new C('Field "'.concat(s,".").concat(d,'" can only be defined once.'),[c[d],f.name])):c[d]=f.name}return!1}}function _p(t,e){return oe(t)||ce(t)||we(t)?t.getFields()[e]!=null:!1}function Kc(t){var e=Object.create(null),n=t.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(n!=null&&n.getDirective(o)){t.reportError(new C('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name));return}return e[o]?t.reportError(new C('There can be only one directive named "@'.concat(o,'".'),[e[o],i.name])):e[o]=i.name,!1}}}var gt;function Bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eu(t){for(var e=t.getSchema(),n=Object.create(null),r=0,i=t.getDocument().definitions;r<i.length;r++){var o=i[r];Fr(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(s){var u=s.name.value,c=n[u],l=e==null?void 0:e.getType(u),f;if(c?f=Ep[c.kind]:l&&(f=Tp(l)),f){if(f!==s.kind){var d=kp(s.kind);t.reportError(new C("Cannot extend non-".concat(d,' type "').concat(u,'".'),c?[c,s]:s))}}else{var h=Object.keys(n);e&&(h=h.concat(Object.keys(e.getTypeMap())));var p=Mt(u,h);t.reportError(new C('Cannot extend type "'.concat(u,'" because it is not defined.')+_t(p),s.name))}}}var Ep=(gt={},Bt(gt,v.SCALAR_TYPE_DEFINITION,v.SCALAR_TYPE_EXTENSION),Bt(gt,v.OBJECT_TYPE_DEFINITION,v.OBJECT_TYPE_EXTENSION),Bt(gt,v.INTERFACE_TYPE_DEFINITION,v.INTERFACE_TYPE_EXTENSION),Bt(gt,v.UNION_TYPE_DEFINITION,v.UNION_TYPE_EXTENSION),Bt(gt,v.ENUM_TYPE_DEFINITION,v.ENUM_TYPE_EXTENSION),Bt(gt,v.INPUT_OBJECT_TYPE_DEFINITION,v.INPUT_OBJECT_TYPE_EXTENSION),gt);function Tp(t){if(Et(t))return v.SCALAR_TYPE_EXTENSION;if(oe(t))return v.OBJECT_TYPE_EXTENSION;if(ce(t))return v.INTERFACE_TYPE_EXTENSION;if(je(t))return v.UNION_TYPE_EXTENSION;if(Re(t))return v.ENUM_TYPE_EXTENSION;if(we(t))return v.INPUT_OBJECT_TYPE_EXTENSION;Ce(0,"Unexpected type: "+A(t))}function kp(t){switch(t){case v.SCALAR_TYPE_EXTENSION:return"scalar";case v.OBJECT_TYPE_EXTENSION:return"object";case v.INTERFACE_TYPE_EXTENSION:return"interface";case v.UNION_TYPE_EXTENSION:return"union";case v.ENUM_TYPE_EXTENSION:return"enum";case v.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}Ce(0,"Unexpected kind: "+A(t))}var tu=Object.freeze([Vc,Mf,Vf,jf,lo,zf,Gf,Qf,Hf,Wf,Uc,Bc,Yf,Xf,Kf,ep,tp,fo,po,op,ho,ap,cp,lp,pp,mo]),wp=Object.freeze([Jc,Wc,Yc,Zc,Xc,Kc,lo,fo,po,eu,zc,ho,mo,Gc]);function nu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ru=function(){function t(n,r){this._ast=n,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var e=t.prototype;return e.reportError=function(r){this._onError(r)},e.getDocument=function(){return this._ast},e.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(o,a){return a.kind===v.FRAGMENT_DEFINITION&&(o[a.name.value]=a),o},Object.create(null))),i[r]},e.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var o=[r];o.length!==0;)for(var a=o.pop(),s=0,u=a.selections;s<u.length;s++){var c=u[s];c.kind===v.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&o.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},e.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var o=Object.create(null),a=[r.selectionSet];a.length!==0;)for(var s=a.pop(),u=0,c=this.getFragmentSpreads(s);u<c.length;u++){var l=c[u],f=l.name.value;if(o[f]!==!0){o[f]=!0;var d=this.getFragment(f);d&&(i.push(d),a.push(d.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},t}(),Sp=function(t){nu(e,t);function e(r,i,o){var a;return a=t.call(this,r,o)||this,a._schema=i,a}var n=e.prototype;return n.getSchema=function(){return this._schema},e}(ru),xp=function(t){nu(e,t);function e(r,i,o,a){var s;return s=t.call(this,i,a)||this,s._schema=r,s._typeInfo=o,s._variableUsages=new Map,s._recursiveVariableUsages=new Map,s}var n=e.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(i){var o=this._variableUsages.get(i);if(!o){var a=[],s=new Rr(this._schema);Ye(i,uo(s,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:s.getInputType(),defaultValue:s.getDefaultValue()})}})),o=a,this._variableUsages.set(i,o)}return o},n.getRecursiveVariableUsages=function(i){var o=this._recursiveVariableUsages.get(i);if(!o){o=this.getVariableUsages(i);for(var a=0,s=this.getRecursivelyReferencedFragments(i);a<s.length;a++){var u=s[a];o=o.concat(this.getVariableUsages(u))}this._recursiveVariableUsages.set(i,o)}return o},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},e}(ru);function iu(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tu,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Rr(t),i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};e||H(0,"Must provide document."),xf(t);var o=Object.freeze({}),a=[],s=new xp(t,e,r,function(c){if(i.maxErrors!=null&&a.length>=i.maxErrors)throw a.push(new C("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(c)}),u=yc(n.map(function(c){return c(s)}));try{Ye(e,uo(r,u))}catch(c){if(c!==o)throw c}return a}function ou(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wp,r=[],i=new Sp(t,e,function(a){r.push(a)}),o=n.map(function(a){return a(i)});return Ye(t,yc(o)),r}function t7(t){var e=ou(t);if(e.length!==0)throw new Error(e.map(function(n){return n.message}).join(`
|
|
36
|
-
|
|
37
|
-
`))}function n7(t,e){var n=ou(t,e);if(n.length!==0)throw new Error(n.map(function(r){return r.message}).join(`
|
|
38
|
-
|
|
39
|
-
`))}function hn(t,e,n){if(t){if(t.kind===v.VARIABLE){var r=t.name.value;if(n==null||n[r]===void 0)return;var i=n[r];return i===null&&re(e)?void 0:i}if(re(e))return t.kind===v.NULL?void 0:hn(t,e.ofType,n);if(t.kind===v.NULL)return null;if(xe(e)){var o=e.ofType;if(t.kind===v.LIST){for(var a=[],s=0,u=t.values;s<u.length;s++){var c=u[s];if(la(c,n)){if(re(o))return;a.push(null)}else{var l=hn(c,o,n);if(l===void 0)return;a.push(l)}}return a}var f=hn(t,o,n);return f===void 0?void 0:[f]}if(we(e)){if(t.kind!==v.OBJECT)return;for(var d=Object.create(null),h=Dt(t.fields,function(D){return D.name.value}),p=0,m=De(e.getFields());p<m.length;p++){var y=m[p],b=h[y.name];if(!b||la(b.value,n)){if(y.defaultValue!==void 0)d[y.name]=y.defaultValue;else if(re(y.type))return;continue}var g=hn(b.value,y.type,n);if(g===void 0)return;d[y.name]=g}return d}if(dt(e)){var k;try{k=e.parseLiteral(t,n)}catch(D){return}return k===void 0?void 0:k}Ce(0,"Unexpected input type: "+A(e))}}function la(t,e){return t.kind===v.VARIABLE&&(e==null||e[t.name.value]===void 0)}function Np(t){return{Field:function(n){var r=t.getFieldDef(),i=r==null?void 0:r.deprecationReason;if(r&&i!=null){var o=t.getParentType();o!=null||Ce(0),t.reportError(new C("The field ".concat(o.name,".").concat(r.name," is deprecated. ").concat(i),n))}},Argument:function(n){var r=t.getArgument(),i=r==null?void 0:r.deprecationReason;if(r&&i!=null){var o=t.getDirective();if(o!=null)t.reportError(new C('Directive "@'.concat(o.name,'" argument "').concat(r.name,'" is deprecated. ').concat(i),n));else{var a=t.getParentType(),s=t.getFieldDef();a!=null&&s!=null||Ce(0),t.reportError(new C('Field "'.concat(a.name,".").concat(s.name,'" argument "').concat(r.name,'" is deprecated. ').concat(i),n))}}},ObjectField:function(n){var r=Ne(t.getParentInputType());if(we(r)){var i=r.getFields()[n.name.value],o=i==null?void 0:i.deprecationReason;o!=null&&t.reportError(new C("The input field ".concat(r.name,".").concat(i.name," is deprecated. ").concat(o),n))}},EnumValue:function(n){var r=t.getEnumValue(),i=r==null?void 0:r.deprecationReason;if(r&&i!=null){var o=Ne(t.getInputType());o!=null||Ce(0),t.reportError(new C('The enum value "'.concat(o.name,".").concat(r.name,'" is deprecated. ').concat(i),n))}}}}function fa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Dp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fa(Object(n),!0).forEach(function(r){Ap(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ap(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Op(t){var e=Dp({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},t),n=e.descriptions?"description":"",r=e.specifiedByUrl?"specifiedByUrl":"",i=e.directiveIsRepeatable?"isRepeatable":"",o=e.schemaDescription?n:"";function a(s){return e.inputValueDeprecation?s:""}return`
|
|
40
|
-
query IntrospectionQuery {
|
|
41
|
-
__schema {
|
|
42
|
-
`.concat(o,`
|
|
43
|
-
queryType { name }
|
|
44
|
-
mutationType { name }
|
|
45
|
-
subscriptionType { name }
|
|
46
|
-
types {
|
|
47
|
-
...FullType
|
|
48
|
-
}
|
|
49
|
-
directives {
|
|
50
|
-
name
|
|
51
|
-
`).concat(n,`
|
|
52
|
-
`).concat(i,`
|
|
53
|
-
locations
|
|
54
|
-
args`).concat(a("(includeDeprecated: true)"),` {
|
|
55
|
-
...InputValue
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
fragment FullType on __Type {
|
|
62
|
-
kind
|
|
63
|
-
name
|
|
64
|
-
`).concat(n,`
|
|
65
|
-
`).concat(r,`
|
|
66
|
-
fields(includeDeprecated: true) {
|
|
67
|
-
name
|
|
68
|
-
`).concat(n,`
|
|
69
|
-
args`).concat(a("(includeDeprecated: true)"),` {
|
|
70
|
-
...InputValue
|
|
71
|
-
}
|
|
72
|
-
type {
|
|
73
|
-
...TypeRef
|
|
74
|
-
}
|
|
75
|
-
isDeprecated
|
|
76
|
-
deprecationReason
|
|
77
|
-
}
|
|
78
|
-
inputFields`).concat(a("(includeDeprecated: true)"),` {
|
|
79
|
-
...InputValue
|
|
80
|
-
}
|
|
81
|
-
interfaces {
|
|
82
|
-
...TypeRef
|
|
83
|
-
}
|
|
84
|
-
enumValues(includeDeprecated: true) {
|
|
85
|
-
name
|
|
86
|
-
`).concat(n,`
|
|
87
|
-
isDeprecated
|
|
88
|
-
deprecationReason
|
|
89
|
-
}
|
|
90
|
-
possibleTypes {
|
|
91
|
-
...TypeRef
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
fragment InputValue on __InputValue {
|
|
96
|
-
name
|
|
97
|
-
`).concat(n,`
|
|
98
|
-
type { ...TypeRef }
|
|
99
|
-
defaultValue
|
|
100
|
-
`).concat(a("isDeprecated"),`
|
|
101
|
-
`).concat(a("deprecationReason"),`
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
fragment TypeRef on __Type {
|
|
105
|
-
kind
|
|
106
|
-
name
|
|
107
|
-
ofType {
|
|
108
|
-
kind
|
|
109
|
-
name
|
|
110
|
-
ofType {
|
|
111
|
-
kind
|
|
112
|
-
name
|
|
113
|
-
ofType {
|
|
114
|
-
kind
|
|
115
|
-
name
|
|
116
|
-
ofType {
|
|
117
|
-
kind
|
|
118
|
-
name
|
|
119
|
-
ofType {
|
|
120
|
-
kind
|
|
121
|
-
name
|
|
122
|
-
ofType {
|
|
123
|
-
kind
|
|
124
|
-
name
|
|
125
|
-
ofType {
|
|
126
|
-
kind
|
|
127
|
-
name
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
`)}function Cp(t,e){pt(t)&&pt(t.__schema)||H(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(A(t),"."));for(var n=t.__schema,r=xt(n.types,function(E){return E.name},function(E){return m(E)}),i=0,o=[].concat(eo,Ir);i<o.length;i++){var a=o[i];r[a.name]&&(r[a.name]=a)}var s=n.queryType?h(n.queryType):null,u=n.mutationType?h(n.mutationType):null,c=n.subscriptionType?h(n.subscriptionType):null,l=n.directives?n.directives.map(K):[];return new Fc({description:n.description,query:s,mutation:u,subscription:c,types:De(r),directives:l,assumeValid:e==null?void 0:e.assumeValid});function f(E){if(E.kind===ne.LIST){var R=E.ofType;if(!R)throw new Error("Decorated type deeper than introspection query.");return new me(f(R))}if(E.kind===ne.NON_NULL){var w=E.ofType;if(!w)throw new Error("Decorated type deeper than introspection query.");var F=f(w);return new G(Ec(F))}return d(E)}function d(E){var R=E.name;if(!R)throw new Error("Unknown type reference: ".concat(A(E),"."));var w=r[R];if(!w)throw new Error("Invalid or incomplete schema, unknown type: ".concat(R,". Ensure that a full introspection query is used in order to build a client schema."));return w}function h(E){return Yl(d(E))}function p(E){return Zl(d(E))}function m(E){if(E!=null&&E.name!=null&&E.kind!=null)switch(E.kind){case ne.SCALAR:return y(E);case ne.OBJECT:return g(E);case ne.INTERFACE:return k(E);case ne.UNION:return D(E);case ne.ENUM:return N(E);case ne.INPUT_OBJECT:return x(E)}var R=A(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(R,"."))}function y(E){return new Tt({name:E.name,description:E.description,specifiedByUrl:E.specifiedByUrl})}function b(E){if(E.interfaces===null&&E.kind===ne.INTERFACE)return[];if(!E.interfaces){var R=A(E);throw new Error("Introspection result missing interfaces: ".concat(R,"."))}return E.interfaces.map(p)}function g(E){return new Me({name:E.name,description:E.description,interfaces:function(){return b(E)},fields:function(){return I(E)}})}function k(E){return new Dr({name:E.name,description:E.description,interfaces:function(){return b(E)},fields:function(){return I(E)}})}function D(E){if(!E.possibleTypes){var R=A(E);throw new Error("Introspection result missing possibleTypes: ".concat(R,"."))}return new Ar({name:E.name,description:E.description,types:function(){return E.possibleTypes.map(h)}})}function N(E){if(!E.enumValues){var R=A(E);throw new Error("Introspection result missing enumValues: ".concat(R,"."))}return new tn({name:E.name,description:E.description,values:xt(E.enumValues,function(w){return w.name},function(w){return{description:w.description,deprecationReason:w.deprecationReason}})})}function x(E){if(!E.inputFields){var R=A(E);throw new Error("Introspection result missing inputFields: ".concat(R,"."))}return new Zi({name:E.name,description:E.description,fields:function(){return z(E.inputFields)}})}function I(E){if(!E.fields)throw new Error("Introspection result missing fields: ".concat(A(E),"."));return xt(E.fields,function(R){return R.name},P)}function P(E){var R=f(E.type);if(!At(R)){var w=A(R);throw new Error("Introspection must provide output type for fields, but received: ".concat(w,"."))}if(!E.args){var F=A(E);throw new Error("Introspection result missing field args: ".concat(F,"."))}return{description:E.description,deprecationReason:E.deprecationReason,type:R,args:z(E.args)}}function z(E){return xt(E,function(R){return R.name},j)}function j(E){var R=f(E.type);if(!qe(R)){var w=A(R);throw new Error("Introspection must provide input type for arguments, but received: ".concat(w,"."))}var F=E.defaultValue!=null?hn(ql(E.defaultValue),R):void 0;return{description:E.description,type:R,defaultValue:F,deprecationReason:E.deprecationReason}}function K(E){if(!E.args){var R=A(E);throw new Error("Introspection result missing directive args: ".concat(R,"."))}if(!E.locations){var w=A(E);throw new Error("Introspection result missing directive locations: ".concat(w,"."))}return new Vt({name:E.name,description:E.description,isRepeatable:E.isRepeatable,locations:E.locations.slice(),args:z(E.args)})}}const pa=`\r
|
|
137
|
-
\r
|
|
138
|
-
`,Ip=new TextDecoder;async function*Rp(t,e,n){const r=t.getReader(),i=!n||!n.multiple;let o="",a=!0,s=[];try{let u;e:for(;!(u=await r.read()).done;){const c=Ip.decode(u.value),l=c.indexOf(e);let f=o.length;for(o+=c,~l?f+=l:f=o.indexOf(e),s=[];~f;){const d=o.substring(0,f),h=o.substring(f+e.length);if(a)a=!1;else{const p={},m=d.indexOf(pa),y=o.slice(0,m).toString().trim().split(/\r\n/);let b;for(;b=y.shift();)b=b.split(": "),p[b.shift().toLowerCase()]=b.join(": ");let g=d.substring(m+pa.length,d.lastIndexOf(`\r
|
|
139
|
-
`)),k=!1;if(b=p["content-type"],b&&~b.indexOf("application/json"))try{g=JSON.parse(g),k=!0}catch(D){}if(b={headers:p,body:g,json:k},i?yield b:s.push(b),h.substring(0,2)==="--")break e}o=h,f=o.indexOf(e)}s.length&&(yield s)}}finally{s.length&&(yield s),r.releaseLock()}}async function Fp(t,e){if(!t.ok||!t.body||t.bodyUsed)return t;const n=t.headers.get("content-type");if(!n||!~n.indexOf("multipart/mixed"))return t;const r=n.indexOf("boundary=");return Rp(t.body,`--${~r?n.substring(r+9).trim().replace(/['"]/g,""):"-"}`,e)}const go=Object.prototype.hasOwnProperty;function gn(t){return typeof t=="object"&&t!==null}function Lp(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function ln(t,e){return go.call(t,e)}function zn(t,e){return go.call(t,e)&&gn(t[e])}function zt(t,e){return go.call(t,e)&&typeof t[e]=="string"}function da(t,e){return t.length<124?t:e}const qp="graphql-transport-ws";var Ae;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(Ae||(Ae={}));var ve;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(ve||(ve={}));function Ii(t){if(gn(t)){if(!zt(t,"type"))return!1;switch(t.type){case ve.ConnectionInit:return!ln(t,"payload")||t.payload===void 0||gn(t.payload);case ve.ConnectionAck:case ve.Ping:case ve.Pong:return!ln(t,"payload")||t.payload===void 0||gn(t.payload);case ve.Subscribe:return zt(t,"id")&&zn(t,"payload")&&(!ln(t.payload,"operationName")||t.payload.operationName===void 0||t.payload.operationName===null||typeof t.payload.operationName=="string")&&zt(t.payload,"query")&&(!ln(t.payload,"variables")||t.payload.variables===void 0||t.payload.variables===null||zn(t.payload,"variables"))&&(!ln(t.payload,"extensions")||t.payload.extensions===void 0||t.payload.extensions===null||zn(t.payload,"extensions"));case ve.Next:return zt(t,"id")&&zn(t,"payload");case ve.Error:return zt(t,"id")&&Lp(t.payload);case ve.Complete:return zt(t,"id");default:return!1}}return!1}function Pp(t,e){if(Ii(t))return t;if(typeof t!="string")throw new Error("Message not parsable");const n=JSON.parse(t,e);if(!Ii(n))throw new Error("Invalid message");return n}function fn(t,e){if(!Ii(t))throw new Error("Cannot stringify invalid message");return JSON.stringify(t,e)}function Mp(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:c=5,retryWait:l=async function(R){let w=1e3;for(let F=0;F<R;F++)w*=2;await new Promise(F=>setTimeout(F,w+Math.floor(Math.random()*(3e3-300)+300)))},isFatalConnectionProblem:f=E=>!Gn(E),on:d,webSocketImpl:h,generateID:p=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,R=>{const w=Math.random()*16|0;return(R=="x"?w:w&3|8).toString(16)})},jsonMessageReplacer:m,jsonMessageReviver:y}=t;let b;if(h){if(!jp(h))throw new Error("Invalid WebSocket implementation provided");b=h}else typeof WebSocket!="undefined"?b=WebSocket:typeof global!="undefined"?b=global.WebSocket||global.MozWebSocket:typeof window!="undefined"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const g=b,k=(()=>{const E=(()=>{const w={};return{on(F,L){return w[F]=L,()=>{delete w[F]}},emit(F){var L;"id"in F&&((L=w[F.id])===null||L===void 0||L.call(w,F))}}})(),R={connecting:d!=null&&d.connecting?[d.connecting]:[],opened:d!=null&&d.opened?[d.opened]:[],connected:d!=null&&d.connected?[d.connected]:[],ping:d!=null&&d.ping?[d.ping]:[],pong:d!=null&&d.pong?[d.pong]:[],message:d!=null&&d.message?[E.emit,d.message]:[E.emit],closed:d!=null&&d.closed?[d.closed]:[],error:d!=null&&d.error?[d.error]:[]};return{onMessage:E.on,on(w,F){const L=R[w];return L.push(F),()=>{L.splice(L.indexOf(F),1)}},emit(w,...F){for(const L of[...R[w]])L(...F)}}})();function D(E){const R=[k.on("error",w=>{R.forEach(F=>F()),E(w)}),k.on("closed",w=>{R.forEach(F=>F()),E(w)})]}let N,x=0,I=!1,P=0,z=!1;async function j(){const[E,R]=await(N!=null?N:N=new Promise((L,_e)=>(async()=>{if(I){if(await l(P),!x)return N=void 0,_e({code:1e3,reason:"All Subscriptions Gone"});P++}k.emit("connecting");const $=new g(typeof e=="function"?await e():e,qp);let Fe,fe;function pe(){isFinite(a)&&a>0&&(clearTimeout(fe),fe=setTimeout(()=>{$.readyState===g.OPEN&&($.send(fn({type:ve.Ping})),k.emit("ping",!1,void 0))},a))}D(ue=>{N=void 0,clearTimeout(Fe),clearTimeout(fe),_e(ue),Gn(ue)&&ue.code===4499&&($.close(4499,"Terminated"),$.onerror=null,$.onclose=null)}),$.onerror=ue=>k.emit("error",ue),$.onclose=ue=>k.emit("closed",ue),$.onopen=async()=>{try{k.emit("opened",$);const ue=typeof n=="function"?await n():n;if($.readyState!==g.OPEN)return;$.send(fn(ue?{type:ve.ConnectionInit,payload:ue}:{type:ve.ConnectionInit},m)),isFinite(u)&&u>0&&(Fe=setTimeout(()=>{$.close(Ae.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),pe()}catch(ue){k.emit("error",ue),$.close(Ae.InternalClientError,da(ue instanceof Error?ue.message:new Error(ue).message,"Internal client error"))}};let st=!1;$.onmessage=({data:ue})=>{try{const ae=Pp(ue,y);if(k.emit("message",ae),ae.type==="ping"||ae.type==="pong"){k.emit(ae.type,!0,ae.payload),ae.type==="pong"?pe():s||($.send(fn(ae.payload?{type:ve.Pong,payload:ae.payload}:{type:ve.Pong})),k.emit("pong",!1,ae.payload));return}if(st)return;if(ae.type!==ve.ConnectionAck)throw new Error(`First message cannot be of type ${ae.type}`);clearTimeout(Fe),st=!0,k.emit("connected",$,ae.payload),I=!1,P=0,L([$,new Promise((O,M)=>D(M))])}catch(ae){$.onmessage=null,k.emit("error",ae),$.close(Ae.BadResponse,da(ae instanceof Error?ae.message:new Error(ae).message,"Bad response"))}}})()));E.readyState===g.CLOSING&&await R;let w=()=>{};const F=new Promise(L=>w=L);return[E,w,Promise.race([F.then(()=>{if(!x){const L=()=>E.close(1e3,"Normal Closure");isFinite(o)&&o>0?setTimeout(()=>{!x&&E.readyState===g.OPEN&&L()},o):L()}}),R])]}function K(E){if(Gn(E)&&(Vp(E.code)||[Ae.InternalServerError,Ae.InternalClientError,Ae.BadRequest,Ae.BadResponse,Ae.Unauthorized,Ae.SubprotocolNotAcceptable,Ae.SubscriberAlreadyExists,Ae.TooManyInitialisationRequests].includes(E.code)))throw E;if(z)return!1;if(Gn(E)&&E.code===1e3)return x>0;if(!c||P>=c||f(E))throw E;return I=!0}return r||(async()=>{for(x++;;)try{const[,,E]=await j();await E}catch(E){try{if(!K(E))return}catch(R){return i==null?void 0:i(R)}}})(),{on:k.on,subscribe(E,R){const w=p();let F=!1,L=!1,_e=()=>{x--,F=!0};return(async()=>{for(x++;;)try{const[$,Fe,fe]=await j();if(F)return Fe();const pe=k.onMessage(w,st=>{switch(st.type){case ve.Next:{R.next(st.payload);return}case ve.Error:{L=!0,F=!0,R.error(st.payload),_e();return}case ve.Complete:{F=!0,_e();return}}});$.send(fn({id:w,type:ve.Subscribe,payload:E},m)),_e=()=>{!F&&$.readyState===g.OPEN&&$.send(fn({id:w,type:ve.Complete},m)),x--,F=!0,Fe()},await fe.finally(pe);return}catch($){if(!K($))return}})().then(()=>{L||R.complete()}).catch($=>{R.error($)}),()=>{F||_e()}},async dispose(){if(z=!0,N){const[E]=await N;E.close(1e3,"Normal Closure")}},terminate(){N&&k.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}function Gn(t){return gn(t)&&"code"in t&&"reason"in t}function Vp(t){return[1e3,1001,1006,1005,1012,1013,1013].includes(t)?!1:t>=1e3&&t<=1999}function jp(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}function Xr(){const t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}const ha=Symbol(),va=Symbol();function Up(){let t=!0;const e=[];let n=Xr();const r=Xr(),i=async function*(){for(;;)if(e.length>0)yield e.shift();else{const c=await Promise.race([n.promise,r.promise]);if(c===ha)break;if(c!==va)throw c}}();function o(u){t!==!1&&(e.push(u),n.resolve(va),n=Xr())}const a=i.return.bind(i);i.return=(...u)=>(t=!1,r.resolve(ha),a(...u));const s=i.throw.bind(i);return i.throw=u=>(t=!1,r.resolve(u),s(u)),{pushValue:o,asyncIterableIterator:i}}const au=t=>{const{pushValue:e,asyncIterableIterator:n}=Up(),r=t({next:a=>{e(a)},complete:()=>{n.return()},error:a=>{n.throw(a)}}),i=n.return;let o;return n.return=()=>(o===void 0&&(r(),o=i()),o),n};function Bp(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator&&Symbol.asyncIterator in t)}var zp=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},lt=globalThis&&globalThis.__await||function(t){return this instanceof lt?(this.v=t,this):new lt(t)},Gp=globalThis&&globalThis.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(a){return new Promise(function(s,u){a=t[o](a),i(s,u,a.done,a.value)})}}function i(o,a,s,u){Promise.resolve(u).then(function(c){o({value:c,done:s})},a)}},Qp=globalThis&&globalThis.__asyncGenerator||function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(d){r[d]&&(i[d]=function(h){return new Promise(function(p,m){o.push([d,h,p,m])>1||s(d,h)})})}function s(d,h){try{u(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){d.value instanceof lt?Promise.resolve(d.value.v).then(c,l):f(o[0][2],d)}function c(d){s("next",d)}function l(d){s("throw",d)}function f(d,h){d(h),o.shift(),o.length&&s(o[0][0],o[0][1])}};const Hp=(t,e)=>{let n=!1;return Ye(t,{OperationDefinition(r){var i;e===((i=r.name)===null||i===void 0?void 0:i.value)&&r.operation==="subscription"&&(n=!0)}}),n},$p=(t,e)=>(n,r)=>zp(void 0,void 0,void 0,function*(){return(yield e(t.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},t.headers),r==null?void 0:r.headers)})).json()}),Jp=(t,e)=>{let n;try{return n=Mp({url:t,connectionParams:e}),su(n)}catch(r){console.error(`Error creating websocket client for:
|
|
140
|
-
${t}
|
|
141
|
-
|
|
142
|
-
${r}`)}},su=t=>e=>au(n=>t.subscribe(e,Object.assign(Object.assign({},n),{error:r=>{r instanceof Error?n.error(r):r instanceof CloseEvent?n.error(new Error(`Socket closed with event ${r.code} ${r.reason||""}`.trim())):n.error(new Error(r.map(({message:i})=>i).join(", ")))}}))),Wp=t=>e=>{const n=t.request(e);return au(r=>n.subscribe(r).unsubscribe)},Yp=(t,e)=>function(n,r){return Qp(this,arguments,function*(){var i,o;const a=yield lt(e(t.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},t.headers),r==null?void 0:r.headers)}).then(c=>Fp(c,{multiple:!0})));if(!Bp(a))return yield lt(yield yield lt(a.json()));try{for(var s=Gp(a),u;u=yield lt(s.next()),!u.done;){const c=u.value;if(c.some(l=>!l.json)){const l=c.map(f=>`Headers::
|
|
143
|
-
${f.headers}
|
|
144
|
-
|
|
145
|
-
Body::
|
|
146
|
-
${f.body}`);throw new Error(`Expected multipart chunks to be of json type. got:
|
|
147
|
-
${l}`)}yield yield lt(c.map(l=>l.body))}}catch(c){i={error:c}}finally{try{u&&!u.done&&(o=s.return)&&(yield lt(o.call(s)))}finally{if(i)throw i.error}}})},Zp=t=>{if(t.wsClient)return su(t.wsClient);if(t.subscriptionUrl)return Jp(t.subscriptionUrl,t.wsConnectionParams);const e=t.legacyClient||t.legacyWsClient;if(e)return Wp(e)};function Xp(t){let e;if(typeof window!="undefined"&&window.fetch&&(e=window.fetch),((t==null?void 0:t.enableIncrementalDelivery)===null||t.enableIncrementalDelivery!==!1)&&(t.enableIncrementalDelivery=!0),t.fetch&&(e=t.fetch),!e)throw Error("No valid fetcher implementation available");const n=$p(t,e),r=Zp(t),i=t.enableIncrementalDelivery?Yp(t,e):n;return(o,a)=>{if(o.operationName==="IntrospectionQuery")return(t.schemaFetcher||n)(o,a);if(Hp(a==null?void 0:a.documentAST,o.operationName)){if(!r)throw Error(`Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. ${t.subscriptionUrl?`Provided URL ${t.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."}`);return r(o)}return i(o,a)}}var ma;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(ma||(ma={}));var lr;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(lr||(lr={}));var nt;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=lr.MAX_VALUE),i===Number.MAX_VALUE&&(i=lr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return T.objectLiteral(i)&&T.uinteger(i.line)&&T.uinteger(i.character)}t.is=n})(nt||(nt={}));var ke;(function(t){function e(r,i,o,a){if(T.uinteger(r)&&T.uinteger(i)&&T.uinteger(o)&&T.uinteger(a))return{start:nt.create(r,i),end:nt.create(o,a)};if(nt.is(r)&&nt.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+a+"]")}t.create=e;function n(r){var i=r;return T.objectLiteral(i)&&nt.is(i.start)&&nt.is(i.end)}t.is=n})(ke||(ke={}));var Ri;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.range)&&(T.string(i.uri)||T.undefined(i.uri))}t.is=n})(Ri||(Ri={}));var ga;(function(t){function e(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.targetRange)&&T.string(i.targetUri)&&(ke.is(i.targetSelectionRange)||T.undefined(i.targetSelectionRange))&&(ke.is(i.originSelectionRange)||T.undefined(i.originSelectionRange))}t.is=n})(ga||(ga={}));var Fi;(function(t){function e(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}t.create=e;function n(r){var i=r;return T.numberRange(i.red,0,1)&&T.numberRange(i.green,0,1)&&T.numberRange(i.blue,0,1)&&T.numberRange(i.alpha,0,1)}t.is=n})(Fi||(Fi={}));var ya;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ke.is(i.range)&&Fi.is(i.color)}t.is=n})(ya||(ya={}));var ba;(function(t){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}t.create=e;function n(r){var i=r;return T.string(i.label)&&(T.undefined(i.textEdit)||bt.is(i))&&(T.undefined(i.additionalTextEdits)||T.typedArray(i.additionalTextEdits,bt.is))}t.is=n})(ba||(ba={}));var _a;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(_a||(_a={}));var Ea;(function(t){function e(r,i,o,a,s){var u={startLine:r,endLine:i};return T.defined(o)&&(u.startCharacter=o),T.defined(a)&&(u.endCharacter=a),T.defined(s)&&(u.kind=s),u}t.create=e;function n(r){var i=r;return T.uinteger(i.startLine)&&T.uinteger(i.startLine)&&(T.undefined(i.startCharacter)||T.uinteger(i.startCharacter))&&(T.undefined(i.endCharacter)||T.uinteger(i.endCharacter))&&(T.undefined(i.kind)||T.string(i.kind))}t.is=n})(Ea||(Ea={}));var Li;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&Ri.is(i.location)&&T.string(i.message)}t.is=n})(Li||(Li={}));var Ta;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ta||(Ta={}));var ka;(function(t){t.Unnecessary=1,t.Deprecated=2})(ka||(ka={}));var wa;(function(t){function e(n){var r=n;return r!=null&&T.string(r.href)}t.is=e})(wa||(wa={}));var fr;(function(t){function e(r,i,o,a,s,u){var c={range:r,message:i};return T.defined(o)&&(c.severity=o),T.defined(a)&&(c.code=a),T.defined(s)&&(c.source=s),T.defined(u)&&(c.relatedInformation=u),c}t.create=e;function n(r){var i,o=r;return T.defined(o)&&ke.is(o.range)&&T.string(o.message)&&(T.number(o.severity)||T.undefined(o.severity))&&(T.integer(o.code)||T.string(o.code)||T.undefined(o.code))&&(T.undefined(o.codeDescription)||T.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(T.string(o.source)||T.undefined(o.source))&&(T.undefined(o.relatedInformation)||T.typedArray(o.relatedInformation,Li.is))}t.is=n})(fr||(fr={}));var Sn;(function(t){function e(r,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s={title:r,command:i};return T.defined(o)&&o.length>0&&(s.arguments=o),s}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.title)&&T.string(i.command)}t.is=n})(Sn||(Sn={}));var bt;(function(t){function e(o,a){return{range:o,newText:a}}t.replace=e;function n(o,a){return{range:{start:o,end:o},newText:a}}t.insert=n;function r(o){return{range:o,newText:""}}t.del=r;function i(o){var a=o;return T.objectLiteral(a)&&T.string(a.newText)&&ke.is(a.range)}t.is=i})(bt||(bt={}));var Wt;(function(t){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}t.create=e;function n(r){var i=r;return i!==void 0&&T.objectLiteral(i)&&T.string(i.label)&&(T.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(T.string(i.description)||i.description===void 0)}t.is=n})(Wt||(Wt={}));var Se;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(Se||(Se={}));var yt;(function(t){function e(o,a,s){return{range:o,newText:a,annotationId:s}}t.replace=e;function n(o,a,s){return{range:{start:o,end:o},newText:a,annotationId:s}}t.insert=n;function r(o,a){return{range:o,newText:"",annotationId:a}}t.del=r;function i(o){var a=o;return bt.is(a)&&(Wt.is(a.annotationId)||Se.is(a.annotationId))}t.is=i})(yt||(yt={}));var pr;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&dr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(pr||(pr={}));var xn;(function(t){function e(r,i,o){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&T.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||T.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||T.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Se.is(i.annotationId))}t.is=n})(xn||(xn={}));var Nn;(function(t){function e(r,i,o,a){var s={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(s.options=o),a!==void 0&&(s.annotationId=a),s}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&T.string(i.oldUri)&&T.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||T.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||T.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Se.is(i.annotationId))}t.is=n})(Nn||(Nn={}));var Dn;(function(t){function e(r,i,o){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&T.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||T.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||T.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Se.is(i.annotationId))}t.is=n})(Dn||(Dn={}));var qi;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return T.string(i.kind)?xn.is(i)||Nn.is(i)||Dn.is(i):pr.is(i)}))}t.is=e})(qi||(qi={}));var Qn=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,o;if(r===void 0?i=bt.insert(e,n):Se.is(r)?(o=r,i=yt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=yt.insert(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.replace=function(e,n,r){var i,o;if(r===void 0?i=bt.replace(e,n):Se.is(r)?(o=r,i=yt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=yt.replace(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=bt.del(e):Se.is(n)?(i=n,r=yt.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=yt.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Sa=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(Se.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Sa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(pr.is(r)){var i=new Qn(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Qn(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(dr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Qn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new Qn(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Sa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Wt.is(n)||Se.is(n)?i=n:r=n;var o,a;if(i===void 0?o=xn.create(e,r):(a=Se.is(i)?i:this._changeAnnotations.manage(i),o=xn.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Wt.is(r)||Se.is(r)?o=r:i=r;var a,s;if(o===void 0?a=Nn.create(e,n,i):(s=Se.is(o)?o:this._changeAnnotations.manage(o),a=Nn.create(e,n,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Wt.is(n)||Se.is(n)?i=n:r=n;var o,a;if(i===void 0?o=Dn.create(e,r):(a=Se.is(i)?i:this._changeAnnotations.manage(i),o=Dn.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t})();var xa;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)}t.is=n})(xa||(xa={}));var Na;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&T.integer(i.version)}t.is=n})(Na||(Na={}));var dr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&(i.version===null||T.integer(i.version))}t.is=n})(dr||(dr={}));var Da;(function(t){function e(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&T.string(i.languageId)&&T.integer(i.version)&&T.string(i.text)}t.is=n})(Da||(Da={}));var An;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(An||(An={}));(function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(An||(An={}));var Pi;(function(t){function e(n){var r=n;return T.objectLiteral(n)&&An.is(r.kind)&&T.string(r.value)}t.is=e})(Pi||(Pi={}));var Aa;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Aa||(Aa={}));var Oa;(function(t){t.PlainText=1,t.Snippet=2})(Oa||(Oa={}));var Ca;(function(t){t.Deprecated=1})(Ca||(Ca={}));var Ia;(function(t){function e(r,i,o){return{newText:r,insert:i,replace:o}}t.create=e;function n(r){var i=r;return i&&T.string(i.newText)&&ke.is(i.insert)&&ke.is(i.replace)}t.is=n})(Ia||(Ia={}));var Ra;(function(t){t.asIs=1,t.adjustIndentation=2})(Ra||(Ra={}));var Fa;(function(t){function e(n){return{label:n}}t.create=e})(Fa||(Fa={}));var La;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(La||(La={}));var hr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return T.string(i)||T.objectLiteral(i)&&T.string(i.language)&&T.string(i.value)}t.is=n})(hr||(hr={}));var qa;(function(t){function e(n){var r=n;return!!r&&T.objectLiteral(r)&&(Pi.is(r.contents)||hr.is(r.contents)||T.typedArray(r.contents,hr.is))&&(n.range===void 0||ke.is(n.range))}t.is=e})(qa||(qa={}));var Pa;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Pa||(Pa={}));var Ma;(function(t){function e(n,r){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a={label:n};return T.defined(r)&&(a.documentation=r),T.defined(i)?a.parameters=i:a.parameters=[],a}t.create=e})(Ma||(Ma={}));var Va;(function(t){t.Text=1,t.Read=2,t.Write=3})(Va||(Va={}));var ja;(function(t){function e(n,r){var i={range:n};return T.number(r)&&(i.kind=r),i}t.create=e})(ja||(ja={}));var Ua;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ua||(Ua={}));var Ba;(function(t){t.Deprecated=1})(Ba||(Ba={}));var za;(function(t){function e(n,r,i,o,a){var s={name:n,kind:r,location:{uri:o,range:i}};return a&&(s.containerName=a),s}t.create=e})(za||(za={}));var Ga;(function(t){function e(r,i,o,a,s,u){var c={name:r,detail:i,kind:o,range:a,selectionRange:s};return u!==void 0&&(c.children=u),c}t.create=e;function n(r){var i=r;return i&&T.string(i.name)&&T.number(i.kind)&&ke.is(i.range)&&ke.is(i.selectionRange)&&(i.detail===void 0||T.string(i.detail))&&(i.deprecated===void 0||T.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(Ga||(Ga={}));var Qa;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Qa||(Qa={}));var Ha;(function(t){function e(r,i){var o={diagnostics:r};return i!=null&&(o.only=i),o}t.create=e;function n(r){var i=r;return T.defined(i)&&T.typedArray(i.diagnostics,fr.is)&&(i.only===void 0||T.typedArray(i.only,T.string))}t.is=n})(Ha||(Ha={}));var $a;(function(t){function e(r,i,o){var a={title:r},s=!0;return typeof i=="string"?(s=!1,a.kind=i):Sn.is(i)?a.command=i:a.edit=i,s&&o!==void 0&&(a.kind=o),a}t.create=e;function n(r){var i=r;return i&&T.string(i.title)&&(i.diagnostics===void 0||T.typedArray(i.diagnostics,fr.is))&&(i.kind===void 0||T.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Sn.is(i.command))&&(i.isPreferred===void 0||T.boolean(i.isPreferred))&&(i.edit===void 0||qi.is(i.edit))}t.is=n})($a||($a={}));var Ja;(function(t){function e(r,i){var o={range:r};return T.defined(i)&&(o.data=i),o}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.range)&&(T.undefined(i.command)||Sn.is(i.command))}t.is=n})(Ja||(Ja={}));var Wa;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.uinteger(i.tabSize)&&T.boolean(i.insertSpaces)}t.is=n})(Wa||(Wa={}));var Ya;(function(t){function e(r,i,o){return{range:r,target:i,data:o}}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.range)&&(T.undefined(i.target)||T.string(i.target))}t.is=n})(Ya||(Ya={}));var Za;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){var i=r;return i!==void 0&&ke.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Za||(Za={}));var Xa;(function(t){function e(o,a,s,u){return new Kp(o,a,s,u)}t.create=e;function n(o){var a=o;return!!(T.defined(a)&&T.string(a.uri)&&(T.undefined(a.languageId)||T.string(a.languageId))&&T.uinteger(a.lineCount)&&T.func(a.getText)&&T.func(a.positionAt)&&T.func(a.offsetAt))}t.is=n;function r(o,a){for(var s=o.getText(),u=i(a,function(p,m){var y=p.range.start.line-m.range.start.line;return y===0?p.range.start.character-m.range.start.character:y}),c=s.length,l=u.length-1;l>=0;l--){var f=u[l],d=o.offsetAt(f.range.start),h=o.offsetAt(f.range.end);if(h<=c)s=s.substring(0,d)+f.newText+s.substring(h,s.length);else throw new Error("Overlapping edit");c=d}return s}t.applyEdits=r;function i(o,a){if(o.length<=1)return o;var s=o.length/2|0,u=o.slice(0,s),c=o.slice(s);i(u,a),i(c,a);for(var l=0,f=0,d=0;l<u.length&&f<c.length;){var h=a(u[l],c[f]);h<=0?o[d++]=u[l++]:o[d++]=c[f++]}for(;l<u.length;)o[d++]=u[l++];for(;f<c.length;)o[d++]=c[f++];return o}})(Xa||(Xa={}));var Kp=function(){function t(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(e.push(i),r=!1);var o=n.charAt(i);r=o==="\r"||o===`
|
|
148
|
-
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
149
|
-
`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return nt.create(0,e);for(;r<i;){var o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}var a=r-1;return nt.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),T;(function(t){var e=Object.prototype.toString;function n(h){return typeof h!="undefined"}t.defined=n;function r(h){return typeof h=="undefined"}t.undefined=r;function i(h){return h===!0||h===!1}t.boolean=i;function o(h){return e.call(h)==="[object String]"}t.string=o;function a(h){return e.call(h)==="[object Number]"}t.number=a;function s(h,p,m){return e.call(h)==="[object Number]"&&p<=h&&h<=m}t.numberRange=s;function u(h){return e.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}t.integer=u;function c(h){return e.call(h)==="[object Number]"&&0<=h&&h<=2147483647}t.uinteger=c;function l(h){return e.call(h)==="[object Function]"}t.func=l;function f(h){return h!==null&&typeof h=="object"}t.objectLiteral=f;function d(h,p){return Array.isArray(h)&&h.every(p)}t.typedArray=d})(T||(T={}));class ed{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let o=null,a=null;return typeof n=="string"?(a=new RegExp(n,i?"i":"g").test(this._sourceText.substr(this._pos,n.length)),o=n):n instanceof RegExp&&(a=this._sourceText.slice(this._pos).match(n),o=a&&a[0]),a!=null&&(typeof n=="string"||a instanceof Array&&this._sourceText.startsWith(a[0],this._pos))?(r&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),a):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let r=0;if(n&&n.length!==0){const i=n[0];let o=0;for(;i.length>o;)i.charCodeAt(o)===9?r+=2:r++,o++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const n=this._sourceText.charAt(this._pos);let r=!1;return typeof e=="string"?r=n===e:r=e instanceof RegExp?e.test(n):e(n),r}}function he(t){return{ofRule:t}}function J(t,e){return{ofRule:t,isList:!0,separator:e}}function td(t,e){const n=t.match;return t.match=r=>{let i=!1;return n&&(i=n(r)),i&&e.every(o=>o.match&&!o.match(r))},t}function Kr(t,e){return{style:e,match:n=>n.kind===t}}function Q(t,e){return{style:e||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===t}}const nd=t=>t===" "||t===" "||t===","||t===`
|
|
150
|
-
`||t==="\r"||t==="\uFEFF"||t===" ",rd={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:/^#.*/},id={Document:[J("Definition")],Definition(t){switch(t.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return v.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:[Te("query"),he(te("def")),he("VariableDefinitions"),J("Directive"),"SelectionSet"],Mutation:[Te("mutation"),he(te("def")),he("VariableDefinitions"),J("Directive"),"SelectionSet"],Subscription:[Te("subscription"),he(te("def")),he("VariableDefinitions"),J("Directive"),"SelectionSet"],VariableDefinitions:[Q("("),J("VariableDefinition"),Q(")")],VariableDefinition:["Variable",Q(":"),"Type",he("DefaultValue")],Variable:[Q("$","variable"),te("variable")],DefaultValue:[Q("="),"Value"],SelectionSet:[Q("{"),J("Selection"),Q("}")],Selection(t,e){return t.value==="..."?e.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":e.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[te("property"),Q(":"),te("qualifier"),he("Arguments"),J("Directive"),he("SelectionSet")],Field:[te("property"),he("Arguments"),J("Directive"),he("SelectionSet")],Arguments:[Q("("),J("Argument"),Q(")")],Argument:[te("attribute"),Q(":"),"Value"],FragmentSpread:[Q("..."),te("def"),J("Directive")],InlineFragment:[Q("..."),he("TypeCondition"),J("Directive"),"SelectionSet"],FragmentDefinition:[Te("fragment"),he(td(te("def"),[Te("on")])),"TypeCondition",J("Directive"),"SelectionSet"],TypeCondition:[Te("on"),"NamedType"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(t.value){case"true":case"false":return"BooleanValue"}return t.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Kr("Number","number")],StringValue:[{style:"string",match:t=>t.kind==="String",update(t,e){e.value.startsWith('"""')&&(t.inBlockstring=!e.value.slice(3).endsWith('"""'))}}],BooleanValue:[Kr("Name","builtin")],NullValue:[Kr("Name","keyword")],EnumValue:[te("string-2")],ListValue:[Q("["),J("Value"),Q("]")],ObjectValue:[Q("{"),J("ObjectField"),Q("}")],ObjectField:[te("attribute"),Q(":"),"Value"],Type(t){return t.value==="["?"ListType":"NonNullType"},ListType:[Q("["),"Type",Q("]"),he(Q("!"))],NonNullType:["NamedType",he(Q("!"))],NamedType:[od("atom")],Directive:[Q("@","meta"),te("meta"),he("Arguments")],DirectiveDef:[Te("directive"),Q("@","meta"),te("meta"),he("ArgumentsDef"),Te("on"),J("DirectiveLocation",Q("|"))],InterfaceDef:[Te("interface"),te("atom"),he("Implements"),J("Directive"),Q("{"),J("FieldDef"),Q("}")],Implements:[Te("implements"),J("NamedType",Q("&"))],DirectiveLocation:[te("string-2")],SchemaDef:[Te("schema"),J("Directive"),Q("{"),J("OperationTypeDef"),Q("}")],OperationTypeDef:[te("keyword"),Q(":"),te("atom")],ScalarDef:[Te("scalar"),te("atom"),J("Directive")],ObjectTypeDef:[Te("type"),te("atom"),he("Implements"),J("Directive"),Q("{"),J("FieldDef"),Q("}")],FieldDef:[te("property"),he("ArgumentsDef"),Q(":"),"Type",J("Directive")],ArgumentsDef:[Q("("),J("InputValueDef"),Q(")")],InputValueDef:[te("attribute"),Q(":"),"Type",he("DefaultValue"),J("Directive")],UnionDef:[Te("union"),te("atom"),J("Directive"),Q("="),J("UnionMember",Q("|"))],UnionMember:["NamedType"],EnumDef:[Te("enum"),te("atom"),J("Directive"),Q("{"),J("EnumValueDef"),Q("}")],EnumValueDef:[te("string-2"),J("Directive")],InputDef:[Te("input"),te("atom"),J("Directive"),Q("{"),J("InputValueDef"),Q("}")],ExtendDef:[Te("extend"),"ObjectTypeDef"]};function Te(t){return{style:"keyword",match:e=>e.kind==="Name"&&e.value===t}}function te(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.name=n.value}}}function od(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.prevState&&e.prevState.prevState&&(e.name=n.value,e.prevState.prevState.type=n.value)}}}function ad(t={eatWhitespace:e=>e.eatWhile(nd),lexRules:rd,parseRules:id,editorConfig:{}}){return{startState(){const e={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return vn(t.parseRules,e,v.DOCUMENT),e},token(e,n){return sd(e,n,t)}}}function sd(t,e,n){if(e.inBlockstring)return t.match(/.*"""/)?(e.inBlockstring=!1,"string"):(t.skipToEnd(),"string");const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;if(e.rule&&e.rule.length===0?yo(e):e.needsAdvance&&(e.needsAdvance=!1,Mi(e,!0)),t.sol()){const c=a&&a.tabSize||2;e.indentLevel=Math.floor(t.indentation()/c)}if(o(t))return"ws";const s=ud(r,t);if(!s)return t.match(/\S+/)||t.match(/\s/),vn(ei,e,"Invalid"),"invalidchar";if(s.kind==="Comment")return vn(ei,e,"Comment"),"comment";const u=Ka({},e);if(s.kind==="Punctuation"){if(/^[{([]/.test(s.value))e.indentLevel!==void 0&&(e.levels=(e.levels||[]).concat(e.indentLevel+1));else if(/^[})\]]/.test(s.value)){const c=e.levels=(e.levels||[]).slice(0,-1);e.indentLevel&&c.length>0&&c[c.length-1]<e.indentLevel&&(e.indentLevel=c[c.length-1])}}for(;e.rule;){let c=typeof e.rule=="function"?e.step===0?e.rule(s,t):null:e.rule[e.step];if(e.needsSeperator&&(c=c&&(c==null?void 0:c.separator)),c){if(c.ofRule&&(c=c.ofRule),typeof c=="string"){vn(i,e,c);continue}if(c.match&&c.match(s))return c.update&&c.update(e,s),s.kind==="Punctuation"?Mi(e,!0):e.needsAdvance=!0,c.style}cd(e)}return Ka(e,u),vn(ei,e,"Invalid"),"invalidchar"}function Ka(t,e){const n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}const ei={Invalid:[],Comment:[]};function vn(t,e,n){if(!t[n])throw new TypeError("Unknown rule: "+n);e.prevState=Object.assign({},e),e.kind=n,e.name=null,e.type=null,e.rule=t[n],e.step=0,e.needsSeperator=!1}function yo(t){t.prevState&&(t.kind=t.prevState.kind,t.name=t.prevState.name,t.type=t.prevState.type,t.rule=t.prevState.rule,t.step=t.prevState.step,t.needsSeperator=t.prevState.needsSeperator,t.prevState=t.prevState.prevState)}function Mi(t,e){if(es(t)&&t.rule){const n=t.rule[t.step];if(n.separator){const r=n.separator;if(t.needsSeperator=!t.needsSeperator,!t.needsSeperator&&r.ofRule)return}if(e)return}for(t.needsSeperator=!1,t.step++;t.rule&&!(Array.isArray(t.rule)&&t.step<t.rule.length);)yo(t),t.rule&&(es(t)?t.rule&&t.rule[t.step].separator&&(t.needsSeperator=!t.needsSeperator):(t.needsSeperator=!1,t.step++))}function es(t){const e=Array.isArray(t.rule)&&typeof t.rule[t.step]!="string"&&t.rule[t.step];return e&&e.isList}function cd(t){for(;t.rule&&!(Array.isArray(t.rule)&&t.rule[t.step].ofRule);)yo(t);t.rule&&Mi(t,!1)}function ud(t,e){const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=e.match(t[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}const ld={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"},r7=Object.assign(Object.assign({},v),ld);var Lr={exports:{}};function cu(t,e){if(t!=null)return t;var n=new Error(e!==void 0?e:"Got unexpected "+t);throw n.framesToPop=1,n}Lr.exports=cu;Lr.exports.default=cu;Object.defineProperty(Lr.exports,"__esModule",{value:!0});var fd=Lr.exports;const ts=kr(fd),i7=(t,e)=>{if(!e)return[];let n;try{n=It(t)}catch(r){return[]}return uu(n,e)},uu=(t,e)=>{if(!e)return[];const n=new Map,r=new Set;Ye(t,{FragmentDefinition(a){n.set(a.name.value,!0)},FragmentSpread(a){r.has(a.name.value)||r.add(a.name.value)}});const i=new Set;r.forEach(a=>{!n.has(a)&&e.has(a)&&i.add(ts(e.get(a)))});const o=[];return i.forEach(a=>{Ye(a,{FragmentSpread(s){!r.has(s.name.value)&&e.get(s.name.value)&&(i.add(ts(e.get(s.name.value))),r.add(s.name.value))}}),n.has(a.name.value)||o.push(a)}),o};class bo{constructor(e,n){this.containsPosition=r=>this.start.line===r.line?this.start.character<=r.character:this.end.line===r.line?this.end.character>=r.character:this.start.line<=r.line&&this.end.line>=r.line,this.start=e,this.end=n}setStart(e,n){this.start=new Ft(e,n)}setEnd(e,n){this.end=new Ft(e,n)}}class Ft{constructor(e,n){this.lessThanOrEqualTo=r=>this.line<r.line||this.line===r.line&&this.character<=r.character,this.line=e,this.character=n}setLine(e){this.line=e}setCharacter(e){this.character=e}}function Vi(t,e){const n=`
|
|
151
|
-
`,r=t.slice(0,e),i=r.split(n).length-1,o=r.lastIndexOf(n);return new Ft(i,e-o-1)}function pd(t,e){const n=Vi(t,e.start),r=Vi(t,e.end);return new bo(n,r)}const dd=[Jc,Wc,Yc,Zc,Xc,Kc,lo,fo,po,eu,ho,mo];function hd(t,e,n,r,i){const o=tu.filter(s=>!(s===Bc||s===Vc||r&&s===Uc));return n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,dd),iu(t,e,o).filter(s=>{if(s.message.indexOf("Unknown directive")!==-1&&s.nodes){const u=s.nodes[0];if(u&&u.kind===v.DIRECTIVE){const c=u.name.value;if(c==="arguments"||c==="argumentDefinitions")return!1}}return!0})}function vd(t,e){const n=Object.create(null);return e.definitions.forEach(r=>{if(r.kind==="OperationDefinition"){const i=r.variableDefinitions;i&&i.forEach(({variable:o,type:a})=>{const s=Ue(t,a);s?n[o.name.value]=s:a.kind===v.NAMED_TYPE&&a.name.value==="Float"&&(n[o.name.value]=Oc)})}}),n}function md(t,e){const n=e?vd(e,t):void 0,r=[];return Ye(t,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function or(t,e){if(e)try{const n=It(e);return Object.assign(Object.assign({},md(n,t)),{documentAST:n})}catch(n){return}}const o7=or;var lu=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})};const fu="GraphQL";function _o(t,e){if(!t)throw new Error(e)}function Ln(t,e){const n=e.loc;return _o(n,"Expected ASTNode to have a location."),pd(t,n)}function pu(t,e){const n=e.loc;return _o(n,"Expected ASTNode to have a location."),Vi(t,n.start)}function a7(t,e,n){return lu(this,void 0,void 0,function*(){const r=e.name.value,i=n.filter(({definition:a})=>a.name&&a.name.value===r);if(i.length===0)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map(({filePath:a,content:s,definition:u})=>gd(a||"",s,u));return{definitions:o,queryRange:o.map(a=>Ln(t,e))}})}function s7(t,e,n){return lu(this,void 0,void 0,function*(){const r=e.name.value,i=n.filter(({definition:a})=>a.name.value===r);if(i.length===0)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map(({filePath:a,content:s,definition:u})=>du(a||"",s,u));return{definitions:o,queryRange:o.map(a=>Ln(t,e))}})}function c7(t,e,n){return{definitions:[du(t,e,n)],queryRange:n.name?[Ln(e,n.name)]:[]}}function du(t,e,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:t,position:pu(e,n),range:Ln(e,n),name:r.value||"",language:fu,projectRoot:t}}function gd(t,e,n){const r=n.name;return _o(r,"Expected ASTNode to have a Name."),{path:t,position:pu(e,n),range:Ln(e,n),name:r.value||"",language:fu,projectRoot:t}}const Hn={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},ji={[Hn.Error]:1,[Hn.Warning]:2,[Hn.Information]:3,[Hn.Hint]:4},vr=(t,e)=>{if(!t)throw new Error(e)};function u7(t,e=null,n,r,i){let o=null;i&&(typeof i=="string"?t+=`
|
|
152
|
-
|
|
153
|
-
`+i:t+=`
|
|
154
|
-
|
|
155
|
-
`+i.reduce((a,s)=>(a+=ie(s)+`
|
|
156
|
-
|
|
157
|
-
`,a),""));try{o=It(t)}catch(a){const s=bd(a.locations[0],t);return[{severity:ji.Error,message:a.message,source:"GraphQL: Syntax",range:s}]}return yd(o,e,n,r)}function yd(t,e=null,n,r){if(!e)return[];const i=ns(hd(e,t,n,r),a=>rs(a,ji.Error,"Validation")),o=ns(iu(e,t,[Np]),a=>rs(a,ji.Warning,"Deprecation"));return i.concat(o)}function ns(t,e){return Array.prototype.concat.apply([],t.map(e))}function rs(t,e,n){if(!t.nodes)return[];const r=[];return t.nodes.forEach(i=>{const o=i.kind!=="Variable"&&"name"in i&&i.name!==void 0?i.name:"variable"in i&&i.variable!==void 0?i.variable:i;if(o){vr(t.locations,"GraphQL validation error requires locations.");const a=t.locations[0],s=_d(o),u=a.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:t.message,severity:e,range:new bo(new Ft(a.line-1,a.column-1),new Ft(a.line-1,u))})}}),r}function bd(t,e){const n=ad(),r=n.startState(),i=e.split(`
|
|
158
|
-
`);vr(i.length>=t.line,"Query text must have more lines than where the error happened");let o=null;for(let c=0;c<t.line;c++)for(o=new ed(i[c]);!o.eol()&&n.token(o,r)!=="invalidchar";);vr(o,"Expected Parser stream to be available.");const a=t.line-1,s=o.getStartOfToken(),u=o.getCurrentPosition();return new bo(new Ft(a,s),new Ft(a,u))}function _d(t){const n=t.loc;return vr(n,"Expected ASTNode to have a location."),n}const l7={Created:1,Changed:2,Deleted:3};var is;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(is||(is={}));var Ed=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Td=function(t){Ed(e,t);function e(n){var r=t.call(this,n)||this;return r._onClick=function(){r.props.isRunning?r.props.onStop():r.props.onRun()},r._onOptionSelected=function(i){r.setState({optionsOpen:!1}),r.props.onRun(i.name&&i.name.value)},r._onOptionsOpen=function(i){var o=!0,a=i.currentTarget;r.setState({highlight:null,optionsOpen:!0});var s=function(u){var c;if(o&&u.target===a)o=!1;else{document.removeEventListener("mouseup",s),s=null;var l=u.currentTarget&&((c=a.parentNode)===null||c===void 0?void 0:c.compareDocumentPosition(u.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;l||r.setState({optionsOpen:!1})}};document.addEventListener("mouseup",s)},r.state={optionsOpen:!1,highlight:null},r}return e.prototype.render=function(){var n=this,r=this.props.operations||[],i=this.state.optionsOpen,o=r&&r.length>1,a=null;if(o&&i){var s=this.state.highlight;a=_("ul",{className:"execute-options",children:r.map(function(f,d){var h=f.name?f.name.value:"<Unnamed "+f.operation+">";return _("li",{className:f===s?"selected":void 0,onMouseOver:function(){return n.setState({highlight:f})},onMouseOut:function(){return n.setState({highlight:null})},onMouseUp:function(){return n._onOptionSelected(f)},children:h},h+"-"+d)})})}var u;(this.props.isRunning||!o)&&(u=this._onClick);var c=function(){};!this.props.isRunning&&o&&!i&&(c=this._onOptionsOpen);var l=this.props.isRunning?_("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):_("path",{d:"M 11 9 L 24 16 L 11 23 z"});return V("div",{className:"execute-button-wrap",children:[_("button",{type:"button",className:"execute-button",onMouseDown:c,onClick:u,title:"Execute Query (Ctrl-Enter)",children:_("svg",{width:"34",height:"34",children:l})}),a]})},e}(be.Component),kd=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();function os(t){if(t.type==="string"){var e=t.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(e,n.protocol+"//"+n.host)}catch(r){return}}}function wd(t){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(t.pathname)}var Sd=function(t){kd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._node=null,n.state={width:null,height:null,src:null,mime:null},n}return e.shouldRender=function(n){var r=os(n);return r?wd(r):!1},e.prototype.componentDidMount=function(){this._updateMetadata()},e.prototype.componentDidUpdate=function(){this._updateMetadata()},e.prototype.render=function(){var n=this,r,i=null;if(this.state.width!==null&&this.state.height!==null){var o=this.state.width+"x"+this.state.height;this.state.mime!==null&&(o+=" "+this.state.mime),i=_("div",{children:o})}return V("div",{children:[_("img",{onLoad:function(){return n._updateMetadata()},ref:function(a){n._node=a},src:(r=os(this.props.token))===null||r===void 0?void 0:r.href}),i]})},e.prototype._updateMetadata=function(){var n=this;if(this._node){var r=this._node.naturalWidth,i=this._node.naturalHeight,o=this._node.src;o!==this.state.src&&(this.setState({src:o}),fetch(o,{method:"HEAD"}).then(function(a){n.setState({mime:a.headers.get("Content-Type")})})),(r!==this.state.width||i!==this.state.height)&&this.setState({height:i,width:r})}},e}(be.Component),xd=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(t){xd(e,t);function e(n){var r=t.call(this,n)||this;return r.handleClick=function(){try{r.props.onClick(),r.setState({error:null})}catch(i){r.setState({error:i})}},r.state={error:null},r}return e.prototype.render=function(){var n=this.state.error;return _("button",{className:"toolbar-button"+(n?" error":""),onClick:this.handleClick,title:n?n.message:this.props.title,"aria-invalid":n?"true":"false",children:this.props.label})},e}(be.Component);function Nd(t){var e=t.children;return _("div",{className:"toolbar-button-group",children:e})}var Dd=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ad=function(t){Dd(e,t);function e(n){var r=t.call(this,n)||this;return r._node=null,r._listener=null,r.handleOpen=function(i){Ui(i),r.setState({visible:!0}),r._subscribe()},r.state={visible:!1},r}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,r=this.state.visible;return V("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Ui,ref:function(i){i&&(n._node=i)},title:this.props.title,children:[this.props.label,_("svg",{width:"14",height:"8",children:_("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})}),_("ul",{className:"toolbar-menu-items"+(r?" open":""),children:this.props.children})]})},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(n.preventDefault(),this.setState({visible:!1}),this._release())},e}(be.Component),Od=function(t){var e=t.onSelect,n=t.title,r=t.label;return _("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:Ui,onMouseUp:e,title:n,children:r})};function Ui(t){t.preventDefault()}var X={};const Cd="Á",Id="á",Rd="Ă",Fd="ă",Ld="∾",qd="∿",Pd="∾̳",Md="Â",Vd="â",jd="´",Ud="А",Bd="а",zd="Æ",Gd="æ",Qd="",Hd="𝔄",$d="𝔞",Jd="À",Wd="à",Yd="ℵ",Zd="ℵ",Xd="Α",Kd="α",eh="Ā",th="ā",nh="⨿",rh="&",ih="&",oh="⩕",ah="⩓",sh="∧",ch="⩜",uh="⩘",lh="⩚",fh="∠",ph="⦤",dh="∠",hh="⦨",vh="⦩",mh="⦪",gh="⦫",yh="⦬",bh="⦭",_h="⦮",Eh="⦯",Th="∡",kh="∟",wh="⊾",Sh="⦝",xh="∢",Nh="Å",Dh="⍼",Ah="Ą",Oh="ą",Ch="𝔸",Ih="𝕒",Rh="⩯",Fh="≈",Lh="⩰",qh="≊",Ph="≋",Mh="'",Vh="",jh="≈",Uh="≊",Bh="Å",zh="å",Gh="𝒜",Qh="𝒶",Hh="≔",$h="*",Jh="≈",Wh="≍",Yh="Ã",Zh="ã",Xh="Ä",Kh="ä",ev="∳",tv="⨑",nv="≌",rv="϶",iv="‵",ov="∽",av="⋍",sv="∖",cv="⫧",uv="⊽",lv="⌅",fv="⌆",pv="⌅",dv="⎵",hv="⎶",vv="≌",mv="Б",gv="б",yv="„",bv="∵",_v="∵",Ev="∵",Tv="⦰",kv="϶",wv="ℬ",Sv="ℬ",xv="Β",Nv="β",Dv="ℶ",Av="≬",Ov="𝔅",Cv="𝔟",Iv="⋂",Rv="◯",Fv="⋃",Lv="⨀",qv="⨁",Pv="⨂",Mv="⨆",Vv="★",jv="▽",Uv="△",Bv="⨄",zv="⋁",Gv="⋀",Qv="⤍",Hv="⧫",$v="▪",Jv="▴",Wv="▾",Yv="◂",Zv="▸",Xv="␣",Kv="▒",em="░",tm="▓",nm="█",rm="=⃥",im="≡⃥",om="⫭",am="⌐",sm="𝔹",cm="𝕓",um="⊥",lm="⊥",fm="⋈",pm="⧉",dm="┐",hm="╕",vm="╖",mm="╗",gm="┌",ym="╒",bm="╓",_m="╔",Em="─",Tm="═",km="┬",wm="╤",Sm="╥",xm="╦",Nm="┴",Dm="╧",Am="╨",Om="╩",Cm="⊟",Im="⊞",Rm="⊠",Fm="┘",Lm="╛",qm="╜",Pm="╝",Mm="└",Vm="╘",jm="╙",Um="╚",Bm="│",zm="║",Gm="┼",Qm="╪",Hm="╫",$m="╬",Jm="┤",Wm="╡",Ym="╢",Zm="╣",Xm="├",Km="╞",eg="╟",tg="╠",ng="‵",rg="˘",ig="˘",og="¦",ag="𝒷",sg="ℬ",cg="⁏",ug="∽",lg="⋍",fg="⧅",pg="\\",dg="⟈",hg="•",vg="•",mg="≎",gg="⪮",yg="≏",bg="≎",_g="≏",Eg="Ć",Tg="ć",kg="⩄",wg="⩉",Sg="⩋",xg="∩",Ng="⋒",Dg="⩇",Ag="⩀",Og="ⅅ",Cg="∩︀",Ig="⁁",Rg="ˇ",Fg="ℭ",Lg="⩍",qg="Č",Pg="č",Mg="Ç",Vg="ç",jg="Ĉ",Ug="ĉ",Bg="∰",zg="⩌",Gg="⩐",Qg="Ċ",Hg="ċ",$g="¸",Jg="¸",Wg="⦲",Yg="¢",Zg="·",Xg="·",Kg="𝔠",ey="ℭ",ty="Ч",ny="ч",ry="✓",iy="✓",oy="Χ",ay="χ",sy="ˆ",cy="≗",uy="↺",ly="↻",fy="⊛",py="⊚",dy="⊝",hy="⊙",vy="®",my="Ⓢ",gy="⊖",yy="⊕",by="⊗",_y="○",Ey="⧃",Ty="≗",ky="⨐",wy="⫯",Sy="⧂",xy="∲",Ny="”",Dy="’",Ay="♣",Oy="♣",Cy=":",Iy="∷",Ry="⩴",Fy="≔",Ly="≔",qy=",",Py="@",My="∁",Vy="∘",jy="∁",Uy="ℂ",By="≅",zy="⩭",Gy="≡",Qy="∮",Hy="∯",$y="∮",Jy="𝕔",Wy="ℂ",Yy="∐",Zy="∐",Xy="©",Ky="©",eb="℗",tb="∳",nb="↵",rb="✗",ib="⨯",ob="𝒞",ab="𝒸",sb="⫏",cb="⫑",ub="⫐",lb="⫒",fb="⋯",pb="⤸",db="⤵",hb="⋞",vb="⋟",mb="↶",gb="⤽",yb="⩈",bb="⩆",_b="≍",Eb="∪",Tb="⋓",kb="⩊",wb="⊍",Sb="⩅",xb="∪︀",Nb="↷",Db="⤼",Ab="⋞",Ob="⋟",Cb="⋎",Ib="⋏",Rb="¤",Fb="↶",Lb="↷",qb="⋎",Pb="⋏",Mb="∲",Vb="∱",jb="⌭",Ub="†",Bb="‡",zb="ℸ",Gb="↓",Qb="↡",Hb="⇓",$b="‐",Jb="⫤",Wb="⊣",Yb="⤏",Zb="˝",Xb="Ď",Kb="ď",e_="Д",t_="д",n_="‡",r_="⇊",i_="ⅅ",o_="ⅆ",a_="⤑",s_="⩷",c_="°",u_="∇",l_="Δ",f_="δ",p_="⦱",d_="⥿",h_="𝔇",v_="𝔡",m_="⥥",g_="⇃",y_="⇂",b_="´",__="˙",E_="˝",T_="`",k_="˜",w_="⋄",S_="⋄",x_="⋄",N_="♦",D_="♦",A_="¨",O_="ⅆ",C_="ϝ",I_="⋲",R_="÷",F_="÷",L_="⋇",q_="⋇",P_="Ђ",M_="ђ",V_="⌞",j_="⌍",U_="$",B_="𝔻",z_="𝕕",G_="¨",Q_="˙",H_="⃜",$_="≐",J_="≑",W_="≐",Y_="∸",Z_="∔",X_="⊡",K_="⌆",eE="∯",tE="¨",nE="⇓",rE="⇐",iE="⇔",oE="⫤",aE="⟸",sE="⟺",cE="⟹",uE="⇒",lE="⊨",fE="⇑",pE="⇕",dE="∥",hE="⤓",vE="↓",mE="↓",gE="⇓",yE="⇵",bE="̑",_E="⇊",EE="⇃",TE="⇂",kE="⥐",wE="⥞",SE="⥖",xE="↽",NE="⥟",DE="⥗",AE="⇁",OE="↧",CE="⊤",IE="⤐",RE="⌟",FE="⌌",LE="𝒟",qE="𝒹",PE="Ѕ",ME="ѕ",VE="⧶",jE="Đ",UE="đ",BE="⋱",zE="▿",GE="▾",QE="⇵",HE="⥯",$E="⦦",JE="Џ",WE="џ",YE="⟿",ZE="É",XE="é",KE="⩮",e0="Ě",t0="ě",n0="Ê",r0="ê",i0="≖",o0="≕",a0="Э",s0="э",c0="⩷",u0="Ė",l0="ė",f0="≑",p0="ⅇ",d0="≒",h0="𝔈",v0="𝔢",m0="⪚",g0="È",y0="è",b0="⪖",_0="⪘",E0="⪙",T0="∈",k0="⏧",w0="ℓ",S0="⪕",x0="⪗",N0="Ē",D0="ē",A0="∅",O0="∅",C0="◻",I0="∅",R0="▫",F0=" ",L0=" ",q0=" ",P0="Ŋ",M0="ŋ",V0=" ",j0="Ę",U0="ę",B0="𝔼",z0="𝕖",G0="⋕",Q0="⧣",H0="⩱",$0="ε",J0="Ε",W0="ε",Y0="ϵ",Z0="≖",X0="≕",K0="≂",eT="⪖",tT="⪕",nT="⩵",rT="=",iT="≂",oT="≟",aT="⇌",sT="≡",cT="⩸",uT="⧥",lT="⥱",fT="≓",pT="ℯ",dT="ℰ",hT="≐",vT="⩳",mT="≂",gT="Η",yT="η",bT="Ð",_T="ð",ET="Ë",TT="ë",kT="€",wT="!",ST="∃",xT="∃",NT="ℰ",DT="ⅇ",AT="ⅇ",OT="≒",CT="Ф",IT="ф",RT="♀",FT="ffi",LT="ff",qT="ffl",PT="𝔉",MT="𝔣",VT="fi",jT="◼",UT="▪",BT="fj",zT="♭",GT="fl",QT="▱",HT="ƒ",$T="𝔽",JT="𝕗",WT="∀",YT="∀",ZT="⋔",XT="⫙",KT="ℱ",ek="⨍",tk="½",nk="⅓",rk="¼",ik="⅕",ok="⅙",ak="⅛",sk="⅔",ck="⅖",uk="¾",lk="⅗",fk="⅜",pk="⅘",dk="⅚",hk="⅝",vk="⅞",mk="⁄",gk="⌢",yk="𝒻",bk="ℱ",_k="ǵ",Ek="Γ",Tk="γ",kk="Ϝ",wk="ϝ",Sk="⪆",xk="Ğ",Nk="ğ",Dk="Ģ",Ak="Ĝ",Ok="ĝ",Ck="Г",Ik="г",Rk="Ġ",Fk="ġ",Lk="≥",qk="≧",Pk="⪌",Mk="⋛",Vk="≥",jk="≧",Uk="⩾",Bk="⪩",zk="⩾",Gk="⪀",Qk="⪂",Hk="⪄",$k="⋛︀",Jk="⪔",Wk="𝔊",Yk="𝔤",Zk="≫",Xk="⋙",Kk="⋙",ew="ℷ",tw="Ѓ",nw="ѓ",rw="⪥",iw="≷",ow="⪒",aw="⪤",sw="⪊",cw="⪊",uw="⪈",lw="≩",fw="⪈",pw="≩",dw="⋧",hw="𝔾",vw="𝕘",mw="`",gw="≥",yw="⋛",bw="≧",_w="⪢",Ew="≷",Tw="⩾",kw="≳",ww="𝒢",Sw="ℊ",xw="≳",Nw="⪎",Dw="⪐",Aw="⪧",Ow="⩺",Cw=">",Iw=">",Rw="≫",Fw="⋗",Lw="⦕",qw="⩼",Pw="⪆",Mw="⥸",Vw="⋗",jw="⋛",Uw="⪌",Bw="≷",zw="≳",Gw="≩︀",Qw="≩︀",Hw="ˇ",$w=" ",Jw="½",Ww="ℋ",Yw="Ъ",Zw="ъ",Xw="⥈",Kw="↔",eS="⇔",tS="↭",nS="^",rS="ℏ",iS="Ĥ",oS="ĥ",aS="♥",sS="♥",cS="…",uS="⊹",lS="𝔥",fS="ℌ",pS="ℋ",dS="⤥",hS="⤦",vS="⇿",mS="∻",gS="↩",yS="↪",bS="𝕙",_S="ℍ",ES="―",TS="─",kS="𝒽",wS="ℋ",SS="ℏ",xS="Ħ",NS="ħ",DS="≎",AS="≏",OS="⁃",CS="‐",IS="Í",RS="í",FS="",LS="Î",qS="î",PS="И",MS="и",VS="İ",jS="Е",US="е",BS="¡",zS="⇔",GS="𝔦",QS="ℑ",HS="Ì",$S="ì",JS="ⅈ",WS="⨌",YS="∭",ZS="⧜",XS="℩",KS="IJ",ex="ij",tx="Ī",nx="ī",rx="ℑ",ix="ⅈ",ox="ℐ",ax="ℑ",sx="ı",cx="ℑ",ux="⊷",lx="Ƶ",fx="⇒",px="℅",dx="∞",hx="⧝",vx="ı",mx="⊺",gx="∫",yx="∬",bx="ℤ",_x="∫",Ex="⊺",Tx="⋂",kx="⨗",wx="⨼",Sx="",xx="",Nx="Ё",Dx="ё",Ax="Į",Ox="į",Cx="𝕀",Ix="𝕚",Rx="Ι",Fx="ι",Lx="⨼",qx="¿",Px="𝒾",Mx="ℐ",Vx="∈",jx="⋵",Ux="⋹",Bx="⋴",zx="⋳",Gx="∈",Qx="",Hx="Ĩ",$x="ĩ",Jx="І",Wx="і",Yx="Ï",Zx="ï",Xx="Ĵ",Kx="ĵ",eN="Й",tN="й",nN="𝔍",rN="𝔧",iN="ȷ",oN="𝕁",aN="𝕛",sN="𝒥",cN="𝒿",uN="Ј",lN="ј",fN="Є",pN="є",dN="Κ",hN="κ",vN="ϰ",mN="Ķ",gN="ķ",yN="К",bN="к",_N="𝔎",EN="𝔨",TN="ĸ",kN="Х",wN="х",SN="Ќ",xN="ќ",NN="𝕂",DN="𝕜",AN="𝒦",ON="𝓀",CN="⇚",IN="Ĺ",RN="ĺ",FN="⦴",LN="ℒ",qN="Λ",PN="λ",MN="⟨",VN="⟪",jN="⦑",UN="⟨",BN="⪅",zN="ℒ",GN="«",QN="⇤",HN="⤟",$N="←",JN="↞",WN="⇐",YN="⤝",ZN="↩",XN="↫",KN="⤹",eD="⥳",tD="↢",nD="⤙",rD="⤛",iD="⪫",oD="⪭",aD="⪭︀",sD="⤌",cD="⤎",uD="❲",lD="{",fD="[",pD="⦋",dD="⦏",hD="⦍",vD="Ľ",mD="ľ",gD="Ļ",yD="ļ",bD="⌈",_D="{",ED="Л",TD="л",kD="⤶",wD="“",SD="„",xD="⥧",ND="⥋",DD="↲",AD="≤",OD="≦",CD="⟨",ID="⇤",RD="←",FD="←",LD="⇐",qD="⇆",PD="↢",MD="⌈",VD="⟦",jD="⥡",UD="⥙",BD="⇃",zD="⌊",GD="↽",QD="↼",HD="⇇",$D="↔",JD="↔",WD="⇔",YD="⇆",ZD="⇋",XD="↭",KD="⥎",eA="↤",tA="⊣",nA="⥚",rA="⋋",iA="⧏",oA="⊲",aA="⊴",sA="⥑",cA="⥠",uA="⥘",lA="↿",fA="⥒",pA="↼",dA="⪋",hA="⋚",vA="≤",mA="≦",gA="⩽",yA="⪨",bA="⩽",_A="⩿",EA="⪁",TA="⪃",kA="⋚︀",wA="⪓",SA="⪅",xA="⋖",NA="⋚",DA="⪋",AA="⋚",OA="≦",CA="≶",IA="≶",RA="⪡",FA="≲",LA="⩽",qA="≲",PA="⥼",MA="⌊",VA="𝔏",jA="𝔩",UA="≶",BA="⪑",zA="⥢",GA="↽",QA="↼",HA="⥪",$A="▄",JA="Љ",WA="љ",YA="⇇",ZA="≪",XA="⋘",KA="⌞",eO="⇚",tO="⥫",nO="◺",rO="Ŀ",iO="ŀ",oO="⎰",aO="⎰",sO="⪉",cO="⪉",uO="⪇",lO="≨",fO="⪇",pO="≨",dO="⋦",hO="⟬",vO="⇽",mO="⟦",gO="⟵",yO="⟵",bO="⟸",_O="⟷",EO="⟷",TO="⟺",kO="⟼",wO="⟶",SO="⟶",xO="⟹",NO="↫",DO="↬",AO="⦅",OO="𝕃",CO="𝕝",IO="⨭",RO="⨴",FO="∗",LO="_",qO="↙",PO="↘",MO="◊",VO="◊",jO="⧫",UO="(",BO="⦓",zO="⇆",GO="⌟",QO="⇋",HO="⥭",$O="",JO="⊿",WO="‹",YO="𝓁",ZO="ℒ",XO="↰",KO="↰",eC="≲",tC="⪍",nC="⪏",rC="[",iC="‘",oC="‚",aC="Ł",sC="ł",cC="⪦",uC="⩹",lC="<",fC="<",pC="≪",dC="⋖",hC="⋋",vC="⋉",mC="⥶",gC="⩻",yC="◃",bC="⊴",_C="◂",EC="⦖",TC="⥊",kC="⥦",wC="≨︀",SC="≨︀",xC="¯",NC="♂",DC="✠",AC="✠",OC="↦",CC="↦",IC="↧",RC="↤",FC="↥",LC="▮",qC="⨩",PC="М",MC="м",VC="—",jC="∺",UC="∡",BC=" ",zC="ℳ",GC="𝔐",QC="𝔪",HC="℧",$C="µ",JC="*",WC="⫰",YC="∣",ZC="·",XC="⊟",KC="−",eI="∸",tI="⨪",nI="∓",rI="⫛",iI="…",oI="∓",aI="⊧",sI="𝕄",cI="𝕞",uI="∓",lI="𝓂",fI="ℳ",pI="∾",dI="Μ",hI="μ",vI="⊸",mI="⊸",gI="∇",yI="Ń",bI="ń",_I="∠⃒",EI="≉",TI="⩰̸",kI="≋̸",wI="ʼn",SI="≉",xI="♮",NI="ℕ",DI="♮",AI=" ",OI="≎̸",CI="≏̸",II="⩃",RI="Ň",FI="ň",LI="Ņ",qI="ņ",PI="≇",MI="⩭̸",VI="⩂",jI="Н",UI="н",BI="–",zI="⤤",GI="↗",QI="⇗",HI="↗",$I="≠",JI="≐̸",WI="",YI="",ZI="",XI="",KI="≢",e1="⤨",t1="≂̸",n1="≫",r1="≪",i1=`
|
|
159
|
-
`,o1="∄",a1="∄",s1="𝔑",c1="𝔫",u1="≧̸",l1="≱",f1="≱",p1="≧̸",d1="⩾̸",h1="⩾̸",v1="⋙̸",m1="≵",g1="≫⃒",y1="≯",b1="≯",_1="≫̸",E1="↮",T1="⇎",k1="⫲",w1="∋",S1="⋼",x1="⋺",N1="∋",D1="Њ",A1="њ",O1="↚",C1="⇍",I1="‥",R1="≦̸",F1="≰",L1="↚",q1="⇍",P1="↮",M1="⇎",V1="≰",j1="≦̸",U1="⩽̸",B1="⩽̸",z1="≮",G1="⋘̸",Q1="≴",H1="≪⃒",$1="≮",J1="⋪",W1="⋬",Y1="≪̸",Z1="∤",X1="",K1=" ",eR="𝕟",tR="ℕ",nR="⫬",rR="¬",iR="≢",oR="≭",aR="∦",sR="∉",cR="≠",uR="≂̸",lR="∄",fR="≯",pR="≱",dR="≧̸",hR="≫̸",vR="≹",mR="⩾̸",gR="≵",yR="≎̸",bR="≏̸",_R="∉",ER="⋵̸",TR="⋹̸",kR="∉",wR="⋷",SR="⋶",xR="⧏̸",NR="⋪",DR="⋬",AR="≮",OR="≰",CR="≸",IR="≪̸",RR="⩽̸",FR="≴",LR="⪢̸",qR="⪡̸",PR="∌",MR="∌",VR="⋾",jR="⋽",UR="⊀",BR="⪯̸",zR="⋠",GR="∌",QR="⧐̸",HR="⋫",$R="⋭",JR="⊏̸",WR="⋢",YR="⊐̸",ZR="⋣",XR="⊂⃒",KR="⊈",eF="⊁",tF="⪰̸",nF="⋡",rF="≿̸",iF="⊃⃒",oF="⊉",aF="≁",sF="≄",cF="≇",uF="≉",lF="∤",fF="∦",pF="∦",dF="⫽⃥",hF="∂̸",vF="⨔",mF="⊀",gF="⋠",yF="⊀",bF="⪯̸",_F="⪯̸",EF="⤳̸",TF="↛",kF="⇏",wF="↝̸",SF="↛",xF="⇏",NF="⋫",DF="⋭",AF="⊁",OF="⋡",CF="⪰̸",IF="𝒩",RF="𝓃",FF="∤",LF="∦",qF="≁",PF="≄",MF="≄",VF="∤",jF="∦",UF="⋢",BF="⋣",zF="⊄",GF="⫅̸",QF="⊈",HF="⊂⃒",$F="⊈",JF="⫅̸",WF="⊁",YF="⪰̸",ZF="⊅",XF="⫆̸",KF="⊉",eL="⊃⃒",tL="⊉",nL="⫆̸",rL="≹",iL="Ñ",oL="ñ",aL="≸",sL="⋪",cL="⋬",uL="⋫",lL="⋭",fL="Ν",pL="ν",dL="#",hL="№",vL=" ",mL="≍⃒",gL="⊬",yL="⊭",bL="⊮",_L="⊯",EL="≥⃒",TL=">⃒",kL="⤄",wL="⧞",SL="⤂",xL="≤⃒",NL="<⃒",DL="⊴⃒",AL="⤃",OL="⊵⃒",CL="∼⃒",IL="⤣",RL="↖",FL="⇖",LL="↖",qL="⤧",PL="Ó",ML="ó",VL="⊛",jL="Ô",UL="ô",BL="⊚",zL="О",GL="о",QL="⊝",HL="Ő",$L="ő",JL="⨸",WL="⊙",YL="⦼",ZL="Œ",XL="œ",KL="⦿",eq="𝔒",tq="𝔬",nq="˛",rq="Ò",iq="ò",oq="⧁",aq="⦵",sq="Ω",cq="∮",uq="↺",lq="⦾",fq="⦻",pq="‾",dq="⧀",hq="Ō",vq="ō",mq="Ω",gq="ω",yq="Ο",bq="ο",_q="⦶",Eq="⊖",Tq="𝕆",kq="𝕠",wq="⦷",Sq="“",xq="‘",Nq="⦹",Dq="⊕",Aq="↻",Oq="⩔",Cq="∨",Iq="⩝",Rq="ℴ",Fq="ℴ",Lq="ª",qq="º",Pq="⊶",Mq="⩖",Vq="⩗",jq="⩛",Uq="Ⓢ",Bq="𝒪",zq="ℴ",Gq="Ø",Qq="ø",Hq="⊘",$q="Õ",Jq="õ",Wq="⨶",Yq="⨷",Zq="⊗",Xq="Ö",Kq="ö",eP="⌽",tP="‾",nP="⏞",rP="⎴",iP="⏜",oP="¶",aP="∥",sP="∥",cP="⫳",uP="⫽",lP="∂",fP="∂",pP="П",dP="п",hP="%",vP=".",mP="‰",gP="⊥",yP="‱",bP="𝔓",_P="𝔭",EP="Φ",TP="φ",kP="ϕ",wP="ℳ",SP="☎",xP="Π",NP="π",DP="⋔",AP="ϖ",OP="ℏ",CP="ℎ",IP="ℏ",RP="⨣",FP="⊞",LP="⨢",qP="+",PP="∔",MP="⨥",VP="⩲",jP="±",UP="±",BP="⨦",zP="⨧",GP="±",QP="ℌ",HP="⨕",$P="𝕡",JP="ℙ",WP="£",YP="⪷",ZP="⪻",XP="≺",KP="≼",eM="⪷",tM="≺",nM="≼",rM="≺",iM="⪯",oM="≼",aM="≾",sM="⪯",cM="⪹",uM="⪵",lM="⋨",fM="⪯",pM="⪳",dM="≾",hM="′",vM="″",mM="ℙ",gM="⪹",yM="⪵",bM="⋨",_M="∏",EM="∏",TM="⌮",kM="⌒",wM="⌓",SM="∝",xM="∝",NM="∷",DM="∝",AM="≾",OM="⊰",CM="𝒫",IM="𝓅",RM="Ψ",FM="ψ",LM=" ",qM="𝔔",PM="𝔮",MM="⨌",VM="𝕢",jM="ℚ",UM="⁗",BM="𝒬",zM="𝓆",GM="ℍ",QM="⨖",HM="?",$M="≟",JM='"',WM='"',YM="⇛",ZM="∽̱",XM="Ŕ",KM="ŕ",eV="√",tV="⦳",nV="⟩",rV="⟫",iV="⦒",oV="⦥",aV="⟩",sV="»",cV="⥵",uV="⇥",lV="⤠",fV="⤳",pV="→",dV="↠",hV="⇒",vV="⤞",mV="↪",gV="↬",yV="⥅",bV="⥴",_V="⤖",EV="↣",TV="↝",kV="⤚",wV="⤜",SV="∶",xV="ℚ",NV="⤍",DV="⤏",AV="⤐",OV="❳",CV="}",IV="]",RV="⦌",FV="⦎",LV="⦐",qV="Ř",PV="ř",MV="Ŗ",VV="ŗ",jV="⌉",UV="}",BV="Р",zV="р",GV="⤷",QV="⥩",HV="”",$V="”",JV="↳",WV="ℜ",YV="ℛ",ZV="ℜ",XV="ℝ",KV="ℜ",ej="▭",tj="®",nj="®",rj="∋",ij="⇋",oj="⥯",aj="⥽",sj="⌋",cj="𝔯",uj="ℜ",lj="⥤",fj="⇁",pj="⇀",dj="⥬",hj="Ρ",vj="ρ",mj="ϱ",gj="⟩",yj="⇥",bj="→",_j="→",Ej="⇒",Tj="⇄",kj="↣",wj="⌉",Sj="⟧",xj="⥝",Nj="⥕",Dj="⇂",Aj="⌋",Oj="⇁",Cj="⇀",Ij="⇄",Rj="⇌",Fj="⇉",Lj="↝",qj="↦",Pj="⊢",Mj="⥛",Vj="⋌",jj="⧐",Uj="⊳",Bj="⊵",zj="⥏",Gj="⥜",Qj="⥔",Hj="↾",$j="⥓",Jj="⇀",Wj="˚",Yj="≓",Zj="⇄",Xj="⇌",Kj="",eU="⎱",tU="⎱",nU="⫮",rU="⟭",iU="⇾",oU="⟧",aU="⦆",sU="𝕣",cU="ℝ",uU="⨮",lU="⨵",fU="⥰",pU=")",dU="⦔",hU="⨒",vU="⇉",mU="⇛",gU="›",yU="𝓇",bU="ℛ",_U="↱",EU="↱",TU="]",kU="’",wU="’",SU="⋌",xU="⋊",NU="▹",DU="⊵",AU="▸",OU="⧎",CU="⧴",IU="⥨",RU="℞",FU="Ś",LU="ś",qU="‚",PU="⪸",MU="Š",VU="š",jU="⪼",UU="≻",BU="≽",zU="⪰",GU="⪴",QU="Ş",HU="ş",$U="Ŝ",JU="ŝ",WU="⪺",YU="⪶",ZU="⋩",XU="⨓",KU="≿",eB="С",tB="с",nB="⊡",rB="⋅",iB="⩦",oB="⤥",aB="↘",sB="⇘",cB="↘",uB="§",lB=";",fB="⤩",pB="∖",dB="∖",hB="✶",vB="𝔖",mB="𝔰",gB="⌢",yB="♯",bB="Щ",_B="щ",EB="Ш",TB="ш",kB="↓",wB="←",SB="∣",xB="∥",NB="→",DB="↑",AB="",OB="Σ",CB="σ",IB="ς",RB="ς",FB="∼",LB="⩪",qB="≃",PB="≃",MB="⪞",VB="⪠",jB="⪝",UB="⪟",BB="≆",zB="⨤",GB="⥲",QB="←",HB="∘",$B="∖",JB="⨳",WB="⧤",YB="∣",ZB="⌣",XB="⪪",KB="⪬",e2="⪬︀",t2="Ь",n2="ь",r2="⌿",i2="⧄",o2="/",a2="𝕊",s2="𝕤",c2="♠",u2="♠",l2="∥",f2="⊓",p2="⊓︀",d2="⊔",h2="⊔︀",v2="√",m2="⊏",g2="⊑",y2="⊏",b2="⊑",_2="⊐",E2="⊒",T2="⊐",k2="⊒",w2="□",S2="□",x2="⊓",N2="⊏",D2="⊑",A2="⊐",O2="⊒",C2="⊔",I2="▪",R2="□",F2="▪",L2="→",q2="𝒮",P2="𝓈",M2="∖",V2="⌣",j2="⋆",U2="⋆",B2="☆",z2="★",G2="ϵ",Q2="ϕ",H2="¯",$2="⊂",J2="⋐",W2="⪽",Y2="⫅",Z2="⊆",X2="⫃",K2="⫁",ez="⫋",tz="⊊",nz="⪿",rz="⥹",iz="⊂",oz="⋐",az="⊆",sz="⫅",cz="⊆",uz="⊊",lz="⫋",fz="⫇",pz="⫕",dz="⫓",hz="⪸",vz="≻",mz="≽",gz="≻",yz="⪰",bz="≽",_z="≿",Ez="⪰",Tz="⪺",kz="⪶",wz="⋩",Sz="≿",xz="∋",Nz="∑",Dz="∑",Az="♪",Oz="¹",Cz="²",Iz="³",Rz="⊃",Fz="⋑",Lz="⪾",qz="⫘",Pz="⫆",Mz="⊇",Vz="⫄",jz="⊃",Uz="⊇",Bz="⟉",zz="⫗",Gz="⥻",Qz="⫂",Hz="⫌",$z="⊋",Jz="⫀",Wz="⊃",Yz="⋑",Zz="⊇",Xz="⫆",Kz="⊋",eG="⫌",tG="⫈",nG="⫔",rG="⫖",iG="⤦",oG="↙",aG="⇙",sG="↙",cG="⤪",uG="ß",lG=" ",fG="⌖",pG="Τ",dG="τ",hG="⎴",vG="Ť",mG="ť",gG="Ţ",yG="ţ",bG="Т",_G="т",EG="⃛",TG="⌕",kG="𝔗",wG="𝔱",SG="∴",xG="∴",NG="∴",DG="Θ",AG="θ",OG="ϑ",CG="ϑ",IG="≈",RG="∼",FG=" ",LG=" ",qG=" ",PG="≈",MG="∼",VG="Þ",jG="þ",UG="˜",BG="∼",zG="≃",GG="≅",QG="≈",HG="⨱",$G="⊠",JG="×",WG="⨰",YG="∭",ZG="⤨",XG="⌶",KG="⫱",eQ="⊤",tQ="𝕋",nQ="𝕥",rQ="⫚",iQ="⤩",oQ="‴",aQ="™",sQ="™",cQ="▵",uQ="▿",lQ="◃",fQ="⊴",pQ="≜",dQ="▹",hQ="⊵",vQ="◬",mQ="≜",gQ="⨺",yQ="⃛",bQ="⨹",_Q="⧍",EQ="⨻",TQ="⏢",kQ="𝒯",wQ="𝓉",SQ="Ц",xQ="ц",NQ="Ћ",DQ="ћ",AQ="Ŧ",OQ="ŧ",CQ="≬",IQ="↞",RQ="↠",FQ="Ú",LQ="ú",qQ="↑",PQ="↟",MQ="⇑",VQ="⥉",jQ="Ў",UQ="ў",BQ="Ŭ",zQ="ŭ",GQ="Û",QQ="û",HQ="У",$Q="у",JQ="⇅",WQ="Ű",YQ="ű",ZQ="⥮",XQ="⥾",KQ="𝔘",e3="𝔲",t3="Ù",n3="ù",r3="⥣",i3="↿",o3="↾",a3="▀",s3="⌜",c3="⌜",u3="⌏",l3="◸",f3="Ū",p3="ū",d3="¨",h3="_",v3="⏟",m3="⎵",g3="⏝",y3="⋃",b3="⊎",_3="Ų",E3="ų",T3="𝕌",k3="𝕦",w3="⤒",S3="↑",x3="↑",N3="⇑",D3="⇅",A3="↕",O3="↕",C3="⇕",I3="⥮",R3="↿",F3="↾",L3="⊎",q3="↖",P3="↗",M3="υ",V3="ϒ",j3="ϒ",U3="Υ",B3="υ",z3="↥",G3="⊥",Q3="⇈",H3="⌝",$3="⌝",J3="⌎",W3="Ů",Y3="ů",Z3="◹",X3="𝒰",K3="𝓊",eH="⋰",tH="Ũ",nH="ũ",rH="▵",iH="▴",oH="⇈",aH="Ü",sH="ü",cH="⦧",uH="⦜",lH="ϵ",fH="ϰ",pH="∅",dH="ϕ",hH="ϖ",vH="∝",mH="↕",gH="⇕",yH="ϱ",bH="ς",_H="⊊︀",EH="⫋︀",TH="⊋︀",kH="⫌︀",wH="ϑ",SH="⊲",xH="⊳",NH="⫨",DH="⫫",AH="⫩",OH="В",CH="в",IH="⊢",RH="⊨",FH="⊩",LH="⊫",qH="⫦",PH="⊻",MH="∨",VH="⋁",jH="≚",UH="⋮",BH="|",zH="‖",GH="|",QH="‖",HH="∣",$H="|",JH="❘",WH="≀",YH=" ",ZH="𝔙",XH="𝔳",KH="⊲",e4="⊂⃒",t4="⊃⃒",n4="𝕍",r4="𝕧",i4="∝",o4="⊳",a4="𝒱",s4="𝓋",c4="⫋︀",u4="⊊︀",l4="⫌︀",f4="⊋︀",p4="⊪",d4="⦚",h4="Ŵ",v4="ŵ",m4="⩟",g4="∧",y4="⋀",b4="≙",_4="℘",E4="𝔚",T4="𝔴",k4="𝕎",w4="𝕨",S4="℘",x4="≀",N4="≀",D4="𝒲",A4="𝓌",O4="⋂",C4="◯",I4="⋃",R4="▽",F4="𝔛",L4="𝔵",q4="⟷",P4="⟺",M4="Ξ",V4="ξ",j4="⟵",U4="⟸",B4="⟼",z4="⋻",G4="⨀",Q4="𝕏",H4="𝕩",$4="⨁",J4="⨂",W4="⟶",Y4="⟹",Z4="𝒳",X4="𝓍",K4="⨆",e5="⨄",t5="△",n5="⋁",r5="⋀",i5="Ý",o5="ý",a5="Я",s5="я",c5="Ŷ",u5="ŷ",l5="Ы",f5="ы",p5="¥",d5="𝔜",h5="𝔶",v5="Ї",m5="ї",g5="𝕐",y5="𝕪",b5="𝒴",_5="𝓎",E5="Ю",T5="ю",k5="ÿ",w5="Ÿ",S5="Ź",x5="ź",N5="Ž",D5="ž",A5="З",O5="з",C5="Ż",I5="ż",R5="ℨ",F5="",L5="Ζ",q5="ζ",P5="𝔷",M5="ℨ",V5="Ж",j5="ж",U5="⇝",B5="𝕫",z5="ℤ",G5="𝒵",Q5="𝓏",H5="",$5="",J5={Aacute:Cd,aacute:Id,Abreve:Rd,abreve:Fd,ac:Ld,acd:qd,acE:Pd,Acirc:Md,acirc:Vd,acute:jd,Acy:Ud,acy:Bd,AElig:zd,aelig:Gd,af:Qd,Afr:Hd,afr:$d,Agrave:Jd,agrave:Wd,alefsym:Yd,aleph:Zd,Alpha:Xd,alpha:Kd,Amacr:eh,amacr:th,amalg:nh,amp:rh,AMP:ih,andand:oh,And:ah,and:sh,andd:ch,andslope:uh,andv:lh,ang:fh,ange:ph,angle:dh,angmsdaa:hh,angmsdab:vh,angmsdac:mh,angmsdad:gh,angmsdae:yh,angmsdaf:bh,angmsdag:_h,angmsdah:Eh,angmsd:Th,angrt:kh,angrtvb:wh,angrtvbd:Sh,angsph:xh,angst:Nh,angzarr:Dh,Aogon:Ah,aogon:Oh,Aopf:Ch,aopf:Ih,apacir:Rh,ap:Fh,apE:Lh,ape:qh,apid:Ph,apos:Mh,ApplyFunction:Vh,approx:jh,approxeq:Uh,Aring:Bh,aring:zh,Ascr:Gh,ascr:Qh,Assign:Hh,ast:$h,asymp:Jh,asympeq:Wh,Atilde:Yh,atilde:Zh,Auml:Xh,auml:Kh,awconint:ev,awint:tv,backcong:nv,backepsilon:rv,backprime:iv,backsim:ov,backsimeq:av,Backslash:sv,Barv:cv,barvee:uv,barwed:lv,Barwed:fv,barwedge:pv,bbrk:dv,bbrktbrk:hv,bcong:vv,Bcy:mv,bcy:gv,bdquo:yv,becaus:bv,because:_v,Because:Ev,bemptyv:Tv,bepsi:kv,bernou:wv,Bernoullis:Sv,Beta:xv,beta:Nv,beth:Dv,between:Av,Bfr:Ov,bfr:Cv,bigcap:Iv,bigcirc:Rv,bigcup:Fv,bigodot:Lv,bigoplus:qv,bigotimes:Pv,bigsqcup:Mv,bigstar:Vv,bigtriangledown:jv,bigtriangleup:Uv,biguplus:Bv,bigvee:zv,bigwedge:Gv,bkarow:Qv,blacklozenge:Hv,blacksquare:$v,blacktriangle:Jv,blacktriangledown:Wv,blacktriangleleft:Yv,blacktriangleright:Zv,blank:Xv,blk12:Kv,blk14:em,blk34:tm,block:nm,bne:rm,bnequiv:im,bNot:om,bnot:am,Bopf:sm,bopf:cm,bot:um,bottom:lm,bowtie:fm,boxbox:pm,boxdl:dm,boxdL:hm,boxDl:vm,boxDL:mm,boxdr:gm,boxdR:ym,boxDr:bm,boxDR:_m,boxh:Em,boxH:Tm,boxhd:km,boxHd:wm,boxhD:Sm,boxHD:xm,boxhu:Nm,boxHu:Dm,boxhU:Am,boxHU:Om,boxminus:Cm,boxplus:Im,boxtimes:Rm,boxul:Fm,boxuL:Lm,boxUl:qm,boxUL:Pm,boxur:Mm,boxuR:Vm,boxUr:jm,boxUR:Um,boxv:Bm,boxV:zm,boxvh:Gm,boxvH:Qm,boxVh:Hm,boxVH:$m,boxvl:Jm,boxvL:Wm,boxVl:Ym,boxVL:Zm,boxvr:Xm,boxvR:Km,boxVr:eg,boxVR:tg,bprime:ng,breve:rg,Breve:ig,brvbar:og,bscr:ag,Bscr:sg,bsemi:cg,bsim:ug,bsime:lg,bsolb:fg,bsol:pg,bsolhsub:dg,bull:hg,bullet:vg,bump:mg,bumpE:gg,bumpe:yg,Bumpeq:bg,bumpeq:_g,Cacute:Eg,cacute:Tg,capand:kg,capbrcup:wg,capcap:Sg,cap:xg,Cap:Ng,capcup:Dg,capdot:Ag,CapitalDifferentialD:Og,caps:Cg,caret:Ig,caron:Rg,Cayleys:Fg,ccaps:Lg,Ccaron:qg,ccaron:Pg,Ccedil:Mg,ccedil:Vg,Ccirc:jg,ccirc:Ug,Cconint:Bg,ccups:zg,ccupssm:Gg,Cdot:Qg,cdot:Hg,cedil:$g,Cedilla:Jg,cemptyv:Wg,cent:Yg,centerdot:Zg,CenterDot:Xg,cfr:Kg,Cfr:ey,CHcy:ty,chcy:ny,check:ry,checkmark:iy,Chi:oy,chi:ay,circ:sy,circeq:cy,circlearrowleft:uy,circlearrowright:ly,circledast:fy,circledcirc:py,circleddash:dy,CircleDot:hy,circledR:vy,circledS:my,CircleMinus:gy,CirclePlus:yy,CircleTimes:by,cir:_y,cirE:Ey,cire:Ty,cirfnint:ky,cirmid:wy,cirscir:Sy,ClockwiseContourIntegral:xy,CloseCurlyDoubleQuote:Ny,CloseCurlyQuote:Dy,clubs:Ay,clubsuit:Oy,colon:Cy,Colon:Iy,Colone:Ry,colone:Fy,coloneq:Ly,comma:qy,commat:Py,comp:My,compfn:Vy,complement:jy,complexes:Uy,cong:By,congdot:zy,Congruent:Gy,conint:Qy,Conint:Hy,ContourIntegral:$y,copf:Jy,Copf:Wy,coprod:Yy,Coproduct:Zy,copy:Xy,COPY:Ky,copysr:eb,CounterClockwiseContourIntegral:tb,crarr:nb,cross:rb,Cross:ib,Cscr:ob,cscr:ab,csub:sb,csube:cb,csup:ub,csupe:lb,ctdot:fb,cudarrl:pb,cudarrr:db,cuepr:hb,cuesc:vb,cularr:mb,cularrp:gb,cupbrcap:yb,cupcap:bb,CupCap:_b,cup:Eb,Cup:Tb,cupcup:kb,cupdot:wb,cupor:Sb,cups:xb,curarr:Nb,curarrm:Db,curlyeqprec:Ab,curlyeqsucc:Ob,curlyvee:Cb,curlywedge:Ib,curren:Rb,curvearrowleft:Fb,curvearrowright:Lb,cuvee:qb,cuwed:Pb,cwconint:Mb,cwint:Vb,cylcty:jb,dagger:Ub,Dagger:Bb,daleth:zb,darr:Gb,Darr:Qb,dArr:Hb,dash:$b,Dashv:Jb,dashv:Wb,dbkarow:Yb,dblac:Zb,Dcaron:Xb,dcaron:Kb,Dcy:e_,dcy:t_,ddagger:n_,ddarr:r_,DD:i_,dd:o_,DDotrahd:a_,ddotseq:s_,deg:c_,Del:u_,Delta:l_,delta:f_,demptyv:p_,dfisht:d_,Dfr:h_,dfr:v_,dHar:m_,dharl:g_,dharr:y_,DiacriticalAcute:b_,DiacriticalDot:__,DiacriticalDoubleAcute:E_,DiacriticalGrave:T_,DiacriticalTilde:k_,diam:w_,diamond:S_,Diamond:x_,diamondsuit:N_,diams:D_,die:A_,DifferentialD:O_,digamma:C_,disin:I_,div:R_,divide:F_,divideontimes:L_,divonx:q_,DJcy:P_,djcy:M_,dlcorn:V_,dlcrop:j_,dollar:U_,Dopf:B_,dopf:z_,Dot:G_,dot:Q_,DotDot:H_,doteq:$_,doteqdot:J_,DotEqual:W_,dotminus:Y_,dotplus:Z_,dotsquare:X_,doublebarwedge:K_,DoubleContourIntegral:eE,DoubleDot:tE,DoubleDownArrow:nE,DoubleLeftArrow:rE,DoubleLeftRightArrow:iE,DoubleLeftTee:oE,DoubleLongLeftArrow:aE,DoubleLongLeftRightArrow:sE,DoubleLongRightArrow:cE,DoubleRightArrow:uE,DoubleRightTee:lE,DoubleUpArrow:fE,DoubleUpDownArrow:pE,DoubleVerticalBar:dE,DownArrowBar:hE,downarrow:vE,DownArrow:mE,Downarrow:gE,DownArrowUpArrow:yE,DownBreve:bE,downdownarrows:_E,downharpoonleft:EE,downharpoonright:TE,DownLeftRightVector:kE,DownLeftTeeVector:wE,DownLeftVectorBar:SE,DownLeftVector:xE,DownRightTeeVector:NE,DownRightVectorBar:DE,DownRightVector:AE,DownTeeArrow:OE,DownTee:CE,drbkarow:IE,drcorn:RE,drcrop:FE,Dscr:LE,dscr:qE,DScy:PE,dscy:ME,dsol:VE,Dstrok:jE,dstrok:UE,dtdot:BE,dtri:zE,dtrif:GE,duarr:QE,duhar:HE,dwangle:$E,DZcy:JE,dzcy:WE,dzigrarr:YE,Eacute:ZE,eacute:XE,easter:KE,Ecaron:e0,ecaron:t0,Ecirc:n0,ecirc:r0,ecir:i0,ecolon:o0,Ecy:a0,ecy:s0,eDDot:c0,Edot:u0,edot:l0,eDot:f0,ee:p0,efDot:d0,Efr:h0,efr:v0,eg:m0,Egrave:g0,egrave:y0,egs:b0,egsdot:_0,el:E0,Element:T0,elinters:k0,ell:w0,els:S0,elsdot:x0,Emacr:N0,emacr:D0,empty:A0,emptyset:O0,EmptySmallSquare:C0,emptyv:I0,EmptyVerySmallSquare:R0,emsp13:F0,emsp14:L0,emsp:q0,ENG:P0,eng:M0,ensp:V0,Eogon:j0,eogon:U0,Eopf:B0,eopf:z0,epar:G0,eparsl:Q0,eplus:H0,epsi:$0,Epsilon:J0,epsilon:W0,epsiv:Y0,eqcirc:Z0,eqcolon:X0,eqsim:K0,eqslantgtr:eT,eqslantless:tT,Equal:nT,equals:rT,EqualTilde:iT,equest:oT,Equilibrium:aT,equiv:sT,equivDD:cT,eqvparsl:uT,erarr:lT,erDot:fT,escr:pT,Escr:dT,esdot:hT,Esim:vT,esim:mT,Eta:gT,eta:yT,ETH:bT,eth:_T,Euml:ET,euml:TT,euro:kT,excl:wT,exist:ST,Exists:xT,expectation:NT,exponentiale:DT,ExponentialE:AT,fallingdotseq:OT,Fcy:CT,fcy:IT,female:RT,ffilig:FT,fflig:LT,ffllig:qT,Ffr:PT,ffr:MT,filig:VT,FilledSmallSquare:jT,FilledVerySmallSquare:UT,fjlig:BT,flat:zT,fllig:GT,fltns:QT,fnof:HT,Fopf:$T,fopf:JT,forall:WT,ForAll:YT,fork:ZT,forkv:XT,Fouriertrf:KT,fpartint:ek,frac12:tk,frac13:nk,frac14:rk,frac15:ik,frac16:ok,frac18:ak,frac23:sk,frac25:ck,frac34:uk,frac35:lk,frac38:fk,frac45:pk,frac56:dk,frac58:hk,frac78:vk,frasl:mk,frown:gk,fscr:yk,Fscr:bk,gacute:_k,Gamma:Ek,gamma:Tk,Gammad:kk,gammad:wk,gap:Sk,Gbreve:xk,gbreve:Nk,Gcedil:Dk,Gcirc:Ak,gcirc:Ok,Gcy:Ck,gcy:Ik,Gdot:Rk,gdot:Fk,ge:Lk,gE:qk,gEl:Pk,gel:Mk,geq:Vk,geqq:jk,geqslant:Uk,gescc:Bk,ges:zk,gesdot:Gk,gesdoto:Qk,gesdotol:Hk,gesl:$k,gesles:Jk,Gfr:Wk,gfr:Yk,gg:Zk,Gg:Xk,ggg:Kk,gimel:ew,GJcy:tw,gjcy:nw,gla:rw,gl:iw,glE:ow,glj:aw,gnap:sw,gnapprox:cw,gne:uw,gnE:lw,gneq:fw,gneqq:pw,gnsim:dw,Gopf:hw,gopf:vw,grave:mw,GreaterEqual:gw,GreaterEqualLess:yw,GreaterFullEqual:bw,GreaterGreater:_w,GreaterLess:Ew,GreaterSlantEqual:Tw,GreaterTilde:kw,Gscr:ww,gscr:Sw,gsim:xw,gsime:Nw,gsiml:Dw,gtcc:Aw,gtcir:Ow,gt:Cw,GT:Iw,Gt:Rw,gtdot:Fw,gtlPar:Lw,gtquest:qw,gtrapprox:Pw,gtrarr:Mw,gtrdot:Vw,gtreqless:jw,gtreqqless:Uw,gtrless:Bw,gtrsim:zw,gvertneqq:Gw,gvnE:Qw,Hacek:Hw,hairsp:$w,half:Jw,hamilt:Ww,HARDcy:Yw,hardcy:Zw,harrcir:Xw,harr:Kw,hArr:eS,harrw:tS,Hat:nS,hbar:rS,Hcirc:iS,hcirc:oS,hearts:aS,heartsuit:sS,hellip:cS,hercon:uS,hfr:lS,Hfr:fS,HilbertSpace:pS,hksearow:dS,hkswarow:hS,hoarr:vS,homtht:mS,hookleftarrow:gS,hookrightarrow:yS,hopf:bS,Hopf:_S,horbar:ES,HorizontalLine:TS,hscr:kS,Hscr:wS,hslash:SS,Hstrok:xS,hstrok:NS,HumpDownHump:DS,HumpEqual:AS,hybull:OS,hyphen:CS,Iacute:IS,iacute:RS,ic:FS,Icirc:LS,icirc:qS,Icy:PS,icy:MS,Idot:VS,IEcy:jS,iecy:US,iexcl:BS,iff:zS,ifr:GS,Ifr:QS,Igrave:HS,igrave:$S,ii:JS,iiiint:WS,iiint:YS,iinfin:ZS,iiota:XS,IJlig:KS,ijlig:ex,Imacr:tx,imacr:nx,image:rx,ImaginaryI:ix,imagline:ox,imagpart:ax,imath:sx,Im:cx,imof:ux,imped:lx,Implies:fx,incare:px,in:"∈",infin:dx,infintie:hx,inodot:vx,intcal:mx,int:gx,Int:yx,integers:bx,Integral:_x,intercal:Ex,Intersection:Tx,intlarhk:kx,intprod:wx,InvisibleComma:Sx,InvisibleTimes:xx,IOcy:Nx,iocy:Dx,Iogon:Ax,iogon:Ox,Iopf:Cx,iopf:Ix,Iota:Rx,iota:Fx,iprod:Lx,iquest:qx,iscr:Px,Iscr:Mx,isin:Vx,isindot:jx,isinE:Ux,isins:Bx,isinsv:zx,isinv:Gx,it:Qx,Itilde:Hx,itilde:$x,Iukcy:Jx,iukcy:Wx,Iuml:Yx,iuml:Zx,Jcirc:Xx,jcirc:Kx,Jcy:eN,jcy:tN,Jfr:nN,jfr:rN,jmath:iN,Jopf:oN,jopf:aN,Jscr:sN,jscr:cN,Jsercy:uN,jsercy:lN,Jukcy:fN,jukcy:pN,Kappa:dN,kappa:hN,kappav:vN,Kcedil:mN,kcedil:gN,Kcy:yN,kcy:bN,Kfr:_N,kfr:EN,kgreen:TN,KHcy:kN,khcy:wN,KJcy:SN,kjcy:xN,Kopf:NN,kopf:DN,Kscr:AN,kscr:ON,lAarr:CN,Lacute:IN,lacute:RN,laemptyv:FN,lagran:LN,Lambda:qN,lambda:PN,lang:MN,Lang:VN,langd:jN,langle:UN,lap:BN,Laplacetrf:zN,laquo:GN,larrb:QN,larrbfs:HN,larr:$N,Larr:JN,lArr:WN,larrfs:YN,larrhk:ZN,larrlp:XN,larrpl:KN,larrsim:eD,larrtl:tD,latail:nD,lAtail:rD,lat:iD,late:oD,lates:aD,lbarr:sD,lBarr:cD,lbbrk:uD,lbrace:lD,lbrack:fD,lbrke:pD,lbrksld:dD,lbrkslu:hD,Lcaron:vD,lcaron:mD,Lcedil:gD,lcedil:yD,lceil:bD,lcub:_D,Lcy:ED,lcy:TD,ldca:kD,ldquo:wD,ldquor:SD,ldrdhar:xD,ldrushar:ND,ldsh:DD,le:AD,lE:OD,LeftAngleBracket:CD,LeftArrowBar:ID,leftarrow:RD,LeftArrow:FD,Leftarrow:LD,LeftArrowRightArrow:qD,leftarrowtail:PD,LeftCeiling:MD,LeftDoubleBracket:VD,LeftDownTeeVector:jD,LeftDownVectorBar:UD,LeftDownVector:BD,LeftFloor:zD,leftharpoondown:GD,leftharpoonup:QD,leftleftarrows:HD,leftrightarrow:$D,LeftRightArrow:JD,Leftrightarrow:WD,leftrightarrows:YD,leftrightharpoons:ZD,leftrightsquigarrow:XD,LeftRightVector:KD,LeftTeeArrow:eA,LeftTee:tA,LeftTeeVector:nA,leftthreetimes:rA,LeftTriangleBar:iA,LeftTriangle:oA,LeftTriangleEqual:aA,LeftUpDownVector:sA,LeftUpTeeVector:cA,LeftUpVectorBar:uA,LeftUpVector:lA,LeftVectorBar:fA,LeftVector:pA,lEg:dA,leg:hA,leq:vA,leqq:mA,leqslant:gA,lescc:yA,les:bA,lesdot:_A,lesdoto:EA,lesdotor:TA,lesg:kA,lesges:wA,lessapprox:SA,lessdot:xA,lesseqgtr:NA,lesseqqgtr:DA,LessEqualGreater:AA,LessFullEqual:OA,LessGreater:CA,lessgtr:IA,LessLess:RA,lesssim:FA,LessSlantEqual:LA,LessTilde:qA,lfisht:PA,lfloor:MA,Lfr:VA,lfr:jA,lg:UA,lgE:BA,lHar:zA,lhard:GA,lharu:QA,lharul:HA,lhblk:$A,LJcy:JA,ljcy:WA,llarr:YA,ll:ZA,Ll:XA,llcorner:KA,Lleftarrow:eO,llhard:tO,lltri:nO,Lmidot:rO,lmidot:iO,lmoustache:oO,lmoust:aO,lnap:sO,lnapprox:cO,lne:uO,lnE:lO,lneq:fO,lneqq:pO,lnsim:dO,loang:hO,loarr:vO,lobrk:mO,longleftarrow:gO,LongLeftArrow:yO,Longleftarrow:bO,longleftrightarrow:_O,LongLeftRightArrow:EO,Longleftrightarrow:TO,longmapsto:kO,longrightarrow:wO,LongRightArrow:SO,Longrightarrow:xO,looparrowleft:NO,looparrowright:DO,lopar:AO,Lopf:OO,lopf:CO,loplus:IO,lotimes:RO,lowast:FO,lowbar:LO,LowerLeftArrow:qO,LowerRightArrow:PO,loz:MO,lozenge:VO,lozf:jO,lpar:UO,lparlt:BO,lrarr:zO,lrcorner:GO,lrhar:QO,lrhard:HO,lrm:$O,lrtri:JO,lsaquo:WO,lscr:YO,Lscr:ZO,lsh:XO,Lsh:KO,lsim:eC,lsime:tC,lsimg:nC,lsqb:rC,lsquo:iC,lsquor:oC,Lstrok:aC,lstrok:sC,ltcc:cC,ltcir:uC,lt:lC,LT:fC,Lt:pC,ltdot:dC,lthree:hC,ltimes:vC,ltlarr:mC,ltquest:gC,ltri:yC,ltrie:bC,ltrif:_C,ltrPar:EC,lurdshar:TC,luruhar:kC,lvertneqq:wC,lvnE:SC,macr:xC,male:NC,malt:DC,maltese:AC,Map:"⤅",map:OC,mapsto:CC,mapstodown:IC,mapstoleft:RC,mapstoup:FC,marker:LC,mcomma:qC,Mcy:PC,mcy:MC,mdash:VC,mDDot:jC,measuredangle:UC,MediumSpace:BC,Mellintrf:zC,Mfr:GC,mfr:QC,mho:HC,micro:$C,midast:JC,midcir:WC,mid:YC,middot:ZC,minusb:XC,minus:KC,minusd:eI,minusdu:tI,MinusPlus:nI,mlcp:rI,mldr:iI,mnplus:oI,models:aI,Mopf:sI,mopf:cI,mp:uI,mscr:lI,Mscr:fI,mstpos:pI,Mu:dI,mu:hI,multimap:vI,mumap:mI,nabla:gI,Nacute:yI,nacute:bI,nang:_I,nap:EI,napE:TI,napid:kI,napos:wI,napprox:SI,natural:xI,naturals:NI,natur:DI,nbsp:AI,nbump:OI,nbumpe:CI,ncap:II,Ncaron:RI,ncaron:FI,Ncedil:LI,ncedil:qI,ncong:PI,ncongdot:MI,ncup:VI,Ncy:jI,ncy:UI,ndash:BI,nearhk:zI,nearr:GI,neArr:QI,nearrow:HI,ne:$I,nedot:JI,NegativeMediumSpace:WI,NegativeThickSpace:YI,NegativeThinSpace:ZI,NegativeVeryThinSpace:XI,nequiv:KI,nesear:e1,nesim:t1,NestedGreaterGreater:n1,NestedLessLess:r1,NewLine:i1,nexist:o1,nexists:a1,Nfr:s1,nfr:c1,ngE:u1,nge:l1,ngeq:f1,ngeqq:p1,ngeqslant:d1,nges:h1,nGg:v1,ngsim:m1,nGt:g1,ngt:y1,ngtr:b1,nGtv:_1,nharr:E1,nhArr:T1,nhpar:k1,ni:w1,nis:S1,nisd:x1,niv:N1,NJcy:D1,njcy:A1,nlarr:O1,nlArr:C1,nldr:I1,nlE:R1,nle:F1,nleftarrow:L1,nLeftarrow:q1,nleftrightarrow:P1,nLeftrightarrow:M1,nleq:V1,nleqq:j1,nleqslant:U1,nles:B1,nless:z1,nLl:G1,nlsim:Q1,nLt:H1,nlt:$1,nltri:J1,nltrie:W1,nLtv:Y1,nmid:Z1,NoBreak:X1,NonBreakingSpace:K1,nopf:eR,Nopf:tR,Not:nR,not:rR,NotCongruent:iR,NotCupCap:oR,NotDoubleVerticalBar:aR,NotElement:sR,NotEqual:cR,NotEqualTilde:uR,NotExists:lR,NotGreater:fR,NotGreaterEqual:pR,NotGreaterFullEqual:dR,NotGreaterGreater:hR,NotGreaterLess:vR,NotGreaterSlantEqual:mR,NotGreaterTilde:gR,NotHumpDownHump:yR,NotHumpEqual:bR,notin:_R,notindot:ER,notinE:TR,notinva:kR,notinvb:wR,notinvc:SR,NotLeftTriangleBar:xR,NotLeftTriangle:NR,NotLeftTriangleEqual:DR,NotLess:AR,NotLessEqual:OR,NotLessGreater:CR,NotLessLess:IR,NotLessSlantEqual:RR,NotLessTilde:FR,NotNestedGreaterGreater:LR,NotNestedLessLess:qR,notni:PR,notniva:MR,notnivb:VR,notnivc:jR,NotPrecedes:UR,NotPrecedesEqual:BR,NotPrecedesSlantEqual:zR,NotReverseElement:GR,NotRightTriangleBar:QR,NotRightTriangle:HR,NotRightTriangleEqual:$R,NotSquareSubset:JR,NotSquareSubsetEqual:WR,NotSquareSuperset:YR,NotSquareSupersetEqual:ZR,NotSubset:XR,NotSubsetEqual:KR,NotSucceeds:eF,NotSucceedsEqual:tF,NotSucceedsSlantEqual:nF,NotSucceedsTilde:rF,NotSuperset:iF,NotSupersetEqual:oF,NotTilde:aF,NotTildeEqual:sF,NotTildeFullEqual:cF,NotTildeTilde:uF,NotVerticalBar:lF,nparallel:fF,npar:pF,nparsl:dF,npart:hF,npolint:vF,npr:mF,nprcue:gF,nprec:yF,npreceq:bF,npre:_F,nrarrc:EF,nrarr:TF,nrArr:kF,nrarrw:wF,nrightarrow:SF,nRightarrow:xF,nrtri:NF,nrtrie:DF,nsc:AF,nsccue:OF,nsce:CF,Nscr:IF,nscr:RF,nshortmid:FF,nshortparallel:LF,nsim:qF,nsime:PF,nsimeq:MF,nsmid:VF,nspar:jF,nsqsube:UF,nsqsupe:BF,nsub:zF,nsubE:GF,nsube:QF,nsubset:HF,nsubseteq:$F,nsubseteqq:JF,nsucc:WF,nsucceq:YF,nsup:ZF,nsupE:XF,nsupe:KF,nsupset:eL,nsupseteq:tL,nsupseteqq:nL,ntgl:rL,Ntilde:iL,ntilde:oL,ntlg:aL,ntriangleleft:sL,ntrianglelefteq:cL,ntriangleright:uL,ntrianglerighteq:lL,Nu:fL,nu:pL,num:dL,numero:hL,numsp:vL,nvap:mL,nvdash:gL,nvDash:yL,nVdash:bL,nVDash:_L,nvge:EL,nvgt:TL,nvHarr:kL,nvinfin:wL,nvlArr:SL,nvle:xL,nvlt:NL,nvltrie:DL,nvrArr:AL,nvrtrie:OL,nvsim:CL,nwarhk:IL,nwarr:RL,nwArr:FL,nwarrow:LL,nwnear:qL,Oacute:PL,oacute:ML,oast:VL,Ocirc:jL,ocirc:UL,ocir:BL,Ocy:zL,ocy:GL,odash:QL,Odblac:HL,odblac:$L,odiv:JL,odot:WL,odsold:YL,OElig:ZL,oelig:XL,ofcir:KL,Ofr:eq,ofr:tq,ogon:nq,Ograve:rq,ograve:iq,ogt:oq,ohbar:aq,ohm:sq,oint:cq,olarr:uq,olcir:lq,olcross:fq,oline:pq,olt:dq,Omacr:hq,omacr:vq,Omega:mq,omega:gq,Omicron:yq,omicron:bq,omid:_q,ominus:Eq,Oopf:Tq,oopf:kq,opar:wq,OpenCurlyDoubleQuote:Sq,OpenCurlyQuote:xq,operp:Nq,oplus:Dq,orarr:Aq,Or:Oq,or:Cq,ord:Iq,order:Rq,orderof:Fq,ordf:Lq,ordm:qq,origof:Pq,oror:Mq,orslope:Vq,orv:jq,oS:Uq,Oscr:Bq,oscr:zq,Oslash:Gq,oslash:Qq,osol:Hq,Otilde:$q,otilde:Jq,otimesas:Wq,Otimes:Yq,otimes:Zq,Ouml:Xq,ouml:Kq,ovbar:eP,OverBar:tP,OverBrace:nP,OverBracket:rP,OverParenthesis:iP,para:oP,parallel:aP,par:sP,parsim:cP,parsl:uP,part:lP,PartialD:fP,Pcy:pP,pcy:dP,percnt:hP,period:vP,permil:mP,perp:gP,pertenk:yP,Pfr:bP,pfr:_P,Phi:EP,phi:TP,phiv:kP,phmmat:wP,phone:SP,Pi:xP,pi:NP,pitchfork:DP,piv:AP,planck:OP,planckh:CP,plankv:IP,plusacir:RP,plusb:FP,pluscir:LP,plus:qP,plusdo:PP,plusdu:MP,pluse:VP,PlusMinus:jP,plusmn:UP,plussim:BP,plustwo:zP,pm:GP,Poincareplane:QP,pointint:HP,popf:$P,Popf:JP,pound:WP,prap:YP,Pr:ZP,pr:XP,prcue:KP,precapprox:eM,prec:tM,preccurlyeq:nM,Precedes:rM,PrecedesEqual:iM,PrecedesSlantEqual:oM,PrecedesTilde:aM,preceq:sM,precnapprox:cM,precneqq:uM,precnsim:lM,pre:fM,prE:pM,precsim:dM,prime:hM,Prime:vM,primes:mM,prnap:gM,prnE:yM,prnsim:bM,prod:_M,Product:EM,profalar:TM,profline:kM,profsurf:wM,prop:SM,Proportional:xM,Proportion:NM,propto:DM,prsim:AM,prurel:OM,Pscr:CM,pscr:IM,Psi:RM,psi:FM,puncsp:LM,Qfr:qM,qfr:PM,qint:MM,qopf:VM,Qopf:jM,qprime:UM,Qscr:BM,qscr:zM,quaternions:GM,quatint:QM,quest:HM,questeq:$M,quot:JM,QUOT:WM,rAarr:YM,race:ZM,Racute:XM,racute:KM,radic:eV,raemptyv:tV,rang:nV,Rang:rV,rangd:iV,range:oV,rangle:aV,raquo:sV,rarrap:cV,rarrb:uV,rarrbfs:lV,rarrc:fV,rarr:pV,Rarr:dV,rArr:hV,rarrfs:vV,rarrhk:mV,rarrlp:gV,rarrpl:yV,rarrsim:bV,Rarrtl:_V,rarrtl:EV,rarrw:TV,ratail:kV,rAtail:wV,ratio:SV,rationals:xV,rbarr:NV,rBarr:DV,RBarr:AV,rbbrk:OV,rbrace:CV,rbrack:IV,rbrke:RV,rbrksld:FV,rbrkslu:LV,Rcaron:qV,rcaron:PV,Rcedil:MV,rcedil:VV,rceil:jV,rcub:UV,Rcy:BV,rcy:zV,rdca:GV,rdldhar:QV,rdquo:HV,rdquor:$V,rdsh:JV,real:WV,realine:YV,realpart:ZV,reals:XV,Re:KV,rect:ej,reg:tj,REG:nj,ReverseElement:rj,ReverseEquilibrium:ij,ReverseUpEquilibrium:oj,rfisht:aj,rfloor:sj,rfr:cj,Rfr:uj,rHar:lj,rhard:fj,rharu:pj,rharul:dj,Rho:hj,rho:vj,rhov:mj,RightAngleBracket:gj,RightArrowBar:yj,rightarrow:bj,RightArrow:_j,Rightarrow:Ej,RightArrowLeftArrow:Tj,rightarrowtail:kj,RightCeiling:wj,RightDoubleBracket:Sj,RightDownTeeVector:xj,RightDownVectorBar:Nj,RightDownVector:Dj,RightFloor:Aj,rightharpoondown:Oj,rightharpoonup:Cj,rightleftarrows:Ij,rightleftharpoons:Rj,rightrightarrows:Fj,rightsquigarrow:Lj,RightTeeArrow:qj,RightTee:Pj,RightTeeVector:Mj,rightthreetimes:Vj,RightTriangleBar:jj,RightTriangle:Uj,RightTriangleEqual:Bj,RightUpDownVector:zj,RightUpTeeVector:Gj,RightUpVectorBar:Qj,RightUpVector:Hj,RightVectorBar:$j,RightVector:Jj,ring:Wj,risingdotseq:Yj,rlarr:Zj,rlhar:Xj,rlm:Kj,rmoustache:eU,rmoust:tU,rnmid:nU,roang:rU,roarr:iU,robrk:oU,ropar:aU,ropf:sU,Ropf:cU,roplus:uU,rotimes:lU,RoundImplies:fU,rpar:pU,rpargt:dU,rppolint:hU,rrarr:vU,Rrightarrow:mU,rsaquo:gU,rscr:yU,Rscr:bU,rsh:_U,Rsh:EU,rsqb:TU,rsquo:kU,rsquor:wU,rthree:SU,rtimes:xU,rtri:NU,rtrie:DU,rtrif:AU,rtriltri:OU,RuleDelayed:CU,ruluhar:IU,rx:RU,Sacute:FU,sacute:LU,sbquo:qU,scap:PU,Scaron:MU,scaron:VU,Sc:jU,sc:UU,sccue:BU,sce:zU,scE:GU,Scedil:QU,scedil:HU,Scirc:$U,scirc:JU,scnap:WU,scnE:YU,scnsim:ZU,scpolint:XU,scsim:KU,Scy:eB,scy:tB,sdotb:nB,sdot:rB,sdote:iB,searhk:oB,searr:aB,seArr:sB,searrow:cB,sect:uB,semi:lB,seswar:fB,setminus:pB,setmn:dB,sext:hB,Sfr:vB,sfr:mB,sfrown:gB,sharp:yB,SHCHcy:bB,shchcy:_B,SHcy:EB,shcy:TB,ShortDownArrow:kB,ShortLeftArrow:wB,shortmid:SB,shortparallel:xB,ShortRightArrow:NB,ShortUpArrow:DB,shy:AB,Sigma:OB,sigma:CB,sigmaf:IB,sigmav:RB,sim:FB,simdot:LB,sime:qB,simeq:PB,simg:MB,simgE:VB,siml:jB,simlE:UB,simne:BB,simplus:zB,simrarr:GB,slarr:QB,SmallCircle:HB,smallsetminus:$B,smashp:JB,smeparsl:WB,smid:YB,smile:ZB,smt:XB,smte:KB,smtes:e2,SOFTcy:t2,softcy:n2,solbar:r2,solb:i2,sol:o2,Sopf:a2,sopf:s2,spades:c2,spadesuit:u2,spar:l2,sqcap:f2,sqcaps:p2,sqcup:d2,sqcups:h2,Sqrt:v2,sqsub:m2,sqsube:g2,sqsubset:y2,sqsubseteq:b2,sqsup:_2,sqsupe:E2,sqsupset:T2,sqsupseteq:k2,square:w2,Square:S2,SquareIntersection:x2,SquareSubset:N2,SquareSubsetEqual:D2,SquareSuperset:A2,SquareSupersetEqual:O2,SquareUnion:C2,squarf:I2,squ:R2,squf:F2,srarr:L2,Sscr:q2,sscr:P2,ssetmn:M2,ssmile:V2,sstarf:j2,Star:U2,star:B2,starf:z2,straightepsilon:G2,straightphi:Q2,strns:H2,sub:$2,Sub:J2,subdot:W2,subE:Y2,sube:Z2,subedot:X2,submult:K2,subnE:ez,subne:tz,subplus:nz,subrarr:rz,subset:iz,Subset:oz,subseteq:az,subseteqq:sz,SubsetEqual:cz,subsetneq:uz,subsetneqq:lz,subsim:fz,subsub:pz,subsup:dz,succapprox:hz,succ:vz,succcurlyeq:mz,Succeeds:gz,SucceedsEqual:yz,SucceedsSlantEqual:bz,SucceedsTilde:_z,succeq:Ez,succnapprox:Tz,succneqq:kz,succnsim:wz,succsim:Sz,SuchThat:xz,sum:Nz,Sum:Dz,sung:Az,sup1:Oz,sup2:Cz,sup3:Iz,sup:Rz,Sup:Fz,supdot:Lz,supdsub:qz,supE:Pz,supe:Mz,supedot:Vz,Superset:jz,SupersetEqual:Uz,suphsol:Bz,suphsub:zz,suplarr:Gz,supmult:Qz,supnE:Hz,supne:$z,supplus:Jz,supset:Wz,Supset:Yz,supseteq:Zz,supseteqq:Xz,supsetneq:Kz,supsetneqq:eG,supsim:tG,supsub:nG,supsup:rG,swarhk:iG,swarr:oG,swArr:aG,swarrow:sG,swnwar:cG,szlig:uG,Tab:lG,target:fG,Tau:pG,tau:dG,tbrk:hG,Tcaron:vG,tcaron:mG,Tcedil:gG,tcedil:yG,Tcy:bG,tcy:_G,tdot:EG,telrec:TG,Tfr:kG,tfr:wG,there4:SG,therefore:xG,Therefore:NG,Theta:DG,theta:AG,thetasym:OG,thetav:CG,thickapprox:IG,thicksim:RG,ThickSpace:FG,ThinSpace:LG,thinsp:qG,thkap:PG,thksim:MG,THORN:VG,thorn:jG,tilde:UG,Tilde:BG,TildeEqual:zG,TildeFullEqual:GG,TildeTilde:QG,timesbar:HG,timesb:$G,times:JG,timesd:WG,tint:YG,toea:ZG,topbot:XG,topcir:KG,top:eQ,Topf:tQ,topf:nQ,topfork:rQ,tosa:iQ,tprime:oQ,trade:aQ,TRADE:sQ,triangle:cQ,triangledown:uQ,triangleleft:lQ,trianglelefteq:fQ,triangleq:pQ,triangleright:dQ,trianglerighteq:hQ,tridot:vQ,trie:mQ,triminus:gQ,TripleDot:yQ,triplus:bQ,trisb:_Q,tritime:EQ,trpezium:TQ,Tscr:kQ,tscr:wQ,TScy:SQ,tscy:xQ,TSHcy:NQ,tshcy:DQ,Tstrok:AQ,tstrok:OQ,twixt:CQ,twoheadleftarrow:IQ,twoheadrightarrow:RQ,Uacute:FQ,uacute:LQ,uarr:qQ,Uarr:PQ,uArr:MQ,Uarrocir:VQ,Ubrcy:jQ,ubrcy:UQ,Ubreve:BQ,ubreve:zQ,Ucirc:GQ,ucirc:QQ,Ucy:HQ,ucy:$Q,udarr:JQ,Udblac:WQ,udblac:YQ,udhar:ZQ,ufisht:XQ,Ufr:KQ,ufr:e3,Ugrave:t3,ugrave:n3,uHar:r3,uharl:i3,uharr:o3,uhblk:a3,ulcorn:s3,ulcorner:c3,ulcrop:u3,ultri:l3,Umacr:f3,umacr:p3,uml:d3,UnderBar:h3,UnderBrace:v3,UnderBracket:m3,UnderParenthesis:g3,Union:y3,UnionPlus:b3,Uogon:_3,uogon:E3,Uopf:T3,uopf:k3,UpArrowBar:w3,uparrow:S3,UpArrow:x3,Uparrow:N3,UpArrowDownArrow:D3,updownarrow:A3,UpDownArrow:O3,Updownarrow:C3,UpEquilibrium:I3,upharpoonleft:R3,upharpoonright:F3,uplus:L3,UpperLeftArrow:q3,UpperRightArrow:P3,upsi:M3,Upsi:V3,upsih:j3,Upsilon:U3,upsilon:B3,UpTeeArrow:z3,UpTee:G3,upuparrows:Q3,urcorn:H3,urcorner:$3,urcrop:J3,Uring:W3,uring:Y3,urtri:Z3,Uscr:X3,uscr:K3,utdot:eH,Utilde:tH,utilde:nH,utri:rH,utrif:iH,uuarr:oH,Uuml:aH,uuml:sH,uwangle:cH,vangrt:uH,varepsilon:lH,varkappa:fH,varnothing:pH,varphi:dH,varpi:hH,varpropto:vH,varr:mH,vArr:gH,varrho:yH,varsigma:bH,varsubsetneq:_H,varsubsetneqq:EH,varsupsetneq:TH,varsupsetneqq:kH,vartheta:wH,vartriangleleft:SH,vartriangleright:xH,vBar:NH,Vbar:DH,vBarv:AH,Vcy:OH,vcy:CH,vdash:IH,vDash:RH,Vdash:FH,VDash:LH,Vdashl:qH,veebar:PH,vee:MH,Vee:VH,veeeq:jH,vellip:UH,verbar:BH,Verbar:zH,vert:GH,Vert:QH,VerticalBar:HH,VerticalLine:$H,VerticalSeparator:JH,VerticalTilde:WH,VeryThinSpace:YH,Vfr:ZH,vfr:XH,vltri:KH,vnsub:e4,vnsup:t4,Vopf:n4,vopf:r4,vprop:i4,vrtri:o4,Vscr:a4,vscr:s4,vsubnE:c4,vsubne:u4,vsupnE:l4,vsupne:f4,Vvdash:p4,vzigzag:d4,Wcirc:h4,wcirc:v4,wedbar:m4,wedge:g4,Wedge:y4,wedgeq:b4,weierp:_4,Wfr:E4,wfr:T4,Wopf:k4,wopf:w4,wp:S4,wr:x4,wreath:N4,Wscr:D4,wscr:A4,xcap:O4,xcirc:C4,xcup:I4,xdtri:R4,Xfr:F4,xfr:L4,xharr:q4,xhArr:P4,Xi:M4,xi:V4,xlarr:j4,xlArr:U4,xmap:B4,xnis:z4,xodot:G4,Xopf:Q4,xopf:H4,xoplus:$4,xotime:J4,xrarr:W4,xrArr:Y4,Xscr:Z4,xscr:X4,xsqcup:K4,xuplus:e5,xutri:t5,xvee:n5,xwedge:r5,Yacute:i5,yacute:o5,YAcy:a5,yacy:s5,Ycirc:c5,ycirc:u5,Ycy:l5,ycy:f5,yen:p5,Yfr:d5,yfr:h5,YIcy:v5,yicy:m5,Yopf:g5,yopf:y5,Yscr:b5,yscr:_5,YUcy:E5,yucy:T5,yuml:k5,Yuml:w5,Zacute:S5,zacute:x5,Zcaron:N5,zcaron:D5,Zcy:A5,zcy:O5,Zdot:C5,zdot:I5,zeetrf:R5,ZeroWidthSpace:F5,Zeta:L5,zeta:q5,zfr:P5,Zfr:M5,ZHcy:V5,zhcy:j5,zigrarr:U5,zopf:B5,Zopf:z5,Zscr:G5,zscr:Q5,zwj:H5,zwnj:$5};var hu=J5,Eo=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,on={},as={};function W5(t){var e,n,r=as[t];if(r)return r;for(r=as[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function qr(t,e,n){var r,i,o,a,s,u="";for(typeof e!="string"&&(n=e,e=qr.defaultChars),typeof n=="undefined"&&(n=!0),s=W5(e),r=0,i=t.length;r<i;r++){if(o=t.charCodeAt(r),n&&o===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){u+=t.slice(r,r+3),r+=2;continue}if(o<128){u+=s[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=t.charCodeAt(r+1),a>=56320&&a<=57343)){u+=encodeURIComponent(t[r]+t[r+1]),r++;continue}u+="%EF%BF%BD";continue}u+=encodeURIComponent(t[r])}return u}qr.defaultChars=";/?:@&=+$,-_.!~*'()#";qr.componentChars="-_.!~*'()";var Y5=qr,ss={};function Z5(t){var e,n,r=ss[t];if(r)return r;for(r=ss[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function Pr(t,e){var n;return typeof e!="string"&&(e=Pr.defaultChars),n=Z5(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var i,o,a,s,u,c,l,f="";for(i=0,o=r.length;i<o;i+=3){if(a=parseInt(r.slice(i+1,i+3),16),a<128){f+=n[a];continue}if((a&224)===192&&i+3<o&&(s=parseInt(r.slice(i+4,i+6),16),(s&192)===128)){l=a<<6&1984|s&63,l<128?f+="��":f+=String.fromCharCode(l),i+=3;continue}if((a&240)===224&&i+6<o&&(s=parseInt(r.slice(i+4,i+6),16),u=parseInt(r.slice(i+7,i+9),16),(s&192)===128&&(u&192)===128)){l=a<<12&61440|s<<6&4032|u&63,l<2048||l>=55296&&l<=57343?f+="���":f+=String.fromCharCode(l),i+=6;continue}if((a&248)===240&&i+9<o&&(s=parseInt(r.slice(i+4,i+6),16),u=parseInt(r.slice(i+7,i+9),16),c=parseInt(r.slice(i+10,i+12),16),(s&192)===128&&(u&192)===128&&(c&192)===128)){l=a<<18&1835008|s<<12&258048|u<<6&4032|c&63,l<65536||l>1114111?f+="����":(l-=65536,f+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),i+=9;continue}f+="�"}return f})}Pr.defaultChars=";/?:@&=+$,#";Pr.componentChars="";var X5=Pr,K5=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function mr(){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 e9=/^([a-z0-9.+-]+:)/i,t9=/:[0-9]*$/,n9=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r9=["<",">",'"',"`"," ","\r",`
|
|
160
|
-
`," "],i9=["{","}","|","\\","^","`"].concat(r9),o9=["'"].concat(i9),cs=["%","/","?",";","#"].concat(o9),us=["/","?","#"],a9=255,ls=/^[+a-z0-9A-Z_-]{0,63}$/,s9=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fs={javascript:!0,"javascript:":!0},ps={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function c9(t,e){if(t&&t instanceof mr)return t;var n=new mr;return n.parse(t,e),n}mr.prototype.parse=function(t,e){var n,r,i,o,a,s=t;if(s=s.trim(),!e&&t.split("#").length===1){var u=n9.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}var c=e9.exec(s);if(c&&(c=c[0],i=c.toLowerCase(),this.protocol=c,s=s.substr(c.length)),(e||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(c&&fs[c])&&(s=s.substr(2),this.slashes=!0)),!fs[c]&&(a||c&&!ps[c])){var l=-1;for(n=0;n<us.length;n++)o=s.indexOf(us[n]),o!==-1&&(l===-1||o<l)&&(l=o);var f,d;for(l===-1?d=s.lastIndexOf("@"):d=s.lastIndexOf("@",l),d!==-1&&(f=s.slice(0,d),s=s.slice(d+1),this.auth=f),l=-1,n=0;n<cs.length;n++)o=s.indexOf(cs[n]),o!==-1&&(l===-1||o<l)&&(l=o);l===-1&&(l=s.length),s[l-1]===":"&&l--;var h=s.slice(0,l);s=s.slice(l),this.parseHost(h),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var y=m[n];if(y&&!y.match(ls)){for(var b="",g=0,k=y.length;g<k;g++)y.charCodeAt(g)>127?b+="x":b+=y[g];if(!b.match(ls)){var D=m.slice(0,n),N=m.slice(n+1),x=y.match(s9);x&&(D.push(x[1]),N.unshift(x[2])),N.length&&(s=N.join(".")+s),this.hostname=D.join(".");break}}}}this.hostname.length>a9&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=s.indexOf("#");I!==-1&&(this.hash=s.substr(I),s=s.slice(0,I));var P=s.indexOf("?");return P!==-1&&(this.search=s.substr(P),s=s.slice(0,P)),s&&(this.pathname=s),ps[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};mr.prototype.parseHost=function(t){var e=t9.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var u9=c9;on.encode=Y5;on.decode=X5;on.format=K5;on.parse=u9;var wt={},ti,ds;function vu(){return ds||(ds=1,ti=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ti}var ni,hs;function mu(){return hs||(hs=1,ni=/[\0-\x1F\x7F-\x9F]/),ni}var ri,vs;function l9(){return vs||(vs=1,ri=/[\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]/),ri}var ii,ms;function gu(){return ms||(ms=1,ii=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),ii}var gs;function f9(){return gs||(gs=1,wt.Any=vu(),wt.Cc=mu(),wt.Cf=l9(),wt.P=Eo,wt.Z=gu()),wt}(function(t){function e(w){return Object.prototype.toString.call(w)}function n(w){return e(w)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(w,F){return r.call(w,F)}function o(w){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(L){if(L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(_e){w[_e]=L[_e]})}}),w}function a(w,F,L){return[].concat(w.slice(0,F),L,w.slice(F+1))}function s(w){return!(w>=55296&&w<=57343||w>=64976&&w<=65007||(w&65535)===65535||(w&65535)===65534||w>=0&&w<=8||w===11||w>=14&&w<=31||w>=127&&w<=159||w>1114111)}function u(w){if(w>65535){w-=65536;var F=55296+(w>>10),L=56320+(w&1023);return String.fromCharCode(F,L)}return String.fromCharCode(w)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(c.source+"|"+l.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=hu;function p(w,F){var L=0;return i(h,F)?h[F]:F.charCodeAt(0)===35&&d.test(F)&&(L=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),s(L))?u(L):w}function m(w){return w.indexOf("\\")<0?w:w.replace(c,"$1")}function y(w){return w.indexOf("\\")<0&&w.indexOf("&")<0?w:w.replace(f,function(F,L,_e){return L||p(F,_e)})}var b=/[&<>"]/,g=/[&<>"]/g,k={"&":"&","<":"<",">":">",'"':"""};function D(w){return k[w]}function N(w){return b.test(w)?w.replace(g,D):w}var x=/[.?*+^$[\]\\(){}|-]/g;function I(w){return w.replace(x,"\\$&")}function P(w){switch(w){case 9:case 32:return!0}return!1}function z(w){if(w>=8192&&w<=8202)return!0;switch(w){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}var j=Eo;function K(w){return j.test(w)}function E(w){switch(w){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 R(w){return w=w.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(w=w.replace(/ẞ/g,"ß")),w.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=on,t.lib.ucmicro=f9(),t.assign=o,t.isString=n,t.has=i,t.unescapeMd=m,t.unescapeAll=y,t.isValidEntityCode=s,t.fromCodePoint=u,t.escapeHtml=N,t.arrayReplaceAt=a,t.isSpace=P,t.isWhiteSpace=z,t.isMdAsciiPunct=E,t.isPunctChar=K,t.escapeRE=I,t.normalizeReference=R})(X);var Mr={},p9=function(e,n,r){var i,o,a,s,u=-1,c=e.posMax,l=e.pos;for(e.pos=n+1,i=1;e.pos<c;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){o=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)i++;else if(r)return e.pos=l,-1}}return o&&(u=e.pos),e.pos=l,u},ys=X.unescapeAll,d9=function(e,n,r){var i,o,a=0,s=n,u={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(i=e.charCodeAt(n),i===10||i===60)return u;if(i===62)return u.pos=n+1,u.str=ys(e.slice(s+1,n)),u.ok=!0,u;if(i===92&&n+1<r){n+=2;continue}n++}return u}for(o=0;n<r&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(o++,o>32))return u;if(i===41){if(o===0)break;o--}n++}return s===n||o!==0||(u.str=ys(e.slice(s,n)),u.lines=a,u.pos=n,u.ok=!0),u},h9=X.unescapeAll,v9=function(e,n,r){var i,o,a=0,s=n,u={ok:!1,pos:0,lines:0,str:""};if(n>=r||(o=e.charCodeAt(n),o!==34&&o!==39&&o!==40))return u;for(n++,o===40&&(o=41);n<r;){if(i=e.charCodeAt(n),i===o)return u.pos=n+1,u.lines=a,u.str=h9(e.slice(s+1,n)),u.ok=!0,u;if(i===40&&o===41)return u;i===10?a++:i===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&a++),n++}return u};Mr.parseLinkLabel=p9;Mr.parseLinkDestination=d9;Mr.parseLinkTitle=v9;var m9=X.assign,g9=X.unescapeAll,Lt=X.escapeHtml,ot={};ot.code_inline=function(t,e,n,r,i){var o=t[e];return"<code"+i.renderAttrs(o)+">"+Lt(t[e].content)+"</code>"};ot.code_block=function(t,e,n,r,i){var o=t[e];return"<pre"+i.renderAttrs(o)+"><code>"+Lt(t[e].content)+`</code></pre>
|
|
161
|
-
`};ot.fence=function(t,e,n,r,i){var o=t[e],a=o.info?g9(o.info).trim():"",s="",u="",c,l,f,d,h;return a&&(f=a.split(/(\s+)/g),s=f[0],u=f.slice(2).join("")),n.highlight?c=n.highlight(o.content,s,u)||Lt(o.content):c=Lt(o.content),c.indexOf("<pre")===0?c+`
|
|
162
|
-
`:a?(l=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[],l<0?d.push(["class",n.langPrefix+s]):(d[l]=d[l].slice(),d[l][1]+=" "+n.langPrefix+s),h={attrs:d},"<pre><code"+i.renderAttrs(h)+">"+c+`</code></pre>
|
|
163
|
-
`):"<pre><code"+i.renderAttrs(o)+">"+c+`</code></pre>
|
|
164
|
-
`};ot.image=function(t,e,n,r,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)};ot.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
165
|
-
`:`<br>
|
|
166
|
-
`};ot.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
167
|
-
`:`<br>
|
|
168
|
-
`:`
|
|
169
|
-
`};ot.text=function(t,e){return Lt(t[e].content)};ot.html_block=function(t,e){return t[e].content};ot.html_inline=function(t,e){return t[e].content};function an(){this.rules=m9({},ot)}an.prototype.renderAttrs=function(e){var n,r,i;if(!e.attrs)return"";for(i="",n=0,r=e.attrs.length;n<r;n++)i+=" "+Lt(e.attrs[n][0])+'="'+Lt(e.attrs[n][1])+'"';return i};an.prototype.renderToken=function(e,n,r){var i,o="",a=!1,s=e[n];return s.hidden?"":(s.block&&s.nesting!==-1&&n&&e[n-1].hidden&&(o+=`
|
|
170
|
-
`),o+=(s.nesting===-1?"</":"<")+s.tag,o+=this.renderAttrs(s),s.nesting===0&&r.xhtmlOut&&(o+=" /"),s.block&&(a=!0,s.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===s.tag)&&(a=!1))),o+=a?`>
|
|
171
|
-
`:">",o)};an.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,a=0,s=t.length;a<s;a++)r=t[a].type,typeof o[r]!="undefined"?i+=o[r](t,a,e,n,this):i+=this.renderToken(t,a,e);return i};an.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)t[i].type==="text"?r+=t[i].content:t[i].type==="image"?r+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(r+=`
|
|
172
|
-
`);return r};an.prototype.render=function(t,e,n){var r,i,o,a="",s=this.rules;for(r=0,i=t.length;r<i;r++)o=t[r].type,o==="inline"?a+=this.renderInline(t[r].children,e,n):typeof s[o]!="undefined"?a+=s[t[r].type](t,r,e,n,this):a+=this.renderToken(t,r,e,n);return a};var y9=an;function Ke(){this.__rules__=[],this.__cache__=null}Ke.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Ke.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};Ke.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Ke.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Ke.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Ke.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};Ke.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};Ke.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Ke.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};Ke.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var To=Ke,b9=/\r\n?|\n/g,_9=/\0/g,E9=function(e){var n;n=e.src.replace(b9,`
|
|
173
|
-
`),n=n.replace(_9,"�"),e.src=n},T9=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},k9=function(e){var n=e.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},w9=X.arrayReplaceAt;function S9(t){return/^<a[>\s]/i.test(t)}function x9(t){return/^<\/a\s*>/i.test(t)}var N9=function(e){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,y,b,g=e.tokens,k;if(e.md.options.linkify){for(r=0,i=g.length;r<i;r++)if(!(g[r].type!=="inline"||!e.md.linkify.pretest(g[r].content)))for(o=g[r].children,p=0,n=o.length-1;n>=0;n--){if(s=o[n],s.type==="link_close"){for(n--;o[n].level!==s.level&&o[n].type!=="link_open";)n--;continue}if(s.type==="html_inline"&&(S9(s.content)&&p>0&&p--,x9(s.content)&&p++),!(p>0)&&s.type==="text"&&e.md.linkify.test(s.content)){for(l=s.content,k=e.md.linkify.match(l),u=[],h=s.level,d=0,c=0;c<k.length;c++)m=k[c].url,y=e.md.normalizeLink(m),e.md.validateLink(y)&&(b=k[c].text,k[c].schema?k[c].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),f=k[c].index,f>d&&(a=new e.Token("text","",0),a.content=l.slice(d,f),a.level=h,u.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=h++,a.markup="linkify",a.info="auto",u.push(a),a=new e.Token("text","",0),a.content=b,a.level=h,u.push(a),a=new e.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",u.push(a),d=k[c].lastIndex);d<l.length&&(a=new e.Token("text","",0),a.content=l.slice(d),a.level=h,u.push(a)),g[r].children=o=w9(o,n,u)}}}},yu=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,D9=/\((c|tm|r|p)\)/i,A9=/\((c|tm|r|p)\)/ig,O9={c:"©",r:"®",p:"§",tm:"™"};function C9(t,e){return O9[e.toLowerCase()]}function I9(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(A9,C9)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function R9(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&yu.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var F9=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(D9.test(e.tokens[n].content)&&I9(e.tokens[n].children),yu.test(e.tokens[n].content)&&R9(e.tokens[n].children))},bs=X.isWhiteSpace,_s=X.isPunctChar,Es=X.isMdAsciiPunct,L9=/['"]/,Ts=/['"]/g,ks="’";function $n(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function q9(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,y,b,g,k,D,N,x;for(D=[],n=0;n<t.length;n++){for(r=t[n],u=t[n].level,g=D.length-1;g>=0&&!(D[g].level<=u);g--);if(D.length=g+1,r.type==="text"){i=r.content,a=0,s=i.length;e:for(;a<s&&(Ts.lastIndex=a,o=Ts.exec(i),!!o);){if(y=b=!0,a=o.index+1,k=o[0]==="'",l=32,o.index-1>=0)l=i.charCodeAt(o.index-1);else for(g=n-1;g>=0&&!(t[g].type==="softbreak"||t[g].type==="hardbreak");g--)if(t[g].content){l=t[g].content.charCodeAt(t[g].content.length-1);break}if(f=32,a<s)f=i.charCodeAt(a);else for(g=n+1;g<t.length&&!(t[g].type==="softbreak"||t[g].type==="hardbreak");g++)if(t[g].content){f=t[g].content.charCodeAt(0);break}if(d=Es(l)||_s(String.fromCharCode(l)),h=Es(f)||_s(String.fromCharCode(f)),p=bs(l),m=bs(f),m?y=!1:h&&(p||d||(y=!1)),p?b=!1:d&&(m||h||(b=!1)),f===34&&o[0]==='"'&&l>=48&&l<=57&&(b=y=!1),y&&b&&(y=d,b=h),!y&&!b){k&&(r.content=$n(r.content,o.index,ks));continue}if(b){for(g=D.length-1;g>=0&&(c=D[g],!(D[g].level<u));g--)if(c.single===k&&D[g].level===u){c=D[g],k?(N=e.md.options.quotes[2],x=e.md.options.quotes[3]):(N=e.md.options.quotes[0],x=e.md.options.quotes[1]),r.content=$n(r.content,o.index,x),t[c.token].content=$n(t[c.token].content,c.pos,N),a+=x.length-1,c.token===n&&(a+=N.length-1),i=r.content,s=i.length,D.length=g;continue e}}y?D.push({token:n,pos:o.index,single:k,level:u}):b&&k&&(r.content=$n(r.content,o.index,ks))}}}}var P9=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!L9.test(e.tokens[n].content)||q9(e.tokens[n].children,e)};function sn(t,e,n){this.type=t,this.tag=e,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}sn.prototype.attrIndex=function(e){var n,r,i;if(!this.attrs)return-1;for(n=this.attrs,r=0,i=n.length;r<i;r++)if(n[r][0]===e)return r;return-1};sn.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};sn.prototype.attrSet=function(e,n){var r=this.attrIndex(e),i=[e,n];r<0?this.attrPush(i):this.attrs[r]=i};sn.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r};sn.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var ko=sn,M9=ko;function bu(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}bu.prototype.Token=M9;var V9=bu,j9=To,oi=[["normalize",E9],["block",T9],["inline",k9],["linkify",N9],["replacements",F9],["smartquotes",P9]];function wo(){this.ruler=new j9;for(var t=0;t<oi.length;t++)this.ruler.push(oi[t][0],oi[t][1])}wo.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)};wo.prototype.State=V9;var U9=wo,ai=X.isSpace;function si(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function ws(t){var e=[],n=0,r=t.length,i,o=!1,a=0,s="";for(i=t.charCodeAt(n);n<r;)i===124&&(o?(s+=t.substring(a,n-1),a=n):(e.push(s+t.substring(a,n)),s="",a=n+1)),o=i===92,n++,i=t.charCodeAt(n);return e.push(s+t.substring(a)),e}var B9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,y,b,g,k,D,N,x;if(n+2>r||(l=n+1,e.sCount[l]<e.blkIndent)||e.sCount[l]-e.blkIndent>=4||(s=e.bMarks[l]+e.tShift[l],s>=e.eMarks[l])||(N=e.src.charCodeAt(s++),N!==124&&N!==45&&N!==58)||s>=e.eMarks[l]||(x=e.src.charCodeAt(s++),x!==124&&x!==45&&x!==58&&!ai(x))||N===45&&ai(x))return!1;for(;s<e.eMarks[l];){if(o=e.src.charCodeAt(s),o!==124&&o!==45&&o!==58&&!ai(o))return!1;s++}for(a=si(e,n+1),f=a.split("|"),p=[],u=0;u<f.length;u++){if(m=f[u].trim(),!m){if(u===0||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?p.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?p.push("left"):p.push("")}if(a=si(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=ws(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d=f.length,d===0||d!==p.length))return!1;if(i)return!0;for(g=e.parentType,e.parentType="table",D=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=y=[n,0],h=e.push("thead_open","thead",1),h.map=[n,n+1],h=e.push("tr_open","tr",1),h.map=[n,n+1],u=0;u<f.length;u++)h=e.push("th_open","th",1),p[u]&&(h.attrs=[["style","text-align:"+p[u]]]),h=e.push("inline","",0),h.content=f[u].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),l=n+2;l<r&&!(e.sCount[l]<e.blkIndent);l++){for(k=!1,u=0,c=D.length;u<c;u++)if(D[u](e,l,r,!0)){k=!0;break}if(k||(a=si(e,l).trim(),!a)||e.sCount[l]-e.blkIndent>=4)break;for(f=ws(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),l===n+2&&(h=e.push("tbody_open","tbody",1),h.map=b=[n+2,0]),h=e.push("tr_open","tr",1),h.map=[l,l+1],u=0;u<d;u++)h=e.push("td_open","td",1),p[u]&&(h.attrs=[["style","text-align:"+p[u]]]),h=e.push("inline","",0),h.content=f[u]?f[u].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return b&&(h=e.push("tbody_close","tbody",-1),b[1]=l),h=e.push("table_close","table",-1),y[1]=l,e.parentType=g,e.line=l,!0},z9=function(e,n,r){var i,o,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,o=i;continue}break}return e.line=o,a=e.push("code_block","code",0),a.content=e.getLines(n,o,4+e.blkIndent,!1)+`
|
|
174
|
-
`,a.map=[n,e.line],!0},G9=function(e,n,r,i){var o,a,s,u,c,l,f,d=!1,h=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>p||(o=e.src.charCodeAt(h),o!==126&&o!==96)||(c=h,h=e.skipChars(h,o),a=h-c,a<3)||(f=e.src.slice(c,h),s=e.src.slice(h,p),o===96&&s.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(u=n;u++,!(u>=r||(h=c=e.bMarks[u]+e.tShift[u],p=e.eMarks[u],h<p&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(h)===o&&!(e.sCount[u]-e.blkIndent>=4)&&(h=e.skipChars(h,o),!(h-c<a)&&(h=e.skipSpaces(h),!(h<p)))){d=!0;break}return a=e.sCount[n],e.line=u+(d?1:0),l=e.push("fence","code",0),l.info=s,l.content=e.getLines(n+1,u,a,!0),l.markup=f,l.map=[n,e.line],!0},Ss=X.isSpace,Q9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,y,b,g,k,D,N,x,I,P,z=e.lineMax,j=e.bMarks[n]+e.tShift[n],K=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(j++)!==62)return!1;if(i)return!0;for(u=h=e.sCount[n]+1,e.src.charCodeAt(j)===32?(j++,u++,h++,o=!1,D=!0):e.src.charCodeAt(j)===9?(D=!0,(e.bsCount[n]+h)%4===3?(j++,u++,h++,o=!1):o=!0):D=!1,p=[e.bMarks[n]],e.bMarks[n]=j;j<K&&(a=e.src.charCodeAt(j),Ss(a));){a===9?h+=4-(h+e.bsCount[n]+(o?1:0))%4:h++;j++}for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(D?1:0),l=j>=K,g=[e.sCount[n]],e.sCount[n]=h-u,k=[e.tShift[n]],e.tShift[n]=j-e.bMarks[n],x=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",d=n+1;d<r&&(P=e.sCount[d]<e.blkIndent,j=e.bMarks[d]+e.tShift[d],K=e.eMarks[d],!(j>=K));d++){if(e.src.charCodeAt(j++)===62&&!P){for(u=h=e.sCount[d]+1,e.src.charCodeAt(j)===32?(j++,u++,h++,o=!1,D=!0):e.src.charCodeAt(j)===9?(D=!0,(e.bsCount[d]+h)%4===3?(j++,u++,h++,o=!1):o=!0):D=!1,p.push(e.bMarks[d]),e.bMarks[d]=j;j<K&&(a=e.src.charCodeAt(j),Ss(a));){a===9?h+=4-(h+e.bsCount[d]+(o?1:0))%4:h++;j++}l=j>=K,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(D?1:0),g.push(e.sCount[d]),e.sCount[d]=h-u,k.push(e.tShift[d]),e.tShift[d]=j-e.bMarks[d];continue}if(l)break;for(N=!1,s=0,c=x.length;s<c;s++)if(x[s](e,d,r,!0)){N=!0;break}if(N){e.lineMax=d,e.blkIndent!==0&&(p.push(e.bMarks[d]),m.push(e.bsCount[d]),k.push(e.tShift[d]),g.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}p.push(e.bMarks[d]),m.push(e.bsCount[d]),k.push(e.tShift[d]),g.push(e.sCount[d]),e.sCount[d]=-1}for(y=e.blkIndent,e.blkIndent=0,I=e.push("blockquote_open","blockquote",1),I.markup=">",I.map=f=[n,0],e.md.block.tokenize(e,n,d),I=e.push("blockquote_close","blockquote",-1),I.markup=">",e.lineMax=z,e.parentType=b,f[1]=e.line,s=0;s<k.length;s++)e.bMarks[s+n]=p[s],e.tShift[s+n]=k[s],e.sCount[s+n]=g[s],e.bsCount[s+n]=m[s];return e.blkIndent=y,!0},H9=X.isSpace,$9=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(c++),o!==42&&o!==45&&o!==95))return!1;for(a=1;c<l;){if(s=e.src.charCodeAt(c++),s!==o&&!H9(s))return!1;s===o&&a++}return a<3?!1:(i||(e.line=n+1,u=e.push("hr","hr",0),u.map=[n,e.line],u.markup=Array(a+1).join(String.fromCharCode(o))),!0)},_u=X.isSpace;function xs(t,e){var n,r,i,o;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=t.src.charCodeAt(r),!_u(o))?-1:r}function Ns(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,o=t.eMarks[e];if(i+1>=o||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=t.src.charCodeAt(i),!_u(n))?-1:i}function J9(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var W9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,y,b,g,k,D,N,x,I,P,z,j,K,E,R,w,F,L,_e=!1,$=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.tShift[n]>=e.blkIndent&&(_e=!0),(K=Ns(e,n))>=0){if(f=!0,R=e.bMarks[n]+e.tShift[n],b=Number(e.src.slice(R,K-1)),_e&&b!==1)return!1}else if((K=xs(e,n))>=0)f=!1;else return!1;if(_e&&e.skipSpaces(K)>=e.eMarks[n])return!1;if(y=e.src.charCodeAt(K-1),i)return!0;for(m=e.tokens.length,f?(L=e.push("ordered_list_open","ol",1),b!==1&&(L.attrs=[["start",b]])):L=e.push("bullet_list_open","ul",1),L.map=p=[n,0],L.markup=String.fromCharCode(y),k=n,E=!1,F=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";k<r;){for(j=K,g=e.eMarks[k],l=D=e.sCount[k]+K-(e.bMarks[n]+e.tShift[n]);j<g;){if(o=e.src.charCodeAt(j),o===9)D+=4-(D+e.bsCount[k])%4;else if(o===32)D++;else break;j++}if(a=j,a>=g?c=1:c=D-l,c>4&&(c=1),u=l+c,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(y),L.map=d=[n,0],f&&(L.info=e.src.slice(R,K-1)),z=e.tight,P=e.tShift[n],I=e.sCount[n],N=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[n]=a-e.bMarks[n],e.sCount[n]=D,a>=g&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||E)&&($=!1),E=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=N,e.tShift[n]=P,e.sCount[n]=I,e.tight=z,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(y),k=n=e.line,d[1]=k,a=e.bMarks[n],k>=r||e.sCount[k]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(w=!1,s=0,h=F.length;s<h;s++)if(F[s](e,k,r,!0)){w=!0;break}if(w)break;if(f){if(K=Ns(e,k),K<0)break;R=e.bMarks[k]+e.tShift[k]}else if(K=xs(e,k),K<0)break;if(y!==e.src.charCodeAt(K-1))break}return f?L=e.push("ordered_list_close","ol",-1):L=e.push("bullet_list_close","ul",-1),L.markup=String.fromCharCode(y),p[1]=k,e.line=k,e.parentType=x,$&&J9(e,m),!0},Y9=X.normalizeReference,Jn=X.isSpace,Z9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,y,b,g,k,D,N=0,x=e.bMarks[n]+e.tShift[n],I=e.eMarks[n],P=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<I;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===I||e.src.charCodeAt(x+1)!==58)return!1;break}for(u=e.lineMax,k=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";P<u&&!e.isEmpty(P);P++)if(!(e.sCount[P]-e.blkIndent>3)&&!(e.sCount[P]<0)){for(g=!1,l=0,f=k.length;l<f;l++)if(k[l](e,P,u,!0)){g=!0;break}if(g)break}for(b=e.getLines(n,P,e.blkIndent,!1).trim(),I=b.length,x=1;x<I;x++){if(o=b.charCodeAt(x),o===91)return!1;if(o===93){h=x;break}else o===10?N++:o===92&&(x++,x<I&&b.charCodeAt(x)===10&&N++)}if(h<0||b.charCodeAt(h+1)!==58)return!1;for(x=h+2;x<I;x++)if(o=b.charCodeAt(x),o===10)N++;else if(!Jn(o))break;if(m=e.md.helpers.parseLinkDestination(b,x,I),!m.ok||(c=e.md.normalizeLink(m.str),!e.md.validateLink(c)))return!1;for(x=m.pos,N+=m.lines,a=x,s=N,y=x;x<I;x++)if(o=b.charCodeAt(x),o===10)N++;else if(!Jn(o))break;for(m=e.md.helpers.parseLinkTitle(b,x,I),x<I&&y!==x&&m.ok?(D=m.str,x=m.pos,N+=m.lines):(D="",x=a,N=s);x<I&&(o=b.charCodeAt(x),!!Jn(o));)x++;if(x<I&&b.charCodeAt(x)!==10&&D)for(D="",x=a,N=s;x<I&&(o=b.charCodeAt(x),!!Jn(o));)x++;return x<I&&b.charCodeAt(x)!==10||(d=Y9(b.slice(1,h)),!d)?!1:(i||(typeof e.env.references=="undefined"&&(e.env.references={}),typeof e.env.references[d]=="undefined"&&(e.env.references[d]={title:D,href:c}),e.parentType=p,e.line=n+N+1),!0)},X9=["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"],Vr={},K9="[a-zA-Z_:][a-zA-Z0-9:._-]*",e$="[^\"'=<>`\\x00-\\x20]+",t$="'[^']*'",n$='"[^"]*"',r$="(?:"+e$+"|"+t$+"|"+n$+")",i$="(?:\\s+"+K9+"(?:\\s*=\\s*"+r$+")?)",Eu="<[A-Za-z][A-Za-z0-9\\-]*"+i$+"*\\s*\\/?>",Tu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o$="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",a$="<[?][\\s\\S]*?[?]>",s$="<![A-Z]+\\s+[^>]*>",c$="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",u$=new RegExp("^(?:"+Eu+"|"+Tu+"|"+o$+"|"+a$+"|"+s$+"|"+c$+")"),l$=new RegExp("^(?:"+Eu+"|"+Tu+")");Vr.HTML_TAG_RE=u$;Vr.HTML_OPEN_CLOSE_TAG_RE=l$;var f$=X9,p$=Vr.HTML_OPEN_CLOSE_TAG_RE,Qt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+f$.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(p$.source+"\\s*$"),/^$/,!1]],d$=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(u=e.src.slice(c,l),o=0;o<Qt.length&&!Qt[o][0].test(u);o++);if(o===Qt.length)return!1;if(i)return Qt[o][2];if(a=n+1,!Qt[o][1].test(u)){for(;a<r&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],l=e.eMarks[a],u=e.src.slice(c,l),Qt[o][1].test(u)){u.length!==0&&a++;break}}return e.line=a,s=e.push("html_block","",0),s.map=[n,a],s.content=e.getLines(n,a,e.blkIndent,!0),!0},Ds=X.isSpace,h$=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(c),o!==35||c>=l))return!1;for(a=1,o=e.src.charCodeAt(++c);o===35&&c<l&&a<=6;)a++,o=e.src.charCodeAt(++c);return a>6||c<l&&!Ds(o)?!1:(i||(l=e.skipSpacesBack(l,c),s=e.skipCharsBack(l,35,c),s>c&&Ds(e.src.charCodeAt(s-1))&&(l=s),e.line=n+1,u=e.push("heading_open","h"+String(a),1),u.markup="########".slice(0,a),u.map=[n,e.line],u=e.push("inline","",0),u.content=e.src.slice(c,l).trim(),u.map=[n,e.line],u.children=[],u=e.push("heading_close","h"+String(a),-1),u.markup="########".slice(0,a)),!0)},v$=function(e,n,r){var i,o,a,s,u,c,l,f,d,h=n+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";h<r&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(c=e.bMarks[h]+e.tShift[h],l=e.eMarks[h],c<l&&(d=e.src.charCodeAt(c),(d===45||d===61)&&(c=e.skipChars(c,d),c=e.skipSpaces(c),c>=l)))){f=d===61?1:2;break}if(!(e.sCount[h]<0)){for(o=!1,a=0,s=m.length;a<s;a++)if(m[a](e,h,r,!0)){o=!0;break}if(o)break}}return f?(i=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+1,u=e.push("heading_open","h"+String(f),1),u.markup=String.fromCharCode(d),u.map=[n,e.line],u=e.push("inline","",0),u.content=i,u.map=[n,e.line-1],u.children=[],u=e.push("heading_close","h"+String(f),-1),u.markup=String.fromCharCode(d),e.parentType=p,!0):!1},m$=function(e,n){var r,i,o,a,s,u,c=n+1,l=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(u=e.parentType,e.parentType="paragraph";c<f&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3)&&!(e.sCount[c]<0)){for(i=!1,o=0,a=l.length;o<a;o++)if(l[o](e,c,f,!0)){i=!0;break}if(i)break}return r=e.getLines(n,c,e.blkIndent,!1).trim(),e.line=c,s=e.push("paragraph_open","p",1),s.map=[n,e.line],s=e.push("inline","",0),s.content=r,s.map=[n,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=u,!0},ku=ko,jr=X.isSpace;function at(t,e,n,r){var i,o,a,s,u,c,l,f;for(this.src=t,this.md=e,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="",o=this.src,f=!1,a=s=c=l=0,u=o.length;s<u;s++){if(i=o.charCodeAt(s),!f)if(jr(i)){c++,i===9?l+=4-l%4:l++;continue}else f=!0;(i===10||s===u-1)&&(i!==10&&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}at.prototype.push=function(t,e,n){var r=new ku(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};at.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};at.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};at.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!jr(n));e++);return e};at.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!jr(this.src.charCodeAt(--e)))return e+1;return e};at.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e};at.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e};at.prototype.getLines=function(e,n,r,i){var o,a,s,u,c,l,f,d=e;if(e>=n)return"";for(l=new Array(n-e),o=0;d<n;d++,o++){for(a=0,f=u=this.bMarks[d],d+1<n||i?c=this.eMarks[d]+1:c=this.eMarks[d];u<c&&a<r;){if(s=this.src.charCodeAt(u),jr(s))s===9?a+=4-(a+this.bsCount[d])%4:a++;else if(u-f<this.tShift[d])a++;else break;u++}a>r?l[o]=new Array(a-r+1).join(" ")+this.src.slice(u,c):l[o]=this.src.slice(u,c)}return l.join("")};at.prototype.Token=ku;var g$=at,y$=To,Wn=[["table",B9,["paragraph","reference"]],["code",z9],["fence",G9,["paragraph","reference","blockquote","list"]],["blockquote",Q9,["paragraph","reference","blockquote","list"]],["hr",$9,["paragraph","reference","blockquote","list"]],["list",W9,["paragraph","reference","blockquote"]],["reference",Z9],["html_block",d$,["paragraph","reference","blockquote"]],["heading",h$,["paragraph","reference","blockquote"]],["lheading",v$],["paragraph",m$]];function Ur(){this.ruler=new y$;for(var t=0;t<Wn.length;t++)this.ruler.push(Wn[t][0],Wn[t][1],{alt:(Wn[t][2]||[]).slice()})}Ur.prototype.tokenize=function(t,e,n){for(var r,i,o=this.ruler.getRules(""),a=o.length,s=e,u=!1,c=t.md.options.maxNesting;s<n&&(t.line=s=t.skipEmptyLines(s),!(s>=n||t.sCount[s]<t.blkIndent));){if(t.level>=c){t.line=n;break}for(i=0;i<a&&(r=o[i](t,s,n,!1),!r);i++);t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),s=t.line,s<n&&t.isEmpty(s)&&(u=!0,s++,t.line=s)}};Ur.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))};Ur.prototype.State=g$;var b$=Ur;function _$(t){switch(t){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}}var E$=function(e,n){for(var r=e.pos;r<e.posMax&&!_$(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},T$=X.isSpace,k$=function(e,n){var r,i,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;for(r=e.pending.length-1,i=e.posMax,n||(r>=0&&e.pending.charCodeAt(r)===32?r>=1&&e.pending.charCodeAt(r-1)===32?(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)),o++;o<i&&T$(e.src.charCodeAt(o));)o++;return e.pos=o,!0},w$=X.isSpace,So=[];for(var As=0;As<256;As++)So.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){So[t.charCodeAt(0)]=1});var S$=function(e,n){var r,i=e.pos,o=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<o){if(r=e.src.charCodeAt(i),r<256&&So[r]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),i++;i<o&&(r=e.src.charCodeAt(i),!!w$(r));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},x$=function(e,n){var r,i,o,a,s,u,c,l,f=e.pos,d=e.src.charCodeAt(f);if(d!==96)return!1;for(r=f,f++,i=e.posMax;f<i&&e.src.charCodeAt(f)===96;)f++;if(o=e.src.slice(r,f),c=o.length,e.backticksScanned&&(e.backticks[c]||0)<=r)return n||(e.pending+=o),e.pos+=c,!0;for(s=u=f;(s=e.src.indexOf("`",u))!==-1;){for(u=s+1;u<i&&e.src.charCodeAt(u)===96;)u++;if(l=u-s,l===c)return n||(a=e.push("code_inline","code",0),a.markup=o,a.content=e.src.slice(f,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=u,!0;e.backticks[l]=s}return e.backticksScanned=!0,n||(e.pending+=o),e.pos+=c,!0},Br={};Br.tokenize=function(e,n){var r,i,o,a,s,u=e.pos,c=e.src.charCodeAt(u);if(n||c!==126||(i=e.scanDelims(e.pos,!0),a=i.length,s=String.fromCharCode(c),a<2))return!1;for(a%2&&(o=e.push("text","",0),o.content=s,a--),r=0;r<a;r+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Os(t,e){var n,r,i,o,a,s=[],u=e.length;for(n=0;n<u;n++)i=e[n],i.marker===126&&i.end!==-1&&(o=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[o.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[o.token-1].type==="text"&&t.tokens[o.token-1].content==="~"&&s.push(o.token-1));for(;s.length;){for(n=s.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(a=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=a)}}Br.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Os(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Os(e,r[n].delimiters)};var zr={};zr.tokenize=function(e,n){var r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(n||s!==95&&s!==42)return!1;for(i=e.scanDelims(e.pos,s===42),r=0;r<i.length;r++)o=e.push("text","",0),o.content=String.fromCharCode(s),e.delimiters.push({marker:s,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Cs(t,e){var n,r,i,o,a,s,u=e.length;for(n=u-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],s=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),o=t.tokens[r.token],o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",o=t.tokens[i.token],o.type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}zr.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Cs(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Cs(e,r[n].delimiters)};var N$=X.normalizeReference,ci=X.isSpace,D$=function(e,n){var r,i,o,a,s,u,c,l,f,d="",h="",p=e.pos,m=e.posMax,y=e.pos,b=!0;if(e.src.charCodeAt(e.pos)!==91||(s=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(u=a+1,u<m&&e.src.charCodeAt(u)===40){for(b=!1,u++;u<m&&(i=e.src.charCodeAt(u),!(!ci(i)&&i!==10));u++);if(u>=m)return!1;if(y=u,c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),c.ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?u=c.pos:d="",y=u;u<m&&(i=e.src.charCodeAt(u),!(!ci(i)&&i!==10));u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<m&&y!==u&&c.ok)for(h=c.str,u=c.pos;u<m&&(i=e.src.charCodeAt(u),!(!ci(i)&&i!==10));u++);}(u>=m||e.src.charCodeAt(u)!==41)&&(b=!0),u++}if(b){if(typeof e.env.references=="undefined")return!1;if(u<m&&e.src.charCodeAt(u)===91?(y=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(y,u++):u=a+1):u=a+1,o||(o=e.src.slice(s,a)),l=e.env.references[N$(o)],!l)return e.pos=p,!1;d=l.href,h=l.title}return n||(e.pos=s,e.posMax=a,f=e.push("link_open","a",1),f.attrs=r=[["href",d]],h&&r.push(["title",h]),e.md.inline.tokenize(e),f=e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0},A$=X.normalizeReference,ui=X.isSpace,O$=function(e,n){var r,i,o,a,s,u,c,l,f,d,h,p,m,y="",b=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(u=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),s<0))return!1;if(c=s+1,c<g&&e.src.charCodeAt(c)===40){for(c++;c<g&&(i=e.src.charCodeAt(c),!(!ui(i)&&i!==10));c++);if(c>=g)return!1;for(m=c,f=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?c=f.pos:y=""),m=c;c<g&&(i=e.src.charCodeAt(c),!(!ui(i)&&i!==10));c++);if(f=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&m!==c&&f.ok)for(d=f.str,c=f.pos;c<g&&(i=e.src.charCodeAt(c),!(!ui(i)&&i!==10));c++);else d="";if(c>=g||e.src.charCodeAt(c)!==41)return e.pos=b,!1;c++}else{if(typeof e.env.references=="undefined")return!1;if(c<g&&e.src.charCodeAt(c)===91?(m=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?a=e.src.slice(m,c++):c=s+1):c=s+1,a||(a=e.src.slice(u,s)),l=e.env.references[A$(a)],!l)return e.pos=b,!1;y=l.href,d=l.title}return n||(o=e.src.slice(u,s),e.md.inline.parse(o,e.md,e.env,p=[]),h=e.push("image","img",0),h.attrs=r=[["src",y],["alt",""]],h.children=p,h.content=o,d&&r.push(["title",d])),e.pos=c,e.posMax=g,!0},C$=/^([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])?)*)$/,I$=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,R$=function(e,n){var r,i,o,a,s,u,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(s=e.pos,u=e.posMax;;){if(++c>=u||(a=e.src.charCodeAt(c),a===60))return!1;if(a===62)break}return r=e.src.slice(s+1,c),I$.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):C$.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):!1},F$=Vr.HTML_TAG_RE;function L$(t){var e=t|32;return e>=97&&e<=122}var q$=function(e,n){var r,i,o,a,s=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(r=e.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!L$(r))||(i=e.src.slice(s).match(F$),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=e.src.slice(s,s+i[0].length)),e.pos+=i[0].length,!0)},Is=hu,P$=X.has,M$=X.isValidEntityCode,Rs=X.fromCodePoint,V$=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,j$=/^&([a-z][a-z0-9]{1,31});/i,U$=function(e,n){var r,i,o,a=e.pos,s=e.posMax;if(e.src.charCodeAt(a)!==38)return!1;if(a+1<s){if(r=e.src.charCodeAt(a+1),r===35){if(o=e.src.slice(a).match(V$),o)return n||(i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),e.pending+=M$(i)?Rs(i):Rs(65533)),e.pos+=o[0].length,!0}else if(o=e.src.slice(a).match(j$),o&&P$(Is,o[1]))return n||(e.pending+=Is[o[1]]),e.pos+=o[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function Fs(t,e){var n,r,i,o,a,s,u,c,l={},f=e.length;if(f){var d=0,h=-2,p=[];for(n=0;n<f;n++)if(i=e[n],p.push(0),(e[d].marker!==i.marker||h!==i.token-1)&&(d=n),h=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],r=d-p[d]-1,s=r;r>a;r-=p[r]+1)if(o=e[r],o.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&&!e[r-1].open?p[r-1]+1:0,p[n]=n-r+c,p[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,h=-2;break}s!==-1&&(l[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}var B$=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Fs(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Fs(e,r[n].delimiters)},z$=function(e){var n,r,i=0,o=e.tokens,a=e.tokens.length;for(n=r=0;n<a;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<a&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)},xo=ko,Ls=X.isWhiteSpace,qs=X.isPunctChar,Ps=X.isMdAsciiPunct;function qn(t,e,n,r){this.src=t,this.env=n,this.md=e,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}qn.prototype.pushPending=function(){var t=new xo("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};qn.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new xo(t,e,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};qn.prototype.scanDelims=function(t,e){var n=t,r,i,o,a,s,u,c,l,f,d=!0,h=!0,p=this.posMax,m=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<p&&this.src.charCodeAt(n)===m;)n++;return o=n-t,i=n<p?this.src.charCodeAt(n):32,c=Ps(r)||qs(String.fromCharCode(r)),f=Ps(i)||qs(String.fromCharCode(i)),u=Ls(r),l=Ls(i),l?d=!1:f&&(u||c||(d=!1)),u?h=!1:c&&(l||f||(h=!1)),e?(a=d,s=h):(a=d&&(!h||c),s=h&&(!d||f)),{can_open:a,can_close:s,length:o}};qn.prototype.Token=xo;var G$=qn,Ms=To,li=[["text",E$],["newline",k$],["escape",S$],["backticks",x$],["strikethrough",Br.tokenize],["emphasis",zr.tokenize],["link",D$],["image",O$],["autolink",R$],["html_inline",q$],["entity",U$]],fi=[["balance_pairs",B$],["strikethrough",Br.postProcess],["emphasis",zr.postProcess],["text_collapse",z$]];function Pn(){var t;for(this.ruler=new Ms,t=0;t<li.length;t++)this.ruler.push(li[t][0],li[t][1]);for(this.ruler2=new Ms,t=0;t<fi.length;t++)this.ruler2.push(fi[t][0],fi[t][1])}Pn.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,s=t.cache;if(typeof s[r]!="undefined"){t.pos=s[r];return}if(t.level<a)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,s[r]=t.pos};Pn.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(t.level<a)for(n=0;n<i&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Pn.prototype.parse=function(t,e,n,r){var i,o,a,s=new this.State(t,e,n,r);for(this.tokenize(s),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](s)};Pn.prototype.State=G$;var Q$=Pn,pi,Vs;function H$(){return Vs||(Vs=1,pi=function(t){var e={};e.src_Any=vu().source,e.src_Cc=mu().source,e.src_Z=gu().source,e.src_P=Eo.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),pi}function Bi(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function Gr(t){return Object.prototype.toString.call(t)}function $$(t){return Gr(t)==="[object String]"}function J$(t){return Gr(t)==="[object Object]"}function W$(t){return Gr(t)==="[object RegExp]"}function js(t){return Gr(t)==="[object Function]"}function Y$(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var wu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Z$(t){return Object.keys(t||{}).reduce(function(e,n){return e||wu.hasOwnProperty(n)},!1)}var X$={"http:":{validate:function(t,e,n){var r=t.slice(e);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(t,e,n){var r=t.slice(e);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)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);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}}},K$="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]",e6="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function t6(t){t.__index__=-1,t.__text_cache__=""}function n6(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Us(){return function(t,e){e.normalize(t)}}function gr(t){var e=t.re=H$()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(K$),n.push(e.src_xn),e.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(t.__schemas__).forEach(function(s){var u=t.__schemas__[s];if(u!==null){var c={validate:null,link:null};if(t.__compiled__[s]=c,J$(u)){W$(u.validate)?c.validate=n6(u.validate):js(u.validate)?c.validate=u.validate:o(s,u),js(u.normalize)?c.normalize=u.normalize:u.normalize?o(s,u):c.normalize=Us();return}if($$(u)){i.push(s);return}o(s,u)}}),i.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:Us()};var a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(Y$).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),t6(t)}function r6(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function Bs(t,e){var n=new r6(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Be(t,e){if(!(this instanceof Be))return new Be(t,e);e||Z$(t)&&(e=t,t={}),this.__opts__=Bi({},wu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Bi({},X$,t),this.__compiled__={},this.__tlds__=e6,this.__tlds_replaced__=!1,this.re={},gr(this)}Be.prototype.add=function(e,n){return this.__schemas__[e]=n,gr(this),this};Be.prototype.set=function(e){return this.__opts__=Bi(this.__opts__,e),this};Be.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,i,o,a,s,u,c,l;if(this.re.schema_test.test(e)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],u.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(l=e.indexOf("@"),l>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Be.prototype.pretest=function(e){return this.re.pretest.test(e)};Be.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};Be.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Bs(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)r.push(Bs(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};Be.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),gr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,gr(this),this)};Be.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Be.prototype.onCompile=function(){};var i6=Be;const Yt=2147483647,rt=36,No=1,On=26,o6=38,a6=700,Su=72,xu=128,Nu="-",s6=/^xn--/,c6=/[^\0-\x7E]/,u6=/[\x2E\u3002\uFF0E\uFF61]/g,l6={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},di=rt-No,it=Math.floor,hi=String.fromCharCode;function St(t){throw new RangeError(l6[t])}function f6(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Du(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(u6,".");const i=t.split("."),o=f6(i,e).join(".");return r+o}function Do(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const Au=t=>String.fromCodePoint(...t),p6=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:rt},zs=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Ou=function(t,e,n){let r=0;for(t=n?it(t/a6):t>>1,t+=it(t/e);t>di*On>>1;r+=rt)t=it(t/di);return it(r+(di+1)*t/(t+o6))},Ao=function(t){const e=[],n=t.length;let r=0,i=xu,o=Su,a=t.lastIndexOf(Nu);a<0&&(a=0);for(let s=0;s<a;++s)t.charCodeAt(s)>=128&&St("not-basic"),e.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){let u=r;for(let l=1,f=rt;;f+=rt){s>=n&&St("invalid-input");const d=p6(t.charCodeAt(s++));(d>=rt||d>it((Yt-r)/l))&&St("overflow"),r+=d*l;const h=f<=o?No:f>=o+On?On:f-o;if(d<h)break;const p=rt-h;l>it(Yt/p)&&St("overflow"),l*=p}const c=e.length+1;o=Ou(r-u,c,u==0),it(r/c)>Yt-i&&St("overflow"),i+=it(r/c),r%=c,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Oo=function(t){const e=[];t=Do(t);let n=t.length,r=xu,i=0,o=Su;for(const u of t)u<128&&e.push(hi(u));let a=e.length,s=a;for(a&&e.push(Nu);s<n;){let u=Yt;for(const l of t)l>=r&&l<u&&(u=l);const c=s+1;u-r>it((Yt-i)/c)&&St("overflow"),i+=(u-r)*c,r=u;for(const l of t)if(l<r&&++i>Yt&&St("overflow"),l==r){let f=i;for(let d=rt;;d+=rt){const h=d<=o?No:d>=o+On?On:d-o;if(f<h)break;const p=f-h,m=rt-h;e.push(hi(zs(h+p%m,0))),f=it(p/m)}e.push(hi(zs(f,0))),o=Ou(i,c,s==a),i=0,++s}++i,++r}return e.join("")},Cu=function(t){return Du(t,function(e){return s6.test(e)?Ao(e.slice(4).toLowerCase()):e})},Iu=function(t){return Du(t,function(e){return c6.test(e)?"xn--"+Oo(e):e})},d6={version:"2.1.0",ucs2:{decode:Do,encode:Au},decode:Ao,encode:Oo,toASCII:Iu,toUnicode:Cu},h6=Object.freeze(Object.defineProperty({__proto__:null,decode:Ao,default:d6,encode:Oo,toASCII:Iu,toUnicode:Cu,ucs2decode:Do,ucs2encode:Au},Symbol.toStringTag,{value:"Module"})),v6=Yu(h6);var m6={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},g6={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},y6={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",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"]}}},yn=X,b6=Mr,_6=y9,E6=U9,T6=b$,k6=Q$,w6=i6,Nt=on,Ru=v6,S6={default:m6,zero:g6,commonmark:y6},x6=/^(vbscript|javascript|file|data):/,N6=/^data:image\/(gif|png|jpeg|webp);/;function D6(t){var e=t.trim().toLowerCase();return x6.test(e)?!!N6.test(e):!0}var Fu=["http:","https:","mailto:"];function A6(t){var e=Nt.parse(t,!0);if(e.hostname&&(!e.protocol||Fu.indexOf(e.protocol)>=0))try{e.hostname=Ru.toASCII(e.hostname)}catch(n){}return Nt.encode(Nt.format(e))}function O6(t){var e=Nt.parse(t,!0);if(e.hostname&&(!e.protocol||Fu.indexOf(e.protocol)>=0))try{e.hostname=Ru.toUnicode(e.hostname)}catch(n){}return Nt.decode(Nt.format(e),Nt.decode.defaultChars+"%")}function ze(t,e){if(!(this instanceof ze))return new ze(t,e);e||yn.isString(t)||(e=t||{},t="default"),this.inline=new k6,this.block=new T6,this.core=new E6,this.renderer=new _6,this.linkify=new w6,this.validateLink=D6,this.normalizeLink=A6,this.normalizeLinkText=O6,this.utils=yn,this.helpers=yn.assign({},b6),this.options={},this.configure(t),e&&this.set(e)}ze.prototype.set=function(t){return yn.assign(this.options,t),this};ze.prototype.configure=function(t){var e=this,n;if(yn.isString(t)&&(n=t,t=S6[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this};ze.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};ze.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};ze.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};ze.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};ze.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};ze.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};ze.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var C6=ze,I6=C6;const Co=kr(I6);var R6=Array.from({length:11},function(t,e){return String.fromCharCode(8192+e)}).concat(["\u2028","\u2029"," "," "]),F6=new RegExp("["+R6.join("")+"]","g");function L6(t){return t.replace(F6," ")}/*!
|
|
175
|
-
* escape-html
|
|
176
|
-
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
177
|
-
* Copyright(c) 2015 Andreas Lubbe
|
|
178
|
-
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
179
|
-
* MIT Licensed
|
|
180
|
-
*/var q6=/["'&<>]/,P6=M6;function M6(t){var e=""+t,n=q6.exec(e);if(!n)return e;var r,i="",o=0,a=0;for(o=n.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==o&&(i+=e.substring(a,o)),a=o+1,i+=r}return a!==o?i+e.substring(a,o):i}const V6=kr(P6);var Gs=new Co;function Io(t,e,n){Z(()=>import("./codemirror-3e55eb16.js").then(r=>r.c),["assets/codemirror-3e55eb16.js","assets/index-f32c771c.js","assets/index-af3b87a2.css"]).then(function(r){var i=r.default,o,a;i.on(e,"select",function(s,u){if(!o){var c=u.parentNode;o=document.createElement("div"),o.className="CodeMirror-hint-information",c.appendChild(o),a=document.createElement("div"),a.className="CodeMirror-hint-deprecation",c.appendChild(a);var l;c.addEventListener("DOMNodeRemoved",l=function(p){p.target===c&&(c.removeEventListener("DOMNodeRemoved",l),o=null,a=null,l=null)})}var f=s.description?Gs.render(s.description):"Self descriptive.",d=s.type?'<span class="infoType">'+zi(s.type)+"</span>":"";if(o.innerHTML='<div class="content">'+(f.slice(0,3)==="<p>"?"<p>"+d+f.slice(3):d+f)+"</div>",s&&a&&s.deprecationReason){var h=s.deprecationReason?Gs.render(s.deprecationReason):"";a.innerHTML='<span class="deprecation-label">Deprecated</span>'+h,a.style.display="block"}else a&&(a.style.display="none");n&&n(o)})})}function zi(t){return t instanceof G?zi(t.ofType)+"!":t instanceof me?"["+zi(t.ofType)+"]":'<a class="typeName">'+V6(t.name)+"</a>"}var ut,Lu=!1;typeof window=="object"&&(Lu=window.navigator.platform==="MacIntel");var Qr=(ut={},ut[Lu?"Cmd-F":"Ctrl-F"]="findPersistent",ut["Cmd-G"]="findPersistent",ut["Ctrl-G"]="findPersistent",ut["Ctrl-Left"]="goSubwordLeft",ut["Ctrl-Right"]="goSubwordRight",ut["Alt-Left"]="goGroupLeft",ut["Alt-Right"]="goGroupRight",ut),j6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},U6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},B6=[Z(()=>import("./show-hint-61147df4.js").then(t=>t.s),["assets/show-hint-61147df4.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./matchbrackets-08ac6e5b.js").then(t=>t.m),["assets/matchbrackets-08ac6e5b.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/matchbrackets-8cf1c673.js","assets/codemirror-3e55eb16.js"]),Z(()=>import("./closebrackets-8dae6aa3.js").then(t=>t.c),["assets/closebrackets-8dae6aa3.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./brace-fold-6a775a2a.js").then(t=>t.b),["assets/brace-fold-6a775a2a.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./foldgutter-04638de0.js").then(t=>t.f),["assets/foldgutter-04638de0.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./lint-087d334a.js").then(t=>t.l),["assets/lint-087d334a.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./searchcursor-f596c4b5.js").then(t=>t.s),["assets/searchcursor-f596c4b5.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/searchcursor-c88732e4.js","assets/codemirror-3e55eb16.js"]),Z(()=>import("./jump-to-line-00f030bc.js").then(t=>t.j),["assets/jump-to-line-00f030bc.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/dialog-a3340072.js"]),Z(()=>import("./dialog-b108f254.js").then(t=>t.d),["assets/dialog-b108f254.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/dialog-a3340072.js","assets/codemirror-3e55eb16.js"]),Z(()=>import("./sublime-4489239f.js").then(t=>t.s),["assets/sublime-4489239f.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/searchcursor-c88732e4.js","assets/matchbrackets-8cf1c673.js"])];function Hr(t,e){return j6(this,void 0,void 0,function(){var n,r;return U6(this,function(i){switch(i.label){case 0:return[4,Z(()=>import("./codemirror-3e55eb16.js").then(o=>o.c),["assets/codemirror-3e55eb16.js","assets/index-f32c771c.js","assets/index-af3b87a2.css"])];case 1:return n=i.sent().default,r=(e==null?void 0:e.useCommonAddons)===!1?t:B6.concat(t),[4,Promise.all(r.map(function(o){return o}))];case 2:return i.sent(),[2,n]}})})}var z6=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yr=globalThis&&globalThis.__assign||function(){return yr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yr.apply(this,arguments)},G6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},Q6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},H6=new Co,$6=/^[a-zA-Z0-9_@(]$/,Qs=function(t){z6(e,t);function e(n){var r=t.call(this,n)||this;return r.editor=null,r.ignoreChangeEvent=!1,r._node=null,r.addonModules=function(){return[Z(()=>import("./comment-3e14e4d5.js").then(i=>i.c),["assets/comment-3e14e4d5.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./search-3880dafb.js").then(i=>i.s),["assets/search-3880dafb.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/searchcursor-c88732e4.js","assets/dialog-a3340072.js"]),Z(()=>import("./hint-35bc0266.js").then(i=>i.h),["assets/hint-35bc0266.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/show-hint-61147df4.js","assets/index-21441f59.js"]),Z(()=>import("./lint-0dc04469.js").then(i=>i.l),["assets/lint-0dc04469.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/index-21441f59.js"]),Z(()=>import("./info-2f09b005.js").then(i=>i.i),["assets/info-2f09b005.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/index-5b7876a6.js","assets/codemirror-3e55eb16.js","assets/SchemaReference-ef4fa07a.js","assets/forEachState-6d514dbd.js","assets/info-addon-ccdc82e5.js"]),Z(()=>import("./jump-1975be72.js").then(i=>i.j),["assets/jump-1975be72.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/SchemaReference-ef4fa07a.js","assets/index-5b7876a6.js","assets/forEachState-6d514dbd.js"]),Z(()=>import("./mode-55dee06f.js").then(i=>i.m),["assets/mode-55dee06f.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/index-21441f59.js"])]},r._onKeyUp=function(i,o){$6.test(o.key)&&r.editor&&r.editor.execCommand("autocomplete")},r._onEdit=function(){!r.ignoreChangeEvent&&r.editor&&(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue))},r._onHasCompletion=function(i,o){Io(i,o,r.props.onHintInformationRender)},r.cachedValue=n.value||"",r}return e.prototype.componentDidMount=function(){var n=this;this.initializeEditor().then(function(r){r&&(r.on("change",n._onEdit),r.on("keyup",n._onKeyUp),r.on("hasCompletion",n._onHasCompletion),r.on("beforeChange",n._onBeforeChange))}).catch(console.error)},e.prototype.componentDidUpdate=function(n){this.ignoreChangeEvent=!0;var r=!1;this.props.schema!==n.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,r=!0),this.props.externalFragments!==n.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,r=!0),r&&this.CodeMirror.signal(this.editor,"change",this.editor),this.props.value!==n.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1},e.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion))},e.prototype.render=function(){var n=this;return _("section",{className:"query-editor","aria-label":"Query Editor",ref:function(r){n._node=r}})},e.prototype.initializeEditor=function(){var n,r,i,o;return G6(this,void 0,void 0,function(){var a,s,u,c=this;return Q6(this,function(l){switch(l.label){case 0:return s=this,[4,Hr(this.addonModules())];case 1:return a=s.CodeMirror=l.sent(),u=this.editor=a(this._node,{value:(n=this.props.value)!==null&&n!==void 0?n:"",lineNumbers:!0,tabSize:2,foldGutter:{minFoldSize:4},mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,lint:{schema:this.props.schema,validationRules:(r=this.props.validationRules)!==null&&r!==void 0?r:null,externalFragments:(i=this.props)===null||i===void 0?void 0:i.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:(o=this.props)===null||o===void 0?void 0:o.externalFragments},info:{schema:this.props.schema,renderDescription:function(f){return H6.render(f)},onClick:function(f){return c.props.onClickReference&&c.props.onClickReference(f)}},jump:{schema:this.props.schema,onClick:function(f){return c.props.onClickReference&&c.props.onClickReference(f)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:yr(yr({"Cmd-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Ctrl-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Alt-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Shift-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Shift-Alt-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Cmd-Enter":function(){c.props.onRunQuery&&c.props.onRunQuery()},"Ctrl-Enter":function(){c.props.onRunQuery&&c.props.onRunQuery()},"Shift-Ctrl-C":function(){c.props.onCopyQuery&&c.props.onCopyQuery()},"Shift-Ctrl-P":function(){c.props.onPrettifyQuery&&c.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){c.props.onPrettifyQuery&&c.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){c.props.onMergeQuery&&c.props.onMergeQuery()}},Qr),{"Cmd-S":function(){c.props.onRunQuery},"Ctrl-S":function(){c.props.onRunQuery}})}),[2,u]}})})},e.prototype.getCodeMirror=function(){return this.editor},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e.prototype._onBeforeChange=function(n,r){if(r.origin==="paste"){var i=r.text.map(L6);r.update(r.from,r.to,i)}},e}(be.Component),J6=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gi=globalThis&&globalThis.__assign||function(){return Gi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Gi.apply(this,arguments)},W6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},Y6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Hs=function(t){J6(e,t);function e(n){var r=t.call(this,n)||this;return r.editor=null,r._node=null,r.ignoreChangeEvent=!1,r.addonModules=function(){return[Z(()=>import("./hint-2f6f4aaa.js").then(i=>i.h),["assets/hint-2f6f4aaa.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/index-5b7876a6.js","assets/forEachState-6d514dbd.js"]),Z(()=>import("./lint-d3c9ba5b.js").then(i=>i.l),["assets/lint-d3c9ba5b.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/index-5b7876a6.js"]),Z(()=>import("./mode-6f83539b.js").then(i=>i.m),["assets/mode-6f83539b.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/index-21441f59.js"])]},r._onKeyUp=function(i,o){var a=o.keyCode;r.editor&&(a>=65&&a<=90||!o.shiftKey&&a>=48&&a<=57||o.shiftKey&&a===189||o.shiftKey&&a===222)&&r.editor.execCommand("autocomplete")},r._onEdit=function(){r.editor&&(r.ignoreChangeEvent||(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue)))},r._onHasCompletion=function(i,o){Io(i,o,r.props.onHintInformationRender)},r.cachedValue=n.value||"",r}return e.prototype.componentDidMount=function(){var n=this;this.initializeEditor().then(function(r){r.on("change",n._onEdit),r.on("keyup",n._onKeyUp),r.on("hasCompletion",n._onHasCompletion)}).catch(console.error)},e.prototype.componentDidUpdate=function(n){if(this.editor&&this.CodeMirror){if(this.ignoreChangeEvent=!0,this.props.variableToType!==n.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==n.value&&this.props.value!==this.cachedValue){var r=this.props.value||"";this.cachedValue=r,this.editor.setValue(r)}this.ignoreChangeEvent=!1}},e.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},e.prototype.render=function(){var n=this;return _("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(r){n._node=r}})},e.prototype.initializeEditor=function(){return W6(this,void 0,void 0,function(){var n,r,i=this;return Y6(this,function(o){switch(o.label){case 0:return n=this,[4,Hr(this.addonModules())];case 1:return n.CodeMirror=o.sent(),r=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Gi({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Qr)}),[2,r]}})})},e.prototype.getCodeMirror=function(){return this.editor},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e}(be.Component),Z6=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qi=globalThis&&globalThis.__assign||function(){return Qi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Qi.apply(this,arguments)},X6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},K6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},$s=function(t){Z6(e,t);function e(n){var r=t.call(this,n)||this;return r.editor=null,r._node=null,r.ignoreChangeEvent=!1,r.addonModules=function(){return[Z(()=>import("./javascript-1746d201.js").then(i=>i.j),["assets/javascript-1746d201.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"])]},r._onKeyUp=function(i,o){var a=o.keyCode;r.editor&&(a>=65&&a<=90||!o.shiftKey&&a>=48&&a<=57||o.shiftKey&&a===189||o.shiftKey&&a===222)&&r.editor.execCommand("autocomplete")},r._onEdit=function(){r.editor&&(r.ignoreChangeEvent||(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue)))},r._onHasCompletion=function(i,o){Io(i,o,r.props.onHintInformationRender)},r.cachedValue=n.value||"",r}return e.prototype.componentDidMount=function(){var n=this;this.initializeEditor().then(function(r){r.on("change",n._onEdit),r.on("keyup",n._onKeyUp),r.on("hasCompletion",n._onHasCompletion)}).catch(console.error)},e.prototype.componentDidUpdate=function(n){if(this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==n.value&&this.props.value!==this.cachedValue){var r=this.props.value||"";this.cachedValue=r,this.editor.setValue(r)}this.ignoreChangeEvent=!1}},e.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},e.prototype.render=function(){var n=this;return _("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(r){n._node=r}})},e.prototype.initializeEditor=function(){return X6(this,void 0,void 0,function(){var n,r,i=this;return K6(this,function(o){switch(o.label){case 0:return n=this,[4,Hr(this.addonModules())];case 1:return n.CodeMirror=o.sent(),r=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Qi({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Qr)}),[2,r]}})})},e.prototype.getCodeMirror=function(){return this.editor},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e}(be.Component),eJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tJ=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},nJ=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Js=function(t){eJ(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.viewer=null,n._node=null,n.allAddons=function(){return[Z(()=>import("./foldgutter-04638de0.js").then(r=>r.f),["assets/foldgutter-04638de0.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./brace-fold-6a775a2a.js").then(r=>r.b),["assets/brace-fold-6a775a2a.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"]),Z(()=>import("./dialog-b108f254.js").then(r=>r.d),["assets/dialog-b108f254.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/dialog-a3340072.js","assets/codemirror-3e55eb16.js"]),Z(()=>import("./search-3880dafb.js").then(r=>r.s),["assets/search-3880dafb.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/searchcursor-c88732e4.js","assets/dialog-a3340072.js"]),Z(()=>import("./searchcursor-f596c4b5.js").then(r=>r.s),["assets/searchcursor-f596c4b5.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/searchcursor-c88732e4.js","assets/codemirror-3e55eb16.js"]),Z(()=>import("./jump-to-line-00f030bc.js").then(r=>r.j),["assets/jump-to-line-00f030bc.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/dialog-a3340072.js"]),Z(()=>import("./sublime-4489239f.js").then(r=>r.s),["assets/sublime-4489239f.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/searchcursor-c88732e4.js","assets/matchbrackets-8cf1c673.js"]),Z(()=>import("./mode-0a6ca237.js").then(r=>r.m),["assets/mode-0a6ca237.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js","assets/index-21441f59.js"])]},n}return e.prototype.componentDidMount=function(){this.initializeEditor()},e.prototype.shouldComponentUpdate=function(n){return this.props.value!==n.value},e.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},e.prototype.componentWillUnmount=function(){this.viewer=null},e.prototype.render=function(){var n=this;return _("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(r){r&&(n.props.registerRef(r),n._node=r)}})},e.prototype.initializeEditor=function(){return tJ(this,void 0,void 0,function(){var n,r,i,o;return nJ(this,function(a){switch(a.label){case 0:return[4,Hr(this.allAddons(),{useCommonAddons:!1})];case 1:return n=a.sent(),r=this.props.ResultsTooltip,i=this.props.ImagePreview,r||i?[4,Z(()=>import("./info-addon-ccdc82e5.js").then(s=>s.i),["assets/info-addon-ccdc82e5.js","assets/index-f32c771c.js","assets/index-af3b87a2.css","assets/codemirror-3e55eb16.js"])]:[3,3];case 2:a.sent(),o=document.createElement("div"),n.registerHelper("info","graphql-results",function(s,u,c,l){var f=[];return r&&f.push(_(r,{pos:l})),i&&typeof i.shouldRender=="function"&&i.shouldRender(s)&&f.push(_(i,{token:s})),f.length?(jo.render(_("div",{children:f}),o),o):(jo.unmountComponentAtNode(o),null)}),a.label=3;case 3:return this.viewer=n(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:!!(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Qr}),[2]}})})},e.prototype.getCodeMirror=function(){return this.viewer},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e}(be.Component);function ft(t){var e=t.onClick?t.onClick:function(){return null};return Hi(t.type,e)}function Hi(t,e){return t instanceof G?V("span",{children:[Hi(t.ofType,e),"!"]}):t instanceof me?V("span",{children:["[",Hi(t.ofType,e),"]"]}):_("a",{className:"type-name",onClick:function(n){n.preventDefault(),e(t,n)},href:"#",children:t==null?void 0:t.name})}var rJ=function(t){return t?ie(t):""};function qu(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?V("span",{children:[" = ",_("span",{className:"arg-default-value",children:rJ(Ht(e.defaultValue,e.type))})]}):null}function br(t){var e=t.arg,n=t.onClickType,r=t.showDefaultValue;return V("span",{className:"arg",children:[_("span",{className:"arg-name",children:e.name}),": ",_(ft,{type:e.type,onClick:n}),r!==!1&&_(qu,{field:e})]})}function iJ(t){var e=t.directive;return V("span",{className:"doc-category-item",id:e.name.value,children:["@",e.name.value]})}var oJ=new Co({breaks:!0,linkify:!0});function Le(t){var e=t.markdown,n=t.className;return e?_("div",{className:n,dangerouslySetInnerHTML:{__html:oJ.render(e)}}):_("div",{})}var aJ=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function sJ(t){var e=t.field,n=t.onClickType,r=aJ(be.useState(!1),2),i=r[0],o=r[1],a,s;if(e&&"args"in e&&e.args.length>0){a=V("div",{id:"doc-args",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"arguments"}),e.args.filter(function(l){return!l.deprecationReason}).map(function(l){return V("div",{className:"doc-category-item",children:[_("div",{children:_(br,{arg:l,onClickType:n})}),_(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&_(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},l.name)})]});var u=e.args.filter(function(l){return!!l.deprecationReason});u.length>0&&(s=V("div",{id:"doc-deprecated-args",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated arguments"}),i?u.map(function(l,f){return V("div",{children:[_("div",{children:_(br,{arg:l,onClickType:n})}),_(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&_(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},f)}):_("button",{className:"show-btn",onClick:function(){return o(!i)},children:"Show deprecated arguments..."})]}))}var c;return e&&e.astNode&&e.astNode.directives&&e.astNode.directives.length>0&&(c=V("div",{id:"doc-directives",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"directives"}),e.astNode.directives.map(function(l){return _("div",{className:"doc-category-item",children:_("div",{children:_(iJ,{directive:l})})},l.name.value)})]})),V("div",{children:[_(Le,{className:"doc-type-description",markdown:(e==null?void 0:e.description)||"No Description"}),e&&"deprecationReason"in e&&_(Le,{className:"doc-deprecation",markdown:e==null?void 0:e.deprecationReason}),V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"type"}),_(ft,{type:e==null?void 0:e.type,onClick:n})]}),a,c,s]})}function cJ(t){var e=t.schema,n=t.onClickType,r=e.getQueryType(),i=e.getMutationType&&e.getMutationType(),o=e.getSubscriptionType&&e.getSubscriptionType();return V("div",{children:[_(Le,{className:"doc-type-description",markdown:e.description||"A GraphQL schema provides a root type for each kind of operation."}),V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"root types"}),V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"query"}),": ",_(ft,{type:r,onClick:n})]}),i&&V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"mutation"}),": ",_(ft,{type:i,onClick:n})]}),o&&V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"subscription"}),": ",_(ft,{type:o,onClick:n})]})]})]})}function tt(t,e){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,e.apply(r,i)},t)}}var uJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lJ=function(t){uJ(e,t);function e(n){var r=t.call(this,n)||this;return r.handleChange=function(i){var o=i.currentTarget.value;r.setState({value:o}),r.debouncedOnSearch(o)},r.handleClear=function(){r.setState({value:""}),r.props.onSearch("")},r.state={value:n.value||""},r.debouncedOnSearch=tt(200,r.props.onSearch),r}return e.prototype.render=function(){return V("label",{className:"search-box",children:[_("div",{className:"search-box-icon","aria-hidden":"true",children:"⚲"}),_("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&_("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input",children:"✕"})]})},e}(be.Component),fJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pJ=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dJ=function(t){fJ(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.shouldComponentUpdate=function(n){return this.props.schema!==n.schema||this.props.searchValue!==n.searchValue},e.prototype.render=function(){var n,r,i=this.props.searchValue,o=this.props.withinType,a=this.props.schema,s=this.props.onClickType,u=this.props.onClickField,c=[],l=[],f=[],d=a.getTypeMap(),h=Object.keys(d);o&&(h=h.filter(function(k){return k!==o.name}),h.unshift(o.name));var p=function(k){if(c.length+l.length+f.length>=100)return"break";var D=d[k];if(o!==D&&vi(k,i)&&l.push(_("div",{className:"doc-category-item",children:_(ft,{type:D,onClick:s})},k)),D&&"getFields"in D){var N=D.getFields();Object.keys(N).forEach(function(x){var I=N[x],P;if(!vi(x,i))if("args"in I&&I.args.length){if(P=I.args.filter(function(j){return vi(j.name,i)}),P.length===0)return}else return;var z=V("div",{className:"doc-category-item",children:[o!==D&&[_(ft,{type:D,onClick:s},"type"),"."],_("a",{className:"field-name",onClick:function(j){return u(I,D,j)},children:I.name}),P&&["(",_("span",{children:P.map(function(j){return _(br,{arg:j,onClickType:s,showDefaultValue:!1},j.name)})},"args"),")"]]},k+"."+x);o===D?c.push(z):f.push(z)})}};try{for(var m=pJ(h),y=m.next();!y.done;y=m.next()){var b=y.value,g=p(b);if(g==="break")break}}catch(k){n={error:k}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return c.length+l.length+f.length===0?_("span",{className:"doc-alert-text",children:"No results found."}):o&&l.length+f.length>0?V("div",{children:[c,V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"other results"}),l,f]})]}):V("div",{className:"doc-search-items",children:[c,l,f]})},e}(be.Component);function vi(t,e){try{var n=e.replace(/[^_0-9A-Za-z]/g,function(r){return"\\"+r});return t.search(new RegExp(n,"i"))!==-1}catch(r){return t.toLowerCase().indexOf(e.toLowerCase())!==-1}}var hJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vJ=function(t){hJ(e,t);function e(n){var r=t.call(this,n)||this;return r.handleShowDeprecated=function(){return r.setState({showDeprecated:!0})},r.state={showDeprecated:!1},r}return e.prototype.shouldComponentUpdate=function(n,r){return this.props.type!==n.type||this.props.schema!==n.schema||this.state.showDeprecated!==r.showDeprecated},e.prototype.render=function(){var n=this.props.schema,r=this.props.type,i=this.props.onClickType,o=this.props.onClickField,a=null,s=[];r instanceof Ar?(a="possible types",s=n.getPossibleTypes(r)):r instanceof Dr?(a="implementations",s=n.getPossibleTypes(r)):r instanceof Me&&(a="implements",s=r.getInterfaces());var u;s&&s.length>0&&(u=V("div",{id:"doc-types",className:"doc-category",children:[_("div",{className:"doc-category-title",children:a}),s.map(function(g){return _("div",{className:"doc-category-item",children:_(ft,{type:g,onClick:i})},g.name)})]}));var c,l;if(r&&"getFields"in r){var f=r.getFields(),d=Object.keys(f).map(function(g){return f[g]});c=V("div",{id:"doc-fields",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"fields"}),d.filter(function(g){return!g.deprecationReason}).map(function(g){return _(Ws,{type:r,field:g,onClickType:i,onClickField:o},g.name)})]});var h=d.filter(function(g){return!!g.deprecationReason});h.length>0&&(l=V("div",{id:"doc-deprecated-fields",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated fields"}),this.state.showDeprecated?h.map(function(g){return _(Ws,{type:r,field:g,onClickType:i,onClickField:o},g.name)}):_("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated fields..."})]}))}var p,m;if(r instanceof tn){var y=r.getValues();p=V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"values"}),y.filter(function(g){return!g.deprecationReason}).map(function(g){return _(Ys,{value:g},g.name)})]});var b=y.filter(function(g){return!!g.deprecationReason});b.length>0&&(m=V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated values"}),this.state.showDeprecated?b.map(function(g){return _(Ys,{value:g},g.name)}):_("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated values..."})]}))}return V("div",{children:[_(Le,{className:"doc-type-description",markdown:"description"in r&&r.description||"No Description"}),r instanceof Me&&u,c,l,p,m,!(r instanceof Me)&&u]})},e}(be.Component);function Ws(t){var e=t.type,n=t.field,r=t.onClickType,i=t.onClickField;return V("div",{className:"doc-category-item",children:[_("a",{className:"field-name",onClick:function(o){return i(n,e,o)},children:n.name}),"args"in n&&n.args&&n.args.length>0&&["(",_("span",{children:n.args.filter(function(o){return!o.deprecationReason}).map(function(o){return _(br,{arg:o,onClickType:r},o.name)})},"args"),")"],": ",_(ft,{type:n.type,onClick:r}),_(qu,{field:n}),n.description&&_(Le,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&_(Le,{className:"doc-deprecation",markdown:n.deprecationReason})]})}function Ys(t){var e=t.value;return V("div",{className:"doc-category-item",children:[_("div",{className:"enum-value",children:e.name}),_(Le,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&_(Le,{className:"doc-deprecation",markdown:e.deprecationReason})]})}var mJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_r=globalThis&&globalThis.__assign||function(){return _r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_r.apply(this,arguments)},Zs={name:"Schema",title:"Documentation Explorer"},gJ=function(t){mJ(e,t);function e(n){var r=t.call(this,n)||this;return r.handleNavBackClick=function(){r.state.navStack.length>1&&r.setState({navStack:r.state.navStack.slice(0,-1)})},r.handleClickType=function(i){r.showDoc(i)},r.handleClickField=function(i){r.showDoc(i)},r.handleSearch=function(i){r.showSearch(i)},r.state={navStack:[Zs]},r}return e.prototype.shouldComponentUpdate=function(n,r){return this.props.schema!==n.schema||this.state.navStack!==r.navStack||this.props.schemaErrors!==n.schemaErrors},e.prototype.render=function(){var n=this.props,r=n.schema,i=n.schemaErrors,o=this.state.navStack,a=o[o.length-1],s;i?s=_("div",{className:"error-container",children:"Error fetching schema"}):r===void 0?s=_("div",{className:"spinner-container",children:_("div",{className:"spinner"})}):r?a.search?s=_(dJ,{searchValue:a.search,withinType:a.def,schema:r,onClickType:this.handleClickType,onClickField:this.handleClickField}):o.length===1?s=_(cJ,{schema:r,onClickType:this.handleClickType}):wn(a.def)?s=_(vJ,{schema:r,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):s=_(sJ,{field:a.def,onClickType:this.handleClickType}):s=_("div",{className:"error-container",children:"No Schema Available"});var u=o.length===1||wn(a.def)&&"getFields"in a.def,c;return o.length>1&&(c=o[o.length-2].name),V("section",{className:"doc-explorer","aria-label":"Documentation Explorer",children:[V("div",{className:"doc-explorer-title-bar",children:[c&&_("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+c,children:c}),_("div",{className:"doc-explorer-title",children:a.title||a.name}),_("div",{className:"doc-explorer-rhs",children:this.props.children})]}),V("div",{className:"doc-explorer-contents",children:[u&&_(lJ,{value:a.search,placeholder:"Search "+a.name+"...",onSearch:this.handleSearch}),s]})]},a.name)},e.prototype.showDoc=function(n){var r=this.state.navStack,i=r[r.length-1];i.def!==n&&this.setState({navStack:r.concat([{name:n.name,def:n}])})},e.prototype.showDocForReference=function(n){n&&n.kind==="Type"?this.showDoc(n.type):n.kind==="Field"?this.showDoc(n.field):n.kind==="Argument"&&n.field?this.showDoc(n.field):n.kind==="EnumValue"&&n.type&&this.showDoc(n.type)},e.prototype.showSearch=function(n){var r=this.state.navStack.slice(),i=r[r.length-1];r[r.length-1]=_r(_r({},i),{search:n}),this.setState({navStack:r})},e.prototype.reset=function(){this.setState({navStack:[Zs]})},e}(be.Component),yJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bJ=function(t){yJ(e,t);function e(n){var r=t.call(this,n)||this;return r.state={editable:!1},r.editField=null,r}return e.prototype.render=function(){var n=this,r,i=this.props.label||this.props.operationName||((r=this.props.query)===null||r===void 0?void 0:r.split(`
|
|
181
|
-
`).filter(function(a){return a.indexOf("#")!==0}).join("")),o=this.props.favorite?"★":"☆";return V("li",{className:this.state.editable?"editable":void 0,children:[this.state.editable?_("input",{type:"text",defaultValue:this.props.label,ref:function(a){n.editField=a},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):_("button",{className:"history-label",onClick:this.handleClick.bind(this),children:i}),_("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label",children:"✎"}),_("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite",children:o})]})},e.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},e.prototype.handleStarClick=function(n){n.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},e.prototype.handleFieldBlur=function(n){n.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,n.target.value,this.props.favorite)},e.prototype.handleFieldKeyDown=function(n){n.keyCode===13&&(n.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,n.currentTarget.value,this.props.favorite))},e.prototype.handleEditClick=function(n){var r=this;n.stopPropagation(),this.setState({editable:!0},function(){r.editField&&r.editField.focus()})},e}(be.Component),_J=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},EJ=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_J(arguments[e]));return t},Xs=function(){function t(e,n,r){r===void 0&&(r=null),this.key=e,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}return Object.defineProperty(t.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return this.items.some(function(n){return n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName})},t.prototype.edit=function(e){var n=this.items.findIndex(function(r){return r.query===e.query&&r.variables===e.variables&&r.headers===e.headers&&r.operationName===e.operationName});n!==-1&&(this.items.splice(n,1,e),this.save())},t.prototype.delete=function(e){var n=this.items.findIndex(function(r){return r.query===e.query&&r.variables===e.variables&&r.headers===e.headers&&r.operationName===e.operationName});n!==-1&&(this.items.splice(n,1),this.save())},t.prototype.fetchRecent=function(){return this.items[this.items.length-1]},t.prototype.fetchAll=function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]},t.prototype.push=function(e){var n,r=EJ(this.items,[e]);this.maxSize&&r.length>this.maxSize&&r.shift();for(var i=0;i<5;i++){var o=this.storage.set(this.key,JSON.stringify((n={},n[this.key]=r,n)));if(!o||!o.error)this.items=r;else if(o.isQuotaError&&this.maxSize)r.shift();else return}},t.prototype.save=function(){var e;this.storage.set(this.key,JSON.stringify((e={},e[this.key]=this.items,e)))},t}(),Er=globalThis&&globalThis.__assign||function(){return Er=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Er.apply(this,arguments)},TJ=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Ks=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(TJ(arguments[e]));return t},kJ=1e5,Pu=function(){function t(e,n){var r=this;this.storage=e,this.maxHistoryLength=n,this.shouldSaveQuery=function(i,o,a,s){if(!i)return!1;try{It(i)}catch(u){return!1}return i.length>kJ?!1:s?!(JSON.stringify(i)===JSON.stringify(s.query)&&(JSON.stringify(o)===JSON.stringify(s.variables)&&(JSON.stringify(a)===JSON.stringify(s.headers)||a&&!s.headers)||o&&!s.variables)):!0},this.fetchAllQueries=function(){var i=r.history.fetchAll(),o=r.favorite.fetchAll();return i.concat(o)},this.updateHistory=function(i,o,a,s){if(r.shouldSaveQuery(i,o,a,r.history.fetchRecent())){r.history.push({query:i,variables:o,headers:a,operationName:s});var u=r.history.items,c=r.favorite.items;r.queries=u.concat(c)}},this.toggleFavorite=function(i,o,a,s,u,c){var l={query:i,variables:o,headers:a,operationName:s,label:u};r.favorite.contains(l)?c&&(l.favorite=!1,r.favorite.delete(l)):(l.favorite=!0,r.favorite.push(l)),r.queries=Ks(r.history.items,r.favorite.items)},this.editLabel=function(i,o,a,s,u,c){var l={query:i,variables:o,headers:a,operationName:s,label:u};c?r.favorite.edit(Er(Er({},l),{favorite:c})):r.history.edit(l),r.queries=Ks(r.history.items,r.favorite.items)},this.history=new Xs("queries",this.storage,this.maxHistoryLength),this.favorite=new Xs("favorites",this.storage,null),this.queries=this.fetchAllQueries()}return t}(),wJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$i=globalThis&&globalThis.__assign||function(){return $i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$i.apply(this,arguments)},SJ=function(t){wJ(e,t);function e(n){var r=t.call(this,n)||this;r.onUpdateHistory=function(o,a,s,u){r.historyStore.updateHistory(o,a,s,u),r.setState({queries:r.historyStore.queries})},r.onHandleEditLabel=function(o,a,s,u,c,l){r.historyStore.editLabel(o,a,s,u,c,l),r.setState({queries:r.historyStore.queries})},r.onToggleFavorite=function(o,a,s,u,c,l){r.historyStore.toggleFavorite(o,a,s,u,c,l),r.setState({queries:r.historyStore.queries})},r.historyStore=new Pu(r.props.storage,r.props.maxHistoryLength);var i=r.historyStore.queries;return r.state={queries:i},r}return e.prototype.render=function(){var n=this,r=this.state.queries.slice().reverse(),i=r.map(function(o,a){return _(bJ,{...$i({handleEditLabel:n.onHandleEditLabel,handleToggleFavorite:n.onToggleFavorite,key:a+":"+(o.label||o.query),onSelect:n.props.onSelectQuery},o)})});return V("section",{"aria-label":"History",children:[V("div",{className:"history-title-bar",children:[_("div",{className:"history-title",children:"History"}),_("div",{className:"doc-explorer-rhs",children:this.props.children})]}),_("ul",{className:"history-contents",children:i})]})},e}(be.Component),xJ=function(){function t(){this.sizes=[]}return t.prototype.updateSizes=function(e){var n=this;e.forEach(function(r,i){if(r){var o=r.getClientHeight();if(i<=n.sizes.length&&o!==n.sizes[i]){var a=r.getCodeMirror();a&&a.setSize(null,null)}n.sizes[i]=o}})},t}();function NJ(t,e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t.length!==0}var DJ=function(){function t(e){this.storage=e||(typeof window!="undefined"?window.localStorage:null)}return t.prototype.get=function(e){if(this.storage){var n=this.storage.getItem("graphiql:"+e);if(n==="null"||n==="undefined")return this.storage.removeItem("graphiql:"+e),null;if(n)return n}return null},t.prototype.set=function(e,n){var r=!1,i=null;if(this.storage){var o="graphiql:"+e;if(n)try{this.storage.setItem(o,n)}catch(a){i=a,r=NJ(this.storage,a)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}},t}();function ec(t,e,n){if(!(!n||n.length<1)){var r=n.map(function(a){return a.name&&a.name.value});if(e&&r.indexOf(e)!==-1)return e;if(e&&t){var i=t.map(function(a){return a.name&&a.name.value}),o=i.indexOf(e);if(o!==-1&&o<r.length)return r[o]}return r[0]}}function mi(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function AJ(t,e,n){var r=[];if(!t||!e)return{insertions:r,result:e};var i;try{i=It(e)}catch(s){return{insertions:r,result:e}}var o=n||OJ,a=new Rr(t);return Ye(i,{leave:function(s){a.leave(s)},enter:function(s){if(a.enter(s),s.kind==="Field"&&!s.selectionSet){var u=a.getType(),c=Mu(RJ(u),o);if(c&&s.loc){var l=IJ(e,s.loc.start);r.push({index:s.loc.end,string:" "+ie(c).replace(/\n/g,`
|
|
182
|
-
`+l)})}}}}),{insertions:r,result:CJ(e,r)}}function OJ(t){if(!("getFields"in t))return[];var e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];var n=[];return Object.keys(e).forEach(function(r){dt(e[r].type)&&n.push(r)}),n}function Mu(t,e){var n=Ne(t);if(!(!t||dt(t))){var r=e(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:v.SELECTION_SET,selections:r.map(function(i){var o=n.getFields()[i],a=o?o.type:null;return{kind:v.FIELD,name:{kind:v.NAME,value:i},selectionSet:Mu(a,e)}})}}}function CJ(t,e){if(e.length===0)return t;var n="",r=0;return e.forEach(function(i){var o=i.index,a=i.string;n+=t.slice(r,o)+a,r=o}),n+=t.slice(r),n}function IJ(t,e){for(var n=e,r=e;n;){var i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(r=n)}return t.substring(n,r)}function RJ(t){if(t)return t}function Yn(t){for(var e=0,n=t;n.offsetParent;)e+=n.offsetLeft,n=n.offsetParent;return e}function tc(t){for(var e=0,n=t;n.offsetParent;)e+=n.offsetTop,n=n.offsetParent;return e}var Zt=globalThis&&globalThis.__assign||function(){return Zt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Zt.apply(this,arguments)},Ro=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},FJ=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Vu=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(FJ(arguments[e]));return t};function LJ(t,e){var n,r,i=new Map,o=[];try{for(var a=Ro(t),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.kind==="Field"){var c=e(u),l=i.get(c);if(u.directives&&u.directives.length){var f=Zt({},u);o.push(f)}else if(l&&l.selectionSet&&u.selectionSet)l.selectionSet.selections=Vu(l.selectionSet.selections,u.selectionSet.selections);else if(!l){var f=Zt({},u);i.set(c,f),o.push(f)}}else o.push(u)}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function ju(t,e,n){var r,i,o,a=n?Ne(n).name:null,s=[],u=[];try{for(var c=Ro(e),l=c.next();!l.done;l=c.next()){var f=l.value;if(f.kind==="FragmentSpread"){var d=f.name.value;if(!f.directives||f.directives.length===0){if(u.indexOf(d)>=0)continue;u.push(d)}var h=t[f.name.value];if(h){var p=h.typeCondition,m=h.directives,y=h.selectionSet;f={kind:v.INLINE_FRAGMENT,typeCondition:p,directives:m,selectionSet:y}}}if(f.kind===v.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){var b=f.typeCondition?f.typeCondition.name.value:null;if(!b||b===a){s.push.apply(s,Vu(ju(t,f.selectionSet.selections,n)));continue}}s.push(f)}}catch(g){r={error:g}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return s}function qJ(t,e){var n,r,i=e?new Rr(e):null,o=Object.create(null);try{for(var a=Ro(t.definitions),s=a.next();!s.done;s=a.next()){var u=s.value;u.kind===v.FRAGMENT_DEFINITION&&(o[u.name.value]=u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var c={SelectionSet:function(l){var f=i?i.getParentType():null,d=l.selections;return d=ju(o,d,f),d=LJ(d,function(h){return h.alias?h.alias.value:h.name.value}),Zt(Zt({},l),{selections:d})},FragmentDefinition:function(){return null}};return Ye(t,i?uo(i,c):c)}var PJ="IntrospectionQuery",MJ=PJ;/*!
|
|
183
|
-
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
184
|
-
*
|
|
185
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
186
|
-
* Released under the MIT License.
|
|
187
|
-
*/var VJ=function(e){return typeof e=="object"?e===null:typeof e!="function"};/*!
|
|
188
|
-
* isobject <https://github.com/jonschlinkert/isobject>
|
|
189
|
-
*
|
|
190
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
191
|
-
* Released under the MIT License.
|
|
192
|
-
*/var jJ=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*!
|
|
193
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
194
|
-
*
|
|
195
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
196
|
-
* Released under the MIT License.
|
|
197
|
-
*/var UJ=jJ;function nc(t){return UJ(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}var BJ=function(e){var n,r;return!(nc(e)===!1||(n=e.constructor,typeof n!="function")||(r=n.prototype,nc(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*!
|
|
198
|
-
* set-value <https://github.com/jonschlinkert/set-value>
|
|
199
|
-
*
|
|
200
|
-
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
201
|
-
* Released under the MIT License.
|
|
202
|
-
*/const{deleteProperty:zJ}=Reflect,GJ=VJ,rc=BJ,ic=t=>typeof t=="object"&&t!==null||typeof t=="function",QJ=t=>t==="__proto__"||t==="constructor"||t==="prototype",Fo=t=>{if(!GJ(t))throw new TypeError("Object keys must be strings or symbols");if(QJ(t))throw new Error(`Cannot set unsafe key: "${t}"`)},HJ=t=>Array.isArray(t)?t.flat().map(String).join(","):t,$J=(t,e)=>{if(typeof t!="string"||!e)return t;let n=t+";";return e.arrays!==void 0&&(n+=`arrays=${e.arrays};`),e.separator!==void 0&&(n+=`separator=${e.separator};`),e.split!==void 0&&(n+=`split=${e.split};`),e.merge!==void 0&&(n+=`merge=${e.merge};`),e.preservePaths!==void 0&&(n+=`preservePaths=${e.preservePaths};`),n},JJ=(t,e,n)=>{const r=HJ(e?$J(t,e):t);Fo(r);const i=qt.cache.get(r)||n();return qt.cache.set(r,i),i},WJ=(t,e={})=>{const n=e.separator||".",r=n==="/"?!1:e.preservePaths;if(typeof t=="string"&&r!==!1&&/\//.test(t))return[t];const i=[];let o="";const a=s=>{let u;s.trim()!==""&&Number.isInteger(u=Number(s))?i.push(u):i.push(s)};for(let s=0;s<t.length;s++){const u=t[s];if(u==="\\"){o+=t[++s];continue}if(u===n){a(o),o="";continue}o+=u}return o&&a(o),i},Uu=(t,e)=>e&&typeof e.split=="function"?e.split(t):typeof t=="symbol"?[t]:Array.isArray(t)?t:JJ(t,e,()=>WJ(t,e)),YJ=(t,e,n,r)=>{if(Fo(e),n===void 0)zJ(t,e);else if(r&&r.merge){const i=r.merge==="function"?r.merge:Object.assign;i&&rc(t[e])&&rc(n)?t[e]=i(t[e],n):t[e]=n}else t[e]=n;return t},qt=(t,e,n,r)=>{if(!e||!ic(t))return t;const i=Uu(e,r);let o=t;for(let a=0;a<i.length;a++){const s=i[a],u=i[a+1];if(Fo(s),u===void 0){YJ(o,s,n,r);break}if(typeof u=="number"&&!Array.isArray(o[s])){o=o[s]=[];continue}ic(o[s])||(o[s]={}),o=o[s]}return t};qt.split=Uu;qt.cache=new Map;qt.clear=()=>{qt.cache=new Map};var ZJ=qt;const XJ=kr(ZJ);var Tr=globalThis&&globalThis.__assign||function(){return Tr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Tr.apply(this,arguments)};function KJ(t){return _("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(e){e.stopPropagation(),t.onClick()}})}function e8(t){return V("button",{...Tr({},t.tabProps,{role:"tab",type:"button","aria-selected":t.isActive,title:t.title,className:"tab"+(t.isActive?" active":""),onClick:t.onSelect}),children:[t.title,t.isCloseable?_(KJ,{onClick:function(){return t.onClose()}}):null]})}function t8(t){return _("button",{onClick:t.onClick,className:"tab-add",title:"Create new tab",children:_("span",{children:"+"})})}function n8(t){return _("div",{...Tr({role:"tablist",className:"tabs"},t.tabsProps),children:t.children})}function r8(t){var e,n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/,r=n.exec(t);return(e=r==null?void 0:r[2])!==null&&e!==void 0?e:"<untitled>"}function Pt(t){var e,n,r;return[(e=t.query)!==null&&e!==void 0?e:"",(n=t.variables)!==null&&n!==void 0?n:"",(r=t.headers)!==null&&r!==void 0?r:""].join("|")}function Ji(){var t=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}var i8=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=globalThis&&globalThis.__assign||function(){return U=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},U.apply(this,arguments)},gi=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},yi=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},o8=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},a8=globalThis&&globalThis.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof bn=="function"?bn(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(a){return new Promise(function(s,u){a=t[o](a),i(s,u,a.done,a.value)})}}function i(o,a,s,u){Promise.resolve(u).then(function(c){o({value:c,done:s})},a)}},s8=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Bu=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s8(arguments[e]));return t},bn=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},oc=350,c8=parseInt(be.version.slice(0,2),10);if(c8<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(`
|
|
203
|
-
`));var ac=function(t){return JSON.stringify(t,null,2)},u8=function(t){return U(U({},t),{message:t.message,stack:t.stack})},sc=function(t){return t instanceof C?t.toString():t instanceof Error?u8(t):t},l8=function(t){i8(e,t);function e(n){var r,i,o,a,s,u,c,l,f,d,h,p=t.call(this,n)||this;if(p._editorQueryID=0,p.safeSetState=function(O,M){p.componentIsMounted&&p.setState(O,M)},p.persistTabsState=function(){var O,M;p.props.tabs&&(p._storage.set("tabState",JSON.stringify(p.state.tabs,function(W,Y){return W==="response"||p.state.shouldPersistHeaders&&W==="headers"?void 0:Y})),typeof p.props.tabs=="object"&&((M=(O=p.props.tabs).onTabChange)===null||M===void 0||M.call(O,p.state.tabs)))},p.makeHandleOnSelectTab=function(O){return function(){p.handleStopQuery(),p.setState(function(M){return g8(O,M)},function(){p.persistTabsState(),p.state.query&&p.handleEditQuery(p.state.query)})}},p.makeHandleOnCloseTab=function(O){return function(){p.state.tabs.activeTabIndex===O&&p.handleStopQuery(),p.setState(function(M){return y8(O,M)},p.persistTabsState)}},p.handleOnAddTab=function(){p.setState(function(O){return b8(O)},p.persistTabsState)},p.handleClickReference=function(O){p.setState({docExplorerOpen:!0},function(){p.docExplorerComponent&&p.docExplorerComponent.showDocForReference(O)}),p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen))},p.handleRunQuery=function(O){return gi(p,void 0,void 0,function(){var M,W,Y,de,ye,ee,Ee,Qe,He,et=this;return yi(this,function(vt){switch(vt.label){case 0:this._editorQueryID++,M=this._editorQueryID,W=this.autoCompleteLeafs()||this.state.query,Y=this.state.variables,de=this.state.headers,ye=this.state.shouldPersistHeaders,ee=this.state.operationName,O&&O!==ee&&(ee=O,this.handleEditOperationName(ee)),vt.label=1;case 1:return vt.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:ee}),this._storage.set("operationName",ee),this._queryHistory?this._queryHistory.onUpdateHistory(W,Y,de,ee):this._historyStore&&this._historyStore.updateHistory(W,Y,de,ee),Ee={data:{}},[4,this._fetchQuery(W,Y,de,ee,ye,function(ct){var $r,Lo;if(M===et._editorQueryID){var cn=Array.isArray(ct)?ct:!1;if(!cn&&typeof ct!="string"&&ct!==null&&"hasNext"in ct&&(cn=[ct]),cn){var Mn={data:Ee.data},qo=Bu((Ee==null?void 0:Ee.errors)||[],cn.map(function(mt){return mt.errors}).flat().filter(Boolean));qo.length&&(Mn.errors=qo);try{for(var Vn=bn(cn),un=Vn.next();!un.done;un=Vn.next()){var jt=un.value,Po=jt.path,Jr=jt.data,A8=jt.errors,Ju=o8(jt,["path","data","errors"]);if(Po){if(!Jr)throw new Error("Expected part to contain a data property, but got "+jt);XJ(Mn.data,Po,Jr,{merge:!0})}else Jr&&(Mn.data=jt.data);Ee=U(U({},Mn),Ju)}}catch(mt){$r={error:mt}}finally{try{un&&!un.done&&(Lo=Vn.return)&&Lo.call(Vn)}finally{if($r)throw $r.error}}et.setState({isWaitingForResponse:!1,response:e.formatResult(Ee)})}else{var Mo=e.formatResult(ct);et.setState(function(mt){return U(U({},mt),{tabs:U(U({},mt.tabs),{tabs:mt.tabs.tabs.map(function(Vo,Wu){return Wu!==mt.tabs.activeTabIndex?Vo:U(U({},Vo),{response:Mo})})}),isWaitingForResponse:!1,response:Mo})},et.persistTabsState)}}})];case 2:return Qe=vt.sent(),this.setState({subscription:Qe}),[3,4];case 3:return He=vt.sent(),this.setState({isWaitingForResponse:!1,response:He.message}),[3,4];case 4:return[2]}})})},p.handleStopQuery=function(){var O=p.state.subscription;p.setState({isWaitingForResponse:!1,subscription:null}),O&&O.unsubscribe()},p.handlePrettifyQuery=function(){var O,M,W,Y=p.getQueryEditor(),de=(O=Y==null?void 0:Y.getValue())!==null&&O!==void 0?O:"",ye=ie(It(de));ye!==de&&(Y==null||Y.setValue(ye));var ee=p.getVariableEditor(),Ee=(M=ee==null?void 0:ee.getValue())!==null&&M!==void 0?M:"";try{var Qe=JSON.stringify(JSON.parse(Ee),null,2);Qe!==Ee&&(ee==null||ee.setValue(Qe))}catch(ct){}var He=p.getHeaderEditor(),et=(W=He==null?void 0:He.getValue())!==null&&W!==void 0?W:"";try{var vt=JSON.stringify(JSON.parse(et),null,2);vt!==et&&(He==null||He.setValue(vt))}catch(ct){}},p.handleMergeQuery=function(){var O=p.getQueryEditor(),M=O.getValue();if(M){var W=p.state.documentAST;O.setValue(ie(qJ(W,p.state.schema)))}},p.handleEditQuery=tt(100,function(O){var M=p._updateQueryFacts(O,p.state.operationName,p.state.operations,p.state.schema);if(p.setState(function(W){return U(U(U(U({},W),{query:O}),M),{tabs:m8(O,W.tabs,M==null?void 0:M.operationName)})},p.persistTabsState),p._storage.set("query",O),p.props.onEditQuery)return p.props.onEditQuery(O,M==null?void 0:M.documentAST)}),p.handleCopyQuery=function(){var O=p.getQueryEditor(),M=O&&O.getValue();if(M&&(Zu(M),p.props.onCopyQuery))return p.props.onCopyQuery(M)},p._updateQueryFacts=function(O,M,W,Y){var de=or(Y,O);if(de){var ye=ec(W,M,de.operations),ee=p.props.onEditOperationName;return ee&&ye&&M!==ye&&ee(ye),U({operationName:ye},de)}},p.handleEditVariables=function(O){p.setState(function(M){return U(U({},M),{variables:O,tabs:v8(O,M.tabs)})},p.persistTabsState),tt(500,function(){return p._storage.set("variables",O)})(),p.props.onEditVariables&&p.props.onEditVariables(O)},p.handleEditHeaders=function(O){p.setState(function(M){return U(U({},M),{headers:O,tabs:h8(O,M.tabs)})},p.persistTabsState),p.props.shouldPersistHeaders&&tt(500,function(){return p._storage.set("headers",O)})(),p.props.onEditHeaders&&p.props.onEditHeaders(O)},p.handleEditOperationName=function(O){var M=p.props.onEditOperationName;M&&M(O)},p.handleHintInformationRender=function(O){O.addEventListener("click",p._onClickHintInformation);var M;O.addEventListener("DOMNodeRemoved",M=function(){O.removeEventListener("DOMNodeRemoved",M),O.removeEventListener("click",p._onClickHintInformation)})},p.handleEditorRunQuery=function(){p._runQueryAtCursor()},p._onClickHintInformation=function(O){if(O!=null&&O.currentTarget&&"className"in O.currentTarget&&O.currentTarget.className==="typeName"){var M=O.currentTarget.innerHTML,W=p.state.schema;if(W){var Y=W.getType(M);Y&&(p.setState({docExplorerOpen:!0},function(){p.docExplorerComponent&&p.docExplorerComponent.showDoc(Y)}),tt(500,function(){return p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen))})())}}},p.handleToggleDocs=function(){typeof p.props.onToggleDocs=="function"&&p.props.onToggleDocs(!p.state.docExplorerOpen),p._storage.set("docExplorerOpen",JSON.stringify(!p.state.docExplorerOpen)),p.setState({docExplorerOpen:!p.state.docExplorerOpen})},p.handleToggleHistory=function(){typeof p.props.onToggleHistory=="function"&&p.props.onToggleHistory(!p.state.historyPaneOpen),p._storage.set("historyPaneOpen",JSON.stringify(!p.state.historyPaneOpen)),p.setState({historyPaneOpen:!p.state.historyPaneOpen})},p.handleSelectHistoryQuery=function(O,M,W,Y){O&&p.handleEditQuery(O),M&&p.handleEditVariables(M),W&&p.handleEditHeaders(W),Y&&p.handleEditOperationName(Y)},p.handleResizeStart=function(O){if(p._didClickDragBar(O)){O.preventDefault();var M=O.clientX-Yn(O.target),W=function(de){if(de.buttons===0)return Y();var ye=p.editorBarComponent,ee=de.clientX-Yn(ye)-M,Ee=ye.clientWidth-ee;p.setState({editorFlex:ee/Ee}),tt(500,function(){return p._storage.set("editorFlex",JSON.stringify(p.state.editorFlex))})()},Y=function(){document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",Y),W=null,Y=null};document.addEventListener("mousemove",W),document.addEventListener("mouseup",Y)}},p.handleResetResize=function(){p.setState({editorFlex:1}),p._storage.set("editorFlex",JSON.stringify(p.state.editorFlex))},p.handleDocsResizeStart=function(O){O.preventDefault();var M=p.state.docExplorerWidth,W=O.clientX-Yn(O.target),Y=function(ye){if(ye.buttons===0)return de();var ee=p.graphiqlContainer,Ee=ye.clientX-Yn(ee)-W,Qe=ee.clientWidth-Ee;Qe<100?(typeof p.props.onToggleDocs=="function"&&p.props.onToggleDocs(!p.state.docExplorerOpen),p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen)),p.setState({docExplorerOpen:!1})):(p.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(Qe,650)}),tt(500,function(){return p._storage.set("docExplorerWidth",JSON.stringify(p.state.docExplorerWidth))})()),p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen))},de=function(){p.state.docExplorerOpen||(p.setState({docExplorerWidth:M}),tt(500,function(){return p._storage.set("docExplorerWidth",JSON.stringify(p.state.docExplorerWidth))})()),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",de),Y=null,de=null};document.addEventListener("mousemove",Y),document.addEventListener("mouseup",de)},p.handleDocsResetResize=function(){p.setState({docExplorerWidth:oc}),tt(500,function(){return p._storage.set("docExplorerWidth",JSON.stringify(p.state.docExplorerWidth))})()},p.handleTabClickPropogation=function(O){O.preventDefault(),O.stopPropagation()},p.handleOpenHeaderEditorTab=function(O){p.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},p.handleOpenVariableEditorTab=function(O){p.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},p.handleSecondaryEditorResizeStart=function(O){O.preventDefault();var M=!1,W=p.state.secondaryEditorOpen,Y=p.state.secondaryEditorHeight,de=O.clientY-tc(O.target),ye=function(Ee){if(Ee.buttons===0)return ee();M=!0;var Qe=p.editorBarComponent,He=Ee.clientY-tc(Qe)-de,et=Qe.clientHeight-He;et<60?p.setState({secondaryEditorOpen:!1,secondaryEditorHeight:Y}):p.setState({secondaryEditorOpen:!0,secondaryEditorHeight:et}),tt(500,function(){return p._storage.set("secondaryEditorHeight",JSON.stringify(p.state.secondaryEditorHeight))})()},ee=function(){M||p.setState({secondaryEditorOpen:!W}),document.removeEventListener("mousemove",ye),document.removeEventListener("mouseup",ee),ye=null,ee=null};document.addEventListener("mousemove",ye),document.addEventListener("mouseup",ee)},typeof n.fetcher!="function")throw new TypeError("GraphiQL requires a fetcher function.");p._storage=new DJ(n.storage);var m=(s=n.maxHistoryLength)!==null&&s!==void 0?s:20;p._historyStore=new Pu(p._storage,m),p.componentIsMounted=!1;var y=n.query!==void 0?n.query:p._storage.get("query")?p._storage.get("query"):n.defaultQuery!==void 0?n.defaultQuery:f8,b=or(n.schema,y),g=n.variables!==void 0?n.variables:p._storage.get("variables"),k=n.headers!==void 0?n.headers:p._storage.get("headers"),D=n.operationName!==void 0?n.operationName:ec(void 0,p._storage.get("operationName"),b&&b.operations),N=n.docExplorerOpen||!1;p._storage.get("docExplorerOpen")&&(N=p._storage.get("docExplorerOpen")==="true");var x;n.defaultVariableEditorOpen!==void 0?x=n.defaultVariableEditorOpen:n.defaultSecondaryEditorOpen!==void 0?x=n.defaultSecondaryEditorOpen:x=!!(g||k);var I=(u=n.headerEditorEnabled)!==null&&u!==void 0?u:!0,P=(c=n.shouldPersistHeaders)!==null&&c!==void 0?c:!1,z=n.schema,j=n.response,K=void 0;if(z&&!p.props.dangerouslyAssumeSchemaIsValid){var E=ir(z);E&&E.length>0&&(j=e.formatError(E),z=void 0,K=E)}p._introspectionQuery=Op({schemaDescription:(l=n.schemaDescription)!==null&&l!==void 0?l:void 0,inputValueDeprecation:(f=n.inputValueDeprecation)!==null&&f!==void 0?f:void 0}),p._introspectionQueryName=(d=n.introspectionQueryName)!==null&&d!==void 0?d:MJ,p._introspectionQuerySansSubscriptions=p._introspectionQuery.replace("subscriptionType { name }","");var R=Pt({query:y,variables:g,headers:k}),w={id:Ji(),hash:R,title:D!=null?D:"<untitled>",query:y,variables:g,headers:k,operationName:D,response:void 0},F=null;p.props.tabs&&(F=p._storage.get("tabState"));var L;if(F===null)L={activeTabIndex:0,tabs:[w]};else{L=JSON.parse(F);var _e=!1;try{for(var $=bn(L.tabs),Fe=$.next();!Fe.done;Fe=$.next()){var fe=Fe.value;fe.query=fe.query,fe.variables=fe.variables,fe.headers=P?fe.headers:void 0,fe.response=void 0,fe.operationName=void 0,fe.id=Ji(),fe.hash=Pt(fe),fe.hash===R&&(_e=!0)}}catch(O){r={error:O}}finally{try{Fe&&!Fe.done&&(i=$.return)&&i.call($)}finally{if(r)throw r.error}}_e===!1&&(L.tabs.push(w),L.activeTabIndex=L.tabs.length-1)}var pe=L.tabs[0],st=0;try{for(var ue=bn(L.tabs),ae=ue.next();!ae.done;ae=ue.next()){var fe=ae.value;if(fe.hash===R){L.activeTabIndex=st,pe=fe;break}st++}}catch(O){o={error:O}}finally{try{ae&&!ae.done&&(a=ue.return)&&a.call(ue)}finally{if(o)throw o.error}}return p.state=U({tabs:L,schema:z,query:pe==null?void 0:pe.query,variables:pe==null?void 0:pe.variables,headers:pe==null?void 0:pe.headers,operationName:pe==null?void 0:pe.operationName,response:(h=pe==null?void 0:pe.response)!==null&&h!==void 0?h:j,docExplorerOpen:N,schemaErrors:K,editorFlex:Number(p._storage.get("editorFlex"))||1,secondaryEditorOpen:x,secondaryEditorHeight:Number(p._storage.get("secondaryEditorHeight"))||200,variableEditorActive:p._storage.get("variableEditorActive")==="true"||n.headerEditorEnabled?p._storage.get("headerEditorActive")!=="true":!0,headerEditorActive:p._storage.get("headerEditorActive")==="true",headerEditorEnabled:I,shouldPersistHeaders:P,historyPaneOpen:p._storage.get("historyPaneOpen")==="true"||!1,docExplorerWidth:Number(p._storage.get("docExplorerWidth"))||oc,isWaitingForResponse:!1,subscription:null,maxHistoryLength:m},b),p}return e.formatResult=function(n){return JSON.stringify(n,null,2)},e.prototype.componentDidMount=function(){this.componentIsMounted=!0,this.state.schema===void 0&&this.fetchSchema(),this.codeMirrorSizer=new xJ,typeof window!="undefined"&&(window.g=this)},e.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},e.prototype.UNSAFE_componentWillReceiveProps=function(n){var r=this,i=this.state.schema,o=this.state.query,a=this.state.variables,s=this.state.headers,u=this.state.operationName,c=this.state.response;if(n.schema!==void 0&&(i=n.schema),n.query!==void 0&&this.props.query!==n.query&&(o=n.query),n.variables!==void 0&&this.props.variables!==n.variables&&(a=n.variables),n.headers!==void 0&&this.props.headers!==n.headers&&(s=n.headers),n.operationName!==void 0&&(u=n.operationName),n.response!==void 0&&(c=n.response),o&&i&&(i!==this.state.schema||o!==this.state.query||u!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var l=ir(i);l&&l.length>0&&(this.handleSchemaErrors(l),i=void 0)}var f=this._updateQueryFacts(o,u,this.state.operations,i);f!==void 0&&(u=f.operationName,this.setState(f))}n.schema===void 0&&n.fetcher!==this.props.fetcher&&(i=void 0),this._storage.set("operationName",u),this.setState({schema:i,query:o,variables:a,headers:s,operationName:u,response:c},function(){r.state.schema===void 0&&(r.docExplorerComponent&&r.docExplorerComponent.reset(),r.fetchSchema())})},e.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},e.prototype.render=function(){var n=this,r,i=be.Children.toArray(this.props.children),o=mi(i,function(m){return bi(m,e.Logo)})||_(e.Logo,{}),a=mi(i,function(m){return bi(m,e.Toolbar)})||V(e.Toolbar,{children:[_(Gt,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),_(Gt,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),_(Gt,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),_(Gt,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),!((r=this.props.toolbar)===null||r===void 0)&&r.additionalContent?this.props.toolbar.additionalContent:null]}),s=mi(i,function(m){return bi(m,e.Footer)}),u={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},c={display:"block",width:this.state.docExplorerWidth},l="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),f={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},d=this.state.secondaryEditorOpen,h={height:d?this.state.secondaryEditorHeight:void 0},p=this.state.tabs;return V("div",{ref:function(m){n.graphiqlContainer=m},"data-testid":"graphiql-container",className:"graphiql-container",children:[this.state.historyPaneOpen&&_("div",{className:"historyPaneWrap",style:f,children:_(SJ,{ref:function(m){n._queryHistory=m},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID,children:_("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History",children:"✕"})})}),V("div",{className:"editorWrap",children:[V("div",{className:"topBarWrap",children:[this.props.beforeTopBarContent,V("div",{className:"topBar",children:[o,_(Td,{isRunning:!!this.state.subscription,onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),a]}),!this.state.docExplorerOpen&&_("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer",children:"Docs"})]}),this.props.tabs?V(n8,{tabsProps:{"aria-label":"Select active operation"},children:[p.tabs.map(function(m,y){return _(e8,{isActive:y===p.activeTabIndex,title:m.title,isCloseable:p.tabs.length>1,onSelect:n.makeHandleOnSelectTab(y),onClose:n.makeHandleOnCloseTab(y),tabProps:{"aria-controls":"sessionWrap",id:"session-tab-"+y}},m.id)}),_(t8,{onClick:this.handleOnAddTab})]}):null,V("div",{ref:function(m){n.editorBarComponent=m},role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-"+p.activeTabIndex,onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart,children:[V("div",{className:"queryWrap",style:u,children:[_(Qs,{ref:function(m){n.queryEditorComponent=m},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),V("section",{className:"variable-editor secondary-editor",style:h,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers",children:[V("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:d?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart,children:[_("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation,children:"Query Variables"}),this.state.headerEditorEnabled&&_("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation,children:"Request Headers"})]}),_(Hs,{ref:function(m){n.variableEditorComponent=m},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&_($s,{ref:function(m){n.headerEditorComponent=m},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive})]})]}),V("div",{className:"resultWrap",children:[this.state.isWaitingForResponse&&_("div",{className:"spinner-container",children:_("div",{className:"spinner"})}),_(Js,{registerRef:function(m){n.resultViewerElement=m},ref:function(m){n.resultComponent=m},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:Sd}),s]})]})]}),this.state.docExplorerOpen&&V("div",{className:l,style:c,children:[_("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),_(gJ,{ref:function(m){n.docExplorerComponent=m},schemaErrors:this.state.schemaErrors,schema:this.state.schema,children:_("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer",children:"✕"})})]})]})},e.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},e.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},e.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},e.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},e.prototype.autoCompleteLeafs=function(){var n=AJ(this.state.schema,this.state.query,this.props.getDefaultFieldNames),r=n.insertions,i=n.result;if(r&&r.length>0){var o=this.getQueryEditor();o&&o.operation(function(){var a=o.getCursor(),s=o.indexFromPos(a);o.setValue(i||"");var u=0,c=r.map(function(f){var d=f.index,h=f.string;return o.markText(o.posFromIndex(d+u),o.posFromIndex(d+(u+=h.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return c.forEach(function(f){return f.clear()})},7e3);var l=s;r.forEach(function(f){var d=f.index,h=f.string;d<s&&(l+=h.length)}),o.setCursor(o.posFromIndex(l))})}return i},e.prototype.fetchSchema=function(){var n=this,r=this.props.fetcher,i={shouldPersistHeaders:!!this.props.shouldPersistHeaders,documentAST:this.state.documentAST};try{this.state.headers&&this.state.headers.trim().length>2?i.headers=JSON.parse(this.state.headers):this.props.headers&&(i.headers=JSON.parse(this.props.headers))}catch(a){this.setState({response:"Introspection failed as headers are invalid."});return}var o=uc(r({query:this._introspectionQuery,operationName:this._introspectionQueryName},i));if(!cc(o)){this.setState({response:"Fetcher did not return a Promise for introspection."});return}o.then(function(a){if(typeof a!="string"&&"data"in a)return a;var s=uc(r({query:n._introspectionQuerySansSubscriptions,operationName:n._introspectionQueryName},i));if(!cc(o))throw new Error("Fetcher did not return a Promise for introspection.");return s}).then(function(a){var s,u;if(n.state.schema===void 0)if(a&&a.data&&"__schema"in(a==null?void 0:a.data)){var c=Cp(a.data);if(!n.props.dangerouslyAssumeSchemaIsValid){var l=ir(c);l&&l.length>0&&(c=void 0,n.handleSchemaErrors(l))}if(c){var f=or(c,n.state.query);n.safeSetState(U(U({schema:c},f),{schemaErrors:void 0})),(u=(s=n.props).onSchemaChange)===null||u===void 0||u.call(s,c)}}else{var d=typeof a=="string"?a:e.formatResult(a);n.handleSchemaErrors([d])}}).catch(function(a){n.handleSchemaErrors([a])})},e.prototype.handleSchemaErrors=function(n){this.safeSetState({response:n?e.formatError(n):void 0,schema:void 0,schemaErrors:n})},e.prototype._fetchQuery=function(n,r,i,o,a,s){return gi(this,void 0,void 0,function(){var u,c,l,f,d,h,p=this;return yi(this,function(m){u=this.props.fetcher,c=null,l=null;try{c=r&&r.trim()!==""?JSON.parse(r):null}catch(y){throw new Error("Variables are invalid JSON: "+y.message+".")}if(typeof c!="object")throw new Error("Variables are not a JSON object.");try{l=i&&i.trim()!==""?JSON.parse(i):null}catch(y){throw new Error("Headers are invalid JSON: "+y.message+".")}if(typeof l!="object")throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(f=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(function(y){f.set(y.name.value,y)}):Ye(It(this.props.externalFragments,{}),{FragmentDefinition:function(y){f.set(y.name.value,y)}}),d=uu(this.state.documentAST,f),d.length>0&&(n+=`
|
|
204
|
-
`+d.map(function(y){return ie(y)}).join(`
|
|
205
|
-
`))),h=u({query:n,variables:c,operationName:o},{headers:l,shouldPersistHeaders:a,documentAST:this.state.documentAST}),[2,Promise.resolve(h).then(function(y){if(Hu(y)){var b=y.subscribe({next:s,error:function(g){p.safeSetState({isWaitingForResponse:!1,response:g?e.formatError(g):void 0,subscription:null})},complete:function(){p.safeSetState({isWaitingForResponse:!1,subscription:null})}});return b}else return $u(y)?(function(){return gi(p,void 0,void 0,function(){var g,k,D,N,x,I,P;return yi(this,function(z){switch(z.label){case 0:z.trys.push([0,13,,14]),z.label=1;case 1:z.trys.push([1,6,7,12]),g=a8(y),z.label=2;case 2:return[4,g.next()];case 3:if(k=z.sent(),!!k.done)return[3,5];D=k.value,s(D),z.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return N=z.sent(),I={error:N},[3,12];case 7:return z.trys.push([7,,10,11]),k&&!k.done&&(P=g.return)?[4,P.call(g)]:[3,9];case 8:z.sent(),z.label=9;case 9:return[3,11];case 10:if(I)throw I.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return x=z.sent(),this.safeSetState({isWaitingForResponse:!1,response:x?e.formatError(x):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var g,k;return(k=(g=y[Symbol.asyncIterator]()).return)===null||k===void 0?void 0:k.call(g)}}):(s(y),null)}).catch(function(y){return p.safeSetState({isWaitingForResponse:!1,response:y?e.formatError(y):void 0}),null})]})})},e.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var n,r=this.state.operations;if(r){var i=this.getQueryEditor();if(i&&i.hasFocus())for(var o=i.getCursor(),a=i.indexFromPos(o),s=0;s<r.length;s++){var u=r[s];if(u.loc&&u.loc.start<=a&&u.loc.end>=a){n=u.name&&u.name.value;break}}}this.handleRunQuery(n)},e.prototype._didClickDragBar=function(n){if(n.button!==0||n.ctrlKey)return!1;var r=n.target;if(r.className.indexOf("CodeMirror-gutter")!==0)return!1;for(var i=this.resultViewerElement;r;){if(r===i)return!0;r=r.parentNode}return!1},e.formatError=function(n){return Array.isArray(n)?ac({errors:n.map(function(r){return sc(r)})}):ac({errors:sc(n)})},e.Logo=zu,e.Toolbar=Gu,e.Footer=Qu,e.QueryEditor=Qs,e.VariableEditor=Hs,e.HeaderEditor=$s,e.ResultViewer=Js,e.Button=Gt,e.ToolbarButton=Gt,e.Group=Nd,e.Menu=Ad,e.MenuItem=Od,e}(be.Component);function zu(t){return _("div",{className:"title",children:t.children||V("span",{children:["Graph",_("em",{children:"i"}),"QL"]})})}zu.displayName="GraphiQLLogo";function Gu(t){return _("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands",children:t.children})}Gu.displayName="GraphiQLToolbar";function Qu(t){return _("div",{className:"footer",children:t.children})}Qu.displayName="GraphiQLFooter";var f8=`# Welcome to GraphiQL
|
|
206
|
-
#
|
|
207
|
-
# GraphiQL is an in-browser tool for writing, validating, and
|
|
208
|
-
# testing GraphQL queries.
|
|
209
|
-
#
|
|
210
|
-
# Type queries into this side of the screen, and you will see intelligent
|
|
211
|
-
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
212
|
-
# validation errors highlighted within the text.
|
|
213
|
-
#
|
|
214
|
-
# GraphQL queries typically start with a "{" character. Lines that start
|
|
215
|
-
# with a # are ignored.
|
|
216
|
-
#
|
|
217
|
-
# An example GraphQL query might look like:
|
|
218
|
-
#
|
|
219
|
-
# {
|
|
220
|
-
# field(arg: "value") {
|
|
221
|
-
# subField
|
|
222
|
-
# }
|
|
223
|
-
# }
|
|
224
|
-
#
|
|
225
|
-
# Keyboard shortcuts:
|
|
226
|
-
#
|
|
227
|
-
# Prettify Query: Shift-Ctrl-P (or press the prettify button above)
|
|
228
|
-
#
|
|
229
|
-
# Merge Query: Shift-Ctrl-M (or press the merge button above)
|
|
230
|
-
#
|
|
231
|
-
# Run Query: Ctrl-Enter (or press the play button above)
|
|
232
|
-
#
|
|
233
|
-
# Auto Complete: Ctrl-Space (or just start typing)
|
|
234
|
-
#
|
|
235
|
-
|
|
236
|
-
`;function cc(t){return typeof t=="object"&&typeof t.then=="function"}function p8(t){return new Promise(function(e,n){var r=t.subscribe({next:function(i){e(i),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})})}function Hu(t){return typeof t=="object"&&"subscribe"in t&&typeof t.subscribe=="function"}function $u(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in t)}function d8(t){return new Promise(function(e,n){var r,i=(r=("return"in t?t:t[Symbol.asyncIterator]()).return)===null||r===void 0?void 0:r.bind(t),o=("next"in t?t:t[Symbol.asyncIterator]()).next.bind(t);o().then(function(a){e(a.value),i==null||i()}).catch(function(a){n(a)})})}function uc(t){return Promise.resolve(t).then(function(e){return $u(e)?d8(e):Hu(e)?p8(e):e})}function bi(t,e){var n;return!((n=t==null?void 0:t.type)===null||n===void 0)&&n.displayName&&t.type.displayName===e.displayName?!0:t.type===e}function h8(t,e){return U(U({},e),{tabs:e.tabs.map(function(n,r){return r!==e.activeTabIndex?n:U(U({},n),{headers:t,hash:Pt({query:n.query,headers:t,variables:n.variables})})})})}function v8(t,e){return U(U({},e),{tabs:e.tabs.map(function(n,r){return r!==e.activeTabIndex?n:U(U({},n),{variables:t,hash:Pt({query:n.query,headers:n.headers,variables:t})})})})}function m8(t,e,n){return U(U({},e),{tabs:e.tabs.map(function(r,i){return i!==e.activeTabIndex?r:U(U({},r),{title:n!=null?n:r8(t),query:t,hash:Pt({query:t,headers:r.headers,variables:r.variables})})})})}function g8(t,e){var n=e.tabs.activeTabIndex,r=e.tabs.tabs.map(function(o,a){return a!==n?o:U(U({},o),{query:e.query,variables:e.variables,operationName:e.operationName,headers:e.headers,response:e.response,hash:Pt({query:e.query,variables:e.variables,headers:e.headers})})}),i=e.tabs.tabs[t];return U(U({},e),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:U(U({},e.tabs),{tabs:r,activeTabIndex:t})})}function y8(t,e){var n=e.tabs.activeTabIndex>0?e.tabs.activeTabIndex-1:0,r=U(U({},e.tabs),{activeTabIndex:n,tabs:e.tabs.tabs.filter(function(o,a){return t!==a})}),i=r.tabs[n];return U(U({},e),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:r})}function b8(t){var e=t.tabs.activeTabIndex,n={id:Ji(),title:"<untitled>",headers:"",variables:"",query:"",operationName:"",response:"",hash:Pt({query:"",variables:"",headers:""})},r=t.tabs.tabs.map(function(i,o){return o!==e?i:U(U({},i),{headers:t.headers,variables:t.variables,query:t.query,operationName:t.operationName,response:t.response})});return U(U({},t),{headers:n.headers,variables:n.variables,query:n.query,operationName:n.operationName,response:n.response,tabs:U(U({},t.tabs),{activeTabIndex:t.tabs.tabs.length,tabs:Bu(r,[n])})})}var _8=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wi=globalThis&&globalThis.__assign||function(){return Wi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Wi.apply(this,arguments)};function E8(t){return!(!t||typeof t!="object"||!("props"in t))}(function(t){_8(e,t);function e(n){var r=t.call(this,n)||this;return r._node=null,r._listener=null,r.handleOpen=function(i){ar(i),r.setState({visible:!0}),r._subscribe()},r.state={visible:!1},r}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,r,i=this.state.visible,o=be.Children.map(this.props.children,function(a,s){if(!E8(a))return null;(!r||a.props.selected)&&(r=a);var u=a.props.onSelect||n.props.onSelect&&n.props.onSelect.bind(null,a.props.value,s);return _(T8,{...Wi({},a.props,{onSelect:u})})});return V("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:ar,ref:function(a){n._node=a},title:this.props.title,children:[r==null?void 0:r.props.label,V("svg",{width:"13",height:"10",children:[_("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),_("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})]}),_("ul",{className:"toolbar-select-options"+(i?" open":""),children:o})]})},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(ar(n),this.setState({visible:!1}),this._release())},e})(be.Component);function T8(t){var e=t.onSelect,n=t.label,r=t.selected;return V("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:ar,onMouseUp:e,children:[n,r&&_("svg",{width:"13",height:"13",children:_("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835 10.686,0 13,2.314 4.851,10.462"})})]})}function ar(t){t.preventDefault()}const k8=["gt","gte","lt","lte"],w8={equals:"in",notEquals:"notIn",notSet:"set"};function S8(t,e,n="CubeQuery"){return{kind:v.DOCUMENT,definitions:[{kind:v.OPERATION_DEFINITION,name:{kind:v.NAME,value:n},operation:"query",selectionSet:{kind:v.SELECTION_SET,selections:[{kind:v.FIELD,name:{kind:v.NAME,value:"cube"},arguments:t,selectionSet:{kind:v.SELECTION_SET,selections:e}}]}}]}}class x8{constructor(e,n){this.cubeQuery=e,this.types=n,this.cubes={},this.prepareCubes()}convert(){return ie(S8(this.getCubeArgs(),this.getFieldsSelections()))}resolveFilter(e,n){const r=Object.values(e.reduce((a,s)=>{if(s.or||s.and)return a;const[u,c]=(s.member||s.dimension).split(".");return a[u]||(a[u]={kind:"PLAIN",cubeName:u,fields:[],filters:[]}),a[u].fields.push(c),a[u].filters.push(s),a},{})),i=e.map(a=>a.and||a.or?{kind:a.and?"AND":"OR",filters:a.and||a.or}:!1).filter(Boolean);return r.concat(i).map(a=>a.kind!=="PLAIN"?n?this.objectValue([this.booleanFilter(a.kind,this.resolveFilter(a.filters,a))]):this.booleanFilter(a.kind,this.resolveFilter(a.filters,a)):a.fields.length===Uo(a.fields).length?n?this.objectValue(this.objectFieldFilter(a.filters),Ut(a.cubeName)):this.objectFieldFilter(a.filters,Ut(a.cubeName)):this.objectField(this.booleanFilter((n==null?void 0:n.kind)||"AND",a.filters.map(s=>((s.and||s.or)&&this.resolveFilter(a.filters,a.kind),this.objectValue(this.objectFieldFilter(s))))),Ut(a.cubeName)))}objectValue(e,n){return n?{kind:v.OBJECT,fields:[{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.OBJECT,fields:Array.isArray(e)?e:[e]}}]}:{kind:v.OBJECT,fields:Array.isArray(e)?e:[e]}}objectFieldFilter(e,n){const r=Array.isArray(e)?e:[e],i=a=>{const s=this.types[a.member||a.dimension]==="number"?v.FLOAT:v.STRING;return["set","notSet"].includes(a.operator)?{kind:v.BOOLEAN,value:a.operator==="set"}:typeof a.values=="string"?{kind:s,value:a.values}:a.values.length===1?{kind:s,value:a.values[0].toString()}:{kind:v.LIST,values:a.values.map(u=>({kind:s,value:u}))}},o=r.map(a=>{const s=a.member||a.dimension;if(!this.types[s])throw new Error(`Unknown member type for "${s}". Make sure "${s}" exists in the data model.`);if(k8.includes(a.operator)&&(a.values||[]).length>1)throw new Error(`Filter operator "${a.operator}" must have a single value`);return{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:s.split(".")[1]},value:{kind:v.OBJECT,fields:a.values===void 0&&!["set","notSet"].includes(a.operator)?[]:[{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:a.operator==="equals"&&(a.values||[]).length<=1?a.operator:w8[a.operator]||a.operator},value:i(a)}]}}});return n?[{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.OBJECT,fields:o}}]:o}objectField(e,n){return{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.OBJECT,fields:Array.isArray(e)?e:[e]}}}booleanFilter(e,n){return{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:e},value:{kind:v.LIST,values:n}}}orderByArg(e){return{kind:v.ARGUMENT,name:{kind:v.NAME,value:"orderBy"},value:{kind:v.OBJECT,fields:e.map(([n,r])=>({kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.ENUM,value:r}}))}}}getFieldsSelections(){const e=[];return Object.entries(this.cubes).forEach(([n,{fields:r,orderBy:i}])=>{e.push({kind:v.FIELD,name:{kind:v.NAME,value:n},arguments:i.length?[this.orderByArg(i)]:[],selectionSet:{kind:v.SELECTION_SET,selections:r.map(o=>{let a=null;return o.granularities&&(a={selectionSet:{kind:v.SELECTION_SET,selections:o.granularities.map(s=>({kind:v.FIELD,name:{kind:v.NAME,value:s}}))}}),{kind:v.FIELD,name:{kind:v.NAME,value:o.name},...a}})}})}),e}getCubeArgs(){const e=[["timezone",v.STRING],["limit",v.INT],["offset",v.INT]],n=[];e.forEach(([i,o])=>{this.cubeQuery[i]&&n.push({kind:v.ARGUMENT,name:{kind:v.NAME,value:i},value:{kind:o,value:this.cubeQuery[i]}})});const r=[...this.cubeQuery.filters||[]];return(this.cubeQuery.timeDimensions||[]).forEach(i=>{i.dateRange&&r.push({member:i.dimension,operator:"inDateRange",values:i.dateRange})}),r.length&&n.push({kind:v.ARGUMENT,name:{kind:v.NAME,value:"where"},value:{kind:v.OBJECT,fields:this.resolveFilter(r)}}),n}prepareCubes(){var r;const e=i=>{this.cubes[i]||(this.cubes[i]={fields:[],filters:[],orderBy:[]})};["measures","dimensions","segments"].forEach(i=>{this.cubeQuery[i]&&this.cubeQuery[i].forEach(o=>{const[a,s,u]=o.split("."),c=Ut(a);let l=u;this.types[`${a}.${s}`]==="time"&&(l="value"),e(c);const f=this.cubes[c].fields.find(({name:d})=>d===s);this.cubes[c].fields.push({name:s,...l?{granularities:[...(f==null?void 0:f.granularities)||[],l]}:null})})});const n={};(r=this.cubeQuery.timeDimensions)==null||r.forEach(i=>{const[o,a]=i.dimension.split("."),s=`${o}.${a}`;i.granularity&&(n[s]=(n[s]||[]).concat([i.granularity]))}),Object.entries(n).forEach(([i,o])=>{const[a,s]=i.split("."),u=Ut(a);e(u);const c=this.cubes[u].fields.find(l=>l.name===s);c?c.granularities=Uo([...c.granularities||[],...o]):this.cubes[u].fields.push({name:s,granularities:o})}),this.cubeQuery.order&&(Array.isArray(this.cubeQuery.order)?this.cubeQuery.order:Object.entries(this.cubeQuery.order)).forEach(([o,a])=>{const[s,u]=o.split("."),c=Ut(s);if(!this.cubes[c])throw new Error(`Order without selecting the cube is not allowed. Did you forget to include the "${s}" cube?`);if(!this.cubes[c].fields.find(({name:f})=>f===u))throw new Error(`Order without selecting the member is not allowed. Did you forget to include the "${u}" member?`);this.cubes[c].orderBy.push([u,a])})}}const N8=nl.div`
|
|
237
|
-
margin-top: -15px;
|
|
238
|
-
height: 400px;
|
|
239
|
-
border-radius: 8px;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
|
|
242
|
-
.graphiql-container {
|
|
243
|
-
box-sizing: initial;
|
|
244
|
-
|
|
245
|
-
* {
|
|
246
|
-
box-sizing: initial;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.topBar {
|
|
250
|
-
background: none;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.docExplorerShow {
|
|
254
|
-
border-left: none;
|
|
255
|
-
background: none;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.CodeMirror-scroll,
|
|
259
|
-
.CodeMirror-lines {
|
|
260
|
-
background: white;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.doc-explorer-title-bar {
|
|
264
|
-
height: 50px;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
`;function D8({apiUrl:t,query:e,meta:n}){const{token:r}=Xu(),i=Ku(),o=r||i,a=Bo.useMemo(()=>Xp({url:t.replace("/v1","/graphql"),headers:o?{authorization:o}:{}}),[t,o]),s=Bo.useMemo(()=>el(n),[n]),u=tl(()=>{if(!s)return"";try{return new x8(e,s).convert().replace("{"," { ").replace("}"," } ")}catch(c){return`# ${c}
|
|
268
|
-
`}},[e,s]);return _(N8,{children:_(l8,{query:u,fetcher:a})})}const f7=Object.freeze(Object.defineProperty({__proto__:null,default:D8},Symbol.toStringTag,{value:"Module"}));export{Me as $,Ai as A,ir as B,It as C,iu as D,C8 as E,Ne as F,C as G,Ic as H,Op as I,Sf as J,v as K,n7 as L,Fc as M,Fr as N,Mc as O,Vt as P,Sr as Q,$8 as R,Ni as S,Di as T,Et as U,ce as V,je as W,Re as X,Zi as Y,tn as Z,Tt as _,re as a,mo as a$,Dr as a0,Ar as a1,eo as a2,Ir as a3,Rc as a4,Tf as a5,Tl as a6,S as a7,me as a8,G as a9,uf as aA,op as aB,fo as aC,Uc as aD,lo as aE,hc as aF,Vf as aG,Jc as aH,Xf as aI,ep as aJ,Bc as aK,tp as aL,pp as aM,Yf as aN,eu as aO,cp as aP,Qf as aQ,jf as aR,le as aS,Rr as aT,ne as aU,ho as aV,Kc as aW,po as aX,Zc as aY,Xc as aZ,Wf as a_,t7 as aa,nn as ab,xt as ac,_c as ad,Ht as ae,ge as af,Ef as ag,wl as ah,Y8 as ai,Ye as aj,El as ak,mc as al,Sl as am,xl as an,kl as ao,Cn as ap,Dc as aq,Np as ar,dn as as,B as at,Vc as au,Hf as av,zf as aw,Ve as ax,Oc as ay,Cc as az,A as b,Oe as b$,Mf as b0,Wc as b1,Yc as b2,Kf as b3,xp as b4,ap as b5,Gf as b6,lp as b7,to as b8,no as b9,Ko as bA,_i as bB,Tc as bC,Tn as bD,ht as bE,Z8 as bF,ao as bG,xi as bH,Lc as bI,Xl as bJ,At as bK,wf as bL,X8 as bM,wn as bN,e7 as bO,Jt as bP,qc as bQ,Pc as bR,bc as bS,K8 as bT,xr as bU,I8 as bV,ql as bW,pl as bX,rl as bY,fc as bZ,tu as b_,io as ba,ro as bb,Fn as bc,Cr as bd,Pe as be,oo as bf,G8 as bg,z8 as bh,W8 as bi,q8 as bj,P8 as bk,j8 as bl,Zl as bm,B8 as bn,M8 as bo,H8 as bp,V8 as bq,Ec as br,Yl as bs,U8 as bt,F8 as bu,Wl as bv,L8 as bw,R8 as bx,Q8 as by,Cp as bz,xe as c,Si as c0,yc as c1,uo as c2,r7 as c3,Aa as c4,Oa as c5,ed as c6,ad as c7,Vi as c8,is as c9,ji as ca,l7 as cb,rd as cc,id as cd,Ft as ce,bo as cf,Hn as cg,vd as ch,c7 as ci,s7 as cj,a7 as ck,u7 as cl,i7 as cm,uu as cn,md as co,or as cp,o7 as cq,bd as cr,nd as cs,J as ct,he as cu,Q as cv,Kr as cw,yd as cx,hd as cy,f7 as cz,we as d,pt as e,Mt as f,_t as g,dt as h,J8 as i,Ce as j,kn as k,Dt as l,qe as m,H as n,De as o,ie as p,xf as q,_f as r,of as s,Ue as t,bf as u,hn as v,Ot as w,jl as x,oe as y,kc as z};
|